:root {
  --bg: #06060a;
  --text: #f4f4f8;
  --muted: rgba(244, 244, 248, 0.55);
  --accent: hsl(190 100% 60%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#smoke {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Fallback when WebGL isn't available */
body.no-webgl {
  background:
    radial-gradient(60% 50% at 30% 40%, hsl(190 80% 30% / 0.6), transparent),
    radial-gradient(50% 50% at 70% 60%, hsl(290 80% 30% / 0.5), transparent),
    var(--bg);
  background-attachment: fixed;
}
body.no-webgl #smoke { display: none; }

main { position: relative; }

/* Coming Soon and the arcade sit side by side; swipe, scroll or use the tabs. */
.row {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row > section { flex: 0 0 100%; height: 100%; }

/* A game slides in over the row. Hidden games stay laid out (just moved off
   screen) so their boards keep a real size, and being off screen pauses them. */
.game-view {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.4s;
}
.game-view.open {
  visibility: visible;
  transform: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.game-view > section {
  position: absolute;
  inset: 0;
  visibility: hidden;
  transform: translateX(100%);
}
.game-view > section.shown { visibility: visible; transform: none; }
html.in-game .row { visibility: hidden; transition: visibility 0s 0.4s; }

section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}


.plaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 100%;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 6vw, 4rem);
  background: #000;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 6px;
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.6),
    0 0 50px color-mix(in srgb, var(--accent) 25%, transparent),
    0 20px 60px rgba(0, 0, 0, 0.7);
}

h1 {
  font-size: clamp(2rem, min(8vw, 13vh), 6rem);
  font-weight: 200;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-shadow: 0 0 40px var(--accent), 0 0 4px rgba(0, 0, 0, 0.6);
}

.dots span {
  display: inline-block;
  animation: blink 1.4s infinite both;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.15; }
  40% { opacity: 1; }
}

.hint {
  font-size: clamp(0.7rem, 2.5vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Neon tabs ---------- */

.neon-tab {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45rem 0.8rem;
  background: #000;
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--accent) 75%, transparent);
  border-radius: 6px;
  text-shadow: 0 0 8px var(--accent);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--accent) 45%, transparent),
    inset 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.neon-tab span { color: var(--accent); }
.neon-tab:hover, .neon-tab:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 26px var(--accent),
    inset 0 0 16px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Edge tabs: a glowing pull-tab on the side of the screen, like a drawer. */
.neon-tab.side {
  top: 50%;
  writing-mode: vertical-rl;
  padding: 1.2rem 0.65rem;
  font-size: 0.8rem;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  animation: tab-glow 2.4s ease-in-out infinite;
}
.neon-tab.side.right { right: env(safe-area-inset-right, 0); transform: translateY(-50%); }
/* Mirrored for the left edge (and the text reads bottom to top). */
.neon-tab.side.left { left: env(safe-area-inset-left, 0); transform: translateY(-50%) rotate(180deg); }
@keyframes tab-glow {
  0%, 100% { box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 0 8px color-mix(in srgb, var(--accent) 20%, transparent); }
  50% { box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent); }
}

/* The way back out of a game. */
.neon-tab.back {
  top: max(0.6rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  padding: 0.38rem 0.7rem;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
}

/* ---------- Arcade ---------- */

.arcade {
  justify-content: flex-start;
  overflow-y: auto;
  padding: max(1.5rem, env(safe-area-inset-top)) 3.25rem max(1.5rem, env(safe-area-inset-bottom));
}
.arcade-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vh, 2rem);
  width: min(1040px, 100%);
  margin: auto 0;
}
.arcade-title {
  font-size: clamp(1.8rem, min(6vw, 9vh), 3.5rem);
  font-weight: 200;
  letter-spacing: 0.35em;
  padding-left: 0.35em; /* balances the letter spacing after the last letter */
  text-transform: uppercase;
  text-shadow: 0 0 30px var(--accent), 0 0 4px rgba(0, 0, 0, 0.6);
}
/* ---------- Cabinet carousel ---------- */

/* A strip of cabinets that scrolls sideways and snaps each one to the middle.
   carousel.js turns and pushes back the ones off to the sides. */
