/* RendezViews World Cup 2026 RSVP — brand stylesheet
   Colors pulled from rendezviews.ca: bold magenta, vivid green, gold, teal.
   Display: Barlow Condensed (loud, condensed, matches site). Body: Inter. */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --magenta: #E91E84;
  --magenta-dark: #C2186F;
  --green: #6DC044;
  --green-dark: #4E9B2C;
  --gold: #F5B225;
  --teal: #2DBDB4;
  --black: #1A1A1A;
  --ink: #1A1A1A;
  --paper: #FFFFFF;
  --cream: #FFF6E8;
  --grey-50: #F7F7F8;
  --grey-100: #ECECEE;
  --grey-200: #D8D8DC;
  --grey-300: #C4C4CA;
  --grey-400: #9A9AA0;
  --grey-600: #5B5B62;
  --grey-800: #2A2A2E;
  --radius: 14px;
  --radius-lg: 22px;
  /* Layered shadow stack — single shadows feel flat; layered shadows feel like real material. */
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.06);
  --shadow-2: 0 2px 4px rgba(0,0,0,.06), 0 8px 16px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.10);
  --shadow-3: 0 4px 8px rgba(0,0,0,.08), 0 16px 32px rgba(0,0,0,.10), 0 32px 64px rgba(0,0,0,.14);
  --shadow-hot: 0 4px 14px rgba(233, 30, 132, .18), 0 12px 36px rgba(233, 30, 132, .12);
  /* Easing curves — named for intent so the design system has a vocabulary. */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; letter-spacing: .01em; line-height: 1; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
a { color: var(--magenta-dark); text-decoration: none; } /* darker for WCAG AA 4.5:1 on white */
a:hover { text-decoration: underline; }

/* ---------- Accessibility ---------- */
/* Visible focus ring for keyboard users (not shown on mouse click) */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 0;
  border-color: var(--magenta);
}

/* Skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--black);
  color: var(--gold);
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  z-index: 999;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Visually hidden but available to screen readers */
.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;
}

/* Respect reduced-motion preference (vestibular disorder accessibility) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .match-card:hover, .btn:hover, .kpi:hover { transform: none !important; }
  .hero::before, .hero::after { animation: none !important; }
  .topbar .brand .mark { animation: none !important; }
  .hero .inner > * { opacity: 1 !important; transform: none !important; }
  .match-card.reveal { opacity: 1 !important; transform: none !important; }
  .kpi { opacity: 1 !important; transform: none !important; }
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--black);
  color: var(--paper);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar .brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.topbar .brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--gold) 60%, var(--green) 100%);
}
.topbar .brand .sub { font-family: var(--font-body); font-weight: 400; opacity: .7; font-size: .85rem; text-transform: none; letter-spacing: 0; margin-left: 6px; }
/* Demo-mode pill: signals the live URL is showing simulated tournament data */
.demo-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 12px;
  background: rgba(245,178,37,.12);
  color: var(--gold);
  border: 1px solid rgba(245,178,37,.3);
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
}
.demo-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: reel-pulse 1.8s var(--ease-in-out-expo) infinite;
}
.topbar nav { display: flex; gap: 18px; }
.topbar nav a { color: var(--paper); opacity: .85; font-size: .9rem; }
.topbar nav a:hover { opacity: 1; text-decoration: none; }
.topbar .admin-link { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background: var(--magenta);
  color: var(--paper);
  padding: 88px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Slowly drifting gradient orbs — adds depth + life without distracting. */
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  will-change: transform;
}
.hero::before {
  background: radial-gradient(ellipse 700px 500px at 20% 0%, rgba(245,178,37,.45), transparent 60%),
              radial-gradient(ellipse 600px 600px at 80% 100%, rgba(109,192,68,.42), transparent 60%);
  animation: drift-a 18s var(--ease-in-out-expo) infinite alternate;
}
.hero::after {
  background: radial-gradient(ellipse 500px 400px at 90% 30%, rgba(45,189,180,.30), transparent 60%);
  animation: drift-b 22s var(--ease-in-out-expo) infinite alternate;
}
@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.08); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.12); }
}

/* Hero content choreography — title fades up, dates follow, lede last */
.hero .inner > * { opacity: 0; animation: hero-rise .9s var(--ease-out-quart) forwards; }
.hero .eyebrow { animation-delay: 80ms; }
.hero h1       { animation-delay: 200ms; }
.hero .dates   { animation-delay: 350ms; }
.hero .lede    { animation-delay: 500ms; }
.hero .ctas    { animation-delay: 650ms; }
@keyframes hero-rise {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Brand mark in topbar — subtle "breath" pulse to feel alive */
.topbar .brand .mark {
  animation: brand-breath 4s var(--ease-in-out-expo) infinite;
}
@keyframes brand-breath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245,178,37,0); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(245,178,37,.18); }
}
.hero .inner { position: relative; max-width: 1080px; margin: 0 auto; }
.hero .eyebrow { display: inline-block; background: var(--black); color: var(--gold); padding: 6px 14px; border-radius: 999px; font-family: var(--font-display); letter-spacing: .12em; font-weight: 700; font-size: .9rem; text-transform: uppercase; }
.hero h1 { margin-top: 18px; }
.hero h1 .accent { color: var(--gold); display: block; }
.hero .dates { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-top: 10px; opacity: .95; }
.hero .lede { max-width: 640px; margin: 24px auto 0; font-size: 1.05rem; opacity: .95; }

