/* ═══════════════════════════════════════════════════════════════
   NEON ARCADE — youxi--1--129 index stylesheet
   A late-night coin-op hall: cabinet marquees, CRT scanlines,
   high-score boards, token trays, joysticks and neon signage.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --void: #08070F;
  --cab: #12101F;
  --cab-2: #1A1730;
  --panel: #221E3A;
  --panel-2: #2C2750;
  --line: rgba(123, 63, 228, .22);
  --line-2: rgba(123, 63, 228, .45);
  --magenta: #FF2E88;
  --cyan: #21E6E6;
  --amber: #FFC531;
  --violet: #7B3FE4;
  --lime: #A6FF3F;
  --ink: #F3F0FF;
  --ink-soft: #A79FC7;
  --ink-dim: #665E88;
  --display: 'Impact', 'Haettenschweiler', 'Arial Black', 'PingFang SC', sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
  --mono: 'Courier New', 'Consolas', monospace;
  --sec-gap: 34px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; overflow-x: hidden; }

[v-cloak] { display: none !important; }

/* ── base element resets — no link underlines anywhere ─────── */
a { color: inherit; text-decoration: none; }
a:hover, a:focus, a:active { text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 40px;
}

/* hall floor glow + far neon reflections */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% -6%, rgba(255, 46, 136, .10), transparent 68%),
    radial-gradient(680px 400px at 92% 8%, rgba(33, 230, 230, .09), transparent 70%),
    radial-gradient(900px 520px at 50% 108%, rgba(123, 63, 228, .12), transparent 72%);
}

.wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ── shared: neon headbar ──────────────────────────────────── */
.headbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(123, 63, 228, .18), rgba(123, 63, 228, .05)), var(--cab);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 18px rgba(123, 63, 228, .18);
}

.headbar-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta), 0 0 16px rgba(255, 46, 136, .6);
  animation: ledblink 1.6s steps(1, end) infinite;
}

@keyframes ledblink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }

.headbar-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 6px rgba(255, 46, 136, .85), 0 0 18px rgba(255, 46, 136, .45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.headbar-line {
  flex: 1;
  height: 3px;
  min-width: 16px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(33, 230, 230, .75) 0 5px, transparent 5px 11px);
  box-shadow: 0 0 8px rgba(33, 230, 230, .45);
}

.headbar-tag {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(33, 230, 230, .5);
  border-radius: 4px;
  padding: 3px 7px;
  background: rgba(33, 230, 230, .1);
  white-space: nowrap;
}

/* ── shared: chips & stars ─────────────────────────────────── */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .04);
}

