/* The arcade shell — landing page and 404 only.
 *
 * Deliberately small and separate from any cabinet's stylesheet. A game owns its
 * own CSS inside its own directory; this file styles the building around them.
 *
 * ⚠️ THE SHELL MUST NOT LOOK LIKE ANY ONE CABINET. Until 2026-08-24 this file
 *    opened by saying its tokens were "lifted from elevator/style.css so the arcade
 *    reads as the same place at night" — and they were, verbatim, all twenty of
 *    them. That was defensible with one game in the building and wrong the moment
 *    there were two: the landing wore After Hours Elevator's brown panelling and
 *    brass, so the elevator's own art blended into the page while Thumbspell's card
 *    sat on it like a foreign object. A shell that matches one cabinet is not
 *    neutral chrome, it is that cabinet's lobby with other games parked in it.
 *
 *    **The rule that replaces it: the shell is the dark, the cabinets are the
 *    colour.** Nothing here may borrow a game's palette, typeface or ornament. The
 *    accent is cyan precisely because no cabinet uses cyan — it belongs to the
 *    building, cannot be mistaken for a game's own colour, and stays correct as
 *    stranger cabinets arrive. Deep navy carries the name (this is The *Night*
 *    Arcade) and lets warm cabinet art read as deliberate contrast rather than as
 *    the page failing to match itself.
 *
 *    The test when adding a cabinet: if its thumbnail looks *better* against this
 *    page than the others do, the page has picked a favourite. Fix the page.
 */

:root {
  /* Ground. Navy rather than black so cabinet art sits on something, not in a void. */
  --bg-glow: #1b2140;
  --bg-mid: #0c0e1a;
  --bg-deep: #07080f;

  /* Type. Cool greys, not the warm creams a cabinet would use. */
  --fg: #c5cbe0;
  --fg-strong: #f4f6ff;
  --fg-dim: #9aa2c0;
  --fg-faint: #6b7391;

  /* The building's own colour. Not a game's — see the header. */
  --accent: #67e8f9;
  --accent-dim: rgba(103, 232, 249, 0.5);
  --accent-wash: rgba(103, 232, 249, 0.12);

  --card: #12162a;
  --well: #0e1122;
  --line: rgba(103, 232, 249, 0.16);
  --line-soft: rgba(197, 203, 224, 0.1);

  --radius: 0.7rem;
  --ui: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ⚠️ LOAD-BEARING, not boilerplate. `element.hidden = true` works only because the
   UA stylesheet says `[hidden] { display: none }` — the weakest source there is, so
   ANY author rule setting `display` beats it silently, with the attribute correctly
   set in the DOM and the element on screen anyway. The stat wall below ships hidden
   and is `display: grid` when shown, which is exactly that collision. This is
   AGENT.md gotcha 9, which elevator/style.css lost to three times before anyone
   named it; the same one-line fix is at the top of that file. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  font-family: var(--ui);
  color: var(--fg);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-glow) 0%, var(--bg-mid) 55%, var(--bg-deep) 100%)
    fixed,
    var(--bg-deep);
}

.site {
  max-width: 62rem;
  margin: 0 auto;
}

/* --- masthead ------------------------------------------------------------ */

.marquee {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow,
.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* The one place the shell is allowed to be theatrical. A marquee glows; that is
   what a marquee is for, and it is the only ornament this page has now that the
   elevator's lantern and ledger-paper texture are gone. */
.marquee h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--fg-strong);
  text-shadow: 0 0 2.5rem rgba(103, 232, 249, 0.35);
}

.marquee .lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg-dim);
}

/* --- cabinets ------------------------------------------------------------ */

.cabinets {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel,
.cabinet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.cabinet {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cabinet-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--well);
}

.cabinet-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.15rem, 3vw, 1.4rem);
}

.cabinet-kicker {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.cabinet h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  font-weight: 640;
  line-height: 1.2;
  color: var(--fg-strong);
}

.cabinet p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fg-dim);
}

.cabinet-cadence {
  font-size: 0.78rem;
  color: var(--fg-faint);
}

.cabinet-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* --- buttons and links --------------------------------------------------- */

/* Outlined rather than filled. A solid accent button twice on one page would
   out-shout both pieces of cabinet art, which are the actual content here. */
.primary-button {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--accent-dim);
  border-radius: 0.45rem;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--accent-wash);
  border-color: var(--accent);
}

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

/* --- stat wall ----------------------------------------------------------- */
/* Quieter than a cabinet on purpose: it is the player's own record, not something
   to click. Ships hidden — see the [hidden] rule above, which is what makes that
   work. */

.statwall {
  display: grid;
  gap: 0.3rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.25rem, 3vw, 1.6rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--well);
}

.statwall-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 640;
  color: var(--fg-strong);
}

.statwall-note {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  color: var(--fg-faint);
}

.statwall-games {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.statgroup {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) - 0.25rem);
  background: var(--card);
}

.statgroup-title {
  margin: 0 0 0.65rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* A <dl>, so the label and its number are associated rather than merely adjacent.
   `1fr auto` puts the value hard right without either side needing a fixed width. */
.statgroup-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  margin: 0;
  align-items: baseline;
}

.statgroup-rows dt {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.statgroup-rows dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-strong);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- 404 ----------------------------------------------------------------- */

.notice {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.notice h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--fg-strong);
}

.notice p {
  margin: 0 0 1.5rem;
  line-height: 1.65;
  color: var(--fg-dim);
}

/* The 404's one ornament: a row of marquee bulbs, dark. Replaced the elevator's
   lantern sconce on 2026-08-24 — a lantern is that game's prop, not the arcade's. */
.notice .marquee-bulbs {
  display: block;
  width: 6rem;
  margin: 0 auto 1.25rem;
}

/* --- footer -------------------------------------------------------------- */

.colophon {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--fg-faint);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