/* Live countdown — ticks every second toward the opening match */
.countdown {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 18px auto 0;
  padding: 14px 24px;
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
}
.countdown-label {
  font-family: var(--font-display);
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
}
.countdown-cells { display: flex; align-items: baseline; gap: 6px; }
.cd-cell { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.cd-val {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.4rem; line-height: 1; color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.cd-unit {
  font-family: var(--font-body); font-size: .65rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px;
}
.cd-sep {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2rem; line-height: 1; color: rgba(255,255,255,.4);
}
.countdown-done {
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 8px 16px; color: var(--gold);
}
@media (max-width: 600px) {
  .countdown { padding: 10px 16px; }
  .cd-cell { min-width: 44px; }
  .cd-val { font-size: 1.7rem; }
  .cd-sep { font-size: 1.4rem; }
}
.hero .ctas { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: var(--radius); font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s var(--ease-spring),
              box-shadow .25s var(--ease-out-quart),
              background .15s ease, color .15s ease;
  text-decoration: none;
  position: relative; overflow: hidden;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}
/* Mouse-tracking parallax on hot match cards (JS sets --mx, --my from cursor) */
.match-card.tier-hot,
.match-card.featured {
  transform-style: preserve-3d;
}
.match-card.tier-hot .matchup,
.match-card.featured .matchup {
  transition: transform .12s ease-out;
  will-change: transform;
}
.match-card.tier-hot:hover .matchup,
.match-card.featured:hover .matchup {
  transform: translate3d(calc(var(--mx, 0) * 6px), calc(var(--my, 0) * 4px), 0);
}
.match-card.tier-hot::after,
.match-card.featured::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(
    400px circle at calc(50% + var(--mx, 0) * 80%) calc(50% + var(--my, 0) * 80%),
    rgba(255,255,255,.10), transparent 55%
  );
  opacity: 0; transition: opacity .25s ease;
  z-index: 0;
}
.match-card.tier-hot:hover::after,
.match-card.featured:hover::after { opacity: 1; }
.match-card > * { position: relative; z-index: 1; }

/* Animated SVG checkmark for RSVP success state — circle + tick draw in sequence */
.checkmark-svg {
  width: 28px; height: 28px; display: inline-block; vertical-align: middle;
  margin-right: 8px;
}
.checkmark-svg circle {
  stroke: currentColor; stroke-width: 3; fill: none;
  stroke-dasharray: 166; stroke-dashoffset: 166;
  animation: stroke-draw .45s var(--ease-out-quart) forwards;
}
.checkmark-svg path {
  stroke: currentColor; stroke-width: 4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: stroke-draw .3s var(--ease-out-quart) .35s forwards;
}
@keyframes stroke-draw { to { stroke-dashoffset: 0; } }

/* Ripple effect — click adds a `.ripple` span via JS */
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.4);
  transform: scale(0); animation: ripple-out .6s var(--ease-out-quart) forwards;
}
@keyframes ripple-out {
  to { transform: scale(4); opacity: 0; }
}
/* Success state — button morphs into checkmark before navigating */
.btn.success { background: var(--green); color: var(--paper) !important; pointer-events: none; }
.btn.success .spinner { display: none; }
.btn-primary { background: var(--black); color: var(--gold); }
.btn-primary:hover { background: var(--gold); color: var(--black); }
.btn-secondary { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-secondary:hover { background: var(--paper); color: var(--magenta); }
.btn-green { background: var(--green); color: var(--black); }
.btn-green:hover { background: var(--green-dark); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--grey-200); }
.btn-ghost:hover { background: var(--grey-50); }
.btn-danger { background: transparent; color: var(--magenta); border-color: var(--magenta); }
.btn-danger:hover { background: var(--magenta); color: var(--paper); }
.btn-sm { padding: 10px 14px; font-size: .85rem; min-height: 40px; }

/* Inline spinner for loading button state */
.btn .spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- HIGHLIGHT REEL — "System in Action" mini-dashboard preview.
   Operator-focused: shows the dashboard as it would look DURING the tournament.
   4 frames cycle automatically. Pause on hover. */
.reel {
  background: linear-gradient(180deg, var(--magenta) 0%, #B5176A 100%);
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}
.reel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 100%, rgba(245,178,37,.22), transparent 60%);
  pointer-events: none;
}
.reel-inner { max-width: 1080px; margin: 0 auto; position: relative; }
.reel-header { text-align: center; color: var(--paper); margin-bottom: 28px; }
.reel-eyebrow {
  display: inline-block; background: rgba(0,0,0,.4); color: var(--gold);
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.reel-header h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 8px; }
.reel-sub { font-size: 1rem; opacity: .9; max-width: 560px; margin: 0 auto; }

/* The stage — dark "device" frame containing the cycling frames */
.reel-stage {
  background: #0F0F14;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
  padding: 24px;
  position: relative;
  min-height: 340px;
  overflow: hidden;
}
.reel-stage:hover .reel-frame.is-active { animation-play-state: paused; }
.reel-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  color: rgba(255,255,255,.65);
  font-size: .85rem; letter-spacing: .04em;
  text-transform: uppercase; font-weight: 700;
  margin-bottom: 20px;
}
.reel-label .reel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(109,192,68,.7);
  animation: reel-pulse 1.8s var(--ease-in-out-expo) infinite;
}
@keyframes reel-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109,192,68,.7); }
  50%      { box-shadow: 0 0 0 8px rgba(109,192,68,0); }
}

/* Frames — crossfade between */
.reel-frame {
  position: absolute; inset: 24px; top: 24px;
  opacity: 0; transition: opacity .6s var(--ease-out-quart);
  pointer-events: none;
}
.reel-frame.is-active { opacity: 1; pointer-events: auto; }

/* Frame 1 — KPI bento mini */
.reel-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(74px, auto);
  gap: 12px;
  margin-top: 36px;
}
.reel-kpi {
  background: #1A1A22;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.reel-kpi-hero { grid-column: span 2; grid-row: span 2; padding: 20px; }
.reel-kpi-wide { grid-column: span 2; }
.reel-kpi-label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-size: .7rem; color: rgba(255,255,255,.55); margin-bottom: 4px;
}
.reel-kpi-val {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.8rem; line-height: 1; color: var(--magenta);
}
.reel-kpi-hero .reel-kpi-val { font-size: 3.4rem; }
.reel-kpi-delta {
  font-size: .72rem; color: rgba(255,255,255,.5); margin-top: 6px;
}