.chip-magenta { color: #FF9AC4; border-color: rgba(255, 46, 136, .55); background: rgba(255, 46, 136, .14); }
.chip-cyan { color: #93F5F5; border-color: rgba(33, 230, 230, .5); background: rgba(33, 230, 230, .12); }
.chip-amber { color: #FFE08A; border-color: rgba(255, 197, 49, .5); background: rgba(255, 197, 49, .13); }
.chip-violet { color: #C4A9FF; border-color: rgba(123, 63, 228, .55); background: rgba(123, 63, 228, .16); }
.chip-lime { color: #D3FF9A; border-color: rgba(166, 255, 63, .45); background: rgba(166, 255, 63, .12); }

.stars { font-family: var(--sans); font-size: .8rem; color: var(--amber); letter-spacing: 1px; white-space: nowrap; text-shadow: 0 0 6px rgba(255, 197, 49, .6); }
.stars .off { color: #3A3560; text-shadow: none; }

/* scanline texture used over screens */
.scan {
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 3px);
}

/* ═══ 1) MARQUEE — neon sign bar ═════════════════════════════ */
.marquee {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #14122A, rgba(8, 7, 15, .96));
  border-bottom: 2px solid rgba(255, 46, 136, .45);
  box-shadow: 0 6px 26px rgba(255, 46, 136, .22), 0 1px 0 rgba(33, 230, 230, .25) inset;
}

.marquee-in { display: flex; align-items: center; gap: 11px; padding: 11px 0; }

.marq-badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: #170A14;
  background: linear-gradient(180deg, var(--amber), #E09A00);
  box-shadow: 0 0 12px rgba(255, 197, 49, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.marq-name {
  font-family: var(--display);
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 6px var(--magenta), 0 0 20px rgba(255, 46, 136, .6), 0 0 34px rgba(33, 230, 230, .25);
  animation: neonsign 4.2s ease-in-out infinite;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes neonsign {
  0%, 100% { opacity: 1; }
  47% { opacity: 1; }
  49% { opacity: .55; }
  51% { opacity: 1; }
  73% { opacity: .7; }
}

.marq-bulbs {
  flex: 1;
  height: 12px;
  min-width: 30px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, var(--cyan) 6px 10px, transparent 10px 18px);
  filter: drop-shadow(0 0 5px rgba(33, 230, 230, .85));
  animation: bulbsrun 1.2s linear infinite;
}

@keyframes bulbsrun { to { background-position: 18px 0; } }

.marq-search {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(33, 230, 230, .5);
  color: var(--cyan);
  background: rgba(33, 230, 230, .08);
  transition: box-shadow .15s, color .15s, background .15s;
}

.marq-search:hover { color: #CFFFFF; background: rgba(33, 230, 230, .18); box-shadow: 0 0 14px rgba(33, 230, 230, .5); }

/* ═══ 2) COIN SLOT — search strip ═══════════════════════════ */
.coinslot { margin-top: 16px; }

.coinslot-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--cab-2), var(--cab));
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6), 0 0 16px rgba(123, 63, 228, .16);
}

.coin-ico { flex: none; color: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 197, 49, .7)); }

.coinslot-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: .84rem;
  letter-spacing: .04em;
  padding: 6px 2px;
}

.coinslot-input::placeholder { color: var(--ink-dim); }

.coinslot-go {
  flex: none;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #170A14;
  padding: 9px 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--magenta), #C4156A);
  box-shadow: 0 0 14px rgba(255, 46, 136, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s, filter .15s;
}

.coinslot-go:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ═══ 3) CABINETS — category tabs ═══════════════════════════ */
.cabinets { margin-top: 14px; }

.cabinets-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.cabinets-row::-webkit-scrollbar { display: none; }

.cab-tab {
  position: relative;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--cab-2), var(--cab));
  transition: color .15s, border-color .15s, box-shadow .15s, transform .15s;
}

.cab-tab::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--ink-dim);
}

.cab-tab { padding-left: 22px; }

.cab-tab:hover { color: var(--ink); transform: translateY(-1px); }

.cab-tab.f-magenta::before { background: var(--magenta); box-shadow: 0 0 6px var(--magenta); }
.cab-tab.f-cyan::before { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.cab-tab.f-amber::before { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.cab-tab.f-violet::before { background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.cab-tab.f-lime::before { background: var(--lime); box-shadow: 0 0 6px var(--lime); }

.cab-tab.is-on {
  color: #170A14;
  border-color: transparent;
  background: linear-gradient(180deg, var(--cyan), #10B7B7);
  box-shadow: 0 0 16px rgba(33, 230, 230, .55);
}

.cab-tab.is-on::before { background: #170A14; box-shadow: none; }

/* ═══ loading — boot screen ════════════════════════════════ */
.loading-full { display: flex; align-items: center; justify-content: center; min-height: 58vh; }

.boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.boot-screen {
  position: relative;
  width: 210px;
  height: 132px;
  border-radius: 10px;
  border: 3px solid #2A2550;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #12203A, #050910);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .8), 0 0 20px rgba(33, 230, 230, .25);
}

.boot-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px);
}

.boot-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .16em;
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 197, 49, .9);
  animation: ledblink 1.1s steps(1, end) infinite;
}

.boot-bar {
  width: 210px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, .6);
  box-shadow: inset 0 0 0 1px var(--line);
}

.boot-bar i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  animation: bootload 1.5s ease-in-out infinite;
}

@keyframes bootload { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* ═══ 4) CRT HERO — a two-player cabinet: two lit monitors ═══ */
/* .crt-sec { margin-top: var(--sec-gap); } */

.crt-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.crt {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, var(--panel), var(--cab));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 30px rgba(0, 0, 0, .55), 0 0 26px rgba(255, 46, 136, .12);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.crt:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 16px 36px rgba(0, 0, 0, .6), 0 0 32px rgba(33, 230, 230, .28); }

