/* ==========================================================================
   boredatwork.fun — landing page only: "arcade CRT after hours"
   The whole viewport is a 1980s tube monitor. Phosphor amber on CRT black,
   cyan/magenta reserved for chromatic-aberration fringes and one neon label.
   Game pages + privacy page keep css/style.css; this file stands alone
   (boss-screen Excel styles are duplicated at the bottom so the boss key
   works here too — boss mode is deliberately NOT themed).
   ========================================================================== */

:root {
  --bg: #0a0e0a;                               /* CRT black, faint green cast */
  --phos: #ffb000;                             /* phosphor amber */
  --phos-hot: #ffd34d;                         /* brighter excitation */
  --phos-white: #fff3d6;                       /* white-hot text */
  --phos-dim: rgba(255, 176, 0, 0.30);
  --phos-faint: rgba(255, 176, 0, 0.10);
  --cyan: #35e0d0;                             /* aberration fringe / neon */
  --magenta: #ff3c7e;                          /* aberration fringe */
  --text: #ecd9a8;                             /* body copy, warm amber-white */
  --muted: #b08d57;                            /* dimmed phosphor */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;            /* the grotesque */
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas,
               Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Phosphor wash: the tube is never uniformly black — a faint warm glow sits
   in the centre and the corners fall off. Fixed so content scrolls over it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(255, 176, 0, 0.055), transparent 60%),
    radial-gradient(90% 70% at 50% 105%, rgba(53, 224, 208, 0.035), transparent 60%);
}

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--phos); }

::selection { background: var(--phos); color: #0a0e0a; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ==========================================================================
   CRT chrome — three fixed layers over everything except boss mode
   (boss-screen is z-index 9999: the spreadsheet must NOT look like a CRT).
   ========================================================================== */

/* --- scanlines + slow retrace band + flicker ----------------------------- */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.22) 0px,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: crt-flicker 4s steps(60) infinite;
}

/* the bright horizontal band that drifts down the tube */
.crt-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -35%;
  height: 30%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 211, 77, 0.028) 35%,
    rgba(255, 211, 77, 0.05) 50%,
    rgba(255, 211, 77, 0.028) 65%,
    transparent
  );
  animation: crt-retrace 9s linear infinite;
}

@keyframes crt-retrace {
  from { transform: translateY(0); }
  to   { transform: translateY(450%); }
}

@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  3%  { opacity: 0.92; }
  7%  { opacity: 1; }
  31% { opacity: 0.96; }
  33% { opacity: 1; }
  58% { opacity: 0.94; }
  60% { opacity: 1; }
  84% { opacity: 0.97; }
  86% { opacity: 1; }
}

/* --- bezel: barrel curvature fake — rounded vignette + corner falloff ---- */
.crt-bezel {
  position: fixed;
  inset: 0;
  z-index: 9001;
  pointer-events: none;
  border-radius: 2.5vmin / 3.5vmin;
  box-shadow:
    inset 0 0 8vmin rgba(0, 0, 0, 0.85),
    inset 0 0 2.5vmin rgba(0, 0, 0, 0.65);
  background: radial-gradient(
    ellipse 130% 130% at 50% 50%,
    transparent 62%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

/* --- power-on: white dot → line snaps wide → blooms open ------------------ */
.crt-boot {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #000;
  pointer-events: none;     /* never blocks input; arcade.js also removes it */
  animation: boot-fade 0.25s ease-out 1.05s forwards;
}

.crt-boot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 22px 5px rgba(255, 255, 255, 0.9),
    0 0 70px 18px rgba(255, 176, 0, 0.55);
  animation: boot-line 1.15s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes boot-line {
  0%   { transform: translate(-50%, -50%) scale(0.005, 1); opacity: 0; }
  8%   { opacity: 1; }
  12%  { transform: translate(-50%, -50%) scale(0.005, 1.5); }   /* the dot */
  45%  { transform: translate(-50%, -50%) scale(1, 1); }         /* snaps wide */
  62%  { transform: translate(-50%, -50%) scale(1, 1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1, 320); opacity: 0; } /* bloom */
}

@keyframes boot-fade {
  to { opacity: 0; visibility: hidden; }
}

/* marquee buzzes on just as the bloom clears */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: marquee-buzz 0.55s steps(2, jump-none) 0.95s backwards;
  }
}

