/* ============================================================
   Corrupt Commish Club — Platform Design System (Layer 2)
   Identity: Broadcast Authority — premium sports editorial
   Fonts: Teko (display/headings) + Newsreader (body/editorial)
   Token source: static/css/tokens.css (Layer 1)
   ============================================================ */

/* ── 1. CSS Custom Properties (:root) ────────────────────── */
:root {
  /* Platform identity — alias into Layer 1 CCC tokens */
  --platform-primary:        var(--purple-700);
  --platform-primary-dark:   var(--purple-900);
  --platform-primary-light:  var(--purple-500);
  --platform-accent:         var(--gold);
  --platform-accent-light:   var(--gold-light);

  /* Surfaces */
  --bg-page:                 var(--bone);
  --bg-card:                 #FFFFFF;
  --bg-muted:                #EDEBF4;

  /* Text */
  --text-primary:            #1C1730;
  --text-secondary:          #5A5470;
  --text-muted:              #8A849B;
  --text-on-dark:            var(--bone);

  /* Semantic */
  --success:                 #1A7A45;
  --success-bg:              #ecfdf5;
  --danger:                  #C0392B;
  --danger-bg:               #fef2f2;
  --warning:                 var(--gold);
  --warning-bg:              #FBF3DC;
  --warning-text:            #92400e;
  --info:                    #3B5998;
  --info-bg:                 #eff6ff;

  /* Borders */
  --border:                  #D8DDE8;
  --border-light:            #E8E5F0;

  /* Shadows */
  --shadow-sm:               0 2px 8px rgba(58,29,114,.07);
  --shadow-md:               0 4px 20px rgba(58,29,114,.12);
  --shadow-lg:               0 8px 40px rgba(58,29,114,.17);
  --shadow-gold:             0 4px 24px rgba(201,162,39,.25);

  /* Radius */
  --radius:                  .5rem;
  --radius-lg:               .875rem;

  /* Transitions */
  --transition:              .2s cubic-bezier(.4,0,.2,1);

  /* Game override slots — default to platform values */
  --game-primary:            var(--platform-primary);
  --game-primary-dark:       var(--platform-primary-dark);
  --game-primary-light:      var(--platform-primary-light);
  --game-accent:             var(--platform-accent);
  --game-accent-light:       var(--platform-accent-light);
}

/* Brand mark sizing — used in nav, auth heroes, email headers */
.brand-mark { width: 28px; height: 28px; vertical-align: -.35em; margin-right: .5rem; }
.brand-mark--lg { width: 56px; height: 56px; }

/* === CCC NAVBAR === */
.navbar.navbar-dark {
  background: var(--purple-700);
  border-bottom: 1px solid var(--purple-800);
}
.navbar.navbar-dark .navbar-brand {
  font-family: var(--font-teko);
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--bone);
  display: inline-flex;
  align-items: center;
}
.navbar.navbar-dark .nav-link {
  font-family: var(--font-teko);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bone-mute);
  position: relative;
  padding: .5rem .85rem;
}
.navbar.navbar-dark .nav-link:hover { color: var(--gold-light); }
.navbar.navbar-dark .nav-link.active {
  color: var(--gold);
}
.navbar.navbar-dark .nav-link.active::after {
  content: '';
  position: absolute;
  left: 12%; right: 12%; bottom: 4px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.navbar.navbar-dark .btn-warning {
  background: var(--metal-gold-flat);
  border: none;
  color: var(--purple-900);
  font-family: var(--font-teko);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.navbar.navbar-dark .btn-warning:hover {
  filter: brightness(1.05);
  color: var(--purple-900);
}

/* === CCC FOOTER === */
.ccc-footer {
  margin-top: 4rem;
}
.ccc-footer-voice {
  background: var(--purple-800);
  color: var(--gold-light);
  padding: 1.25rem 0;
  font-family: var(--font-news);
  font-style: italic;
  font-size: .95rem;
  text-align: center;
  border-top: 2px solid var(--gold);
}
.ccc-footer-utility {
  background: var(--purple-900);
  color: var(--bone-mute);
  padding: .75rem 0;
  font-family: var(--font-teko);
  font-size: .8rem;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

/* === CCC AUTH PAGES === */
body.auth-page {
  background: var(--purple-950);
  background-image: radial-gradient(ellipse at center, var(--purple-900) 0%, var(--purple-950) 70%);
  color: var(--bone);
  min-height: 100vh;
}
body.auth-page main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px); /* offset for navbar + footer */
  padding: 2rem 1rem;
}
body.auth-page .brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-family: var(--font-teko);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
body.auth-page .auth-card,
body.auth-page .card {
  background: var(--bone);
  color: var(--text-primary);
  border: 1px solid var(--bone-dim);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
}
body.auth-page h1, body.auth-page .auth-title {
  font-family: var(--font-teko);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--purple-700);
  margin-bottom: .5rem;
  text-align: center;
}
body.auth-page .auth-subhead, body.auth-page .text-muted {
  font-family: var(--font-news);
  font-style: italic;
  color: var(--text-secondary);
}
body.auth-page .form-control {
  background: #fff;
  border: 1px solid rgba(58, 29, 114, .18);
  color: var(--text-primary);
}
body.auth-page .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .25);
  outline: none;
}
body.auth-page .form-label {
  font-family: var(--font-teko);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  color: var(--purple-700);
}
body.auth-page .btn-primary {
  background: var(--metal-gold-flat);
  border: none;
  color: var(--purple-900);
  font-family: var(--font-teko);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  padding: .65rem 1.5rem;
  transition: transform .15s, box-shadow .15s;
}
body.auth-page .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 162, 39, .35);
  background: var(--metal-gold-flat);
  color: var(--purple-900);
}
body.auth-page a {
  color: var(--purple-700);
}
body.auth-page a:hover { color: var(--gold-dark); }
body.auth-page .alert-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: var(--danger);
}
body.auth-page .alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

/* === CCC ADMIN EYEBROW === */
.admin-eyebrow {
  font-family: var(--font-teko);
  font-size: .85rem;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .25rem;
  display: block;
}
.admin-page-title {
  font-family: var(--font-teko);
  font-size: 2.25rem;
  letter-spacing: .04em;
  color: var(--purple-700);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ── 2. Game-Specific Overrides ──────────────────────────── */

/* Golf overrides */
body.game-golf {
  --game-primary:            #006747;
  --game-primary-dark:       #00432e;
  --game-primary-light:      #1a7a57;
  --game-accent:             #b8993e;
  --game-accent-light:       #d4b55a;
}

/* === HOME (CCC) ============================================== */
/* Components used by core/main/templates/main/_home_*.html      */
/* Ported from fantasy-platform-and-world-cup-design/project/    */
/*   styles/app.css, scoped under .home-shell to avoid           */
/*   collisions with platform components.                        */

.home-shell {
  position: relative;
  min-height: calc(100vh - 56px - 200px); /* nav minus footer */
  background: var(--purple-950);
  background-image: radial-gradient(
    ellipse at top,
    var(--purple-900) 0%,
    var(--purple-950) 60%
  );
  color: var(--bone);
  font-family: var(--font-news);
  padding: 2rem 1rem 3rem;
}

.home-shell--out {
  /* Logged-out hero gets a slightly stronger vignette */
  background-image: radial-gradient(
    ellipse at center top,
    var(--purple-800) 0%,
    var(--purple-950) 70%
  );
}

.home-shell--post {
  /* Champion banner backdrop is gentler than live */
  background-image: radial-gradient(
    ellipse at top,
    var(--purple-850) 0%,
    var(--purple-950) 65%
  );
}

@media (min-width: 768px) {
  .home-shell {
    padding: 3rem 1rem 4rem;
  }
}

/* Home content max-width for non-live states (mobile-first single column) */
.home-shell .home-col {
  max-width: 640px;
  margin: 0 auto;
}

/* Section heads — shared across all home states */
.home-shell .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0 0.75rem;
}
.home-shell .sec-head .t {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
}
.home-shell .sec-head .more {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
}
.home-shell .sec-head .more:hover {
  color: var(--gold-hi);
}

/* Metal-text helper (renamed from design's .metal-text per Spec B 9c) */
.home-metal-text {
  background: var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Logged-out: hero --- */
.home-shell .out-hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}
.home-shell .out-eyebrow {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}
.home-shell .out-title {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.home-shell .out-title .out-title-a {
  display: block;
  background: var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-shell .out-title .out-title-b {
  display: block;
  color: var(--bone);
  margin-top: 0.2rem;
}
@media (min-width: 768px) {
  .home-shell .out-title { font-size: 3.5rem; }
}
.home-shell .out-sub {
  font-family: var(--font-news);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--bone-mute);
  margin: 1.5rem auto 0;
  max-width: 480px;
}

/* --- Logged-out: value props --- */
.home-shell .out-props {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(243,239,230,.08);
  border-bottom: 1px solid rgba(243,239,230,.08);
}
.home-shell .out-prop {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid rgba(243,239,230,.05);
}
.home-shell .out-prop:last-child { border-bottom: none; }
.home-shell .out-prop-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.1rem;
}
.home-shell .out-prop-text .t {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
}
.home-shell .out-prop-text .s {
  font-family: var(--font-news);
  font-size: 0.9rem;
  color: var(--bone-mute);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* --- Logged-out: Join CTA card --- */
.home-shell .join {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem 2rem;
  background: linear-gradient(180deg,
    var(--purple-800) 0%,
    var(--purple-900) 100%);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 14px;
  text-align: center;
}
.home-shell .join-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.home-shell .join-head .seal {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.home-shell .join-head .count {
  font-family: var(--font-news);
  font-size: 0.85rem;
  color: var(--bone-mute);
  font-style: italic;
}
.home-shell .join-head .count .v {
  color: var(--bone);
  font-style: normal;
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 1rem;
}
.home-shell .join-title {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0.5rem 0 1rem;
}
.home-shell .join-sub {
  font-family: var(--font-news);
  font-size: 0.95rem;
  color: var(--bone-mute);
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto 1.5rem;
}
.home-shell .join-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--metal-gold);
  color: var(--purple-950) !important;
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-shell .join-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,162,39,.25);
  color: var(--purple-950) !important;
}
.home-shell .join-alt {
  margin-top: 1rem;
  font-family: var(--font-news);
  font-size: 0.9rem;
  color: var(--bone-mute);
}
.home-shell .join-alt a {
  color: var(--gold-light);
  text-decoration: underline;
}
.home-shell .join-alt a:hover { color: var(--gold-hi); }

/* --- Greet (used by pre/live/post) --- */
.home-shell .greet {
  text-align: center;
  padding: 1rem 0 1.5rem;
}
.home-shell .greet-line {
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-mute);
  margin: 0 0 0.75rem;
}
.home-shell .greet-line .v {
  color: var(--gold-light);
  font-style: normal;
  font-family: var(--font-teko);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 0.4rem;
}
.home-shell .greet-title {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin: 0;
}
@media (min-width: 768px) {
  .home-shell .greet-title { font-size: 3.2rem; }
}
.home-shell .greet-court {
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--bone-mute);
  margin-top: 0.75rem;
}
.home-shell .greet-court .sep {
  color: rgba(242,211,107,.5);
  margin: 0 0.4rem;
}