/* player badge strip above each monitor */
.crt-player {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.crt-player b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 20px;
  border-radius: 4px;
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: #170A14;
  background: linear-gradient(180deg, var(--cyan), #10B7B7);
  box-shadow: 0 0 10px rgba(33, 230, 230, .55);
}

.crt-duo > .crt:nth-child(2) .crt-player b {
  background: linear-gradient(180deg, var(--magenta), #C4156A);
  box-shadow: 0 0 10px rgba(255, 46, 136, .55);
}

.crt-screen {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #2A2550;
  background: #0A0818;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .85);
}

.crt-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); }

.crt-art img { width: 100%; height: 100%; object-fit: cover; min-height: 222px; }

.crt-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* chromatic edge split */
.crt-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 46, 136, .22), transparent 14%),
    linear-gradient(270deg, rgba(33, 230, 230, .22), transparent 14%);
}

.crt-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px;
  min-width: 0;
}

.crt-chips { display: flex; gap: 7px; flex-wrap: wrap; }

.crt-name {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 8px rgba(33, 230, 230, .8), 0 0 24px rgba(255, 46, 136, .5);
  overflow: hidden;
  text-overflow: ellipsis;
}

.crt-desc {
  font-size: .87rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.crt-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.crt-no {
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-dim);
}

.crt-play {
  margin-left: auto;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #170A14;
  padding: 9px 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--lime), #6FC20E);
  box-shadow: 0 0 16px rgba(166, 255, 63, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
}

/* monitor knobs under the screen */
.crt-knobs { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-left: 4px; }

.crt-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4A4280, #1B1738);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 5px rgba(0, 0, 0, .6);
}

.crt-knob.k-on { background: radial-gradient(circle at 35% 30%, var(--magenta), #8E0F45); box-shadow: 0 0 10px rgba(255, 46, 136, .7); }

.crt-grille {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 6px);
}

.crt-brand {
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--ink-dim);
}

/* high-score board — its own section below the two monitors */
.rank-sec { margin-top: var(--sec-gap); }

.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--cab));
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .5), 0 0 20px rgba(33, 230, 230, .1);
}

.score-row {
  display: grid;
  grid-template-columns: 30px 46px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  transition: background .15s, box-shadow .15s, border-color .15s, transform .15s;
}

.score-row:hover {
  background: rgba(33, 230, 230, .1);
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(33, 230, 230, .25);
}

/* medal ranks: 3 = gold, 4 = cyan, 5 = magenta */
.score-rank {
  font-family: var(--display);
  font-size: 1.18rem;
  text-align: center;
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 197, 49, .85);
}

.score-row:nth-child(2) .score-rank { color: var(--cyan); text-shadow: 0 0 10px rgba(33, 230, 230, .85); }

.score-row:nth-child(3) .score-rank { color: var(--magenta); text-shadow: 0 0 10px rgba(255, 46, 136, .85); }

.score-avatar {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(33, 230, 230, .4);
  box-shadow: 0 0 10px rgba(33, 230, 230, .22);
}

.score-row:nth-child(2) .score-avatar { border-color: rgba(255, 197, 49, .45); box-shadow: 0 0 10px rgba(255, 197, 49, .25); }

.score-row:nth-child(3) .score-avatar { border-color: rgba(255, 46, 136, .45); box-shadow: 0 0 10px rgba(255, 46, 136, .25); }

.score-avatar img { width: 100%; height: 100%; object-fit: cover; }

.score-mid { min-width: 0; }

.score-nm {
  display: block;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-sub {
  display: block;
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 3px;
}

.score-bar {
  position: relative;
  width: 46px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.score-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 8px rgba(33, 230, 230, .6);
}

/* ═══ 5) CABINET HALL — wall of coin-op cabinets ════════════ */
.hall-sec { margin-top: var(--sec-gap); }

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 14px;
}

.cabinet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: transform .18s;
}

.cabinet:hover { transform: translateY(-4px); }

.cab-top {
  width: 100%;
  font-family: var(--mono);
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 4px 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(255, 197, 49, .22), rgba(255, 197, 49, .06));
  border: 1px solid rgba(255, 197, 49, .35);
  border-bottom: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 0 12px rgba(255, 197, 49, .18);
}

