@import url('https://fonts.googleapis.com/css2?family=Anton&family=Work+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --sand: #FDF8EE;
  --sand-2: #F6EEDA;
  --card: #FFFFFF;
  --ink: #17332E;
  --ink-soft: #3F5B55;

  --sun: #FF9F1C;
  --sun-deep: #9C5000;
  --tide: #00C2A8;
  --tide-deep: #046B5F;
  --bloom: #FF4D8D;
  --bloom-deep: #B31F5E;
  --crest-red: #B23A3A;
  --violet: #8B6FE8;
  --violet-deep: #4E36AD;
  --sky: #3FA9E0;
  --sky-deep: #155C88;
  --leaf: #59C88A;
  --leaf-deep: #177249;

  --line: rgba(23, 51, 46, 0.10);
  --line-strong: rgba(23, 51, 46, 0.22);
  --muted: #547069;

  --font-display: 'Anton', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Work Sans', Arial, Helvetica, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --container: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 700px 380px at 50% -6%, rgba(63, 169, 224, 0.14), transparent 55%),
    radial-gradient(ellipse 1000px 600px at 8% -10%, rgba(255, 159, 28, 0.18), transparent 58%),
    radial-gradient(ellipse 900px 650px at 108% 6%, rgba(0, 194, 168, 0.16), transparent 56%),
    radial-gradient(ellipse 800px 600px at 45% 120%, rgba(255, 77, 141, 0.14), transparent 58%);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0 0 0.4em;
  text-transform: uppercase;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sun-deep);
  margin-bottom: 10px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- "NEW" ribbon ---------- */
.new-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.new-ribbon svg { flex: none; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--sun), var(--tide), var(--bloom));
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.nav-brand img { height: 42px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(23,51,46,0.12)); }

.nav-brand-text {
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--ink);
  text-transform: uppercase;
}
.nav-brand-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--tide-deep);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--tide-deep); background: rgba(14,169,154,0.08); }
.nav-links a.active { color: var(--ink); background: var(--sun); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1rem;
}

@media (max-width: 780px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); flex-direction: column; padding: 8px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(23,51,46,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-gold {
  background: linear-gradient(135deg, #FFB84D, var(--sun) 60%, #F0790A);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--sun-deep);
}
.btn-gold:hover { box-shadow: 0 4px 0 var(--sun-deep); transform: translateY(2px); }

.btn-outline {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--tide); color: var(--tide-deep); }

.btn-teal { background: linear-gradient(135deg, #4DE3CE, var(--tide) 60%, #018577); color: #04211d; box-shadow: 0 6px 0 var(--tide-deep); }
.btn-teal:hover { box-shadow: 0 4px 0 var(--tide-deep); transform: translateY(2px); }

.btn-coral { background: linear-gradient(135deg, #FF87B0, var(--bloom) 60%, #E01F6C); color: #3a0011; box-shadow: 0 6px 0 var(--bloom-deep); }
.btn-coral:hover { box-shadow: 0 4px 0 var(--bloom-deep); transform: translateY(2px); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none !important; transform: none !important; }

/* ---------- Sections & cards ---------- */
section { padding: 72px 0; position: relative; z-index: 1; }
.section-tight { padding: 48px 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 3px 16px rgba(23, 51, 46, 0.05);
}

.card-pop {
  position: relative;
  overflow: hidden;
}
.card-pop::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sun), var(--tide), var(--bloom));
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  background: var(--sun);
  flex: none;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Hero ---------- */
.hero-band {
  background: linear-gradient(180deg, #DAF2F8 0%, #CFEFE6 60%, #FDF8EE 100%);
  position: relative;
  z-index: 1;
}
.wave-divider { line-height: 0; margin-top: -2px; position: relative; z-index: 1; }
.wave-divider svg { display: block; width: 100%; height: 56px; }

.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 22px;
}
.hero-logos img { height: 96px; width: auto; filter: drop-shadow(0 6px 14px rgba(23,51,46,0.14)); }
.hero-logos .x { font-family: var(--font-mono); color: var(--muted); font-size: 1.4rem; }

.hero h1 { margin-bottom: 0.25em; }
.hero .lede { margin: 0 auto 30px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- How It Works (bold) ---------- */
.hiw-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.hiw-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 220px;
}
.hiw-medallion {
  width: 104px; height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(23,51,46,0.16);
  margin-bottom: 14px;
  position: relative;
}
.hiw-medallion .hiw-num {
  position: absolute;
  top: -8px; right: -6px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--sand);
}
.hiw-step h3 { font-size: 1.5rem; margin-bottom: 4px; }
.hiw-step p { font-size: 0.95rem; margin: 0; }
.hiw-connector {
  position: absolute;
  top: 52px;
  left: 12%;
  right: 12%;
  height: 3px;
  background-image: linear-gradient(90deg, var(--ink) 0, var(--ink) 8px, transparent 8px, transparent 18px);
  background-size: 18px 3px;
  background-repeat: repeat-x;
  opacity: 0.25;
  z-index: 0;
}
@media (max-width: 700px) {
  .hiw-row { flex-direction: column; align-items: center; gap: 34px; }
  .hiw-connector { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.footer-links { display: flex; gap: 18px; font-size: 0.85rem; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--tide-deep); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tide-deep);
  margin-bottom: 8px;
}
.field input, .field select {
  width: 100%;
  background: var(--sand);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--tide);
  outline-offset: 1px;
  border-color: var(--tide);
}
.field-hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.checkbox-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--tide); }
.checkbox-row label { font-size: 0.9rem; color: var(--ink-soft); font-family: var(--font-body); text-transform: none; letter-spacing: 0; }