/* Frame 2 — Affinity */
.reel-affinity { padding-top: 28px; }
.reel-affinity-bar {
  display: flex; height: 44px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08); margin-bottom: 18px;
  background: rgba(255,255,255,.03);
}
.reel-affinity-seg {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .04em;
  width: 0; transition: width 1.2s var(--ease-out-quart);
  color: var(--paper);
}
.reel-frame[data-frame="2"].is-active .reel-affinity-seg { width: var(--target); }
.seg-canada  { background: var(--magenta); }
.seg-bosnia  { background: var(--teal); }
.seg-neutral { background: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }
.reel-affinity-legend {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  font-size: .85rem; color: rgba(255,255,255,.85);
  margin-bottom: 16px;
}
.reel-affinity-legend .reel-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle;
}
.reel-affinity-legend .dot-magenta { background: var(--magenta); }
.reel-affinity-legend .dot-teal    { background: var(--teal); }
.reel-affinity-legend .dot-grey    { background: rgba(255,255,255,.4); }
.reel-affinity-legend b { color: var(--paper); }
.reel-signal {
  background: rgba(245,178,37,.10);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .85rem; color: rgba(255,255,255,.9);
}
.reel-signal-label {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  font-size: .7rem; color: var(--gold);
  margin-bottom: 4px;
}

/* Frame 3 — Capacity */
.reel-capacity { padding-top: 28px; }
.reel-cap-row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--font-display); font-weight: 800; color: var(--paper);
  margin-bottom: 8px;
}
.reel-cap-row .reel-cap-team { font-size: 1.3rem; }
.reel-cap-row .reel-cap-val { font-size: 2rem; color: var(--gold); }
.reel-cap-row .reel-cap-cap { color: rgba(255,255,255,.5); font-size: 1rem; }
.reel-cap-row-sub {
  font-family: var(--font-body); font-weight: 400; font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin: 6px 0 16px;
}
.reel-cap-bar {
  height: 14px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden;
  margin-bottom: 8px;
}
.reel-cap-fill {
  height: 100%; background: linear-gradient(90deg, var(--green), var(--gold));
  width: 0; transition: width 1.4s var(--ease-out-quart);
  border-radius: 999px;
}
.reel-frame[data-frame="3"].is-active .reel-cap-fill { width: var(--target); }
.reel-cap-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px;
}
.reel-cap-card {
  background: rgba(255,255,255,.05);
  border-radius: 10px; padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: 4px;
}
.reel-cap-card-label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  font-size: .72rem; color: rgba(255,255,255,.55);
}
.reel-cap-card-val {
  font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; color: var(--magenta);
}
.reel-cap-card-sub { font-size: .75rem; color: rgba(255,255,255,.5); }

/* Frame 4 — Check-ins */
.reel-checkins { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.reel-checkin {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.05);
  opacity: 0; transform: translateX(-12px);
}
.reel-frame[data-frame="4"].is-active .reel-checkin {
  animation: reel-checkin-in .45s var(--ease-out-quart) forwards;
}
.reel-frame[data-frame="4"].is-active .reel-checkin:nth-child(1) { animation-delay: .15s; }
.reel-frame[data-frame="4"].is-active .reel-checkin:nth-child(2) { animation-delay: .55s; }
.reel-frame[data-frame="4"].is-active .reel-checkin:nth-child(3) { animation-delay: .95s; }
.reel-frame[data-frame="4"].is-active .reel-checkin:nth-child(4) { animation-delay: 1.35s; }
.reel-frame[data-frame="4"].is-active .reel-checkin:nth-child(5) { animation-delay: 1.75s; }
.reel-frame[data-frame="4"].is-active .reel-checkin:nth-child(6) { animation-delay: 2.15s; }
@keyframes reel-checkin-in {
  to { opacity: 1; transform: translateX(0); }
}
.reel-checkin-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: var(--paper);
  font-weight: 900; font-size: .85rem;
  flex-shrink: 0;
}
.reel-checkin-name {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; color: var(--paper);
  min-width: 160px;
}
.reel-checkin-meta {
  font-size: .78rem; color: rgba(255,255,255,.55);
}
.reel-checkin-meta-line {
  text-align: center; font-size: .8rem; color: rgba(255,255,255,.4);
  margin-top: 8px; font-style: italic;
  opacity: 0; transition: opacity .4s ease;
}
.reel-frame[data-frame="4"].is-active .reel-checkin-meta-line {
  opacity: 1; transition-delay: 2.6s;
}

/* Progress dots */
.reel-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.reel-dot-btn {
  width: 32px; height: 6px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.18); cursor: pointer;
  transition: background .25s ease;
  padding: 0;
}
.reel-dot-btn:hover { background: rgba(255,255,255,.35); }
.reel-dot-btn.is-active { background: var(--gold); }

@media (max-width: 700px) {
  .reel-stage { padding: 16px; min-height: 380px; }
  .reel-frame { inset: 16px; }
  .reel-kpis { grid-template-columns: repeat(2, 1fr); }
  .reel-kpi-hero, .reel-kpi-wide { grid-column: span 2; }
  .reel-kpi-hero .reel-kpi-val { font-size: 2.6rem; }
  .reel-affinity-legend { grid-template-columns: 1fr; gap: 8px; }
  .reel-cap-cards { grid-template-columns: 1fr; }
  .reel-checkin { padding: 8px 12px; }
  .reel-checkin-name { min-width: 110px; font-size: .9rem; }
  .reel-checkin-meta { font-size: .7rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reel-frame { transition: none; }
  .reel-affinity-seg, .reel-cap-fill { transition: none !important; width: var(--target, 100%) !important; }
  .reel-frame[data-frame="4"].is-active .reel-checkin {
    animation: none; opacity: 1; transform: none;
  }
  .reel-label .reel-dot { animation: none; }
}

/* ---------- House rules strip ---------- */
.rules-strip {
  background: var(--green);
  color: var(--black);
  padding: 28px 24px;
  text-align: center;
}
.rules-strip .grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.rules-strip .rule { font-size: .95rem; }
.rules-strip .rule b { display: block; font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; }

/* ---------- Filters ---------- */
.filters {
  background: var(--cream);
  padding: 22px 24px;
  border-bottom: 1px solid var(--grey-100);
  position: sticky; top: 56px; z-index: 40;
}
.filters .inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; color: var(--grey-600); }
.filters select, .filters input[type="text"] {
  padding: 10px 14px; border-radius: 10px; border: 2px solid var(--grey-200);
  font-family: var(--font-body); font-size: .95rem; background: var(--paper);
}
.filters .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--paper); border: 2px solid var(--grey-200); cursor: pointer;
}
.filters .pill.active { background: var(--black); color: var(--paper); border-color: var(--black); }

