* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #14121f; color: #fff; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif; }
#hoho-wrap { position: fixed; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden;
  border-radius: 12px; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 0 40px rgba(0,0,0,.45); }
/* 畫面比遊戲長（手機）時填滿寬度，不要圓角 */
@media (max-aspect-ratio: 9/16) { #hoho-wrap { border-radius: 0; } }
/* 上下多出來的地方：模糊放大的遊戲畫面（engine.js 每幾幀更新） */
#hoho-amb { position: fixed; z-index: 0; left: -8%; top: -8%; width: 116%; height: 116%; pointer-events: none;
  filter: blur(18px) brightness(.55) saturate(1.2); }
#hoho-c { display: block; width: 100%; height: 100%; }
#hoho-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hoho-ov button:disabled { opacity: .6; }
#hoho-hud { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-size: 44px; font-weight: 800;
  text-shadow: 0 3px 0 rgba(0,0,0,.35); pointer-events: none; }
.hoho-ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; background: rgba(15, 12, 30, .78); text-align: center; backdrop-filter: blur(3px); }
.hoho-ov h1 { font-size: 40px; line-height: 1.2; word-break: keep-all; font-weight: 900; letter-spacing: 2px; }
.hoho-ov h2 { font-size: 26px; opacity: .85; }
.hoho-ov p { font-size: 16px; opacity: .85; line-height: 1.5; }
.hoho-ov .how { font-size: 14px; opacity: .7; background: rgba(255,255,255,.08); padding: 10px 14px; border-radius: 10px; }
.hoho-ov .big { font-size: 80px; font-weight: 900; line-height: 1; }
.hoho-ov .best { font-size: 15px; opacity: .75; }
.hoho-ov button, .hoho-ov .link { min-width: 220px; padding: 15px 22px; font-size: 20px; font-weight: 800; border: 0; border-radius: 999px;
  background: #ffcc33; color: #2a1f00; cursor: pointer; text-decoration: none; box-shadow: 0 5px 0 #c99a10; }
.hoho-ov button:active { transform: translateY(3px); box-shadow: 0 2px 0 #c99a10; }
.hoho-ov .sec { background: #fff; color: #222; box-shadow: 0 5px 0 #aaa; font-size: 17px; padding: 12px 20px; }
.hoho-ov .link { background: transparent; color: #fff; box-shadow: none; font-size: 15px; opacity: .7; padding: 6px; }
#hoho-over-sub { white-space: pre-line; }
#hoho-newbest { color: #ffcc33; font-weight: 800; font-size: 18px; }
.hidden { display: none !important; }
#hoho-pause { position: absolute; z-index: 5; border: 0; border-radius: 999px; background: rgba(10,8,20,.62); color: #fff; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .35em; backdrop-filter: blur(2px); }
#hoho-pause::before { content: ''; width: .55em; height: .8em; border-left: .2em solid #fff; border-right: .2em solid #fff; box-sizing: border-box; }
#hoho-pause.hidden { display: none !important; }
#hoho-pausemenu { z-index: 30; }

/* ---------- 開始畫面 ---------- */
/* 遊戲畫面要露出來：只在上下加漸層，不模糊；按鈕放在下方好按的地方 */
.hoho-ov.hoho-start { justify-content: flex-start; gap: 12px; padding: 40px 24px 20px; backdrop-filter: none;
  background: linear-gradient(180deg, rgba(12,10,24,.92) 0%, rgba(12,10,24,.82) 26%, rgba(12,10,24,.2) 44%, rgba(12,10,24,.08) 58%, rgba(12,10,24,.75) 76%, rgba(12,10,24,.95) 100%); }
.hoho-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hoho-icon { width: 84px; height: 84px; border-radius: 21px; box-shadow: 0 10px 24px rgba(0,0,0,.5); margin-bottom: 4px; }
.hoho-start h1 { font-size: 38px; text-shadow: 0 3px 12px rgba(0,0,0,.6); }
.hoho-tag { font-size: 15px !important; opacity: .9 !important; max-width: 290px; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.hoho-gap { flex: 1; }
.hoho-start #hoho-play { margin-bottom: 4px; width: 100%; max-width: 290px; font-size: 22px; padding: 16px; background: var(--accent);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 62%, #000); color: #1c1020; }
.hoho-start #hoho-play:active { box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 62%, #000); }
.hoho-start .sec { width: 100%; max-width: 290px; min-width: 0; background: rgba(255,255,255,.13); color: #fff; box-shadow: none;
  border: 1px solid rgba(255,255,255,.22); font-size: 15px; padding: 9px 16px; backdrop-filter: blur(6px); }
.hoho-start .sec:active { transform: translateY(1px); background: rgba(255,255,255,.2); box-shadow: none; }
.hoho-start .best { font-size: 13px; opacity: .6; }
.hoho-foot { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 14px; }
.hoho-ov .hoho-foot .link, .hoho-ov .hoho-howbtn { min-width: 0; padding: 8px 12px; font-size: 14px; font-weight: 700; opacity: .75;
  background: transparent; color: #fff; box-shadow: none; border: 0; }
.hoho-ov .hoho-howbtn { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.hoho-how { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; background: rgba(8,6,16,.6); }
.hoho-how-card { width: 100%; background: #221d33; border-radius: 20px 20px 0 0; padding: 20px 22px 22px; text-align: left; }
.hoho-how-card h2 { font-size: 20px; opacity: 1; margin-bottom: 10px; }
.hoho-how-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.hoho-how-card li { font-size: 14px; line-height: 1.55; opacity: .88; padding-left: 14px; position: relative; }
.hoho-how-card li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hoho-ov .hoho-how-ok { width: 100%; min-width: 0; font-size: 17px; padding: 12px; background: var(--accent); box-shadow: none; color: #1c1020; }
