:root { color-scheme: dark; font-family: "Segoe UI", "Noto Sans TC", sans-serif; background: #01030b; color: #eef7ff; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at 50% 0%, #17295c 0, #050816 42%, #01030b 100%); }
body { min-height: 100svh; overflow: hidden; }
button { font: inherit; }
#app { min-height: 100svh; display: grid; place-items: center; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.game-shell { position: relative; width: min(100vw, 420px); height: min(100svh, 746px); display: grid; place-items: center; overflow: hidden; background: #050816; box-shadow: 0 0 80px rgba(35, 113, 255, .18); }
#game-canvas { display: block; touch-action: none; image-rendering: auto; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(180deg, rgba(3, 8, 24, .2), rgba(3, 8, 24, .78)); padding: 32px; }
.overlay { background: rgba(3, 8, 24, .82); }
.panel-screen { background: linear-gradient(180deg, rgba(2, 8, 22, .72), rgba(2, 8, 22, .92)); }
.eyebrow { margin: 0 0 14px; color: #52e7ff; font-size: 10px; letter-spacing: .28em; font-weight: 700; }
h1 { margin: 0; font-size: clamp(42px, 14vw, 68px); line-height: .86; letter-spacing: -.08em; font-weight: 900; text-shadow: 0 0 30px rgba(82, 231, 255, .42); }
h1 span { color: #ff4f9a; }
h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: .08em; }
.subtitle { margin: 20px 0 40px; color: #a9c2e5; letter-spacing: .45em; font-size: 13px; }
.hint { margin-top: 18px; color: #8ca7c8; font-size: 12px; }
.difficulty-control { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: #8ca7c8; font-size: 12px; }
.difficulty-control select { border: 1px solid rgba(82, 231, 255, .45); border-radius: 8px; padding: 7px 10px; color: #eef7ff; background: #0b1533; }
.scores { min-height: 16px; margin: 18px 0 0; color: #ffcf80; font: 11px ui-monospace, monospace; }
.menu-list { width: min(100%, 280px); display: grid; gap: 10px; }
.primary-button, .menu-button { min-width: 190px; border: 1px solid #52e7ff; border-radius: 3px; padding: 14px 18px; color: #061026; background: rgba(82, 231, 255, .92); font-weight: 800; letter-spacing: .08em; cursor: pointer; box-shadow: 0 0 26px rgba(82, 231, 255, .24); }
.menu-button { color: #d9edff; background: rgba(6, 18, 39, .78); border-color: rgba(82, 231, 255, .42); }
.menu-button:hover, .menu-button:focus-visible { background: rgba(37, 96, 137, .82); box-shadow: 0 0 24px rgba(82, 231, 255, .32); }
.primary-button:active { transform: translateY(1px) scale(.98); }
.scores-large { width: min(100%, 280px); min-height: 90px; padding: 24px 12px; border: 1px solid rgba(82, 231, 255, .24); background: rgba(4, 15, 33, .72); line-height: 2.1; }
.hud { position: absolute; inset: 0; pointer-events: none; padding: 20px 16px; display: flex; align-items: flex-start; gap: 12px; }
.hud-stat { display: grid; gap: 3px; color: #8ca7c8; font-size: 9px; letter-spacing: .15em; }
.hud-stat strong { color: #eef7ff; font-size: 13px; letter-spacing: .08em; }
.hud-stat.hp { margin-left: auto; }
.hud-stat.hp strong { color: #ff6cae; letter-spacing: 1px; }
.pause-button { pointer-events: auto; width: 38px; height: 38px; margin: -5px 0 0 5px; border: 1px solid rgba(82, 231, 255, .5); border-radius: 12px; color: #eef7ff; background: rgba(5, 8, 22, .7); cursor: pointer; }
[hidden] { display: none !important; }
@media (min-width: 700px) { .game-shell { border: 1px solid rgba(82, 231, 255, .16); border-radius: 28px; height: min(92svh, 746px); } }
