/* Meatspace Arcade front page — hand-written, not built by build.py.
   The neon side of the house look: a lit sign over a synthwave grid, cabinets that glow,
   the Friction Maxxing deck's night (#07162d) under everything. */

.arcade { --deck: #07162d; --deep: #040c1c; }
body.arcade {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 62, 165, 0.10), transparent 60%),
    linear-gradient(180deg, #0a0d2a, #05071a 70%);
  background-color: #05071a;
  color: var(--white);
  overflow-x: hidden;
}
/* Blacklight carpet: a fixed layer, a little bigger than the screen, that arcade.js slides downhill as the phone tilts. */
.arc-carpet {
  position: fixed; inset: -96px; z-index: -1; pointer-events: none;
  background: url(art/carpet.svg) 0 0 / 640px 640px repeat;
  will-change: transform;
}
.arcade .site-header { border-bottom-color: rgba(46, 230, 255, 0.25); background: rgba(4, 12, 28, 0.6); }
.arcade .site-footer { border-top-color: rgba(46, 230, 255, 0.25); }
.arcade .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arc-mono { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; }

/* ---------------------------------------------------------------- the cover */
.arc-hero {
  --lean: 0;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 56rem);
  display: grid; align-items: end;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}
.arc-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.arc-hero-art {
  position: absolute; z-index: -1;
  right: max(-6vw, -4rem); bottom: 0;
  width: min(62rem, 92vw); height: auto;
  opacity: 0.9;
  -webkit-mask-image: radial-gradient(70% 70% at 55% 50%, #000 45%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 55% 50%, #000 45%, transparent 75%);
  transform: translateX(calc(var(--lean) * -0.4px));
  filter: saturate(1.25) drop-shadow(0 0 30px rgba(255, 62, 165, 0.35));
}
.arc-hero-copy { max-width: 46rem; position: relative; }
.arc-issue { margin: 0 0 1rem; color: var(--cyan); text-shadow: 0 0 8px rgba(46, 230, 255, 0.7); }
.arc-neon {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4rem, 15vw, 10rem); line-height: 0.82; letter-spacing: 0.01em;
}
.arc-neon span { display: block; }
.arc-neon .a {
  color: #ffe3f2;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 28px var(--pink), 0 0 60px rgba(255, 62, 165, 0.8);
}
.arc-neon .b {
  color: #e2fbff; padding-left: 0.35em;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--cyan), 0 0 28px var(--cyan), 0 0 60px rgba(46, 230, 255, 0.8);
}
.arc-neon i { font-style: normal; animation: arc-flicker 6s infinite steps(1); }
.arc-line {
  margin: 1.4rem 0 0; max-width: 28ch;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 600; line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.arc-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: 1.8rem 0 0; }
