* { box-sizing: border-box; }
:root { color-scheme: dark; --panel: rgba(15,23,42,.86); --panel2: rgba(30,41,59,.92); --line: rgba(255,255,255,.14); --text: #f8fafc; --muted: #a8b4c7; --gold: #facc15; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at 12% 10%, rgba(250,204,21,.18), transparent 30%), radial-gradient(circle at 88% 4%, rgba(56,189,248,.16), transparent 30%), linear-gradient(145deg, #090e1a 0%, #17243c 52%, #3a230f 100%); }
button { border: 0; cursor: pointer; font-weight: 850; transition: transform 140ms ease, opacity 140ms ease; }
button:active { transform: translateY(1px) scale(.99); }
.game-wrap { width: min(760px, calc(100vw - 28px)); margin: 0 auto; padding: 18px 0 22px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px 20px 12px 12px; background: var(--panel); backdrop-filter: blur(14px); box-shadow: 0 18px 55px rgba(0,0,0,.25); }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 4rem); line-height: .95; letter-spacing: 0; }
p { margin: 0; }
.top p { margin-top: 6px; color: var(--muted); font-weight: 700; }
#newGameBtn { min-height: 44px; padding: 0 18px; border-radius: 14px; color: #1f1300; background: linear-gradient(135deg, #facc15, #fb923c); box-shadow: 0 12px 30px rgba(251,146,60,.18); }
.hud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.stat { min-height: 58px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel2); display: flex; align-items: center; justify-content: space-between; }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 850; }
.stat strong { color: #fff; font-size: 1.35rem; }
.stage-shell { overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: #111827; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
#game-stage { width: 100%; aspect-ratio: 1 / 1; min-height: 330px; }
#game-stage canvas { display: block; width: 100%; height: 100%; }
.tip, .reward-note { margin-top: 10px; text-align: center; color: #d9e4f2; line-height: 1.45; font-weight: 760; }
.reward-note { color: var(--muted); min-height: 22px; }
@media (max-width: 560px) { .game-wrap { width: min(100vw - 16px, 540px); padding-top: 8px; } .top { align-items: flex-start; padding: 13px; } #newGameBtn { min-height: 38px; padding: 0 13px; } .stat { min-height: 48px; } }