.form-msg {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-top: 16px;
}
.form-msg.show { display: block; }
.form-msg.ok { background: rgba(14,169,154,0.10); border: 1px solid var(--tide); color: var(--tide-deep); }
.form-msg.err { background: rgba(255,107,135,0.12); border: 1px solid var(--bloom); color: var(--bloom-deep); }

/* ---------- Category chips ---------- */
.cat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-chip {
  flex: 1;
  min-width: 64px;
  text-align: center;
  padding: 12px 6px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--sand);
  transition: all 0.15s;
}
.cat-chip.selected { background: var(--sun); color: var(--ink); border-color: var(--sun-deep); }

.division-row { display: flex; gap: 10px; }
.division-chip {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--sand);
  transition: all 0.15s;
}
.division-chip.selected { background: var(--tide); color: #04211d; border-color: var(--tide-deep); }

.teams-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.team-card {
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--card);
  min-height: 90px;
}
.team-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3px;
  margin: 0 0 6px;
}
.team-roster { list-style: none; margin: 0; padding: 0; font-size: 0.78rem; }
.team-roster li {
  padding: 2px 0;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-roster-empty { color: var(--muted); font-style: italic; font-size: 0.78rem; }

/* ---------- Draw page v2 (sidebar wheel + team card grid) ---------- */
.draw-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
  min-width: 0;
}
@media (max-width: 980px) { .draw-layout { grid-template-columns: 1fr; } }
.draw-sidebar { position: sticky; top: 90px; min-width: 0; }
@media (max-width: 980px) { .draw-sidebar { position: static; } }

.add-next-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4FD1C5, #0B7A73);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 0 #075e59;
  margin-bottom: 22px;
  transition: transform 0.1s, box-shadow 0.1s;
}
.add-next-btn:hover:not(:disabled) { filter: brightness(1.05); }
.add-next-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #075e59; }
.add-next-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.draw-current-player { text-align: center; font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); min-height: 1.4em; margin-bottom: 6px; }
.draw-current-player b { color: var(--ink); font-size: 1rem; }

