/* Family Arcade lobby: a 90s family-fun-center look.
   Carpet-pattern framing, one lit marquee sign, gold tokens for status,
   admission tickets for game nights. Content areas stay plain and readable.
   Type: Bungee (signage) for display, Lexend for reading. */

@font-face {
  font-family: "Bungee";
  src: url("/fonts/bungee.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Bungee Inline";
  src: url("/fonts/bungee-inline.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

:root {
  --carpet: #17113a;
  --carpet-deep: #0e0a26;
  --carpet-line: #3a2f7a;
  --on-carpet: #f3f1ff;
  --on-carpet-soft: #c3bde8;

  --pink: #ff4f9a;
  --teal: #22d3c5;
  --sun: #ffc53d;
  --orange: #ff7a2f;
  --grape: #6b48ff;
  --dark-on-color: #1d1530;

  --paper: #f3f3fa;
  --surface: #ffffff;
  --surface-alt: #f6f5fc;
  --ink: #1b1736;
  --ink-soft: #57536f;
  --line: #dcdaea;
  --shadow-pop: #ffd2e5;
  --ok: #138a63;

  --carpet-tile: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22240%22 height=%22240%22 viewBox=%220 0 240 240%22%3E%3Cg fill=%22none%22 stroke-width=%225%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 42c9-13 18 13 27 0s18 13 27 0%22 stroke=%22%23ff4f9a%22/%3E%3Cpath d=%22M164 18l24 40h-48z%22 stroke=%22%2322d3c5%22/%3E%3Ccircle cx=%2262%22 cy=%22138%22 r=%2215%22 stroke=%22%23ff7a2f%22/%3E%3Cpath d=%22M128 162l12-12 12 12 12-12 12 12%22 stroke=%22%238b6cff%22/%3E%3Cpath d=%22M176 112c8-10 16 10 24 0s16 10 24 0%22 stroke=%22%23ffc53d%22/%3E%3Cpath d=%22M24 206l18-18%22 stroke=%22%2322d3c5%22/%3E%3Cpath d=%22M100 214c10-8 20 8 30 0%22 stroke=%22%23ff4f9a%22/%3E%3Cpath d=%22M206 176l12 22-24 0z%22 stroke=%22%23ff7a2f%22/%3E%3Cpath d=%22M92 86l10 4%22 stroke=%22%238b6cff%22/%3E%3C/g%3E%3Cpath d=%22M112 58l4.5 9.5 10.5 1.2-7.8 7.2 2.1 10.4-9.3-5.3-9.3 5.3 2.1-10.4-7.8-7.2 10.5-1.2z%22 fill=%22%23ffc53d%22/%3E%3Cpath d=%22M30 92l5 10.5 11.5 1.3-8.6 7.8 2.3 11.4-10.2-5.8-10.2 5.8 2.3-11.4-8.6-7.8 11.5-1.3z%22 fill=%22%23ff4f9a%22 opacity=%22.9%22/%3E%3Ccircle cx=%22214%22 cy=%2274%22 r=%224.5%22 fill=%22%23ff4f9a%22/%3E%3Ccircle cx=%2284%22 cy=%22196%22 r=%224.5%22 fill=%22%23ffc53d%22/%3E%3Ccircle cx=%22146%22 cy=%22104%22 r=%224%22 fill=%22%2322d3c5%22/%3E%3Ccircle cx=%22196%22 cy=%22226%22 r=%224%22 fill=%22%238b6cff%22/%3E%3Cpath d=%22M84 168l13 5-10 9z%22 fill=%22%2322d3c5%22/%3E%3Cpath d=%22M220 26l10 4-8 7z%22 fill=%22%23ffc53d%22/%3E%3C/svg%3E");

  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --sign: "Bungee Inline", "Bungee", "Arial Black", sans-serif;
  --text: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #120e2b;
    --surface: #1c1741;
    --surface-alt: #171236;
    --ink: #eceaf8;
    --ink-soft: #b2add2;
    --line: #2f2862;
    --shadow-pop: #57204a;
    --ok: #4fd6a6;
  }
}
:root[data-theme="dark"] {
  --paper: #120e2b;
  --surface: #1c1741;
  --surface-alt: #171236;
  --ink: #eceaf8;
  --ink-soft: #b2add2;
  --line: #2f2862;
  --shadow-pop: #57204a;
  --ok: #4fd6a6;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 380;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h3, h4 { font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 0.9em; }
b { font-weight: 620; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--sun);
  color: var(--dark-on-color);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { top: 12px; }

.visually-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---------- Hero: carpet, marquee, token counter ---------- */

.hero {
  position: relative;
  background-color: var(--carpet);
  background-image: linear-gradient(rgba(23, 17, 58, 0.4), rgba(23, 17, 58, 0.4)), var(--carpet-tile);
  background-size: 240px 240px;
  color: var(--on-carpet);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 14px;
  background:
    linear-gradient(-45deg, var(--paper) 10px, transparent 0) 0 100% / 20px 14px repeat-x,
    linear-gradient(45deg, var(--paper) 10px, transparent 0) 0 100% / 20px 14px repeat-x;
}

.bar {
  background: var(--carpet-deep);
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--pink) 0 33.3%, var(--sun) 33.3% 66.6%, var(--teal) 66.6%) 1;
}
.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
}
.fish { width: 34px; height: 24px; flex: none; }
.fish path { fill: var(--sun); }
.fish circle { fill: var(--carpet-deep); }