.arc-link { color: var(--cyan); font: 700 0.85rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.arc-link:hover { color: #fff; text-shadow: 0 0 10px var(--cyan); }

/* The coin slot: every button that starts something. */
.arc-coin {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.9rem 1.6rem; border: 2px solid var(--green); border-radius: 999px;
  background: rgba(92, 255, 143, 0.08); color: #eaffef; cursor: pointer;
  font: 400 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  text-shadow: 0 0 8px var(--green);
  box-shadow: 0 0 10px rgba(92, 255, 143, 0.6), inset 0 0 12px rgba(92, 255, 143, 0.35);
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}
.arc-actions > .arc-coin { animation: arc-beckon 2.4s ease-in-out infinite; }
.arc-coin:hover, .arc-coin:focus-visible {
  background: rgba(92, 255, 143, 0.22); outline: none;
  box-shadow: 0 0 22px var(--green), 0 0 50px rgba(92, 255, 143, 0.5), inset 0 0 16px rgba(92, 255, 143, 0.5);
}
.arc-coin:active { transform: scale(0.95) translateY(2px); }
.arc-coin.small { font-size: 1.05rem; padding: 0.7rem 1.2rem; }

.arc-hud { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin: 2.2rem 0 0; }
.arc-readout {
  font: 400 1.9rem/1 var(--crt); color: var(--amber); letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem; border: 1px solid rgba(255, 176, 59, 0.5); border-radius: 6px; background: rgba(0, 0, 0, 0.45);
  text-shadow: 0 0 8px var(--amber); min-width: 8.5ch; text-align: center;
}
.arc-dymo {
  border: 0; background: transparent; color: var(--muted); padding: 0.3rem 0;
  font: 700 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer;
}
.arc-dymo::before { content: "◉ "; color: var(--pink); animation: arc-blink 1.2s infinite steps(1); }
.arc-hud-note { margin: 0.6rem 0 0; max-width: 40ch; color: var(--muted); font-size: 0.9rem; text-shadow: 0 1px 6px #000; }

/* ---------------------------------------------------------------- the ticker */
.arc-ticker {
  position: relative; z-index: 2; overflow: hidden;
  margin: -1.2rem -2vw 0; transform: rotate(-1.6deg);
  background: var(--pink); color: #12001c;
  box-shadow: 0 0 24px rgba(255, 62, 165, 0.7);
  border-block: 2px solid #ffd3ea;
}
.arc-ticker p { display: flex; width: max-content; margin: 0; padding: 0.7rem 0; animation: arc-run 28s linear infinite; }
.arc-ticker span { font: 400 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 1.1rem; white-space: nowrap; }
.arc-ticker span::after { content: "·"; padding-left: 2.2rem; }

/* ---------------------------------------------------------------- headings and wrapper */
.arc-wrap { max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter); }
.arc-wrap > section { padding-top: clamp(4rem, 9vw, 7rem); }
.arc-h2 {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 0.9; color: #e2fbff;
  text-shadow: 0 0 4px #fff, 0 0 14px var(--cyan), 0 0 34px rgba(46, 230, 255, 0.7);
}
.arc-h2 small {
  display: block; margin-bottom: 0.7rem;
  font: 700 0.78rem/1 var(--mono); letter-spacing: 0.16em; color: var(--pink); text-shadow: 0 0 8px var(--pink);
}

/* ---------------------------------------------------------------- picking a game */
.arc-games-head { display: grid; gap: 2rem; align-items: end; grid-template-columns: 1fr; }
.arc-you {
  width: min(20rem, 70vw); height: auto; justify-self: center; filter: drop-shadow(0 0 24px rgba(255, 62, 165, 0.45));
  -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000 55%, transparent 78%);
          mask-image: radial-gradient(75% 75% at 50% 45%, #000 55%, transparent 78%);
}
.arc-pick { margin-top: 2rem; }
.arc-pick > .arc-mono { margin: 0 0 0.6rem; color: var(--muted); }
.arc-seg { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; }
.arc-seg button {
  padding: 0.6rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(46, 230, 255, 0.55); background: rgba(46, 230, 255, 0.05); color: var(--white);
  font: 700 0.8rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em;
  transition: background 0.2s, box-shadow 0.2s;
}
.arc-seg button:hover { box-shadow: 0 0 12px rgba(46, 230, 255, 0.6); }
.arc-seg button[aria-pressed="true"] { background: var(--cyan); color: #001820; box-shadow: 0 0 18px var(--cyan); border-color: var(--cyan); }
.arc-shake { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
.arc-chosen { min-height: 1.2em; margin: 0.9rem 0 0; color: var(--amber); font-size: 0.9rem; text-shadow: 0 0 8px var(--amber); }
.arc-chosen:not(:empty) { animation: arc-chosen 0.5s ease-out; }

/* ---------------------------------------------------------------- the cabinets */
.arc-cabs {
  display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  perspective: 1100px;
}
.arc-cab {
  --c: var(--spot); --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column;
  padding: 1rem 1rem 1.2rem; border-radius: 18px;
  border: 2px solid var(--c);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.35)), var(--deck);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 22px color-mix(in srgb, var(--c) 18%, transparent), 0 18px 40px rgba(0, 0, 0, 0.5);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out, box-shadow 0.25s;
  scroll-margin-top: 6rem;
}
.arc-cab[hidden] { display: none; }
.arc-cab:hover, .arc-cab.is-picked {
  box-shadow: 0 0 26px var(--c), 0 0 60px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 26px color-mix(in srgb, var(--c) 30%, transparent), 0 24px 50px rgba(0, 0, 0, 0.6);
}
.arc-cab.is-picked { outline: 3px solid #fff; outline-offset: 5px; }
.arc-cab header { display: flex; justify-content: space-between; gap: 1rem; color: var(--c); font-size: 0.68rem; margin-bottom: 0.7rem; text-shadow: 0 0 6px var(--c); }
.arc-cab .screen {
  position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 22%, #020812), #020812 72%);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.arc-cab .screen::before {   /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
}
.arc-cab .screen::after {    /* glass */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.16), transparent 38%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}
.arc-cab .screen img {
  width: 100%; height: 100%; object-fit: contain; padding: 6%;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px var(--c)) drop-shadow(0 0 18px color-mix(in srgb, var(--c) 60%, transparent));
  transition: transform 0.4s ease-out;
}
.arc-cab:hover .screen img, .arc-cab.is-picked .screen img { transform: scale(1.06); }
.arc-cab h3 {
  margin: 1rem 0 0.2rem; font: 400 clamp(1.8rem, 3vw, 2.2rem)/0.95 var(--display); text-transform: uppercase; color: #fff;
  text-shadow: 0 0 10px color-mix(in srgb, var(--c) 80%, transparent);
}
.arc-cab .needs { margin: 0.3rem 0 0.6rem; color: var(--c); font-size: 0.68rem; }
.arc-cab > p:not(.needs) { margin: 0 0 1rem; color: #d9e6ff; font-size: 0.98rem; line-height: 1.45; }
.arc-cab > p.credit { margin: -0.6rem 0 1rem; color: var(--muted); font-size: 0.82rem; }
.arc-cab .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.arc-cab .go .arc-coin {
  border-color: var(--c); color: #fff; background: color-mix(in srgb, var(--c) 12%, transparent);
  text-shadow: 0 0 8px var(--c);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 12px color-mix(in srgb, var(--c) 35%, transparent);
}
.arc-cab .go .arc-coin:hover, .arc-cab .go .arc-coin:focus-visible {
  background: color-mix(in srgb, var(--c) 28%, transparent);
  box-shadow: 0 0 24px var(--c), inset 0 0 16px color-mix(in srgb, var(--c) 50%, transparent);
}
.arc-qr { text-align: center; color: var(--muted); font-size: 0.6rem; line-height: 1.6; }
.arc-qr img { width: 4.6rem; height: 4.6rem; border-radius: 6px; padding: 3px; background: #efe7d4; }
.arc-trial {
  position: absolute; top: -0.8rem; right: 1rem; z-index: 4;
  padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--amber); color: #1c0d00;
  font: 700 0.66rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  box-shadow: 0 0 14px var(--amber);
}
.arc-footnote { margin: 2rem 0 0; color: var(--muted); font-size: 0.9rem; }
.arc-footnote b { color: var(--amber); font-family: var(--mono); letter-spacing: 0.1em; margin-right: 0.4rem; }

/* ---------------------------------------------------------------- how it works */
.arc-operate { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
.arc-side {
  width: min(22rem, 78vw); height: auto; justify-self: center; filter: drop-shadow(0 0 22px rgba(46, 230, 255, 0.35));
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 80%);
          mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 80%);
}
.arc-steps { list-style: none; counter-reset: s; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.arc-steps li {
  counter-increment: s; position: relative;
  padding: 1rem 1.2rem 1rem 4.6rem; border: 2px solid var(--pink); border-radius: 14px;
  background: rgba(255, 62, 165, 0.06); font-size: 1.1rem; line-height: 1.4;
  box-shadow: 0 0 12px rgba(255, 62, 165, 0.45), inset 0 0 14px rgba(255, 62, 165, 0.15);
}
.arc-steps li::before {
  content: counter(s); position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  font: 400 2.6rem/1 var(--display); color: #ffe3f2; text-shadow: 0 0 6px #fff, 0 0 16px var(--pink);
}
.arc-small { margin: 1.4rem 0 0; max-width: 60ch; color: var(--muted); font-size: 0.95rem; }

/* ---------------------------------------------------------------- before you start */
.arc-wrap > .arc-warn {
  display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr;
  margin-top: clamp(4rem, 9vw, 7rem); padding: 1.6rem clamp(1.2rem, 4vw, 2.4rem);
  border: 2px solid var(--amber); border-radius: 18px;
  background: repeating-linear-gradient(-45deg, rgba(255, 176, 59, 0.06) 0 14px, transparent 14px 28px), rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 18px rgba(255, 176, 59, 0.45), inset 0 0 20px rgba(255, 176, 59, 0.12);
}
.arc-warn h2 { margin: 0 0 0.8rem; font: 400 clamp(2rem, 5vw, 3rem)/1 var(--display); text-transform: uppercase; color: #fff1d9; text-shadow: 0 0 12px var(--amber); }
.arc-warn ul { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.5rem; font-size: 1.05rem; }
.arc-warn li::marker { content: "▲  "; color: var(--amber); }
.arc-warn img { width: min(16rem, 70vw); height: auto; justify-self: center; filter: drop-shadow(0 0 16px rgba(255, 176, 59, 0.4)); border-radius: 10px; }

/* ---------------------------------------------------------------- shirts */
.arc-shirt-row { display: grid; gap: 1.5rem; margin-top: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); max-width: 44rem; }
.arc-shirt {
  display: block; padding: 0.8rem; border-radius: 16px; text-decoration: none; color: var(--white);
  border: 2px solid var(--spot); background: var(--deck);
  box-shadow: 0 0 12px color-mix(in srgb, var(--spot) 50%, transparent);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.6s, translate 0.6s;
}
.arc-shirt:hover, .arc-shirt:focus-visible { transform: translateY(-4px); box-shadow: 0 0 26px var(--spot); }
.arc-shirt img { width: 100%; height: auto; border-radius: 10px; display: block; }
.arc-shirt span { display: block; margin-top: 0.7rem; color: var(--spot); }

/* ---------------------------------------------------------------- arriving as you scroll */
.arc-feed { opacity: 0; translate: 0 26px; transition: opacity 0.6s ease-out, translate 0.6s ease-out, transform 0.25s ease-out, box-shadow 0.25s; }
.arc-feed.is-in { opacity: 1; translate: 0 0; }

/* ---------------------------------------------------------------- screen widths */
@media (min-width: 50rem) {
  .arc-games-head { grid-template-columns: 1fr auto; }
  .arc-you { width: 17rem; }
  .arc-operate { grid-template-columns: 20rem 1fr; gap: 3.5rem; }
  .arc-wrap > .arc-warn { grid-template-columns: 1fr 16rem; }
  .arc-hero-copy { padding-bottom: 2rem; }
}
@media (max-width: 49.99rem) {
  .arc-hero { min-height: 46rem; }
  .arc-hero-art { width: 120vw; right: -30vw; top: 3rem; bottom: auto; opacity: 0.55; }
}

/* ---------------------------------------------------------------- motion */
@keyframes arc-run { to { transform: translateX(-33.333%); } }
@keyframes arc-flicker { 0%, 100% { opacity: 1; } 91% { opacity: 0.25; } 92% { opacity: 1; } 95% { opacity: 0.4; } 96% { opacity: 1; } }
@keyframes arc-beckon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes arc-blink { 50% { opacity: 0; } }
@keyframes arc-chosen { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .arc-neon i, .arc-actions > .arc-coin, .arc-dymo::before, .arc-chosen:not(:empty) { animation: none; }
  .arc-ticker p { animation-duration: 120s; }
  .arc-feed { opacity: 1; translate: none; transition: none; }
  .arc-cab { transform: none !important; }
}

/* ---------------------------------------------------------------- shirt rail (replaces the two-card row) */
.arc-shirts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.arc-rail-btns { display: flex; gap: 0.5rem; margin: 0; }
.arc-seg-btn {
  width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--cyan);
  border: 1.5px solid rgba(46, 230, 255, 0.6); background: rgba(46, 230, 255, 0.06);
  box-shadow: 0 0 10px rgba(46, 230, 255, 0.35);
}
.arc-seg-btn:hover, .arc-seg-btn:focus-visible { background: rgba(46, 230, 255, 0.2); box-shadow: 0 0 18px var(--cyan); outline: none; }
.arc-rail {
  list-style: none; margin: 2rem calc(var(--gutter) * -1) 0; padding: 1rem var(--gutter) 1.5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 17rem); gap: 1.4rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--pink) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.arc-rail li { scroll-snap-align: start; }
.arc-rail .arc-shirt { height: 100%; }
.arc-upsell { margin: 0.9rem 0 0; color: var(--muted); font-size: 1.05rem; }
.arc-shirts .arc-h2 { max-width: 14ch; }

/* Tilt started: the title clears off the horizon, leaving the readout and its button. */
.arc-hero-copy > *, .arc-hud > * { transition: opacity .35s ease, visibility .35s; }
.arc-hero.is-tilting .arc-hero-copy > :not(.arc-hud) { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .arc-hero-copy > *, .arc-hud > * { transition: none; }
}