.draw-status-box { background: var(--sand-2); border-radius: 10px; padding: 14px 16px; margin-top: 20px; font-size: 0.92rem; color: var(--ink); text-align: center; }
.draw-rule-text { font-size: 0.8rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }

.wheel-center-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--sand);
  color: var(--sun);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  line-height: 1.15;
}
.wheel-center-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.teams-grid-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; min-width: 0; }
@media (max-width: 1200px) { .teams-grid-v2 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .teams-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .teams-grid-v2 { grid-template-columns: 1fr; } }

.team-card-v2 { border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 3px 14px rgba(23,51,46,0.08); border: 1px solid var(--line); min-width: 0; }
.team-card-v2-header { padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--font-display); font-size: 1.05rem; min-width: 0; }
.team-card-v2-header span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.team-card-v2-body { padding: 12px 14px; }
.slot-row { display: flex; align-items: center; gap: 8px; background: var(--sand-2); border-radius: 8px; padding: 6px 10px; margin-bottom: 5px; font-size: 0.85rem; }
.slot-num { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex: none; }
.slot-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-name.filled { color: var(--ink); font-weight: 700; }

.name-chip {
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  background: var(--sand);
  transition: all 0.15s;
}
.name-chip:hover { border-color: var(--tide); }
.name-chip.taken { opacity: 0.45; cursor: not-allowed; }
.name-chip.taken:hover { border-color: var(--line-strong); }
.name-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 700px) { .name-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .name-grid { grid-template-columns: 1fr; } }

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}
.status-pill.waiting { background: rgba(255,159,28,0.16); color: var(--sun-deep); }
.status-pill.pending { background: var(--sand-2); color: var(--muted); }
.status-pill.done { background: rgba(0,194,168,0.14); color: var(--tide-deep); }

.courts-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .courts-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .courts-board { grid-template-columns: 1fr; } }

.checkin-split {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) {
  .checkin-split { grid-template-columns: 1fr; }
}
.checkin-col-right { position: sticky; top: 90px; }
@media (max-width: 980px) { .checkin-col-right { position: static; } }

.court-table-card {
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px;
  background: var(--card);
}
.court-table-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}
table.court-alloc {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.court-alloc th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 6px;
  border-bottom: 1px solid var(--line-strong);
}
table.court-alloc td {
  padding: 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}
table.court-alloc tr:last-child td { border-bottom: none; }
table.court-alloc td.cat-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-soft);
  width: 24px;
}
table.court-alloc td.empty { color: var(--muted); }
table.court-alloc td.pending { color: var(--ink-soft); font-weight: 400; font-style: normal; text-align: left; }
table.court-alloc td.filled { color: var(--ink); font-weight: 800; }

.courts-legend { display: flex; gap: 18px; font-size: 0.82rem; color: var(--muted); margin-top: 14px; flex-wrap: wrap; }
.courts-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 2px solid var(--line-strong); }
.legend-swatch.claimed { border-color: var(--sun); }
.legend-swatch.confirmed { border-color: var(--tide); background: rgba(0,194,168,0.12); }

/* ---------- Wheel ---------- */
.wheel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.wheel-wrap {
  position: relative;
  width: min(340px, 84vw);
  height: min(340px, 84vw);
}
.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 26px solid var(--crest-red);
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(23,51,46,0.25));
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  border: 6px solid var(--card);
  box-shadow: 0 0 0 3px var(--sun), 0 14px 40px rgba(23,51,46,0.18);
  transition: transform 4.2s cubic-bezier(0.15, 0.67, 0.16, 1);
  transform: rotate(0deg);
}
.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  white-space: nowrap;
}
.wheel-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #17332E;
  border: 4px solid var(--sun);
  z-index: 4;
  box-shadow: 0 3px 10px rgba(23,51,46,0.25);
}
.wheel-hub::before, .wheel-hub::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sand);
  top: 50%;
}
.wheel-hub::before { left: 16px; transform: translateY(-50%); }
.wheel-hub::after { right: 16px; transform: translateY(-50%); }

