/* Court Scoreboard Theme — Volleyball: Spike Evolved Wiki
   Strict design tokens: all hex values live strictly inside :root */
:root {
  --bg: #FAF6EE;
  --surface: #FFFFFF;
  --surface-alt: #EFE6D5;
  --ink: #12213A;
  --muted: #45546E;
  --primary: #1B4FD8;
  --primary-hover: #1339A3;
  --accent: #C84B00;
  --gold: #F5B800;
  --cobalt-soft: #E3ECFF;
  --ember-soft: #FFE8D6;

  /* Semantic aliases (no extra hex values) */
  --border: var(--ink);
  --gold-soft: var(--surface-alt);
  --on-primary: var(--surface);
  --on-dark: var(--surface);
  --on-dark-muted: var(--cobalt-soft);

  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, monospace;

  --radius: 16px;
  --pill: 999px;
  --line: 3px solid var(--ink);
  --line-thin: 2px solid var(--ink);
  --shadow-hard: 0 4px 0 var(--ink);
  --shadow-soft: 0 8px 24px rgba(18, 33, 58, 0.08);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  background: var(--cobalt-soft);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 16px;
  border-radius: var(--pill);
  font-weight: 700;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.court-tape {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--primary) 0 18px,
    var(--gold) 18px 36px,
    var(--ink) 36px 40px
  );
  border-bottom: var(--line-thin);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand-badge {
  display: inline-flex;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-text small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-pill,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: var(--line-thin);
  transition: transform .2s var(--ease-spring), background-color .15s ease;
}

.nav-pill {
  background: var(--bg);
  color: var(--ink);
}

.nav-pill:hover {
  background: var(--cobalt-soft);
  color: var(--ink);
  transform: translateY(-2px);
}

.nav-cta {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-hard);
}

.nav-cta:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
  transform: translateY(-2px);
}

.nav-cta:active {
  transform: translateY(2px);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--bg);
  color: var(--ink);
  border: var(--line-thin);
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Shared Buttons & Badges */
.eyebrow-pill,
.section-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  background: var(--cobalt-soft);
  color: var(--ink);
  border: var(--line-thin);
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary,
.btn-secondary,
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border: var(--line-thin);
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: transform .22s var(--ease-spring), background-color .15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--on-primary);
}

.btn-accent:hover {
  background: var(--ink);
  color: var(--on-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--cobalt-soft);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-accent:active,
.btn-secondary:active {
  transform: translateY(3px);
  box-shadow: none;
}

/* Hero Section */
.hero-band {
  padding: 48px 0 48px;
  border-bottom: var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
}

.court-h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.court-h1 .plate {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transform: rotate(-1.5deg);
  margin-right: 8px;
}

.hero-lead {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  max-width: 70ch;
}

.hero-short {
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--surface);
  border: var(--line-thin);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}

.hero-short strong {
  color: var(--ink);
}

.quick-answer-heading {
  margin: 0 0 8px;
}

.quick-answer-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-answer-list li {
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* Mechanical Flip-Card Scoreboard (Memory Point) */
.scoreboard-card {
  background: var(--ink);
  color: var(--on-dark);
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-hard);
  margin-bottom: 16px;
}

.scoreboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.flip-cell {
  background: var(--surface);
  color: var(--ink);
  border: var(--line-thin);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  position: relative;
}

.flip-cell::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  background: var(--surface-alt);
  pointer-events: none;
}

.flip-val {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.flip-lbl {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.engage-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.engage-row .btn-secondary {
  padding: 8px 16px;
  font-size: 14px;
}

.share-msg {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Hero Right Column: Official Gallery + Top 3 Codes */
.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.artwork-card {
  margin: 0;
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-hard);
}

.artwork-frame {
  position: relative;
  overflow: hidden;
  border: var(--line-thin);
  border-radius: var(--radius);
  background: var(--ink);
}

.artwork-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stamp-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--ink);
  border: var(--line-thin);
  border-radius: var(--pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-hard);
}

.artwork-card figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.shot-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.shot-thumb {
  padding: 4px;
  background: var(--bg);
  border: var(--line-thin);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 44px;
  transition: transform .2s var(--ease-spring);
}

.shot-thumb img {
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-thumb:hover {
  transform: translateY(-2px);
}

.shot-thumb.is-active {
  background: var(--gold);
  box-shadow: var(--shadow-hard);
}

.quick-codes-card {
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-hard);
}

.quick-codes-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.quick-codes-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.quick-codes-all {
  font-size: 14px;
  font-weight: 700;
}

.quick-codes-rack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-plate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  min-height: 44px;
  background: var(--bg);
  color: var(--ink);
  border: var(--line-thin);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: transform .2s var(--ease-spring), background-color .15s ease;
}