.bar nav { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 0.95rem; }
.bar nav a {
  text-decoration: none;
  color: var(--on-carpet-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.bar nav a:hover { color: var(--on-carpet); border-bottom-color: var(--sun); }

.hero-body { padding-top: clamp(28px, 5vw, 56px); text-align: center; }

/* The marquee sign: the one thing that moves on its own. Its bulbs light
   in a single sweep on load, then stay still. */
.marquee {
  --ring: 26px;
  position: relative;
  max-width: 54rem;
  margin: 0 auto;
  padding: var(--ring);
  border-radius: 30px;
  background: linear-gradient(180deg, #3b2d86, #2a1f66);
  box-shadow: 0 0 0 3px var(--carpet-deep), 0 14px 0 var(--carpet-deep), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.bulbs {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  --dot: radial-gradient(circle, var(--bulb) 0 4.5px, transparent 5.5px);
  background:
    var(--dot) left top / var(--ring) var(--ring) space no-repeat,
    var(--dot) left bottom / var(--ring) var(--ring) space no-repeat,
    var(--dot) left top / var(--ring) var(--ring) no-repeat space,
    var(--dot) right top / var(--ring) var(--ring) no-repeat space;
}
.bulbs-off { --bulb: #5d4f9e; }
.bulbs-on {
  --bulb: #fff3c4;
  filter: drop-shadow(0 0 3px #ffd75e) drop-shadow(0 0 8px rgba(255, 197, 61, 0.7));
  -webkit-mask-image: conic-gradient(from 0deg, #000 var(--sweep), transparent 0);
  mask-image: conic-gradient(from 0deg, #000 var(--sweep), transparent 0);
  animation: sweep 1.3s cubic-bezier(0.3, 0.1, 0.3, 1) both;
}
@keyframes sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }

.marquee-panel {
  position: relative;
  border-radius: 12px;
  background:
    radial-gradient(120% 140% at 50% 0%, #2b2066 0%, #140e33 70%);
  box-shadow: inset 0 0 0 2px #4b3c9a, inset 0 8px 30px rgba(0, 0, 0, 0.5);
  padding: clamp(18px, 3.5vw, 34px) clamp(14px, 3vw, 32px);
}
.sign {
  font-family: var(--sign);
  font-weight: 400;
  font-size: clamp(1.9rem, 6.6vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #ffe27a;
  text-shadow: 0.06em 0.06em 0 var(--pink), 0 0 26px rgba(255, 197, 61, 0.4);
  text-wrap: balance;
}

.tagline {
  max-width: 56ch;
  margin: clamp(26px, 4vw, 40px) auto 0;
  padding: 14px 22px;
  border-radius: 18px;
  background: var(--carpet-deep);
  border: 2px solid var(--carpet-line);
  color: var(--on-carpet-soft);
  font-size: 1.08rem;
}
.tagline span:first-child { color: var(--on-carpet); font-weight: 600; }

.counter {
  margin: clamp(22px, 3.5vw, 32px) auto 0;
  max-width: 62rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  background: var(--carpet-deep);
  border: 2px solid var(--carpet-line);
  border-radius: 26px;
  overflow: hidden;
  text-align: left;
}
.station {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: clamp(20px, 3.2vw, 30px);
}
.station + .station { border-top: 2px solid var(--carpet-line); }
@media (min-width: 46rem) {
  .station + .station { border-top: 0; border-left: 2px solid var(--carpet-line); }
}
.station h2 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.01em; }
.state { margin: 8px 0 2px; font-size: 1.15rem; font-weight: 600; color: var(--on-carpet); }
.detail { color: var(--on-carpet-soft); font-size: 0.97rem; min-height: 1.6em; margin-bottom: 0; }
.station-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.link-on-dark { color: var(--sun); font-weight: 550; text-underline-offset: 4px; }

/* Tokens: gold when open, dull pewter when not. */
.token {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, #fff4c2 0%, #ffd04f 28%, #e7a614 68%, #b97d00 100%);
  box-shadow:
    inset 0 0 0 5px #cf930c,
    inset 0 0 0 7px #ffe08a,
    inset 0 0 0 9px #c98b05,
    0 5px 0 #6f4a00,
    0 0 0 6px rgba(255, 197, 61, 0.14),
    0 0 40px 8px rgba(255, 197, 61, 0.38);
  filter: none;
  transition: filter 600ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.token svg { width: 40px; height: 27px; }
.token path { fill: #b47a00; }
.token circle { fill: #ffe08a; }
.station:not([data-on="true"]) .token {
  filter: grayscale(1) brightness(0.5) contrast(0.95);
  box-shadow:
    inset 0 0 0 5px #cf930c,
    inset 0 0 0 7px #ffe08a,
    inset 0 0 0 9px #c98b05,
    0 5px 0 #6f4a00,
    0 0 0 6px rgba(255, 197, 61, 0),
    0 0 40px 8px rgba(255, 197, 61, 0);
}
#station-arcade .token { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  .bulbs-on { animation: none; }
  .token { transition: none; }
}

/* Announcement: a ticket ribbon with notched ends */
.ribbon {
  position: relative;
  max-width: 50rem;
  margin: clamp(22px, 3.5vw, 32px) auto 0;
  padding: 13px 44px;
  background: var(--orange);
  color: var(--dark-on-color);
  font-weight: 520;
  -webkit-mask:
    radial-gradient(circle at 0 50%, transparent 11px, #000 11.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 11px, #000 11.5px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 50%, transparent 11px, #000 11.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 11px, #000 11.5px) right / 51% 100% no-repeat;
}
.ribbon::before, .ribbon::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  border-left: 2px dashed rgba(29, 21, 48, 0.4);
}
.ribbon::before { left: 24px; }
.ribbon::after { right: 24px; }

/* ---------- Copy chips ---------- */

.copy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 8px 6px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: left;
}
.copy-value { overflow-wrap: anywhere; }
.copy-label {
  flex: none;
  font-size: 0.85rem;
  font-weight: 550;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-soft);
}
.copy:hover .copy-label { background: var(--sun); color: var(--dark-on-color); }
.copy[data-copied="true"] .copy-label { background: var(--ok); color: #fff; }
.copy-on-dark { background: rgba(255, 255, 255, 0.06); border-color: var(--carpet-line); color: var(--on-carpet); font-size: 1.05rem; }
.copy-on-dark .copy-label { background: rgba(255, 255, 255, 0.12); color: var(--on-carpet); }

/* ---------- Sections ---------- */

main { padding-bottom: 8px; }
.section { padding-top: clamp(52px, 8vw, 92px); }

.section-head { max-width: var(--measure); margin-bottom: 26px; }
.section-head h2, .posted h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  letter-spacing: 0.005em;
  text-shadow: 0.07em 0.07em 0 var(--shadow-pop);
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); }
h3 { font-size: 1.3rem; margin-bottom: 14px; }
h4 { font-size: 1.15rem; margin-bottom: 8px; }

.before { color: var(--ink-soft); }
.after { margin: 18px 0 0; color: var(--ink-soft); }

/* Steps are real sequences: numbered with small gold tokens */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 50px;
  min-height: 34px;
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, #fff1b5, #ffcf4a 45%, #e3a414);
  box-shadow: inset 0 0 0 2px #c98f0a, 0 2px 0 #8a5d00;
  color: #5a3a00;
  font-family: var(--display);
  font-size: 0.95rem;
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: 4px;
  border-left: 2px dashed var(--line);
}

.plates { display: grid; gap: 8px; margin: 12px 0 4px; }
.plates > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.plates dt { min-width: 8.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.plates dd { margin: 0; }

/* Switch: the main path */
.switch-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
.switch-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(20px, 4vw, 34px);
  background-color: var(--carpet);
  background-image: linear-gradient(rgba(23, 17, 58, 0.4), rgba(23, 17, 58, 0.4)), var(--carpet-tile);
  background-size: 240px 240px;
  color: var(--on-carpet);
}
.switch-head h3 {
  margin: 0;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--carpet-deep);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
}
.device { width: 52px; height: 36px; flex: none; padding: 4px; border-radius: 10px; background: var(--carpet-deep); }
.device rect, .device circle { fill: none; stroke: var(--sun); stroke-width: 2.4; }
.device circle { fill: var(--sun); stroke: none; }

.switch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: clamp(20px, 4vw, 34px);
}
@media (min-width: 58rem) {
  .switch-grid { grid-template-columns: 17rem minmax(0, 1fr); gap: 40px; }
}

.home-pass {
  align-self: start;
  position: relative;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--sun);
  color: var(--dark-on-color);
  box-shadow: inset 0 0 0 2px rgba(29, 21, 48, 0.08);
}
.home-pass::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(29, 21, 48, 0.28);
  border-radius: 12px;
  pointer-events: none;
}
.home-pass p { margin: 0; }
.away > p, .away .steps { max-width: var(--measure); }

/* Other devices */
.others { margin-top: 30px; max-width: 54rem; }
.disclosures { display: grid; gap: 10px; }
.disclosures details {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 0 clamp(16px, 3vw, 24px);
}
.disclosures details[open] { padding-bottom: 20px; }
.disclosures summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  position: relative;
  padding-right: 28px;
}
.disclosures summary svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--grape);
}