@keyframes marquee-buzz {
  0%   { opacity: 0; }
  25%  { opacity: 0.8; }
  35%  { opacity: 0.2; }
  55%  { opacity: 1; }
  70%  { opacity: 0.55; }
  100% { opacity: 1; }
}

/* ==========================================================================
   Header — thin amber service rail with a coin slot
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--phos-dim);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--phos-white);
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.45);
}

.logo span { color: var(--phos); }
.logo .tld { color: var(--muted); font-weight: 600; }

.coin-slot {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--phos);
  background: transparent;
  border: 2px solid var(--phos-dim);
  border-radius: 3px;
  padding: 0.5rem 0.8rem 0.42rem;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.coin-slot:hover {
  border-color: var(--phos);
  box-shadow: 0 0 14px rgba(255, 176, 0, 0.25);
}

.coin-slot.coin-bump { animation: coin-bump 0.3s steps(3, jump-none); }

@keyframes coin-bump {
  0%   { color: var(--phos-white); box-shadow: 0 0 22px rgba(255, 176, 0, 0.6); }
  100% { color: var(--phos); }
}

/* ==========================================================================
   Hero — the marquee
   ========================================================================== */

.hero {
  position: relative;
  padding: 2.6rem 0 2.2rem;
  text-align: center;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  top: 50%;
  right: -8%;
  width: clamp(260px, 38vw, 460px);
  height: auto;
  transform: translateY(-52%) rotate(8deg);
  color: var(--phos);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero .container { position: relative; }

.attract-tag {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin: 0 0 1.4rem;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.3);
}

/* The grotesque stays — now it's the marquee, white-hot with chromatic
   fringing (cyan ghost left, magenta ghost right) and phosphor bloom. */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.2vw, 3.7rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 1000px;
  margin: 0 auto 1.1rem;
  text-wrap: balance;
  color: var(--phos-white);
  text-shadow:
    -2px 0 0 rgba(53, 224, 208, 0.38),
     2px 0 0 rgba(255, 60, 126, 0.38),
     0 0 16px rgba(255, 176, 0, 0.55),
     0 0 56px rgba(255, 176, 0, 0.22);
}

/* "an email." — pure phosphor, glowing hotter than the rest */
.grad {
  color: var(--phos);
  text-shadow:
    -2px 0 0 rgba(53, 224, 208, 0.42),
     2px 0 0 rgba(255, 60, 126, 0.42),
     0 0 18px rgba(255, 176, 0, 0.75),
     0 0 64px rgba(255, 176, 0, 0.35);
}

.hero-br { display: none; }

.hero-sub {
  color: var(--muted);
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  max-width: 720px;
  margin: 0 auto 1.3rem;
}

/* "quick sync" gets struck through shortly after the marquee buzzes on */
.sync { position: relative; white-space: nowrap; }

.sync::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 55%;
  height: 2px;
  border-radius: 2px;
  background: var(--magenta);
  box-shadow: 0 0 8px rgba(255, 60, 126, 0.6);
  transform: scaleX(0);
  transform-origin: left center;
  animation: strike 0.45s cubic-bezier(0.65, 0, 0.35, 1) 1.7s forwards;
}

@keyframes strike { to { transform: scaleX(1); } }

.insert-coin {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--phos);
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.6);
  margin: 0 0 1.3rem;
  animation: coin-blink 1.4s steps(1) infinite;
}

.insert-coin .caret { margin-left: 0.4em; }

@keyframes coin-blink {
  0%, 64%  { opacity: 1; }
  65%, 100% { opacity: 0.18; }
}

.boss-hint {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px dashed var(--phos-dim);
  border-radius: 3px;
  padding: 0.5rem 1.1rem;
  margin: 0;
  background: var(--phos-faint);
  box-shadow: inset 0 0 18px rgba(255, 176, 0, 0.05);
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--phos-hot);
  background: rgba(255, 176, 0, 0.08);
  border: 1px solid var(--phos-dim);
  border-bottom-width: 3px;
  border-radius: 4px;
  padding: 0.08rem 0.4rem 0.05rem;
  text-shadow: 0 0 6px rgba(255, 176, 0, 0.5);
}