.cabinets {
  /* As big as the screen allows: limited by width (so neighbours still peek
     in) or by height (a cabinet is about 1.35 times as tall as it is wide,
     and the title, dots and hint need about 19rem). */
  --cab-w: clamp(170px, min(30vw, (100dvh - 19rem) / 1.35), 420px);
  position: relative;
  display: flex;
  gap: calc(var(--cab-w) * 0.12);
  /* Full screen width, fading out toward the edges. */
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 2.5rem calc(50vw - var(--cab-w) / 2) 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  perspective: 1100px;
  perspective-origin: 50% 40%;
}
.cabinets::-webkit-scrollbar { display: none; }

.cab {
  --fade: 1; /* set by carousel.js: 1 in the middle, dimmer further out */
  --edge: color-mix(in srgb, var(--accent) calc(var(--fade) * 70%), transparent);
  --glow: color-mix(in srgb, var(--accent) calc(var(--fade) * 40%), transparent);
  --alt: #ff4fd8;
  --alt: hsl(from var(--accent) calc(h + 150) s l);
  --third: #ffd84f;
  --third: hsl(from var(--accent) calc(h + 60) s l);
  --depth: calc(var(--cab-w) * 0.5);
  position: relative;
  display: block;
  flex: 0 0 var(--cab-w);
  scroll-snap-align: center;
  color: var(--text);
  text-decoration: none;
  transform-style: preserve-3d;
  outline: none;
}
/* Dimming goes on the parts, not the cabinet: opacity would flatten the 3D. */
.cab-body > *, .cab-side { opacity: var(--fade); }

/* The front: one box of even width, so the sides meet it exactly. */
.cab-body {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #000;
  border: 1.5px solid var(--edge);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 0 16px var(--glow);
  transform-style: preserve-3d;
}
.cab:hover .cab-body, .cab:focus-visible .cab-body { border-color: var(--accent); }

/* Side panels hinge on the front's edges and run back, cut to the classic
   cabinet profile (the top slopes down at the back). They show as the
   cabinet turns away from the middle. */