/* --- Pre-state: countdown card --- */
.home-shell .decree {
  position: relative;
  margin: 1.5rem 0;
  padding: 0;
  background: linear-gradient(180deg,
    var(--purple-800) 0%,
    var(--purple-900) 100%);
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 14px;
  overflow: hidden;
}
.home-shell .decree::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at top,
    rgba(242,211,107,.06) 0%,
    transparent 60%
  );
}
.home-shell .decree-seal {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px dashed rgba(201,162,39,.25);
  position: relative;
  z-index: 1;
}
.home-shell .decree-seal .s {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.home-shell .decree-seal .s .num {
  color: var(--bone-mute);
  margin-left: 0.4rem;
}
.home-shell .decree-seal-year {
  color: var(--bone-mute) !important;
}
.home-shell .decree-body {
  padding: 1.5rem 1rem 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.home-shell .decree-body h2 {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1.25rem;
}
.home-shell .decree-days {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.home-shell .decree-days .d-cell {
  text-align: center;
  min-width: 56px;
}
.home-shell .decree-days .d-cell .v {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.home-shell .decree-days .d-cell .u {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-top: 0.25rem;
}
.home-shell .decree-days .d-sep {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold-light);
  opacity: 0.5;
}
@media (min-width: 768px) {
  .home-shell .decree-days .d-cell .v { font-size: 3.6rem; }
  .home-shell .decree-days .d-cell { min-width: 72px; }
}
.home-shell .decree-foot {
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--bone-mute);
  margin: 1rem 0 0;
}
.home-shell .decree-actions {
  padding: 1rem 1rem 1.25rem;
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(243,239,230,.06);
}
.home-shell .decree-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--metal-gold);
  color: var(--purple-950) !important;
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.15s ease;
}
.home-shell .decree-cta:hover {
  transform: translateY(-1px);
  color: var(--purple-950) !important;
}
.home-shell .decree-links {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}
.home-shell .decree-links a {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-mute);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.home-shell .decree-links a:hover { color: var(--gold-light); }

/* --- Pre-state: sealed ballot card --- */
.home-shell .ballot-card {
  display: block;
  margin: 1.5rem 0;
  padding: 1.25rem 1.25rem 1.5rem;
  background: linear-gradient(180deg,
    rgba(100,219,160,.08) 0%,
    rgba(26,10,54,.5) 100%);
  border: 1px solid rgba(100,219,160,.3);
  border-radius: 12px;
  text-decoration: none;
  color: var(--bone);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.home-shell .ballot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(100,219,160,.5);
  color: var(--bone);
}
.home-shell .ballot-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.home-shell .ballot-label {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-mute);
}
.home-shell .ballot-status {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  margin-top: 0.2rem;
}
.home-shell .ballot-locked {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--live-green);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.home-shell .ballot-locked .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-green);
}
.home-shell .ballot-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.home-shell .ballot-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  line-height: 1;
  background: rgba(10,6,18,.5);
  border: 1px solid rgba(201,162,39,.22);
  border-radius: 8px;
}
.home-shell .ballot-foot {
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--bone-mute);
  line-height: 1.4;
  margin-top: 0.5rem;
}
.home-shell .ballot-foot em {
  color: var(--gold-light);
  font-style: italic;
}

/* --- CTA cards (join, view, seal) --- */
.home-shell .cta-card {
  display: block;
  margin: 1.5rem 0;
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.home-shell .cta-card:hover { transform: translateY(-2px); }
.home-shell .cta-card-eyebrow {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.home-shell .cta-card-title {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.5rem;
}
.home-shell .cta-card-body {
  font-family: var(--font-news);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--bone-mute);
  margin-bottom: 1rem;
}
.home-shell .cta-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.home-shell .cta-card--seal {
  background: linear-gradient(180deg,
    rgba(201,162,39,.1) 0%,
    rgba(26,10,54,.5) 100%);
  border: 1px solid rgba(201,162,39,.35);
}
.home-shell .cta-card--join {
  background: linear-gradient(180deg,
    var(--purple-800) 0%,
    var(--purple-900) 100%);
  border: 1px solid rgba(201,162,39,.3);
}
.home-shell .cta-card--view {
  background: linear-gradient(180deg,
    var(--purple-850) 0%,
    var(--purple-950) 100%);
  border: 1px solid rgba(243,239,230,.12);
}

/* --- Match card — shared (upcoming + final) --- */
.home-shell .match-card {
  margin: 0.75rem 0;
  background: linear-gradient(180deg,
    var(--purple-850) 0%,
    var(--purple-950) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
}
.home-shell .match-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.home-shell .match-head .grp {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-mute);
}
.home-shell .live-pill {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.home-shell .live-pill--kickoff {
  background: rgba(242,211,107,.08);
  border: 1px solid rgba(242,211,107,.32);
  color: var(--gold-light);
}
.home-shell .live-pill--final {
  background: rgba(243,239,230,.08);
  border: 1px solid rgba(243,239,230,.22);
  color: rgba(243,239,230,.7);
}
.home-shell .match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
}
.home-shell .m-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.home-shell .m-flag {
  font-size: 2rem;
  line-height: 1;
}
.home-shell .m-name {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
}
.home-shell .m-score {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 0.9;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.home-shell .m-center {
  text-align: center;
}
.home-shell .m-center .clock {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gold-light);
}
.home-shell .m-center .ft {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-top: 0.2rem;
}
.home-shell .match-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25);
}
.home-shell .match-foot-note {
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--bone-mute);
}
.home-shell .match-foot-status {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* --- Compact game tiles strip (pre/live/post) --- */
.home-shell .court-games-wrap {
  margin-top: 1.5rem;
}
.home-shell .court-games {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
}
.home-shell .cg {
  display: block;
  text-align: center;
  padding: 0.85rem 0.5rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.home-shell .cg:hover { transform: translateY(-2px); }
.home-shell .cg--active {
  background: linear-gradient(180deg,
    rgba(201,162,39,.12) 0%,
    rgba(26,10,54,.5) 100%);
  border: 1px solid rgba(201,162,39,.4);
}
.home-shell .cg--soon {
  background: rgba(26,10,54,.5);
  border: 1px solid rgba(243,239,230,.08);
  opacity: 0.7;
  cursor: default;
}
.home-shell .cg .g {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.home-shell .cg .n {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
}
.home-shell .cg .p {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.25rem;
}
.home-shell .cg--soon .p {
  color: var(--bone-mute);
}

/* --- Commish's Note (long-form narrative) --- */
.home-shell .commish-note {
  margin: 1.5rem 0;
}
.home-shell .commish-note-body {
  background: linear-gradient(180deg,
    var(--purple-850) 0%,
    var(--purple-950) 100%);
  border: 1px solid rgba(243,239,230,.08);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.home-shell .commish-note-body p {
  font-family: var(--font-news);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--bone);
  margin: 0 0 1rem;
}
.home-shell .commish-note-body p:last-child { margin-bottom: 0; }
.home-shell .commish-note-byline {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.8rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light) !important;
  font-style: normal !important;
  margin-top: 1rem !important;
}

/* --- Dispatches (short-feed) --- */
.home-shell .dispatches {
  margin: 1rem 0;
}
.home-shell .dispatch {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(26,10,54,.4);
  border: 1px solid rgba(243,239,230,.05);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.home-shell .dispatch--yours {
  border-left: 3px solid var(--gold-light);
}
.home-shell .dispatch--pool {
  border-left: 3px solid var(--bone-mute);
}
.home-shell .dispatch-num {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold-light);
  text-align: center;
  line-height: 1;
}
.home-shell .dispatch-text .who {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
}
.home-shell .dispatch-text .what {
  font-family: var(--font-news);
  font-size: 0.85rem;
  color: var(--bone-mute);
  margin-top: 0.2rem;
  line-height: 1.4;
}
.home-shell .dispatch-time {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

/* --- Live-state: dossier card --- */
.home-shell .dossier {
  position: relative;
  margin: 1rem 0 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(180deg,
    var(--purple-800) 0%,
    var(--purple-950) 100%);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 14px;
}
.home-shell .dossier-stamp {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.6;
}
.home-shell .dossier-rank {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 0.5rem;
}
.home-shell .rank-num {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 0.85;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.home-shell .rank-hash {
  font-size: 2.2rem;
  color: var(--gold-light);
}
.home-shell .rank-meta {
  flex: 1;
  padding-bottom: 0.4rem;
}
.home-shell .rank-of {
  font-family: var(--font-news);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--bone-mute);
}
.home-shell .rank-mvmt {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.home-shell .rank-mvmt--up { color: #64DBA0; }
.home-shell .rank-mvmt--down { color: #FF8089; }
.home-shell .rank-mvmt--flat { color: var(--bone-mute); }

.home-shell .dossier-sparkline {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243,239,230,.06);
}
.home-shell .sparkline-cap {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-bottom: 0.5rem;
}
.home-shell .dossier-sparkline-empty {
  margin-top: 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(243,239,230,.06);
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--bone-mute);
  text-align: center;
}

.home-shell .dossier-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243,239,230,.06);
}
.home-shell .d-meta {
  text-align: center;
}
.home-shell .d-meta .k {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.home-shell .d-meta-k--gold { color: var(--gold-light); }
.home-shell .d-meta-k--green { color: #64DBA0; }
.home-shell .d-meta-k--red { color: #FF8089; }
.home-shell .d-meta .l {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-top: 0.35rem;
}

/* --- Live-state: leaderboard preview (rolls) --- */
.home-shell .rolls {
  margin: 0;
}
.home-shell .roll-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(26,10,54,.4);
  border: 1px solid rgba(243,239,230,.05);
  border-radius: 8px;
  margin-bottom: 0.4rem;
}
.home-shell .roll-row--you {
  background: linear-gradient(180deg,
    rgba(201,162,39,.1) 0%,
    rgba(26,10,54,.5) 100%);
  border-color: rgba(201,162,39,.4);
}
.home-shell .roll-rank {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--bone-mute);
  text-align: center;
}
.home-shell .roll-rank--gold {
  color: var(--gold-light);
}
.home-shell .roll-name {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.home-shell .roll-you-chip {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  background: var(--gold-light);
  color: var(--purple-950);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}
.home-shell .roll-tagline {
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--bone-mute);
  margin-top: 0.15rem;
  line-height: 1.3;
}
.home-shell .roll-pts {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.home-shell .roll-pts .u {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  margin-left: 0.3rem;
  color: var(--bone-mute);
  font-weight: 500;
}
.home-shell .roll-dots {
  text-align: center;
  font-family: var(--font-teko);
  letter-spacing: 0.5em;
  color: var(--bone-mute);
  margin: 0.25rem 0;
}

/* --- Match foot status variants (live-state recent results) --- */
.home-shell .match-foot-status--win { color: #64DBA0; }
.home-shell .match-foot-status--draw { color: var(--gold-light); }
.home-shell .match-foot-status--loss { color: var(--bone-mute); }
.home-shell .match-empty {
  padding: 2rem 1rem;
  text-align: center;
  font-family: var(--font-news);
  font-style: italic;
  color: var(--bone-mute);
  background: rgba(26,10,54,.3);
  border: 1px dashed rgba(243,239,230,.1);
  border-radius: 8px;
}

/* --- Live state: container sizing --- */
.home-shell .home-live {
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 991px) {
  /* Mobile: each column gets a max-width like the other states */
  .home-shell .home-live-left,
  .home-shell .home-live-right {
    max-width: 640px;
    margin: 0 auto;
  }
}
@media (min-width: 992px) {
  /* Desktop: tighter padding between columns */
  .home-shell .home-live-left { padding-right: 1.5rem; }
  .home-shell .home-live-right { padding-left: 1.5rem; }
  /* Greet stays text-aligned-left on desktop instead of centered */
  .home-shell .home-live .greet { text-align: left; }
}

/* --- Post-state: champion banner (full-bleed) --- */
.home-shell .champion-banner {
  position: relative;
  margin: 1.5rem -1rem;
  padding: 3rem 1rem 3.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(58,29,114,.45) 0%, transparent 60%),
    linear-gradient(180deg,
      var(--purple-950) 0%,
      var(--purple-900) 50%,
      var(--purple-950) 100%);
  border-top: 1px solid rgba(201,162,39,.3);
  border-bottom: 1px solid rgba(201,162,39,.3);
  overflow: hidden;
}
@media (min-width: 768px) {
  .home-shell .champion-banner {
    max-width: 960px;
    margin: 1.5rem auto;
    border: 1px solid rgba(201,162,39,.3);
    border-radius: 16px;
  }
}
.home-shell .champion-glow-bg {
  position: absolute;
  inset: 0;
  background: var(--champion-glow);
  pointer-events: none;
  animation: champion-pulse 4s ease-in-out infinite;
}
.home-shell .champion-glow-bg::before {
  /* Tighter halo pinned behind the flag — pulses against the ambient glow */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 38%,
    rgba(242,211,107,.55) 0%,
    transparent 32%);
  animation: champion-halo 4s ease-in-out infinite;
}
@keyframes champion-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.05); }
}
@keyframes champion-halo {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .home-shell .champion-glow-bg,
  .home-shell .champion-glow-bg::before {
    animation: none;
  }
  .home-shell .champion-glow-bg          { opacity: 0.5; }
  .home-shell .champion-glow-bg::before  { opacity: 0.7; }
}
.home-shell .champion-content {
  position: relative;
  z-index: 1;
}
.home-shell .champion-eyebrow {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}
.home-shell .champion-flag {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4))
          drop-shadow(0 0 24px rgba(242,211,107,.25));
}
@media (min-width: 768px) {
  .home-shell .champion-flag { font-size: 7rem; }
}
.home-shell .champion-name {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.5rem 0 0.6rem;
}
@media (min-width: 768px) {
  .home-shell .champion-name { font-size: 4rem; }
}
.home-shell .champion-rule {
  width: 64px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-light) 50%,
    transparent 100%);
  opacity: 0.6;
}
.home-shell .champion-summary {
  font-family: var(--font-news);
  font-size: 1.05rem;
  color: var(--bone);
  margin-top: 1rem;
  font-style: italic;
}
.home-shell .champion-detail {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-top: 0.5rem;
}