/* ==========================================================================
   Game select — two banks of cabinet tiles
   ========================================================================== */

.arcade { padding: 1.2rem 0 2.8rem; }

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--phos);
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.55), 0 0 40px rgba(255, 176, 0, 0.2);
  margin: 0 0 0.6rem;
}

.section-title .tick { animation: coin-blink 1.4s steps(1) infinite; }

/* the one allowed neon sign: multiplayer bank glows cyan */
.section-title--vs {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(53, 224, 208, 0.55), 0 0 40px rgba(53, 224, 208, 0.2);
}

.arcade-sub {
  color: var(--muted);
  margin: 0 0 1.6rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   How it works — three quick steps for first-timers
   ========================================================================== */

.howto { padding: 0.4rem 0 2rem; }

.howto-steps {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.howto-steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--phos-hot);
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.4);
}

.howto-steps .n {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  border: 1px solid var(--phos-dim);
  border-radius: 3px;
  color: var(--phos);
  font-size: 0.55rem;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.5);
}

/* arrow between steps (decorative; hidden from the count on wrap) */
.howto-steps li:not(:last-child)::after {
  content: "\2192";
  margin-left: 0.3rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  text-shadow: 0 0 8px rgba(53, 224, 208, 0.5);
}

.howto-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.howto-note b { color: var(--phos); font-weight: 600; }

/* stacked on phones — drop the now-sideways arrows */
@media (max-width: 560px) {
  .howto-steps { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .howto-steps li:not(:last-child)::after { display: none; }
}

/* CSS Grid: cards in a row stretch to the tallest of that row, so each row is
   self-levelling. Columns are capped and centered in the container; drops to
   2-up, then 1-up on narrower screens.

   Deliberately stays 3-up at every width above 1000px: the six non-featured
   Multiplayer tiles fill 3+3 with no orphan, which a 4-up rule would break
   into 4+2. */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 430px));
  justify-content: center;
  gap: 1.1rem;
}

@media (max-width: 1000px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 430px)); }
}

@media (max-width: 620px) {
  .game-grid { grid-template-columns: minmax(0, 430px); }
}

/* The multiplayer and solo markup now share one visual wall. Keeping the
   wrappers in the HTML preserves the content structure, while display:contents
   lets every game participate in the same responsive grid. */
.arcade[aria-labelledby="games-heading"] > .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.arcade[aria-labelledby="games-heading"] .game-grid {
  display: contents;
}

.arcade[aria-labelledby="games-heading"] > .container > .section-title,
.arcade[aria-labelledby="games-heading"] > .container > .arcade-sub {
  grid-column: 1 / -1;
}

.arcade[aria-labelledby="games-heading"] #solo-heading,
.arcade[aria-labelledby="games-heading"] #solo-heading + .arcade-sub {
  display: none;
}

@media (max-width: 1000px) {
  .arcade[aria-labelledby="games-heading"] > .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .arcade[aria-labelledby="games-heading"] > .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }
}

/* --- a select-screen tile, not a SaaS card -------------------------------- */
/* Each tile is now a little arcade cabinet: a CRT "screen" up top showing the
   game's emblem at rest and a real gameplay screenshot when the cabinet powers
   up (hover/focus), with the title/meta/copy panel below. */
.game-card {
  --ac: var(--phos);
  min-width: 0;               /* grid item: allow shrink below content width */
  position: relative;
  overflow: hidden;
  display: flex;             /* column layout so card-cta's margin-top:auto pins PLAY to the bottom */
  flex-direction: column;
  align-items: stretch;
  background:
    repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.16) 0px, rgba(0, 0, 0, 0.16) 1px,
      transparent 1px, transparent 3px),
    rgba(255, 176, 0, 0.035);
  border: 1px solid var(--phos-dim);
  border-radius: 5px;
  padding: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
              transform 0.18s ease;
}

/* --- the screen: emblem at rest, live gameplay on power-up ----------------- */
.card-screen {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050704;
  border-bottom: 1px solid var(--phos-dim);
}

/* 8-bit emblem, centred on the dark tube; radial mask melts its black field
   into the screen so it reads as phosphor, not a pasted rectangle */
