:root {
  --page-pad: 24px;
  --col-gap: 18px;
  --cat-gap: 48px;
  --border: rgba(255,255,255,0.07);
  --navy:   #001829;
  --panel:  #0c1e2e;
  --panel2: #112233;
  --green:  #09A869;
  --blue:   #0060C6;
  --gold:   #FAC152;
  --purple: #6E3A8A;
  --orange: #E8661F;
  --white:  #ffffff;
  --font:   'Red Hat Text', sans-serif;
  --slot-h: 60px;
  --match-radius: 10px;
  /* Category colors */
  --cat-sched: #0060C6;
  --cat-treat: #E8661F;
  --cat-hyg:   #6E3A8A;
  --cat-coll:  #09A869;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  color: var(--white);
  font-family: var(--font);
  background:
    radial-gradient(ellipse at center, rgba(0,171,99,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 40%, rgba(0,96,198,0.07) 0%, transparent 50%),
    var(--navy);
}

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(0,24,41,0.97), rgba(0,24,41,0.90));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.header-logo { height: 36px; width: auto; display: block; }
.hdr-right { display: flex; align-items: center; gap: 14px; }
.hdr-pill {
  background: linear-gradient(180deg, rgba(0,171,99,0.18), rgba(0,171,99,0.10));
  border: 1px solid rgba(0,171,99,0.22); color: #72f0b6;
  font-size: 12px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.hdr-status { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.hdr-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; font-family: var(--font);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.hdr-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.hdr-btn-ghost {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
}
.hdr-btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.hdr-btn-green {
  background: var(--cat-coll); color: var(--white);
  border: 1px solid transparent;
}
.hdr-btn-green:hover { filter: brightness(1.1); transform: translateY(-1px); }
.live-dot, .locked-dot, .upcoming-dot { width: 7px; height: 7px; border-radius: 50%; }
.live-dot     { background: var(--green); animation: pulse 1.5s ease-in-out infinite; }
.locked-dot   { background: #687887; }
.upcoming-dot { background: var(--gold); }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

/* ── STATUS BANNER ── */
.status-banner {
  z-index: 95; padding: 10px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.banner-left { display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; }
.banner-round-name { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.5px; }
.banner-dates { font-size: 20px; color: rgba(255,255,255,0.55); }
.countdown-wrap { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.countdown-label { font-size: 20px; font-weight: 600; color: rgba(255,255,255,0.7); white-space: nowrap; }
.countdown { display: flex; align-items: center; gap: 8px; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 52px; padding: 8px 10px 7px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.09);
}
.cd-num { font-size: 22px; line-height: 1; font-weight: 700; }
.cd-lbl { margin-top: 4px; font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.cd-sep { font-size: 22px; font-weight: 700; color: rgba(255,255,255,0.25); transform: translateY(-6px); }
.status-banner.live .cd-num     { color: #72f0b6; }
.status-banner.upcoming .cd-num { color: #ffd36e; }

/* ── HERO ── */
.hero {
  text-align: center; padding: 32px 24px 16px;
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: -30px 0 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(circle at 50% 35%, rgba(0,171,99,0.13), transparent 22%),
    radial-gradient(circle at 42% 48%, rgba(0,96,198,0.10), transparent 28%);
}
.hero h1 em::after { display: none; }
.hero-logo {
  max-width: min(680px, 90vw); width: 100%; height: auto;
  display: block; margin: 0 auto -20px;
}
.hero-cta-wrap {
  display: inline-flex; align-items: center; margin-top: -20px; align-self: center;
}
.hero-cta-bar {
  background: var(--cat-coll); border-radius: 999px;
  padding: 12px 32px 12px 60px;
  font-size: 18px; font-weight: 600; color: var(--white);
  margin-left: -80px;
}
.hero-check {
  width: 154px; height: 154px; flex-shrink: 0; position: relative; z-index: 1; margin-left: -62px;
}
.hero-sub {
  max-width: 560px; margin: 16px 0 16px 0; padding: 0; font-size: 20px; font-weight: 500;
  line-height: 1.5; color: rgba(255,255,255,0.65);
}
.hero-sub b { font-weight: 700; }

/* ══════════════════════════════════════════════════
   DESKTOP BRACKET  (≥ 900px)
   Layout:
     TOP ROW:    [Sched R0→R1→R2]  [Treatment R2←R1←R0]
     MIDDLE:     Final 4 + Championship (full width)
     BOTTOM ROW: [Hygiene R0→R1→R2] [Collections R2←R1←R0]
══════════════════════════════════════════════════ */
.bracket-shell { padding: 0 var(--page-pad); }

/* ── MATCHUP CARD ── */
.bracket-half {
  display: grid;
  grid-template-columns: repeat(3, 1fr) repeat(3, 1fr);
  gap: var(--col-gap);
  align-items: start;
  position: relative;
}
/* Left 3 cols feed right (R0 outer → R2 inner) */
/* Right 3 cols feed left (R0 outer → R2 inner, columns reversed) */
.b-col { min-width: 0; position: relative; display: flex; flex-direction: column; }

/* Round label bar — 6 cols matching bracket halves */
.round-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr) repeat(3, 1fr);
  gap: var(--col-gap);
  padding: 10px 0 12px; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(0,24,41,0.95), rgba(0,24,41,0.80));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.round-bar-bottom {
  padding: 12px 0 10px; margin-bottom: 0; margin-top: 16px;
  background: linear-gradient(0deg, rgba(0,24,41,0.95), rgba(0,24,41,0.80));
  border-bottom: none; border-top: 1px solid rgba(255,255,255,0.06);
}
.rb-cell {
  min-width: 0; padding: 12px 8px 10px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.rb-cell:last-child { border-right: none; }
.rb-round-name { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.rb-dates  { font-size: 16px; color: rgba(255,255,255,0.45); }
.rb-round-name.live     { color: #5ee8a8; }
.rb-round-name.upcoming { color: #ffd36e; }
.rb-round-name.closed   { color: rgba(255,255,255,0.6); }
.rb-state-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; margin-top: 2px;
}
.rb-state-badge.live     { background: rgba(0,171,99,0.18); color: #72f0b6; border: 1px solid rgba(0,171,99,0.18); }
.rb-state-badge.upcoming { background: rgba(250,193,82,0.16); color: #ffd36e; border: 1px solid rgba(250,193,82,0.16); }
.rb-state-badge.closed   { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.05); }

.cat-col-label {
  font-size: 20px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 16px 4px 12px; display: flex; align-items: center; gap: 8px; min-width: 0;
}
.cat-col-label .cdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cat-col-label.sched { color: #6aaff5; } .cat-col-label.sched .cdot { background: var(--cat-sched); }
.cat-col-label.treat { color: #f4a06a; } .cat-col-label.treat .cdot { background: var(--cat-treat); }
.cat-col-label.hyg   { color: #b47fd4; } .cat-col-label.hyg   .cdot { background: var(--cat-hyg); }
.cat-col-label.coll  { color: #5ee8a8; } .cat-col-label.coll  .cdot { background: var(--cat-coll); }

/* ── MATCHUP CARD ── */
.mg { min-width: 0; }
.mg-slots {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--match-radius);
  overflow: hidden; background: var(--panel);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
}
.mg.round-locked   .mg-slots { opacity: 0.5; }
.mg.round-upcoming .mg-slots { opacity: 0.35; }

/* ── SLOT ── */
.slot {
  width: 100%; min-width: 0;
  min-height: var(--slot-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  border: none; background: transparent; color: var(--white);
  text-align: left; font-family: var(--font);
  cursor: pointer; transition: background 0.14s ease;
}
.slot + .slot { border-top: 1px solid var(--border); }
.slot:hover:not(.won):not(.lost):not(.tbd):not(.locked-slot) { background: rgba(255,255,255,0.06); }
.slot-seed { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.2); width: 18px; flex-shrink: 0; text-align: right; }
.slot-name { min-width: 0; flex: 1; font-size: 14px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.slot-check {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
}
.slot-check svg { display: none; }
.slot.user-pick .slot-check svg { display: block; }
.slot.user-pick .slot-check { background: var(--cat-sched); border-color: var(--cat-sched); }
.slot.user-pick.sched .slot-check { background: var(--cat-sched); border-color: var(--cat-sched); }
.slot.user-pick.treat .slot-check { background: var(--cat-treat); border-color: var(--cat-treat); }
.slot.user-pick.hyg   .slot-check { background: var(--cat-hyg);   border-color: var(--cat-hyg); }
.slot.user-pick.coll  .slot-check { background: var(--cat-coll);  border-color: var(--cat-coll); }
.slot.lost { opacity: 0.28; cursor: default; }
.slot.lost.user-pick { opacity: 0.6; }
.slot.lost .slot-name { text-decoration: line-through; }
.slot.lost.user-pick .slot-check svg { display: block; }
.slot.tbd, .slot.locked-slot { cursor: default; pointer-events: none; }
.slot.tbd .slot-name, .slot.locked-slot .slot-name { color: rgba(255,255,255,0.22); font-style: italic; }

/* ── LIVE RESULTS ── */
.slot-result-pct {
  font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.55);
  white-space: nowrap; flex-shrink: 0; min-width: 30px; text-align: right;
}
.slot.lost .slot-result-pct { color: rgba(255,255,255,0.3); }

.f4-result-pct {
  font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.55);
  white-space: nowrap; flex-shrink: 0; min-width: 38px; text-align: right;
}
.final4-slot.won  .f4-result-pct { color: rgba(255,255,255,0.95); }
.final4-slot.lost .f4-result-pct { color: rgba(255,255,255,0.3); }

/* ── SVG CONNECTORS ── */

/* ══════════════════════════════════════════════════
   FINAL 4 + CHAMPIONSHIP — between top & bottom
══════════════════════════════════════════════════ */
.final-section {
  padding: 32px var(--page-pad) 36px;
  position: relative;
  border-top: 1px solid rgba(0,171,99,0.15);
  border-bottom: 1px solid rgba(0,171,99,0.15);
  background: linear-gradient(180deg,
    rgba(0,171,99,0.06) 0%,
    rgba(0,96,198,0.04) 50%,
    rgba(0,171,99,0.06) 100%);
  margin: 20px calc(-1 * var(--page-pad)) 0;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
#bracket-half-bottom { margin-top: 20px; }
.final-section::before,
.final-section::after {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 160px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,171,99,0.5), transparent);
}
.final-section::before { top: -1px; }
.final-section::after  { bottom: -1px; }

.final-section-header { text-align: center; margin-bottom: 40px; }
.final-section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -1.5px; margin-bottom: 6px;
}
.final-section-sub { font-size: 20px; color: rgba(255,255,255,0.5); }

/* Final 4: two matchups side by side */
.final4-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 32px; align-items: center;
  max-width: 860px; margin: 0 auto 52px;
}
.final4-matchup {
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
.final4-matchup-label {
  padding: 14px 18px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.final4-matchup.semi-T { }
.final4-matchup.semi-B { }
.final4-matchup-label .f4-badge {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
}
.final4-matchup-label .f4-badge.live     { background: rgba(0,171,99,0.18);   color: #72f0b6; border: 1px solid rgba(0,171,99,0.25); }
.final4-matchup-label .f4-badge.upcoming { background: rgba(250,193,82,0.15); color: var(--gold); border: 1px solid rgba(250,193,82,0.2); }
.final4-matchup-label .f4-badge.closed   { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.08); }
.final4-slot {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border: none; background: transparent;
  color: var(--white); font-family: var(--font); text-align: left;
  cursor: pointer; transition: background 0.14s;
}
.final4-slot + .final4-slot { border-top: 1px solid var(--border); }
.final4-slot:hover:not(.won):not(.lost):not(.locked-slot):not(.tbd) { background: rgba(255,255,255,0.05); }
.final4-slot .slot-seed { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.2); width: 20px; flex-shrink: 0; text-align: right; }
.final4-slot .slot-name { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.final4-slot .slot-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.final4-slot .slot-check svg { display: none; }
.final4-slot.won .slot-check svg { display: block; }
.final4-slot.won .slot-name { font-weight: 700; }
.final4-slot.won .slot-check { background: var(--cat-sched); border-color: var(--cat-sched); }
.final4-slot.won.sched .slot-check { background: var(--cat-sched); border-color: var(--cat-sched); }
.final4-slot.won.treat .slot-check { background: var(--cat-treat); border-color: var(--cat-treat); }
.final4-slot.won.hyg   .slot-check { background: var(--cat-hyg);   border-color: var(--cat-hyg); }
.final4-slot.won.coll  .slot-check { background: var(--cat-coll);  border-color: var(--cat-coll); }
.final4-slot.lost { opacity: 0.28; cursor: default; }
.final4-slot.lost .slot-name { text-decoration: line-through; }
.final4-slot.tbd, .final4-slot.locked-slot { cursor: default; pointer-events: none; }
.final4-slot.tbd .slot-name, .final4-slot.locked-slot .slot-name { color: rgba(255,255,255,0.22); font-style: italic; }

.final4-vs {
  display: flex; flex-direction: column; align-items: center; padding: 0 8px;
}
.final4-vs-text { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.25); }

/* Championship */
.champ-row { max-width: 480px; margin: 0 auto; text-align: center; }
.champ-row-label {
  font-size: 20px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 16px;
}
.champ-matchup {
  background: var(--panel2);
  border: 1px solid rgba(0,171,99,0.28); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 48px rgba(0,171,99,0.12), 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.champ-matchup-label {
  padding: 14px 20px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(0,171,99,0.7); border-bottom: 1px solid rgba(0,171,99,0.12);
}
/* ── CHAMPIONSHIP HOLDING STATE ── */
.champ-holding {
  margin-top: 20px; padding: 28px 32px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,96,198,0.08), rgba(0,24,41,0.4));
  text-align: center;
}
.champ-holding-icon { font-size: 36px; margin-bottom: 10px; display: block; }
.champ-holding-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px;
}
.champ-holding-sub {
  font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.6;
  max-width: 340px; margin: 0 auto 20px;
}
.champ-holding-sub strong { color: var(--white); }
.champ-holding-countdown-label {
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 10px;
}
.champ-holding-countdown {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px;
}
.champ-holding-share { margin-top: 4px; }

.champ-winner-box {
  margin-top: 20px; padding: 28px 32px;
  border: 1px solid rgba(250,193,82,0.35); border-radius: 14px;
  background: linear-gradient(135deg, rgba(250,193,82,0.08), rgba(0,171,99,0.06));
  box-shadow: 0 0 40px rgba(250,193,82,0.12), 0 8px 24px rgba(0,0,0,0.2);
  text-align: center;
}
.champ-winner-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.champ-winner-name  { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.champ-tbd-box {
  padding: 28px; text-align: center;
  border: 1px dashed rgba(255,255,255,0.1); border-radius: 14px; margin-top: 20px;
}
.champ-tbd-icon  { font-size: 32px; margin-bottom: 8px; display: block; opacity: 0.4; }
.champ-tbd-label { font-size: 16px; color: rgba(255,255,255,0.28); }
.champ-tbd-date  { font-size: 14px; color: rgba(255,255,255,0.18); margin-top: 4px; }

/* ══════════════════════════════════════════════════
   MOBILE  (< 900px) — Category tabs + round focus
══════════════════════════════════════════════════ */
.mobile-bracket { display: none; padding: 0 0 64px; }

.cat-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px;
  scrollbar-width: none; position: sticky; top: 48px; z-index: 88;
  background: var(--navy); border-bottom: 1px solid var(--border);
  margin: 0; width: 100%;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5); font-family: var(--font); font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all 0.18s; display: flex; align-items: center; gap: 6px;
}
.cat-tab .cdot { width: 7px; height: 7px; border-radius: 50%; }
.cat-tab.active-sched { background: rgba(0,96,198,0.15);   border-color: rgba(0,96,198,0.35);   color: #6aaff5; }
.cat-tab.active-treat { background: rgba(232,102,31,0.15);  border-color: rgba(232,102,31,0.35);  color: #f4a06a; }
.cat-tab.active-hyg   { background: rgba(110,58,138,0.15);  border-color: rgba(110,58,138,0.35);  color: #b47fd4; }
.cat-tab.active-coll  { background: rgba(9,168,105,0.15);   border-color: rgba(9,168,105,0.35);   color: #5ee8a8; }

.mobile-rounds { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mobile-round {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel);
}
.mobile-round-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: transparent; border: none; color: var(--white);
  font-family: var(--font); cursor: pointer; text-align: left;
}
.mobile-round-header:hover { background: rgba(255,255,255,0.04); }
.mrh-left { display: flex; align-items: center; gap: 10px; }
.mrh-round-name { font-size: 20px; font-weight: 700; }
.mrh-dates { font-size: 16px; color: rgba(255,255,255,0.4); }
.mrh-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.mrh-badge.live     { background: rgba(0,171,99,0.18); color: #72f0b6; }
.mrh-badge.upcoming { background: rgba(250,193,82,0.15); color: #ffd36e; }
.mrh-badge.closed   { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); }
.mrh-chevron { font-size: 16px; color: rgba(255,255,255,0.3); transition: transform 0.2s; }
.mobile-round.open .mrh-chevron { transform: rotate(180deg); }

/* Round name highlight color inherits from active category — all rounds */
.cat-active-sched .mrh-round-name { color: #6aaff5; }
.cat-active-treat .mrh-round-name { color: #f4a06a; }
.cat-active-hyg   .mrh-round-name { color: #b47fd4; }
.cat-active-coll  .mrh-round-name { color: #5ee8a8; }
.mobile-round-body { display: none; padding: 4px 12px 12px; }
.mobile-round.open .mobile-round-body { display: block; }

.mobile-matchup {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin-bottom: 10px;
  background: rgba(255,255,255,0.025);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.mobile-matchup:last-child { margin-bottom: 0; }
.mobile-slot {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 14px; border: none; background: transparent;
  color: var(--white); font-family: var(--font); text-align: left;
  cursor: pointer; transition: background 0.14s; min-height: 62px;
}
.mobile-slot + .mobile-slot { border-top: 1px solid var(--border); }
.mobile-slot:hover:not(.won):not(.lost):not(.tbd):not(.locked-slot) { background: rgba(255,255,255,0.06); }
.mobile-slot .slot-seed { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.2); width: 18px; flex-shrink: 0; text-align: right; }
.mobile-slot .slot-name { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.mobile-slot .slot-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.mobile-slot .slot-check svg { display: none; }
.mobile-slot.user-pick .slot-check svg { display: block; }
.mobile-slot.user-pick .slot-check { background: var(--cat-sched); border-color: var(--cat-sched); }
.mobile-slot.user-pick.sched .slot-check { background: var(--cat-sched); border-color: var(--cat-sched); }
.mobile-slot.user-pick.treat .slot-check { background: var(--cat-treat); border-color: var(--cat-treat); }
.mobile-slot.user-pick.hyg   .slot-check { background: var(--cat-hyg);   border-color: var(--cat-hyg); }
.mobile-slot.user-pick.coll  .slot-check { background: var(--cat-coll);  border-color: var(--cat-coll); }
.mobile-slot.lost { opacity: 0.28; cursor: default; }
.mobile-slot.lost.user-pick { opacity: 0.6; }
.mobile-slot.lost .slot-name { text-decoration: line-through; }
.mobile-slot.lost.user-pick .slot-check svg { display: block; }
.mobile-slot.tbd, .mobile-slot.locked-slot { cursor: default; pointer-events: none; }
.mobile-slot.tbd .slot-name, .mobile-slot.locked-slot .slot-name { color: rgba(255,255,255,0.22); font-style: italic; }

.mobile-finals { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(0,171,99,0.18); }
.mobile-finals.at-top { margin-top: 16px; padding-top: 0; border-top: none; margin-bottom: 24px; }
.mobile-finals-title { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; }
.mobile-finals-sub { font-size: 16px; color: rgba(255,255,255,0.45); margin-bottom: 20px; }

/* ══════════════════════════════════════════════════
   CHAMPION REVEAL
══════════════════════════════════════════════════ */
#champ-reveal {
  display: none; text-align: center; padding: 64px 24px 72px;
  border-top: 1px solid var(--border);
}
.cr-trophy { font-size: 64px; display: block; margin-bottom: 12px; animation: popIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes popIn { from{opacity:0;transform:scale(0.3)} to{opacity:1;transform:scale(1)} }
.cr-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.cr-name    { font-size: clamp(24px,4vw,48px); font-weight: 700; letter-spacing: -1.5px; margin-bottom: 8px; }
.cr-sub     { font-size: 20px; color: rgba(255,255,255,0.5); max-width: 380px; margin: 0 auto 24px; line-height: 1.6; }
.cr-card {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0,171,99,0.18), rgba(0,96,198,0.14));
  border: 2px solid rgba(0,171,99,0.4); border-radius: 14px; padding: 22px 38px; margin-bottom: 24px;
}
.cr-card-lbl { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 5px; }
.cr-card-nm  { font-size: 24px; font-weight: 700; }
.cr-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-green {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: var(--white);
  font-family: var(--font); font-size: 16px; font-weight: 700;
  padding: 12px 24px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.18s;
}
.btn-green:hover { background: #00c872; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,171,99,0.3); }
.btn-ghost {
  padding: 12px 22px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
  color: var(--white); font-family: var(--font); font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.18s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

/* ── SUBSCRIBE MODAL OVERRIDES ── */
#subscribe-overlay .share-modal {
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#subscribe-overlay .share-modal > div:last-child {
  overflow-y: auto;
  flex: 1;
}

/* ── SHARE MODAL ── */
.share-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,12,24,0.82); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 24px;
}
.share-overlay.open { display: flex; }
.share-modal {
  background: #0c1e2e; border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px; width: 100%; max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5); overflow: hidden;
}
.share-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.share-modal-title { font-size: 20px; font-weight: 700; }
.share-modal-close {
  background: rgba(255,255,255,0.07); border: none; color: rgba(255,255,255,0.5);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.share-modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.share-preview {
  margin: 16px 20px; padding: 14px 16px; border-radius: 10px;
  background: rgba(0,171,99,0.08); border: 1px solid rgba(0,171,99,0.18);
  font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.75); font-style: italic;
}
.share-options { display: flex; flex-direction: column; gap: 8px; padding: 4px 20px 20px; }
.share-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 10px; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all 0.15s;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
  color: var(--white); font-family: var(--font); text-align: left; width: 100%;
}
.share-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.share-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.15); }
.share-btn-hint {
  margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.3); text-transform: uppercase; flex-shrink: 0;
}
.share-copy { color: rgba(255,255,255,0.7); }

/* ── ROUND COMPLETE CELEBRATION ── */
.round-complete-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,12,24,0.85); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.round-complete-modal {
  background: linear-gradient(135deg, #0c1e2e, #112233);
  border: 1px solid rgba(9,168,105,0.3); border-radius: 20px;
  padding: 40px 32px; text-align: center; max-width: 340px; width: 100%;
  box-shadow: 0 0 60px rgba(9,168,105,0.15), 0 24px 64px rgba(0,0,0,0.5);
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.round-complete-emoji { font-size: 56px; margin-bottom: 12px; display: block; }
.round-complete-title {
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 12px; color: var(--white);
}
.round-complete-sub {
  font-size: 18px; line-height: 1.5; color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
}
.round-complete-sub strong { color: var(--white); }
.round-complete-btn {
  background: var(--cat-coll); color: var(--white);
  border: none; border-radius: 999px;
  padding: 14px 20px; font-size: 15px; font-weight: 700;
  font-family: var(--font); cursor: pointer;
  transition: filter 0.15s; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.round-complete-btn:hover { filter: brightness(1.1); }
.round-complete-btn-share {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  flex: 0 0 auto; padding: 14px 20px;
}
.round-complete-btn-share:hover { background: rgba(255,255,255,0.12); filter: none; }
.round-complete-btns {
  display: flex; gap: 10px; margin-bottom: 10px;
}
.round-complete-dismiss {
  background: none; border: none; color: rgba(255,255,255,0.35);
  font-family: var(--font); font-size: 14px; cursor: pointer;
  padding: 4px; width: 100%;
}
.round-complete-dismiss:hover { color: rgba(255,255,255,0.6); }

.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0,24,41,0.96); border: 1px solid rgba(0,171,99,0.3);
  font-size: 16px; font-weight: 500; padding: 14px 20px; border-radius: 12px;
  opacity: 0; transition: all 0.2s; z-index: 300;
  white-space: normal; text-align: center; line-height: 1.4;
  width: calc(100vw - 48px); max-width: 420px;
  backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.cf { position: fixed; top: -10px; pointer-events: none; z-index: 700; animation: cfFall linear forwards; }
@keyframes cfFall { to { transform: translateY(108vh) rotate(700deg); opacity: 0; } }

footer {
  text-align: center; padding: 14px 24px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: rgba(255,255,255,0.22);
}
footer a { color: var(--green); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 999px) {
  .bracket-shell { display: none; }
  .final-section { display: none; }
  .mobile-bracket { display: block; }
.mobile-rounds { padding: 0 16px; }
.slide-in-left  { animation: slideInLeft  0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.slide-in-right { animation: slideInRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
@keyframes slideInLeft  { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: translateX(0); } }
  .mobile-finals { padding: 0 16px; }

  /* Header — hide status and pill, keep logo + buttons compact */
  .hdr-status { display: none; }
  .hdr-pill   { display: none; }
  .hdr-right  { gap: 8px; }
  .hdr-btn    { padding: 7px 10px; font-size: 12px; }
  .hdr-btn svg { width: 14px; height: 14px; }
  header      { padding: 10px 16px; }
  .header-logo { height: 28px; }

  /* Hero handled by mobile-first base styles above */
  .hero { padding: 32px 24px 16px 40px; }
  .hero-sub { font-size: 19px; }
}
@media (min-width: 1000px) {
  .mobile-bracket { display: none !important; }
}
@media (max-width: 1200px) and (min-width: 1000px) {
  :root { --col-gap: 12px; --page-pad: 16px; --slot-h: 54px; }
  .slot-name { font-size: 13px; }
  .col-round-label { font-size: 8px; }
}