/* --- Post-state: final podium --- */
.home-shell .podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0 2rem;
}
.home-shell .podium-tier {
  text-align: center;
  padding: 1rem 0.5rem 1.25rem;
  background: linear-gradient(180deg,
    rgba(58,29,114,.6) 0%,
    var(--purple-950) 100%);
  border: 1px solid rgba(243,239,230,.08);
  border-radius: 8px 8px 0 0;
  position: relative;
}
.home-shell .podium-tier--first {
  background: linear-gradient(180deg,
    rgba(201,162,39,.25) 0%,
    var(--purple-900) 100%);
  border: 1px solid rgba(201,162,39,.5);
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
}
.home-shell .podium-tier--first::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--podium-glow);
  pointer-events: none;
  border-radius: inherit;
}
.home-shell .podium-tier--second { transform: translateY(20px); }
.home-shell .podium-tier--third { transform: translateY(35px); }
.home-shell .podium-rank {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--bone-mute);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.home-shell .podium-tier--first .podium-rank {
  color: var(--gold-light);
  font-size: 2rem;
}
.home-shell .podium-name {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  position: relative;
  z-index: 1;
  word-break: normal;
  overflow-wrap: anywhere;
}
.home-shell .podium-pts {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bone);
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.home-shell .podium-pts span {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  margin-left: 0.25rem;
  color: var(--bone-mute);
  font-weight: 500;
}

@media (max-width: 480px) {
  /* Mobile: stack vertically with #1 on top */
  .home-shell .podium {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .home-shell .podium-tier--second,
  .home-shell .podium-tier--third {
    transform: none;
  }
  .home-shell .podium-tier--first { order: -1; }
}

/* --- Post-state: roster recap --- */
.home-shell .roster-recap {
  margin: 2rem 0 1.5rem;
  padding: 1.5rem 1.25rem 1.75rem;
  background: linear-gradient(180deg,
    var(--purple-850) 0%,
    var(--purple-950) 100%);
  border: 1px solid rgba(243,239,230,.08);
  border-radius: 14px;
}
.home-shell .roster-recap-head {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(243,239,230,.08);
  margin-bottom: 1.25rem;
}
.home-shell .recap-eyebrow {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-mute);
  margin-bottom: 0.5rem;
}
.home-shell .recap-rank {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  background: var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-shell .recap-rank .hash {
  font-size: 1.6rem;
  -webkit-text-fill-color: var(--gold-light);
}
.home-shell .recap-rank .of {
  font-family: var(--font-news);
  font-style: italic;
  font-size: 1rem;
  -webkit-text-fill-color: var(--bone-mute);
  color: var(--bone-mute);
  margin-left: 0.4rem;
}
.home-shell .recap-sub {
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-mute);
  margin-top: 0.5rem;
}
.home-shell .sec-head--inset {
  padding-top: 0.5rem;
}

.home-shell .roster-recap-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}
.home-shell .roster-recap-row {
  display: grid;
  grid-template-columns: 32px 48px 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(243,239,230,.05);
}
.home-shell .roster-recap-row:last-child { border-bottom: none; }
.home-shell .roster-recap-row--champion {
  background: linear-gradient(90deg,
    rgba(201,162,39,.18) 0%,
    rgba(201,162,39,.05) 100%);
  border-left: 3px solid var(--gold-light);
  margin-left: -3px;
  padding-left: calc(0.75rem - 3px);
}
.home-shell .rr-flag {
  font-size: 1.4rem;
  line-height: 1;
}
.home-shell .rr-code {
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--bone);
}
.home-shell .rr-tier {
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--bone-mute);
}
.home-shell .rr-finish {
  font-family: var(--font-teko);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.home-shell .rr-pts {
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: right;
}
.home-shell .roster-recap-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.85rem 1.5rem;
  background: var(--metal-gold);
  color: var(--purple-950) !important;
  font-family: var(--font-teko);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.15s ease;
}
.home-shell .roster-recap-cta:hover {
  transform: translateY(-1px);
  color: var(--purple-950) !important;
}

@media (max-width: 480px) {
  /* Mobile: hide tier name, show only flag/code/finish/pts */
  .home-shell .roster-recap-row {
    grid-template-columns: 32px 48px 1fr auto;
  }
  .home-shell .rr-tier { display: none; }
}

/* --- Polish: focus rings (a11y) --- */
.home-shell a:focus-visible,
.home-shell button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Polish: subtle gold underline on compact tile hover --- */
.home-shell .cg--active:hover .n {
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 4px;
}

/* --- Polish: card-style links use the same lift as auth buttons --- */
.home-shell .ballot-card,
.home-shell .cta-card,
.home-shell .cg--active {
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-shell .ballot-card:hover,
.home-shell .cta-card:hover,
.home-shell .cg--active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

/* --- Polish: prevent layout shift on countdown digit changes --- */
.home-shell .decree-days .d-cell .v {
  display: inline-block;
  min-width: 2.6rem;
  text-align: center;
}

/* --- Polish: touch device hover suppression --- */
@media (hover: none) {
  .home-shell .ballot-card:hover,
  .home-shell .cta-card:hover,
  .home-shell .cg:hover,
  .home-shell .cg--active:hover,
  .home-shell .join-cta:hover,
  .home-shell .decree-cta:hover,
  .home-shell .roster-recap-cta:hover {
    transform: none;
    box-shadow: none;
  }
  /* Hover-underline on the compact tile won't dismiss on tap — suppress it on touch */
  .home-shell .cg--active:hover .n {
    text-decoration: none;
  }
}

/* --- Polish: reduced-motion respect for hover lifts --- */
@media (prefers-reduced-motion: reduce) {
  .home-shell .ballot-card:hover,
  .home-shell .cta-card:hover,
  .home-shell .cg--active:hover,
  .home-shell .join-cta:hover,
  .home-shell .decree-cta:hover,
  .home-shell .roster-recap-cta:hover {
    transform: none;
  }
}

/* --- Polish: print-friendly fallback (just in case) --- */
@media print {
  .home-shell {
    background: white !important;
    color: black !important;
  }
  .home-shell .champion-glow-bg,
  .home-shell .decree::after { display: none; }
}

/* === HOME — END ============================================== */

/* === GOLF PICK 'EM === */

/* Golf table — dark green header, themed hover */
.table-golf > thead > tr > th {
  background: var(--game-primary-dark);
  color: var(--text-on-dark);
  border-bottom: 2px solid var(--game-primary);
}

.table-golf > tbody > tr:hover { background: rgba(0,103,71,.04); }

/* Current user row highlight */
.table-golf .row-current-user > td,
.row-current-user > td {
  background: rgba(184,153,62,.08) !important;
  border-left: 3px solid var(--game-accent);
}
.table-golf .row-current-user > td:not(:first-child),
.row-current-user > td:not(:first-child) {
  border-left: none;
}

/* Leader row — subtle green tint */
.table-golf .row-leader > td {
  background: rgba(0,103,71,.04) !important;
}

/* Column divider — visual separator between season and tournament data */
.col-divider {
  border-left: 2px solid rgba(0,103,71,.12) !important;
}
.table-golf > thead > tr > th.col-divider {
  border-left: 2px solid rgba(0,103,71,.25) !important;
}

/* Major tournament badge */
.badge-major {
  background: rgba(184,153,62,.12);
  color: #92722a;
  font-weight: 700;
  font-size: .65rem;
  padding: .25em .55em;
  border: 1px solid rgba(184,153,62,.3);
}

/* Pick CTA banner */
.golf-pick-cta {
  border-top: 3px solid var(--game-primary);
  background: linear-gradient(135deg, rgba(0,103,71,.04) 0%, var(--bg-card) 100%);
}

/* Empty state icon */
.golf-empty-icon {
  font-size: 3rem;
  color: var(--game-accent);
}

/* Hero season progress — label + value */
.hero-progress-label {
  letter-spacing: .08em;
  font-weight: 700;
  font-family: 'Teko', sans-serif;
  color: rgba(255,255,255,.55);
  font-size: .75rem;
  text-transform: uppercase;
}

.hero-progress-value {
  color: var(--game-accent);
  font-weight: 700;
  font-family: 'Teko', sans-serif;
}

/* Tom Select overrides — golf palette integration */
body.game-golf .ts-control {
  border-color: rgba(0,103,71,.15);
  border-radius: var(--radius);
}
body.game-golf .ts-control:focus-within {
  border-color: var(--game-primary-light);
  box-shadow: 0 0 0 3px rgba(0,103,71,.15);
}
body.game-golf .ts-dropdown {
  border-color: rgba(0,103,71,.12);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
}
body.game-golf .ts-dropdown .option.active {
  background: rgba(0,103,71,.08);
  color: var(--game-primary-dark);
}

@media (max-width: 767px) {
  body.game-golf .ts-control {
    min-height: 48px !important;
    font-size: 1rem !important;
  }
  body.game-golf .ts-dropdown .option {
    padding: .6rem .75rem !important;
    font-size: 1rem !important;
  }
}

/* CFB overrides */
body.game-cfb {
  --game-primary:            #C5050C;
  --game-primary-dark:       #0f0f1a;
  --game-primary-light:      #e8282f;
  --game-accent:             #FFFFFF;
  --game-accent-light:       #e8e8e8;
  --cfb-survived:            #22c55e;
  --cfb-lost-life:           #ef4444;
  --cfb-eliminated:          #6b7280;
}

/* === CFB SURVIVOR POOL === */

/* CFB table — midnight header, crimson accent */
.table-cfb > thead > tr > th {
  background: var(--game-primary-dark);
  color: var(--text-on-dark);
  border-bottom: 2px solid var(--game-primary);
}

.table-cfb > tbody > tr:hover { background: rgba(197,5,12,.04); }

/* Current user row highlight (CFB-specific tint) */
.table-cfb .row-current-user > td {
  background: rgba(197,5,12,.06) !important;
  border-left: 3px solid var(--game-primary);
}
.table-cfb .row-current-user > td:not(:first-child) {
  border-left: none;
}

/* Lives indicator — filled/hollow dots */
.lives-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  vertical-align: middle;
}
.lives-indicator .life {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cfb-survived);
  border: 2px solid var(--cfb-survived);
  transition: all var(--transition);
}
.lives-indicator .life.lost {
  background: transparent;
  border-color: var(--cfb-eliminated);
}

/* Team pick card — selectable card in pick.html */
.team-pick-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.team-pick-card:not(.ineligible):hover {
  border-color: var(--game-primary-light);
  box-shadow: var(--shadow-sm);
}
.team-pick-card.selected {
  border-color: var(--game-primary);
  box-shadow: 0 0 0 2px rgba(197,5,12,.2);
}
.team-pick-card.ineligible {
  opacity: .55;
  pointer-events: none;
}