.card-screen .art {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 58%, transparent 98%);
  mask-image: radial-gradient(circle closest-side, #000 58%, transparent 98%);
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

/* the live feed: hidden until the cabinet powers up */
.card-screen .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  filter: saturate(0.85) brightness(0.9);
  transition: opacity 0.22s ease, transform 0.4s ease, filter 0.4s ease;
}

/* screen glass: scanlines + corner falloff, over both art and shot */
.card-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.18) 0px, rgba(0, 0, 0, 0.18) 1px,
      transparent 1px, transparent 3px),
    radial-gradient(ellipse 120% 120% at 50% 50%,
      transparent 64%, rgba(0, 0, 0, 0.42) 100%);
}

/* LIVE FEED chip: the "hover me" tell, lit in the cabinet's neon on power-up */
.card-screen .feed {
  position: absolute;
  right: 0.6rem;
  bottom: 0.55rem;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: rgba(5, 7, 4, 0.72);
  border: 1px solid var(--phos-dim);
  border-radius: 2px;
  padding: 0.28rem 0.42rem 0.22rem;
  opacity: 0.75;
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.game-card:hover .card-screen .art,
.game-card:focus-within .card-screen .art {
  opacity: 0;
  transform: scale(0.94);
}

.game-card:hover .card-screen .shot,
.game-card:focus-within .card-screen .shot {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

.game-card:hover .card-screen .feed,
.game-card:focus-within .card-screen .feed {
  opacity: 1;
  color: var(--ac);
  border-color: color-mix(in srgb, var(--ac) 55%, transparent);
  text-shadow: 0 0 6px color-mix(in srgb, var(--ac) 55%, transparent);
}

.game-card:hover .card-screen .feed .feed-dot,
.game-card:focus-within .card-screen .feed .feed-dot {
  animation: coin-blink 0.9s steps(1) infinite;
}

/* the tube changes channel with a hiccup, not a dissolve */
@media (prefers-reduced-motion: no-preference) {
  .game-card:hover .card-screen .shot,
  .game-card:focus-within .card-screen .shot {
    animation: feed-on 0.38s steps(3, jump-none);
  }
}

@keyframes feed-on {
  0%   { opacity: 0; }
  30%  { opacity: 0.85; }
  45%  { opacity: 0.2; }
  70%  { opacity: 1; }
  85%  { opacity: 0.7; }
  100% { opacity: 1; }
}

/* No hover on touch: the screen just shows the live feed, dimmed through the
   same glass, and the chip stops pretending to be an affordance. */
@media (hover: none) {
  .card-screen .art { opacity: 0; }
  .card-screen .shot { opacity: 1; transform: none; filter: saturate(0.9); }
  .card-screen .feed { opacity: 0.55; }
}

/* the copy panel under the screen */
.card-body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.15rem 1.2rem;
}

/* Lit marquee strip along the top edge — with the line icons gone, this is
   what carries each cabinet's neon identity at rest. Sits above the art
   (which bleeds to the top edge), like the lip of a backlit sign. */
.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1;
  background: linear-gradient(90deg,
    transparent, var(--ac) 22%, var(--ac) 78%, transparent);
  box-shadow: 0 0 14px var(--ac);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.game-card:hover::before,
.game-card:focus-within::before {
  opacity: 1;
}

/* Cabinet number as arcade signage — a big ghost numeral over the art's
   top-left corner, not a metadata line above the title. */
.tile-no {
  position: absolute;
  top: 0.6rem;
  left: 0.85rem;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ac);
  opacity: 0.42;
  /* dark halo so the numeral keeps an edge over bright artwork */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

/* Player-count pill rides the art's top-right corner like a HUD badge.
   The faint backing keeps it legible over bright artwork. */
.players {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--phos-dim);
  border-radius: 2px;
  padding: 0.3rem 0.45rem 0.24rem;
  background: rgba(10, 14, 10, 0.55);
}

/* In a featured card the pill rides the meta line instead of the corner */
.card-meta .players {
  position: static;
  background: none;
}

.game-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--phos-hot);
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.45);
  margin: 0 0 0.55rem;
}

/* at-a-glance, all on one line: genre tag (in the cabinet's neon), an optional
   play-mode tag, then approx play time. One row for every card, however many
   badges it carries, so cards sitting side by side stay level. */
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-meta .tag {
  color: var(--ac);
  border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent);
  border-radius: 2px;
  padding: 0.3rem 0.42rem 0.24rem;
  text-shadow: 0 0 6px color-mix(in srgb, var(--ac) 45%, transparent);
}