.cab-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #2A2550;
  background: #0A0818;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .8);
}

.cab-screen img { width: 100%; height: 100%; object-fit: cover; }

.cab-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.cab-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 5px 0;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, var(--panel), #191533);
  border: 1px solid var(--line);
  border-top: none;
}

.cab-stick {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--magenta));
  box-shadow: 0 0 7px rgba(255, 46, 136, .8);
}

.cab-btn {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE9A8, var(--amber));
}

.cab-btn.b2 { background: radial-gradient(circle at 35% 30%, #B8FFE9, var(--cyan)); }

.cab-nm {
  width: 100%;
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 6) TOKEN TRAY — daily combo coins ═════════════════════ */
.combo-sec { margin-top: var(--sec-gap); }

.token-tray {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 46, 136, .05) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, var(--cab-2), var(--cab));
  box-shadow: inset 0 0 34px rgba(0, 0, 0, .55);
}

.token {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .15s, background .15s;
}

.token:hover { border-color: var(--amber); background: rgba(255, 197, 49, .08); }

.token-ring {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE9A8 0 46%, var(--amber) 48% 100%);
  box-shadow: 0 0 12px rgba(255, 197, 49, .45), inset 0 0 0 2px rgba(0, 0, 0, .35);
}

.token-ring::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(0, 0, 0, .3) 0 4deg, transparent 4deg 12deg);
}

.token-face {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .4);
}

.token-face img { width: 100%; height: 100%; object-fit: cover; }

.token-mid { min-width: 0; }

.token-nm {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-no {
  display: block;
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-dim);
  margin-top: 3px;
}

/* ═══ 7) SCORE BOARD — top-rated leaderboard ════════════════ */
.board-sec { margin-top: var(--sec-gap); }

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.board-row {
  display: grid;
  grid-template-columns: 46px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, var(--panel), var(--cab));
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.board-row:hover { border-color: var(--cyan); transform: translateX(4px); box-shadow: 0 0 18px rgba(33, 230, 230, .18); }

.board-rank {
  font-family: var(--display);
  font-size: 1.5rem;
  text-align: center;
  color: var(--ink-dim);
  text-shadow: 0 0 10px rgba(123, 63, 228, .6);
}

.board-row:nth-child(1) .board-rank { color: var(--amber); text-shadow: 0 0 12px rgba(255, 197, 49, .8); }
.board-row:nth-child(2) .board-rank { color: var(--cyan); text-shadow: 0 0 12px rgba(33, 230, 230, .8); }
.board-row:nth-child(3) .board-rank { color: var(--magenta); text-shadow: 0 0 12px rgba(255, 46, 136, .8); }

.board-thumb {
  width: 58px;
  height: 58px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(33, 230, 230, .3);
}

.board-thumb img { width: 100%; height: 100%; object-fit: cover; }

.board-body { min-width: 0; }

.board-nm {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }

.board-bar {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .55);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.board-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--magenta), var(--amber));
}

/* ═══ 8) GENRE PAD — category rail + game pad ═══════════════ */
.genre-sec { margin-top: var(--sec-gap); }

.genre-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.genre-rail::-webkit-scrollbar { display: none; }

.genre-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--cab-2), var(--cab));
  transition: color .15s, border-color .15s, box-shadow .15s;
}

.genre-tab:hover { color: var(--ink); }

.genre-tab.is-on {
  color: #170A14;
  border-color: transparent;
  background: linear-gradient(180deg, var(--amber), #DB9E00);
  box-shadow: 0 0 16px rgba(255, 197, 49, .5);
}

.genre-count {
  font-size: .56rem;
  padding: 1px 5px;
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, .4);
}

.genre-tab.is-on .genre-count { color: #170A14; background: rgba(0, 0, 0, .18); }

.genre-pad {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--cab));
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .5);
}

.pad-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .15s, transform .15s;
}

.pad-item:hover { border-color: var(--cyan); transform: translateY(-3px); }

.pad-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px; }

.pad-item p {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pad-open {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #170A14;
  padding: 7px 12px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--lime), #6FC20E);
  box-shadow: 0 0 12px rgba(166, 255, 63, .4);
}