/* Spread badge — inline chip */
.spread-badge {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .03em;
  padding: .2em .55em;
  border-radius: .25rem;
  background: rgba(197,5,12,.08);
  color: var(--text-secondary);
  vertical-align: middle;
}
.spread-badge.favorable { color: var(--cfb-survived); }
.spread-badge.unfavorable { color: var(--cfb-lost-life); }

/* Outcome badges */
.badge-survived {
  background: var(--cfb-survived);
  color: #fff;
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .35em .8em;
}
.badge-lost-life {
  background: var(--cfb-lost-life);
  color: #fff;
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .35em .8em;
}
.badge-eliminated {
  background: var(--cfb-eliminated);
  color: #fff;
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .3em .65em;
}

/* Extra-small badge */
.badge-xs {
  font-size: .65rem !important;
  padding: .2em .45em;
}

/* Elimination alert — headline treatment */
.elimination-alert {
  background: linear-gradient(135deg, rgba(239,68,68,.06) 0%, rgba(239,68,68,.02) 100%);
  border: 1px solid rgba(239,68,68,.2);
  border-left: 4px solid var(--cfb-lost-life);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.elimination-alert h3,
.elimination-alert h4,
.elimination-alert h5 {
  color: var(--cfb-lost-life);
  margin-bottom: .75rem;
}

/* Championship hero — winner reveal */
.championship-hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--game-primary-dark) 0%, #1a0a0c 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.championship-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(197,5,12,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.championship-hero .trophy-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: fadeInScale .6s ease both;
}
.championship-hero .champion-name {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: .5rem;
  animation: fadeInUp .5s .15s ease both;
  position: relative;
}
.championship-hero .champion-subtitle {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  color: rgba(255,255,255,.6);
  animation: fadeInUp .5s .25s ease both;
  position: relative;
}
.championship-hero .prize-badge {
  display: inline-block;
  background: var(--game-primary);
  color: #fff;
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .5em 1.5em;
  border-radius: var(--radius);
  margin-top: 1rem;
  animation: fadeInUp .5s .35s ease both;
  position: relative;
}

/* Results scoreboard — weekly results table */
.results-scoreboard {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* CFB pick CTA banner */
.cfb-pick-cta {
  border-top: 3px solid var(--game-primary);
  background: linear-gradient(135deg, rgba(197,5,12,.04) 0%, var(--bg-card) 100%);
}

/* World Cup overrides */
body.game-worldcup {
  --game-primary:            #002868;
  --game-primary-dark:       #001040;
  --game-primary-light:      #1a4890;
  --game-accent:             #BF0A30;
  --game-accent-light:       #D42040;
  --wc-tier1:                #D97706;
  --wc-tier2:                #4B7399;
  --wc-tier3:                #B45309;
  --wc-tier4:                #0D7377;
  --wc-tier5:                #9333EA;
}

/* ============================================================
   Spec C — Cross-cutting WC utility classes
   Consume Spec A's tokens.css; no new tokens.
   ============================================================ */

/* Eyebrow label — small uppercase Teko text above section headers */
.wc-eyebrow {
  font-family: 'Teko', sans-serif;
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bone-mute);
  display: inline-block;
}
.wc-eyebrow-red { color: var(--wc-red); }
.wc-eyebrow-gold { color: var(--gold-light); }

/* Display numeral utility — Teko, tabular figures */
.wc-numeral {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  font-feature-settings: 'tnum';
  letter-spacing: .03em;
}

/* Hero gradient — radial gold-tint over linear navy-to-near-black.
   Scoped as .page-hero.wc-hero-grad so it wins over the later
   single-class .page-hero { background: ... } rule on equal-specificity. */
.page-hero.wc-hero-grad {
  background:
    radial-gradient(500px 200px at 100% -20%, rgba(242, 211, 107, .15), transparent 65%),
    linear-gradient(180deg, #0A1A50 0%, #00102E 100%);
}

/* Tier dot — circular tier indicator. Sibling pattern to tier-badge-{n}. */
.wc-tier-dot {
  display: inline-block;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: .35rem;
  flex-shrink: 0;
}
.wc-tier-dot-1 { background: var(--wc-tier1); }
.wc-tier-dot-2 { background: var(--wc-tier2); }
.wc-tier-dot-3 { background: var(--wc-tier3); }
.wc-tier-dot-4 { background: var(--wc-tier4); }
.wc-tier-dot-5 { background: var(--wc-tier5); }

/* Multiplier chip — flat numeral chip for ×N displays */
.wc-multiplier-chip {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
  padding: .15rem .45rem;
  background: rgba(245, 241, 232, .08);
  border: 1px solid rgba(245, 241, 232, .14);
  border-radius: 4px;
  color: var(--wc-white);
  white-space: nowrap;
}

/* WC card — refreshed card pattern with metalwork accent.
   Composes with Bootstrap .card; scoped as .card.wc-card so it wins over
   the later single-class .card { ... } rule on equal-specificity. */
.card.wc-card {
  background: rgba(0, 17, 46, .8);
  border: 1px solid rgba(245, 241, 232, .08);
  border-radius: 8px;
  padding: 1rem;
  transition: border-color var(--transition);
}
.card.wc-card:hover {
  border-color: rgba(242, 211, 107, .25);
}
.card.wc-card-flush {
  padding: 0;
}

/* picks.html team card descendants */
.wc-team-card .team-flag { margin-right: .4rem; }
.wc-team-card .team-group-pill {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .1rem .35rem;
  background: rgba(245, 241, 232, .06);
  border-radius: 3px;
  color: var(--bone-mute);
  text-decoration: none;
}
.wc-team-card .team-group-pill:hover {
  color: var(--wc-white);
  background: rgba(245, 241, 232, .12);
}

/* picks.html / player_detail.html — pick row tier + multiplier on light card */
.player-picks-desktop .wc-multiplier-chip {
  color: var(--text-primary, #212529);
  background: rgba(0, 40, 104, .04);
  border-color: rgba(0, 40, 104, .12);
}
.player-picks-desktop td .wc-eyebrow {
  color: var(--text-muted, #6c757d);
}

/* picks.html / player_detail.html — three-column event-item grid (drill-down) */
.pick-events-inner {
  padding: .75rem 1rem .25rem;
}
.pick-events-list .pick-event-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: .75rem;
  align-items: baseline;
  padding: .25rem 0;
  border-bottom: 1px dashed rgba(0, 40, 104, .07);
  animation: wc-event-fade-in 200ms ease-out both;
  animation-delay: calc(var(--event-i, 0) * 40ms);
}
.pick-events-list .pick-event-item:last-child { border-bottom: none; }
.pick-event-stage { color: var(--text-muted, #6c757d); }
.pick-event-desc { font-size: .9rem; }
.pick-event-pts { font-size: 1rem; }

/* Spec C Plan 2 — player_detail / team_detail hero stat grid.
   NOTE: uses .hero-stat (not .stat-block) to avoid collision with the
   later platform .stat-block rule which has its own card chrome. */
.player-hero-stats,
.team-hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.player-hero-stats .hero-stat,
.team-hero-stats .hero-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 70px;
}
.player-hero-stats .hero-stat strong,
.team-hero-stats .hero-stat strong {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--wc-white);
  font-weight: 700;
}

/* Back-affordance link — small, bone-mute, hover-bright */
.back-link {
  display: inline-flex;
  align-items: center;
  font-family: 'Teko', sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bone-mute);
  text-decoration: none;
}
.back-link:hover { color: var(--wc-white); }

/* Deep-link from a pick row's team name to /worldcup/team/<id>.
   Used on both dark (player_detail mobile cards) and light (desktop pick
   table) surfaces — the brand-red dotted underline reads on both. */
.team-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(191, 10, 48, .4);
  transition: color var(--transition), border-color var(--transition);
}
.team-link:hover {
  color: var(--wc-red);
  border-bottom-color: var(--wc-red);
}

/* Spec C Plan 2 — team_detail hero + ownership ribbon + fixture list */
.team-hero-flag {
  font-size: 2.4rem;
  line-height: 1;
}

/* Ownership ribbon — flex row, label/blurb on left, count on right.
   Owned-variant carries the red border + tinted gradient to signal personal ownership. */
.ownership-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(245, 241, 232, .1);
  border-radius: 6px;
  background: rgba(0, 17, 46, .6);
}
.ownership-ribbon-owned {
  border-color: var(--wc-red);
  background: linear-gradient(90deg,
              rgba(191, 10, 48, .15) 0%,
              rgba(0, 17, 46, .6) 100%);
}
.ownership-ribbon-stat {
  text-align: right;
  flex-shrink: 0;
}
.ownership-ribbon-count {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--wc-white);
  font-weight: 700;
}

/* Fixture row grid — 4-col layout: stage / opponent / score / points.
   Mobile compresses to 80/1fr/50/50 with reduced padding. */
.fixture-list { padding: 0; }
.fixture-row {
  display: grid;
  grid-template-columns: 110px 1fr 60px 60px;
  gap: .75rem;
  align-items: center;
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(245, 241, 232, .05);
  position: relative;
}
.fixture-row:last-child { border-bottom: none; }
.fixture-row-next {
  background: rgba(191, 10, 48, .08);
  box-shadow: inset 3px 0 0 var(--wc-red);
}
.fixture-stage { line-height: 1.2; }
.fixture-result { text-align: right; }
.fixture-pts { text-align: right; font-weight: 700; }
.fixture-next-pip {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: .6rem;
}

@media (max-width: 575.98px) {
  .fixture-row {
    grid-template-columns: 80px 1fr 50px 50px;
    padding: .55rem .75rem;
    gap: .5rem;
  }
}

/* Spec C Plan 2 — path-to-crown segments + picker list.
   6 stage tiles (Group · R32 · R16 · QF · SF · Final) × 4 statuses.
   Won = gold-tinted ✓; current = red-bordered (next-up); eliminated = red ✗;
   future = dim. flex 1-1-0 keeps tiles equal at 1280px and wraps gracefully
   under 375px. */
.path-segments {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.path-segment {
  flex: 1 1 0;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .5rem .25rem;
  border: 1px solid rgba(245, 241, 232, .08);
  border-radius: 4px;
  background: rgba(0, 17, 46, .5);
  color: var(--bone-mute);
  transition: border-color var(--transition);
}
.path-segment-won {
  color: var(--wc-white);
  border-color: rgba(242, 211, 107, .35);
  background: rgba(242, 211, 107, .08);
}
.path-segment-current {
  color: var(--wc-white);
  border-color: var(--wc-red);
  background: rgba(191, 10, 48, .12);
}
.path-segment-eliminated {
  color: var(--bone-mute);
  border-color: var(--wc-red);
  background: rgba(191, 10, 48, .06);
}

.picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .35rem .5rem;
}
/* Picker pills sit on the bone page surface (not inside a dark card),
   so they need dark-on-light text to read. var(--wc-navy) mirrors the
   surrounding h3 heading color. */
.picker-list-item .picker-link {
  display: inline-block;
  padding: .25rem .5rem;
  color: var(--wc-navy);
  text-decoration: none;
  border: 1px solid rgba(0, 26, 77, .15);
  border-radius: 4px;
  font-size: .9rem;
  transition: border-color var(--transition), background-color var(--transition);
}
.picker-list-item .picker-link:hover {
  border-color: var(--wc-red);
  background: rgba(191, 10, 48, .05);
}

/* === WORLD CUP FANTASY POOL === */

/* World Cup table — navy header, patriot blue accent */
.table-worldcup > thead > tr > th {
  background: var(--game-primary-dark);
  color: var(--text-on-dark);
  border-bottom: 2px solid var(--game-primary);
}
.table-worldcup > tbody > tr:hover { background: rgba(0,40,104,.04); }

/* Current user row highlight */
.table-worldcup .row-current-user > td {
  background: rgba(191,10,48,.06) !important;
  border-left: 3px solid var(--game-accent);
}
.table-worldcup .row-current-user > td:not(:first-child) {
  border-left: none;
}