.card-meta .time { color: var(--muted); }

/* Real "·" separator element (a literal node in the HTML, not a ::before
   pseudo-element) so the dot is actual content and the spans can never read
   as one joined string. Press Start 2P lacks the "·" glyph, so the separator
   is drawn in a system font; the flex `gap` above handles the spacing. */
.card-meta .sep {
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  color: var(--muted);
  opacity: 0.8;
}

/* Play-mode indicator (e.g. Pin Drop does both) — a lit accent pill, distinct
   from the outline-only genre tag, riding the same meta line. */
.card-meta .mode-tag {
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac);
  border: 1px solid var(--ac);
  border-radius: 2px;
  padding: 0.3rem 0.42rem 0.24rem;
  background: color-mix(in srgb, var(--ac) 14%, transparent);
  text-shadow: 0 0 6px color-mix(in srgb, var(--ac) 55%, transparent);
}

.game-card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* tile powers up on hover/focus: flicker, then hold the glow — border and
   bloom tint toward the cabinet's own neon */
.game-card:hover,
.game-card:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ac) 75%, var(--phos));
  box-shadow:
    0 0 26px color-mix(in srgb, var(--ac) 24%, transparent),
    0 0 60px color-mix(in srgb, var(--ac) 10%, transparent),
    inset 0 0 30px color-mix(in srgb, var(--ac) 6%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .game-card:hover,
  .game-card:focus-within {
    animation: tile-power 0.4s steps(2, jump-none);
  }
}

@keyframes tile-power {
  0%   { filter: brightness(1); }
  20%  { filter: brightness(1.7); }
  35%  { filter: brightness(0.75); }
  55%  { filter: brightness(1.5); }
  75%  { filter: brightness(0.95); }
  100% { filter: brightness(1); }
}

.game-card:hover h3,
.game-card:focus-within h3 {
  color: var(--phos-white);
  text-shadow:
    -1px 0 0 rgba(53, 224, 208, 0.45),
     1px 0 0 rgba(255, 60, 126, 0.45),
     0 0 14px rgba(255, 176, 0, 0.7);
}

/* --- the marquee cabinet --------------------------------------------------- */

/* Spans the whole grid at the top of its section, so the tiles below it fill
   clean rows with no orphan. The screen moves beside the copy and grows —
   the biggest live feed on the page. Stacks back into a normal tile on mobile. */
.game-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

/* The screen takes the left bay and stretches to the copy's height; the shot
   covers it, so the feed just gets a wider window rather than a squashed one. */
.game-card--featured .card-screen {
  flex: none;
  width: 46%;
  max-width: 620px;
  aspect-ratio: auto;
  min-height: 300px;
  border-bottom: none;
  border-right: 1px solid var(--phos-dim);
}

/* Featured cabinet gets marquee-size type */
.game-card--featured h3 {
  font-size: 1.15rem;
}

.game-card--featured .card-body {
  justify-content: center;
  padding: 1.3rem 1.6rem 1.4rem;
}

/* auto would beat justify-content and strand PLAY at the tile's foot; the
   preceding <p>'s bottom margin already sets the gap. */
.game-card--featured .card-cta { margin-top: 0; }

/* keep the wide card's description at a readable measure */
.game-card--featured p { max-width: 62ch; }

@media (max-width: 620px) {
  .game-card--featured {
    flex-direction: column;
  }

  .game-card--featured .card-screen {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--phos-dim);
  }

  .game-card--featured h3 {
    font-size: 0.92rem;
  }

  .game-card--featured .card-body {
    justify-content: flex-start;
    padding: 1rem 1.15rem 1.2rem;
  }
}

/* --- INSERT COIN buttons --------------------------------------------------- */
.card-cta { margin-top: auto; }

/* Each cabinet's button glows in its own neon (--ac from the tile); the
   fallback keeps any button outside a card on house amber. */