.spin-btn {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, #FFD27A, var(--sun) 55%, #C96800 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 0 var(--sun-deep), 0 12px 24px rgba(23,51,46,0.18);
  transition: transform 0.1s, box-shadow 0.1s;
}
.spin-btn:hover:not(:disabled) { filter: brightness(1.05); }
.spin-btn:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 2px 0 var(--sun-deep), 0 6px 14px rgba(23,51,46,0.18); }
.spin-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: 0 8px 0 var(--sun-deep); }

.result-pop {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink-soft);
  min-height: 1.4em;
  text-align: center;
}
.result-pop b { color: var(--sun-deep); font-size: 1.3rem; }

/* ---------- Match night specific ---------- */
.mn-steps { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.mn-step {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: var(--card);
}
button.mn-step { cursor: pointer; }
.mn-step.active { color: var(--ink); background: var(--sun); border-color: var(--sun-deep); }
.mn-step.done { color: var(--tide-deep); border-color: var(--tide); }

.result-card {
  text-align: center;
  padding: 34px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(23, 51, 46, 0.05);
}
.result-court { font-family: var(--font-mono); color: var(--sun-deep); letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 6px; }
.result-court b { font-family: var(--font-display); font-size: 3rem; color: var(--ink); display: block; letter-spacing: 1px; }

.vs-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.vs-player {
  min-width: 160px;
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 700;
}
.vs-player.teamA { background: rgba(14,169,154,0.12); border: 1.5px solid var(--tide); color: var(--tide-deep); }
.vs-player.teamB { background: rgba(255,107,135,0.14); border: 1.5px solid var(--bloom); color: var(--bloom-deep); }
.vs-player small { display: block; font-family: var(--font-mono); font-weight: 400; letter-spacing: 1px; font-size: 0.7rem; margin-bottom: 4px; opacity: 0.8; }
.vs-sep { font-family: var(--font-display); color: var(--muted); font-size: 1.4rem; }

table.tonight {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 480px) { table.tonight { min-width: 480px; } }
table.tonight th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
}
table.tonight td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
table.tonight tr:last-child td { border-bottom: none; }
.team-tag { font-family: var(--font-mono); font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 0.78rem; }
.team-tag.A { background: rgba(14,169,154,0.14); color: var(--tide-deep); }
.team-tag.B { background: rgba(255,107,135,0.16); color: var(--bloom-deep); }
.empty-note { color: var(--muted); font-style: italic; font-size: 0.9rem; padding: 18px 0; text-align: center; }

/* ---------- Social banner (picture + punchy text) ---------- */
.social-banner {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 16px rgba(23, 51, 46, 0.05);
  overflow: hidden;
}
.social-banner-text {
  flex: 1 1 44%;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.social-banner-text .eyebrow { margin-bottom: 12px; }
.social-banner-text h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.02;
  margin-bottom: 16px;
}
.social-banner-pic {
  flex: 1 1 56%;
  background: linear-gradient(160deg, #FFE7BD 0%, #CFF3EA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-width: 280px;
}
.social-banner-pic svg { width: 100%; max-width: 420px; height: auto; display: block; }

@media (max-width: 820px) {
  .social-banner { flex-direction: column; }
  .social-banner-text { padding: 34px 28px 10px; }
}

/* ---------- Process illustration ---------- */
.process-pic {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px 20px;
  box-shadow: 0 3px 16px rgba(23,51,46,0.05);
}
.process-pic svg { width: 100%; height: auto; display: block; }
.process-caption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
  text-align: center;
}
.process-caption div {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
@media (max-width: 700px) {
  .process-caption { grid-template-columns: repeat(2, 1fr); }
}

/* confetti */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 9px; height: 14px;
  z-index: 200;
  pointer-events: none;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .hero-logos img { height: 68px; }
  .grid-2 { gap: 14px; }
}