/* Tier badges — colored pill per tier */
.tier-badge {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25em .7em;
  border-radius: 1rem;
  color: #fff;
  line-height: 1.3;
}
.tier-badge-1 { background: var(--wc-tier1); }
.tier-badge-2 { background: var(--wc-tier2); }
.tier-badge-3 { background: var(--wc-tier3); }
.tier-badge-4 { background: var(--wc-tier4); }
.tier-badge-5 { background: var(--wc-tier5); }

/* Multiplier badge — inline chip */
.multiplier-badge {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .03em;
  padding: .15em .5em;
  border-radius: .25rem;
  background: rgba(0,40,104,.08);
  color: var(--game-primary);
  vertical-align: middle;
}

/* Tier card — pick submission section per tier */
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.tier-card-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(0,40,104,.04) 0%, rgba(0,40,104,.01) 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.tier-card-header h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.tier-card-header .tier-counter {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-muted);
  letter-spacing: .03em;
}
.tier-counter.complete {
  color: var(--success);
}
.tier-card-body {
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}

/* Team pick card — individual team in pick form */
.wc-team-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: .75rem .875rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-height: 72px;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.wc-team-card:hover {
  border-color: var(--game-primary-light);
  box-shadow: var(--shadow-sm);
}
.wc-team-card.selected {
  border-color: var(--game-primary);
  background: rgba(0,40,104,.04);
  box-shadow: 0 0 0 2px rgba(0,40,104,.18);
}
.wc-team-card.selected::after {
  content: '\2713';
  position: absolute;
  top: .4rem;
  right: .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--game-primary);
  line-height: 1;
}
.wc-team-card.disabled {
  opacity: .4;
  pointer-events: none;
}
.wc-team-card .team-name {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--text-primary);
}
.wc-team-card .team-meta {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Pick summary — pre-submit review panel */
.pick-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--game-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.pick-summary h4 {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.pick-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pick-summary-list li {
  padding: .35rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .9rem;
}
.pick-summary-list li:last-child { border-bottom: none; }

/* Match result card — schedule/results display */
.match-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  transition: box-shadow var(--transition);
}
.match-result-card:hover {
  box-shadow: var(--shadow-sm);
}
.match-result-card .match-team {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  flex: 1;
  min-width: 0;
}
.match-result-card .match-team.home { text-align: right; }
.match-result-card .match-team.away { text-align: left; }
.match-result-card .match-score {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--game-primary);
  background: rgba(0,40,104,.06);
  padding: .2em .6em;
  border-radius: var(--radius);
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}
.match-result-card .match-score.pending {
  color: var(--text-muted);
  background: rgba(0,0,0,.03);
  font-size: 1rem;
  font-weight: 500;
}
.match-result-card .match-detail {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  flex-shrink: 0;
}

