/* ============================================================
   16 — RETRO ARCADE
   Konsep: arcade 80-an / CRT. Neon magenta-cyan, scanlines,
   cabinet frame, stage select, high score, canvas bonus game.
   ============================================================ */

:root {
  --arc-bg: #05010f;
  --arc-panel: #0b0620;
  --arc-panel-2: #120a2a;
  --arc-line: #2a1a4a;
  --arc-line-soft: rgba(123, 44, 255, 0.25);
  --arc-ink: #f3ecff;
  --arc-soft: #c9bce8;
  --arc-muted: #9d8fc4;
  --arc-pink: #ff2e97;
  --arc-cyan: #22e6ff;
  --arc-yellow: #ffe14d;
  --arc-purple: #7b2cff;
  --arc-green: #4dff9e;
  --arc-display: "Orbitron", "Arial Black", sans-serif;
  --arc-body: "Chakra Petch", "Trebuchet MS", sans-serif;
  --arc-pixel: "Press Start 2P", "Courier New", monospace;
  --arc-logo: "Monoton", "Arial Black", cursive;
  --arc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--arc-bg);
  color: var(--arc-ink);
  font-family: var(--arc-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.arcade-locked { overflow: hidden; }

[hidden] { display: none !important; }

::selection { background: var(--arc-pink); color: #0a0114; }

kbd {
  font-family: var(--arc-pixel); font-size: 0.55rem;
  border: 1px solid var(--arc-line); padding: 2px 4px;
  background: #100822; color: var(--arc-cyan);
}

/* ================= BACKDROP ================= */
.arcade-bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(123, 44, 255, 0.2), transparent 55%),
    radial-gradient(ellipse at 20% 20%, rgba(255, 46, 151, 0.1), transparent 45%),
    radial-gradient(ellipse at 80% 30%, rgba(34, 230, 255, 0.08), transparent 45%),
    var(--arc-bg);
}
.arcade-bg__sun {
  position: absolute; left: 50%; bottom: 22%;
  width: 260px; height: 260px; max-width: 62vw; max-height: 62vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe14d 0%, #ff8a3d 40%, #ff2e97 72%, #7b2cff 100%);
  opacity: 0.32;
  mask-image: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 18px);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 18px);
  filter: blur(0.4px);
}
.arcade-bg__horizon {
  position: absolute; left: 0; right: 0; bottom: 38%; height: 1px;
  background: var(--arc-cyan);
  box-shadow: 0 0 18px 2px rgba(34, 230, 255, 0.5), 0 0 60px 8px rgba(34, 230, 255, 0.15);
  opacity: 0.55;
}
.arcade-bg__grid {
  position: absolute; left: -30%; right: -30%; bottom: -12%; height: 62%;
  background-image:
    linear-gradient(rgba(34, 230, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 151, 0.14) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(300px) rotateX(64deg);
  transform-origin: top center;
  opacity: 0.45;
  animation: arcGrid 9s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
@keyframes arcGrid { to { background-position: 0 46px, 46px 0; } }

.invader {
  position: absolute; width: 30px; color: var(--arc-pink);
  opacity: 0.35; filter: drop-shadow(0 0 8px rgba(255, 46, 151, 0.6));
  animation: arcFloat 7s ease-in-out infinite;
}
.invader svg { width: 100%; height: auto; }
.invader--a { left: 8%; top: 20%; }
.invader--b { right: 10%; top: 34%; color: var(--arc-cyan); width: 24px; animation-delay: 1.4s; filter: drop-shadow(0 0 8px rgba(34, 230, 255, 0.6)); }
.invader--c { left: 18%; top: 58%; color: var(--arc-yellow); width: 20px; animation-delay: 2.6s; filter: drop-shadow(0 0 8px rgba(255, 225, 77, 0.5)); }
@keyframes arcFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ================= CRT ================= */
.crt-overlay {
  position: fixed; inset: 0; z-index: 650; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.24) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.5) 100%);
  animation: crtFlicker 7s steps(2) infinite;
}
.crt-overlay::before {
  content: ""; position: absolute; left: 0; right: 0; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  animation: crtScan 6s linear infinite;
}
@keyframes crtFlicker { 0%, 96%, 100% { opacity: 1; } 97% { opacity: 0.86; } 98% { opacity: 0.95; } }
@keyframes crtScan { from { top: -10%; } to { top: 110%; } }
body.crt-off .crt-overlay { display: none; }