/* ---------- Schedule ---------- */
.schedule { background: var(--paper); padding: 32px 24px 80px; }
.schedule .inner { max-width: 1240px; margin: 0 auto; }

/* Live scores widget — currently-playing matches strip above the schedule.
   Production wires to API-Football's live-fixtures endpoint; demo uses mocked scores. */
.live-scores {
  background: linear-gradient(135deg, #0F0F14 0%, #1A1A22 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-2);
  border: 1px solid rgba(255,255,255,.05);
}
.live-scores:empty { display: none; }
.ls-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ls-pulse {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: #FF3A5C;
}
.ls-pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FF3A5C;
  box-shadow: 0 0 0 0 rgba(255,58,92,.7);
  animation: reel-pulse 1.6s var(--ease-in-out-expo) infinite;
}
.ls-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; flex: 1; }
.ls-source { font-size: .72rem; color: rgba(255,255,255,.55); }

.ls-matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.ls-match {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ls-match.is-live {
  background: rgba(255,58,92,.08);
  border-color: rgba(255,58,92,.2);
}
.ls-status { display: flex; align-items: center; gap: 8px; }
.ls-min {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.1rem; color: #FF3A5C;
  font-variant-numeric: tabular-nums;
}
.ls-tag {
  background: #FF3A5C; color: var(--paper);
  font-family: var(--font-display); font-weight: 800;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
}
.ls-tag-up {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  font-family: var(--font-display); font-weight: 700;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
}
.ls-teams { display: flex; flex-direction: column; gap: 6px; }
.ls-team {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.ls-flag { font-size: 1.3rem; }
.ls-team-name {
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; font-size: .95rem;
  min-width: 0; word-wrap: break-word;
}
.ls-team-score {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.6rem; line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  min-width: 28px; text-align: right;
}
.ls-match.is-live .ls-team-score { color: var(--gold); }
.ls-venue {
  font-size: .72rem; color: rgba(255,255,255,.45);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 8px;
}
.ls-footnote {
  margin-top: 14px;
  font-size: .72rem; color: rgba(255,255,255,.4);
  text-align: center;
}
.ls-footnote a { color: var(--gold); }

/* Live ticker — public-facing "operator dashboard at a glance" strip above the schedule.
   Surfaces current load + walk-up wait for the next hot match. Updates each render. */
.live-ticker {
  background: var(--black);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
.live-ticker::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 400px 200px at 90% 50%, rgba(233,30,132,.18), transparent 60%);
  pointer-events: none;
}
.live-ticker:empty { display: none; }
.live-ticker-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 28px;
  align-items: center;
}
.live-ticker-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}
.live-ticker-pulse .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(109,192,68,.7);
  animation: reel-pulse 1.6s var(--ease-in-out-expo) infinite;
}
.live-ticker-match {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; letter-spacing: .02em;
}
.live-ticker-match .lt-flag { font-size: 1.4rem; }
.live-ticker-match .lt-team { font-size: 1.2rem; }
.live-ticker-data {
  display: flex; align-items: center; gap: 28px;
  border-left: 1px solid rgba(255,255,255,.15);
  padding-left: 28px;
}
.lt-data-cell { text-align: left; }
.lt-data-val {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.5rem; line-height: 1; color: var(--paper);
}
.lt-data-val.heat-ok { color: var(--green); font-size: 1rem; letter-spacing: .04em; }
.lt-data-val.heat-warn { color: var(--gold); font-size: 1rem; letter-spacing: .04em; }
.lt-data-val.heat-full { color: var(--magenta); font-size: 1rem; letter-spacing: .04em; }
.lt-data-sep { font-size: 1rem; opacity: .55; margin: 0 2px; }
.lt-data-lbl {
  font-family: var(--font-body); font-size: .7rem; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  margin-top: 4px;
}
@media (max-width: 980px) {
  .live-ticker-inner { grid-template-columns: 1fr; gap: 16px; }
  .live-ticker-data { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; gap: 20px; flex-wrap: wrap; }
}
.schedule .day-header {
  display: flex; align-items: baseline; gap: 14px; margin: 28px 0 14px;
  border-bottom: 2px solid var(--black); padding-bottom: 8px;
}
.schedule .day-header h2 { font-size: 1.75rem; }
.schedule .day-header .day-sub { font-family: var(--font-body); color: var(--grey-600); font-size: .9rem; }

/* ---------- Match grid — split into featured + others per day.
   Featured matches (Canada, Final, Opening, Toronto host) get a full-row hero treatment.
   Other matches use auto-fit so they ALWAYS fill the row — a lone card becomes
   full-width naturally instead of leaving an empty half-row gap. */
.match-grid { gap: 18px; align-items: stretch; }
.match-grid-featured {
  display: block; /* each featured card stacks full-row */
  margin-bottom: 18px;
}
.match-grid-featured .match-card { margin-bottom: 18px; }
.match-grid-featured .match-card:last-child { margin-bottom: 0; }
.match-grid-others {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}
.match-card { min-width: 0; }

@media (max-width: 640px) {
  .match-grid-others { grid-template-columns: 1fr; gap: 12px; }
  .match-grid-featured { margin-bottom: 12px; }
  .match-grid-featured .match-card { margin-bottom: 12px; }
}

.match-card {
  background: var(--paper);
  border: 2px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: transform .1s ease, box-shadow .12s ease, border-color .12s ease;
}
/* Bigger cards earn bigger typography */
.match-card.tier-hot .team .name { font-size: 1.65rem; }
.match-card.tier-hot .kickoff { font-size: 2.2rem; }
.match-card.tier-hot .meta { font-size: .85rem; }
.match-card.featured .team .name { font-size: 2.2rem; }
.match-card.featured .kickoff { font-size: 2.8rem; }
.match-card.featured { padding: 28px 32px; }
.match-card.featured .matchup { gap: 32px; }
.match-card.featured .team .flag { font-size: 2.6rem; }
.match-card {
  transition: transform .35s var(--ease-out-quart),
              box-shadow .35s var(--ease-out-quart),
              border-color .25s ease;
  will-change: transform;
}
.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--grey-300);
}
.match-card.tier-hot:hover { box-shadow: var(--shadow-hot); }
.match-card:hover::before { width: 8px; transition: width .25s var(--ease-spring); }
.match-card:focus-within { box-shadow: var(--shadow-2); border-color: var(--magenta); }
.match-card::before { transition: width .25s var(--ease-spring); }

