/* The shared chrome (top bar, buttons, dialogs, stats grid, week strip, toast) is in
   hub/game.css, linked before this file. Fuse is a night sky in both themes. */
:root {
  color-scheme: dark;
  --bg: #15122a;
  --bg-2: #0d0b1c;
  --panel: rgba(40, 34, 78, 0.72);
  --panel-solid: #221d45;
  --ink: #f1edff;
  --muted: #b3aad6;
  --line: rgba(241, 237, 255, 0.14);
  --accent: #ffd166; /* dark text on it is 13:1 */
  --accent-deep: #f4b93a;
  --accent-ink: #2a1c00;
  --fw-n: #ff7a59;
  --fw-b: #ffd166;
  --fw-d: #7ad7ff;
  --fw-x: #8a83a8;
  --good: #7ee2a8;
  --shadow: rgba(0, 0, 0, 0.5);
  --display: Fredoka, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); font: 600 16px/1.4 var(--text); -webkit-font-smoothing: antialiased; background: radial-gradient(ellipse at 50% 0%, #2a2160, var(--bg) 55%, var(--bg-2)) fixed; }
button { -webkit-tap-highlight-color: transparent; }
.app { width: 100%; max-width: 520px; margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.logo { margin: 0; font: 700 2.1rem/1 var(--display); color: var(--accent); }
.day { margin: 4px 0 0; font-size: 0.78rem; color: var(--muted); }

.play { display: flex; flex-direction: column; gap: 10px; }
.meta { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; font-size: 0.85rem; color: var(--muted); }
.sky-wrap { display: flex; justify-content: center; }
.sky { width: min(100%, 460px, 58vh); aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1d1844, #0b0918); box-shadow: 0 14px 40px -22px var(--shadow), inset 0 0 0 1px var(--line); cursor: crosshair; touch-action: manipulation; }
.sky:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.field { width: 100%; height: 100%; display: block; }
.fw circle, .fw rect { fill: var(--fw-n); transition: opacity 0.3s, transform 0.3s; }
.fw.k-b circle { fill: var(--fw-b); }
.fw.k-d circle { fill: none; stroke: var(--fw-d); stroke-width: 6; }
.fw.k-d .inner { fill: var(--fw-d); stroke: none; }
.fw.k-x rect { fill: var(--fw-x); }
.fw .star { stroke: #7a4b00; stroke-width: 3; stroke-linecap: round; }
.fw.lit circle, .fw.lit rect { opacity: 0.28; }
.fw.missed circle, .fw.missed rect { opacity: 0.95; filter: drop-shadow(0 0 6px #fff); }
.fw.missed { outline: none; }
.burst { fill: none; stroke: var(--fw-n); stroke-width: 6; opacity: 0; transform-box: fill-box; transform-origin: center; animation: burst 700ms ease-out forwards; }
.burst.k-b { stroke: var(--fw-b); stroke-width: 9; }
.burst.k-d { stroke: var(--fw-d); }
.burst.spark { stroke: #fff; stroke-width: 4; animation-duration: 500ms; }
@keyframes burst { 0% { transform: scale(0.1); opacity: 0.95; } 70% { opacity: 0.55; } 100% { transform: scale(1); opacity: 0; } }
html.reduce-motion .burst { animation-duration: 250ms !important; }
@media (prefers-reduced-motion: reduce) { .burst { animation-duration: 250ms !important; } }
.ghost { fill: rgba(255, 255, 255, 0.08); stroke: #fff; stroke-width: 3; stroke-dasharray: 10 8; }
.cross { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.best-ring { fill: none; stroke: var(--good); stroke-width: 5; stroke-dasharray: 14 10; }
.verdict { margin: 0; min-height: 1.4em; text-align: center; font-size: 0.95rem; }
.acts { display: flex; justify-content: center; min-height: 0; }
.tries-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; justify-items: center; font-size: 0.9rem; color: var(--muted); }
.foot { display: flex; justify-content: flex-end; }
.how { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; text-align: left; font-size: 0.92rem; }
.how li { display: flex; gap: 10px; align-items: center; }
.k { flex: none; width: 24px; height: 24px; border-radius: 50%; }
.k-n { background: var(--fw-n); }
.k-b { background: var(--fw-b); width: 30px; height: 30px; }
.k-d { border: 5px solid var(--fw-d); box-sizing: border-box; background: radial-gradient(circle, var(--fw-d) 0 30%, transparent 32%); }
.k-x { background: var(--fw-x); border-radius: 6px; }
.btn.wide { margin-top: 16px; }
.kicker { color: var(--muted); }
.res-line { margin: 0 0 6px; font-size: 1.05rem; }
.res-row { margin: 0 0 12px; font-size: 1.4rem; letter-spacing: 0.1em; }
.wd.today i { outline: 2px dashed var(--accent); outline-offset: -2px; }
.wd.great i { background: var(--accent); color: var(--accent-ink); }
.wd.done i { background: var(--line); }
.toast { z-index: 10; }
@media (max-width: 380px) {
  .app { padding-left: 12px; padding-right: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