summary::-webkit-details-marker { display: none; }
.disclosures summary::after, .accordion summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}
details[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

/* Help */
.help { margin-top: 36px; max-width: 54rem; }
.faq { margin: 0; display: grid; gap: 16px; }
.faq dt { font-weight: 620; }
.faq dd { margin: 2px 0 0; color: var(--ink-soft); max-width: var(--measure); }

/* Game room */
.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 16px;
}
.two-up .col {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 3.5vw, 30px);
}

.cabinets-wrap { margin-top: 40px; }
.cabinets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr));
  gap: 16px;
  align-items: start;
}
.cabinet {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.cabinet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--cab, var(--teal));
  color: var(--cab-ink, var(--dark-on-color));
}
.cabinet-top h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.01em; line-height: 1.2; }
.cabinet-flag {
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(29, 21, 48, 0.16);
}
.cabinet[data-status="soon"] .cabinet-top {
  background: repeating-linear-gradient(135deg, var(--surface-alt) 0 12px, var(--line) 12px 24px);
  color: var(--ink-soft);
}
.cabinet[data-status="soon"] .cabinet-flag { background: var(--surface); }
.cabinet-games { list-style: none; margin: 0; padding: 6px 16px 10px; }
.cabinet-games li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.cabinet-games li:last-child { border-bottom: 0; }
.game-title { font-weight: 620; line-height: 1.3; }
.game-note { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.93rem; }
.game-players {
  align-self: start;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 2px 12px;
  background: var(--sun);
  color: var(--dark-on-color);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 4px, #000 4.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 4px, #000 4.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 4px, #000 4.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 4px, #000 4.5px) right / 51% 100% no-repeat;
}
.game-players.is-turns { background: var(--teal); }
.empty { color: var(--ink-soft); list-style: none; }