.play-btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ac, var(--phos));
  background: transparent;
  border: 2px solid var(--ac, var(--phos));
  border-radius: 3px;
  padding: 0.65rem 1.1rem 0.55rem;
  text-shadow: 0 0 8px color-mix(in srgb, var(--ac, var(--phos)) 55%, transparent);
  transition: background-color 0.12s ease, color 0.12s ease,
              box-shadow 0.12s ease;
}

.play-btn::before { content: "► "; }

/* coin-slot pulse so the row of buttons reads INSERT COIN, INSERT COIN… */
@media (prefers-reduced-motion: no-preference) {
  .play-btn {
    animation: btn-pulse 1.4s steps(1) infinite;
  }
}

@keyframes btn-pulse {
  0%, 64%   { box-shadow: 0 0 14px color-mix(in srgb, var(--ac, var(--phos)) 30%, transparent); }
  65%, 100% { box-shadow: 0 0 3px color-mix(in srgb, var(--ac, var(--phos)) 10%, transparent); }
}

.play-btn:hover,
.play-btn:focus-visible {
  background: var(--ac, var(--phos));
  color: #0a0e0a;
  text-shadow: none;
  box-shadow: 0 0 26px color-mix(in srgb, var(--ac, var(--phos)) 55%, transparent);
  animation: none;
}

/* ==========================================================================
   Scroll-in reveal — js/main.js sets .reveal-ready / .in-view / --i;
   here it reads as each tile's tube warming up in sequence.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .game-card { opacity: 0; }

  .reveal-ready .game-card.in-view {
    opacity: 1;
    animation: tile-on 0.5s steps(5, jump-none) backwards;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  @keyframes tile-on {
    0%   { opacity: 0; }
    30%  { opacity: 0.65; }
    45%  { opacity: 0.15; }
    70%  { opacity: 1; }
    82%  { opacity: 0.6; }
    100% { opacity: 1; }
  }

  /* Idle attract flicker — js/main.js crackles one random cabinet every few
     seconds. Placed after (and outranking) the reveal rule so the reveal's
     finished animation doesn't pin the animation property forever. */
  .game-grid .game-card.attract {
    animation: tile-power 0.45s steps(2, jump-none);
  }
}

/* ==========================================================================
   Ad slot — collapses to nothing while empty
   ========================================================================== */

.ad-slot { margin: 0 0 2.5rem; }

.ad-slot-inner:not(:empty) {
  min-height: 90px;
  display: flex;
  justify-content: center;
  border: 1px solid var(--phos-dim);
  border-radius: 5px;
  overflow: hidden;
}

.ad-slot:has(.ad-slot-inner:empty) { display: none; }

/* ==========================================================================
   FAQ — crawlable Q&A, same cabinet panel as the rest of the arcade
   ========================================================================== */

.faq-list { display: grid; gap: 0.85rem; margin: 0; }

.faq-item {
  background:
    repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.10) 0px, rgba(0, 0, 0, 0.10) 1px,
      transparent 1px, transparent 3px),
    var(--phos-faint);
  border: 1px solid var(--phos-dim);
  border-radius: 5px;
  padding: 1rem 1.15rem 1.1rem;
}

.faq-item dt {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--phos-hot);
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.35);
}

/* same tick as the section titles, so the FAQ reads as arcade hardware too */
.faq-item dt::before {
  content: "▸ ";
  color: var(--phos);
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.5);
}

.faq-item dd {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================================================
   Footer — bottom status line
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--phos-dim);
  padding: 1.3rem 0 1.6rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.footer-inner p { margin: 0.15rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--phos); }
.footer-tag { opacity: 0.75; }

/* ==========================================================================
   Reduced motion — the tube is on, but nothing moves
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crt-boot { display: none; }
  .crt-overlay { animation: none; }
  .crt-overlay::before { display: none; }
  .insert-coin,
  .section-title .tick { animation: none; }
  .game-card,
  .coin-slot,
  .play-btn { transition: none; }
  .game-card:hover,
  .game-card:focus-within { transform: none; }
  .sync::after { animation: none; transform: scaleX(1); }
}

@media (min-width: 540px) {
  .hero-br { display: inline; }
}

/* ==========================================================================
   BOSS MODE — the fake spreadsheet. Deliberately NOT themed: real
   spreadsheets are white no matter what your taste is. (Copied from
   style.css so this page stands alone; keep the two in sync.)
   ========================================================================== */