/* ================= SHARED ================= */
.arcade-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  background: rgba(11, 6, 32, 0.8);
  border: 2px solid var(--arc-cyan);
  color: var(--arc-cyan);
  font-family: var(--arc-display); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 18px rgba(34, 230, 255, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.25s, transform 0.12s;
}
.arcade-btn::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1); pointer-events: none;
}
.arcade-btn:hover, .arcade-btn:focus-visible {
  background: var(--arc-cyan); color: #05101a;
  box-shadow: 0 0 24px rgba(34, 230, 255, 0.5);
}
.arcade-btn:active { transform: translateY(2px); }
.arcade-btn--ghost { border-color: var(--arc-pink); color: var(--arc-pink); }
.arcade-btn--ghost:hover { background: var(--arc-pink); color: #1a0412; box-shadow: 0 0 24px rgba(255, 46, 151, 0.5); }
.arcade-btn--start { border-color: var(--arc-pink); color: var(--arc-pink); font-size: 0.86rem; padding: 14px 24px; }
.arcade-btn--start:hover { background: var(--arc-pink); color: #1a0412; box-shadow: 0 0 28px rgba(255, 46, 151, 0.55); }
.arcade-btn--coin { border-color: var(--arc-yellow); color: var(--arc-yellow); }
.arcade-btn--coin:hover { background: var(--arc-yellow); color: #1a1200; box-shadow: 0 0 28px rgba(255, 225, 77, 0.5); }
.arcade-btn--full { width: 100%; }
.coin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6b0, #ffe14d 45%, #b08a00);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}

/* ================= GATE ================= */
.arcade-gate {
  position: fixed; inset: 0; z-index: 600;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(123, 44, 255, 0.28), transparent 55%),
    rgba(5, 1, 15, 0.94);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.arcade-gate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 230, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 151, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
}
.arcade-gate.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__cab {
  position: relative; z-index: 2;
  width: min(860px, 100%);
  background: #0b0620;
  border: 8px solid #180b2e;
  border-radius: 14px;
  box-shadow:
    0 0 0 2px var(--arc-line),
    0 0 0 6px #090314,
    0 0 70px rgba(255, 46, 151, 0.18),
    0 30px 80px -30px #000;
  overflow: hidden;
  animation: arcGateIn 0.6s var(--arc-ease) both;
}
@keyframes arcGateIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.gate__marquee {
  padding: 18px 16px 14px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 46, 151, 0.18), transparent 70%),
    linear-gradient(180deg, #170a2e, #0c0520);
  border-bottom: 2px solid var(--arc-line);
  box-shadow: inset 0 -12px 30px rgba(0, 0, 0, 0.5);
}
.gate__presents {
  font-family: var(--arc-pixel); font-size: 0.3rem; letter-spacing: 0.14em;
  color: var(--arc-muted); margin-bottom: 10px;
}
.gate__logo {
  font-family: var(--arc-logo); font-weight: 400;
  font-size: clamp(2rem, 9vw, 3.6rem); line-height: 0.96;
  letter-spacing: 0.02em; color: var(--arc-pink);
  text-shadow:
    0 0 10px rgba(255, 46, 151, 0.8),
    0 0 30px rgba(255, 46, 151, 0.45),
    3px 0 0 rgba(34, 230, 255, 0.55),
    -3px 0 0 rgba(255, 46, 151, 0.55);
}
.gate__logo span {
  display: block; color: var(--arc-cyan);
  text-shadow:
    0 0 10px rgba(34, 230, 255, 0.8),
    0 0 30px rgba(34, 230, 255, 0.4),
    3px 0 0 rgba(255, 46, 151, 0.55);
}
.gate__names {
  margin-top: 10px;
  font-family: var(--arc-display); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.22em; color: var(--arc-ink);
}
.gate__names em { font-style: normal; color: var(--arc-yellow); }
.gate__date {
  margin-top: 4px;
  font-family: var(--arc-pixel); font-size: 0.38rem; letter-spacing: 0.14em;
  color: var(--arc-soft);
}
.gate__screen {
  position: relative;
  padding: 18px 16px 16px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 40%, rgba(34, 230, 255, 0.05), transparent 60%),
    #05010f;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}
.gate__player {
  text-align: center; font-family: var(--arc-pixel); font-size: 0.34rem;
  letter-spacing: 0.05em; color: var(--arc-muted); margin-bottom: 14px;
}
.gate__player strong { color: var(--arc-green); font-weight: 400; }
.gate__stage { text-align: center; }
.gate__hint {
  margin-top: 10px; font-family: var(--arc-pixel); font-size: 0.28rem;
  line-height: 1.8; letter-spacing: 0.06em; color: var(--arc-muted);
  animation: arcBlink 1.6s steps(2) infinite;
}
@keyframes arcBlink { 50% { opacity: 0.25; } }
.gate__loadlabel {
  font-family: var(--arc-pixel); font-size: 0.34rem; letter-spacing: 0.08em;
  color: var(--arc-cyan); margin-bottom: 10px;
}
.gate__bar {
  max-width: 360px; height: 16px; margin: 0 auto;
  border: 2px solid var(--arc-cyan);
  background: #0a0418;
  box-shadow: inset 0 0 10px rgba(34, 230, 255, 0.12);
  cursor: pointer;
}
.gate__bar span {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--arc-cyan) 0 8px, rgba(34, 230, 255, 0.35) 8px 10px);
  box-shadow: 0 0 12px rgba(34, 230, 255, 0.6);
  transition: width 0.12s linear;
}
.gate__tip {
  margin-top: 10px; font-family: var(--arc-pixel); font-size: 0.26rem;
  line-height: 1.9; color: var(--arc-muted);
}
.gate__scores { margin-top: 18px; border-top: 1px dashed var(--arc-line); padding-top: 12px; }
.gate__scores-title {
  font-family: var(--arc-pixel); font-size: 0.3rem; letter-spacing: 0.12em;
  color: var(--arc-yellow); margin-bottom: 6px; text-align: center;
}
.scores { max-width: 420px; margin: 0 auto; }
.scores li {
  display: grid; grid-template-columns: 42px 1fr auto;
  align-items: center; gap: 8px;
  padding: 4px 0; border-bottom: 1px dotted rgba(123, 44, 255, 0.25);
  font-family: var(--arc-pixel); font-size: 0.34rem; line-height: 1.8;
  color: var(--arc-soft);
}
.scores li span { color: var(--arc-purple); }
.scores li b { font-weight: 400; letter-spacing: 0.04em; }
.scores li em { font-style: normal; color: var(--arc-cyan); }
.scores li.is-you b, .scores li.is-you em { color: var(--arc-pink); }
.scores li.is-you { animation: arcBlink 2.4s steps(2) infinite; }
.gate__controls {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, #140a28, #0a0417);
  border-top: 2px solid var(--arc-line);
}
.gate__controls p {
  font-family: var(--arc-pixel); font-size: 0.22rem; letter-spacing: 0.08em;
  color: #5e5380;
}
.gate__buttons, .cabinet__buttons { display: flex; gap: 8px; }
.gate__buttons i, .cabinet__buttons i {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #2a1a4a;
  background: radial-gradient(circle at 35% 30%, #ff6fb8, #ff2e97 60%, #8f0f52);
  box-shadow: 0 0 10px rgba(255, 46, 151, 0.35);
}
.gate__buttons i:nth-child(2), .cabinet__buttons i:nth-child(2) { background: radial-gradient(circle at 35% 30%, #8ff6ff, #22e6ff 60%, #0a6f80); box-shadow: 0 0 10px rgba(34, 230, 255, 0.35); }
.gate__buttons i:nth-child(3), .cabinet__buttons i:nth-child(3) { background: radial-gradient(circle at 35% 30%, #fff6a8, #ffe14d 60%, #8a7500); box-shadow: 0 0 10px rgba(255, 225, 77, 0.3); }
.gate__back {
  position: relative; z-index: 2;
  font-size: 0.78rem; color: var(--arc-muted); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.gate__back:hover { color: var(--arc-cyan); border-color: currentColor; }

/* Joystick */
.joy {
  position: relative;
  width: 82px; height: 82px; flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #1b0f33, #0a0417 70%);
  border: 2px solid var(--arc-line);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8), 0 0 18px rgba(123, 44, 255, 0.15);
  touch-action: none;
}
.joy::before {
  content: ""; position: absolute; inset: 12px;
  border-radius: 50%; border: 1px dashed rgba(34, 230, 255, 0.25);
}
.joy__knob {
  position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #ff8fc7, var(--arc-pink) 55%, #7d0b46);
  border: 2px solid #2a0a1c;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 46, 151, 0.4);
  transition: transform 0.08s linear;
}
.joy--static .joy__knob { transform: translate(-50%, -60%); }
.joy:focus-visible { outline: 2px solid var(--arc-cyan); outline-offset: 4px; }

/* ================= HUD ================= */
.arcade-hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: calc(50px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 8px 0;
  display: flex; align-items: center; gap: 0;
  background: #05010f;
  border-bottom: 2px solid var(--arc-line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-100%);
  transition: opacity 0.4s, transform 0.4s var(--arc-ease), visibility 0.4s;
}
body.arcade-live .arcade-hud { opacity: 1; visibility: visible; transform: none; }
.hud__cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 0 10px; border-right: 1px solid var(--arc-line);
  min-width: 0;
}
.hud__cell span {
  font-family: var(--arc-pixel); font-size: 0.26rem; letter-spacing: 0.08em;
  color: var(--arc-muted);
}
.hud__cell strong {
  font-family: var(--arc-pixel); font-size: 0.46rem; font-weight: 400;
  line-height: 1.5; font-variant-numeric: tabular-nums;
  color: var(--arc-pink);
  text-shadow: 0 0 8px rgba(255, 46, 151, 0.5);
}
.hud__cell--hi strong { color: var(--arc-cyan); text-shadow: 0 0 8px rgba(34, 230, 255, 0.4); }
.hud__cell--stage strong { color: var(--arc-yellow); text-shadow: 0 0 8px rgba(255, 225, 77, 0.4); }
.hud__right { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.hud__btn {
  padding: 6px 7px;
  background: #0d0620; border: 1px solid var(--arc-line);
  color: var(--arc-soft);
  font-family: var(--arc-pixel); font-size: 0.24rem; line-height: 1.6;
  transition: color 0.2s, border-color 0.2s;
}
.hud__btn:hover, .hud__btn[aria-expanded="true"] { color: var(--arc-cyan); border-color: var(--arc-cyan); }
.hud__btn[aria-pressed="false"] { color: #6f6394; }
.hud__back {
  width: 26px; height: 28px; display: grid; place-items: center;
  color: var(--arc-muted); text-decoration: none;
  border: 1px solid var(--arc-line); font-size: 13px;
}
.hud__back:hover { color: var(--arc-pink); border-color: var(--arc-pink); }

/* ================= APP / CABINET ================= */
.arcade-app {
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
  padding-top: calc(62px + env(safe-area-inset-top));
}
body.arcade-live .arcade-app { opacity: 1; visibility: visible; }

.cabinet {
  position: relative;
  width: min(1180px, calc(100% - 16px));
  margin: 0 auto 26px;
  background: #070212;
  border: 8px solid #150a28;
  border-radius: 14px;
  box-shadow:
    0 0 0 2px var(--arc-line),
    0 0 0 5px #090314,
    0 0 60px rgba(255, 46, 151, 0.12),
    0 30px 80px -30px #000;
  overflow: hidden;
}
.cabinet::before, .cabinet::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 3px; z-index: 3;
  background: linear-gradient(180deg, var(--arc-pink), var(--arc-purple) 45%, var(--arc-cyan));
  opacity: 0.5;
}
.cabinet::before { left: 0; }
.cabinet::after { right: 0; }
.cabinet__marquee {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px;
  background: linear-gradient(180deg, #170a2e, #0b0520);
  border-bottom: 2px solid var(--arc-line);
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.4);
}
.cabinet__logo {
  font-family: var(--arc-logo); font-size: 1.2rem; letter-spacing: 0.03em;
  color: var(--arc-pink);
  text-shadow: 0 0 10px rgba(255, 46, 151, 0.7), 2px 0 0 rgba(34, 230, 255, 0.4);
}
.cabinet__sub {
  font-family: var(--arc-pixel); font-size: 0.28rem; letter-spacing: 0.06em;
  color: var(--arc-soft);
}
.cabinet__credit {
  margin-left: auto;
  font-family: var(--arc-pixel); font-size: 0.24rem; color: var(--arc-yellow);
  border: 1px solid var(--arc-line); padding: 4px 5px;
}
.cabinet__screen {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 0%, rgba(123, 44, 255, 0.08), transparent 55%),
    #06010f;
  border-bottom: 2px solid var(--arc-line);
}
.cabinet__controls {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #120827, #090314);
  flex-wrap: wrap;
}
.cabinet__hint {
  font-family: var(--arc-pixel); font-size: 0.22rem; letter-spacing: 0.06em;
  color: #5e5380; line-height: 1.9; text-align: center;
}

/* ================= SCREENS ================= */
.screen {
  position: relative;
  padding: 48px max(16px, calc((100% - 900px) / 2)) 52px;
  border-top: 1px solid rgba(123, 44, 255, 0.18);
}
.screen:first-child { border-top: 0; }
.screen--hero { padding-top: 54px; padding-bottom: 40px; text-align: center; overflow: hidden; }
.screen--hero::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 38%;
  background-image:
    linear-gradient(rgba(34, 230, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 151, 0.1) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(240px) rotateX(62deg);
  transform-origin: top center;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 50%);
}
.screen__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 12px; margin-bottom: 10px;
}
.screen__stage {
  font-family: var(--arc-pixel); font-size: 0.34rem; letter-spacing: 0.04em;
  color: var(--arc-pink);
  border: 2px solid rgba(255, 46, 151, 0.45);
  background: rgba(255, 46, 151, 0.06);
  padding: 6px 7px; white-space: nowrap;
  text-shadow: 0 0 8px rgba(255, 46, 151, 0.5);
}
.screen__kicker {
  font-family: var(--arc-pixel); font-size: 0.28rem; letter-spacing: 0.12em;
  color: var(--arc-cyan); margin-bottom: 5px;
}
.screen__head h2 {
  font-family: var(--arc-display); font-weight: 900;
  font-size: clamp(1.35rem, 5.4vw, 2.1rem); line-height: 1.1;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--arc-ink);
  text-shadow: 2px 0 0 rgba(255, 46, 151, 0.35), -2px 0 0 rgba(34, 230, 255, 0.3);
}
.screen__meta {
  font-family: var(--arc-pixel); font-size: 0.24rem; letter-spacing: 0.06em;
  color: var(--arc-muted); border: 1px solid var(--arc-line);
  padding: 5px 6px; white-space: nowrap;
}
.screen__lead {
  max-width: 62ch; font-size: 0.96rem; color: var(--arc-muted);
  line-height: 1.65; margin-bottom: 20px;
}

/* ================= HERO ================= */
.hero__title {
  font-family: var(--arc-display); font-weight: 900;
  font-size: clamp(1.8rem, 9.2vw, 4.2rem);
  line-height: 1.02; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--arc-ink);
  text-shadow:
    3px 0 0 rgba(255, 46, 151, 0.65),
    -3px 0 0 rgba(34, 230, 255, 0.65),
    0 0 30px rgba(255, 46, 151, 0.25);
  margin: 10px 0 10px;
}
.hero__title span { color: var(--arc-pink); }
.hero__sub {
  font-family: var(--arc-pixel); font-size: 0.4rem; letter-spacing: 0.12em;
  color: var(--arc-cyan); margin-bottom: 8px;
}
.hero__date {
  font-family: var(--arc-pixel); font-size: 0.4rem; letter-spacing: 0.12em;
  color: var(--arc-yellow); margin-bottom: 14px;
}
.hero__welcome {
  font-family: var(--arc-pixel); font-size: 0.28rem; letter-spacing: 0.04em;
  color: var(--arc-muted); margin-bottom: 12px;
}
.hero__welcome strong { color: var(--arc-green); font-weight: 400; }
.hero__lead {
  max-width: 56ch; margin: 0 auto 18px;
  font-size: 0.98rem; line-height: 1.65; color: var(--arc-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-bottom: 24px; }
.hero__scores {
  max-width: 430px; margin: 0 auto 18px;
  border: 1px solid var(--arc-line);
  background: rgba(11, 6, 32, 0.72);
  padding: 10px 12px;
}
.hero__scores-title {
  font-family: var(--arc-pixel); font-size: 0.28rem; letter-spacing: 0.12em;
  color: var(--arc-yellow); margin-bottom: 4px;
}
.hero__scroll {
  font-family: var(--arc-pixel); font-size: 0.26rem; letter-spacing: 0.1em;
  color: #6f6394; animation: arcBlink 2s steps(2) infinite;
}

/* ================= STAGE SELECT ================= */
.stage-select {
  padding: 16px max(16px, calc((100% - 900px) / 2));
  border-top: 1px solid var(--arc-line);
  border-bottom: 1px solid var(--arc-line);
  background: rgba(11, 6, 32, 0.6);
}
.stage-select__title {
  font-family: var(--arc-pixel); font-size: 0.28rem; letter-spacing: 0.12em;
  color: var(--arc-cyan); margin-bottom: 8px;
}
.stage-select__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.stage-select a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  border: 1px solid var(--arc-line);
  background: rgba(18, 10, 42, 0.55);
  color: var(--arc-soft); text-decoration: none;
  font-family: var(--arc-display); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.stage-select a b {
  font-family: var(--arc-pixel); font-size: 0.26rem; font-weight: 400;
  color: var(--arc-pink);
}
.stage-select a:hover, .stage-select a:focus-visible {
  border-color: var(--arc-cyan); color: var(--arc-ink);
  background: rgba(34, 230, 255, 0.06);
}

/* ================= PLAYERS ================= */
.players { display: grid; gap: 14px; }
.player {
  position: relative;
  border: 2px solid var(--arc-line);
  background: linear-gradient(180deg, var(--arc-panel-2), #0a0420);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--arc-ease), box-shadow 0.3s;
}
.player--p1 { border-top: 3px solid var(--arc-pink); }
.player--p2 { border-top: 3px solid var(--arc-cyan); }
.player:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px #000; }
.player--p1:hover { border-color: var(--arc-pink); }
.player--p2:hover { border-color: var(--arc-cyan); }
.player__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #080312; }
.player__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(0.92) contrast(1.03); transition: transform 0.7s var(--arc-ease); }
.player:hover .player__media img { transform: scale(1.035); }
.player__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    linear-gradient(to top, rgba(6, 1, 15, 0.85), transparent 55%);
}
.player__badge {
  position: absolute; z-index: 2; left: 9px; top: 9px;
  font-family: var(--arc-pixel); font-size: 0.3rem; letter-spacing: 0.06em;
  color: #0a0114; background: var(--arc-pink);
  padding: 4px 6px; box-shadow: 0 0 12px rgba(255, 46, 151, 0.5);
}
.player--p2 .player__badge { background: var(--arc-cyan); box-shadow: 0 0 12px rgba(34, 230, 255, 0.5); }
.player__role {
  position: absolute; z-index: 2; left: 11px; bottom: 9px;
  font-family: var(--arc-pixel); font-size: 0.26rem; letter-spacing: 0.05em;
  color: var(--arc-soft);
}
.player__body { padding: 14px 15px 16px; }
.player__name {
  font-family: var(--arc-display); font-weight: 900;
  font-size: 1.35rem; line-height: 1.1; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--arc-ink);
}
.player__nick { font-size: 0.78rem; color: var(--arc-muted); margin-top: 2px; }
.player__bio { font-size: 0.9rem; line-height: 1.6; color: var(--arc-soft); margin: 9px 0 12px; }
.player__stats { display: grid; gap: 6px; margin-bottom: 12px; }
.player__stat { display: grid; grid-template-columns: 70px 1fr 26px; align-items: center; gap: 7px; }
.player__stat span { font-family: var(--arc-pixel); font-size: 0.24rem; color: var(--arc-muted); }
.player__stat em { font-style: normal; font-family: var(--arc-pixel); font-size: 0.28rem; color: var(--arc-cyan); text-align: right; }
.player__bar { height: 7px; border: 1px solid var(--arc-line); background: #0a0418; padding: 1px; }
.player__bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--arc-pink), var(--arc-purple));
  box-shadow: 0 0 8px rgba(255, 46, 151, 0.4);
  transition: width 1.1s var(--arc-ease) 0.2s;
}
.player--p2 .player__bar i { background: linear-gradient(90deg, var(--arc-cyan), var(--arc-green)); box-shadow: 0 0 8px rgba(34, 230, 255, 0.4); }
.player.is-in .player__bar i { width: var(--v, 80%); }
.player__parents { font-size: 0.8rem; line-height: 1.5; color: var(--arc-muted); border-top: 1px dashed var(--arc-line); padding-top: 9px; }
.player__ig {
  display: inline-block; margin-top: 7px;
  font-size: 0.82rem; color: var(--arc-cyan); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.player__ig:hover { border-color: currentColor; }

/* ================= STORY ================= */
.story-list { display: grid; gap: 6px; }
.story-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 11px;
  width: 100%; text-align: left;
  padding: 10px 11px;
  border: 1px solid var(--arc-line);
  background: rgba(18, 10, 42, 0.55);
  color: var(--arc-soft);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.story-row:hover {
  border-color: var(--arc-pink); background: rgba(255, 46, 151, 0.06);
  transform: translateX(3px);
}
.story-row__num {
  font-family: var(--arc-pixel); font-size: 0.34rem; color: var(--arc-pink);
  border-right: 1px solid var(--arc-line); padding-right: 10px;
}
.story-row__date {
  display: block; font-family: var(--arc-pixel); font-size: 0.24rem;
  letter-spacing: 0.05em; color: var(--arc-purple); margin-bottom: 3px;
}
.story-row__title {
  display: block; font-family: var(--arc-display); font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.02em; color: var(--arc-ink);
}
.story-row__status {
  font-family: var(--arc-pixel); font-size: 0.26rem; color: var(--arc-cyan);
  white-space: nowrap;
}
.story-row.is-cleared { border-color: rgba(77, 255, 158, 0.35); }
.story-row.is-cleared .story-row__status { color: var(--arc-green); }

/* ================= BOSS ================= */
.boss-date {
  font-family: var(--arc-pixel); font-size: 0.36rem; letter-spacing: 0.08em;
  color: var(--arc-yellow); margin-bottom: 14px;
  text-shadow: 0 0 10px rgba(255, 225, 77, 0.3);
}
.bosses { display: grid; gap: 12px; }
.boss-card {
  position: relative;
  border: 2px solid var(--arc-line);
  background: linear-gradient(180deg, var(--arc-panel-2), #0a0420);
  padding: 13px 14px 15px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.boss-card:hover { border-color: var(--arc-pink); }
.boss-card--reception:hover { border-color: var(--arc-cyan); }
.boss-card__top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.boss-card__tag {
  font-family: var(--arc-pixel); font-size: 0.26rem; letter-spacing: 0.06em;
  color: var(--arc-pink);
}
.boss-card--reception .boss-card__tag { color: var(--arc-cyan); }
.boss-card__hp {
  flex: 1; height: 7px; border: 1px solid var(--arc-line);
  background: #0a0418; padding: 1px;
}
.boss-card__hp i {
  display: block; height: 100%; width: 100%;
  background: repeating-linear-gradient(90deg, var(--arc-pink) 0 6px, var(--arc-purple) 6px 12px);
  box-shadow: 0 0 8px rgba(255, 46, 151, 0.4);
  animation: arcHp 3s linear infinite;
  background-size: 24px 100%;
}
.boss-card--reception .boss-card__hp i { background: repeating-linear-gradient(90deg, var(--arc-cyan) 0 6px, var(--arc-green) 6px 12px); background-size: 24px 100%; }
@keyframes arcHp { to { background-position: 24px 0; } }
.boss-card__name {
  font-family: var(--arc-display); font-weight: 900;
  font-size: 1.2rem; line-height: 1.15; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--arc-ink);
  margin-bottom: 3px;
}
.boss-card__time {
  display: inline-block; font-family: var(--arc-pixel); font-size: 0.26rem;
  color: #0a0114; background: var(--arc-yellow); padding: 4px 5px;
  margin-bottom: 7px;
}
.boss-card__venue { font-size: 1.02rem; font-weight: 600; color: var(--arc-soft); }
.boss-card__addr { font-size: 0.84rem; line-height: 1.5; color: var(--arc-muted); margin: 2px 0 11px; }
.boss-card__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.boss-card__actions .arcade-btn { padding: 8px 9px; font-size: 0.58rem; border-width: 1px; }

/* ================= COUNTDOWN ================= */
.screen--time { text-align: center; }
.screen--time .screen__head { text-align: left; }
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px;
  max-width: 620px; margin: 18px auto 0;
}
.countdown__cell {
  border: 2px solid var(--arc-line);
  background: linear-gradient(180deg, #0d0620, #06010f);
  padding: 13px 3px 10px;
  box-shadow: inset 0 0 22px rgba(34, 230, 255, 0.05);
  position: relative;
}
.countdown__cell::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1px;
  background: rgba(34, 230, 255, 0.1);
}
.countdown__cell strong {
  display: block; font-family: var(--arc-display); font-weight: 900;
  font-size: clamp(1.25rem, 6vw, 2.5rem); line-height: 1.15;
  color: var(--arc-cyan); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(34, 230, 255, 0.55), 2px 0 0 rgba(255, 46, 151, 0.4);
}
.countdown__cell:nth-child(2) strong { color: var(--arc-pink); text-shadow: 0 0 12px rgba(255, 46, 151, 0.55), -2px 0 0 rgba(34, 230, 255, 0.4); }
.countdown__cell span {
  display: block; margin-top: 5px;
  font-family: var(--arc-pixel); font-size: 0.22rem; letter-spacing: 0.06em;
  color: var(--arc-muted);
}
.countdown__date {
  margin-top: 12px; font-family: var(--arc-pixel); font-size: 0.32rem;
  letter-spacing: 0.06em; color: var(--arc-soft);
}
.countdown__bar {
  max-width: 500px; height: 5px; margin: 14px auto 0;
  background: #0a0418; border: 1px solid var(--arc-line);
  overflow: hidden;
}
.countdown__bar span {
  display: block; height: 100%; width: 100%;
  background: repeating-linear-gradient(90deg, var(--arc-pink) 0 10px, var(--arc-cyan) 10px 20px);
  animation: arcBar 2.4s linear infinite;
  background-size: 20px 100%;
}
@keyframes arcBar { to { background-position: 20px 0; } }

/* ================= GALLERY ================= */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery-item {
  position: relative; padding: 0;
  border: 2px solid var(--arc-line);
  background: #0a0418;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.25s var(--arc-ease);
}
.gallery-item:hover { border-color: var(--arc-pink); transform: translateY(-3px); }
.gallery-item:nth-child(even):hover { border-color: var(--arc-cyan); }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: saturate(0.9) contrast(1.04); transition: transform 0.6s var(--arc-ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__tag {
  position: absolute; left: 5px; top: 5px; z-index: 2;
  font-family: var(--arc-pixel); font-size: 0.2rem; letter-spacing: 0.04em;
  color: var(--arc-green); background: rgba(5, 1, 15, 0.8);
  border: 1px solid rgba(77, 255, 158, 0.35);
  padding: 3px 4px;
}
.gallery-item__num {
  position: absolute; right: 5px; top: 5px; z-index: 2;
  font-family: var(--arc-pixel); font-size: 0.2rem;
  color: var(--arc-muted); background: rgba(5, 1, 15, 0.7);
  padding: 3px 4px;
}
.gallery-item__cap {
  display: block; padding: 6px 7px;
  font-family: var(--arc-display); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--arc-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-item:hover .gallery-item__cap { color: var(--arc-ink); }

/* ================= WORLD SELECT ================= */
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.world {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 8px 10px;
  background: rgba(18, 10, 42, 0.6);
  border: 2px solid var(--arc-line);
  color: var(--arc-soft);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.world:hover { transform: translateY(-3px); border-color: var(--arc-purple); }
.world.is-active { border-color: var(--arc-pink); background: rgba(255, 46, 151, 0.06); box-shadow: 0 0 22px rgba(255, 46, 151, 0.12); }
.world__planet {
  position: relative;
  width: 70px; height: 70px; margin-bottom: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #9ff6ff, #22e6ff 30%, #0f6b8a 62%, #061c26 100%);
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, 0.35), 0 0 20px rgba(34, 230, 255, 0.3);
  overflow: hidden;
}
.world__planet::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, #4dff9e 6px, transparent 7px),
    radial-gradient(circle at 66% 30%, #4dff9e 5px, transparent 6px),
    radial-gradient(circle at 54% 68%, #4dff9e 7px, transparent 8px),
    radial-gradient(circle at 22% 72%, #4dff9e 4px, transparent 5px);
}
.world__planet--reception {
  background: radial-gradient(circle at 32% 28%, #ffd1ea, #ff2e97 32%, #7b2cff 65%, #22063f 100%);
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 46, 151, 0.3);
}
.world__planet--reception::before {
  background-image:
    radial-gradient(circle at 30% 40%, #ffe14d 5px, transparent 6px),
    radial-gradient(circle at 66% 30%, #22e6ff 4px, transparent 5px),
    radial-gradient(circle at 54% 68%, #ffe14d 6px, transparent 7px);
}
.world__planet::after {
  content: ""; position: absolute; left: -12%; right: -12%; top: 44%;
  height: 12px; border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%; transform: rotate(-18deg);
}
.world__code { font-family: var(--arc-pixel); font-size: 0.22rem; color: var(--arc-muted); }
.world strong { font-family: var(--arc-display); font-size: 0.92rem; font-weight: 900; letter-spacing: 0.06em; color: var(--arc-ink); }
.world small { font-size: 0.72rem; color: var(--arc-muted); text-align: center; line-height: 1.3; }
.world.is-active .world__code { color: var(--arc-pink); }

.worldinfo {
  border: 2px solid var(--arc-line);
  background: linear-gradient(180deg, var(--arc-panel-2), #0a0420);
  padding: 14px 15px;
  animation: arcInfo 0.3s var(--arc-ease);
}
@keyframes arcInfo { from { opacity: 0; transform: translateY(6px); } }
.worldinfo__tag { font-family: var(--arc-pixel); font-size: 0.26rem; color: var(--arc-cyan); margin-bottom: 5px; }
.worldinfo__name { font-family: var(--arc-display); font-size: 1.3rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; color: var(--arc-ink); }
.worldinfo__rows { display: grid; gap: 3px; margin: 8px 0 11px; }
.worldinfo__row { display: flex; gap: 8px; font-size: 0.88rem; color: var(--arc-soft); line-height: 1.45; }
.worldinfo__row span {
  flex: 0 0 62px; font-family: var(--arc-pixel); font-size: 0.22rem;
  color: var(--arc-muted); padding-top: 4px;
}
.worldinfo__actions { display: flex; flex-wrap: wrap; gap: 7px; }
.worldinfo__actions .arcade-btn { padding: 8px 9px; font-size: 0.58rem; border-width: 1px; }

/* ================= RSVP ================= */
.continue {
  max-width: 620px; margin: 0 auto;
  border: 2px solid var(--arc-pink);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 46, 151, 0.12), transparent 60%),
    linear-gradient(180deg, #120a2a, #080314);
  padding: 18px 16px 20px;
  box-shadow: 0 0 40px rgba(255, 46, 151, 0.12);
}
.continue__prompt {
  text-align: center;
  font-family: var(--arc-pixel); font-size: clamp(1.1rem, 6vw, 1.8rem);
  color: var(--arc-pink); letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(255, 46, 151, 0.6);
  animation: arcBlink 1.6s steps(2) infinite;
  margin-bottom: 6px;
}
.continue__sub { text-align: center; font-size: 0.88rem; color: var(--arc-muted); margin-bottom: 14px; }
.continue__form { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field > span {
  font-family: var(--arc-pixel); font-size: 0.24rem; letter-spacing: 0.05em;
  color: var(--arc-cyan);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 10px;
  background: #0a0418;
  border: 1px solid var(--arc-line);
  color: var(--arc-ink);
  font-family: var(--arc-body); font-size: 0.94rem;
  outline: 0; -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--arc-cyan) 50%), linear-gradient(135deg, var(--arc-cyan) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #5e5380; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--arc-cyan); box-shadow: 0 0 0 3px rgba(34, 230, 255, 0.12);
  background: #0d0620;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.continue__hint { font-size: 0.78rem; color: var(--arc-muted); text-align: center; }
.continue__done {
  font-family: var(--arc-pixel); font-size: 0.3rem; line-height: 1.9;
  color: var(--arc-green); background: rgba(77, 255, 158, 0.08);
  border: 1px solid rgba(77, 255, 158, 0.4); padding: 8px 9px; text-align: center;
}

/* ================= BONUS GAME ================= */
.screen--bonus { background: radial-gradient(ellipse at 50% 30%, rgba(123, 44, 255, 0.12), transparent 65%); }
.game { max-width: 720px; margin: 0 auto; }
.game__frame {
  position: relative;
  border: 2px solid var(--arc-cyan);
  background: #04010b;
  box-shadow: 0 0 26px rgba(34, 230, 255, 0.18), inset 0 0 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
#gameCanvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; image-rendering: pixelated; }
.game__hud {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  display: flex; justify-content: space-between; gap: 8px;
  padding: 7px 9px;
  font-family: var(--arc-pixel); font-size: 0.26rem; color: var(--arc-soft);
  background: linear-gradient(180deg, rgba(4, 1, 11, 0.9), transparent);
  pointer-events: none;
}
.game__hud b { color: var(--arc-yellow); font-weight: 400; }
.game__overlay, .game__result {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  text-align: center; padding: 18px;
  background: rgba(4, 1, 11, 0.82);
  backdrop-filter: blur(2px);
}
.game__title {
  font-family: var(--arc-display); font-weight: 900;
  font-size: clamp(1.3rem, 5vw, 2rem); letter-spacing: 0.08em;
  color: var(--arc-pink);
  text-shadow: 0 0 16px rgba(255, 46, 151, 0.6), 2px 0 0 rgba(34, 230, 255, 0.5);
}
.game__copy { max-width: 42ch; font-size: 0.86rem; line-height: 1.5; color: var(--arc-soft); }
.game__note { font-family: var(--arc-pixel); font-size: 0.22rem; color: var(--arc-muted); line-height: 1.9; }
.game__result-kicker { font-family: var(--arc-pixel); font-size: 0.3rem; color: var(--arc-green); letter-spacing: 0.06em; }
.game__result-score {
  font-family: var(--arc-display); font-weight: 900;
  font-size: clamp(1.5rem, 6vw, 2.4rem); color: var(--arc-yellow);
  text-shadow: 0 0 18px rgba(255, 225, 77, 0.4);
}
.game__result-msg { max-width: 42ch; font-size: 0.84rem; line-height: 1.5; color: var(--arc-soft); }
.game__controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 12px; flex-wrap: wrap;
}
.game__controls p { font-size: 0.82rem; color: var(--arc-muted); max-width: 40ch; line-height: 1.5; }

/* ================= CLOSING ================= */
.screen--over { text-align: center; padding-top: 60px; padding-bottom: 60px; }
.over__kicker {
  font-family: var(--arc-pixel); font-size: 0.3rem; letter-spacing: 0.16em;
  color: var(--arc-muted); margin-bottom: 12px;
}
.over__title {
  font-family: var(--arc-display); font-weight: 900;
  font-size: clamp(2.6rem, 14vw, 5.6rem); line-height: 0.9;
  letter-spacing: 0.02em; color: var(--arc-ink);
  text-shadow:
    3px 0 0 rgba(255, 46, 151, 0.7),
    -3px 0 0 rgba(34, 230, 255, 0.7),
    0 0 30px rgba(255, 46, 151, 0.25);
  margin-bottom: 8px;
}
.over__sub {
  font-family: var(--arc-pixel); font-size: 0.3rem; letter-spacing: 0.1em;
  color: var(--arc-pink); margin-bottom: 22px;
}
.over__quote {
  max-width: 52ch; margin: 0 auto 14px;
  font-size: 1rem; line-height: 1.7; color: var(--arc-soft);
  border-top: 1px dashed var(--arc-line); border-bottom: 1px dashed var(--arc-line);
  padding: 14px 4px;
}
.over__message { max-width: 54ch; margin: 0 auto 8px; font-size: 0.92rem; line-height: 1.65; color: var(--arc-muted); }
.over__thanks { font-size: 0.86rem; color: #7b6ea0; }
.over__hash {
  font-family: var(--arc-pixel); font-size: clamp(0.65rem, 3.2vw, 0.9rem);
  color: var(--arc-yellow); margin: 18px 0 16px;
  text-shadow: 0 0 14px rgba(255, 225, 77, 0.35);
}
.over__scores {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1px solid var(--arc-line); background: rgba(11, 6, 32, 0.7);
  padding: 9px 24px; margin-bottom: 18px;
}
.over__scores p { font-family: var(--arc-pixel); font-size: 0.24rem; color: var(--arc-muted); }
.over__scores strong {
  font-family: var(--arc-display); font-weight: 900; font-size: 1.5rem;
  color: var(--arc-pink); text-shadow: 0 0 12px rgba(255, 46, 151, 0.5);
}
.over__scores span { font-family: var(--arc-pixel); font-size: 0.22rem; color: var(--arc-cyan); }
.over__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-bottom: 18px; }
.over__credit { font-family: var(--arc-pixel); font-size: 0.22rem; line-height: 2; color: #5e5380; }

/* ================= STAGE MENU ================= */
.stage-menu {
  position: fixed; z-index: 340;
  top: calc(58px + env(safe-area-inset-top)); right: 8px;
  width: min(300px, calc(100vw - 16px));
  background: #0d0620;
  border: 2px solid var(--arc-cyan);
  box-shadow: 0 0 30px rgba(34, 230, 255, 0.16), 6px 6px 0 rgba(0, 0, 0, 0.4);
  padding: 12px;
  animation: arcMenu 0.22s var(--arc-ease);
}
@keyframes arcMenu { from { opacity: 0; transform: translateY(-6px); } }
.stage-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--arc-line);
}
.stage-menu__head p { font-family: var(--arc-pixel); font-size: 0.28rem; color: var(--arc-cyan); }
.stage-menu__head button { background: none; border: 0; color: var(--arc-muted); font-size: 13px; }
.stage-menu__head button:hover { color: var(--arc-pink); }
.stage-menu > a {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 3px; border-bottom: 1px solid rgba(123, 44, 255, 0.16);
  color: var(--arc-soft); text-decoration: none;
  font-family: var(--arc-display); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.stage-menu > a span { font-family: var(--arc-pixel); font-size: 0.24rem; color: var(--arc-pink); width: 22px; }
.stage-menu > a:hover { color: var(--arc-cyan); }
.stage-menu__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.stage-menu__foot button, .stage-menu__foot a {
  background: none; border: 0; padding: 4px 0; color: var(--arc-muted);
  font-family: var(--arc-pixel); font-size: 0.24rem; text-decoration: none;
}
.stage-menu__foot button:hover, .stage-menu__foot a:hover { color: var(--arc-cyan); }

/* ================= MODAL ================= */
.arcade-modal {
  position: fixed; inset: 0; z-index: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.arcade-modal__backdrop {
  position: absolute; inset: 0; background: rgba(3, 0, 9, 0.86);
  backdrop-filter: blur(4px);
}
.arcade-modal__card {
  position: relative; z-index: 2;
  width: min(620px, 100%); max-height: 92vh; overflow-y: auto;
  background: #0b0620;
  border: 2px solid var(--arc-pink);
  box-shadow: 0 0 50px rgba(255, 46, 151, 0.22);
  padding: 14px 15px 18px;
  animation: arcModal 0.3s var(--arc-ease);
}
@keyframes arcModal { from { opacity: 0; transform: scale(0.97) translateY(8px); } }
.arcade-modal__close {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  width: 28px; height: 28px;
  background: rgba(5, 1, 15, 0.8); border: 1px solid var(--arc-line);
  color: var(--arc-soft); font-size: 13px;
}
.arcade-modal__close:hover { color: var(--arc-pink); border-color: var(--arc-pink); }
.arcade-modal__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--arc-line); margin-bottom: 12px; background: #05010f; }
.arcade-modal__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.03); }
.arcade-modal__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.arcade-modal__stage { font-family: var(--arc-pixel); font-size: 0.28rem; color: var(--arc-cyan); margin-bottom: 4px; }
.arcade-modal__title {
  font-family: var(--arc-display); font-weight: 900;
  font-size: clamp(1.2rem, 5vw, 1.7rem); line-height: 1.15;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--arc-ink);
  text-shadow: 2px 0 0 rgba(255, 46, 151, 0.3);
}
.arcade-modal__date { font-family: var(--arc-pixel); font-size: 0.26rem; color: var(--arc-purple); margin: 4px 0 10px; }
.arcade-modal__text { font-size: 0.92rem; line-height: 1.65; color: var(--arc-soft); }
.arcade-modal__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.arcade-modal__actions .arcade-btn { padding: 8px 10px; font-size: 0.58rem; border-width: 1px; }
.arcade-modal__actions .arcade-btn:nth-child(3) { margin-left: auto; }

/* ================= TOAST ================= */
.arcade-toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 720; transform: translateX(-50%) translateY(8px);
  padding: 8px 13px;
  background: #0d0620; border: 1px solid var(--arc-cyan);
  color: var(--arc-ink);
  font-family: var(--arc-pixel); font-size: 0.26rem; line-height: 1.9;
  text-align: center; box-shadow: 0 0 20px rgba(34, 230, 255, 0.2);
  opacity: 0; transition: opacity 0.2s, transform 0.25s var(--arc-ease);
  pointer-events: none; max-width: calc(100vw - 24px);
}
.arcade-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= REVEAL ================= */
[data-reveal] { transform: translateY(16px); transition-duration: 0.75s; }

/* ================= RESPONSIVE ================= */
@media (min-width: 560px) {
  .stage-select__grid { grid-template-columns: repeat(4, 1fr); }
  .players { grid-template-columns: 1fr 1fr; }
  .bosses { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .countdown { gap: 10px; }
  .gate__screen { padding: 22px 22px 18px; }
  .gate__cab { border-width: 10px; }
  .screen { padding-top: 54px; padding-bottom: 58px; }
}

@media (min-width: 780px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .screen__head { gap: 16px; }
  .screen { padding-left: max(22px, calc((100% - 940px) / 2)); padding-right: max(22px, calc((100% - 940px) / 2)); }
  .cabinet { width: min(1180px, calc(100% - 40px)); }
  .gate__logo { font-size: 3.4rem; }
  .hero__lead { font-size: 1.02rem; }
  .game__frame { border-width: 3px; }
}

@media (max-width: 480px) {
  .hud__cell { padding: 0 6px; }
  .hud__cell--hi { display: none; }
  .hud__cell strong { font-size: 0.38rem; }
  .hud__cell span { font-size: 0.22rem; }
  .hud__btn { font-size: 0.2rem; padding: 5px 4px; }
  .hud__back { display: none; }
  .cabinet { width: calc(100% - 8px); border-width: 5px; border-radius: 8px; }
  .cabinet__marquee { padding: 6px 9px; }
  .cabinet__logo { font-size: 1rem; }
  .cabinet__sub { display: none; }
  .screen { padding-left: 14px; padding-right: 14px; }
  .screen__meta { display: none; }
  .screen__head { gap: 8px; }
  .hero__title { font-size: 1.7rem; }
  .hero__sub, .hero__date { font-size: 0.32rem; }
  .stage-select { padding-left: 12px; padding-right: 12px; }
  .stage-select a { font-size: 0.54rem; padding: 6px; }
  .player__name { font-size: 1.15rem; }
  .world__planet { width: 58px; height: 58px; }
  .world strong { font-size: 0.78rem; }
  .world small { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .countdown { gap: 4px; }
  .countdown__cell { padding: 10px 2px 8px; }
  .countdown__cell span { font-size: 0.18rem; }
  .story-row { grid-template-columns: auto 1fr; }
  .story-row__status { display: none; }
  .gate__names { font-size: 0.82rem; }
  .gate__logo { font-size: 2rem; }
  .gate__player { font-size: 0.28rem; }
  .scores li { font-size: 0.28rem; grid-template-columns: 34px 1fr auto; }
  .game__hud { font-size: 0.22rem; }
  .game__overlay, .game__result { padding: 10px; gap: 5px; }
  .game__copy { font-size: 0.78rem; }
  .game__title { font-size: 1.15rem; }
  .over__title { font-size: 2.6rem; }
}

@media (max-width: 360px) {
  .hud__cell--stage { display: none; }
  .hud__btn { font-size: 0.18rem; }
  .screen__stage { font-size: 0.28rem; padding: 5px; }
  .hero__title { font-size: 1.45rem; }
  .countdown__cell strong { font-size: 1.1rem; }
  .gate__cab { border-width: 5px; }
  .gate__screen { padding: 14px 10px 12px; }
  .gate__logo { font-size: 1.7rem; }
  .gate__hint { font-size: 0.24rem; }
  .gate__controls { gap: 12px; }
  .gate__controls p { display: none; }
  .cabinet__controls { gap: 14px; }
  .cabinet__hint { display: none; }
  .joy { width: 72px; height: 72px; }
  .joy__knob { width: 30px; height: 30px; }
}

@media (max-height: 720px) {
  .arcade-gate { justify-content: center; padding-top: 10px; }
  .gate__cab { margin: 0 auto; }
  .gate__marquee { padding: 10px 14px; }
  .gate__logo { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .gate__scores { display: none; }
  .gate__controls { padding: 8px 12px; }
  .gate__back { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .crt-overlay, .crt-overlay::before, .arcade-bg__grid, .invader,
  .gate__hint, .scores li.is-you, .continue__prompt, .hero__scroll,
  .countdown__bar span, .boss-card__hp i { animation: none !important; }
  .gate__cab, .arcade-modal__card, .worldinfo, .stage-menu { animation: none; }
  .player:hover, .gallery-item:hover, .world:hover, .story-row:hover { transform: none; }
  .player.is-in .player__bar i { transition: none; }
}