.quick-plate:hover {
  background: var(--cobalt-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard);
}

.quick-plate.is-copied {
  background: var(--gold);
}

.quick-plate-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.quick-plate-main code {
  background: var(--ink);
  color: var(--surface);
  padding: 4px 8px;
  font-size: 14px;
}

.hero-code-act {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.quick-plate-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.hero-codes-msg {
  margin: 8px 0 0;
  min-height: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Band Sections */
.band {
  padding: 48px 0;
  border-bottom: var(--line);
}

.band-facts {
  background: var(--surface);
}

.band-facts h2,
.band-guides-hub h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 16px;
  max-width: 70ch;
  color: var(--muted);
}

.band-codes {
  background: var(--surface-alt);
}

.band-guides-hub {
  background: var(--bg);
}

.guides-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hub-card {
  position: relative;
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s var(--ease-spring);
}

.hub-card:hover {
  transform: translateY(-2px);
}

.hub-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.hub-link {
  color: var(--ink);
  text-decoration: none;
}

.hub-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hub-link:hover {
  color: var(--primary);
}

.hub-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.hub-followup {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.codes-verified-line {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.codes-verified-line strong {
  color: var(--ink);
}

.court-table.codes-table tbody tr.is-claimed {
  background: var(--cobalt-soft);
}

.code-cell-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.codes-table .btn-copy {
  margin-left: 0;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-verified-foot {
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: var(--line-thin);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.band-playbook {
  background: var(--cobalt-soft);
}

.band-guide {
  background: var(--surface);
}

.band-faq {
  background: var(--cobalt-soft);
}

.band-discussion {
  background: var(--bg);
  border-bottom: 0;
}

/* Codes Vault */
.codes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.codes-head h2,
.playbook-head h2,
.faq-intro h2,
.discussion-wrap h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
}

.codes-intro {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
}

.code-meta-badge {
  background: var(--surface);
  border: var(--line-thin);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.claim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-hard);
}

.claim-status {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.claim-status strong {
  font-size: 16px;
  color: var(--ink);
}

.claim-track {
  height: 14px;
  background: var(--bg);
  border: var(--line-thin);
  border-radius: var(--pill);
  overflow: hidden;
}

.claim-fill {
  height: 100%;
  width: var(--claim-pct, 0%);
  background: var(--primary);
  transition: width .5s var(--ease-spring), background-color .2s ease;
}

[data-rally="warm"] .claim-fill {
  background: var(--accent);
}

[data-rally="ace"] .claim-fill {
  background: var(--gold);
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill,
.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--ink);
  border: var(--line-thin);
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--ease-spring), background-color .15s ease;
}

.filter-pill::before,
.tab-pill::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: var(--line-thin);
  background: var(--dot-color, var(--primary));
  flex-shrink: 0;
}

.filter-pill[data-code-filter="unclaimed"]::before {
  --dot-color: var(--gold);
}

.filter-pill.is-active,
.tab-pill.is-active {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-hard);
  transform: translateY(-2px);
}

.band-codes h3 {
  margin: 32px 0 16px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-ticket {
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s var(--ease-spring), opacity .2s ease;
}

.code-ticket.is-claimed {
  background: var(--cobalt-soft);
}

.ticket-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.claim-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: var(--line-thin);
  background: var(--bg);
  cursor: pointer;
  position: relative;
}

.claim-toggle[aria-pressed="true"] {
  background: var(--primary);
}

.claim-toggle[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 10px;
  width: 10px;
  height: 16px;
  border-right: 3px solid var(--surface);
  border-bottom: 3px solid var(--surface);
  transform: rotate(40deg);
}

.code-plate {
  font-size: 16px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
}

.code-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--pill);
  border: var(--line-thin);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.code-tag-new {
  background: var(--accent);
  color: var(--surface);
}

.code-tag-official {
  background: var(--gold);
  color: var(--ink);
}

.code-tag-milestone {
  background: var(--cobalt-soft);
  color: var(--ink);
}

.btn-copy {
  margin-left: auto;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--on-primary);
  border: var(--line-thin);
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--primary-hover);
}

.btn-copy.is-copied {
  background: var(--gold);
  color: var(--ink);
}