.cab-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--depth);
  pointer-events: none;
}
.cab-side.left { left: 0; transform-origin: left; transform: rotateY(90deg); }
.cab-side.right { right: 0; transform-origin: right; transform: rotateY(-90deg); }
.cab-side svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 4px var(--glow));
}
/* The right panel's front edge is on its right, so its profile is mirrored. */
.cab-side.right svg { transform: scaleX(-1); }
.cab-side path {
  fill: #05050b;
  stroke: var(--edge);
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.cab-side .trim { fill: none; opacity: 0.5; }

.cab-marquee {
  padding: 0.7rem 0.4rem;
  border-bottom: 1.5px solid var(--edge);
  border-radius: 8px 8px 0 0;
  background: radial-gradient(90% 140% at 50% 50%, color-mix(in srgb, var(--accent) 18%, #000), #000);
  font-size: calc(var(--cab-w) * 0.062);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 0 6px var(--accent);
}
.cab.current .cab-marquee {
  text-shadow: 0 0 6px var(--accent), 0 0 16px var(--accent), 0 0 30px var(--accent);
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: marquee-flicker 4s infinite;
}
@keyframes marquee-flicker {
  0%, 92%, 96%, 100% { filter: none; }
  94% { filter: brightness(0.55); }
}

.cab-screen {
  position: relative;
  display: block;
  padding: 8% 9% 7%;
  background: #030306;
}
.cab-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px / 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  filter: brightness(0.75) saturate(0.9);
  transition: filter 0.3s;
}
.cab.current .cab-screen img { filter: none; }
/* Scanlines and a soft glare over the CRT. */
.cab-screen::after {
  content: "";
  position: absolute;
  inset: 8% 9% 7%;
  border-radius: 12px / 16px;
  background:
    radial-gradient(120% 80% at 30% 15%, rgba(255, 255, 255, 0.09), transparent 45%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* The control panel: a shelf tilted out toward the player, joystick on the
   left and a pair of buttons on the right. */
.cab-panel {
  display: flex;
  align-items: center;
  gap: 5%;
  padding-inline: 18%;
  height: calc(var(--cab-w) * 0.16);
  background: #000;
  border-block: 1.5px solid var(--edge);
  transform-origin: top;
  transform: rotateX(40deg);
}
.cab-panel i { display: block; border-radius: 50%; }
.cab-panel .stick {
  width: 6.5%;
  margin-right: auto;
  aspect-ratio: 1;
  background: var(--alt);
  box-shadow: 0 0 6px var(--alt), 0 4px 0 -2px var(--edge);
}
.cab-panel .btn { width: 4.5%; aspect-ratio: 1; background: var(--third); box-shadow: 0 0 5px var(--third); }
.cab-panel .btn + .btn { background: var(--alt); box-shadow: 0 0 5px var(--alt); }

.cab-base {
  display: flex;
  justify-content: center;
  padding: 0.8rem 0.4rem 1.1rem;
}
/* The cabinet's high-score readout, glowing like an LED display. */
.cab-hi {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  padding: 0.3em 0.6em;
  border: 1px solid color-mix(in srgb, var(--third) 45%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--third) 8%, #000);
  color: var(--third);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-shadow: 0 0 6px var(--third), 0 0 14px var(--third);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--third) 20%, transparent);
}
.cab-hi small {
  font-size: calc(var(--cab-w) * 0.045);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}
.cab-hi b {
  font-weight: 700;
  font-size: calc(var(--cab-w) * 0.085);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

/* The coin box: quarters spent so far, as a glowing LED readout. */
.coin-box {
  --coin: #ffd84f;
  --coin: hsl(from var(--accent) calc(h + 60) s l);
  position: absolute;
  z-index: 2;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  padding: 0.5rem 0.8rem 0.55rem;
  background: #000;
  border: 1px solid color-mix(in srgb, var(--coin) 50%, transparent);
  border-radius: 6px;
  box-shadow:
    0 0 14px color-mix(in srgb, var(--coin) 25%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--coin) 15%, transparent);
}
.coin-money {
  color: var(--coin);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px var(--coin), 0 0 16px var(--coin);
}
.coin-count {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.coin-box.clink { animation: clink 0.7s ease-out; }
@keyframes clink {
  0% { transform: scale(1); }
  25% { transform: scale(1.12); box-shadow: 0 0 30px var(--coin), inset 0 0 16px color-mix(in srgb, var(--coin) 40%, transparent); }
  100% { transform: scale(1); }
}

.cab-dots { display: flex; gap: 0.6rem; }
.cab-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--edge, color-mix(in srgb, var(--accent) 70%, transparent));
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.cab-dots button.on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.arcade .hint { font-size: 0.65rem; }

.embed-btn {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 1;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.embed-btn:hover { color: var(--text); }
.embed-btn.left { right: auto; left: max(1rem, env(safe-area-inset-left)); }

/* Cyber Brawler's sound toggle sits under the embed button. */
.sound-btn {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: calc(max(1rem, env(safe-area-inset-top)) + 1.5rem);
  right: max(1rem, env(safe-area-inset-right));
  z-index: 1;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.sound-btn:hover { color: var(--text); }
body.embed .sound-btn { top: max(0.6rem, env(safe-area-inset-top)); right: max(0.75rem, env(safe-area-inset-right)); }

.embed-dialog {
  margin: auto;
  width: min(34rem, calc(100% - 2rem));
  gap: 0.9rem;
  padding: 1.5rem;
  color: var(--text);
  text-align: center;
}
.embed-dialog:not([open]) { display: none; }
.embed-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.embed-dialog h2 { font-weight: 300; font-size: 1.1rem; letter-spacing: 0.15em; text-transform: uppercase; }
.embed-dialog textarea {
  width: 100%;
  resize: none;
  padding: 0.75rem;
  background: #0b0b12;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 4px;
  max-height: 50dvh;
  font: 0.75rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
  -webkit-user-select: text;
  user-select: text;
}
.embed-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; justify-content: center; }
.embed-actions a, .embed-actions button {
  background: none;
  border: 1px solid transparent;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.embed-actions .embed-copy {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 4px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent);
}
.embed-actions a:hover, .embed-actions button:hover { color: var(--text); }

/* ---------- Game ---------- */

.play-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: min(960px, 100%);
}

.hud {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem clamp(1rem, 4vw, 2.5rem);
  padding: 0.7rem 1.4rem;
  font-size: clamp(0.7rem, 2.4vw, 0.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hud b {
  font-weight: 400;
  color: var(--text);
  text-shadow: 0 0 12px var(--accent);
  font-variant-numeric: tabular-nums;
}

.game-frame {
  width: 100%;
  padding: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 6px;
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.5),
    0 0 50px color-mix(in srgb, var(--accent) 22%, transparent),
    0 20px 60px rgba(0, 0, 0, 0.7);
}

#game, #snake-game, #shooter-game, #cutter-game, #swarm-game, #brawler-game {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: calc(100dvh - 11rem);
  touch-action: none;
  cursor: none;
}
/* Neon Cutter and Robot Swarm aim at the cursor, so keep it visible. */
#cutter-game, #swarm-game { cursor: crosshair; }
/* Cyber Brawler is clicked or tapped on either side, anywhere on its screen. */
#brawler-game { cursor: pointer; }
.game-section.brawler { touch-action: manipulation; user-select: none; -webkit-user-select: none; }

@media (max-aspect-ratio: 4/5) {
  #game, #snake-game, #shooter-game, #cutter-game, #swarm-game, #brawler-game { aspect-ratio: 3 / 4; }
}
@media (max-aspect-ratio: 3/5) {
  #game, #snake-game, #shooter-game, #cutter-game, #swarm-game, #brawler-game { aspect-ratio: 2 / 3; }
}
@media (max-aspect-ratio: 1/2) {
  #game, #snake-game, #shooter-game, #cutter-game, #swarm-game, #brawler-game { aspect-ratio: 3 / 5; }
}

/* Touch devices get shorter, touch-only control hints. */
.hint .touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint .kb { display: none; }
  .hint .touch { display: inline; }
}

/* Phones: smaller tabs, two cards a row, and the game screens tighten up. */
@media (max-width: 700px), (max-height: 500px) {
  .neon-tab.side { padding: 1rem 0.5rem; font-size: 0.7rem; }
  .arcade { padding-left: 2.25rem; padding-right: 2.25rem; }
  .embed-dialog { padding: 1.25rem 1rem; }
  .embed-actions { gap: 0.5rem 0.25rem; }
  .embed-actions a, .embed-actions button { letter-spacing: 0.14em; padding: 0.4rem 0.6rem; }
}
@media (max-width: 700px) {
  .cabinets { --cab-w: clamp(170px, min(66vw, (100dvh - 17rem) / 1.35), 300px); }
  section.game-section { padding: 2.75rem 0.75rem 0.75rem; justify-content: flex-start; }
  .play-inner { gap: 0.6rem; }
  .hud { padding: 0.5rem 0.9rem; gap: 0.3rem 1rem; letter-spacing: 0.14em; }
  .game-frame { padding: 4px; }
  /* Fill the screen height instead of sitting in a fixed aspect ratio. */
  #game, #snake-game, #shooter-game, #cutter-game, #swarm-game, #brawler-game {
    aspect-ratio: auto;
    height: calc(100dvh - 9rem);
    max-height: 200vw;
  }
  /* A tall, narrow street leaves the fighters lost at the bottom. */
  #brawler-game { height: min(calc(100dvh - 9rem), 100vw); }
}

/* Landscape phones: very little height, so drop the hints and keep the
   board from stretching into a thin strip. */
@media (max-height: 500px) and (orientation: landscape) {
  section.game-section { padding: 0.5rem 3.5rem; justify-content: center; }
  .game-section .hint { display: none; }
  .play-inner { gap: 0.4rem; width: min(960px, 100%, calc((100dvh - 4rem) * 1.6)); }
  .hud { padding: 0.35rem 0.9rem; font-size: 0.65rem; }
  #game, #snake-game, #shooter-game, #cutter-game, #swarm-game, #brawler-game { aspect-ratio: auto; height: calc(100dvh - 4rem); max-height: none; }
  .neon-tab.back { top: 0.5rem; }
  .embed-btn { top: 0.6rem; }
  .cabinets { --cab-w: clamp(130px, (100dvh - 6.5rem) / 1.35, 260px); padding-top: 1rem; padding-bottom: 0.5rem; }
  .arcade-title, .arcade .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .row { scroll-behavior: auto; }
  .game-view, .game-view.open { transition: none; }
  .dots span, .neon-tab.side { animation: none; opacity: 1; }
}
