:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e1ee;
  --brand: #3157d5;
  --brand-dark: #233e9e;
  --orange: #f58b45;
  --surface: rgba(255, 255, 255, 0.95);
  --shadow: 0 18px 50px rgba(34, 52, 91, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(79, 126, 255, 0.18), transparent 31rem),
    radial-gradient(circle at 88% 28%, rgba(245, 139, 69, 0.16), transparent 26rem),
    #f3f6fb;
}

a { color: inherit; }
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.35);
  outline-offset: 3px;
}

.site-switcher {
  position: sticky;
  z-index: 20;
  top: 14px;
  display: flex;
  width: fit-content;
  margin: 14px auto 0;
  padding: 5px;
  gap: 4px;
  border: 1px solid rgba(217, 225, 238, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(34, 52, 91, 0.13);
  backdrop-filter: blur(16px);
}

.site-switcher a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-switcher a[aria-current="page"] {
  color: white;
  background: var(--brand);
}

.guess-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.guess-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: 32px;
  overflow: hidden;
  padding: 38px 40px;
  color: white;
  border-radius: 24px;
  background: linear-gradient(120deg, #172342, #3157d5);
  box-shadow: var(--shadow);
}

.guess-hero::after {
  position: absolute;
  top: -130px;
  right: -80px;
  width: 330px;
  height: 330px;
  content: "";
  border: 64px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-copy, .disclaimer { position: relative; z-index: 1; }
.guess-hero .eyebrow { margin: 0 0 8px; color: rgba(255, 255, 255, 0.78); font-size: 13px; font-weight: 800; line-height: 1.4; }
.guess-hero h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.04em; }
.guess-hero .hero-description { max-width: 650px; margin: 16px 0 0; color: rgba(255, 255, 255, 0.8); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 24px; }
.hero-actions > span { color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.primary-link { padding: 11px 18px; border-radius: 12px; color: #172033; background: white; font-weight: 900; text-decoration: none; }
.primary-link:hover { transform: translateY(-1px); }

.disclaimer { align-self: end; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 18px; background: rgba(255, 255, 255, 0.09); backdrop-filter: blur(12px); }
.disclaimer strong { color: #ffbd8f; }
.disclaimer p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 13px; line-height: 1.65; }

.section-block { margin-top: 42px; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin: 0 4px 16px; }
.section-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.025em; }
.section-head p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }
.section-head > span { flex: none; color: var(--muted); font-size: 13px; font-weight: 800; }

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.match-card, .futures-card {
  border: 1px solid rgba(217, 225, 238, 0.92);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.match-card { display: flex; flex-direction: column; overflow: hidden; }
.match-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 22px 17px; border-bottom: 1px solid var(--line); }
.match-head h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.45; }
.state-tag { display: inline-flex; padding: 4px 8px; color: var(--brand-dark); border-radius: 999px; background: rgba(49, 87, 213, 0.1); font-size: 12px; font-weight: 900; }
.fun-card .state-tag { color: #9a4e1d; background: rgba(245, 139, 69, 0.14); }
.match-head dl { display: flex; flex: none; gap: 13px; margin: 0; }
.match-head dl div { text-align: right; }
.match-head dt { color: var(--muted); font-size: 11px; }
.match-head dd { margin: 3px 0 0; font-size: 12px; font-weight: 850; }

.choice-list { padding: 8px 22px 14px; }
.choice { padding: 14px 0; }
.choice + .choice { border-top: 1px solid var(--line); }
.choice-head { display: flex; gap: 12px; align-items: center; }
.choice-head > div { min-width: 0; }
.choice-head strong, .choice-head small { display: block; }
.choice-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice-head small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.team-logo { position: relative; display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 0; border-radius: 12px; background: transparent; }
.team-logo img { position: relative; z-index: 1; width: 34px; height: 34px; object-fit: contain; }
.team-fallback { position: absolute; display: none; color: var(--brand-dark); font-size: 10px; font-weight: 950; }
.team-logo.is-fallback { border: 1px solid var(--line); background: #f5f7fb; }
.team-logo.is-fallback img { display: none; }
.team-logo.is-fallback .team-fallback { display: block; }

.support-line { margin-top: 11px; }
.support-label { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.support-label strong { color: var(--ink); }
.support-track { height: 7px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #e9edf5; }
.support-track > span { display: block; height: 100%; min-width: 2px; border-radius: inherit; }
.community-fill { background: linear-gradient(90deg, var(--brand), #6f8cf0); }
.market-fill { background: linear-gradient(90deg, var(--orange), #ffb27e); }

.source-details { margin-top: auto; padding: 15px 22px; border-top: 1px solid var(--line); background: rgba(246, 248, 252, 0.78); }
.source-details summary { color: var(--brand-dark); font-size: 13px; font-weight: 900; cursor: pointer; }
.source-details > p { margin: 9px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.source-row { display: grid; grid-template-columns: 62px 1fr 1fr; gap: 8px; align-items: center; padding: 7px 0; font-size: 11px; }
.source-row + .source-row { border-top: 1px dashed var(--line); }
.source-row > span { color: var(--muted); }
.source-row b { color: var(--ink); }
.observation { display: flex; gap: 9px; padding: 15px 22px 18px; border-top: 1px solid var(--line); }
.observation strong { flex: none; color: var(--orange); font-size: 12px; }
.observation p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.futures-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.futures-card { overflow: hidden; }
.futures-card > header { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding: 22px; color: white; background: linear-gradient(120deg, #1c2948, #3157d5); }
.futures-card > header h3 { margin: 0; font-size: 20px; }
.futures-card > header p, .futures-card > header > span { margin: 5px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 11px; }
.futures-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 70px 58px; gap: 10px; align-items: center; min-height: 58px; padding: 7px 18px; }
.futures-row + .futures-row { border-top: 1px solid var(--line); }
.rank { color: #98a2b3; font-size: 12px; font-weight: 900; }
.futures-team { display: flex; min-width: 0; gap: 10px; align-items: center; }
.futures-team .team-logo { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
.futures-team .team-logo img { width: 27px; height: 27px; }
.futures-team strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.reference-value { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.probability { color: var(--brand-dark); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.data-error { padding: 32px; color: #9b2c2c; text-align: center; }
.data-error p { margin: 8px 0 0; color: var(--muted); }

footer { display: flex; justify-content: center; gap: 12px; margin-top: 34px; color: var(--muted); font-size: 12px; }
footer a { color: var(--brand-dark); font-weight: 800; }

@media (min-width: 1024px) {
  .site-switcher {
    position: absolute;
    top: 48px;
    right: max(24px, calc((100vw - 1180px) / 2 + 24px));
    margin: 0;
  }
}

@media (max-width: 900px) {
  .guess-hero { grid-template-columns: 1fr; }
  .disclaimer { max-width: 580px; }
}

@media (max-width: 760px) {
  .site-switcher { top: 8px; margin-top: 8px; }
  .guess-shell { width: min(100% - 20px, 1180px); padding-top: 14px; }
  .guess-hero { gap: 24px; padding: 28px 22px; border-radius: 20px; }
  .guess-hero h1 { font-size: 35px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .section-block { margin-top: 34px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-head h2 { font-size: 24px; }
  .match-grid { grid-template-columns: 1fr; }
  .match-head { padding: 19px 17px 14px; }
  .match-head { flex-direction: column; }
  .match-head dl { justify-content: flex-start; }
  .match-head dl div { text-align: left; }
  .choice-list { padding-right: 17px; padding-left: 17px; }
  .source-details, .observation { padding-right: 17px; padding-left: 17px; }
  .source-row { grid-template-columns: 58px 1fr; }
  .source-row > span:last-child { grid-column: 2; }
  .futures-grid { grid-template-columns: 1fr; }
  .futures-card > header { padding: 19px 16px; }
  .futures-row { grid-template-columns: 22px minmax(0, 1fr) 62px 54px; gap: 7px; padding-right: 12px; padding-left: 12px; }
  footer { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
