:root {
  --race-red: #e63622;
  --race-red-dark: #b92517;
  --race-yellow: #f6c444;
  --race-mint: #bfe7d3;
  --race-blue: #dceaf4;
  --race-ink: #132c3b;
  --race-muted: #6c7b83;
  --race-paper: #fffdf7;
  --race-line: rgba(19, 44, 59, 0.13);
  --race-shadow: 0 18px 50px rgba(43, 54, 56, 0.1);
}

body.editorial-theme {
  background:
    radial-gradient(900px 400px at 92% 0, rgba(246, 196, 68, 0.25), transparent 68%),
    linear-gradient(180deg, #fffdf8, #f7f4eb 68%, #eff6f2);
  color: var(--race-ink);
}

body.editorial-theme::before {
  background-image:
    linear-gradient(rgba(19, 44, 59, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 44, 59, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.7;
}

body.editorial-theme .main-content {
  max-width: 1240px;
  padding-top: clamp(1.2rem, 3vw, 2.4rem);
}

body.editorial-theme .site-header {
  background: rgba(255, 253, 247, 0.94);
  border: 0;
  box-shadow: 0 1px 0 var(--race-line), 0 8px 26px rgba(28, 45, 49, 0.06);
}

body.editorial-theme .site-header::after {
  height: 2px;
  background: linear-gradient(90deg, var(--race-red) 0 20%, var(--race-yellow) 20% 36%, var(--race-mint) 36% 52%, transparent 78%);
}

body.editorial-theme .site-header > .container {
  max-width: 1240px;
}

.brand-mark {
  width: 24px;
  height: 18px;
  display: inline-grid;
  gap: 2px;
  transform: skewX(-18deg);
  margin-right: 0.45rem;
}

.brand-mark i {
  display: block;
  height: 4px;
  border-radius: 1px;
  background: var(--race-red);
}

.brand-mark i:nth-child(2) { width: 75%; }
.brand-mark i:nth-child(3) { width: 48%; }

body.editorial-theme .brand-f1,
body.editorial-theme .brand-text {
  color: var(--race-ink);
  text-shadow: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.015em;
}

body.editorial-theme .brand-f1 {
  color: var(--race-red);
}

.brand-year {
  color: var(--race-muted);
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-inline: auto;
}

.desktop-nav a {
  padding: 0.6rem 0.72rem;
  color: #41535c !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  border-radius: 8px;
}

.desktop-nav a:hover {
  color: var(--race-red) !important;
  background: rgba(230, 54, 34, 0.06);
}

body.editorial-theme .site-menu-btn {
  display: none;
  box-shadow: none;
}

body.editorial-theme .nav-chip {
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.editorial-theme .nav-chip-primary {
  color: #fff !important;
  border-color: var(--race-red);
  background: var(--race-red);
}

body.editorial-theme .nav-chip-primary:hover {
  color: #fff !important;
  background: var(--race-red-dark);
}

.eyebrow,
.page-kicker,
.display-kicker,
.dashboard-label,
.section-count,
.event-date,
.points-chart-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--race-red);
}

.season-tabs { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:.35rem; }
.season-tab { min-width:44px; padding:.3rem .5rem; color:var(--race-ink) !important; border:1px solid var(--race-line); border-radius:4px 8px 4px 4px; background:rgba(255,255,255,.75); text-align:center; text-decoration:none; font-size:.72rem; font-weight:800; }
.season-tab.is-current { color:#fff !important; border-color:var(--race-red); background:var(--race-red); }
.movement-up { color:#18765d; }
.movement-down { color:#bd3423; }
.movement-flat { color:#829098; }
.round-winner-badge,.achievement-count { display:inline-flex; align-items:center; padding:.18rem .38rem; color:#745114; border:1px solid rgba(162,113,24,.18); border-radius:999px; background:#fff0bc; font-size:.61rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }

.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--race-red);
  box-shadow: 0 0 0 4px rgba(230, 54, 34, 0.12);
  margin-right: 0.3rem;
}

.home-command {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.7fr);
  min-height: 420px;
  border: 1px solid var(--race-line);
  border-radius: 6px 28px 6px 6px;
  overflow: hidden;
  background: var(--race-paper);
  box-shadow: var(--race-shadow);
  animation: card-enter 320ms ease both;
}

.home-command-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.2rem);
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 56%, rgba(230, 54, 34, 0.06) 56% 57%, transparent 57%),
    radial-gradient(520px 280px at 95% 10%, rgba(246, 196, 68, 0.38), transparent 72%),
    var(--race-paper);
}

.home-command-main::after {
  content: "01";
  position: absolute;
  right: 2.5rem;
  bottom: -2.5rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(19, 44, 59, 0.035);
  pointer-events: none;
}

.display-kicker {
  margin: 1.7rem 0 0.2rem;
  color: var(--race-muted);
}

.home-command h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  color: var(--race-ink);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(2.65rem, 5.1vw, 4.75rem);
  line-height: 0.93;
  letter-spacing: -0.028em;
  text-transform: uppercase;
}

.home-lead {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 1.2rem 0 0;
  color: #586b74;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.65;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: stretch;
  margin-top: 1.65rem;
}

.action-primary,
.action-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.72rem 1.1rem;
  border-radius: 4px 12px 4px 4px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  text-decoration: none;
  transition: 160ms ease;
}

body.editorial-theme .action-primary {
  color: #fff;
  border: 1px solid var(--race-red);
  background: var(--race-red);
  box-shadow: 0 10px 24px rgba(230, 54, 34, 0.2);
}

body.editorial-theme .action-primary:hover {
  color: #fff;
  background: var(--race-red-dark);
  transform: translateY(-2px);
}

body.editorial-theme .action-secondary {
  color: var(--race-ink);
  border: 1px solid var(--race-line);
  background: rgba(255,255,255,.7);
}

.countdown-chip {
  min-width: 145px;
  padding: 0.48rem 0.8rem;
  border-left: 3px solid var(--race-yellow);
  background: rgba(255,255,255,.75);
}

.countdown-chip span,
.countdown-chip strong { display: block; }
.countdown-label { color: var(--race-muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; }
.countdown-chip strong { color: var(--race-ink); font-family: "Barlow Condensed", sans-serif; font-size: 1.08rem; white-space:nowrap; }

.prediction-confirmed {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  color: #36715d;
  font-size: 0.8rem;
  font-weight: 700;
}

.prediction-confirmed span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-right: .35rem;
  border-radius: 50%;
  background: var(--race-mint);
}

.home-command-side {
  padding: clamp(1.35rem, 3vw, 2rem);
  color: #fff;
  background:
    linear-gradient(150deg, rgba(255,255,255,.04), transparent 40%),
    var(--race-ink);
}

