/* The original light foundations remain in styles.css / styles-effects.css.
   Night mode keeps its complete, unchanged styles-home-visual.css overlay. */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #394353;
  border-radius: 50%;
  background: #101923;
  color: #f7d56d;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
html[data-theme="light"] .polymarket-profile-block{border-color:#c7d6e3;background:#fff}html[data-theme="light"] .polymarket-profile-block-head small,html[data-theme="light"] .polymarket-companion-block>header small{color:#1684a6}html[data-theme="light"] .polymarket-profile-block-head strong,html[data-theme="light"] .polymarket-companion-block>header strong{color:#1b3e4e}html[data-theme="light"] .polymarket-profile-block-head p,html[data-theme="light"] .polymarket-companion-block>header p{color:#647986}html[data-theme="light"] .polymarket-profile-outcome{border-color:#d3e0e9;background:#f8fbfd}html[data-theme="light"] .polymarket-profile-outcome small,html[data-theme="light"] .polymarket-profile-outcome em{color:#71838d}html[data-theme="light"] .polymarket-profile-outcome strong{color:#1b3e4e}html[data-theme="light"] .polymarket-profile-outcome span{color:#177d99}html[data-theme="light"] .polymarket-profile-metrics{border-color:#d6e2eb;background:#d6e2eb}html[data-theme="light"] .polymarket-profile-metrics article{background:#f8fbfd}html[data-theme="light"] .polymarket-profile-metrics small,html[data-theme="light"] .polymarket-profile-metrics span{color:#71838d}html[data-theme="light"] .polymarket-profile-metrics strong{color:#1b3e4e}html[data-theme="light"] .polymarket-profile-metrics article:last-child strong{color:#177d99}html[data-theme="light"] .polymarket-companion-block{border-top-color:#d8e2eb}html[data-theme="light"] .polymarket-companion-card{border-color:#d3e0e9;background:#f8fbfd}html[data-theme="light"] .polymarket-companion-card header small,html[data-theme="light"] .polymarket-companion-card footer{color:#71838d}html[data-theme="light"] .polymarket-companion-card header strong{color:#1b3e4e}html[data-theme="light"] .polymarket-companion-card header em{border-color:#c4d4df;color:#71838d}html[data-theme="light"] .polymarket-companion-outcomes span{background:#edf4fa;color:#71838d}html[data-theme="light"] .polymarket-companion-outcomes strong{color:#1b3e4e}html[data-theme="light"] .polymarket-companion-empty{border-color:#b8cad8;color:#71838d}html[data-theme="light"] .polymarket-companion-empty strong{color:#304b59}
.theme-toggle:hover { transform: rotate(8deg); border-color: #7b8797; }
.theme-toggle > span { grid-area: 1 / 1; font-size: 21px; line-height: 1; transition: opacity 160ms ease, transform 220ms ease; }
.theme-toggle-sun { opacity: 1; transform: scale(1) rotate(0); }
.theme-toggle-moon { opacity: 0; transform: scale(.55) rotate(-30deg); }
html[data-theme="light"] .theme-toggle { background: #fff; border-color: #ced9e7; color: #17345f; box-shadow: 0 3px 12px #08205218; }
html[data-theme="light"] .theme-toggle-sun { opacity: 0; transform: scale(.55) rotate(30deg); }
html[data-theme="light"] .theme-toggle-moon { opacity: 1; transform: scale(1) rotate(0); }
html[data-theme="light"] .home-topbar { background: #ffffffed; border-bottom: 1px solid #d5e0ed; color: #082052; }
html[data-theme="light"] .home-logo strong { color: #073c87; -webkit-text-fill-color: #073c87; }
html[data-theme="light"] .home-topbar nav button { color: #526580; -webkit-text-fill-color: #526580; }
html[data-theme="light"] .home-topbar nav button.active,
html[data-theme="light"] .home-topbar nav button:hover { color: #073c87; -webkit-text-fill-color: #073c87; background: #e8f1fb; }
html[data-theme="light"] .home-hero {
  background: linear-gradient(90deg, #f7fbfff5 5%, #f7fbffdc 48%, #f7fbff70), url("./assets/home-hero-stadium-v1.jpg") center/cover;
  color: #082052;
}
html[data-theme="light"] .home-hero .home-copy h1 { color: #082052; -webkit-text-fill-color: #082052; text-shadow: none; background: none; }
html[data-theme="light"] .home-hero .home-copy h1 strong { color: #0762a2; -webkit-text-fill-color: #0762a2; text-shadow: none; }
html[data-theme="light"] .home-copy p { color: #435b76; }
html[data-theme="light"] .home-badge { color: #79520b; background: #f5e6bb; }
html[data-theme="light"] .home-actions button { color: #073c87; background: #ffffffd9; border: 1px solid #b9cde1; }
html[data-theme="light"] .home-actions button:first-child { color: #fff; background: #073c87; border-color: #073c87; }
html[data-theme="light"] .home-countdown-card { background: #ffffffd9; border-color: #c6d7e7; box-shadow: 0 24px 65px #153a6815; }
html[data-theme="light"] .home-countdown-card strong,
html[data-theme="light"] .home-countdown-grid b { color: #082052; -webkit-text-fill-color: #082052; text-shadow: none; }
html[data-theme="light"] .home-countdown-kicker,
html[data-theme="light"] .home-countdown-card strong small,
html[data-theme="light"] .home-countdown-grid small { color: #526580; -webkit-text-fill-color: #526580; text-shadow: none; }
html[data-theme="light"] .home-countdown-grid div { background: #edf4fa; border-color: #d3e0ed; }
html[data-theme="light"] .home-wdl { display: grid; gap: 7px; padding: 0 1px 13px; }
html[data-theme="light"] .home-wdl-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; color: #526580; font-size: 12px; }
html[data-theme="light"] .home-wdl-labels span:nth-child(2) { text-align: center; }
html[data-theme="light"] .home-wdl-labels span:last-child { text-align: right; }
html[data-theme="light"] .home-wdl-labels b { color: #082052; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .home-wdl-track { display: flex; height: 5px; overflow: hidden; border-radius: 999px; background: #dce5ef; }
html[data-theme="light"] .home-wdl-track i { width: var(--wdl-width); height: 100%; }
html[data-theme="light"] .home-wdl-home { background: #008248; }
html[data-theme="light"] .home-wdl-draw { background: #3f79d8; }
html[data-theme="light"] .home-wdl-away { background: #c1121f; }
html[data-theme="light"] .home-match-audit { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 0; }
html[data-theme="light"] .home-match-audit span { padding: 4px 8px; border: 1px solid #d1ddea; border-radius: 999px; background: #f2f7fc; color: #526580; font-size: 11px; }

/* R12.2 tracking follows the same light blue-gray surface as the rest of the site. */
html[data-theme="light"] .r122-tracking-panel {
  --track-line: #c7d6e3;
  --track-muted: #647986;
  --track-ink: #173746;
  color: var(--track-ink) !important;
  border-color: #cbd9e6 !important;
  background: radial-gradient(circle at 85% 0, rgba(50, 143, 176, .08), transparent 34%), linear-gradient(145deg, #f8fbfd, #edf4f8) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 16px 32px rgba(37, 69, 101, .08) !important;
}
html[data-theme="light"] .r122-tracking-head > div:first-child > span { color: #1684a6 !important; }
html[data-theme="light"] .r122-tracking-head h3 { color: #173746 !important; }
html[data-theme="light"] .r122-tracking-head p { color: #647986 !important; }
html[data-theme="light"] .r122-tracking-status {
  border-color: #cbd9e6 !important;
  border-left-color: #7d91a3 !important;
  background: #ffffff !important;
}
html[data-theme="light"] .r122-tracking-status small,
html[data-theme="light"] .r122-tracking-status span { color: #6e818c !important; }
html[data-theme="light"] .r122-tracking-status strong { color: #314a58 !important; }
html[data-theme="light"] .r122-tracking-summary {
  border-color: #c6d6e3 !important;
  background: #c6d6e3 !important;
}
html[data-theme="light"] .r122-tracking-summary article { background: #ffffff !important; }
html[data-theme="light"] .r122-tracking-summary small,
html[data-theme="light"] .r122-tracking-summary span { color: #71838d !important; }
html[data-theme="light"] .r122-tracking-summary strong { color: #1b3e4e !important; }
html[data-theme="light"] .r122-tracking-summary article:nth-child(3) strong { color: #177d99 !important; }
html[data-theme="light"] .r122-tracking-direct {
  border-color: #c7d6e3;
  background: #ffffff;
}
html[data-theme="light"] .r122-tracking-direct > header { border-bottom-color: #d8e2eb; }
html[data-theme="light"] .r122-tracking-direct > header small,
html[data-theme="light"] .r122-tracking-chart > header small { color: #1684a6 !important; }
html[data-theme="light"] .r122-tracking-direct > header strong,
html[data-theme="light"] .r122-tracking-chart > header strong { color: #1b3e4e !important; }
html[data-theme="light"] .r122-tracking-direct > header p,
html[data-theme="light"] .r122-tracking-chart > header p { color: #647986 !important; }
html[data-theme="light"] .r122-tracking-direct > div { background: #d6e2eb; }
html[data-theme="light"] .r122-tracking-direct article { background: #ffffff !important; }
html[data-theme="light"] .r122-tracking-direct article span,
html[data-theme="light"] .r122-tracking-direct article small { color: #71838d !important; }
html[data-theme="light"] .r122-tracking-direct article strong { color: #1b3e4e !important; }
html[data-theme="light"] .r122-tracking-direct > footer { color: #647986; }
html[data-theme="light"] .r122-tracking-direct > footer b { color: #177d99; }
html[data-theme="light"] .r122-tracking-chart {
  border-color: #c7d6e3;
  background: #ffffff;
}
html[data-theme="light"] .r122-tracking-chart circle { stroke: #ffffff; }
html[data-theme="light"] .r122-tracking-chart .grid-line { stroke: #d2dfe9; }
html[data-theme="light"] .r122-tracking-chart .grid-line.zero { stroke: #8297a9; }
html[data-theme="light"] .r122-tracking-chart .axis-label,
html[data-theme="light"] .r122-tracking-chart .time-label { fill: #71838d; }
html[data-theme="light"] .r122-tracking-timeline { scrollbar-color: #b8cad8 #eef4f8; }
html[data-theme="light"] .r122-tracking-timeline:before { background: #b8cad8; }
html[data-theme="light"] .r122-tracking-marker { color: #71838d !important; }
html[data-theme="light"] .r122-tracking-marker i {
  border-color: #f8fbfd;
  background: #8295a3;
  box-shadow: 0 0 0 2px #aebdc8;
}
html[data-theme="light"] .r122-tracking-card {
  border-color: #cbd9e5 !important;
  border-top-color: #7e93a4 !important;
  background: linear-gradient(155deg, #ffffff, #eef4f8) !important;
  box-shadow: 0 12px 24px rgba(37, 69, 101, .08) !important;
}
html[data-theme="light"] .r122-tracking-card header span { color: #71838d !important; }
html[data-theme="light"] .r122-tracking-card header strong { color: #213f4d !important; }
html[data-theme="light"] .r122-tracking-card header em {
  border-color: #c8d8e4;
  background: #f1f6fa !important;
  color: #596d78 !important;
}
html[data-theme="light"] .r122-tracking-reason { color: #4e626e !important; }
html[data-theme="light"] .r122-tracking-probabilities span {
  border-color: #d2e0ea;
  background: #f3f7f9 !important;
  color: #71828b !important;
}
html[data-theme="light"] .r122-tracking-probabilities b { color: #263f4c !important; }
html[data-theme="light"] .r122-tracking-probabilities small { color: #758791 !important; }
html[data-theme="light"] .r122-tracking-picks span { color: #71838d !important; }
html[data-theme="light"] .r122-tracking-picks b { color: #304b59 !important; }
html[data-theme="light"] .r122-tracking-card details { border-top-color: #e1e8ed; }
html[data-theme="light"] .r122-tracking-card summary { color: #2c829e !important; }
html[data-theme="light"] .r122-tracking-detail p { color: #667b86 !important; }
html[data-theme="light"] .r122-tracking-loading { color: #71838d !important; }

html[data-theme="light"] .polymarket-volume-panel {
  --poly-line: #c7d6e3;
  --poly-muted: #647986;
  --poly-ink: #173746;
  color: var(--poly-ink) !important;
  border-color: #cbd9e6 !important;
  background: radial-gradient(circle at 85% 0, rgba(50, 143, 176, .08), transparent 34%), linear-gradient(145deg, #f8fbfd, #edf4f8) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 16px 32px rgba(37, 69, 101, .08) !important;
}
html[data-theme="light"] .polymarket-volume-head > div:first-child > span { color: #1684a6 !important; }
html[data-theme="light"] .polymarket-volume-head h3 { color: #173746 !important; }
html[data-theme="light"] .polymarket-volume-head p { color: #647986 !important; }
html[data-theme="light"] .polymarket-volume-status { border-color: #cbd9e6 !important; background: #ffffff !important; }
html[data-theme="light"] .polymarket-volume-status small,
html[data-theme="light"] .polymarket-volume-status span { color: #6e818c !important; }
html[data-theme="light"] .polymarket-volume-status strong { color: #314a58 !important; }
html[data-theme="light"] .polymarket-volume-summary { border-color: #c6d6e3; background: #c6d6e3; }
html[data-theme="light"] .polymarket-volume-summary article { background: #ffffff !important; }
html[data-theme="light"] .polymarket-volume-summary small,
html[data-theme="light"] .polymarket-volume-summary span { color: #71838d !important; }
html[data-theme="light"] .polymarket-volume-summary strong { color: #1b3e4e !important; }
html[data-theme="light"] .polymarket-volume-summary article:nth-child(2) strong { color: #7658bf !important; }
html[data-theme="light"] .polymarket-volume-summary article:nth-child(3) strong { color: #177d99 !important; }
html[data-theme="light"] .polymarket-volume-chart { border-color: #c7d6e3; background: #ffffff; }
html[data-theme="light"] .polymarket-volume-chart > header small { color: #1684a6 !important; }
html[data-theme="light"] .polymarket-volume-chart > header strong { color: #1b3e4e !important; }
html[data-theme="light"] .polymarket-volume-chart > header p { color: #647986 !important; }
html[data-theme="light"] .polymarket-volume-chart circle { stroke: #ffffff; }
html[data-theme="light"] .polymarket-volume-chart .grid-line { stroke: #d2dfe9; }
html[data-theme="light"] .polymarket-volume-chart .grid-line.zero { stroke: #8297a9; }
html[data-theme="light"] .polymarket-volume-chart .axis-label,
html[data-theme="light"] .polymarket-volume-chart .time-label { fill: #71838d; }
html[data-theme="light"] .polymarket-volume-tooltip rect { fill: rgba(255,255,255,.98); stroke: #b8cad8; filter: drop-shadow(0 8px 18px rgba(31,72,94,.16)); }
html[data-theme="light"] .polymarket-volume-tooltip .tooltip-time { fill: #173746; }
html[data-theme="light"] .polymarket-volume-tooltip .tooltip-caption,
html[data-theme="light"] .polymarket-volume-tooltip .tooltip-row-delta,
html[data-theme="light"] .polymarket-volume-tooltip .tooltip-total { fill: #71838d; }
html[data-theme="light"] .polymarket-volume-tooltip .tooltip-row-value,
html[data-theme="light"] .polymarket-volume-tooltip .tooltip-total tspan { fill: #1b3e4e; }
html[data-theme="light"] .polymarket-volume-tooltip .tooltip-divider { stroke: #d8e2eb; }
html[data-theme="light"] .polymarket-volume-table-wrap { border-color: #c7d6e3; background: #ffffff; }
html[data-theme="light"] .polymarket-volume-table th,
html[data-theme="light"] .polymarket-volume-table td { border-bottom-color: #d8e2eb; }
html[data-theme="light"] .polymarket-volume-table th { color: #1684a6; }
html[data-theme="light"] .polymarket-volume-table td { color: #304b59; }
html[data-theme="light"] .polymarket-volume-table td small { color: #71838d; }
html[data-theme="light"] .polymarket-volume-table tbody tr:hover { background: #f2f7fa; }
html[data-theme="light"] .polymarket-volume-table td:nth-child(2) { color: #c6574d; }
html[data-theme="light"] .polymarket-volume-table td:nth-child(3) { color: #7658bf; }
html[data-theme="light"] .polymarket-volume-table td:nth-child(4) { color: #177d99; }
html[data-theme="light"] .polymarket-volume-table td[colspan],
html[data-theme="light"] .polymarket-volume-empty span { color: #71838d; }
html[data-theme="light"] .polymarket-volume-empty strong { color: #304b59; }
html[data-theme="light"] .polymarket-companion-chart{border-color:#d3e0e9;background:linear-gradient(145deg,#ffffff,#f6fafc)}
html[data-theme="light"] .polymarket-companion-chart>header strong{color:#1b3e4e}
html[data-theme="light"] .polymarket-companion-chart>header>span,html[data-theme="light"] .polymarket-companion-chart-axis,html[data-theme="light"] .polymarket-companion-chart-row-head small,html[data-theme="light"] .polymarket-companion-chart-meta{color:#71838d}
html[data-theme="light"] .polymarket-companion-chart-row{border-top-color:#d8e2eb}
html[data-theme="light"] .polymarket-companion-chart-row-head strong,html[data-theme="light"] .polymarket-companion-chart-labels strong{color:#1b3e4e}
html[data-theme="light"] .polymarket-companion-chart-row-head span{border-color:#c4d4df;color:#177d99}
html[data-theme="light"] .polymarket-companion-chart-bar{background:#e8f1f6}
html[data-theme="light"] .polymarket-companion-chart-labels span{color:#71838d}
html[data-theme="light"] .polymarket-companion-chart .polymarket-companion-empty{border-color:#b8cad8}
html[data-theme="light"] .polymarket-companion-chart .polymarket-companion-empty strong{color:#304b59}
@media (max-width: 760px) {
  .home-topbar .theme-toggle { order: 2; margin-left: auto; }
}
@media (max-width: 640px) {
  html[data-theme="light"] .home-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  html[data-theme="light"] .home-hero { min-height: auto; }
  html[data-theme="light"] .home-countdown-card { min-height: auto; padding: 22px; }
}
html[data-theme="light"] .polymarket-profile-outcome-volume{color:#1b3e4e!important}html[data-theme="light"] .polymarket-profile-outcome-change{color:#177d99!important}html[data-theme="light"] .polymarket-profile-benchmarks{border-top-color:#d8e2eb}html[data-theme="light"] .polymarket-profile-benchmarks span{color:#304b59}html[data-theme="light"] .polymarket-profile-benchmarks span small,html[data-theme="light"] .polymarket-profile-benchmarks span em,html[data-theme="light"] .polymarket-profile-benchmarks span.empty{color:#71838d}html[data-theme="light"] .polymarket-profile-benchmarks span b{color:#1b3e4e}
html[data-theme="light"] .polymarket-probability-chart{border-color:#c7d6e3;background:linear-gradient(145deg,#ffffff,#f6fafc)}html[data-theme="light"] .polymarket-probability-chart>header small{color:#1684a6}html[data-theme="light"] .polymarket-probability-chart>header strong{color:#1b3e4e}html[data-theme="light"] .polymarket-probability-chart>header p{color:#647986}html[data-theme="light"] .polymarket-probability-chart .grid-line{stroke:#d2dfe9}html[data-theme="light"] .polymarket-probability-chart .grid-line.zero{stroke:#8297a9}html[data-theme="light"] .polymarket-probability-chart .axis-label,html[data-theme="light"] .polymarket-probability-chart .time-label,html[data-theme="light"] .polymarket-probability-caption,html[data-theme="light"] .polymarket-probability-note{fill:#71838d;color:#71838d}html[data-theme="light"] .polymarket-probability-chart circle.probability{stroke:#ffffff}html[data-theme="light"] .polymarket-probability-caption strong{color:#1b3e4e}html[data-theme="light"] .polymarket-probability-empty{border-color:#b8cad8;color:#71838d}html[data-theme="light"] .polymarket-probability-empty strong{color:#304b59}html[data-theme="light"] .polymarket-pulse-strip{border-color:#d3e0e9;background:#edf4fa;color:#304b59}html[data-theme="light"] .polymarket-pulse-strip small{color:#71838d}
html[data-theme="light"] .polymarket-validity-card,html[data-theme="light"] .polymarket-trade-pulse-card{border-color:#c7d6e3;background:linear-gradient(145deg,#ffffff,#f6fafc)}html[data-theme="light"] .polymarket-validity-card>header strong,html[data-theme="light"] .polymarket-trade-pulse-card>header strong{color:#1b3e4e}html[data-theme="light"] .polymarket-validity-card>header p,html[data-theme="light"] .polymarket-trade-pulse-card>header span,html[data-theme="light"] .polymarket-validity-grid small,html[data-theme="light"] .polymarket-trade-pulse-grid small,html[data-theme="light"] .polymarket-validity-grid span,html[data-theme="light"] .polymarket-trade-pulse-grid span,html[data-theme="light"] .polymarket-validity-note,html[data-theme="light"] .polymarket-trade-pulse-card>p{color:#71838d}html[data-theme="light"] .polymarket-validity-card>header>span,html[data-theme="light"] .polymarket-trade-pulse-card>header>span{border-color:#c4d4df;color:#71838d}html[data-theme="light"] .polymarket-validity-grid,html[data-theme="light"] .polymarket-trade-pulse-grid{border-color:#d3e0e9;background:#d3e0e9}html[data-theme="light"] .polymarket-validity-grid article,html[data-theme="light"] .polymarket-trade-pulse-grid article{background:#edf4fa}html[data-theme="light"] .polymarket-validity-grid strong,html[data-theme="light"] .polymarket-trade-pulse-grid strong{color:#1b3e4e}html[data-theme="light"] .polymarket-validity-books>small{color:#71838d}html[data-theme="light"] .polymarket-validity-books span,html[data-theme="light"] .polymarket-trade-pulse-outcomes span{background:#edf4fa}html[data-theme="light"] .polymarket-validity-books b,html[data-theme="light"] .polymarket-trade-pulse-outcomes b{color:#304b59}html[data-theme="light"] .polymarket-validity-books em,html[data-theme="light"] .polymarket-trade-pulse-outcomes em{color:#1b3e4e}