/* Match attribution chip — "ARG +3 base" etc. */
.match-points-chip {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .15rem .55rem;
  background: rgba(0, 40, 104, .08);
  border-left: 2px solid var(--game-accent, #BF0A30);
  color: var(--game-primary, #002868);
  font-family: 'Teko', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-top: .4rem;
  white-space: nowrap;
}
.match-points-chip .chip-pts {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.match-points-chip .chip-sep {
  opacity: .5;
  margin: 0 .2em;
}

/* Pick drill-down accordion */
.pick-accordion {
  border-top: 1px dashed var(--border, #dee2e6);
  background: rgba(0, 40, 104, .03);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 140ms ease-out, opacity 140ms ease-out;
}
.pick-accordion.open {
  max-height: 600px; /* generous upper bound */
  opacity: 1;
}
.pick-accordion-toggle {
  background: transparent;
  border: 0;
  color: var(--text-muted, #6c757d);
  cursor: pointer;
  padding: 0 .35rem;
  font-size: .9rem;
  transition: transform 140ms ease-out;
}
.pick-accordion-toggle.open {
  transform: rotate(90deg);
  color: var(--game-primary, #002868);
}
.score-events-list {
  list-style: none;
  margin: 0;
  padding: .75rem 1rem;
  font-size: .85rem;
}
.score-events-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .2rem 0;
  animation: wc-event-fade-in 200ms ease-out both;
  animation-delay: calc(var(--event-i, 0) * 40ms);
}
.score-events-list .event-meta {
  color: var(--text-muted, #6c757d);
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.score-events-list .event-pts {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--game-primary, #002868);
}
.score-events-list .event-source-dot {
  display: inline-block;
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--game-accent, #BF0A30);
  margin-right: .5em;
  vertical-align: middle;
  opacity: .7;
}
.score-events-total {
  padding: .5rem 1rem .75rem;
  border-top: 1px dotted var(--border, #dee2e6);
  color: var(--text-muted, #6c757d);
  font-size: .8rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.score-events-empty {
  padding: .75rem 1rem;
  font-size: .85rem;
  color: var(--text-muted, #6c757d);
  font-style: italic;
}
@keyframes wc-event-fade-in {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Group table — compact 4-team standings.
   scroll-margin-top clears the sticky .navbar (~58px) + .game-subnav (~40px)
   stack so #group-{LETTER} deep-links land below the chrome, not under it. */
.group-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-margin-top: 6.5rem;
}
.group-table-header {
  background: var(--game-primary-dark);
  color: var(--text-on-dark);
  padding: .65rem 1rem;
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.group-table table {
  width: 100%;
  margin: 0;
  font-size: .85rem;
}
.group-table table th {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  padding: .4rem .5rem;
  font-size: .75rem;
  border-bottom: 1px solid var(--border-light);
}
.group-table table td {
  padding: .45rem .5rem;
  border-bottom: 1px solid var(--border-light);
}
.group-table table tr:last-child td { border-bottom: none; }
.group-table .team-name-cell {
  font-weight: 500;
  white-space: nowrap;
}
.group-table .advancement-badge {
  display: inline-block;
  font-size: .6rem;
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15em .4em;
  border-radius: .25rem;
  margin-left: .35rem;
  vertical-align: middle;
}
.advancement-badge.winner { background: var(--success-bg); color: var(--success); }
.advancement-badge.runner-up { background: var(--info-bg); color: var(--info); }
.advancement-badge.best-third { background: var(--warning-bg); color: var(--warning-text); }
.advancement-badge.eliminated { background: rgba(107,114,128,.1); color: var(--text-muted); }

/* Phase indicator — tournament status chip */
.phase-indicator {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3em .75em;
  border-radius: 1rem;
  background: rgba(0,40,104,.08);
  color: var(--game-primary);
}
.phase-indicator .phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--game-primary);
}
.phase-indicator.active .phase-dot {
  animation: pulseGold .8s ease infinite;
  background: var(--game-accent);
}

/* World Cup pick CTA banner */
.wc-pick-cta {
  border-top: 3px solid var(--game-primary);
  background: linear-gradient(135deg, rgba(0,40,104,.04) 0%, var(--bg-card) 100%);
}

/* World Cup mobile overrides */
@media (max-width: 767px) {
  .tier-card-body {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    padding: .75rem;
  }
  .wc-team-card {
    min-height: 64px;
    padding: .6rem .75rem;
  }
  .match-result-card {
    flex-wrap: wrap;
    gap: .4rem;
    padding: .65rem .75rem;
  }
  .match-result-card .match-team {
    font-size: .95rem;
  }
}

/* Admin: auto-winner pulse on match_result form */
@keyframes wc-auto-pulse {
  0%   { background-color: transparent; }
  40%  { background-color: rgba(191, 10, 48, .18); }
  100% { background-color: transparent; }
}
.wc-auto-picked {
  animation: wc-auto-pulse 160ms ease-out;
}

/* — The Field Office (stats) tab bar —
   In-page pills idiom: reuses .subnav-pills/.subnav-pill from Plan 1 for
   layout/sizing, then overrides colors so pills read on a light page bg
   instead of the dark global subnav. Active pill paints --subnav-accent
   (set inline to var(--wc-red) on the .subnav-pills wrapper). */
.wc-stats-pills {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 93px;
  z-index: 900;
  transition: background .3s, top var(--transition);
}
/* Stay 10px below the .game-subnav when the navbar compacts.
   Matches .game-subnav.subnav-shifted's 58px → 48px desktop shift
   (and 52px → 42px mobile, in the @media (max-width: 767px) block).
   Sibling combinator works because .game-subnav and <main> are
   body-level siblings (see templates/base.html). */
.game-subnav.subnav-shifted ~ main .wc-stats-pills {
  top: 83px;
}
.wc-stats-pills .subnav-pills {
  padding: .55rem .75rem;
}
.wc-stats-pills .subnav-pill {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
}
.wc-stats-pills .subnav-pill:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
  border-color: var(--border);
}
.wc-stats-pills .subnav-pill.active {
  color: #fff;
  background: var(--subnav-accent);
  border-color: var(--subnav-accent);
}

.wc-stats-panel { display: none; animation: wc-fadeInUp .22s ease both; }
.wc-stats-panel.active { display: block; }
@keyframes wc-fadeInUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.wc-pick-bar { margin-bottom: .55rem; }
.wc-pick-bar.my-pick .wc-pick-bar-label { color: var(--platform-accent); font-weight: 700; }
.wc-pick-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Teko', sans-serif;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: .18rem;
  gap: .5rem;
}
.wc-pick-bar-track { height: 7px; background: var(--bg-muted); border-radius: 4px; overflow: hidden; }
.wc-pick-bar-fill { height: 100%; border-radius: 4px; transition: width .55s cubic-bezier(.4,0,.2,1); }

/* Stats page component classes */
.wc-kpi-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--game-accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background .3s, border-color .3s;
}
.wc-kpi-value {
  font-family: 'Teko', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.wc-kpi-label {
  font-family: 'Teko', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .3rem;
}
.wc-kpi-sub { font-size: .76rem; color: var(--text-muted); margin-top: .15rem; }

.wc-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  height: 100%;
  transition: background .3s, border-color .3s;
}
.wc-card-head {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Tier badges */
.wc-tb {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .18em .55em;
  border-radius: 1rem;
  color: #fff;
  line-height: 1.4;
  vertical-align: middle;
}
.wc-tb-1 { background: var(--wc-tier1); }
.wc-tb-2 { background: var(--wc-tier2); }
.wc-tb-3 { background: var(--wc-tier3); }
.wc-tb-4 { background: var(--wc-tier4); }
.wc-tb-5 { background: var(--wc-tier5); }

/* Scoring list */
.wc-lb-row {
  display: grid;
  grid-template-columns: 1.8rem 1fr 4rem;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem;
  border-radius: var(--radius);
  transition: background .15s;
}
.wc-lb-row:hover { background: var(--bg-muted); }
.wc-lb-rank { font-family: 'Teko', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-muted); text-align: center; }
.wc-lb-score { font-family: 'Teko', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--game-primary); text-align: right; }
.wc-still-in {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .12em .45em;
  border-radius: .25rem;
  background: rgba(26,122,69,.15);
  color: #1A7A45;
  margin-left: .3rem;
}
.wc-sbar { display: flex; height: 5px; background: var(--bg-muted); border-radius: 3px; overflow: hidden; margin-top: .25rem; }
.wc-sbar-g { background: var(--game-primary); }
.wc-sbar-k { background: var(--game-accent); }

/* Combo rows */
.wc-combo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .6rem;
  border-radius: var(--radius);
  transition: background .15s;
}
.wc-combo-row:hover { background: var(--bg-muted); }
.wc-combo-count { font-family: 'Teko', sans-serif; font-weight: 700; font-size: .95rem; color: var(--game-primary); text-align: right; white-space: nowrap; }

/* Impact rows */
.wc-imp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .6rem;
  border-radius: var(--radius);
  transition: background .15s;
  margin-bottom: .15rem;
}
.wc-imp-row:hover { background: var(--bg-muted); }

@media (max-width: 767px) {
  .wc-stats-pills { top: 86px; }
  .game-subnav.subnav-shifted ~ main .wc-stats-pills { top: 76px; }
  .wc-kpi-value { font-size: 2rem; }
}

/* Plan 3: leaderboard reskin — table + mobile cards
   ------------------------------------------------- */
/* Compound selector (.table.leaderboard-table) wins over the later
   single-class .table thead th rule (line ~3942) which has equal
   specificity (0,0,2,0) and would otherwise override font-size /
   letter-spacing / padding on source-order alone. Pattern matches
   CLAUDE.md "CSS specificity for utility classes". */
.table.leaderboard-table thead th {
  font-family: 'Teko', sans-serif;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.leaderboard-rank {
  font-size: 1.3rem;
  min-width: 2rem;
}

.leaderboard-score {
  font-size: 1.4rem;
  letter-spacing: .03em;
}

/* Multi-class: wins specificity over the bare .card.wc-card border rule.
   See CLAUDE.md "CSS specificity for utility classes". */
.card.wc-card.leaderboard-card-current {
  border-left: 3px solid var(--game-accent) !important;
}

/* Plan 3: Your Standing hero block (auth + enrolled only)
   ------------------------------------------------------- */
.your-standing {
  background: linear-gradient(135deg,
    rgba(0, 26, 77, .08) 0%,
    rgba(191, 10, 48, .05) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--game-accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.your-standing .wc-eyebrow {
  display: block;
  margin-bottom: .35rem;
  color: var(--game-accent);
}

.your-standing-grid {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}

.your-standing-rank-numeral {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--text-primary);
}

.your-standing-rank-label {
  font-family: 'Teko', sans-serif;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .15rem;
}

.your-standing-points {
  display: flex;
  flex-direction: column;
}

.your-standing-points-label {
  font-family: 'Teko', sans-serif;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.your-standing-points-numeral {
  font-size: 2rem;
  letter-spacing: .03em;
  color: var(--text-primary);
}

.your-standing-caption {
  font-family: 'Teko', sans-serif;
  font-size: .95rem;
  letter-spacing: .03em;
  color: var(--text-muted);
}

@media (max-width: 575.98px) {
  .your-standing-grid { gap: 1.25rem; }
  .your-standing-rank-numeral { font-size: 2.4rem; }
  .your-standing-points-numeral { font-size: 1.6rem; }
}

/* Plan 3: Trend column (gated, count(distinct captured_date) >= 7)
   --------------------------------------------------------------- */
.leaderboard-trend-up {
  color: #1A7A45;
  font-weight: 600;
}

.leaderboard-trend-down {
  color: var(--game-accent);
  font-weight: 600;
}

/* Plan 3 follow-up: legibility fixes for the dark .card.wc-card surface.
   Bootstrap's .table tbody td paints opaque white over the navy so plain
   data rows are fine — the actually-low-contrast surfaces are:
     1. <thead th> (no td bg, sits directly on navy)
     2. .row-current-user > td (translucent gold tint, navy bleeds through)
     3. .leaderboard-card mobile cards (no inner table to mask the navy)
   Keeping the dark "premium dossier" look; only fixing readability. */
.card.wc-card .leaderboard-table thead th {
  color: rgba(245, 241, 232, .82);
}
.card.wc-card .leaderboard-table .row-current-user > td {
  background: rgba(0, 26, 77, .85) !important;
  color: var(--wc-white);
}
.card.wc-card .leaderboard-table .row-current-user > td a {
  color: var(--wc-white);
}
.card.wc-card .leaderboard-table .row-current-user > td .text-muted {
  color: rgba(245, 241, 232, .55) !important;
}

/* Compound selector .card.wc-card.leaderboard-card (not descendant) —
   in leaderboard.html all three classes sit on the same <div>, so
   `.card.wc-card .leaderboard-card` (with a space) would not match.
   Scoping to the compound prevents bleed if .leaderboard-card is ever
   reused on a non-wc-card surface and aligns with CLAUDE.md's
   "scoped to .card.wc-card .<surface>" rule. */
.card.wc-card.leaderboard-card,
.card.wc-card.leaderboard-card a {
  color: var(--wc-white);
}
.card.wc-card.leaderboard-card .text-muted {
  color: rgba(245, 241, 232, .55) !important;
}

/* Trend colors fail on dark navy: the light-page palette
   (#1A7A45 / #BF0A30) reads dark-on-dark inside .leaderboard-card and
   on the .row-current-user solid-navy override. Lift to the live-state
   tokens (--live-green / --live-red) only on those two surfaces.
   Don't broadcast to .card.wc-card .leaderboard-trend-* — that would
   match desktop non-current rows where Bootstrap's white td bg paints
   over the navy, making the lighter colors low-contrast on white. */
.card.wc-card.leaderboard-card .leaderboard-trend-up,
.card.wc-card .leaderboard-table .row-current-user > td .leaderboard-trend-up {
  color: var(--live-green);
}
.card.wc-card.leaderboard-card .leaderboard-trend-down,
.card.wc-card .leaderboard-table .row-current-user > td .leaderboard-trend-down {
  color: var(--live-red);
}

/* ── 3. Keyframe Animations ─────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,32,.3); }
  50%      { box-shadow: 0 0 0 8px rgba(212,168,32,0); }
}

/* ── 4. Base & Typography ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.1;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

/* ── 5. Layout ──────────────────────────────────────────── */
main { flex: 1; }

/* ── 6. Navbar ──────────────────────────────────────────── */
.navbar {
  background: linear-gradient(90deg, var(--platform-primary-dark) 0%, var(--platform-primary) 100%) !important;
  border-bottom: 3px solid var(--platform-accent);
  padding: .65rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: padding var(--transition), border-width var(--transition);
}

/* Compact navbar after user scrolls — tighter padding, thinner accent border */
.navbar-scrolled {
  padding: .3rem 0;
  border-bottom-width: 2px;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--platform-accent) !important;
  transition: color var(--transition), text-shadow var(--transition);
}

.navbar-brand:hover {
  color: var(--platform-accent-light) !important;
  text-shadow: 0 0 20px rgba(212,168,32,.4);
}

.navbar .nav-link {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72) !important;
  padding: .5rem .85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--platform-accent);
  transition: left var(--transition), right var(--transition);
  border-radius: 1px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  left: .85rem;
  right: .85rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--platform-accent) !important;
  background: rgba(212,168,32,.07);
}

.navbar .dropdown-menu {
  background: var(--platform-primary-dark);
  border: 1px solid rgba(212,168,32,.18);
  border-top: 2px solid var(--platform-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  min-width: 13rem;
  animation: slideDown .18s ease both;
}

.navbar .dropdown-item {
  color: rgba(255,255,255,.72);
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .04em;
  padding: .55rem 1.2rem;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.navbar .dropdown-item:hover {
  background: rgba(212,168,32,.1);
  color: var(--platform-accent);
  padding-left: 1.5rem;
}

.navbar .dropdown-divider { border-color: rgba(255,255,255,.1); }

.navbar-toggler {
  border-color: rgba(212,168,32,.35);
  padding: .5rem .65rem;
  min-height: 44px;
  min-width: 44px;
  transition: border-color var(--transition);
}
.navbar-toggler:hover { border-color: var(--platform-accent); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212,168,32,0.85)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === GAME SUB-NAV === */
/* Contextual strip that appears below the platform bar when inside a game blueprint.
   Per-game palette is set via --subnav-accent and --subnav-accent-rgb on the
   game class; shared pill rules consume those variables. */

.game-subnav {
  background: #0d0d1a; /* fallback if modifier class omitted — prevents white-on-white */
  padding: .5rem 0 .3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky;
  top: 58px;
  z-index: 1020;
  transition: top var(--transition);
}

/* Adjust subnav offset when navbar compacts */
.game-subnav.subnav-shifted {
  top: 48px;
}

.game-subnav .container {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Per-game palettes */
.subnav-worldcup { background: #00122e; --subnav-accent: #BF0A30; --subnav-accent-rgb: 191,10,48; }
.subnav-golf     { background: #001a0d; --subnav-accent: #b8993e; --subnav-accent-rgb: 184,153,62; }
.subnav-cfb      { background: #0a080f; --subnav-accent: #C5050C; --subnav-accent-rgb: 197,5,12; }

/* Game label — links back to game index */
.subnav-game-label {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  white-space: nowrap;
  padding-right: .9rem;
  margin-right: .3rem;
  border-right: 1px solid rgba(255,255,255,.14);
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.subnav-game-label:hover { opacity: .7; color: #fff; }

/* Pill container — scrolls horizontally on mobile */
.subnav-pills {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
  padding: .15rem 0;  /* breathing room so pill borders aren't clipped by overflow-x */
}
.subnav-pills::-webkit-scrollbar { display: none; }

/* Individual pill */
.subnav-pill {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
  text-decoration: none;
  padding: .32rem .72rem;
  border-radius: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.subnav-pill:hover {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.2);
  text-decoration: none;
}
.subnav-pill.active {
  color: #fff;
  background: rgba(var(--subnav-accent-rgb), .18);
  border-color: var(--subnav-accent);
}

/* Spec C Plan 1 — mobile compactions: fit 6 pills on 375px without scroll */
@media (max-width: 575.98px) {
  .subnav-pills { gap: .25rem; }
  .subnav-pill {
    font-size: .72rem;
    padding: .28rem .55rem;
    letter-spacing: .04em;
  }
}

/* ── 7. Flash Messages / Alerts ─────────────────────────── */
.alert {
  border: none;
  border-left: 4px solid currentColor;
  border-radius: var(--radius);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  animation: slideDown .25s ease both;
}

.alert-success  { background: var(--success-bg); color: var(--success); border-left-color: var(--success); }
.alert-danger   { background: var(--danger-bg);  color: var(--danger);  border-left-color: var(--danger); }
.alert-info     { background: var(--info-bg);    color: var(--info);    border-left-color: var(--info); }
.alert-warning  { background: var(--warning-bg); color: var(--warning-text); border-left-color: var(--warning); }

/* ── 8. Cards ───────────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card:active { transform: translateY(-1px); }

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.card.border-success { border-left: 4px solid var(--success) !important; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.card.border-danger  { border-left: 4px solid var(--danger)  !important; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.card.border-warning { border-left: 4px solid var(--warning) !important; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.card.border-primary { border-left: 4px solid var(--platform-primary) !important; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.card-footer {
  background: transparent;
  border-top: 1px solid var(--border);
}

/* Game cards — distinct treatment */
.game-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--platform-accent);
  overflow: hidden;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58,29,114,.03) 0%, transparent 60%);
  pointer-events: none;
}

.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Live game card — clickable, accent glow */
.game-card--live {
  border-top-color: var(--platform-accent);
  cursor: pointer;
  color: inherit;
}
.game-card--live:hover {
  color: inherit;
}

/* Featured game card — WC hero prominence (temporary for WC launch) */
.game-card--featured {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
}

.game-card--featured::before {
  background: none;
}

.game-card--featured .featured-game-inner {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(191,10,48,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(0,40,104,.12) 0%, transparent 50%),
    linear-gradient(145deg, #00122e 0%, #002868 40%, #001a44 100%);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
}

.game-card--featured .featured-game-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.game-card--featured .featured-badge {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #BF0A30;
  background: rgba(191,10,48,.12);
  border: 1px solid rgba(191,10,48,.25);
  padding: .25rem .85rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.game-card--featured .featured-icon {
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.game-card--featured:hover .featured-icon {
  transform: scale(1.12) rotate(-3deg);
}

.game-card--featured .featured-title {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: .6rem;
}

.game-card--featured .featured-desc {
  color: rgba(255,255,255,.55);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.game-card--featured .featured-cta {
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}

.game-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,40,104,.35);
  color: inherit;
}

@media (max-width: 576px) {
  .game-card--featured .featured-game-inner {
    padding: 2rem 1.25rem;
  }
  .game-card--featured .featured-icon {
    font-size: 2.8rem;
  }
}

/* Coming-soon game card — muted, non-interactive */
.game-card--coming-soon {
  opacity: .55;
  filter: grayscale(35%);
  cursor: default;
  pointer-events: none;
}
.game-card--coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.game-card .game-icon {
  font-size: 2.8rem;
  line-height: 1;
  display: block;
  margin-bottom: .75rem;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.game-card:hover .game-icon {
  transform: scale(1.1) rotate(-3deg);
}

.game-card .game-title {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-primary);
  margin-bottom: .4rem;
}

.game-card .game-desc {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Stat blocks */
.stat-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--game-accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}

.stat-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-block .stat-value {
  font-family: 'Teko', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-block .stat-label {
  font-family: 'Teko', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .4rem;
}

/* Auth card */
.auth-card {
  width: 100%;
  max-width: 420px;
  border-top: 4px solid var(--platform-accent);
  animation: fadeInScale .4s ease both;
}

.auth-card .card-body { padding: 2.25rem 2rem; }

/* ── 9. Buttons ─────────────────────────────────────────── */
.btn {
  font-family: 'Teko', sans-serif;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .95rem;
  border-radius: var(--radius);
  padding: .5rem 1.3rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  opacity: 0;
  transition: opacity .15s;
}

.btn:active::after { opacity: 1; }
.btn:active        { transform: scale(.97) translateY(0) !important; }

.btn-primary {
  background: var(--platform-primary);
  border-color: var(--platform-primary);
  color: var(--text-on-dark);
}
.btn-primary:hover {
  background: var(--platform-primary-light);
  border-color: var(--platform-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(58,29,114,.3);
}

.btn-warning {
  background: var(--platform-accent);
  border-color: var(--platform-accent);
  color: var(--platform-primary-dark);
  font-weight: 700;
}
.btn-warning:hover {
  background: var(--platform-accent-light);
  border-color: var(--platform-accent-light);
  color: var(--platform-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-outline-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-outline-primary {
  border-color: var(--platform-primary);
  color: var(--platform-primary);
}
.btn-outline-primary:hover {
  background: var(--platform-primary);
  border-color: var(--platform-primary);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

/* Game-aware button */
.btn-game {
  background: var(--game-primary);
  border-color: var(--game-primary);
  color: var(--text-on-dark);
}
.btn-game:hover {
  background: var(--game-primary-light);
  border-color: var(--game-primary-light);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

/* ── 10. Form Controls ──────────────────────────────────── */
.form-label {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  background: var(--bg-card);
  font-family: 'Newsreader', Georgia, serif;
  padding: .6rem .9rem;
  min-height: 44px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--platform-accent);
  box-shadow: 0 0 0 3px rgba(212,168,32,.18);
  outline: none;
}

.form-control:disabled {
  background: var(--bg-muted);
  color: var(--text-muted);
}

.form-text {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── 11. Tables ─────────────────────────────────────────── */
.table { font-size: .92rem; }

.table thead th {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg-muted);
  padding: .85rem .75rem;
}

.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--bg-muted); }

/* ── 12. Badges ─────────────────────────────────────────── */
.badge {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  letter-spacing: .05em;
  font-size: .8rem;
  padding: .3em .65em;
}

/* ── 13. Hero Sections ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--game-primary-dark) 0%, var(--game-primary) 100%);
  color: var(--text-on-dark);
  padding: 3.5rem 0 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

/* Halftone dot pattern overlay */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212,168,32,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Gold accent line at bottom */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--platform-accent) 30%, var(--platform-accent-light) 50%, var(--platform-accent) 70%, transparent 100%);
  opacity: .6;
}

.page-hero .hero-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(212,168,32,.12) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
  animation: fadeInUp .5s ease both;
}

.page-hero .lead {
  color: rgba(255,255,255,.65);
  font-family: 'Newsreader', Georgia, serif;
  animation: fadeInUp .5s .1s ease both;
}

/* Home hero */
.home-hero {
  background: linear-gradient(145deg, var(--platform-primary-dark) 0%, var(--platform-primary) 50%, var(--platform-primary-light) 100%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(212,168,32,.06) 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, rgba(212,168,32,.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(30,14,66,.4) 0%, transparent 40%);
  background-size: 28px 28px, 100% 100%, 100% 100%;
}

.home-hero .hero-eyebrow {
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--platform-accent);
  margin-bottom: 1rem;
  animation: fadeInUp .4s ease both;
}

.home-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.05;
  color: var(--text-on-dark);
  margin-bottom: 1.25rem;
  animation: fadeInUp .45s .08s ease both;
}

.home-hero h1 .gold-line {
  color: var(--platform-accent);
  display: block;
}

.home-hero .hero-body {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 2rem;
  animation: fadeInUp .5s .16s ease both;
}

.home-hero .hero-actions {
  animation: fadeInUp .5s .24s ease both;
}

.home-hero .hero-welcome {
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  animation: fadeInUp .5s .24s ease both;
}

/* Gold divider rule */
.gold-rule {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--platform-accent), var(--platform-accent-light));
  border: none;
  margin: 1rem auto;
  border-radius: 2px;
}

/* ── 14. Auth Split Layout ──────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
}

.auth-panel-brand {
  display: none;
  width: 380px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--platform-primary-dark) 0%, var(--platform-primary) 60%, var(--platform-primary-light) 100%);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
}

.auth-panel-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 70%, rgba(212,168,32,.08) 0%, transparent 50%),
    radial-gradient(circle, rgba(212,168,32,.04) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
}

.auth-panel-brand .brand-content {
  position: relative;
  z-index: 1;
}

.auth-panel-brand .brand-logo {
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--platform-accent);
  margin-bottom: 3rem;
}

.auth-panel-brand .brand-headline {
  font-family: 'Teko', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.05;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.auth-panel-brand .brand-sub {
  color: rgba(255,255,255,.45);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.auth-panel-brand .brand-games {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.auth-panel-brand .brand-game-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .85rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  font-family: 'Teko', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.auth-panel-brand .brand-game-item span:first-child { font-size: 1.2rem; }

/* Featured game highlight in brand panel */
.auth-panel-brand .brand-game-item--featured {
  background: rgba(191,10,48,.1);
  border-color: rgba(191,10,48,.2);
  color: rgba(255,255,255,.9);
}

/* World Cup callout on login form */
.wc-login-callout {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  font-size: .82rem;
  color: var(--text-secondary);
  background: rgba(0,40,104,.04);
  border: 1px solid rgba(0,40,104,.1);
  border-radius: var(--radius);
  padding: .5rem .75rem;
}

.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-page);
}

.auth-title {
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-primary);
  margin-bottom: .2rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}

/* Auth wrapper (non-split fallback for change-password, etc.) */
.auth-wrapper {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ── 15. Footer ─────────────────────────────────────────── */
footer {
  background: linear-gradient(90deg, var(--platform-primary-dark) 0%, var(--platform-primary) 100%);
  color: rgba(255,255,255,.4);
  border-top: 3px solid var(--platform-accent);
  font-family: 'Teko', sans-serif;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1.25rem 0;
  margin-top: auto;
}

/* ── 16. Section Headings & Utilities ───────────────────── */
.section-heading {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-primary);
  margin-bottom: .3rem;
}

/* Animate in */
.animate-in {
  animation: fadeInUp .5s var(--transition) both;
}
.animate-in-scale {
  animation: fadeInScale .45s var(--transition) both;
}

/* Stagger delays for lists of cards */
.stagger-1  { animation-delay: .05s; }
.stagger-2  { animation-delay: .12s; }
.stagger-3  { animation-delay: .19s; }
.stagger-4  { animation-delay: .26s; }
.stagger-5  { animation-delay: .33s; }
.stagger-6  { animation-delay: .40s; }

/* Text utilities */
.text-gold     { color: var(--platform-accent) !important; }
.text-purple   { color: var(--platform-primary) !important; }

/* Dividers */
hr { border-color: var(--border); opacity: 1; }

/* Admin badge */
.admin-badge {
  background: rgba(212,168,32,.12);
  color: var(--text-secondary);
  border: 1px solid rgba(212,168,32,.35);
  font-family: 'Teko', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  padding: .2em .65em;
  border-radius: .25rem;
  text-transform: uppercase;
}

/* Avatar circle */
.avatar-circle {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--platform-primary), var(--platform-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
}

.avatar-circle span {
  font-size: 2rem;
  color: var(--platform-accent);
  font-family: 'Teko', sans-serif;
  font-weight: 700;
}

/* Modal */
.modal-content {
  border: none;
  border-top: 3px solid var(--platform-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Game-aware status badge */
.status-badge {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  letter-spacing: .04em;
  font-size: .85rem;
  padding: .35em .9em;
  border-radius: var(--radius);
}

/* Muted status badge — coming soon state */
.status-badge--muted {
  background: rgba(120,120,120,.1);
  color: var(--text-secondary);
  border: 1px solid rgba(120,120,120,.2);
}

.status-badge--joined {
  background: rgba(184, 153, 62, 0.15);
  color: var(--platform-accent);
  border: 1px solid rgba(184, 153, 62, 0.35);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}


/* ── 17. Responsive ─────────────────────────────────────── */

/* Auth brand panel shows at md+ */
@media (min-width: 768px) {
  .auth-panel-brand { display: flex; }
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .navbar .nav-link {
    padding: .6rem .85rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .navbar .dropdown-item {
    padding: .6rem 1.2rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .game-subnav { top: 52px; }
  .game-subnav.subnav-shifted { top: 42px; }
}

@media (max-width: 768px) {
  .page-hero h1,
  .home-hero h1  { font-size: 2.1rem; }
  .display-5     { font-size: 1.8rem; }

  .auth-card .card-body { padding: 1.75rem 1.25rem; }
  .stat-block .stat-value { font-size: 2.2rem; }

  .home-hero { padding: 3.5rem 0 3rem; }

  /* Sub-nav: hide label text on mobile — emoji stays visible */
  .subnav-label-text { display: none; }

  /* Sub-nav: trailing fade to hint horizontal scroll */
  .subnav-pills {
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  }
}

@media (max-width: 576px) {
  .home-hero { padding: 2.5rem 0 2rem; }
  .page-hero { padding: 2.5rem 0 2rem; }
  h1 { font-size: 1.9rem; }
}

/* ── 18. Mobile-First Overhaul (Group C2) ──────────────── */
/* Foundation: 16px form inputs (prevent iOS zoom), touch targets,
   font-size floor, and per-area mobile refinements.
   New rules use min-width where practical; existing max-width kept. */

/* --- 18a. Form inputs — 16px prevents iOS Safari zoom on focus --- */
@media (max-width: 767px) {
  .form-control,
  .form-select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  textarea {
    font-size: 16px !important;
  }
}

/* --- 18c. Footer — compact on mobile --- */
@media (max-width: 576px) {
  footer {
    padding: .75rem 0;
    font-size: .8rem;
  }
}

/* --- 18d. Auth pages — full-width card, form input sizing --- */
@media (max-width: 576px) {
  .auth-card {
    max-width: 100%;
  }
  .auth-form-panel {
    padding: 1.5rem 1rem;
  }
  .auth-title {
    font-size: 1.7rem;
  }
}

/* --- 18e. Profile emoji picker — tighter grid on mobile --- */
@media (max-width: 576px) {
  #avatarPicker {
    gap: .35rem !important;
  }
  .avatar-pick-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.15rem !important;
  }
}

/* --- 18f. Platform home — featured card + game cards mobile --- */
@media (max-width: 576px) {
  .game-card--featured .featured-cta {
    display: block;
    width: 100%;
  }
  .game-card--featured .featured-game-inner {
    padding: 2rem 1rem;
  }
}

/* --- 18g. Stat blocks — reduce padding on mobile --- */
@media (max-width: 576px) {
  .stat-block {
    padding: 1rem .75rem;
  }
}

/* --- 18h. WC Pick Form — sticky bottom bar on mobile --- */
.wc-mobile-sticky-bar {
  display: none;
}

@media (max-width: 991px) {
  .wc-mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--game-primary-dark);
    border-top: 2px solid var(--game-accent);
    padding: .65rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,.35);
    animation: slideUpBar .3s ease both;
  }

  .wc-mobile-sticky-bar .pick-count {
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .04em;
    color: var(--text-on-dark);
    white-space: nowrap;
  }

  .wc-mobile-sticky-bar .pick-count .count-num {
    color: var(--game-accent);
    font-size: 1.3rem;
  }

  .wc-mobile-sticky-bar .btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: .5rem 1.5rem;
  }

  /* Add bottom padding to form so sticky bar doesn't cover content */
  #pickForm {
    padding-bottom: 80px;
  }

  /* Hide the desktop sidebar submit button text on mobile — sticky bar replaces it */
  .pick-form-sidebar-desktop {
    display: none;
  }
}