/* Stagger-in on load — IntersectionObserver flips .reveal → .revealed */
.match-card.reveal { opacity: 0; transform: translateY(20px); }
.match-card.revealed {
  opacity: 1; transform: translateY(0);
  transition: opacity .55s var(--ease-out-quart), transform .55s var(--ease-out-quart);
}
.match-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--grey-200);
}
.match-card.tier-open::before { background: var(--green); }
.match-card.tier-rsvp::before { background: var(--gold); }
.match-card.tier-hot::before { background: var(--magenta); }
.match-card.tier-hot { border-color: rgba(233,30,132,.2); }
.match-card .row-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.match-card .meta { font-family: var(--font-body); font-size: .8rem; color: var(--grey-600); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.match-card .badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge.tier-open { background: rgba(109,192,68,.15); color: var(--green-dark); }
.badge.tier-rsvp { background: rgba(245,178,37,.18); color: #8C5F00; }
.badge.tier-hot { background: var(--magenta); color: var(--paper); }
/* Matchup uses CSS Grid so long team names ("Bosnia & Herzegovina", "Korea Republic")
   break cleanly without misaligning the "vs" separator. */
.match-card .matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  min-width: 0;
}
.match-card .team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.match-card .team:last-child { justify-content: flex-end; }
.match-card .team .flag { font-size: 1.6rem; flex-shrink: 0; }
.match-card .team .name {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.2rem; line-height: 1.05;
  min-width: 0;
  word-wrap: break-word; overflow-wrap: break-word; hyphens: auto;
}
.match-card .vs { font-family: var(--font-display); font-weight: 900; color: var(--grey-600); font-size: 1rem; flex-shrink: 0; }
.match-card .kickoff { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.match-card .venue { font-size: .85rem; color: var(--grey-600); }
.match-card .feature-tag {
  display: inline-block; background: var(--black); color: var(--gold);
  padding: 3px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-top: 4px;
}
.match-card .capacity { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: .82rem; color: var(--grey-600); }
.match-card .capacity .bar { flex: 1; height: 6px; background: var(--grey-100); border-radius: 999px; overflow: hidden; }
.match-card .capacity .fill { height: 100%; background: var(--green); transition: width .35s ease; }
.match-card .capacity .fill.warn { background: var(--gold); }
.match-card .capacity .fill.full { background: var(--magenta); }
.match-card .cta { display: flex; gap: 8px; margin-top: 4px; }
.match-card .cta .btn { flex: 1; }

/* ---------- Match detail page ---------- */
.detail {
  background: var(--magenta); color: var(--paper);
  padding: 56px 24px;
}
.detail .inner { max-width: 880px; margin: 0 auto; }
.detail .back { color: var(--paper); opacity: .85; font-size: .9rem; }
.detail .matchup-big { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 28px 0 16px; flex-wrap: wrap; }
.detail .team-big { text-align: center; }
.detail .team-big .flag { font-size: 4rem; }
.detail .team-big .name { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; text-transform: uppercase; line-height: 1; margin-top: 6px; }
.detail .vs-big { font-family: var(--font-display); font-size: 2rem; font-weight: 900; opacity: .6; }
.detail .summary { text-align: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.detail .summary .pipe { opacity: .5; margin: 0 8px; }
.detail .feature-banner { background: var(--black); color: var(--gold); padding: 12px; border-radius: 12px; text-align: center; margin: 16px auto 0; max-width: 480px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- RSVP form ---------- */
.rsvp-section { background: var(--paper); padding: 48px 24px; }
.rsvp-section .inner { max-width: 720px; margin: 0 auto; }
.rsvp-section h2 { margin-bottom: 8px; }
.rsvp-section .sub { color: var(--grey-600); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.form-field label { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; margin-bottom: 6px; }
.form-field { transition: transform .2s var(--ease-out-quart); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 2px solid var(--grey-200); background: var(--paper);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color .15s ease,
              box-shadow .15s ease,
              background .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(233,30,132,.10);
}
.form-field label { transition: color .15s ease; }
.form-field:focus-within label { color: var(--magenta); }
/* Error state shake */
.form-field.error { animation: shake .35s var(--ease-out-quart); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.form-field .hint { font-size: .8rem; color: var(--grey-600); margin-top: 4px; }
.fan-zone-counter {
  margin-top: 8px; padding: 8px 12px;
  background: linear-gradient(90deg, rgba(233,30,132,.08), rgba(245,178,37,.08));
  border-left: 3px solid var(--magenta);
  border-radius: 6px;
  font-size: .88rem;
  color: var(--ink);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s var(--ease-out-quart), transform .25s var(--ease-out-quart);
  pointer-events: none;
}
.fan-zone-counter.show { opacity: 1; transform: translateY(0); }
.fan-zone-counter b { color: var(--magenta-dark); }
.fan-zone-icon { display: inline-block; margin-right: 4px; }
.form-field.error input, .form-field.error select { border-color: var(--magenta); background: #FFF0F7; }
.form-field .error-msg { color: var(--magenta); font-size: .82rem; margin-top: 4px; display: none; }
.form-field.error .error-msg { display: block; }
/* Sponsor prize draw widget — turns static logos into measurable activations.
   Per-match sponsor (Casamigos / Budweiser etc) presents a prize, opt-in checkbox
   tags the RSVP for sponsor attribution. The accent color comes from the sponsor record. */
.prize-draw {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 18px;
  background: linear-gradient(135deg, rgba(245,178,37,.06), rgba(233,30,132,.04));
  border: 2px solid var(--grey-100);
  border-left: 4px solid var(--sponsor-accent, var(--gold));
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.prize-draw::after {
  content: "🏆";
  position: absolute; right: -12px; bottom: -22px;
  font-size: 5rem; opacity: .06;
  pointer-events: none;
}
.prize-draw-meta { min-width: 0; }
.prize-draw-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 800;
  color: var(--sponsor-accent, var(--gold));
  margin-bottom: 4px;
}
.prize-draw-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; line-height: 1.25;
  color: var(--ink);
}
.prize-draw-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper);
  border: 2px solid var(--sponsor-accent, var(--gold));
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .85rem; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.prize-draw-cta input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--sponsor-accent, var(--gold));
  margin: 0;
}
@media (max-width: 600px) {
  .prize-draw { grid-template-columns: 1fr; gap: 12px; }
  .prize-draw-cta { justify-content: center; }
}

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.checkbox-row input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--magenta); }
.checkbox-row label { font-size: .9rem; color: var(--grey-800); }

.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.capacity-status { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.capacity-status .num { color: var(--magenta); font-size: 1.3rem; }
.capacity-status.full { color: var(--magenta); }

/* ---------- NPS page — post-match feedback with smart routing.
   Promoters (9-10) get a one-tap Google Review CTA. Passives/detractors (0-8)
   land on a private feedback form that goes to RendezViews directly. Per the
   4.5-star-economy research, this routing is the highest-leverage star-lift play. */
.nps-hero {
  background: var(--magenta);
  color: var(--paper);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative; overflow: hidden;
  min-height: 60vh;
}
.nps-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 500px at 20% 0%, rgba(245,178,37,.4), transparent 60%),
              radial-gradient(ellipse 600px 600px at 80% 100%, rgba(109,192,68,.4), transparent 60%);
  animation: drift-a 18s var(--ease-in-out-expo) infinite alternate;
  pointer-events: none;
}
.nps-inner { position: relative; max-width: 720px; margin: 0 auto; }
.nps-hero .eyebrow { display: inline-block; background: var(--black); color: var(--gold); padding: 6px 14px; border-radius: 999px; font-family: var(--font-display); letter-spacing: .12em; font-weight: 700; font-size: .85rem; text-transform: uppercase; }
.nps-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-top: 18px; }
.nps-hero h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 24px; margin-bottom: 8px; }
.nps-hero .lede { max-width: 540px; margin: 16px auto 0; opacity: .92; }
.nps-hero p { margin: 8px auto 0; opacity: .92; max-width: 540px; }