.home-command-side .dashboard-label { color: #9fb1b9; }

.dashboard-rank-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.dashboard-rank-row small,
.dashboard-rank-row strong { display: block; }
.dashboard-rank-row small,
.dashboard-stats small { color: #9fb1b9; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.dashboard-rank-row strong { font-family: "Barlow Condensed", sans-serif; font-size: 3.3rem; line-height: 1; }
.movement { padding: .24rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.movement.up { color: #a9ebcc; background: rgba(67,184,132,.16); }
.movement.down { color: #ffc1b9; background: rgba(230,54,34,.16); }
.movement.steady { color: #c2ced3; background: rgba(255,255,255,.08); }

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: .9rem 0;
}
.dashboard-stats strong { display:block; margin-top:.15rem; font-family:"Barlow Condensed",sans-serif; font-size:1.5rem; }

.mini-standings { margin-top: .7rem; }
.mini-standings a {
  display: grid;
  grid-template-columns: 20px 34px minmax(0,1fr) auto;
  gap: .55rem;
  align-items: center;
  min-height: 52px;
  color: #fff !important;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mini-position { color:#8297a1; font-family:"Barlow Condensed",sans-serif; font-weight:800; }
.mini-avatar { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; overflow:hidden; background:var(--race-red); font-size:.75rem; font-weight:800; }
.mini-avatar img { width:100%; height:100%; object-fit:cover; }
.mini-name { overflow:hidden; text-overflow:ellipsis; font-size:.82rem; font-weight:700; }
.mini-standings strong { font-family:"Barlow Condensed",sans-serif; font-size:1.1rem; }
.text-link { display:inline-flex; gap:.5rem; margin-top:1rem; color:#fff !important; font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; text-decoration:none; }

.editorial-section { margin-top: clamp(2rem,5vw,4rem); }
.section-heading-row { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1.15rem; padding-bottom:.85rem; border-bottom:1px solid var(--race-line); }
.section-heading-row h2,
body.editorial-theme .section-title,
.points-chart-title {
  margin:.15rem 0 0;
  color:var(--race-ink);
  font-family:"Barlow Condensed",sans-serif;
  font-size:clamp(1.7rem,3vw,2.4rem);
  line-height:1;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:-.02em;
}
body.editorial-theme .section-title::after { display:none; }
.section-heading-row p { margin:.45rem 0 0; color:var(--race-muted); font-size:.88rem; }
.section-count { color:var(--race-muted); white-space:nowrap; }

.results-stage { overflow:hidden; border-radius:5px 22px 5px 5px; background:var(--race-ink); box-shadow:var(--race-shadow); }
.results-stage-image { display:block; width:100%; height:min(55vw,560px); min-height:300px; object-fit:contain; }
.results-stage .carousel-control-prev-icon,
.results-stage .carousel-control-next-icon { width:42px; height:42px; border-radius:50%; background-color:rgba(19,44,59,.8); background-size:50%; }

.event-editorial-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.05rem; }
.event-editorial-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--race-line); border-radius:4px 18px 4px 4px; overflow:hidden; background:rgba(255,255,255,.88); box-shadow:0 10px 30px rgba(46,59,61,.07); transition:transform 180ms ease,box-shadow 180ms ease; }
.event-editorial-card:hover { transform:translateY(-4px); box-shadow:0 20px 40px rgba(46,59,61,.13); }
.event-media { position:relative; display:block; aspect-ratio:16/9; overflow:hidden; background:#e8eee9; }
.event-media img { width:100%; height:100%; display:block; object-fit:cover; transition:transform 350ms ease; }
.event-editorial-card:hover .event-media img { transform:scale(1.035); }
.event-media-placeholder { width:100%; height:100%; display:grid; place-items:center; color:rgba(19,44,59,.1); background:linear-gradient(135deg,#f7d570,#c9e6d7); font-family:"Barlow Condensed",sans-serif; font-size:5rem; font-weight:800; }
.round-flag,.event-state { position:absolute; top:.75rem; min-height:27px; display:inline-flex; align-items:center; padding:.2rem .48rem; color:#fff; font-size:.68rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.round-flag { left:.75rem; background:var(--race-red); border-radius:2px 7px 2px 2px; }
.event-state { right:.75rem; border-radius:999px; backdrop-filter:blur(7px); }
.event-state.open { background:#187d66; }
.event-state.scored { background:rgba(19,44,59,.9); }
.event-state.locked { background:rgba(124,92,27,.88); }
.event-card-copy { display:flex; flex:1; flex-direction:column; padding:1rem; }
.event-date { color:var(--race-red); }
.event-card-copy h3 { min-height:2.25em; margin:.35rem 0 .9rem; font-family:"Barlow Condensed",sans-serif; font-size:1.32rem; line-height:1.08; font-weight:800; text-transform:uppercase; }
.event-card-copy h3 a { color:var(--race-ink) !important; text-decoration:none; }
.event-card-foot { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin-top:auto; padding-top:.75rem; border-top:1px solid var(--race-line); color:var(--race-muted); font-size:.72rem; }
.event-card-foot a { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; color:#fff !important; background:var(--race-red); text-decoration:none; }
.empty-editorial { grid-column:1/-1; padding:2rem; border:1px dashed var(--race-line); color:var(--race-muted); background:rgba(255,255,255,.55); }

/* Shared product surfaces */
body.editorial-theme .glass-panel,
body.editorial-theme .card,
body.editorial-theme .table-shell,
body.editorial-theme .participants-hero,
body.editorial-theme .profile-hero,
body.editorial-theme .points-chart-shell,
body.editorial-theme .season-priority-banner {
  color:var(--race-ink);
  border-color:var(--race-line);
  background:rgba(255,255,255,.9);
  box-shadow:var(--race-shadow);
  backdrop-filter:none;
}

body.editorial-theme .card,
body.editorial-theme .glass-panel,
body.editorial-theme .table-shell,
body.editorial-theme .points-chart-shell { border-radius:4px 18px 4px 4px; }

body.editorial-theme .card-accent-top { border-top:3px solid var(--race-red); }
body.editorial-theme .text-muted,
body.editorial-theme .section-subtitle,
body.editorial-theme .score-subtitle,
body.editorial-theme .prediction-empty { color:var(--race-muted) !important; }

body.editorial-theme .btn,
body.editorial-theme .open-event-btn {
  min-height:42px;
  border-radius:4px 10px 4px 4px;
  font-weight:800;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.045em;
}

body.editorial-theme .btn-primary,
body.editorial-theme .open-event-btn {
  color:#fff;
  border-color:var(--race-red);
  background:var(--race-red);
  box-shadow:none;
}
body.editorial-theme .btn-primary:hover,
body.editorial-theme .open-event-btn:hover { color:#fff; border-color:var(--race-red-dark); background:var(--race-red-dark); transform:translateY(-1px); }

body.editorial-theme .form-control,
body.editorial-theme .form-select {
  min-height:46px;
  color:var(--race-ink);
  border:1px solid rgba(19,44,59,.16);
  border-radius:4px 10px 4px 4px;
  background:#fff;
  box-shadow:none;
}
body.editorial-theme .form-control:focus,
body.editorial-theme .form-select:focus { border-color:var(--race-red); box-shadow:0 0 0 3px rgba(230,54,34,.1); }

body.editorial-theme .deadline-chip,
body.editorial-theme .field-points-badge { color:#5c6e77; border-color:var(--race-line); background:#f7f4e9; }
body.editorial-theme .status-open { color:#166650; border-color:rgba(22,102,80,.2); background:#dff1e8; }
body.editorial-theme .status-locked { color:#83590d; border-color:rgba(131,89,13,.2); background:#fff0bc; }
body.editorial-theme .status-scored { color:#395b6b; border-color:var(--race-line); background:#e5eff3; }

body.editorial-theme .profile-hero,
body.editorial-theme .participants-hero {
  border-radius:5px 24px 5px 5px;
  background:
    radial-gradient(550px 220px at 100% 0,rgba(246,196,68,.25),transparent 68%),
    rgba(255,255,255,.93);
}
body.editorial-theme .profile-hero::before { background:none; }
body.editorial-theme .profile-avatar,
body.editorial-theme .participant-avatar,
body.editorial-theme .table-avatar { color:#fff; border:3px solid #fff; background:var(--race-red); box-shadow:0 0 0 1px var(--race-line); }

body.editorial-theme .stat-box,
body.editorial-theme .participant-stat,
body.editorial-theme .avatar-editor,
body.editorial-theme .telegram-connect-card { color:var(--race-ink); border-color:var(--race-line); background:#f8f6ee; }
body.editorial-theme .stat-label,
body.editorial-theme .participant-stat-label,
body.editorial-theme .participant-meta { color:var(--race-muted); }
body.editorial-theme .stat-value,
body.editorial-theme .participant-stat-value { color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; }

body.editorial-theme .participant-card,
body.editorial-theme .prediction-card {
  color:var(--race-ink) !important;
  border-color:var(--race-line);
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 28px rgba(43,54,56,.07);
}
body.editorial-theme .participant-card:hover { color:var(--race-ink) !important; border-color:rgba(230,54,34,.3); box-shadow:0 18px 36px rgba(43,54,56,.12); }
body.editorial-theme .prediction-head,
body.editorial-theme .prediction-item,
body.editorial-theme .result-facts-item,
body.editorial-theme .comparison-row,
body.editorial-theme .comparison-value-card { color:var(--race-ink); border-color:var(--race-line); background:#f8f6ef; }
body.editorial-theme .prediction-round,
body.editorial-theme .prediction-item-label,
body.editorial-theme .result-facts-label,
body.editorial-theme .comparison-value-label,
body.editorial-theme .comparison-note,
body.editorial-theme .season-fact { color:var(--race-muted); }
body.editorial-theme .score-pill { color:#17634e; border-color:rgba(23,99,78,.2); background:#dff1e8; }

.profile-stat-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.65rem; }
.profile-stat-card { min-width:0; padding:.72rem .78rem; border:1px solid var(--race-line); border-radius:4px 10px 4px 4px; background:#f7f4eb; }
.profile-stat-card small,.profile-stat-card strong { display:block; }
.profile-stat-card small { min-height:2.2em; color:var(--race-muted); font-size:.65rem; line-height:1.15; text-transform:uppercase; letter-spacing:.055em; }
.profile-stat-card strong { margin-top:.35rem; color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:1.65rem; line-height:1; }
.achievement-kicker,.community-kicker { color:var(--race-red); font-size:.67rem; font-weight:800; text-transform:uppercase; letter-spacing:.11em; }
.achievement-grid { display:grid; gap:.55rem; }
.achievement-card { display:flex; align-items:center; gap:.7rem; padding:.65rem; border:1px solid var(--race-line); border-radius:4px 10px 4px 4px; background:#f8f5eb; }
.achievement-card strong,.achievement-card small { display:block; }
.achievement-card strong { color:var(--race-ink); font-size:.82rem; }
.achievement-card small { margin-top:.08rem; color:var(--race-muted); font-size:.68rem; }
.achievement-icon { width:36px; height:36px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; color:#81540d; background:#f8d875; }
.mini-trend { width:100%; height:220px; display:block; }
.mini-trend polyline { fill:none; stroke:var(--race-red); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }

.community-shell { overflow:hidden; border:1px solid var(--race-line); border-radius:4px 18px 4px 4px; background:rgba(255,255,255,.92); box-shadow:var(--race-shadow); }
.community-head { padding:1.2rem 1.3rem .8rem; }
.community-title { margin:.18rem 0; color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:2rem; font-weight:800; text-transform:uppercase; }
.community-copy { margin:0; color:var(--race-muted); font-size:.82rem; }
.community-table { min-width:950px; margin:0; }
.community-table thead th { color:var(--race-muted); background:#f3f0e7; }

.event-hero-card { overflow:hidden; }
.event-hero-card .section-title { font-size:clamp(2.5rem,6vw,5rem); }
.event-detail-placeholder { height:clamp(230px,31vw,430px); display:grid; place-items:center; overflow:hidden; color:rgba(19,44,59,.09); background:linear-gradient(125deg,#f5d66c,#d4e8cc 64%,#badfd4); font-family:"Barlow Condensed",sans-serif; font-size:clamp(7rem,18vw,14rem); font-weight:800; line-height:1; }
.event-detail-placeholder span { border-bottom:8px solid var(--race-red); }
.prediction-workbench .card-body { padding:clamp(1rem,3vw,2rem); }
.prediction-workbench h2 { color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:2rem; font-weight:800; text-transform:uppercase; }
.workbench-note { margin:-.35rem 0 1.2rem; padding:.65rem .8rem; color:#42695e; border-left:3px solid #4b9b7c; background:#e8f3ed; font-size:.78rem; }
.prediction-submit-bar { position:sticky; z-index:4; bottom:.65rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:1.25rem; padding:.7rem; border:1px solid var(--race-line); border-radius:4px 12px 4px 4px; background:rgba(255,253,247,.94); box-shadow:0 12px 30px rgba(38,52,56,.14); backdrop-filter:blur(12px); }
.prediction-submit-bar span { color:var(--race-muted); font-size:.72rem; }
.prediction-submit-bar .btn { min-width:180px; }

body.editorial-theme .leaderboard-luxe .table-responsive,
body.editorial-theme .leaderboard-table .sticky-col { background:#fffdf8; }
body.editorial-theme .leaderboard-table .sticky-col { box-shadow:8px 0 14px rgba(32,52,58,.06); }
body.editorial-theme .table { color:var(--race-ink); }
body.editorial-theme .table > :not(caption) > * > * { color:inherit; border-bottom-color:var(--race-line); background:transparent; }
body.editorial-theme .table thead th { color:#63747c; background:#f3f1e9; }
body.editorial-theme .rank-chip { color:var(--race-ink); border-color:var(--race-line); background:#f3f0e7; }
body.editorial-theme .race-points { color:var(--race-ink); border-color:var(--race-line); background:#f5f2e9; }
body.editorial-theme .total-chip { color:#fff; background:var(--race-ink); }

body.editorial-theme .comparison-shell { border-color:var(--race-line); background:#fff; box-shadow:none; }
body.editorial-theme .comparison-status-hit { color:#17634e; }
body.editorial-theme .comparison-status-partial { color:#83590d; }
body.editorial-theme .comparison-status-miss { color:#a92c1d; }
body.editorial-theme .comparison-points-hit { color:#17634e; }
body.editorial-theme .comparison-points-partial { color:#83590d; }
body.editorial-theme .comparison-points-miss { color:#a92c1d; }

body.editorial-theme footer { color:#6f7c82; border-color:var(--race-line); background:rgba(255,255,255,.45); }

.season-switcher { display:flex; flex-wrap:wrap; gap:.4rem; }
.season-switcher-link { padding:.38rem .62rem; border:1px solid var(--race-line); border-radius:8px; color:var(--race-ink) !important; text-decoration:none; font-size:.76rem; font-weight:800; }
.season-switcher-link.is-current { color:#fff !important; border-color:var(--race-red); background:var(--race-red); }

@media (max-width: 992px) {
  body.editorial-theme .site-menu-btn { display:inline-flex; }
  .desktop-nav { display:none; }
  .home-command { grid-template-columns:1fr; }
  .home-command-side { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,1fr); gap:0 1.2rem; }
  .home-command-side .text-link { grid-column:2; }
  .event-editorial-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 576px) {
  body.editorial-theme .brand-text { font-size:.94rem; }
  .brand-year { display:none; }
  .home-command { border-radius:4px 18px 4px 4px; min-height:0; }
  .home-command-main { padding:1.5rem 1.15rem 1.8rem; }
  .home-command h1 { font-size:clamp(2.25rem,11vw,2.75rem); line-height:.95; }
  .home-command-main::after { font-size:7rem; right:.5rem; }
  .display-kicker { margin-top:1.25rem; }
  .hero-actions { align-items:stretch; flex-direction:column; }
  .action-primary,.action-secondary { width:100%; }
  .home-command-side { display:block; padding:1.2rem; }
  .home-command-side .text-link { margin-top:.8rem; }
  .event-editorial-grid { grid-template-columns:1fr; }
  .section-heading-row { align-items:start; }
  .section-count { font-size:.64rem; }
  .results-stage-image { height:300px; }
  .profile-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .event-detail-placeholder { height:210px; }
  .prediction-submit-bar { align-items:stretch; flex-direction:column; bottom:.4rem; }
  .prediction-submit-bar .btn { width:100%; }
  body.editorial-theme .site-header-actions .nav-chip:not(.nav-chip-primary) { display:none; }
}

/* Product extensions: seasons, achievements, player telemetry and public picks. */
.page-kicker,
.achievement-kicker,
.community-kicker {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  margin-bottom:.45rem;
  color:var(--race-red);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.page-kicker::before,.achievement-kicker::before,.community-kicker::before { content:""; width:18px; height:3px; background:currentColor; transform:skewX(-18deg); }
.season-tabs { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.35rem; }
.season-tab { padding:.38rem .62rem; border:1px solid var(--race-line); border-radius:8px; color:var(--race-ink)!important; background:rgba(255,255,255,.72); text-decoration:none; font-size:.74rem; font-weight:900; }
.season-tab.is-current { color:#fff!important; border-color:var(--race-red); background:var(--race-red); }
.movement-up,.movement-down,.movement-flat { display:inline-flex; align-items:center; font-size:.66rem; font-weight:900; }
.movement-up { color:#18755d; }.movement-down { color:#c33c2b; }.movement-flat { color:#8a999f; }
.round-winner-badge,.achievement-count { display:inline-flex; align-items:center; padding:.2rem .42rem; border:1px solid rgba(191,135,15,.2); border-radius:999px; color:#80580c; background:#fff0b9; font-size:.62rem; font-weight:900; white-space:nowrap; }

.profile-stat-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.55rem; }
.profile-stat-card { padding:.75rem; border:1px solid var(--race-line); border-radius:4px 12px 4px 4px; background:#f8f6ee; }
.profile-stat-card small { display:block; min-height:2.2em; color:var(--race-muted); font-size:.62rem; font-weight:900; letter-spacing:.055em; text-transform:uppercase; }
.profile-stat-card strong { display:block; margin-top:.3rem; color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:1.45rem; line-height:1; }
.achievement-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:.55rem; }
.achievement-card { display:flex; align-items:flex-start; gap:.6rem; padding:.72rem; border:1px solid rgba(191,135,15,.2); border-radius:4px 12px 4px 4px; background:linear-gradient(145deg,#fff4c8,#fff); }
.achievement-icon { width:32px; height:32px; display:grid; place-items:center; flex:0 0 auto; border-radius:4px 9px 4px 4px; color:#fff; background:var(--race-red); font-weight:900; }
.achievement-card strong { display:block; color:var(--race-ink); font-size:.78rem; }
.achievement-card small { display:block; margin-top:.15rem; color:var(--race-muted); font-size:.7rem; line-height:1.35; }
.mini-trend { width:100%; min-height:180px; border:1px solid var(--race-line); border-radius:4px 14px 4px 4px; background:linear-gradient(180deg,#fff,#f7f4ea); }
.mini-trend polyline { fill:none; stroke:var(--race-red); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }

.community-shell { overflow:hidden; border:1px solid var(--race-line); border-radius:4px 20px 4px 4px; background:rgba(255,255,255,.92); box-shadow:var(--race-shadow); }
.community-head { padding:1rem 1.15rem; border-bottom:1px solid var(--race-line); background:linear-gradient(135deg,#fff2bc,#edf7f1); }
.community-title { margin:0; color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:1.6rem; font-weight:800; text-transform:uppercase; }
.community-copy { margin:.15rem 0 0; color:var(--race-muted); font-size:.8rem; }
.community-table { min-width:920px; margin:0; }
.community-table th { font-size:.64rem; letter-spacing:.06em; text-transform:uppercase; }
.community-table td { font-size:.78rem; }
.footer-inner { display:flex; align-items:center; justify-content:center; padding-top:1rem; padding-bottom:1rem; text-align:center; }
.footer-signature { display:flex; flex-direction:column; align-items:center; gap:.22rem; }
.footer-brand { color:#4f626b; font-family:"Barlow Condensed",sans-serif; font-size:.82rem; font-weight:800; letter-spacing:.075em; text-transform:uppercase; }
.footer-brand strong { color:var(--race-red); font-weight:800; }
.footer-season { color:#8a989e; font-size:.64rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }

.menu-account { padding:.72rem .76rem; border:1px solid rgba(19,44,59,.12); border-radius:4px 14px 4px 4px; background:rgba(255,255,255,.66); box-shadow:0 8px 22px rgba(44,59,62,.06); }
.menu-account .menu-meta { margin:0 0 .28rem; color:#829097; font-size:.61rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.menu-account-row { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.menu-account .menu-user { min-width:0; margin:0; overflow:hidden; color:var(--race-ink); font-size:.86rem; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.menu-account form { flex:0 0 auto; margin:0; }
.menu-logout-btn { display:inline-flex; min-height:31px; align-items:center; gap:.42rem; padding:.3rem .48rem .3rem .58rem; border:1px solid rgba(19,44,59,.15); border-radius:3px 8px 3px 3px; color:#566a73; background:#fffdf8; font-size:.66rem; font-weight:800; letter-spacing:.035em; text-transform:uppercase; box-shadow:0 3px 10px rgba(40,55,60,.06); transition:color 150ms ease,border-color 150ms ease,background 150ms ease,transform 150ms ease; }
.menu-logout-btn:hover,.menu-logout-btn:focus-visible { color:var(--race-ink); border-color:rgba(19,44,59,.28); background:#f5f1e6; outline:0; transform:translateY(-1px); }
.menu-logout-arrow { color:var(--race-red); font-size:.9rem; line-height:1; transition:transform 150ms ease; }
.menu-logout-btn:hover .menu-logout-arrow,.menu-logout-btn:focus-visible .menu-logout-arrow { transform:translateX(2px); }

@media (max-width: 992px) { .profile-stat-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width: 576px) { .profile-stat-grid { grid-template-columns:repeat(2,1fr); } .season-tabs { justify-content:flex-start; } }

/* Fine tuning: profile controls, subtle race artwork and denser event pages. */
.profile-page-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.55rem; }
.profile-page-controls form { margin:0; }
.profile-logout-btn { min-height:30px; padding:.28rem .1rem; border:0; border-bottom:1px solid transparent; border-radius:0; color:var(--race-muted); background:transparent; font-size:.72rem; font-weight:800; letter-spacing:.035em; text-transform:uppercase; transition:color 160ms ease,border-color 160ms ease; }
.profile-logout-btn:hover,.profile-logout-btn:focus-visible { color:var(--race-ink); border-bottom-color:rgba(19,44,59,.38); outline:0; background:transparent; }
.profile-avatar-form { position:relative; flex:0 0 auto; margin:0; }
.profile-avatar-input { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.profile-avatar-editable { position:relative; padding:0; cursor:pointer; appearance:none; isolation:isolate; transition:transform 180ms ease,box-shadow 180ms ease; }
.profile-avatar-editable:hover,.profile-avatar-editable:focus-visible,.profile-avatar-editable[aria-expanded="true"] { transform:translateY(-2px); box-shadow:0 0 0 4px rgba(230,54,34,.12),0 10px 24px rgba(50,55,52,.16)!important; outline:0; }
.profile-avatar-menu { position:absolute; z-index:12; top:calc(100% + .65rem); left:0; width:220px; padding:.4rem; border:1px solid var(--race-line); border-radius:4px 13px 4px 4px; background:#fffdf8; box-shadow:0 16px 36px rgba(30,49,56,.18); }
.profile-avatar-menu[hidden] { display:none!important; }
.profile-avatar-menu::before { content:""; position:absolute; top:-6px; left:35px; width:11px; height:11px; border-top:1px solid var(--race-line); border-left:1px solid var(--race-line); background:#fffdf8; transform:rotate(45deg); }
.profile-avatar-menu-action { position:relative; z-index:1; display:flex; width:100%; align-items:center; gap:.65rem; padding:.62rem; border:0; border-radius:3px 9px 3px 3px; color:var(--race-ink); background:transparent; text-align:left; cursor:pointer; transition:background 150ms ease; }
.profile-avatar-menu-action:hover { background:#f5f1e6; }
.profile-avatar-menu-action strong,.profile-avatar-menu-action small { display:block; }
.profile-avatar-menu-action strong { font-size:.76rem; }
.profile-avatar-menu-action small { margin-top:.08rem; color:var(--race-muted); font-size:.62rem; }
.profile-avatar-menu-icon { width:30px; height:30px; display:grid; place-items:center; flex:0 0 auto; border-radius:4px 9px 4px 4px; color:#fff; background:var(--race-ink); font-size:1rem; font-weight:900; }
.profile-avatar-hint { margin-top:.3rem; color:var(--race-muted); font-size:.68rem; }
.avatar-upload-error { margin-top:.35rem; color:#b22e20; font-size:.72rem; }
.avatar-upload-error ul { margin:0; padding-left:1rem; }

.home-command-main.has-event-cover::before { content:""; position:absolute; z-index:0; inset:0; background-image:linear-gradient(90deg,rgba(255,253,247,.85) 0%,rgba(255,253,247,.5) 52%,rgba(255,253,247,.72) 100%),var(--next-event-cover); background-position:center; background-size:cover; filter:saturate(.9) contrast(.94); opacity:.82; pointer-events:none; }
.home-command-main.has-event-cover > * { position:relative; z-index:1; }

.event-hero-layout { display:grid; grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr); min-height:290px; }
.event-hero-media { min-width:0; overflow:hidden; background:#e9eee8; }
.event-hero-image { width:100%; height:100%; min-height:290px; max-height:330px; display:block; object-fit:cover; object-position:center; }
.event-hero-copy { display:flex; flex-direction:column; justify-content:center; padding:clamp(1.25rem,3.4vw,2.6rem)!important; }
.event-hero-card .event-hero-copy .section-title { max-width:700px; font-size:clamp(1.85rem,3.4vw,2.9rem); line-height:.98; }
.event-hero-deadline { display:inline-flex; flex-direction:column; align-items:flex-start; gap:.18rem; max-width:max-content; padding:.6rem .72rem; border-left:3px solid var(--race-yellow); background:#f7f3e7; }
.event-hero-deadline small { color:var(--race-muted); font-size:.63rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.event-hero-deadline strong { color:var(--race-ink); font-size:.82rem; }
.event-hero-media .event-detail-placeholder { width:100%; height:100%; min-height:290px; }

.community-table { border-collapse:separate!important; border-spacing:0; table-layout:auto; }
.community-table > :not(caption) > * > * { padding:.72rem .78rem; border-right:1px solid rgba(19,44,59,.12)!important; border-bottom:1px solid rgba(19,44,59,.12)!important; vertical-align:middle; }
.community-table > :not(caption) > * > *:last-child { border-right:0!important; }
.community-table tbody tr:nth-child(even) td { background:rgba(246,243,233,.66)!important; }
.community-table tbody tr:hover td { background:#fff6d9!important; }
.community-table tbody td:first-child { min-width:145px; background:#fffdf8; }
.community-table tbody td:nth-child(7) { min-width:220px; max-width:330px; white-space:normal; line-height:1.42; }
.community-table thead th { border-top:1px solid rgba(19,44,59,.12)!important; white-space:nowrap; }
.community-table thead th:first-child,.community-table tbody td:first-child { border-left:0; }
.community-prediction-correct { color:#13705b!important; font-weight:900; }
.community-score { display:inline-flex; align-items:center; justify-content:center; min-width:34px; min-height:26px; padding:.16rem .45rem; border:1px solid var(--race-line); border-radius:5px; color:var(--race-ink); background:#f1efe7; font-family:"Barlow Condensed",sans-serif; font-size:.9rem; font-weight:800; }

@media (max-width: 768px) {
  .profile-page-controls { width:100%; justify-content:space-between; }
  .event-hero-layout { grid-template-columns:1fr; min-height:0; }
  .event-hero-image { height:190px; min-height:190px; max-height:190px; }
  .event-hero-media .event-detail-placeholder { height:190px; min-height:190px; }
  .event-hero-copy { padding:1.05rem!important; }
  .event-hero-card .event-hero-copy .section-title { font-size:clamp(1.7rem,8vw,2.1rem); line-height:1.02; }
  .prediction-workbench h2 { font-size:1.4rem; line-height:1.1; letter-spacing:.01em; }
  .prediction-workbench .card-body { padding:1rem; }
  .community-title { font-size:1.4rem; }
}

/* Competitive layer: prediction states, stage winners, profile intelligence and duels. */
body.editorial-theme .action-primary.action-saved { border-color:#16755d; background:#16755d; box-shadow:0 10px 24px rgba(22,117,93,.2); }
body.editorial-theme .action-primary.action-saved:hover { border-color:#105f4b; background:#105f4b; }
.action-primary.action-open::before { content:""; width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.18); }

.event-state.saved { background:#16755d; }
.event-state.soon { color:#5e4309; background:rgba(255,220,112,.94); }
.event-card-foot .event-card-action { width:auto; min-width:70px; height:30px; display:inline-flex; padding:0 .58rem; border-radius:3px 8px 3px 3px; font-size:.61rem; font-weight:900; letter-spacing:.035em; text-transform:uppercase; }
.event-card-action.is-open { background:var(--race-red); }
.event-card-action.is-saved { background:#16755d; }
.event-card-action.is-scored { background:var(--race-ink); }
.event-card-action.is-soon { color:#6c500c!important; background:#f5d878; }
.event-card-action.is-locked { color:#6f777b!important; background:#e5e7e4; }

.event-status-badge { display:inline-flex; min-height:27px; align-items:center; padding:.28rem .58rem; border:1px solid transparent; border-radius:3px 9px 3px 3px; font-size:.66rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.event-status-badge.is-open { color:#fff; border-color:#16755d; background:#16755d; box-shadow:0 0 0 4px rgba(22,117,93,.1); }
.event-status-badge.is-saved { color:#12634f; border-color:rgba(18,99,79,.2); background:#dff2e9; }
.event-status-badge.is-locked { color:#7c5b15; border-color:rgba(124,91,21,.2); background:#fff0bf; }
.event-status-badge.is-soon { color:#2f6576; border-color:rgba(47,101,118,.18); background:#e4f1f5; }
.event-status-badge.is-scored { color:#fff; border-color:var(--race-ink); background:var(--race-ink); }
.prediction-state-button { min-width:190px; border:1px solid transparent; border-radius:3px 10px 3px 3px; color:#fff; font-weight:900; letter-spacing:.02em; }
.prediction-state-button.is-open { border-color:var(--race-red); background:var(--race-red); }
.prediction-state-button.is-saved { border-color:#16755d; background:#16755d; }
.prediction-state-button:hover { color:#fff; filter:brightness(.93); transform:translateY(-1px); }
.voting-status-scored { border-left:4px solid var(--race-ink); background:#e8eef0!important; }
.voting-status-closed { border-left:4px solid #d4a531; background:#fff3c9!important; }
.voting-status-soon { border-left:4px solid #4a91a5; background:#e8f4f6!important; }

.activity-feed-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.activity-feed-item { display:flex; min-width:0; align-items:center; gap:.75rem; padding:.8rem .9rem; border:1px solid var(--race-line); border-radius:4px 13px 4px 4px; color:var(--race-ink)!important; background:rgba(255,255,255,.82); text-decoration:none; transition:transform 160ms ease,border-color 160ms ease,box-shadow 160ms ease; }
.activity-feed-item:hover { transform:translateY(-2px); border-color:rgba(230,54,34,.24); box-shadow:0 12px 26px rgba(44,57,57,.08); }
.activity-feed-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:4px 11px 4px 4px; color:#fff; background:var(--race-red); font-size:1rem; font-weight:900; }
.activity-feed-item.is-movement .activity-feed-icon { background:#16755d; }
.activity-feed-item strong,.activity-feed-item small { display:block; overflow:hidden; text-overflow:ellipsis; }
.activity-feed-item strong { font-size:.8rem; white-space:nowrap; }
.activity-feed-item small { margin-top:.15rem; color:var(--race-muted); font-size:.65rem; white-space:nowrap; }
.section-inline-link { color:var(--race-red)!important; font-size:.68rem; font-weight:900; letter-spacing:.05em; text-decoration:none; text-transform:uppercase; }

.profile-analytics-shell { padding:1rem; border:1px solid var(--race-line); border-radius:4px 18px 4px 4px; background:rgba(255,255,255,.9); box-shadow:var(--race-shadow); }
.profile-analytics-head { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:.8rem; padding-bottom:.7rem; border-bottom:1px solid var(--race-line); }
.profile-analytics-head p { margin:0; color:var(--race-muted); font-size:.68rem; }
.profile-analytics-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; }
.accuracy-card,.insight-card { min-width:0; min-height:96px; border:1px solid var(--race-line); border-radius:4px 12px 4px 4px; background:#f8f6ee; }
.accuracy-card { display:flex; align-items:center; gap:.7rem; padding:.72rem; }
.accuracy-ring { --ring-color:var(--race-red); width:62px; height:62px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; background:conic-gradient(var(--ring-color) var(--accuracy),#e4e4dc 0); position:relative; }
.accuracy-ring::after { content:""; position:absolute; inset:7px; border-radius:50%; background:#fffdf8; }
.accuracy-ring strong { position:relative; z-index:1; color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:1rem; }
.accuracy-card:nth-child(2) .accuracy-ring { --ring-color:#1473e6; }
.accuracy-card:nth-child(3) .accuracy-ring { --ring-color:#16755d; }
.accuracy-card small,.accuracy-card span,.insight-card small,.insight-card strong,.insight-card span { display:block; }
.accuracy-card small,.insight-card small { color:var(--race-ink); font-size:.68rem; font-weight:900; letter-spacing:.025em; text-transform:uppercase; }
.accuracy-card span,.insight-card span { margin-top:.18rem; color:var(--race-muted); font-size:.63rem; line-height:1.35; }
.insight-card { display:flex; flex-direction:column; justify-content:center; padding:.75rem .82rem; border-top:3px solid var(--race-yellow); }
.insight-card strong { margin-top:.28rem; overflow:hidden; color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:1.18rem; line-height:1.05; text-overflow:ellipsis; white-space:nowrap; }
.insight-strong { border-top-color:#16755d; }
.insight-weak { border-top-color:var(--race-red); }

.round-winner-spotlight { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; overflow:hidden; border:1px solid rgba(177,121,16,.2); border-radius:4px 18px 4px 4px; background:linear-gradient(115deg,#fff1af,#fffaf0 55%,#edf7f1); box-shadow:0 14px 34px rgba(109,80,20,.1); }
.round-winner-copy span,.round-winner-copy strong { display:block; }
.round-winner-kicker { color:#8a620d; font-size:.64rem; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.round-winner-copy strong { margin-top:.18rem; color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:1.2rem; text-transform:uppercase; }
.round-winner-list { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.55rem; }
.round-winner-person { display:flex; align-items:center; gap:.55rem; padding:.42rem .55rem; border:1px solid rgba(153,106,18,.18); border-radius:4px 12px 4px 4px; color:var(--race-ink)!important; background:rgba(255,255,255,.76); text-decoration:none; }
.round-winner-avatar { width:38px; height:38px; display:grid; place-items:center; overflow:hidden; border:2px solid #fff; border-radius:50%; color:#fff; background:var(--race-red); font-weight:900; box-shadow:0 0 0 1px rgba(153,106,18,.18); }
.round-winner-avatar img { width:100%; height:100%; object-fit:cover; }
.round-winner-person small,.round-winner-person strong { display:block; }
.round-winner-person small { color:#8b781e; font-size:.56rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.round-winner-person strong { font-size:.76rem; }
.round-winner-person > b { min-width:35px; color:var(--race-red); font-family:"Barlow Condensed",sans-serif; font-size:1.45rem; text-align:center; }
.leaderboard-table tr.is-round-winner td { background:rgba(255,225,115,.19)!important; }
.leaderboard-table tr.is-round-winner td:first-child { box-shadow:inset 3px 0 0 #d8a415,8px 0 14px rgba(32,52,58,.06); }
.community-round-winner td { background:rgba(255,236,165,.4)!important; }
.community-winner-label { display:block; margin-top:.22rem; color:#8a620d; font-size:.55rem; font-weight:900; letter-spacing:.055em; text-transform:uppercase; }

.participants-duel-link { display:inline-flex; min-height:35px; align-items:center; padding:.35rem .65rem; border:1px solid var(--race-ink); border-radius:3px 9px 3px 3px; color:#fff!important; background:var(--race-ink); font-size:.67rem; font-weight:900; letter-spacing:.035em; text-decoration:none; text-transform:uppercase; }

.duel-hero { display:flex; align-items:end; justify-content:space-between; gap:1.4rem; padding:clamp(1rem,3vw,1.6rem); border:1px solid var(--race-line); border-radius:4px 22px 4px 4px; background:radial-gradient(500px 180px at 100% 0,rgba(246,196,68,.26),transparent 70%),rgba(255,255,255,.91); box-shadow:var(--race-shadow); }
.duel-selector { display:flex; align-items:end; gap:.55rem; }
.duel-selector label { min-width:170px; }
.duel-selector label > span { display:block; margin-bottom:.25rem; color:var(--race-muted); font-size:.6rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.duel-selector-vs { margin-bottom:.5rem; color:var(--race-red); font-family:"Barlow Condensed",sans-serif; font-size:.9rem; font-weight:900; }
.duel-submit { min-height:38px; padding:.4rem .7rem; border:1px solid var(--race-red); border-radius:3px 9px 3px 3px; color:#fff; background:var(--race-red); font-size:.68rem; font-weight:900; text-transform:uppercase; }
.duel-empty { padding:1rem; border:1px dashed var(--race-line); border-radius:4px 12px 4px 4px; color:var(--race-muted); background:rgba(255,255,255,.65); }
.duel-scoreboard { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:stretch; overflow:hidden; border:1px solid var(--race-line); border-radius:4px 20px 4px 4px; background:#fff; box-shadow:var(--race-shadow); }
.duel-player { display:flex; min-width:0; align-items:center; gap:.75rem; padding:1.1rem; }
.duel-player-b { justify-content:flex-end; text-align:right; }
.duel-avatar { width:64px; height:64px; display:grid; place-items:center; flex:0 0 auto; overflow:hidden; border:3px solid #fff; border-radius:50%; color:#fff; background:var(--race-red); font-size:1.2rem; font-weight:900; box-shadow:0 0 0 2px #e6392f; }
.duel-player-b .duel-avatar { background:#1473e6; box-shadow:0 0 0 2px #1473e6; }
.duel-avatar img { width:100%; height:100%; object-fit:cover; }
.duel-player small,.duel-player h2,.duel-player span { display:block; }
.duel-player small { color:var(--race-muted); font-size:.6rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.duel-player h2 { margin:.14rem 0; overflow:hidden; color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:1.55rem; line-height:1; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.duel-player div > span { color:var(--race-muted); font-size:.65rem; }
.duel-player > strong { margin-left:auto; color:#e6392f; font-family:"Barlow Condensed",sans-serif; font-size:2.35rem; }
.duel-player-b > strong { margin:0 auto 0 0; color:#1473e6; }
.duel-head-to-head { min-width:130px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:.8rem; color:#fff; background:var(--race-ink); text-align:center; }
.duel-head-to-head small { color:#aebdc4; font-size:.57rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.duel-head-to-head div { display:flex; align-items:center; gap:.5rem; margin:.2rem 0; }
.duel-head-to-head strong { font-family:"Barlow Condensed",sans-serif; font-size:1.75rem; }
.duel-head-to-head span { color:#6f8791; }
.duel-head-to-head p { margin:0; color:#aebdc4; font-size:.6rem; }
.duel-panel { min-width:0; overflow:hidden; border:1px solid var(--race-line); border-radius:4px 18px 4px 4px; background:rgba(255,255,255,.9); box-shadow:var(--race-shadow); }
.duel-panel-head { display:flex; align-items:end; justify-content:space-between; gap:1rem; padding:.9rem 1rem .7rem; border-bottom:1px solid var(--race-line); }
.duel-panel-head h2 { margin:.12rem 0 0; color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:1.35rem; font-weight:800; text-transform:uppercase; }
.duel-panel-head > span { color:var(--race-muted); font-size:.65rem; }
.duel-chart-wrap { overflow-x:auto; padding:.5rem; }
.duel-chart { width:100%; min-width:650px; height:auto; display:block; }
.duel-chart-grid { stroke:rgba(19,44,59,.12); stroke-dasharray:4 7; }
.duel-chart-y-label,.duel-chart-x-label { fill:#718189; font-size:11px; text-anchor:middle; }
.duel-chart-y-label { text-anchor:end; }
.duel-chart-line { stroke-width:4; stroke-linejoin:round; stroke-linecap:round; }
.duel-chart-legend { display:flex; justify-content:center; gap:1rem; padding:0 1rem 1rem; }
.duel-chart-legend span { display:inline-flex; align-items:center; gap:.35rem; color:var(--race-ink); font-size:.68rem; font-weight:800; }
.duel-chart-legend span::before { content:""; width:18px; height:3px; border-radius:3px; background:var(--series-color); }
.duel-content-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1rem; }
.duel-accuracy-list,.duel-round-list { padding:.65rem; }
.duel-accuracy-row { display:grid; grid-template-columns:minmax(120px,1fr) 52px minmax(100px,1.15fr) 52px; align-items:center; gap:.5rem; padding:.55rem .45rem; border-bottom:1px solid var(--race-line); }
.duel-accuracy-row:last-child { border-bottom:0; }
.duel-accuracy-row > strong { color:var(--race-ink); font-size:.68rem; }
.duel-accuracy-value span,.duel-accuracy-value small { display:block; }
.duel-accuracy-value span { color:var(--race-ink); font-family:"Barlow Condensed",sans-serif; font-size:1rem; font-weight:900; }
.duel-accuracy-value small { color:var(--race-muted); font-size:.55rem; }
.duel-accuracy-value.is-b { text-align:right; }
.duel-accuracy-bars { display:grid; gap:3px; }
.duel-accuracy-bars::before,.duel-accuracy-bars::after { content:""; grid-column:1; grid-row:1; height:5px; border-radius:4px; background:#e9e9e2; }
.duel-accuracy-bars i,.duel-accuracy-bars b { position:relative; z-index:1; height:5px; display:block; min-width:2px; border-radius:4px; }
.duel-accuracy-bars i { background:#e6392f; }
.duel-accuracy-bars b { justify-self:end; background:#1473e6; }
.duel-round-row { display:grid; grid-template-columns:minmax(0,1fr) 32px 8px 32px; align-items:center; gap:.3rem; padding:.56rem .45rem; border-bottom:1px solid var(--race-line); color:var(--race-ink)!important; text-decoration:none; }
.duel-round-row:last-child { border-bottom:0; }
.duel-round-row > span small,.duel-round-row > span strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.duel-round-row > span small { color:var(--race-red); font-size:.56rem; font-weight:900; }
.duel-round-row > span strong { font-size:.69rem; }
.duel-round-row > b { min-height:27px; display:grid; place-items:center; border:1px solid var(--race-line); border-radius:4px; background:#f4f2ea; font-family:"Barlow Condensed",sans-serif; }
.duel-round-row > b.is-winner { color:#fff; border-color:#16755d; background:#16755d; }
.duel-round-row > i { color:var(--race-muted); font-style:normal; text-align:center; }

@media (max-width: 992px) {
  .duel-hero { align-items:stretch; flex-direction:column; }
  .duel-selector { width:100%; }
  .duel-selector label { min-width:0; flex:1; }
  .duel-scoreboard { grid-template-columns:1fr; }
  .duel-head-to-head { min-height:85px; order:2; }
  .duel-player-b { order:3; }
  .duel-content-grid { grid-template-columns:1fr; }
}

@media (max-width: 768px) {
  .profile-analytics-grid { grid-template-columns:1fr 1fr; }
  .activity-feed-grid { grid-template-columns:1fr; }
  .round-winner-spotlight { align-items:stretch; flex-direction:column; }
  .round-winner-list { justify-content:flex-start; }
}

@media (max-width: 576px) {
  .profile-analytics-grid { grid-template-columns:1fr; }
  .duel-selector { align-items:stretch; flex-direction:column; }
  .duel-selector-vs { margin:0; text-align:center; }
  .duel-submit { width:100%; }
  .duel-player { padding:.85rem; }
  .duel-avatar { width:52px; height:52px; }
  .duel-player h2 { font-size:1.25rem; }
  .duel-player > strong { font-size:1.85rem; }
  .duel-accuracy-row { grid-template-columns:minmax(90px,1fr) 45px 70px 45px; }
}

/* Event challenges: a warm Wild West layer with F1-like precision. */
.western-duel { --western-ink:#2b1c13; --western-brown:#754023; --western-rust:#b84427; position:relative; isolation:isolate; overflow:hidden; padding:clamp(1rem,2.6vw,1.55rem); border:1px solid rgba(78,42,24,.34); border-radius:4px 24px 4px 4px; color:var(--western-ink); background:radial-gradient(520px 180px at 92% 5%,rgba(218,111,49,.23),transparent 72%),linear-gradient(135deg,rgba(255,247,218,.98),rgba(231,207,153,.96)); box-shadow:0 20px 48px rgba(61,37,20,.18); }
.western-duel::after { content:""; position:absolute; z-index:-1; inset:0 0 auto; height:7px; background:repeating-linear-gradient(90deg,var(--western-ink) 0 14px,#f6e8be 14px 28px); opacity:.92; }
.western-duel.has-duel-art::before { content:""; position:absolute; z-index:-2; inset:0; background-image:linear-gradient(90deg,rgba(255,244,207,.92) 0%,rgba(255,244,207,.7) 53%,rgba(255,244,207,.82) 100%),var(--western-duel-art); background-position:center; background-size:cover; filter:sepia(.12) saturate(.82) contrast(.95); }
.western-duel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin:.35rem 0 1rem; }
.western-duel-kicker { display:block; margin-bottom:.25rem; color:var(--western-rust); font-size:.62rem; font-weight:1000; letter-spacing:.13em; text-transform:uppercase; }
.western-duel-heading h2 { margin:0; color:var(--western-ink); font-family:"Barlow Condensed",sans-serif; font-size:clamp(1.75rem,4vw,2.7rem); font-weight:900; letter-spacing:.02em; line-height:.92; text-transform:uppercase; }
.western-duel-heading p { max-width:680px; margin:.5rem 0 0; color:#70503b; font-size:.76rem; font-weight:650; }
.western-duel-limit { width:88px; height:88px; min-height:88px; display:grid; place-items:center; align-content:center; flex:0 0 auto; padding:.45rem; color:#fff7df; background:var(--western-ink); clip-path:polygon(50% 0,60% 23%,85% 15%,77% 40%,100% 50%,77% 60%,85% 85%,60% 77%,50% 100%,40% 77%,15% 85%,23% 60%,0 50%,23% 40%,15% 15%,40% 23%); text-align:center; filter:drop-shadow(0 6px 7px rgba(55,30,18,.2)); }
.western-duel-limit small,.western-duel-limit span { display:block; max-width:58px; font-size:.47rem; font-weight:850; letter-spacing:.05em; line-height:1.05; text-transform:uppercase; }
.western-duel-limit strong { display:block; color:#ffd77c; font-family:"Barlow Condensed",sans-serif; font-size:1.65rem; line-height:.8; }
.western-showdown { display:grid; grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr); align-items:center; overflow:hidden; border:1px solid rgba(70,37,20,.32); border-radius:3px 18px 3px 3px; background:rgba(255,251,235,.78); box-shadow:inset 0 1px rgba(255,255,255,.8); }
.western-fighter { min-width:0; display:grid; grid-template-columns:64px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; column-gap:.7rem; padding:1rem; }
.western-fighter.is-opponent { grid-template-columns:minmax(0,1fr) 64px; text-align:right; }
.western-fighter.is-opponent .western-avatar { grid-column:2; grid-row:1 / span 2; }
.western-fighter > strong { overflow:hidden; font-family:"Barlow Condensed",sans-serif; font-size:1.45rem; font-weight:900; line-height:1; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.western-fighter > small { color:#7b5a43; font-size:.58rem; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.western-avatar { width:64px; height:64px; grid-row:1 / span 2; display:grid; place-items:center; overflow:hidden; border:3px solid #fff6dc; border-radius:50%; color:#fff8e8; background:linear-gradient(145deg,var(--western-rust),#6a2f1f); font-size:1.2rem; font-weight:900; box-shadow:0 0 0 2px var(--western-brown),0 8px 18px rgba(64,34,20,.24); }
.western-avatar img { width:100%; height:100%; display:block; object-fit:cover; }
.western-stake-seal { width:100px; height:100px; min-height:100px; display:grid; place-items:center; align-content:center; color:#fff9e8; background:radial-gradient(circle at 50% 44%,#9c5830,#3a2419 74%); text-align:center; clip-path:polygon(50% 0,60% 23%,85% 15%,77% 40%,100% 50%,77% 60%,85% 85%,60% 77%,50% 100%,40% 77%,15% 85%,23% 60%,0 50%,23% 40%,15% 15%,40% 23%); filter:drop-shadow(0 7px 8px rgba(55,30,18,.23)); }
.western-stake-seal small,.western-stake-seal span { display:block; font-size:.5rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.western-stake-seal strong { display:block; color:#ffd777; font-family:"Barlow Condensed",sans-serif; font-size:2.4rem; line-height:.82; }
.western-duel-state { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.72rem 1rem; border-top:1px solid rgba(70,37,20,.22); background:rgba(79,44,25,.08); }
.western-state-label { display:block; color:var(--western-rust); font-size:.55rem; font-weight:950; letter-spacing:.08em; text-transform:uppercase; }
.western-duel-state strong { display:block; font-size:.77rem; }
.western-duel-actions { display:flex; gap:.5rem; }
.western-duel-actions form { margin:0; }
.western-btn { min-height:38px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; padding:.45rem .8rem; border:1px solid transparent; border-radius:3px 9px 3px 3px; font-size:.66rem; font-weight:950; letter-spacing:.035em; text-decoration:none; text-transform:uppercase; transition:transform .16s ease,filter .16s ease; }
.western-btn:hover,.western-btn:focus { transform:translateY(-1px); filter:brightness(.95); }
.western-btn.is-accept,.western-btn.is-challenge { color:#fff; border-color:#6b2c1d; background:linear-gradient(180deg,#bd4b2c,#81321f); box-shadow:0 8px 16px rgba(95,40,23,.2); }
.western-btn.is-decline { color:#4c2f1f; border-color:rgba(76,47,31,.35); background:#f4e3b8; }
.western-btn.is-quiet { color:#5e4636; border-color:rgba(76,47,31,.25); background:transparent; }
.western-locked-mark { display:inline-flex; align-items:center; min-height:30px; padding:.3rem .6rem; border:1px solid rgba(84,52,32,.28); border-radius:999px; color:#6b4e39; background:rgba(255,248,221,.7); font-size:.56rem; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.western-challenge-form { display:grid; grid-template-columns:minmax(170px,1.1fr) minmax(180px,1fr) 130px auto; align-items:end; gap:.75rem; padding:1rem; border:1px solid rgba(70,37,20,.3); border-radius:3px 18px 3px 3px; background:rgba(255,251,235,.78); }
.western-form-intro { display:flex; align-items:center; gap:.6rem; align-self:center; }
.western-form-intro > span { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; color:#ffd77b; background:var(--western-ink); }
.western-form-intro strong,.western-form-intro small { display:block; }
.western-form-intro strong { font-family:"Barlow Condensed",sans-serif; font-size:1.25rem; line-height:1; text-transform:uppercase; }
.western-form-intro small { margin-top:.2rem; color:#73533e; font-size:.57rem; }
.western-challenge-form label > span { display:block; margin-bottom:.25rem; color:#694a36; font-size:.56rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.western-challenge-form .form-select,.western-challenge-form .form-control { min-height:40px; border-color:rgba(80,47,27,.34); border-radius:3px 9px 3px 3px; color:var(--western-ink); background-color:rgba(255,252,239,.92); font-size:.76rem; font-weight:750; }
.western-stake-field { position:relative; }
.western-stake-field small { position:absolute; right:.5rem; bottom:.72rem; color:#94735d; font-size:.52rem; font-weight:800; pointer-events:none; text-transform:uppercase; }
.western-stake-field input { padding-right:4.1rem; }
.western-duel-empty { min-height:80px; display:flex; align-items:center; justify-content:center; gap:.65rem; padding:1rem; border:1px dashed rgba(84,49,29,.35); border-radius:3px 15px 3px 3px; color:#71503b; background:rgba(255,249,225,.65); text-align:center; }
.western-duel-empty > span { color:var(--western-rust); font-size:1.35rem; }
.western-duel-empty p { margin:0; font-size:.74rem; font-weight:700; }
.western-duel-empty a { color:#8c321f; font-weight:900; }
.western-duel-roster { margin-top:1rem; padding-top:.85rem; border-top:1px solid rgba(76,42,23,.2); }
.western-roster-title { display:flex; align-items:baseline; gap:.45rem; margin-bottom:.55rem; }
.western-roster-title span { color:var(--western-rust); font-size:.54rem; font-weight:950; letter-spacing:.09em; text-transform:uppercase; }
.western-roster-title strong { font-family:"Barlow Condensed",sans-serif; font-size:1.05rem; text-transform:uppercase; }
.western-roster-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
.western-roster-card { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.65rem .75rem; border:1px solid rgba(78,43,24,.22); border-radius:3px 11px 3px 3px; background:rgba(255,251,237,.65); }
.western-roster-players { min-width:0; display:flex; align-items:center; gap:.35rem; }
.western-roster-players strong { max-width:120px; overflow:hidden; font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.western-roster-players strong.is-winner { color:#9c3420; }
.western-roster-players span { color:#a16036; font-family:"Barlow Condensed",sans-serif; font-size:.62rem; font-weight:900; }
.western-roster-result { flex:0 0 auto; text-align:right; }
.western-roster-result span,.western-roster-result strong { display:block; }
.western-roster-result span { color:#80604b; font-size:.55rem; }
.western-roster-result strong { color:#4e301f; font-size:.63rem; }
.western-duel-history { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.7rem; }
.western-duel-history span { padding:.25rem .48rem; border:1px solid rgba(80,45,25,.2); border-radius:999px; color:#80604b; background:rgba(255,250,232,.55); font-size:.54rem; }
.home-duel-alert { display:flex; max-width:620px; align-items:center; gap:.6rem; margin-top:.7rem; padding:.58rem .7rem; border:1px solid rgba(100,52,28,.32); border-radius:3px 12px 3px 3px; color:#342116!important; background:rgba(255,239,190,.88); text-decoration:none; box-shadow:0 8px 18px rgba(65,35,19,.12); }
.home-duel-alert-icon { width:29px; height:29px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; color:#ffd576; background:#342116; }
.home-duel-alert small,.home-duel-alert strong { display:block; }
.home-duel-alert small { color:#9b442a; font-size:.51rem; font-weight:950; letter-spacing:.07em; text-transform:uppercase; }
.home-duel-alert strong { font-size:.65rem; }
.home-duel-alert b { margin-left:auto; font-size:.58rem; text-transform:uppercase; }
.points-chip.is-negative { color:#a23225; border-color:rgba(162,50,37,.28); background:rgba(188,68,48,.1); }

@media (max-width: 900px) {
  .western-challenge-form { grid-template-columns:1fr 1fr; }
  .western-form-intro { grid-column:1 / -1; }
  .western-btn.is-challenge { width:100%; }
}
@media (max-width: 620px) {
  .western-duel { padding:.9rem; border-radius:3px 17px 3px 3px; }
  .western-duel-heading p { font-size:.68rem; }
  .western-duel-limit { width:72px; height:72px; min-height:72px; }
  .western-showdown { grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr); }
  .western-fighter,.western-fighter.is-opponent { grid-template-columns:1fr; grid-template-rows:auto auto auto; justify-items:center; gap:.25rem; padding:.75rem .35rem; text-align:center; }
  .western-fighter.is-opponent .western-avatar,.western-avatar { grid-column:auto; grid-row:auto; }
  .western-avatar { width:50px; height:50px; }
  .western-fighter > strong { max-width:100%; font-size:1.02rem; }
  .western-stake-seal { width:70px; height:70px; min-height:70px; }
  .western-stake-seal strong { font-size:1.8rem; }
  .western-duel-state { align-items:stretch; flex-direction:column; }
  .western-duel-actions { align-items:stretch; flex-direction:column; }
  .western-duel-actions .western-btn,.western-duel-state > form .western-btn { width:100%; }
  .western-challenge-form { grid-template-columns:1fr; }
  .western-form-intro { grid-column:auto; }
  .western-roster-grid { grid-template-columns:1fr; }
  .western-roster-card { align-items:flex-start; flex-direction:column; }
  .western-roster-result { text-align:left; }
  .home-duel-alert { align-items:flex-start; }
  .home-duel-alert b { display:none; }
}