@keyframes slideUpBar {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* --- 18i. WC Player Detail — mobile card alternative --- */
.player-picks-mobile {
  display: none;
}

@media (max-width: 767px) {
  .player-picks-desktop {
    display: none !important;
  }
  .player-picks-mobile {
    display: block;
  }
  .player-pick-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
  }
  .player-pick-card .pick-team {
    font-family: 'Teko', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .02em;
  }
  .player-pick-card .pick-team small {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 400;
    font-size: .75rem;
    color: var(--text-muted);
  }
  .player-pick-card .pick-points {
    text-align: right;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--game-primary);
    white-space: nowrap;
  }
  .player-pick-card .pick-points small {
    display: block;
    font-weight: 400;
    font-size: .7rem;
    color: var(--text-muted);
    letter-spacing: .03em;
  }
}

/* --- 18j. WC Schedule — match cards on very narrow screens --- */
@media (max-width: 400px) {
  .match-result-card {
    flex-direction: column;
    text-align: center;
    gap: .3rem;
    padding: .75rem;
  }
  .match-result-card .match-team {
    text-align: center !important;
  }
  .match-result-card .match-team.home {
    order: 1;
  }
  .match-result-card .match-score {
    order: 2;
  }
  .match-result-card .match-team.away {
    order: 3;
  }
}