.genre-foot { display: flex; align-items: center; gap: 10px; margin-top: 11px; }

.genre-note {
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ═══ 9) GAME LIBRARY — full catalog grid ═══════════════════ */
.library-sec { margin-top: var(--sec-gap); }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.lib-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--cab));
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.lib-card:hover { border-color: var(--magenta); transform: translateY(-4px); box-shadow: 0 0 20px rgba(255, 46, 136, .25); }

.lib-thumb { position: relative; overflow: hidden; }

.lib-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.lib-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.lib-plate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px 11px;
  border-top: 1px solid var(--line);
}

.lib-nm {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-foot { display: flex; align-items: center; gap: 6px; }

.lib-no {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-dim);
}

.libmore-wrap { display: flex; justify-content: center; margin-top: 18px; }

.libmore {
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 12px 28px;
  border: 1px solid rgba(33, 230, 230, .5);
  border-radius: 7px;
  background: rgba(33, 230, 230, .08);
  transition: box-shadow .15s, color .15s, background .15s, transform .15s;
}

.libmore:hover { color: #CFFFFF; background: rgba(33, 230, 230, .18); box-shadow: 0 0 20px rgba(33, 230, 230, .5); transform: translateY(-2px); }

/* ═══ 9b) JOYSTICK CLUSTER — arcade controls ═══════════════ */
.stick-sec { margin-top: var(--sec-gap); }

.stick-cluster {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 20px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(123, 63, 228, .07) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, var(--cab-2), var(--cab));
  box-shadow: inset 0 0 34px rgba(0, 0, 0, .55);
}

.stick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.stick-base {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 78%, #2C2750, #12101F 70%);
  box-shadow: inset 0 0 0 2px rgba(123, 63, 228, .4), 0 6px 14px rgba(0, 0, 0, .55);
}

.stick-base::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(33, 230, 230, .3);
}

.stick-ball {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 46, 136, .55);
  box-shadow: 0 0 14px rgba(255, 46, 136, .35);
  animation: stickwobble 4.4s ease-in-out infinite;
}

.stick:nth-child(2n) .stick-ball { animation-delay: 1.1s; }
.stick:nth-child(3n) .stick-ball { animation-delay: 2.2s; }

@keyframes stickwobble {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(3px, -2px); }
  75% { transform: translate(-3px, 2px); }
}

.stick-face img { width: 100%; height: 100%; object-fit: cover; }

.stick-nm {
  width: 100%;
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 9c) BONUS SLOTS — daily picks ════════════════════════ */
.bonus-sec { margin-top: var(--sec-gap); }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--cab));
  transition: transform .16s, box-shadow .16s;
}

.slot:hover { transform: translateY(-4px); box-shadow: 0 0 20px rgba(255, 197, 49, .22); }

.slot-ribbon {
  font-family: var(--display);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #170A14;
  text-align: center;
  padding: 6px 4px;
  background: linear-gradient(180deg, var(--amber), #D89C00);
  box-shadow: 0 2px 10px rgba(255, 197, 49, .35);
}

.slot-window {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  background: #0A0818;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .8);
}

.slot-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px);
}

.slot-icon {
  position: relative;
  width: 70%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 197, 49, .45);
  animation: reelflash 3.6s ease-in-out infinite;
}

.slot-icon img { width: 100%; height: 100%; object-fit: cover; }

@keyframes reelflash {
  0%, 100% { filter: brightness(1); }
  46% { filter: brightness(1.35); }
  48% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

.slot-payline {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--magenta) 0 10px, var(--amber) 10px 20px);
  box-shadow: 0 0 10px rgba(255, 46, 136, .6);
  opacity: .85;
}

.slot-nm {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
  padding: 9px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 9d) MULTIPLIER — x2 / x3 firepower ═══════════════════ */
.multi-sec { margin-top: var(--sec-gap); }

.multi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.multi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: linear-gradient(120deg, var(--cab-2) 0%, var(--panel) 60%, var(--cab-2) 100%);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}

.multi:hover { border-color: var(--lime); transform: translateY(-3px); }

.multi-x {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
  text-shadow: 0 0 14px rgba(33, 230, 230, .55);
}

