/* Nante Studio Arcade - shared stylesheet for the lobby, every cabinet page and the 404.
   Fonts (Google Fonts, all SIL OFL): Bungee (marquee wordmarks), Monoton (neon sign),
   Silkscreen (small arcade text), Press Start 2P (LED digits, matches the in-game HUD),
   Black Han Sans + DotGothic16 subset to a few glyphs for the Korean/Japanese signs. */
:root {
  --night: #06050d;
  --ink: #f5f2ff;
  --dim: #b7b1dc;
  --mute: #8d87b8;
  --steel-hi: #3a3c48;
  --steel-lo: #15161c;
  --neon-pink: #ff2fb3;
  --neon-cyan: #33e1ff;
  --neon-gold: #ffd23f;
  --led: #ffb43a;
  --red: #ff3b5c;
  --c1: #ffd23f;
  --c2: #ff5a1f;
  --m-top: #1d1b3f;
  --m-bot: #0b0a1e;
  --f-display: "Bungee", "Arial Black", Impact, sans-serif;
  --f-neon: "Monoton", "Bungee", "Arial Black", sans-serif;
  --f-pixel: "Silkscreen", ui-monospace, Menlo, monospace;
  --f-led: "Press Start 2P", ui-monospace, Menlo, monospace;
  --f-ko: "Black Han Sans", "Apple SD Gothic Neo", sans-serif;
  --f-ja: "DotGothic16", "Hiragino Sans", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--f-pixel);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- the room: night-time arcade haze + carpet floor ---------- */
.room { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(110% 55% at 50% -12%, rgba(124, 44, 214, .42), transparent 62%),
    radial-gradient(60% 40% at 0% 34%, rgba(255, 47, 179, .16), transparent 70%),
    radial-gradient(60% 40% at 100% 44%, rgba(51, 225, 255, .13), transparent 70%),
    var(--night);
}
.room::after { content: ""; position: absolute; left: -30%; right: -30%; bottom: -8%; height: 62%;
  background-color: #0d0a1c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' fill='none' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 26q8-12 16 0t16 0' stroke='%23ff2fb3'/%3E%3Cpath d='M92 14l14 24h-28z' stroke='%2333e1ff'/%3E%3Ccircle cx='38' cy='96' r='9' stroke='%239b5cff'/%3E%3Cpath d='M78 98l8-8 8 8 8-8 8 8' stroke='%23ffd23f'/%3E%3Cpath d='M118 72v10M113 77h10' stroke='%23ff2fb3'/%3E%3Cpath d='M20 62v8M16 66h8' stroke='%2333e1ff'/%3E%3Ccircle cx='66' cy='56' r='2.5' fill='%23ffd23f' stroke='none'/%3E%3Ccircle cx='128' cy='122' r='2.5' fill='%2333e1ff' stroke='none'/%3E%3Ccircle cx='8' cy='128' r='2' fill='%23ff2fb3' stroke='none'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  transform: perspective(520px) rotateX(58deg); transform-origin: 50% 100%;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}

/* ---------- lit marquee panel (cabinet pages and lobby cards) ---------- */
.lit {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 22%, transparent 78%, rgba(0,0,0,.35)),
    repeating-conic-gradient(from -90deg at 50% 135%, rgba(255,255,255,.075) 0 5deg, transparent 5deg 10deg),
    radial-gradient(120% 150% at 50% 115%, color-mix(in srgb, var(--c1) 50%, transparent), transparent 68%),
    linear-gradient(180deg, var(--m-top), var(--m-bot));
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.08),
    inset 0 2px 0 rgba(255,255,255,.28),
    0 0 26px color-mix(in srgb, var(--c1) 32%, transparent);
  animation: tube-on 1.5s linear both;
}
@keyframes tube-on {
  0% { filter: brightness(.18); } 7% { filter: brightness(1.1); } 11% { filter: brightness(.25); }
  18% { filter: brightness(1); } 22% { filter: brightness(.45); } 30%, 100% { filter: brightness(1); }
}
.wordmark { margin: 0; font-weight: 400; line-height: .92; text-align: center; }
.wordmark .w1 {
  display: block; font-family: var(--f-display); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 0%, #fff 34%, var(--c1) 56%, var(--c2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.85)) drop-shadow(0 1px 0 #000) drop-shadow(0 0 9px color-mix(in srgb, var(--c1) 70%, transparent));
}
.wordmark .w2 {
  display: block; margin-top: 4px; padding-left: .55em;
  font-family: var(--f-pixel); font-weight: 700; letter-spacing: .55em; color: #fff;
  text-shadow: 0 0 6px var(--c1), 0 1px 0 #000;
}