/* --- 18k. WC Rules — scroll indicator for wide tables --- */
.table-scroll-wrapper {
  position: relative;
  overflow: hidden;
}
.table-scroll-wrapper .table-responsive {
  position: relative;
}
.table-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.06));
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity .2s;
}
.table-scroll-wrapper.scrolled-end::after {
  opacity: 0;
}

/* --- 18o. WC Rules — mobile tier cards --- */
.tier-mobile-card {
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.tier-mobile-card .tier-teams-list {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- 18p. WC Dashboard — roster widget (matchday sheet) --- */
.roster-card {
  overflow: hidden;
}
.roster-header {
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1a1a2e;
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.roster-tiers {
  display: flex;
  flex-direction: column;
}
.roster-tier-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: .6rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.roster-tier-row:last-child {
  border-bottom: none;
}
.roster-tier-label {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  align-self: center;
  margin-right: .9rem;
}
.roster-tier-teams {
  flex: 1;
  display: flex;
  gap: .6rem;
  align-items: stretch;
}
.roster-team-card {
  flex: 1;
  max-width: calc(50% - .3rem);
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-left: 3px solid var(--tier-color);
  border-radius: .45rem;
  min-width: 0;
}
.roster-team-flag {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}
.roster-team-name {
  flex: 1;
  font-size: .88rem;
  font-weight: 500;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-team-mult {
  flex-shrink: 0;
  font-size: .72rem;
  font-family: 'Teko', sans-serif;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--tier-color);
  background: color-mix(in srgb, var(--tier-color) 12%, transparent);
  padding: .15em .45em;
  border-radius: .3rem;
}
.roster-team-abbr { display: none; }
@media (max-width: 575px) {
  .roster-tier-row { padding: .35rem .6rem; }
  .roster-tier-label { width: 2rem; font-size: .78rem; height: 2rem; }
  .roster-tier-teams { gap: .4rem; }
  .roster-team-card { padding: .35rem .55rem; gap: .35rem; }
  .roster-team-flag { font-size: 1.1rem; }
  .roster-team-name { display: none; }
  .roster-team-abbr { display: block; flex: 1; font-size: .8rem; font-weight: 600; letter-spacing: .04em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-main); }
  .roster-team-mult { font-size: .68rem; }
}

/* --- 18l. WC Groups — use FIFA code on very narrow screens --- */
@media (max-width: 400px) {
  .group-table table {
    font-size: .8rem;
  }
  .group-table .team-name-cell {
    font-size: .82rem;
  }
}

/* --- 18m. Error pages — mobile spacing --- */
@media (max-width: 576px) {
  .error-page-wrap {
    padding-top: 3rem !important;
  }
  .error-page-wrap .section-heading {
    font-size: 3.5rem;
  }
}

/* --- 18n. Cards — disable hover lift on touch devices --- */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .stat-block:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .game-card:hover {
    transform: none;
  }
  .game-card:hover .game-icon {
    transform: none;
  }
}

/* ============================================================
   Plan 5: WC visual polish — orphan utilities + dark-surface legibility
   ----------------------------------------------------------------
   Closes the polish gap Plan 4 (WC Hub migration, PR #8) deferred:
   defines CSS for orphan utility classes emitted by the home-shell
   state partials, and lifts contrast on dark surfaces where Bootstrap
   defaults fail. All selectors scope through parent surfaces so the
   rules don't leak into Spec B's .home-shell platform home.

   Pattern reference: extends the dark-surface-legibility approach
   from the Plan 3 follow-up block at :3242-3286.
   ============================================================ */

/* --- Cluster 1: Hero typography (Task 2) --- */

/* .hero-headline + .hero-subhead are emitted by home_shell.html on every
   state. .page-hero h1 (the brand mark) at :4021 is the visual lead at
   2.8rem/700/uppercase; .hero-headline must sit clearly below to support
   without competing. Subordinate spec (per brainstorm decision 4): no Teko,
   no uppercase, weight 600. */
.page-hero.wc-hero-grad .hero-headline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bone, #f5f1e8);
  letter-spacing: 0.005em;
  margin-top: 0.25rem;
}

.page-hero.wc-hero-grad .hero-subhead {
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Lift Bootstrap's .text-muted on the navy gradient hero. .82 alpha matches
   the existing thead-on-navy treatment at :3250 (Plan 3 follow-up).
   !important needed because Bootstrap's .text-muted ships with !important. */
.page-hero.wc-hero-grad .hero-subhead.text-muted {
  color: rgba(245, 241, 232, .82) !important;
}

/* --- Cluster 2: Champion banner orphans (Task 3) --- */

/* .champion-flag — display:block lifts the flag onto its own line above
   the country name (markup wraps both inside one .display-4 div). Filter
   values match .home-shell .champion-flag at :1457 verbatim — Spec B has
   validated the visual; we want parity. Scoped to the WC-specific
   .card.wc-card.wc-hero-grad container so it doesn't reach Spec B's
   .home-shell platform home, which keeps its own copy at :1457. */
.card.wc-card.wc-hero-grad .champion-flag {
  display: block;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .4))
          drop-shadow(0 0 24px rgba(242, 211, 107, .25));
}
@media (min-width: 768px) {
  .card.wc-card.wc-hero-grad .champion-flag { font-size: 7rem; }
}

/* .champion-name — Teko gold-gradient country name. Mirrors
   .home-shell .champion-name at :1467-1482 with the same tokens
   (--font-teko, --metal-gold) so Spec B and the WC hub render identical
   typography on their respective champion banners. Requires the markup
   wrap in _home_post.html (Task 4). */
.card.wc-card.wc-hero-grad .champion-name {
  display: block;
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.5rem 0 0.6rem;
}
@media (min-width: 768px) {
  .card.wc-card.wc-hero-grad .champion-name { font-size: 4rem; }
}

/* --- Cluster 3: Dark-surface .text-muted lift + table exclusion (Task 5) --- */

/* Lift .text-muted to readable on the navy .card.wc-card surface. The
   broadcast catches every direct-on-navy use across the hub: champion
   summary, hero stat block "of N" copy, deadline-date captions in
   pre/out states, fixture-row text-muted in team_detail. .82 alpha
   matches the existing thead-on-navy treatment at :3250 (Plan 3
   follow-up). Bootstrap's .text-muted ships !important so override
   matches. Plan 3's deeper-specificity rules (:3259, :3273) at .55
   alpha for tertiary leaderboard content win on (0,0,4-5,0+) — leave
   intact. */
.card.wc-card .text-muted {
  color: rgba(245, 241, 232, .82) !important;
}

/* Surgical exclusion: restore Bootstrap default for any .text-muted
   that lives inside a Bootstrap table cell. Bootstrap's white td bg
   masks the navy parent, and the lifted bone color would render
   invisible there. Concrete affected case: _pick_row.html:16 "Grp X"
   caption inside the picks accordion <td>. Mirrors the don't-broadcast
   logic from the Plan 3 follow-up block. */
.card.wc-card .table > tbody > tr > td .text-muted,
.card.wc-card .table > tbody > tr > td.text-muted {
  color: var(--bs-secondary-color) !important;
}

/* --- Cluster 4: Dark-surface .text-success/.text-danger lift (Task 6) --- */

/* Lift Bootstrap's .text-success/.text-danger to live tokens on audited
   navy surfaces. Two surface families:
     1. Home-shell hero stat blocks (Your Standing, Your Finish) — direct
        children of .card-body > .row, no white-td masking.
     2. team_detail.html .fixture-pts — sits in <li class="fixture-row">
        (CSS grid li, not a Bootstrap table cell), so navy bleeds through.
   Explicitly NOT broadcasting on .card.wc-card — _pick_row.html:41 lives
   inside <td colspan="5"> (white-td masking, Bootstrap green readable),
   and _home_live.html:99 lives inside .match-result-card (white card,
   Bootstrap green readable, --live-green at #64DBA0 would actually have
   WORSE contrast on white than Bootstrap's #198754). */
.card.wc-card > .card-body > .row .text-success,
.card.wc-card .fixture-pts.text-success {
  color: var(--live-green) !important;
}
.card.wc-card > .card-body > .row .text-danger,
.card.wc-card .fixture-pts.text-danger {
  color: var(--live-red) !important;
}

/* --- Cluster 5: Roster recap row + Recent results accent (Tasks 7, 8) --- */

/* .row-champion-pick — Premium gold treatment for the user's champion
   pick in the Final Roster recap (post-state). Solid cream bg (NOT
   translucent) — the parent .card.wc-card surface is navy(.8α), so a
   translucent gold tint would composite to dark grey, defeating the
   "premium cream" intent. Solid value renders consistently regardless
   of the hover state on the underlying .table-worldcup tr:hover rule
   (:2473). Pattern parallel to .row-current-user at :2476 (bg tint +
   left-border + first-td-only) but with gold instead of red. */
.table-worldcup .row-champion-pick > td {
  background: #f7e9c2 !important;
  border-left: 3px solid var(--gold-light);
  font-weight: 600;
}
.table-worldcup .row-champion-pick > td:not(:first-child) {
  border-left: none;
}

/* Premium "Champion" rendering for the Best Finish cell on the row that
   has is_champion=True. Mirrors the .champion-name banner above (Teko +
   gold-gradient text fill) so the badge in the column ties back to the
   hero typography. Uses --metal-gold-flat (no near-white top stop) for
   stronger contrast against the cream row bg — --metal-gold's #FFF1B8
   stop blends into the cream and reads washed-out. Markup hook:
   <span class="best-finish-champion"> wrapping the label only when
   r.is_champion (see _home_post.html). */
.table-worldcup .row-champion-pick .best-finish-champion {
  display: inline-block;
  font-family: var(--font-teko);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--metal-gold-flat);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* .match-result-card.is-roster-match — Subtle "your team played" accent
   on the live-state Recent Results card. Applies on top of
   .match-result-card (defined at :2651, white card with var(--bg-card)
   bg). Compound selector (0,0,2,0) wins over the bare card rule
   (0,0,1,0).

   Soft gold-to-white gradient lets the row read as flagged at a glance
   but stays scannable when 3-5 of 7 matches involve the user's picks
   during group-stage worst case (per brainstorm decision 3 — Subtle was
   chosen over Prominent specifically to handle this density). */
.match-result-card.is-roster-match {
  border-left: 3px solid var(--gold-light);
  background: linear-gradient(90deg, rgba(242, 211, 107, .10) 0%, var(--bg-card) 35%);
}