.multi:nth-child(3n) .multi-x { -webkit-text-stroke-color: var(--magenta); text-shadow: 0 0 14px rgba(255, 46, 136, .55); }
.multi:nth-child(3n + 1) .multi-x { -webkit-text-stroke-color: var(--amber); text-shadow: 0 0 14px rgba(255, 197, 49, .55); }

.multi-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-2);
}

.multi-badge img { width: 100%; height: 100%; object-fit: cover; }

.multi-nm {
  min-width: 0;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 10) RESULT — filtered / searched ═════════════════════ */
.result-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(255, 46, 136, .16), rgba(33, 230, 230, .1)), var(--cab);
  box-shadow: 0 0 20px rgba(255, 46, 136, .16);
}

.result-back {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(33, 230, 230, .45);
  border-radius: 5px;
  padding: 6px 11px;
  transition: box-shadow .15s, background .15s;
}

.result-back:hover { background: rgba(33, 230, 230, .14); box-shadow: 0 0 14px rgba(33, 230, 230, .45); }

.result-title {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 10px rgba(255, 46, 136, .8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-count {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #170A14;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 197, 49, .5);
}

.result-sec { margin-top: 16px; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.result-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--cab));
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.result-card:hover { border-color: var(--cyan); transform: translateY(-4px); box-shadow: 0 0 20px rgba(33, 230, 230, .22); }

.result-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.result-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px 12px; }

.result-nm {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-desc {
  font-size: .72rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-foot { display: flex; align-items: center; gap: 7px; margin-top: 2px; }

.gameover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 70px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  text-align: center;
}

.gameover-txt {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .2em;
  color: var(--magenta);
  text-shadow: 0 0 12px rgba(255, 46, 136, .8);
  animation: ledblink 1.4s steps(1, end) infinite;
}

.gameover-sub {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ═══ 11) ARCADE FOOTER ════════════════════════════════════ */
.arcade-foot {
  margin-top: 44px;
  border-top: 2px solid rgba(33, 230, 230, .4);
  background: linear-gradient(180deg, #12102A, var(--void));
  box-shadow: 0 -8px 30px rgba(33, 230, 230, .12);
}

.foot-in { display: flex; align-items: center; gap: 12px; padding: 18px 0 22px; flex-wrap: wrap; }

.foot-sign {
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 8px var(--magenta), 0 0 20px rgba(255, 46, 136, .55);
}

.foot-bulbs {
  flex: 1;
  height: 10px;
  min-width: 40px;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, var(--amber) 6px 10px, transparent 10px 20px);
  filter: drop-shadow(0 0 5px rgba(255, 197, 49, .8));
}

.foot-links { display: flex; gap: 14px; }

.foot-links a {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .15s, text-shadow .15s;
}

.foot-links a:hover { color: var(--cyan); text-shadow: 0 0 10px rgba(33, 230, 230, .7); }

.foot-fine {
  width: 100%;
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ═══ back to top ══════════════════════════════════════════ */
.totop-btn {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  color: var(--cyan);
  font-size: .9rem;
  border: 1px solid rgba(33, 230, 230, .5);
  background: linear-gradient(180deg, var(--panel), var(--cab));
  box-shadow: 0 0 16px rgba(33, 230, 230, .3);
  transition: transform .15s, box-shadow .15s;
}

.totop-btn:hover { transform: translateY(-3px); box-shadow: 0 0 24px rgba(33, 230, 230, .55); }

/* ═══ ambient CRT overlay + drifting glow orbs ═════════════ */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px);
  opacity: .8;
}

.glow-deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  bottom: -140px;
  border-radius: 50%;
  filter: blur(18px);
  animation: floatup 30s linear infinite;
}

.orb.o1 { left: 8%; width: 130px; height: 130px; background: radial-gradient(circle, rgba(255, 46, 136, .22), transparent 70%); animation-duration: 26s; }
.orb.o2 { left: 36%; width: 170px; height: 170px; background: radial-gradient(circle, rgba(33, 230, 230, .18), transparent 70%); animation-duration: 33s; animation-delay: 7s; }
.orb.o3 { left: 64%; width: 140px; height: 140px; background: radial-gradient(circle, rgba(123, 63, 228, .22), transparent 70%); animation-duration: 29s; animation-delay: 13s; }
.orb.o4 { left: 88%; width: 110px; height: 110px; background: radial-gradient(circle, rgba(255, 197, 49, .16), transparent 70%); animation-duration: 37s; animation-delay: 4s; }