/* Taking turns */
.turns {
  margin-top: 28px;
  max-width: 54rem;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 2px dashed var(--teal);
}
.turns h3 { margin-bottom: 8px; font-size: 1.15rem; }
.turns p { margin: 0; color: var(--ink-soft); }
.turns .game-players { display: inline-block; vertical-align: 1px; background: var(--teal); }

/* Game nights: admission tickets */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 54rem; }
.ticket {
  --stub: 104px;
  display: grid;
  grid-template-columns: var(--stub) 1fr;
  background: var(--surface);
  border-radius: 14px;
  -webkit-mask:
    radial-gradient(circle at var(--stub) 0, transparent 11px, #000 11.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub) 100%, transparent 11px, #000 11.5px) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle at var(--stub) 0, transparent 11px, #000 11.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub) 100%, transparent 11px, #000 11.5px) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 14px 6px;
  background: var(--stub-color, var(--orange));
  color: var(--dark-on-color);
  line-height: 1.1;
}
.ticket-month { font-size: 0.85rem; font-weight: 600; }
.ticket-day { font-family: var(--display); font-size: 2.3rem; line-height: 1; margin: 2px 0; }
.ticket-weekday { font-size: 0.85rem; font-weight: 500; }
.ticket-body {
  padding: 16px 20px 16px 24px;
  border: 2px solid var(--line);
  border-left: 2px dashed var(--line);
  border-radius: 0 14px 14px 0;
}
.ticket-title { font-size: 1.2rem; font-weight: 650; margin: 0; }
.ticket-when { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.ticket-plan { margin: 6px 0 0; }
.ticket-now {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 2px;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--dark-on-color);
}
.hours { margin-top: 20px; color: var(--ink-soft); max-width: var(--measure); }

/* House rules: a posted sign */
.posted {
  max-width: 54rem;
  padding: clamp(24px, 4.5vw, 40px);
  border-radius: 28px;
  background: var(--carpet-deep);
  border: 2px solid var(--carpet-line);
  color: var(--on-carpet);
}
.posted h2 { color: var(--sun); text-shadow: 0.07em 0.07em 0 #5a1f4a; }
.posted-sub { color: var(--on-carpet-soft); }
.rules { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.rules li { position: relative; padding-left: 36px; max-width: var(--measure); }
.rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: var(--sun);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.rules li:nth-child(3n+2)::before { background: var(--pink); }
.rules li:nth-child(3n)::before { background: var(--teal); }

/* Rule book */
.rulebook { max-width: 62rem; margin-top: 24px; }
.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 14px;
}
.chapter {
  background: var(--surface);
  border: 2px solid var(--line);
  border-top: 10px solid var(--chapter, var(--teal));
  border-radius: 18px;
  padding: 18px 20px 20px;
}
.chapter h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.01em; margin-bottom: 10px; }
.chapter ul { margin: 0; padding-left: 1.1em; }
.chapter li { margin-bottom: 8px; }
.chapter li:last-child { margin-bottom: 0; }
.chapter li::marker { color: var(--chapter, var(--teal)); }

.ladder-wrap { margin-top: 30px; }
.ladder {
  list-style: none;
  counter-reset: rung;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ladder > li {
  counter-increment: rung;
  position: relative;
  padding: 14px 18px 14px 64px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
}
.ladder > li::before {
  content: counter(rung);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--dark-on-color);
  background: var(--sun);
}
.ladder > li:nth-child(2)::before { background: var(--orange); }
.ladder > li:nth-child(3)::before { background: var(--pink); }
.ladder > li:nth-child(n+4)::before { background: var(--grape); color: #fff; }
.ladder-title { margin: 0; font-weight: 650; }
.ladder-text { margin: 2px 0 0; color: var(--ink-soft); max-width: var(--measure); }

.mistakes {
  margin-top: 22px;
  max-width: var(--measure);
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px dashed var(--teal);
  background: var(--surface);
}

/* ---------- Notices: maintenance + live event ---------- */
.notice {
  display: block;
  max-width: 50rem;
  margin: 0 auto 22px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 550;
  text-align: center;
}
.notice-maint { background: var(--sun); color: var(--dark-on-color); }
.notice-event { background: var(--carpet-deep); border: 2px solid var(--pink); color: var(--on-carpet); text-decoration: none; }
.notice-event:hover { border-color: var(--sun); }

/* ---------- Seasonal garland (only when a season is on) ---------- */
.garland { display: none; height: 44px; background-repeat: repeat-x; background-position: center top; background-size: auto 44px; }
:root[data-season="halloween"] .garland { display: block; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%2234%22 viewBox=%220 0 160 34%22%3E%3Cpath d=%22M0 4 Q40 16 80 4 T160 4%22 fill=%22none%22 stroke=%22%233a2f7a%22 stroke-width=%222%22/%3E%3Cg transform=%22translate(28 14)%22%3E%3Cellipse cx=%220%22 cy=%228%22 rx=%229%22 ry=%227.5%22 fill=%22%23ff7a2f%22/%3E%3Cellipse cx=%220%22 cy=%228%22 rx=%223.5%22 ry=%227.5%22 fill=%22%23e8651c%22/%3E%3Crect x=%22-1.2%22 y=%22-1%22 width=%222.4%22 height=%224%22 fill=%22%233d8a3a%22/%3E%3Cpath d=%22M-4 6l2 2-2 1zM4 6l-2 2 2 1zM-3 11h6l-3 2z%22 fill=%22%231d1530%22/%3E%3C/g%3E%3Cg transform=%22translate(110 9)%22 fill=%22%231d1530%22%3E%3Cpath d=%22M0 4c-3-4-8-5-12-3 2 1 3 3 3 5 2-1 4-1 5 1 1-2 3-3 4-3 1 0 3 1 4 3 1-2 3-2 5-1 0-2 1-4 3-5-4-2-9-1-12 3z%22 fill=%22%238b6cff%22/%3E%3Ccircle cx=%220%22 cy=%225%22 r=%222.2%22 fill=%22%238b6cff%22/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-season="winter"] .garland { display: block; background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22140%22 height=%2234%22 viewBox=%220 0 140 34%22%3E%3Cpath d=%22M0 4 Q35 16 70 4 T140 4%22 fill=%22none%22 stroke=%22%233a2f7a%22 stroke-width=%222%22/%3E%3Cg transform=%22translate(24 15)%22 stroke=%22%23e8f6ff%22 stroke-width=%221.8%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M0-7v14M-6-3.5l12 7M-6 3.5l12-7%22/%3E%3C/g%3E%3Cg transform=%22translate(58 12)%22%3E%3Crect x=%22-1.5%22 y=%22-3%22 width=%223%22 height=%223%22 fill=%22%233a2f7a%22/%3E%3Cellipse cx=%220%22 cy=%224%22 rx=%223%22 ry=%224.5%22 fill=%22%23ff4f9a%22/%3E%3C/g%3E%3Cg transform=%22translate(94 14)%22%3E%3Crect x=%22-1.5%22 y=%22-3%22 width=%223%22 height=%223%22 fill=%22%233a2f7a%22/%3E%3Cellipse cx=%220%22 cy=%224%22 rx=%223%22 ry=%224.5%22 fill=%22%2322d3c5%22/%3E%3C/g%3E%3Cg transform=%22translate(122 9)%22%3E%3Crect x=%22-1.5%22 y=%22-3%22 width=%223%22 height=%223%22 fill=%22%233a2f7a%22/%3E%3Cellipse cx=%220%22 cy=%224%22 rx=%223%22 ry=%224.5%22 fill=%22%23ffc53d%22/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-season="halloween"] .ribbon { background: var(--orange); }
:root[data-season="halloween"] .bulbs-on { --bulb: #ffd9a8; }
:root[data-season="winter"] .ribbon { background: #bfe9ff; }
:root[data-season="winter"] .bulbs-on { --bulb: #eaf7ff; }

/* ---------- Tournament ---------- */
.cup {
  margin-top: 28px;
  max-width: 54rem;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 22px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-top: 10px solid var(--sun);
}
.cup-head { display: flex; align-items: center; gap: 14px; }
.cup-trophy { width: 52px; height: 52px; flex: none; }
.cup-trophy path, .cup-trophy rect { fill: var(--sun); stroke: #b47a00; stroke-width: 2; }
.cup-trophy .cup-handles { fill: none; stroke-width: 3; }
.cup-trophy .cup-base { fill: var(--grape); stroke: none; }
.cup h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 0; }
.cup-meta { margin: 2px 0 0; color: var(--ink-soft); }
.cup-champion {
  margin: 16px 0 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--carpet-deep);
  color: var(--sun);
  font-family: var(--display);
  font-size: 1.2rem;
}
.cup-table-wrap { margin-top: 16px; overflow-x: auto; }
.cup-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cup-table th { text-align: left; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); padding: 6px 10px; border-bottom: 2px solid var(--line); }
.cup-table td { padding: 9px 10px; border-bottom: 1px dashed var(--line); }
.cup-table .num, .cup-table th:nth-child(n+3) { text-align: right; }
.cup-table .place { width: 3.5rem; font-family: var(--display); }
.cup-table tr.leader td { background: color-mix(in srgb, var(--sun) 22%, transparent); font-weight: 650; }
.cup-empty { margin: 14px 0 0; color: var(--ink-soft); }
.hall { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); }
.hall h4 { font-size: 1rem; margin: 0 0 8px; }
.hall ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hall li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hall-name { font-weight: 650; }
.hall-event { color: var(--ink-soft); }

/* ---------- Events + showcase ---------- */
.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 12px;
  max-width: 54rem;
  margin-bottom: 18px;
}
.event {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--carpet-deep);
  border: 2px solid var(--carpet-line);
  color: var(--on-carpet);
}
.event h3 { font-family: var(--display); font-weight: 400; font-size: 1.1rem; margin: 0 0 4px; }
.event-when { margin: 0; color: var(--sun); font-weight: 550; font-size: 0.95rem; }
.event-details { margin: 6px 0 0; color: var(--on-carpet-soft); }
.showcase-wrap { margin-top: 30px; max-width: 62rem; }
.showcase { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.showcase figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 2px solid var(--line); }
.showcase img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-alt); }
.showcase figcaption { padding: 10px 14px 12px; display: grid; gap: 2px; }
.show-title { font-weight: 650; }
.show-meta { color: var(--ink-soft); font-size: 0.9rem; }