.reward-text {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.copy-message,
.code-empty-filter {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.manual-wrap {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.manual-copy {
  display: block;
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 12px;
  border: var(--line-thin);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 16px;
}

.redeem-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.redeem-steps li {
  background: var(--surface);
  border: var(--line-thin);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

/* Interactive Playbook Tabs */
.playbook-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.playbook-sub {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-pill[data-playbook-tab="controls"]::before { --dot-color: var(--primary); }
.tab-pill[data-playbook-tab="modes"]::before { --dot-color: var(--accent); }
.tab-pill[data-playbook-tab="builds"]::before { --dot-color: var(--gold); }
.tab-pill[data-playbook-tab="updates"]::before { --dot-color: var(--ink); }

.playbook-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.play-card {
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.play-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--pill);
  background: var(--ember-soft);
  color: var(--ink);
  border: var(--line-thin);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.play-card strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.play-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Single-Column 800px Wiki Article */
.guide-rail {
  max-width: 800px;
}

.last-updated {
  margin: 0 0 24px;
  padding: 8px 16px;
  background: var(--bg);
  border: var(--line-thin);
  border-radius: var(--pill);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.wiki-article h2 {
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: var(--line);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
}

.wiki-article h3 {
  margin: 32px 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.wiki-article p,
.wiki-article ul,
.wiki-article ol {
  max-width: 70ch;
  margin: 0 0 16px;
}

.wiki-article li {
  margin-bottom: 8px;
}

.wiki-article figure {
  margin: 24px 0;
  background: var(--bg);
  border: var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 16px;
  box-shadow: var(--shadow-hard);
}

.wiki-article figure img {
  border: var(--line-thin);
  border-radius: 12px;
}

.wiki-article figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.media-float-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin: 24px 0;
  background: var(--cobalt-soft);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.media-float-card img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: var(--line-thin);
  border-radius: var(--radius);
  object-fit: cover;
}

.notice-box {
  padding: 16px;
  margin: 24px 0;
  background: var(--ember-soft);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  font-size: 14px;
}

.tactic-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.tactic-notes li {
  margin: 0;
  padding: 16px;
  border: var(--line-thin);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  background: var(--bg);
}

.tactic-notes li:nth-child(4n+1) { background: var(--cobalt-soft); }
.tactic-notes li:nth-child(4n+2) { background: var(--surface-alt); }
.tactic-notes li:nth-child(4n+3) { background: var(--ember-soft); }
.tactic-notes li:nth-child(4n+4) { background: var(--surface); }

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 24px;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-hard);
}

.court-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.court-table thead th {
  background: var(--ink);
  color: var(--surface);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.court-table tbody td {
  padding: 12px 16px;
  border-top: var(--line-thin);
  vertical-align: top;
}

.court-table tbody tr:nth-child(even) {
  background: var(--bg);
}

/* FAQ 4fr / 7fr Split */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 96px;
}

.doodle-sign {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  background: var(--gold);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  transform: rotate(-6deg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 24px 16px 16px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cobalt-soft);
  border: var(--line-thin);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  transition: transform .25s var(--ease-spring), background-color .15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--gold);
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  max-width: 70ch;
}

/* Chat-Bubble Discussion Composer (mobile overflow protected) */
.discussion-wrap {
  max-width: 800px;
}

.discussion-sub {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 70ch;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.composer-bubble {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-hard);
}

.composer-bubble::after {
  content: '';
  position: absolute;
  left: 24px;
  bottom: -11px;
  width: 18px;
  height: 18px;
  background: var(--surface);
  border-right: var(--line);
  border-bottom: var(--line);
  transform: rotate(45deg);
}

.composer-bubble textarea {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.composer-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sign-off {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sign-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sign-off input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-bottom: 3px dashed var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 4px 8px;
}

.empty-message {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}

.comment {
  background: var(--surface);
  border: var(--line-thin);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
  box-shadow: var(--shadow-soft);
}

/* Inner Page Shell & 404 */
.page-shell {
  padding-top: 48px;
  padding-bottom: 64px;
}

.page-article {
  max-width: 800px;
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-hard);
}

.page-article h1 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.quick-answer-box {
  padding: 16px;
  margin: 0 0 24px;
  background: var(--cobalt-soft);
  border: var(--line-thin);
  border-radius: var(--radius);
}

.inner-faq {
  margin-top: 48px;
}

.error-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-hard);
}

.error-card h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-tagline {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--on-dark);
}

.footer-desc {
  margin: 0;
  font-size: 14px;
  color: var(--on-dark-muted);
  max-width: 50ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--muted);
  padding-top: 16px;
  padding-bottom: 24px;
  font-size: 14px;
  color: var(--on-dark-muted);
}

.footer-bottom p {
  margin: 0;
}

/* Tablet & Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .faq-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-intro {
    position: static;
  }

  .playbook-cards,
  .guides-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .redeem-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .court-h1,
  .page-article h1 {
    font-size: 32px;
  }

  .flip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-codes-rack,
  .code-grid,
  .playbook-cards,
  .guides-hub-grid,
  .redeem-steps,
  .tactic-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary,
  .hero-ctas .btn-accent {
    width: 100%;
  }

  .composer-foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .composer-foot .btn-primary {
    width: 100%;
  }

  .media-float-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-article {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .court-h1 .plate,
  .doodle-sign {
    transform: none;
  }
}