#boss-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  color: #222222;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  cursor: cell;
}

#boss-screen[hidden] { display: none; }

/* ========================================================================== 
   Tile refresh — a friendlier, bento-like game wall
   The tube, scanlines and pixel type stay intact; the tiles become brighter,
   more tactile and easier to browse at a glance.
   ========================================================================== */

.game-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  grid-auto-rows: 430px;
}

.game-card {
  height: 430px;
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--ac) 58%, var(--phos-dim));
  border-radius: 10px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--ac) 12%, transparent), transparent 46%),
    rgba(10, 14, 10, 0.84);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255,255,255,0.025);
  transform: rotate(var(--tile-tilt, 0deg));
}

.game-card:nth-child(3n) { --tile-tilt: 0.35deg; }
.game-card:nth-child(4n) { --tile-tilt: -0.35deg; }

.game-card::before {
  height: 4px;
  top: -1px;
  border-radius: 10px 10px 0 0;
  opacity: 0.9;
}

.card-screen {
  height: 52%;
  flex: 0 0 52%;
  aspect-ratio: auto;
  border-bottom: 0;
  background: var(--ac);
  isolation: isolate;
}

.card-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 88%, white), color-mix(in srgb, var(--ac) 62%, #111) 72%);
  mix-blend-mode: screen;
  opacity: 0.16;
  pointer-events: none;
}

.card-screen .shot {
  opacity: 0.88;
  transform: scale(1);
  filter: saturate(1.15) contrast(1.02);
}

.card-screen .art {
  display: none;
}

.card-screen::after {
  z-index: 3;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.14) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, transparent 68%, rgba(0,0,0,0.34));
}

.card-screen .feed {
  z-index: 4;
  right: 0.7rem;
  bottom: 0.7rem;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.38);
  border-radius: 999px;
  padding: 0.34rem 0.52rem 0.28rem;
  opacity: 0.92;
}

/* These are illustrations now, so a gameplay-feed label would be misleading. */
.card-screen .feed { display: none; }

.game-card:hover .card-screen .shot,
.game-card:focus-within .card-screen .shot {
  opacity: 1;
  transform: scale(1.04);
  filter: saturate(1.25) contrast(1.04);
}

.card-body {
  padding: 0.95rem 1rem 1rem;
  overflow: hidden;
}

.game-card h3 {
  margin-bottom: 0.42rem;
  color: var(--phos-white);
  font-size: 0.78rem;
  letter-spacing: 0.045em;
  text-shadow: 2px 2px 0 color-mix(in srgb, var(--ac) 55%, transparent);
}

.card-meta {
  gap: 0.38rem;
  margin-bottom: 0.7rem;
  font-size: 0.36rem;
}

.card-meta .tag,
.card-meta .mode-tag {
  border-radius: 999px;
  padding: 0.29rem 0.48rem 0.23rem;
}

.game-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 0.9rem;
  font-size: 0.76rem;
  line-height: 1.55;
}

.players {
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  border-radius: 999px;
  color: #0a0e0a;
  background: var(--phos-hot);
  padding: 0.34rem 0.48rem 0.27rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

/* List Rush keeps its player count in the metadata row in the HTML; present
   it in the same corner badge position as the other cards. */
.game-card .card-meta .players {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  color: #0a0e0a;
  background: var(--phos-hot);
  border: 0;
  border-radius: 999px;
  padding: 0.34rem 0.48rem 0.27rem;
}

.tile-no {
  top: 0.75rem;
  left: 0.8rem;
  font-size: 1.35rem;
  color: #fff;
  opacity: 0.78;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.42);
}

.play-btn {
  border-radius: 999px;
  padding: 0.52rem 0.82rem 0.44rem;
  font-size: 0.48rem;
  color: #0a0e0a;
  background: var(--ac, var(--phos));
  border-color: var(--ac, var(--phos));
  box-shadow: 3px 3px 0 rgba(0,0,0,0.28);
  text-shadow: none;
}

.play-btn::before { content: "▸ "; }

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-5px) rotate(0deg);
  border-color: var(--ac);
  box-shadow: 0 12px 0 rgba(0,0,0,0.22), 0 0 28px color-mix(in srgb, var(--ac) 28%, transparent), inset 0 0 26px color-mix(in srgb, var(--ac) 8%, transparent);
}