/* ---------- the token (coin) ---------- */
.token, .coin {
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 34% 30%, #fff7c2 0 8%, #ffd640 30%, #d99b12 64%, #8a5a00 100%);
  box-shadow: inset 0 0 0 2px rgba(122, 76, 0, .9), inset 0 0 0 4px rgba(255, 230, 140, .55), 0 2px 5px rgba(0,0,0,.6);
  color: #6b4300; font-family: var(--f-display); line-height: 1;
}
.coin { position: fixed; width: 30px; height: 30px; z-index: 50; pointer-events: none; font-size: 14px; }
.coin.drop { animation: coin-in .62s cubic-bezier(.35, 0, .65, 1) forwards; }
@keyframes coin-in {
  0% { transform: translate(var(--dx, -40px), var(--dy, 0px)) rotate(0deg) scale(.85); }
  48% { transform: translate(calc(var(--dx, -40px) * .4), calc(var(--dy, 0px) * .4 - 64px)) rotate(240deg) scale(1.08); }
  80% { transform: translate(0, -4px) rotate(360deg) scaleX(.3); opacity: 1; }
  100% { transform: translate(0, 12px) rotate(360deg) scaleX(.06) scaleY(.6); opacity: 0; }
}
.credit-flash { animation: led-flash .5s ease-out; }
@keyframes led-flash { 0% { color: #fff; text-shadow: 0 0 14px #fff, 0 0 4px #fff; } }

/* ---------- LED readout ---------- */
.led {
  font-family: var(--f-led); font-weight: 400; color: var(--led);
  text-shadow: 0 0 6px rgba(255, 180, 58, .75), 0 0 1px #fff3d6;
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   CABINET PAGE
   ===================================================================== */
body.cabinet-page {
  height: 100dvh; overflow: hidden; overscroll-behavior: none;
  display: flex; justify-content: center;
  -webkit-user-select: none; user-select: none;
}
.cab {
  position: relative; height: 100dvh; width: 100%; max-width: 520px;
  display: flex; flex-direction: column;
  padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  background: linear-gradient(90deg, #0c0b16, #17152a 50%, #0c0b16);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--c1) 75%, #000), inset -3px 0 0 color-mix(in srgb, var(--c1) 75%, #000), 0 0 60px rgba(0,0,0,.8);
}
.cab.landscape { max-width: min(1180px, 100%); }

.marquee {
  flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px;
  min-height: 62px; padding: 6px; border-radius: 10px 10px 4px 4px;
}
.marquee .wordmark .w1 { font-size: clamp(24px, 8vw, 40px); }
.marquee .wordmark .w2 { font-size: clamp(9px, 2.6vw, 12px); }
.marquee .back {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; text-decoration: none;
  font: 700 20px/1 var(--f-pixel); color: #fff; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.marquee .back:active { transform: translateY(1px); }
.marquee .emblem { justify-self: center; width: 30px; height: 30px; font-size: 14px; opacity: .92; }

.screen-wrap {
  position: relative; flex: 1 1 auto; min-height: 0; width: 100%; margin-top: 6px; padding: 6px;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
  background:
    radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--c1) 16%, transparent), transparent 75%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.035) 0 2px, transparent 2px 13px),
    linear-gradient(180deg, #0d0c18, #08070f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 10px 24px rgba(0,0,0,.7);
}
.screen {
  position: relative; background: #000; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #23222f, 0 0 0 5px rgba(255,255,255,.08), 0 0 28px 2px color-mix(in srgb, var(--c1) 26%, transparent);
}
.screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.3) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.07);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 70%, #000 100%);
  mask-image: radial-gradient(ellipse at center, transparent 70%, #000 100%);
}
.screen canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.screen .boot {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 20px; text-align: center; background:
    radial-gradient(80% 60% at 50% 45%, color-mix(in srgb, var(--c1) 14%, transparent), transparent 70%), #04040a;
}
.boot p { margin: 0; }
.boot .boot-brand { font: 700 10px/1.4 var(--f-pixel); letter-spacing: .3em; color: var(--mute); }
.boot .boot-msg { font: 400 13px/1.4 var(--f-pixel); letter-spacing: .08em; color: #fff; animation: blink 1.1s steps(1) infinite; }
.boot .boot-how { font: 400 11px/1.6 var(--f-pixel); color: var(--dim); max-width: 26ch; letter-spacing: .04em; }
.boot .bar { width: 64%; height: 12px; padding: 2px; border: 2px solid color-mix(in srgb, var(--c1) 60%, #333); border-radius: 2px; }
.boot .bar i { display: block; height: 100%; width: 0%; background: repeating-linear-gradient(90deg, var(--c1) 0 6px, transparent 6px 8px); transition: width .2s linear; }
.screen .boot.hidden { display: none; }
.screen .err { font: 400 12px/1.8 var(--f-pixel); color: var(--red); letter-spacing: .05em; }

.panel {
  flex: none; margin-top: 6px; min-height: 10px; padding: 0 12px; border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--c1) 22%, transparent) 0 6px, transparent 6px 14px),
    linear-gradient(180deg, #23213a, #131222);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--c1) 80%, #000), inset 0 -1px 0 rgba(0,0,0,.6);
}
.panel .howto { display: none; }
@media (min-height: 900px) { .panel { padding: 8px 12px; background: linear-gradient(180deg, #23213a, #131222); } .panel .howto { display: block; } }
.panel .howto { margin: 0; font: 400 11px/1.5 var(--f-pixel); letter-spacing: .05em; color: #d4cff2; text-align: center; }
.panel .howto b { color: var(--c1); font-weight: 700; margin-right: .6em; }

/* ---------- coin door ---------- */
.door {
  flex: none; width: 100%; margin-top: 6px; padding: 10px 12px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-radius: 6px 6px 10px 10px;
  background:
    radial-gradient(circle at 8px 8px, #6b6f80 0 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 8px) 8px, #6b6f80 0 2px, transparent 2.5px),
    radial-gradient(circle at 8px calc(100% - 8px), #6b6f80 0 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #6b6f80 0 2px, transparent 2.5px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(0,0,0,.6), 0 3px 0 #000;
}
.wallet { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "lbl led" "btn btn"; align-items: center; gap: 6px 10px; min-width: 0; }
.wallet .lbl { grid-area: lbl; font: 700 10px/1 var(--f-pixel); letter-spacing: .14em; color: var(--dim); }
.wallet .led { grid-area: led; display: block; min-width: 4.5em; padding: 7px 8px 6px; border-radius: 4px; text-align: right; font-size: 14px;
  background: #0a0605; box-shadow: inset 0 0 0 1px #000, inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.12); }
.wallet button {
  grid-area: btn; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px;
  font: 700 11px/1 var(--f-pixel); letter-spacing: .08em; color: #241800;
  background: linear-gradient(180deg, #ffe680, #ffc21a); box-shadow: 0 3px 0 #8a5a00, inset 0 1px 0 rgba(255,255,255,.7);
}
.wallet button:active { transform: translateY(2px); box-shadow: 0 1px 0 #8a5a00, inset 0 1px 0 rgba(255,255,255,.7); }

.slot {
  position: relative; flex: none; display: flex; align-items: center; gap: 10px;
  min-height: 44px; border: 0; background: none; padding: 0; color: var(--ink);
}
.slot .label {
  display: block; padding: 8px 10px; border-radius: 4px; text-align: center;
  font: 700 12px/1.25 var(--f-pixel); letter-spacing: .12em; color: #fff4f4;
  background: radial-gradient(120% 120% at 50% 50%, #ff5874, #c0102e 70%);
  box-shadow: 0 0 0 2px #1a0006, 0 0 0 3px rgba(255,255,255,.12), 0 0 18px rgba(255, 59, 92, .75), inset 0 0 8px rgba(255,255,255,.35);
  text-shadow: 0 0 6px #fff, 0 1px 0 #6a0016;
  animation: lamp 1s steps(1) infinite;
}
.slot .label small { display: block; margin-top: 4px; font-size: 8px; letter-spacing: .06em; font-weight: 400; color: #ffd9de; text-shadow: none; }
@keyframes lamp { 50% { background: #3a0610; color: #7a2a38; text-shadow: none; box-shadow: 0 0 0 2px #1a0006, 0 0 0 3px rgba(255,255,255,.08), inset 0 0 6px rgba(0,0,0,.6); } }
.slot.fed .label { animation: none; }
.slot.empty .label { animation: none; background: #2a0a10; color: #8a4a55; text-shadow: none; box-shadow: 0 0 0 2px #1a0006, 0 0 0 3px rgba(255,255,255,.08); }
.door:has(.slot.empty) .wallet button { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 3px 0 #8a5a00, 0 0 0 3px rgba(255, 210, 63, .55), 0 0 18px rgba(255, 210, 63, .7); } }

/* coin mech: price lamp, coin slot, coin-return lip */
.slot .plate {
  position: relative; width: 62px; height: 86px; border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #5a5d6c, #2a2c35 60%, #1d1e25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(0,0,0,.7), 0 3px 0 #000;
}
.slot .lamp {
  order: -1; margin-top: 6px; width: 48px; padding: 3px 0 2px; border-radius: 2px; text-align: center;
  font: 400 10px/1 var(--f-led); color: #3a1a00; background: linear-gradient(180deg, #ffe08a, #ffb43a);
  box-shadow: 0 0 10px rgba(255, 180, 58, .8), inset 0 0 0 1px rgba(0,0,0,.4);
}
.slot .lamp i { font-style: normal; font-family: var(--f-ko); font-size: 10px; margin-left: 1px; }
.slot .plate::before {
  content: ""; margin-top: 9px; width: 6px; height: 28px; border-radius: 3px; background: #000;
  box-shadow: inset 0 0 4px #ff3b5c, 0 0 8px rgba(255, 59, 92, .7), 0 0 0 2px #15161c, 0 0 0 3px rgba(255,255,255,.15);
}
.slot .plate::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 12px; border-radius: 3px 3px 6px 6px;
  background: linear-gradient(180deg, #000, #191a20); box-shadow: inset 0 3px 3px rgba(0,0,0,.9), 0 -1px 0 rgba(255,255,255,.18);
}
.slot:active .plate { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(0,0,0,.7), 0 1px 0 #000; }
.slot.accept .plate::before { animation: slot-glow .5s ease-out; }
@keyframes slot-glow { 0% { box-shadow: inset 0 0 6px #fff, 0 0 18px #ffd23f, 0 0 0 2px #15161c; } }

/* short phones: drop the instruction strip, shrink the marquee, keep the coin door thumb-sized */
@media (max-height: 760px) {
  .panel { min-height: 8px; margin-top: 4px; }
  .marquee { min-height: 52px; padding: 4px 6px; }
  .marquee .wordmark .w1 { font-size: clamp(20px, 6.6vw, 32px); }
  .marquee .wordmark .w2 { margin-top: 2px; }
  .door { padding: 8px 10px; }
  .wallet { grid-template-columns: auto auto; grid-template-areas: "lbl lbl" "led btn"; gap: 4px 8px; }
  .wallet .led { min-width: 3.6em; font-size: 12px; }
  .wallet button { padding: 0 10px; font-size: 10px; }
  .slot .plate { height: 72px; width: 56px; }
  .slot .plate::before { height: 20px; margin-top: 6px; }
  .slot .label small { display: none; }
}
@media (max-width: 359px) {
  .wallet button { font-size: 9px; padding: 0 8px; }
  .slot .label { font-size: 10px; padding: 6px 7px; }
}
.instr { display: none; }
/* wide screens: the coin door and an instruction card stand beside the screen, so the game keeps the full height */
@media (orientation: landscape) and (min-width: 900px) and (min-height: 541px) {
  .cab:not(.landscape) {
    max-width: 860px; display: grid; column-gap: 10px;
    grid-template-columns: 1fr 250px; grid-template-rows: auto 1fr auto;
    grid-template-areas: "marquee marquee" "screen side" "panel panel";
  }
  .cab:not(.landscape) .marquee { grid-area: marquee; min-height: 76px; }
  .cab:not(.landscape) .marquee .wordmark .w1 { font-size: 46px; }
  .cab:not(.landscape) .screen-wrap { grid-area: screen; padding: 14px; }
  .cab:not(.landscape) .panel { grid-area: panel; }
  .cab:not(.landscape) .panel .howto { display: none; }
  .cab:not(.landscape) .instr, .cab:not(.landscape) .door { grid-area: side; }
  .cab:not(.landscape) .instr {
    display: block; align-self: start; margin-top: 6px; padding: 16px 16px 6px; border-radius: 6px;
    background: linear-gradient(180deg, #f3ecd9, #e2d6b8); color: #2a2135;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), inset 0 0 0 5px #f3ecd9, inset 0 0 0 6px color-mix(in srgb, var(--c2) 70%, #000), 0 4px 14px rgba(0,0,0,.5);
  }
  .instr p { margin: 0 0 12px; font: 400 12px/1.6 var(--f-pixel); letter-spacing: .02em; }
  .instr .instr-h { margin-bottom: 6px; font: 400 13px/1 var(--f-display); letter-spacing: .06em; color: color-mix(in srgb, var(--c2) 75%, #000); }
  .cab:not(.landscape) .door { align-self: end; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 14px; }
  .cab:not(.landscape) .wallet { grid-template-columns: auto 1fr; }
  .cab:not(.landscape) .slot { justify-content: space-between; }
  .cab:not(.landscape) .slot .label { flex: 1; }
}
@media (orientation: landscape) and (min-width: 900px) and (max-height: 720px) { .cab:not(.landscape) .instr { display: none; } }
/* phones held sideways: screen on the left, marquee + coin door stacked on the right */
@media (orientation: landscape) and (max-height: 540px) {
  .cab, .cab.landscape {
    max-width: none; display: grid; gap: 6px;
    grid-template-columns: 1fr 210px; grid-template-rows: auto 1fr;
    grid-template-areas: "screen marquee" "screen door";
  }
  .cab .screen-wrap { grid-area: screen; margin: 0; }
  .cab .marquee { grid-area: marquee; grid-template-columns: 44px 1fr; min-height: 0; }
  .cab .marquee .emblem { display: none; }
  .cab .marquee .wordmark .w1 { font-size: 22px; }
  .cab .marquee .wordmark .w2 { font-size: 8px; }
  .cab .panel { display: none; }
  .cab .door { grid-area: door; margin: 0; flex-direction: column; justify-content: center; align-self: stretch; }
  .cab .wallet { grid-template-columns: auto auto; grid-template-areas: "lbl led" "btn btn"; }
}

/* =====================================================================
   LOBBY
   ===================================================================== */
body.lobby-page { min-height: 100dvh; }
.lobby { width: 100%; max-width: 920px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom)); }

.sign { text-align: center; padding: 14px 0 4px; }
.sign h1 { margin: 0; font-weight: 400; }
.sign .sign-top {
  display: block; font: 400 clamp(15px, 4.6vw, 22px)/1 var(--f-display); letter-spacing: .32em; padding-left: .32em;
  color: #d9fbff; text-shadow: 0 0 2px #fff, 0 0 8px var(--neon-cyan), 0 0 18px var(--neon-cyan), 0 0 34px rgba(51,225,255,.6);
  animation: tube-on 1.3s linear both;
}
.sign .neon {
  display: block; margin-top: 6px; font: 400 clamp(54px, 17vw, 112px)/1.05 var(--f-neon); letter-spacing: .02em;
  color: #ffe1f6;
  text-shadow: 0 0 2px #fff, 0 0 7px var(--neon-pink), 0 0 16px var(--neon-pink), 0 0 34px var(--neon-pink), 0 0 70px rgba(176, 18, 122, .9);
  animation: tube-on 1.9s .25s linear both;
}
.sign .neon .flk { animation: buzz 9s 3s linear infinite; }
@keyframes buzz { 0%, 91%, 93%, 95.5%, 100% { opacity: 1; } 92%, 94.5% { opacity: .25; } }
.sign .sub { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; padding: 0; }
.sign .sub span { display: inline-block; }
.sign .ko { font: 400 22px/1 var(--f-ko); color: #fff3c4; text-shadow: 0 0 2px #fff, 0 0 8px var(--neon-gold), 0 0 18px var(--neon-gold); letter-spacing: .08em; }
.sign .ja { font: 400 20px/1 var(--f-ja); color: #d6fff0; text-shadow: 0 0 2px #fff, 0 0 8px #3dffb0, 0 0 18px #3dffb0; letter-spacing: .06em; }
.sign .open { font: 700 11px/1 var(--f-pixel); letter-spacing: .24em; color: #fff; padding: 6px 8px 5px; border: 2px solid var(--neon-pink); border-radius: 4px;
  box-shadow: 0 0 10px var(--neon-pink), inset 0 0 8px rgba(255,47,179,.5); text-shadow: 0 0 6px var(--neon-pink); }
.sign .tagline { margin: 16px auto 0; max-width: 36ch; font: 400 12px/1.7 var(--f-pixel); letter-spacing: .06em; color: var(--dim); }

/* coin changer (the wallet) */
.changer {
  position: relative; margin: 22px auto 0; max-width: 560px; padding: 12px 14px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(0,0,0,.6), 0 4px 0 #000, 0 12px 30px rgba(0,0,0,.5);
}
.changer .token { width: 38px; height: 38px; font-size: 17px; }
.changer .readout { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.changer .lbl { font: 700 10px/1 var(--f-pixel); letter-spacing: .16em; color: var(--dim); }
.changer .led { display: inline-block; align-self: flex-start; padding: 7px 10px 6px; min-width: 5.5em; border-radius: 4px; font-size: 16px; text-align: right;
  background: #0a0605; box-shadow: inset 0 0 0 1px #000, inset 0 2px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.12); }
.changer button {
  min-height: 48px; padding: 0 14px; border: 0; border-radius: 10px;
  font: 700 12px/1.1 var(--f-pixel); letter-spacing: .08em; color: #241800;
  background: linear-gradient(180deg, #ffe680, #ffc21a); box-shadow: 0 4px 0 #8a5a00, inset 0 1px 0 rgba(255,255,255,.7);
}
.changer button:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a5a00, inset 0 1px 0 rgba(255,255,255,.7); }
.changer .fine { grid-column: 1 / -1; margin: 0; font: 400 10px/1.5 var(--f-pixel); letter-spacing: .04em; color: var(--mute); }
.plus { position: absolute; pointer-events: none; font: 400 14px/1 var(--f-led); color: var(--neon-gold); text-shadow: 0 0 8px var(--neon-gold); animation: plus-up .9s ease-out forwards; }
@keyframes plus-up { to { transform: translateY(-34px); opacity: 0; } }

/* the row of cabinets */
.row-h { margin: 34px 0 14px; text-align: center; font: 700 11px/1 var(--f-pixel); letter-spacing: .3em; color: var(--mute); }
.row { display: grid; grid-template-columns: 1fr; gap: 34px; max-width: 440px; margin: 0 auto; }
@media (min-width: 760px) { .row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; gap: 32px; } }
.unit {
  position: relative; display: flex; flex-direction: column; border-radius: 14px 14px 8px 8px; padding: 8px 8px 12px;
  background: linear-gradient(90deg, #0d0c18, #1a182c 50%, #0d0c18);
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--c1) 75%, #000), inset -3px 0 0 color-mix(in srgb, var(--c1) 75%, #000),
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 26px 36px -22px color-mix(in srgb, var(--c1) 55%, transparent), 0 10px 30px rgba(0,0,0,.6);
  transition: transform .18s ease;
}
.unit:hover { transform: translateY(-3px); }
.unit .u-marquee { display: grid; place-items: center; min-height: 92px; padding: 10px; border-radius: 10px 10px 4px 4px; }
.unit .u-marquee .w1 { font-size: clamp(34px, 11vw, 46px); }
.unit .u-marquee .w2 { font-size: 12px; }
.unit .u-screen {
  position: relative; margin-top: 8px; border-radius: 10px; overflow: hidden; background: #05040b; display: flex; flex-direction: column;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #23222f, 0 0 22px color-mix(in srgb, var(--c1) 22%, transparent);
}
.unit .u-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 26px rgba(0,0,0,.7);
}
.art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.spr { position: absolute; image-rendering: pixelated; }

/* Kestrel attract: harbor water scrolling under a fighter and a bullet curtain */
.art-kestrel { background: linear-gradient(180deg, #071a3f, #0d3466 55%, #0f4f72); }
.art-kestrel .sea { position: absolute; inset: -40px 0 0; opacity: .5;
  background-image:
    radial-gradient(3px 1px at 20% 30%, #8fd8ff 99%, transparent), radial-gradient(4px 1px at 70% 60%, #8fd8ff 99%, transparent),
    radial-gradient(2px 1px at 45% 85%, #cfefff 99%, transparent), radial-gradient(3px 1px at 85% 15%, #cfefff 99%, transparent);
  background-size: 64px 40px; animation: scroll 2.4s linear infinite; }
.art-kestrel .isle { position: absolute; width: 20%; aspect-ratio: 1; left: 8%; top: 10%; background: #c9b46c; animation: drift 10s linear infinite;
  clip-path: polygon(30% 0, 70% 0, 70% 10%, 85% 10%, 85% 25%, 100% 25%, 100% 70%, 85% 70%, 85% 85%, 60% 85%, 60% 100%, 25% 100%, 25% 85%, 10% 85%, 10% 65%, 0 65%, 0 30%, 15% 30%, 15% 12%, 30% 12%); }
.art-kestrel .isle::after { content: ""; position: absolute; inset: 12%; background: #2c6a3a;
  clip-path: polygon(30% 0, 70% 0, 70% 12%, 88% 12%, 88% 70%, 70% 70%, 70% 88%, 25% 88%, 25% 70%, 8% 70%, 8% 25%, 30% 25%); box-shadow: inset -6px -6px 0 #1f4f2b; }
@keyframes scroll { to { transform: translateY(40px); } }
@keyframes drift { from { top: -30%; } to { top: 110%; } }
.art-kestrel .jet { width: 68px; left: calc(50% - 34px); bottom: 36%; filter: drop-shadow(0 10px 0 rgba(0,0,0,.35)); animation: weave 3.2s ease-in-out infinite; }
@keyframes weave { 0%, 100% { transform: translateX(-28px); } 50% { transform: translateX(28px); } }
.art-kestrel .curtain { position: absolute; left: 0; right: 0; top: 0; height: 52%;
  background-image: radial-gradient(circle, #fff 0 1.5px, #ff4fb0 2px 3.5px, transparent 4px), radial-gradient(circle, #fff 0 1.5px, #ff4fb0 2px 3.5px, transparent 4px); opacity: .85;
  background-size: 58px 44px, 58px 44px; background-position: 6px 0, 35px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
  animation: rain 1.6s linear infinite; }
@keyframes rain { to { background-position: 6px 44px, 35px 66px; } }
.art-kestrel .shot { position: absolute; width: 3px; height: 12px; left: calc(50% - 1.5px); bottom: 58%; background: #ffe680; box-shadow: 0 0 6px #ffd23f; border-radius: 2px; animation: weave 3.2s ease-in-out infinite, fire .4s linear infinite; }
@keyframes fire { from { margin-bottom: 0; opacity: 1; } to { margin-bottom: 70px; opacity: 0; } }

/* Bubble Tour attract: dusk over Lantern Harbor, bubbles bouncing, a harpoon going up */
.art-bubble { background: linear-gradient(180deg, #2b1462 0%, #6d2a8e 42%, #e2557a 72%, #ffb36b 100%); }
.art-bubble .hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; }
.art-bubble .lanterns { position: absolute; left: 0; right: 0; bottom: 30%; height: 6px;
  background-image: radial-gradient(circle, #fff3b0 0 1.5px, #ffb43a 2px, transparent 3.5px); background-size: 26px 6px; filter: drop-shadow(0 0 4px #ffb43a); }
.art-bubble .bub { position: absolute; border-radius: 50%; top: 0;
  background: radial-gradient(circle at 32% 30%, #fff 0 9%, transparent 11%), radial-gradient(circle at 50% 50%, var(--b) 0 62%, color-mix(in srgb, var(--b) 60%, #000) 100%);
  box-shadow: inset -4px -6px 0 rgba(0,0,0,.18), 0 0 0 2px rgba(0,0,0,.35); }
.art-bubble .b1 { --b: #4fe3ff; width: 62px; height: 62px; left: 12%; animation: hop-x1 7s linear infinite alternate, hop-y 1.6s infinite; }
.art-bubble .b2 { --b: #ff5fb8; width: 40px; height: 40px; left: 58%; animation: hop-x2 5s linear infinite alternate, hop-y2 1.2s infinite; }
.art-bubble .b3 { --b: #b88cff; width: 24px; height: 24px; left: 78%; animation: hop-x3 4s linear infinite alternate, hop-y3 .9s infinite; }
@keyframes hop-y { 0% { transform: translateY(14%); animation-timing-function: cubic-bezier(.45, 0, 1, .6); } 50% { transform: translateY(110%); animation-timing-function: cubic-bezier(0, .4, .55, 1); } 100% { transform: translateY(14%); } }
@keyframes hop-y2 { 0% { transform: translateY(70%); animation-timing-function: cubic-bezier(.45, 0, 1, .6); } 50% { transform: translateY(215%); animation-timing-function: cubic-bezier(0, .4, .55, 1); } 100% { transform: translateY(70%); } }
@keyframes hop-y3 { 0% { transform: translateY(180%); animation-timing-function: cubic-bezier(.45, 0, 1, .6); } 50% { transform: translateY(430%); animation-timing-function: cubic-bezier(0, .4, .55, 1); } 100% { transform: translateY(180%); } }
@keyframes hop-x1 { from { left: 4%; } to { left: 40%; } }
@keyframes hop-x2 { from { left: 70%; } to { left: 44%; } }
@keyframes hop-x3 { from { left: 86%; } to { left: 60%; } }
.art-bubble .kid { width: 26px; left: 30%; bottom: 8%; animation: stroll 6s steps(24) infinite alternate; }
.art-bubble .rope { position: absolute; width: 2px; left: calc(30% + 12px); bottom: 20%; height: 66%; transform-origin: bottom; background: repeating-linear-gradient(180deg, #fff 0 3px, #ffd23f 3px 6px); animation: stroll-rope 6s steps(24) infinite alternate, harpoon 1.5s ease-out infinite; }
@keyframes stroll { from { left: 22%; } to { left: 46%; } }
@keyframes stroll-rope { from { left: calc(22% + 12px); } to { left: calc(46% + 12px); } }
@keyframes harpoon { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* world board, drawn over the attract screen like a high-score table */
.board { position: relative; z-index: 3; min-height: 118px; padding: 12px 14px 14px;
  background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--c1) 10%, transparent), transparent 70%), #05040b;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--c1) 35%, transparent); }
.board .bh { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }
.board .bh b { font: 700 11px/1 var(--f-pixel); letter-spacing: .2em; color: var(--c1); text-shadow: 0 0 6px color-mix(in srgb, var(--c1) 60%, transparent); }
.board .bh span { font: 400 9px/1 var(--f-pixel); letter-spacing: .14em; color: var(--mute); }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 3.2em 3.6em 1fr auto; align-items: baseline; gap: 6px; font: 400 11px/1.2 var(--f-led); color: #fff; }
.board li .rk { color: var(--mute); font-size: 9px; }
.board li .sc { text-align: right; color: #fff; }
.board li .tag { font: 700 8px/1 var(--f-pixel); letter-spacing: .1em; color: var(--mute); border: 1px solid #3c3a58; padding: 2px 3px; border-radius: 2px; }
.board li.r1, .board li.r1 .sc { color: var(--neon-gold); text-shadow: 0 0 6px rgba(255, 210, 63, .6); font-size: 13px; }
.board li.r1 .rk { color: var(--neon-gold); font-size: 9px; }
.board li.msg { display: block; }
.board .note { font: 400 11px/1.6 var(--f-pixel); letter-spacing: .06em; color: var(--dim); }
.board .note.wait { animation: blink 1.1s steps(1) infinite; }
.board .note.bad { color: #ff8a9c; }
.board .note em { font-style: normal; color: #fff; }

.unit .u-panel { flex: 1; padding: 14px 8px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { font: 700 10px/1 var(--f-pixel); letter-spacing: .1em; padding: 5px 7px 4px; border-radius: 3px; color: var(--c1); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1) 55%, transparent); }
.unit .hook { margin: 12px 0 0; font: 400 13px/1.6 var(--f-pixel); letter-spacing: .02em; color: #e3dffa; }
.unit .facts { margin: 8px 0 0; font: 700 10px/1.4 var(--f-pixel); letter-spacing: .12em; color: var(--mute); }
.start {
  position: static; display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 8px 0; min-height: 54px; border-radius: 999px; text-decoration: none;
  font: 400 20px/1 var(--f-display); letter-spacing: .08em; color: #1a0c00;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 55%, #fff), var(--c1) 55%, color-mix(in srgb, var(--c1) 80%, var(--c2)));
  box-shadow: 0 5px 0 color-mix(in srgb, var(--c2) 55%, #000), inset 0 2px 0 rgba(255,255,255,.65), 0 0 22px color-mix(in srgb, var(--c1) 40%, transparent);
}
.start::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.start:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c2) 55%, #000), inset 0 2px 0 rgba(255,255,255,.65); }
.start .arrow { font: 700 16px/1 var(--f-pixel); }

.credits { margin: 46px auto 0; max-width: 620px; text-align: center; }
.credits h2 { margin: 0; font: 400 clamp(16px, 4.6vw, 22px)/1.3 var(--f-display); letter-spacing: .04em; color: #fff;
  text-shadow: 0 0 2px #fff, 0 0 10px var(--neon-pink), 0 0 22px rgba(255, 47, 179, .6); }
.credits p { margin: 12px 0 0; font: 400 12px/1.75 var(--f-pixel); letter-spacing: .03em; color: var(--dim); }
.credits .fine { margin-top: 18px; font-size: 10px; color: var(--mute); letter-spacing: .08em; }

/* 404 */
.over { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px; text-align: center; }
.over .neon { font: 400 clamp(44px, 14vw, 96px)/1.05 var(--f-neon); color: #ffe1f6; margin: 0;
  text-shadow: 0 0 2px #fff, 0 0 7px var(--neon-pink), 0 0 16px var(--neon-pink), 0 0 34px var(--neon-pink); animation: tube-on 1.6s linear both; }
.over p { margin: 0; font: 400 13px/1.7 var(--f-pixel); color: var(--dim); letter-spacing: .06em; }
.over .start { --c1: #33e1ff; --c2: #2a6bff; position: relative; padding: 0 26px; margin: 8px 0 0; }

@keyframes blink { 50% { opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  .unit:hover { transform: none; }
}