.nps-scale {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 8px;
  max-width: 720px; margin: 32px auto 12px;
}
.nps-num {
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.18);
  color: var(--paper);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.2rem;
  border-radius: 12px;
  aspect-ratio: 1; min-height: 56px;
  cursor: pointer;
  transition: transform .2s var(--ease-spring), background .15s ease, border-color .15s ease;
}
.nps-num:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.nps-num:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.nps-num.is-promoter { background: rgba(109,192,68,.22); border-color: rgba(109,192,68,.5); }
.nps-num.is-promoter:hover { background: var(--green); color: var(--black); border-color: var(--green); }
.nps-num.is-selected { background: var(--gold); color: var(--black); border-color: var(--gold); transform: scale(1.08); }
.nps-scale-labels { display: flex; justify-content: space-between; max-width: 720px; margin: 0 auto; font-size: .75rem; opacity: .65; letter-spacing: .02em; }

.nps-stage { transition: opacity .35s var(--ease-out-quart); }
.nps-stage.hidden { display: none; }

.nps-celebration {
  font-size: 4rem; margin: 24px 0 12px;
  animation: nps-pop .6s var(--ease-spring);
}
@keyframes nps-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.nps-stage textarea {
  width: 100%; max-width: 560px; margin: 18px auto 0;
  background: rgba(255,255,255,.95);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink);
  resize: vertical; min-height: 120px;
  display: block;
}
.nps-stage textarea:focus { outline: none; border-color: var(--gold); }

.nps-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.nps-actions .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,.4); background: transparent; }
.nps-actions .btn-ghost:hover { background: rgba(255,255,255,.12); }

@media (max-width: 640px) {
  .nps-scale { grid-template-columns: repeat(6, 1fr); }
  .nps-num { font-size: 1rem; min-height: 48px; }
  .nps-scale-labels { display: none; }
}

/* ---------- Confirmation ---------- */
.confirm-hero { background: var(--green); color: var(--black); padding: 56px 24px; text-align: center; }
.confirm-hero h1 { color: var(--black); }
.confirm-hero .check { font-size: 4rem; }
.confirm-card {
  max-width: 520px; margin: -40px auto 60px; background: var(--paper);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-2);
  text-align: center; position: relative; z-index: 2;
}
.confirm-card .qr { margin: 18px auto; width: 220px; height: 220px; padding: 12px; background: var(--paper); border: 2px solid var(--grey-100); border-radius: 14px; }
.confirm-card .qr canvas, .confirm-card .qr img { width: 100%; height: 100%; }
.confirm-card .code { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .12em; font-weight: 800; margin-top: 8px; }
.confirm-card .details { text-align: left; margin: 18px 0; padding: 16px; background: var(--grey-50); border-radius: 12px; }
.confirm-card .details div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--grey-200); font-size: .9rem; }
.confirm-card .details div:last-child { border-bottom: 0; }
.confirm-card .details .k { color: var(--grey-600); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }
.confirm-card .details .v { font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--magenta); color: var(--paper); padding: 48px 24px 32px; }
.footer .inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: var(--paper); margin-bottom: 10px; }
.footer a { color: var(--paper); text-decoration: underline; }
.footer .legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25); font-size: .8rem; opacity: .85; text-align: center; }
@media (max-width: 720px) { .footer .inner { grid-template-columns: 1fr; } }

/* Demo entry gate — confidentiality acknowledgement before the site loads.
   Not real security; signals intent. localStorage flag dismisses it for return visits. */