@keyframes floatup {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  14% { opacity: .9; }
  78% { opacity: .45; }
  100% { transform: translateY(-118vh) scale(1.5); opacity: 0; }
}

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cabinet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stick-cluster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lib-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .token-tray { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  /* the two monitors stay SIDE BY SIDE — only their insides get compact */
  .crt { padding: 10px; border-radius: 11px; }
  .crt-player { font-size: .5rem; gap: 6px; margin-bottom: 8px; letter-spacing: .1em; }
  .crt-player b { width: 22px; height: 18px; font-size: .72rem; }
  .crt-screen { grid-template-columns: 1fr; }
  .crt-art { border-right: none; border-bottom: 1px solid var(--line); }
  .crt-art img { height: auto; aspect-ratio: 16 / 11; min-height: 0; }
  .crt-body { padding: 11px 11px 12px; gap: 7px; }
  .crt-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(.86rem, 2.7vw, 1.1rem); letter-spacing: .02em; }
  .crt-desc { font-size: .72rem; -webkit-line-clamp: 2; }
  .crt-no { font-size: .5rem; letter-spacing: .06em; }
  .crt-play { padding: 7px 11px; font-size: .6rem; letter-spacing: .1em; }
  .crt-knobs { gap: 7px; margin-top: 9px; }
  .crt-knob { width: 12px; height: 12px; }
  .crt-brand { font-size: .48rem; letter-spacing: .12em; }
  .scoreboard { grid-template-columns: 1fr; }
  /* .board-grid 保持 2 列：8 条 = 4 行，绝不塌成 1 列 8 行 */
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .multi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genre-pad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .headbar-tag { font-size: .5rem; padding: 2px 5px; }
  .headbar-title { font-size: .84rem; letter-spacing: .08em; }
  .cabinet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stick-cluster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stick-base { width: 62px; height: 62px; }
  .stick-ball { width: 38px; height: 38px; }
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-tray { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 10px; gap: 9px; }
  .token { padding: 7px 8px; gap: 7px; }
  .token-ring { width: 36px; height: 36px; }
  .token-face { width: 24px; height: 24px; }
  .token-nm { font-size: .58rem; }
  .token-no { font-size: .42rem; letter-spacing: .06em; margin-top: 2px; }
  /* the two monitors STAY two-across on phones — never stack them */
  .crt-duo { gap: 8px; }
  .crt { padding: 7px; border-radius: 9px; }
  .crt-player { font-size: .44rem; gap: 5px; letter-spacing: .06em; margin-bottom: 6px; }
  .crt-player b { width: 19px; height: 16px; font-size: .62rem; }
  .crt-player-t, .crt-play-t { display: none; }
  .crt-screen { border-width: 1px; border-radius: 7px; }
  .crt-body { padding: 8px 8px 9px; gap: 6px; }
  .crt-chips { gap: 4px; }
  .crt-chips .chip { font-size: .42rem; padding: 2px 4px; letter-spacing: .04em; }
  .crt-name { font-size: .78rem; letter-spacing: 0; }
  .crt-desc { font-size: .62rem; }
  .crt-foot { gap: 6px; padding-top: 7px; }
  .crt-no { font-size: .42rem; letter-spacing: .02em; }
  .crt-play { font-size: .56rem; padding: 6px 9px; letter-spacing: .1em; }
  .crt-knobs { gap: 6px; margin-top: 7px; padding-left: 2px; }
  .crt-knob { width: 10px; height: 10px; }
  .crt-brand { font-size: .4rem; letter-spacing: .06em; }
  .board-row { grid-template-columns: 30px 40px 1fr; gap: 8px; padding: 9px; }
  .board-thumb { width: 40px; height: 40px; }
  .board-rank { font-size: 1.08rem; }
  .board-nm { font-size: .7rem; }
  .board-meta { gap: 6px; margin-top: 4px; }
  .foot-fine { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
