:root {
  color-scheme: dark;
  --page: #211a26;
  --panel: #2d2331;
  --line: #4d3b51;
  --muted: #beabbd;
  --cream: #fff4e5;
  --peach: #ffab90;
  --lavender: #dbb8f6;
  --mono: "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--cream); background: var(--page); font: 500 15px var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid #ffdaa5; outline-offset: 4px; }
button:disabled { opacity: .5; cursor: default; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
button svg, .hints svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.shell { max-width: 1600px; margin: 0 auto; padding: 0 clamp(19px, 4.05vw, 64px); }
.masthead { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; line-height: 1.1; letter-spacing: -.04em; white-space: nowrap; }
.wordmark small { display: block; color: var(--muted); margin-top: 6px; font: 700 8.5px var(--mono); letter-spacing: .13em; }
.brand-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; background: #c9a6ed; box-shadow: inset 0 -3px 0 #a77ecb; }
.mast-actions, .simulation, .camera-controls, .camera-group { display: flex; align-items: center; gap: 10px; }
.mast-actions [hidden] { display: none; }
.quiet-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--line); background: #302536; border-radius: 8px; color: #f3e5f1; font-weight: 700; font-size: 12px; transition: background .18s, border-color .18s; }
.quiet-button:hover { background: #45344c; border-color: #816286; }
.quiet-button[aria-pressed=true] { color: var(--lavender); border-color: #9471a3; }
.sound { padding: 0 13px; }
.icon-button { width: 40px; padding: 0; }
.game { overflow: hidden; border: 1px solid #5c4760; border-radius: 19px; background: var(--panel); box-shadow: 0 17px 42px #0a07104a; }
.stage { position: relative; isolation: isolate; height: clamp(480px, calc(100svh - 214px), 805px); min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 65% 90%, #ffc288, #a27498 65%, #594263); }
#world { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
#world:active { cursor: grabbing; }
#world:focus-visible { outline: 2px solid #ffdaa5; outline-offset: -4px; }
.stage-shade { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #241728c9 0%, #2f1c3873 22%, #3c244a13 47%, transparent 72%); transition: opacity .4s; }
.intro { position: absolute; z-index: 2; pointer-events: none; left: clamp(30px, 4.2vw, 72px); top: 50%; transform: translateY(-50%); transition: opacity .35s, transform .35s; }
.live { display: inline-flex; align-items: center; gap: 9px; min-height: 27px; padding: 0 10px; border: 1px solid #e7c9e84f; border-radius: 5px; background: #3826409e; color: #f4e5ee; font: 700 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #c8ef98; box-shadow: 0 0 9px #c8ef9870; }
.paused .live-dot { background: #ffc693; box-shadow: none; }
h1 { font-family: "Arial Black", "Arial Rounded MT Bold", var(--sans); font-size: clamp(62px, 7.45vw, 122px); font-weight: 1000; letter-spacing: -.105em; line-height: .83; margin: 21px 0 24px -3px; transform: skew(-7deg); }
h1 span { display: block; text-shadow: 0 4px 0 #563446, 0 8px 0 #32213e, 2px 10px 18px #2c163961; }
h1 span + span { color: var(--peach); }
.intro p { margin: 0; color: #fff0e7; font-size: clamp(13px, 1.3vw, 18px); line-height: 1.5; font-weight: 600; text-shadow: 0 2px 7px #211627b3; letter-spacing: -.018em; }
.follow-button { pointer-events: auto; margin-top: 24px; padding: 0 14px; height: 45px; display: flex; align-items: center; gap: 9px; border-radius: 7px; border: 1px solid #f1d5ff; border-bottom-color: #a478c2; background: #d9b5f2; color: #2f1d3a; box-shadow: 0 3px 0 #735284, 0 6px 16px #2516274d; font-size: 13px; font-weight: 800; transition: background .15s, transform .15s; }
.follow-button:hover { background: #edd4ff; transform: translateY(-2px); }
.follow-button:active { transform: translateY(2px); }
.follow-button svg { width: 17px; height: 17px; stroke-width: 2; }
.follow-button .arrow { margin-left: 9px; }
.chase-view .intro { opacity: 0; visibility: hidden; transform: translate(-18px, -50%); }
.chase-view .stage-shade { opacity: .09; }
.stage-corner { z-index: 2; position: absolute; pointer-events: none; width: 13px; height: 13px; border: 1px solid #ffe3dae0; opacity: .65; }
.top-left { top: 15px; left: 15px; border-width: 1px 0 0 1px; border-top-left-radius: 3px; }
.top-right { top: 15px; right: 15px; border-width: 1px 1px 0 0; border-top-right-radius: 3px; }
.bottom-left { bottom: 15px; left: 15px; border-width: 0 0 1px 1px; border-bottom-left-radius: 3px; }
.bottom-right { bottom: 15px; right: 15px; border-width: 0 1px 1px 0; border-bottom-right-radius: 3px; }
.loading { z-index: 3; position: absolute; right: 25px; bottom: 24px; max-width: 64%; background: #34223de8; border: 1px solid #a283ab; border-radius: 7px; padding: 9px 12px; font: 11px var(--mono); }
.loading[hidden] { display: none; }
.dashboard { min-height: 63px; padding: 10px 15px; border-top: 1px solid #6a525e; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.simulation { gap: clamp(10px, 1.35vw, 22px); }
.pause-button { color: var(--lavender); background: #3e2e46; }
.pause-button svg { stroke-width: 2.7; }
.divider { width: 1px; height: 25px; background: var(--line); }
.stat { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.stat-label { font: 700 9px var(--mono); letter-spacing: .14em; color: #bba6ba; }
.lap-value { font: 700 18px var(--mono); color: #ffe8c7; }
.chase-value { font-size: 12px; font-weight: 700; }
.chase-value i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #ffad8d; vertical-align: 2px; }
.camera-group { gap: 4px; background: #231b29; padding: 3px; border: 1px solid #4a384e; border-radius: 9px; }
.camera-button { display: flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #baa8bd; font-weight: 700; font-size: 11px; transition: color .2s, background .2s; }
.camera-button svg { width: 15px; height: 15px; }
.camera-button:hover { color: var(--cream); }
.camera-button.active { color: #eedafc; border-color: #6d5376; background: #4b3656; }
.sun-button { color: #ffd39a; }
.footnote { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 53px; padding: 0 2px; color: var(--muted); font: 10px var(--mono); }
.hints, .hints > span, .track { display: flex; align-items: center; gap: 7px; }
.hints { gap: 19px; }
.hints svg { width: 14px; height: 14px; }
.track strong { font-weight: 700; margin-left: 6px; color: #e6cfe7; }
.equalizer { display: inline-flex; align-items: center; gap: 2px; height: 13px; margin-right: 4px; color: #d0a8ea; }
.equalizer i { display: block; width: 2px; height: 4px; background: currentColor; border-radius: 2px; }
.equalizer i:nth-child(2) { height: 10px; animation-delay: -.3s; }
.equalizer i:nth-child(3) { height: 7px; animation-delay: -.65s; }
.equalizer i:nth-child(4) { height: 11px; animation-delay: -.48s; }
.music-on .equalizer i { animation-name: bounce; animation-duration: .8s; animation-iteration-count: infinite; animation-direction: alternate; }
@keyframes bounce { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.28); } }
.shell:fullscreen { max-width: none; height: 100%; padding: 0 clamp(16px, 3vw, 54px); background: var(--page); overflow: auto; }
.shell:fullscreen .stage { height: max(300px, calc(100dvh - 208px)); }
@media (min-width: 701px) and (max-height: 720px) {
  .masthead { min-height: 70px; }
  .stage { height: max(440px, calc(100svh - 184px)); }
  .footnote { min-height: 46px; }
}
@media (max-width: 700px) {
  .masthead { min-height: 71px; }
  .shell { padding: 0 13px; }
  .stage { height: clamp(485px, calc(100svh - 174px), 730px); }
  .intro { left: 24px; top: 32px; transform: none; }
  .chase-view .intro { transform: translateX(-18px); }
  .stage-shade { background: linear-gradient(155deg, #2e1a3bc7, #3c244a06 58%); }
  h1 { font-size: clamp(51px, 11.8vw, 79px); margin: 15px 0 13px; }
  .intro p { font-size: 13px; }
  .intro p br { display: none; }
  .follow-button { margin-top: 12px; height: 37px; font-size: 12px; padding: 0 10px; }
  .follow-button .arrow { margin-left: 1px; }
  .dashboard { padding: 8px; min-height: 56px; gap: 6px; }
  .camera-controls { gap: 5px; }
  .camera-button { gap: 4px; padding: 0 6px; }
  .camera-button svg { width: 13px; height: 13px; }
  .camera-group { gap: 1px; }
  .chase-stat, .simulation .divider:nth-of-type(2) { display: none; }
  .stat { gap: 4px; }
  .lap-value { font-size: 14px; }
  .simulation { gap: 6px; }
  .icon-button { width: 35px; min-height: 36px; }
  .footnote { min-height: 42px; font-size: 9px; }
  .hints { gap: 9px; }
  .track strong { margin-left: 1px; }
}
@media (max-width: 370px) {
  .wordmark { font-size: 15px; gap: 8px; }
  .wordmark small { font-size: 7px; }
  .brand-icon { width: 36px; height: 36px; }
  .mast-actions { gap: 6px; }
  .camera-button svg { display: none; }
  .track { display: none; }
  .sound { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