/* Grown-ups: plain and sober */
.accordion { max-width: 54rem; display: grid; gap: 8px; }
.accordion details {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  position: relative;
  font-weight: 620;
}
.accordion details > :not(summary) { max-width: var(--measure); }
.accordion details > p:last-child, .accordion details > ul:last-child { padding-bottom: 8px; }
.accordion ul { padding-left: 1.2em; margin: 0 0 0.9em; }
.accordion li { margin-bottom: 4px; }

/* Footer: back on the carpet */
.foot {
  position: relative;
  margin-top: clamp(64px, 10vw, 104px);
  padding: 44px 0 44px;
  background-color: var(--carpet);
  background-image: linear-gradient(rgba(23, 17, 58, 0.4), rgba(23, 17, 58, 0.4)), var(--carpet-tile);
  background-size: 240px 240px;
  color: var(--on-carpet-soft);
  font-size: 0.9rem;
}
.foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 14px;
  background:
    linear-gradient(-135deg, var(--paper) 10px, transparent 0) 0 0 / 20px 14px repeat-x,
    linear-gradient(135deg, var(--paper) 10px, transparent 0) 0 0 / 20px 14px repeat-x;
}
.foot-panel {
  max-width: 44rem;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--carpet-deep);
  border: 2px solid var(--carpet-line);
}
.foot-panel p { margin: 0; }
.foot-panel p + p { margin-top: 8px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--on-carpet); font-weight: 550; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .tagline { text-align: left; }
  .bar nav { gap: 2px 14px; font-size: 0.9rem; }
  .marquee { --ring: 22px; border-radius: 24px; }
  .token { width: 62px; height: 62px; }
  .token svg { width: 34px; height: 23px; }
  .station { gap: 16px; }
  .plates dt { min-width: 0; width: 100%; }
  .ticket { --stub: 78px; }
  .ticket-day { font-size: 1.8rem; }
  .ticket-body { padding: 14px 14px 14px 18px; }
  .switch-head { gap: 10px; }
  .device { width: 44px; height: 30px; }
}