.demo-gate {
  position: fixed; inset: 0;
  background: var(--magenta);
  background-image:
    radial-gradient(ellipse 700px 500px at 20% 0%, rgba(245,178,37,.45), transparent 60%),
    radial-gradient(ellipse 600px 600px at 80% 100%, rgba(109,192,68,.42), transparent 60%);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 1; transition: opacity .4s ease;
}
.demo-gate.hide { opacity: 0; pointer-events: none; }
.demo-gate-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px; width: 100%;
  box-shadow: var(--shadow-3);
  text-align: center;
}
.demo-gate-card .mark {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--gold) 60%, var(--green) 100%);
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(233,30,132,.3);
}
.demo-gate-card h2 { margin-bottom: 8px; }
.demo-gate-card h2 .accent { color: var(--magenta); display: block; }
.demo-gate-card p { color: var(--grey-600); margin-bottom: 18px; font-size: .95rem; line-height: 1.6; }
.demo-gate-card .terms {
  background: var(--grey-50); border-radius: 10px; padding: 14px;
  text-align: left; font-size: .82rem; color: var(--grey-800);
  margin-bottom: 18px;
  border-left: 3px solid var(--gold);
}
.demo-gate-card .terms b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; color: var(--grey-600); margin-bottom: 4px; }
.demo-gate-card .checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--grey-800);
  text-align: left;
  margin-bottom: 18px;
  cursor: pointer;
}
.demo-gate-card .checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--magenta); }
.demo-gate-card .actions { display: flex; gap: 10px; flex-direction: column; }
.demo-gate-card .meta {
  margin-top: 16px; font-size: .78rem; color: var(--grey-400);
}

/* Admin watermark — confidential demo badge in the corner.
   Visible enough to deter screenshots being passed around without context,
   subtle enough not to interfere with the dashboard UX. */
.admin-watermark {
  position: fixed; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  font-family: var(--font-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(245,178,37,.3);
  pointer-events: none;
  z-index: 80;
  user-select: none;
  display: flex; align-items: center; gap: 8px;
}
.admin-watermark::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px rgba(233,30,132,.7);
  animation: reel-pulse 2s var(--ease-in-out-expo) infinite;
}

/* ---------- ADMIN — Dark mode "command center" theme.
   Variable overrides scoped to .admin-shell flip the entire admin surface to dark.
   Brand colors (magenta, green, gold, teal) stay vivid — they pop on dark backgrounds. */
.admin-shell {
  --paper: #0F0F14;
  --ink: #F5F5F8;
  --grey-50: #14141B;
  --grey-100: #1E1E27;
  --grey-200: #2A2A35;
  --grey-300: #3A3A48;
  --grey-400: #6A6A78;
  --grey-600: #A8A8B5;
  --grey-800: #E0E0E8;
  --cream: #1A1A22;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.55);
  --shadow-2: 0 4px 12px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.6);
  --shadow-3: 0 8px 24px rgba(0,0,0,.6), 0 24px 60px rgba(0,0,0,.7);
  --shadow-hot: 0 4px 18px rgba(233, 30, 132, .35), 0 14px 40px rgba(233, 30, 132, .25);
  background: var(--grey-50);
  color: var(--ink);
  min-height: 100vh;
}
.admin-shell body { color: var(--ink); }
.admin-shell input,
.admin-shell select,
.admin-shell textarea {
  background: var(--grey-100);
  color: var(--ink);
  border-color: var(--grey-300);
}
.admin-shell input::placeholder { color: var(--grey-400); }
.admin-shell .admin-main h1,
.admin-shell .admin-main h2,
.admin-shell .admin-main h3 { color: var(--ink); }
.admin-shell .admin-main .sub { color: var(--grey-600); }
/* Magenta primary still pops on dark */
.admin-shell .btn-primary { background: var(--magenta); color: var(--paper); }
.admin-shell .btn-primary:hover { background: var(--gold); color: var(--paper); }
.admin-shell .btn-ghost { color: var(--ink); border-color: var(--grey-300); }
.admin-shell .btn-ghost:hover { background: var(--grey-100); }
/* Table rows + headers */
.admin-shell .admin-table { background: var(--paper); border-color: var(--grey-200); }
.admin-shell .admin-table th { background: var(--grey-100); color: var(--grey-600); }
.admin-shell .admin-table th,
.admin-shell .admin-table td { border-bottom-color: var(--grey-200); color: var(--ink); }
.admin-shell .status-chip.pending { background: var(--grey-200); color: var(--grey-600); }
/* Affinity panel adapts */
.admin-shell .affinity-panel { background: var(--paper) !important; border-color: var(--grey-200) !important; }
.admin-shell .affinity-panel h3 { color: var(--ink); }
.admin-shell .affinity-panel .affinity-bar { border-color: var(--grey-200) !important; }
/* Cream callouts go subtle in dark mode */
.admin-shell [style*="background:var(--cream)"],
.admin-shell [style*="background: var(--cream)"] {
  background: var(--grey-100) !important;
  color: var(--grey-800) !important;
}