.game-card--featured {
  grid-column: auto;
  flex-direction: column;
}

.game-card--featured .card-screen {
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 52%;
  flex-basis: 52%;
  aspect-ratio: auto;
  border-right: 0;
}

.game-card--featured .card-body {
  justify-content: flex-start;
  padding: 0.95rem 1rem 1rem;
}

.game-card--featured h3 { font-size: 0.9rem; }
.game-card--featured p { max-width: none; }

@media (max-width: 1000px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 430px;
  }
}

@media (max-width: 620px) {
  .game-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 410px;
    gap: 0.9rem;
  }
  .game-card { height: 410px; }
  .game-card--featured { grid-column: auto; }
  .game-card--featured .card-screen { aspect-ratio: auto; }
  .game-card:nth-child(3n), .game-card:nth-child(4n) { --tile-tilt: 0deg; }
}

.xl-ribbon {
  background: #f3f2f1;
  border-bottom: 1px solid #d4d2d0;
  padding: 4px 8px 0;
  user-select: none;
}

.xl-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 6px;
  font-size: 12px;
  color: #444;
}

.xl-logo {
  background: #107c41;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  border-radius: 3px;
  padding: 2px 5px;
}

.xl-menus {
  display: flex;
  gap: 2px;
  font-size: 12.5px;
  color: #333;
  overflow-x: auto;
  scrollbar-width: none;
}

.xl-menus span {
  padding: 5px 10px 7px;
  border-radius: 4px 4px 0 0;
  white-space: nowrap;
}

.xl-menus span:hover { background: #e6e4e2; }

.xl-menus .active {
  background: #ffffff;
  border: 1px solid #d4d2d0;
  border-bottom: none;
  color: #107c41;
  font-weight: 600;
}

.xl-formulabar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #d4d2d0;
  background: #ffffff;
  font-size: 12px;
  user-select: none;
}

.xl-namebox {
  width: 72px;
  padding: 4px 8px;
  border-right: 1px solid #d4d2d0;
  color: #333;
  flex-shrink: 0;
}

.xl-fx {
  padding: 4px 8px;
  color: #888;
  border-right: 1px solid #e8e6e4;
  font-style: italic;
  font-family: Georgia, serif;
  flex-shrink: 0;
}

.xl-formula {
  padding: 4px 8px;
  font-family: Calibri, "Segoe UI", sans-serif;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
}

.xl-grid-wrap { flex: 1; overflow: auto; background: #ffffff; }

.xl-grid { border-collapse: collapse; table-layout: fixed; }

.xl-grid th,
.xl-grid td {
  border: 1px solid #e2e0de;
  padding: 2px 6px;
  height: 20px;
  white-space: nowrap;
  overflow: hidden;
  font-weight: normal;
  text-align: left;
}

.xl-grid th {
  background: #f3f2f1;
  border-color: #d4d2d0;
  color: #555;
  text-align: center;
  font-size: 11.5px;
  user-select: none;
  position: sticky;
}

.xl-grid thead th { top: 0; z-index: 2; }
.xl-grid tbody th { left: 0; z-index: 1; width: 36px; }
.xl-grid thead th:first-child { left: 0; z-index: 3; }

.xl-grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.xl-grid td.neg { color: #c00000; }
.xl-grid td.head { font-weight: 700; background: #f8f8f8; }
.xl-grid tr.total td { font-weight: 700; border-top: 2px solid #555; }

.xl-grid td.selected {
  outline: 2px solid #107c41;
  outline-offset: -2px;
}

.xl-tabs {
  display: flex;
  align-items: center;
  gap: 1px;
  background: #f3f2f1;
  border-top: 1px solid #d4d2d0;
  padding: 0 6px;
  font-size: 12px;
  user-select: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.xl-tabs span {
  padding: 4px 12px;
  border: 1px solid #d4d2d0;
  border-top: none;
  background: #eae8e6;
  color: #444;
  white-space: nowrap;
}

.xl-tabs .active {
  background: #ffffff;
  color: #107c41;
  font-weight: 600;
  border-bottom: 2px solid #107c41;
}

.xl-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #107c41;
  color: #ffffff;
  font-size: 11.5px;
  padding: 3px 12px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
