@font-face{font-family:"DSEG7";src:url("DSEG7Classic-Bold.woff2") format("woff2"),url("https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff2") format("woff2");font-weight:700;font-display:swap;}

:root {
  --bg: #0a0c10;
  --amber: #ffb000;
  --amber-hi: #ffc533;
  --amber-lo: #e08a00;
  --amber-burn: #a85a00;
  --ink: #ffffff;
  --muted: #8a909c;
  --home: #5cff9a;
  --ui: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font-family: var(--ui); -webkit-tap-highlight-color: transparent; user-select: none;
}
body {
  display: grid; place-items: center; min-height: 100dvh; padding: 16px;
  background: radial-gradient(120% 80% at 50% -10%, #1a1520 0%, transparent 55%), var(--bg);
}
.spike {
  width: min(920px, 100%); display: grid; gap: clamp(16px, 3vw, 28px);
  justify-items: center; overflow: visible;
}
.badge {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); opacity: 0.85;
}
.stage {
  position: relative; width: 100%; max-width: 920px;
  overflow: visible; aspect-ratio: 920 / 720;
}
#board { display: block; width: 100%; height: 100%; touch-action: manipulation; }
.pill {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 2;
  min-width: 7.6em; padding: 0.72em 1.7em; font-family: var(--ui);
  font-size: clamp(18px, 3.6vw, 26px); font-weight: 800; letter-spacing: 0.12em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-hi) 0%, var(--amber) 42%, var(--amber-lo) 100%);
  box-shadow: 0 8px 22px rgba(255, 140, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 4px rgba(160, 70, 0, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  transition: filter 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.pill:active { filter: brightness(0.92); transform: translate(-50%, calc(-50% + 1px)); }
.pill.is-running {
  background: linear-gradient(180deg, #ffb000 0%, #d97800 55%, var(--amber-burn) 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 3px rgba(80, 40, 0, 0.35);
}
.score-hit {
  appearance: none; border: 0; background: transparent; color: transparent;
  cursor: pointer; position: absolute; left: 50%; bottom: 11%;
  transform: translateX(-50%); z-index: 2;
  width: min(280px, 70%); height: 18%; padding: 0; font-size: 0;
}
.score-hit:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 8px; }
.footnote { max-width: 36em; text-align: center; font-size: 12px; line-height: 1.55; color: var(--muted); }