/* BENTO KPI tile layout — asymmetric hierarchy */
.admin-shell .kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(110px, auto);
  gap: 14px;
}
.admin-shell .kpi-row .kpi:nth-child(1) { grid-column: span 2; grid-row: span 2; } /* hero */
.admin-shell .kpi-row .kpi:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.admin-shell .kpi-row .kpi:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.admin-shell .kpi-row .kpi:nth-child(4) { grid-column: span 1; grid-row: span 2; } /* tall */
.admin-shell .kpi-row .kpi:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.admin-shell .kpi-row .kpi:nth-child(6) { grid-column: span 1; grid-row: span 1; }
.admin-shell .kpi {
  background: var(--paper);
  border-color: var(--grey-200);
  position: relative; overflow: hidden;
}
.admin-shell .kpi .label { color: var(--grey-600); }
.admin-shell .kpi .delta { color: var(--grey-400); }
/* Hero KPI gets larger numbers */
.admin-shell .kpi-row .kpi:nth-child(1) .value { font-size: 4rem; line-height: 1; }
.admin-shell .kpi-row .kpi:nth-child(1) .label { font-size: 1rem; margin-bottom: 8px; }
/* Subtle accent glow on hero tile */
.admin-shell .kpi.magenta::after,
.admin-shell .kpi-row .kpi:nth-child(1)::after {
  content: ""; position: absolute; bottom: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,30,132,.18), transparent 70%);
  pointer-events: none;
}
@media (max-width: 1100px) {
  .admin-shell .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .admin-shell .kpi-row .kpi:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .admin-shell .kpi-row .kpi { grid-column: span 1 !important; grid-row: span 1 !important; }
}
@media (max-width: 640px) {
  .admin-shell .kpi-row { grid-template-columns: 1fr; }
  .admin-shell .kpi-row .kpi { grid-column: span 1 !important; }
}
.admin-header { background: var(--black); color: var(--paper); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-header .brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; }
.admin-header .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--magenta), var(--gold), var(--green)); }
.admin-header nav a { color: var(--paper); opacity: .8; margin-left: 16px; font-size: .9rem; }
.admin-header nav a:hover { opacity: 1; text-decoration: none; }
.admin-main { padding: 28px 24px; max-width: 1240px; margin: 0 auto; }
.admin-main h1 { font-size: 2rem; margin-bottom: 6px; }
.admin-main .sub { color: var(--grey-600); margin-bottom: 24px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.kpi {
  background: var(--paper); border-radius: var(--radius); padding: 18px;
  border: 2px solid var(--grey-100);
  transition: transform .25s var(--ease-spring),
              box-shadow .25s var(--ease-out-quart),
              border-color .15s ease;
  will-change: transform;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--grey-200); }
.kpi .value { transition: color .2s ease; }
/* KPI fade-in stagger */
.kpi { opacity: 0; animation: kpi-rise .6s var(--ease-out-quart) forwards; }
.kpi:nth-child(1) { animation-delay: 60ms; }
.kpi:nth-child(2) { animation-delay: 120ms; }
.kpi:nth-child(3) { animation-delay: 180ms; }
.kpi:nth-child(4) { animation-delay: 240ms; }
.kpi:nth-child(5) { animation-delay: 300ms; }
.kpi:nth-child(6) { animation-delay: 360ms; }
@keyframes kpi-rise {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.kpi .label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; color: var(--grey-600); }
.kpi .value { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1; margin-top: 4px; }
.kpi .delta { font-size: .85rem; color: var(--grey-600); margin-top: 4px; }
.kpi.magenta .value { color: var(--magenta); }
.kpi.green .value { color: var(--green-dark); }
.kpi.gold .value { color: #8C5F00; }
.kpi.teal .value { color: var(--teal); }

.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.admin-toolbar input[type="text"], .admin-toolbar select {
  padding: 10px 14px; border: 2px solid var(--grey-200); border-radius: 10px;
  font-family: var(--font-body); background: var(--paper); font-size: .95rem;
}

.admin-table { background: var(--paper); border: 2px solid var(--grey-100); border-radius: var(--radius); overflow: hidden; }
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--grey-100); font-size: .92rem; }
.admin-table th {
  background: var(--grey-50); font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; color: var(--grey-600);
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .match-cell { display: flex; align-items: center; gap: 10px; }
.admin-table .match-cell .flag { font-size: 1.4rem; }
.admin-table .match-cell .matchup { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.cap-bar { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.cap-bar .bar { flex: 1; height: 8px; background: var(--grey-100); border-radius: 999px; overflow: hidden; }
.cap-bar .fill { height: 100%; background: var(--green); transition: width .35s ease; }
.cap-bar .fill.warn { background: var(--gold); }
.cap-bar .fill.full { background: var(--magenta); }
.cap-bar .text { font-size: .82rem; color: var(--grey-600); white-space: nowrap; }

.status-chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.status-chip.checked { background: rgba(109,192,68,.15); color: var(--green-dark); }
.status-chip.pending { background: var(--grey-100); color: var(--grey-600); }
.status-chip.flagged { background: rgba(233,30,132,.12); color: var(--magenta); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(26,26,30,.6); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--paper); border-radius: var(--radius-lg); max-width: 560px; width: 100%; padding: 28px; max-height: 90vh; overflow-y: auto; }
.modal h2 { margin-bottom: 8px; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 48px 24px; color: var(--grey-600);
  background: var(--paper); border-radius: var(--radius); border: 2px dashed var(--grey-200);
}
.empty h3 { color: var(--grey-800); margin-bottom: 6px; }
.empty .icon {
  display: block; width: 48px; height: 48px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
}
.empty .icon svg { width: 24px; height: 24px; color: var(--grey-600); }
.empty .actions { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.tier-key { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.tier-key .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.tier-key .dot.open { background: var(--green); }
.tier-key .dot.rsvp { background: var(--gold); }
.tier-key .dot.hot { background: var(--magenta); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .topbar {
    flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px;
  }
  .topbar .brand { font-size: .95rem; }
  .topbar .brand .sub { font-size: .75rem; }
  .topbar nav { gap: 14px; font-size: .82rem; flex-wrap: wrap; }
  .filters { padding: 14px 16px; top: 56px; }
  .filters .inner { gap: 8px; }
  .filters select, .filters input[type="text"] { padding: 8px 12px; font-size: .9rem; }
  .filters .tier-key { display: none !important; } /* legend hides on mobile to save space */
  .match-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 20px 48px; }
  .hero .lede { font-size: .95rem; }
  .rules-strip { padding: 22px 16px; }
  .rules-strip .grid { gap: 14px; }
  .schedule { padding: 22px 16px 60px; }
  .schedule .day-header h2 { font-size: 1.4rem; }
  .detail { padding: 40px 20px; }
  .detail .matchup-big { gap: 12px; }
  .detail .team-big .name { font-size: 1.8rem; }
  .detail .team-big .flag { font-size: 3rem; }
  .detail .vs-big { font-size: 1.4rem; }
  .rsvp-section { padding: 32px 20px; }
  .admin-main { padding: 20px 16px; }
  .admin-table { overflow-x: auto; }
  .admin-table table { min-width: 720px; }
  .admin-header { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
  .admin-header nav { font-size: .82rem; }
  .footer { padding: 36px 20px 24px; }
  .confirm-card { margin: -32px 16px 48px; padding: 24px; }
  .confirm-card .qr { width: 180px; height: 180px; }
}
