/* 暴打选举 — 交易所 / Forecast 首页
   气质：一本正经的预测市场终端（等宽数字、涨跌、走势、成交量），交易标的却是"谁先被打成猪头"。
   只扩展 base.css 的令牌与通用类，不改共享外壳。 */

:root {
  --grid-line: rgba(21, 18, 15, 0.10);
  --ref-line: rgba(21, 18, 15, 0.40);
  --axis-line: rgba(21, 18, 15, 0.30);
  --term-amber: #FFB547;
  --me-hi: #FFF6C9;
}

/* hidden 属性必须赢过各种 display 规则（.chip 等） */
.page-market [hidden] { display: none !important; }

/* 窄屏兜底：顶栏三个导航 + 两个按钮在 375px 下放不下；首页本身就是"交易所"，
   猪头榜/暴打王都在本页往下滚就到，所以只在首页的超窄屏收起导航，防止横向滚动 */
@media (max-width: 440px) {
  .page-market .topnav { display: none; }
}

main.market { padding-top: 18px; }

/* ═════════════════════════════════════════════════════
   1. 假新闻滚动条
   ═════════════════════════════════════════════════════ */
.ticker {
  display: flex; align-items: stretch;
  height: 40px; overflow: hidden;
  background: var(--ink); color: var(--paper);
  border-bottom: 2.5px solid var(--line);
}
.ticker-label {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; background: var(--pow); color: var(--ink);
  border-right: 2.5px solid var(--line);
  font-weight: 900; font-size: 13px; white-space: nowrap;
}
.ticker-label .comic { font-size: 18px; line-height: 1; }
.ticker-viewport {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent);
}
.ticker-track { display: flex; width: max-content; white-space: nowrap; }
.ticker-track.is-running { animation: tk-scroll var(--tk-dur, 90s) linear infinite; will-change: transform; }
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track,
.ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-seq { display: flex; align-items: center; flex-shrink: 0; padding-left: 14px; }
.tk-item { font-size: 14px; font-weight: 500; }
.tk-sep { padding: 0 16px; color: var(--pow); font-size: 9px; }
.tk-q {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 6px; background: rgba(255, 252, 245, 0.08);
  font-size: 13px;
}
.tk-q .tag-d, .tk-q .tag-r { height: 18px; min-width: 18px; font-size: 10.5px; border-color: rgba(255, 252, 245, .6); }
.tk-q .num { color: var(--pow); font-weight: 700; }
.tk-arrow { color: rgba(255, 252, 245, .55); font-size: 11px; }
.tk-arrow.up { color: #3BD68F; }
.tk-arrow.down { color: #FF7A6E; }
.ticker-toggle {
  flex-shrink: 0; width: 42px; border: 0; border-left: 2px solid rgba(255, 252, 245, .18);
  background: transparent; color: var(--paper); cursor: pointer; font-size: 12px; font-weight: 900;
}
.ticker-toggle:hover { background: rgba(255, 252, 245, .1); }
/* 减少动态效果：不滚动，逐条淡入 */
.ticker-track.is-static { width: 100%; }
.ticker-track.is-static .ticker-seq { width: 100%; min-width: 0; }
.ticker-track.is-static .tk-item { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tk-fade { animation: tk-fade .6s ease; }
@keyframes tk-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ticker .tk-fade { animation: tk-fade .6s ease !important; } /* 淡入不算位移，保留 */
}

/* ═════════════════════════════════════════════════════
   2. Hero
   ═════════════════════════════════════════════════════ */
.hero { margin: 0 0 24px; padding: 0 0 20px; position: relative; }
.term-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
  padding: 6px 16px; border-bottom: 2.5px solid var(--line);
  border-radius: 11px 11px 0 0;
  background: var(--ink); color: var(--term-amber);
  font: 700 11.5px/1.4 var(--font-mono); letter-spacing: .03em;
}
.term-bar b { color: var(--paper); font-weight: 800; }
.term-cmd { padding: 1px 6px; border-radius: 3px; background: var(--term-amber); color: var(--ink); }

.hero-head { padding: 18px 24px 2px; text-align: center; }
.hero-kicker {
  margin: 0 0 6px; display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 8px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.hero-kicker .num { font-weight: 800; color: var(--down); letter-spacing: .08em; }
.stale-chip { background: var(--pow); }
.hero-title { margin: 0; font: 400 clamp(25px, 4.4vw, 44px)/1.18 var(--font-display); }
.hero-title > span { display: inline-block; }
.hero-clock {
  margin: 12px 0 0; display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 2px 10px;
  padding: 6px 16px; border: 2.5px solid var(--line); border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.clock-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.clock-val { font-size: 22px; font-weight: 800; }
.hero-clock.is-over { background: var(--pow); }
.hero-clock.is-over .clock-label { color: var(--ink); }
/* 截止前最后 10 分钟：倒计时变红闪 */
.hero-clock.is-final .clock-val { color: var(--down); animation: clock-blink 1s step-end infinite; }
@keyframes clock-blink { 50% { opacity: .35; } }

/* 投票截止那一刻的大字报 */
.pc-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 214, 10, .25), rgba(26, 22, 19, .55));
  animation: pc-fade 2.8s ease forwards;
}
.pc-card {
  max-width: 560px; padding: 22px 30px 20px; text-align: center;
  border: 4px solid var(--line); border-radius: 18px; background: var(--pow); box-shadow: 8px 8px 0 var(--line);
  animation: pc-pop 2.8s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
.pc-emoji { font-size: 56px; line-height: 1; }
.pc-title { margin: 6px 0 0; font-size: clamp(34px, 8vw, 68px); line-height: 1; }
.pc-sub { margin: 10px 0 0; font-size: 15px; font-weight: 800; }
@keyframes pc-pop {
  0% { transform: scale(.2) rotate(-14deg); opacity: 0; }
  12% { transform: scale(1.08) rotate(-3deg); opacity: 1; }
  20% { transform: scale(1) rotate(-3deg); }
  86% { transform: scale(1) rotate(-3deg); opacity: 1; }
  100% { transform: scale(.92) rotate(-3deg); opacity: 0; }
}
@keyframes pc-fade { 0% { opacity: 0; } 8%, 86% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pc-overlay, .pc-card, .hero-clock.is-final .clock-val { animation: none; }
}

.duel {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px;
  align-items: center; gap: 20px; padding: 16px 24px 4px;
}
.duel-side { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.mascot { width: 170px; aspect-ratio: 1; }
@media (max-width: 1023px) {
  .duel { grid-template-columns: 150px minmax(0, 1fr) 150px; }
  .mascot { width: 140px; }
}
.mascot svg { width: 100%; height: 100%; overflow: visible; }
.lead-d .duel-d .mascot, .lead-r .duel-r .mascot { animation: m-wobble 2.8s ease-in-out infinite; transform-origin: 50% 90%; }
.duel-side figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.duel-party { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.mascot-status { font-size: 12px; color: var(--ink-3); }
.mascot-status b { color: var(--ink); }

.duel-center { min-width: 0; }
.duel-probs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; }
.prob { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prob-d { align-items: flex-start; text-align: left; }
.prob-r { align-items: flex-end; text-align: right; }
.prob-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.prob-val {
  font-size: clamp(40px, 6.6vw, 68px); font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: proportional-nums; padding: 0 4px; border-radius: 6px;
}
.lead-d .prob-d .prob-val, .lead-r .prob-r .prob-val { background: linear-gradient(transparent 64%, var(--pow) 64%); }
.prob-vs { font-size: 28px; color: var(--ink-3); padding-bottom: 8px; }

/* Beatdown Index：一个数字概括大势（像 Kalshi 的 Power Index） */
.bd-index {
  margin: 10px auto 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px;
  font-size: 13px;
}
.bdi-k { display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--ink-3); }
.bdi-v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.bd-index.lean-d .bdi-v { color: var(--dem); }
.bd-index.lean-r .bdi-v { color: var(--rep); }
.bdi-d { font-size: 12.5px; font-weight: 700; }
.bdi-d.d { color: var(--dem); }
.bdi-d.r { color: var(--rep); }

/* 拉锯战：最接近的几场，一键去打 */
.swing {
  margin: 0 0 24px; padding: 14px 18px 16px;
  background: repeating-linear-gradient(-45deg, var(--pow) 0 14px, #FFE04D 14px 28px);
}
.swing-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 10px; }
.swing-kicker {
  margin: 0; padding: 2px 9px; border-radius: 6px; background: var(--ink); color: var(--pow);
  font: 400 15px/1.3 var(--font-comic); letter-spacing: .08em;
}
.swing-title { margin: 0; font: 400 clamp(19px, 2.6vw, 24px)/1.2 var(--font-display); }
/* auto-fill：只剩一两场时卡片保持原宽，不被拉成一整条 */
.swing-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.swing-item {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px 12px; container-type: inline-size;
  border: 2.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow);
}
/* 特别窄的手机：头像让位给名字和百分比 */
@container (max-width: 256px) {
  .sw-side .thumb { display: none; }
  .sw-side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "go"; }
}
.sw-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sw-race { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 900; }
.sw-margin { flex-shrink: 0; padding: 1px 7px; border: 2px solid var(--line); border-radius: 999px; background: var(--pig-soft); font-size: 11.5px; font-weight: 800; }
.sw-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 6px; }
.sw-vs { align-self: center; font: 400 16px/1 var(--font-comic); color: var(--ink-3); }
.sw-side {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "th who" "go go"; align-items: center; gap: 4px 7px;
  min-width: 0; padding: 6px 7px; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none;
  background: var(--paper); transition: transform .12s ease, box-shadow .12s ease;
}
.sw-side .thumb { grid-area: th; }
.sw-side.party-d { background: var(--dem-soft); }
.sw-side.party-r { background: var(--rep-soft); }
.sw-side:hover, .sw-side:focus-visible { transform: translate(-1px, -1px); box-shadow: var(--shadow-sm); outline: none; }
.sw-side:active { transform: translate(1px, 1px); box-shadow: none; }
.sw-side.is-lead { box-shadow: 0 0 0 3px var(--pig); }
.sw-side.is-lead:hover, .sw-side.is-lead:focus-visible { box-shadow: 0 0 0 3px var(--pig), var(--shadow-sm); }
.sw-who { grid-area: who; display: flex; flex-direction: column; min-width: 0; }
.sw-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; }
.sw-pct { font-size: 18px; line-height: 1.1; }
.sw-side.party-d .sw-pct { color: var(--dem); }
.sw-side.party-r .sw-pct { color: var(--rep); }
.sw-go {
  grid-area: go; justify-self: stretch; padding: 3px 0; border-radius: 6px; text-align: center;
  background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800;
}
.sw-side.party-d .sw-go { background: var(--dem); color: #fff; }
.sw-side.party-r .sw-go { background: var(--rep); color: #fff; }
.sw-bar { display: block; height: 7px; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--rep); }
.sw-bar > i { display: block; height: 100%; width: 50%; background: var(--dem); transition: width .6s ease; }

/* 一拳下去会发生什么 */
.flow { margin: 0 0 24px; padding: 16px 20px; }
.flow-title { margin: 0 0 12px; font: 400 22px/1.2 var(--font-display); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.flow-steps li {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 10px 12px; border: 2.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.flow-steps li:not(:last-child)::after {
  content: '→'; position: absolute; right: -13px; top: 50%; z-index: 1; transform: translateY(-50%);
  font: 800 18px/1 var(--font-mono); color: var(--ink);
}
.fs-i { font-size: 26px; line-height: 1; }
.flow-steps b { font-size: 14px; }
.flow-steps small { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 860px) {
  .flow-steps { grid-template-columns: 1fr; gap: 8px; }
  .flow-steps li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .flow-steps li small { flex-basis: 100%; padding-left: 36px; }
  .flow-steps li:not(:last-child)::after { content: '↓'; right: auto; left: 18px; top: auto; bottom: -15px; transform: none; font-size: 15px; }
}

/* Kalshi 式半圆仪表盘：左蓝（驴党更惨）→ 黄（混战）→ 右红（象党更惨） */
.gauge { position: relative; width: min(100%, 420px); margin: 0 auto; padding-bottom: 26px; }
.gauge-svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-arc-ink { fill: none; stroke: var(--line); stroke-width: 25; stroke-linecap: round; }
.g-arc { fill: none; stroke-width: 18; stroke-linecap: round; opacity: .32; transition: opacity .4s ease; }
.g-d2 { stroke: var(--dem); }
.g-d1 { stroke: #9DB4FF; }
.g-mid { stroke: var(--pow); }
.g-r1 { stroke: #FFA59E; }
.g-r2 { stroke: var(--rep); }
.gauge[data-bin="d2"] .g-d2, .gauge[data-bin="d1"] .g-d1, .gauge[data-bin="mid"] .g-mid,
.gauge[data-bin="r1"] .g-r1, .gauge[data-bin="r2"] .g-r2 { opacity: 1; }
.g-needle { transform-box: view-box; transform-origin: 160px 164px; transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.g-needle path { fill: var(--ink); stroke: var(--card); stroke-width: 3; stroke-linejoin: round; }
.gauge-read {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.gauge-kicker { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.gauge-val { font-size: clamp(44px, 7vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: proportional-nums; }
.gauge-lbl { margin-top: 2px; font-size: 15px; font-weight: 800; }
.gauge[data-lead="D"] .gauge-val, .gauge[data-lead="D"] .gauge-lbl { color: var(--dem); }
.gauge[data-lead="R"] .gauge-val, .gauge[data-lead="R"] .gauge-lbl { color: var(--rep); }
.gauge-end { position: absolute; bottom: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.gauge-end b { font-size: 17px; padding: 0 2px; border-radius: 4px; }
.gauge-end-d { left: 0; color: var(--dem); }
.gauge-end-r { right: 0; color: var(--rep); }

/* 两党被打份额对比条：左蓝右红，中间一只拖鞋当分界线 */
.sharebar { position: relative; height: 46px; margin: 20px 0 8px; }
.sb-track {
  display: flex; gap: 2px; height: 100%; overflow: hidden;
  background: var(--card); border: 2.5px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.sb-seg {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; overflow: hidden;
  transition: flex-grow .7s cubic-bezier(.3, 1.25, .5, 1);
}
/* 内边距放在文字上而不是色块上：色块宽度严格按份额，拖鞋分界线才对得准 */
.sb-d { background: var(--dem); justify-content: flex-start; }
.sb-r { background: var(--rep); justify-content: flex-end; }
.sb-in { padding: 0 18px; color: #fff; font-weight: 900; font-size: 14px; letter-spacing: .12em; white-space: nowrap; }
.sb-seg.is-narrow .sb-in { visibility: hidden; }
.sharebar.is-empty .sb-d { background: var(--dem-soft); }
.sharebar.is-empty .sb-r { background: var(--rep-soft); }
.sharebar.is-empty .sb-in { color: var(--ink-2); }
.sb-slipper {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 34px; height: 68px; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-22deg);
  transition: left .7s cubic-bezier(.3, 1.25, .5, 1);
  filter: drop-shadow(2px 2px 0 var(--line));
}
.sb-slipper svg { width: 100%; height: 100%; }
.sb-slipper.wiggle { animation: sl-wiggle .6s ease; }
.sb-slipper.whack-d { animation: sl-whack-d .42s cubic-bezier(.3, 1.6, .5, 1); }
.sb-slipper.whack-r { animation: sl-whack-r .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sl-wiggle {
  0%, 100% { transform: translate(-50%, -50%) rotate(-22deg); }
  30% { transform: translate(-50%, -58%) rotate(-42deg); }
  65% { transform: translate(-50%, -47%) rotate(-6deg); }
}
@keyframes sl-whack-d {
  0%, 100% { transform: translate(-50%, -50%) rotate(-22deg); }
  45% { transform: translate(-95%, -56%) rotate(-70deg); }
}
@keyframes sl-whack-r {
  0%, 100% { transform: translate(-50%, -50%) rotate(-22deg); }
  45% { transform: translate(-5%, -56%) rotate(26deg); }
}
.pow-pop {
  position: absolute; top: -22px; z-index: 3; pointer-events: none;
  padding: 0 8px; border: 2.5px solid var(--line); border-radius: 6px;
  background: var(--pow); color: var(--ink); box-shadow: var(--shadow-sm);
  font-size: 20px; line-height: 1.25; white-space: nowrap;
  transform: translate(-50%, 0) rotate(var(--tilt, 0deg));
  animation: pow-pop .9s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
.pow-pop.pow-d { background: var(--dem-soft); }
.pow-pop.pow-r { background: var(--rep-soft); }
@keyframes pow-pop {
  0% { opacity: 0; transform: translate(-50%, 10px) rotate(var(--tilt, 0deg)) scale(.4); }
  25% { opacity: 1; transform: translate(-50%, -6px) rotate(var(--tilt, 0deg)) scale(1.12); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -24px) rotate(var(--tilt, 0deg)) scale(1); }
}

.delta { font: 700 12px/1.2 var(--font-mono); white-space: nowrap; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--ink-3); }

.mode-row { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 2.5px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm);
}
.seg button {
  min-height: 36px; padding: 0 18px; border: 0; background: transparent;
  font-weight: 800; font-size: 13px; cursor: pointer;
}
.seg button + button { border-left: 2.5px solid var(--line); }
.seg button:hover { background: var(--paper-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mode-note { margin: 0; font-size: 12px; color: var(--ink-3); text-align: center; }

.verdict {
  margin: 16px 24px 0; padding: 12px 16px;
  border: 2.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--paper);
  font-size: 15px; font-weight: 700; text-align: center; text-wrap: balance;
}
.verdict .num { font-size: 17px; }
.v-party { padding: 0 2px; }
.v-d { box-shadow: inset 0 -0.42em 0 var(--dem-soft); }
.v-r { box-shadow: inset 0 -0.42em 0 var(--rep-soft); }
.verdict-tail { margin-left: 4px; font-weight: 500; color: var(--ink-2); }

.hero-stats {
  margin: 14px 24px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--line); gap: 2.5px;
}
.hero-stats > div { padding: 8px 12px; background: var(--card); min-width: 0; }
.hero-stats dt { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.hero-stats dd { margin: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats dd .num { font-size: 20px; font-weight: 800; color: var(--ink); }

/* 吉祥物小动画 */
.m-star { transform-box: fill-box; transform-origin: center; animation: m-twinkle 1.1s ease-in-out infinite alternate; }
.m-orbit { transform-box: fill-box; transform-origin: center; animation: m-bob 2.4s ease-in-out infinite; }
.m-sweat { animation: m-drip 1.8s ease-in infinite; }
@keyframes m-twinkle { from { transform: scale(.72) rotate(-14deg); } to { transform: scale(1.12) rotate(14deg); } }
@keyframes m-bob { 50% { transform: translateY(-3px); } }
@keyframes m-drip { 0% { transform: translateY(-2px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }
@keyframes m-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

/* ═════════════════════════════════════════════════════
   布局：桌面两栏 / 手机单栏
   ═════════════════════════════════════════════════════ */
.mk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.mk-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.mk-sec { min-width: 0; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.card.mk-sec { padding: 18px 20px; }

@media (max-width: 1023px) {
  .mk-grid { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .mk-col { display: contents; }
  #trend { order: 1; }
  #my-card { order: 2; }
  #markets { order: 3; }
  #pig-board { order: 4; }
  #feed { order: 5; }
  #leaders { order: 6; }
}

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font: 400 24px/1.2 var(--font-display); }
.sec-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.sec-head-bare { margin-bottom: 14px; }
.loading { margin: 0; padding: 18px; text-align: center; color: var(--ink-3); }

/* ═════════════════════════════════════════════════════
   3. 走势图（charts.js）
   ═════════════════════════════════════════════════════ */
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lk { display: inline-block; width: 14px; height: 0; border-top: 3px solid var(--ink-3); border-radius: 2px; flex-shrink: 0; }
.lk-d { border-color: var(--dem); }
.lk-r { border-color: var(--rep); }

.sc-plot { position: relative; border-radius: 8px; touch-action: pan-y; outline-offset: 4px; cursor: crosshair; }
.sc-svg { display: block; overflow: visible; }
.sc-grid { stroke: var(--grid-line); stroke-width: 1; shape-rendering: crispEdges; }
.sc-ref { stroke: var(--ref-line); stroke-width: 1; shape-rendering: crispEdges; }
.sc-axis, .sc-tick { stroke: var(--axis-line); stroke-width: 1; shape-rendering: crispEdges; }
.sc-ylab, .sc-xlab { fill: var(--ink-3); font: 500 11px var(--font-mono); }
.sc-ref-lab {
  fill: var(--ink-2); font: 700 11px var(--font-body);
  /* 描一圈卡片底色，压在折线上也读得清 */
  paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round;
}
.sc-ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sc-ln-d { stroke: var(--dem); }
.sc-ln-r { stroke: var(--rep); }
.sc-ln.is-empty { opacity: .3; }
.sc-key { stroke-width: 3; stroke-linecap: round; }
.sc-leader { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.sc-end { fill: var(--ink); font: 700 12px var(--font-mono); }
.sc-end-n { fill: var(--ink-2); font-family: var(--font-body); font-weight: 700; }
.sc-dot { stroke: var(--card); stroke-width: 2; }
.sc-dot-d { fill: var(--dem); }
.sc-dot-r { fill: var(--rep); }
.sc-cross-line { stroke: var(--ink-2); stroke-width: 1; shape-rendering: crispEdges; }
.sc-tip {
  position: absolute; z-index: 2; pointer-events: none; min-width: 136px;
  padding: 8px 10px; background: var(--card);
  border: 2px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm);
  font-size: 12px;
}
.sc-tip-t { margin-bottom: 4px; color: var(--ink-3); font: 700 11px var(--font-mono); white-space: nowrap; }
.sc-tip-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sc-tip-row b { min-width: 54px; font-size: 15px; font-weight: 800; }
.sc-tip-row span { color: var(--ink-2); }
.sc-empty {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: max-content; max-width: min(86%, 380px);
  padding: 10px 14px; background: var(--card);
  border: 2.5px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 700; text-align: center; pointer-events: none;
}
.sc-empty.is-soft {
  top: 10px; transform: translateX(-50%);
  border-style: dashed; box-shadow: none; background: rgba(255, 252, 245, .92);
  font-size: 12.5px; font-weight: 600;
}
.sc-table { margin-top: 10px; font-size: 13px; }
.sc-table summary { width: fit-content; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.sc-table-body { margin-top: 8px; max-height: 260px; overflow: auto; border: 2px solid var(--line); border-radius: 8px; }
.sc-tbl { width: 100%; border-collapse: collapse; }
.sc-tbl th, .sc-tbl td { padding: 5px 12px; text-align: right; white-space: nowrap; }
.sc-tbl th[scope="row"], .sc-tbl thead th:first-child { text-align: left; font-weight: 600; }
.sc-tbl thead th { position: sticky; top: 0; background: var(--paper-2); font-weight: 800; }
.sc-tbl tbody tr:nth-child(even) { background: var(--paper); }

/* sparkline */
.spark { display: block; overflow: visible; }
.sp-ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sp-area { stroke: none; opacity: .1; }
.sp-dot { stroke: var(--card); stroke-width: 2; }
.sp-d .sp-ln { stroke: var(--dem); }
.sp-d .sp-area, .sp-d .sp-dot { fill: var(--dem); }
.sp-r .sp-ln { stroke: var(--rep); }
.sp-r .sp-area, .sp-r .sp-dot { fill: var(--rep); }
.sp-cur { stroke: var(--ink-2); stroke-width: 1; }
.sp-flat { stroke: var(--ink-3); stroke-width: 1.5; opacity: .45; }
.sp-tip {
  position: fixed; z-index: 120; pointer-events: none;
  padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--paper);
  font-size: 12px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.sp-tip b { font-weight: 800; }

/* ═════════════════════════════════════════════════════
   4. 赛区市场卡片
   ═════════════════════════════════════════════════════ */
.race-group + .race-group { margin-top: 24px; }
.rg-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px;
  margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2.5px solid var(--line);
}
.rg-head h3 { margin: 0; font: 400 21px/1.2 var(--font-display); }
.rg-sub { font-size: 12.5px; color: var(--ink-3); }
.rg-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.race-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }

.race { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 10px; container-type: inline-size; }
.race-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.race-titles { min-width: 0; }
.race-head h4 { margin: 0; font-size: 15.5px; font-weight: 900; line-height: 1.3; }
.race-sub { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }

/* 民调评级牌子：Toss-up / Lean / Likely / Safe Pig，截止后变成开奖结果 */
.race-rate {
  flex-shrink: 0; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 3px 9px; border: 2px solid var(--line); border-radius: 999px;
  font: 800 11px/1.3 var(--font-mono); letter-spacing: .01em;
  background: var(--paper-2); color: var(--ink-2);
}
.race-rate.tossup { background: var(--pow); color: var(--ink); }
.race-rate.lean.d { background: var(--dem-soft); color: var(--dem); }
.race-rate.lean.r { background: var(--rep-soft); color: var(--rep); }
.race-rate.likely.d { background: #9DB4FF; color: var(--ink); }
.race-rate.likely.r { background: #FFA59E; color: var(--ink); }
.race-rate.safe.d, .race-rate.called.d { background: var(--dem); color: #fff; }
.race-rate.safe.r, .race-rate.called.r { background: var(--rep); color: #fff; }
.race-rate.called { box-shadow: var(--shadow-sm); }

/* 开奖章：盖在被开奖那位的头像上 */
.race-row { position: relative; }
.race-stamp {
  position: absolute; left: -7px; top: 38px; z-index: 2; pointer-events: none;
  padding: 0 5px; border: 3px double currentColor; border-radius: 6px;
  font: 400 15px/1.2 var(--font-comic); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .78); transform: rotate(-14deg); opacity: .95;
}
.race-stamp.d { color: var(--dem); }
.race-stamp.r { color: var(--rep); }
.race-stamp.stamp-in { animation: stamp-in .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stamp-in {
  0% { transform: rotate(-14deg) scale(3.2); opacity: 0; }
  55% { transform: rotate(-14deg) scale(.88); opacity: 1; }
  100% { transform: rotate(-14deg) scale(1); opacity: .95; }
}
@container (max-width: 360px) {
  .race-stamp { top: 32px; font-size: 13px; }
}
.race-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.race-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas: "th who prob" "th meta btn";
  align-items: center; gap: 6px 12px; padding: 10px 0;
  border-top: 2px dashed var(--paper-2);
}
.race-row:first-child { border-top: 0; }

.thumb {
  display: block; position: relative; overflow: hidden;
  border: 2.5px solid var(--line); border-radius: 12px; background: var(--paper-2);
  /* 越像猪，粉色光圈越粗——一眼看出谁最惨 */
  box-shadow: 0 0 0 calc(var(--pig, 0) * 4px) var(--pig);
  transition: box-shadow .4s ease;
}
.party-d .thumb { background: var(--dem-soft); }
.party-r .thumb { background: var(--rep-soft); }
.thumb > svg { width: 100%; height: 100%; }
.race-thumb { grid-area: th; align-self: start; width: 56px; height: 56px; }

.race-who { grid-area: who; min-width: 0; }
.race-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; }
.race-name b { font-weight: 900; }
.race-en { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); }
.lead-badge {
  padding: 1px 6px; border: 2px solid var(--line); border-radius: 999px;
  background: var(--pig); font-size: 11px; font-weight: 800; line-height: 1.3; white-space: nowrap;
}
.race-prob { grid-area: prob; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.race-prob-v { padding: 0 2px; border-radius: 4px; font-size: 28px; font-weight: 800; line-height: 1; }
.race-prob-l { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.race-meta { grid-area: meta; display: flex; align-items: center; gap: 8px; min-width: 0; }
.race-share-l { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.race-share { min-width: 32px; font-size: 12px; font-weight: 700; text-align: right; }
.race-spark { flex-shrink: 0; width: 84px; height: 28px; }
.race-btn { grid-area: btn; justify-self: end; }
.race-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px;
  margin-top: 2px; padding-top: 8px; border-top: 2.5px solid var(--line);
  font-size: 12.5px; color: var(--ink-2);
}
.race-foot b { font-weight: 800; color: var(--ink); }
.race.is-empty .race-hot { color: var(--ink-3); }

.meter { position: relative; display: block; flex: 1; min-width: 36px; height: 8px; overflow: hidden; border-radius: 999px; }
.meter > span { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
.meter-d { background: var(--dem-soft); }
.meter-d > span { background: var(--dem); }
.meter-r { background: var(--rep-soft); }
.meter-r > span { background: var(--rep); }
.meter-pow { flex: none; height: 12px; border: 2px solid var(--line); background: var(--paper-2); }
.meter-pow > span { background: var(--pow); border-radius: 0; }

@container (max-width: 360px) {
  .race-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "th who prob" "meta meta btn";
  }
  .race-thumb { width: 48px; height: 48px; }
  .race-share-l { display: none; }
}

/* ═════════════════════════════════════════════════════
   5. 猪头榜
   ═════════════════════════════════════════════════════ */
.board-note {
  margin: 0 0 12px; padding: 10px 14px;
  border: 2.5px dashed var(--line); border-radius: var(--radius-sm); background: var(--pig-soft);
  font-size: 14px; font-weight: 700;
}
.board-note a { white-space: nowrap; }
.pig-list { list-style: none; margin: 0; padding: 0; }
.pig-row {
  position: relative;
  display: grid; grid-template-columns: 44px 64px minmax(0, 1fr) minmax(0, 300px);
  grid-template-areas: "rank th who stats";
  align-items: center; gap: 10px 14px; padding: 10px 8px;
  border-top: 2px dashed var(--paper-2); background: var(--card);
  transition: transform .55s cubic-bezier(.3, 1.2, .5, 1);
}
.pig-row:first-child { border-top: 0; }
.pr-rank { grid-area: rank; display: flex; flex-direction: column; align-items: center; font-size: 18px; font-weight: 800; }
.pr-crown { display: none; }
.pr-thumb { grid-area: th; width: 64px; height: 64px; }
.pr-who { grid-area: who; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.pr-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pr-name { font-size: 16px; font-weight: 900; text-decoration: none; }
.pr-name:hover { text-decoration: underline; }
.pr-en { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); }
.pr-mom { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pr-mom:empty { display: none; }
.pr-mom.is-hot { padding: 0 8px; border: 2px solid var(--line); border-radius: 999px; background: var(--pow); color: var(--ink); font-weight: 800; }
.pr-mom.is-cold { color: var(--ink-2); }
.pr-sash { display: none; }
.pr-quip { display: none; }
.pr-stats { grid-area: stats; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pr-stats > div { min-width: 0; }
.pr-stats dt { font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.pr-stats dd { margin: 0; font-size: 16px; font-weight: 800; }
.pig-meter { display: block; height: 6px; margin-top: 3px; overflow: hidden; border-radius: 999px; background: var(--pig-soft); }
.pig-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--pig); transition: width .6s ease; }

/* 本届头号猪头：皇冠 + 绶带 + 大头照 + 台词气泡 */
.pig-row.is-champ {
  grid-template-columns: 56px 132px minmax(0, 1fr) minmax(0, 300px);
  margin: 2px 0 10px; padding: 18px 14px 16px;
  border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  background: repeating-linear-gradient(-45deg, var(--pig-soft) 0 14px, #FFEAF2 14px 28px);
}
.pig-row.is-champ + .pig-row { border-top: 0; }
.is-champ .pr-rank { font-size: 24px; }
.is-champ .pr-crown { display: block; font-size: 32px; line-height: 1; transform: rotate(-12deg); }
.is-champ .pr-thumb {
  width: 132px; height: 132px; border-width: 3px; border-radius: 18px;
  box-shadow: 0 0 0 5px var(--pig), var(--shadow);
}
.is-champ .pr-sash {
  display: inline-block; margin-bottom: 4px; padding: 5px 12px;
  border: 2.5px solid var(--line); border-radius: 4px; background: var(--pow); box-shadow: var(--shadow-sm);
  font: 400 15px/1 var(--font-display); transform: rotate(-3deg);
}
.is-champ .pr-name { font-size: 22px; }
.is-champ .pr-quip {
  display: block; position: relative; max-width: 100%;
  margin: 8px 0 0 6px; padding: 6px 10px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--card);
  font-size: 13px; font-weight: 700;
}
.is-champ .pr-quip::before {
  content: ''; position: absolute; left: -9px; top: 10px;
  border: 7px solid transparent; border-right-color: var(--line);
}
.is-champ .pr-stats dd { font-size: 20px; }

/* ═════════════════════════════════════════════════════
   6. 暴打王
   ═════════════════════════════════════════════════════ */
.leader-list { list-style: none; margin: 0; padding: 0; }
.leader-row {
  display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto;
  align-items: center; gap: 8px; padding: 8px 4px;
  border-top: 2px dashed var(--paper-2);
}
.leader-row:first-child { border-top: 0; }
.leader-row.is-me { border-radius: 8px; background: var(--me-hi); }
.lr-rank { font-size: 14px; font-weight: 800; text-align: center; }
.leader-row.top .lr-rank { font-size: 20px; }
.lr-av {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 50%; background: var(--paper-2); font-size: 18px;
}
.top1 .lr-av { background: var(--pow); }
.lr-who { display: flex; flex-direction: column; min-width: 0; }
.lr-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.lr-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); }
.lr-who small a { font-weight: 700; color: var(--ink-2); }
.lr-dmg { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.lr-dmg .num { font-size: 15px; font-weight: 800; }
.lr-dmg small { font-size: 10.5px; color: var(--ink-3); }
.chip-me { padding: 0 6px; font-size: 10.5px; background: var(--pow); }
.list-empty, .feed-empty { padding: 16px 8px; text-align: center; font-size: 13.5px; color: var(--ink-3); }

/* ═════════════════════════════════════════════════════
   7. 实时战报
   ═════════════════════════════════════════════════════ */
.feed-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; }
.feed-item {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 8px;
  padding: 8px 8px 8px 10px;
  border-left: 4px solid var(--ink-3); border-bottom: 2px dashed var(--paper-2);
}
.feed-item.party-d { border-left-color: var(--dem); }
.feed-item.party-r { border-left-color: var(--rep); }
.feed-item.is-me { background: var(--me-hi); }
.feed-item.is-new { animation: feed-in .55s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-8px); background-color: var(--pow); }
  to { opacity: 1; transform: none; }
}
.fi-av { font-size: 19px; line-height: 1.35; }
.fi-text { margin: 0; font-size: 13.5px; line-height: 1.5; overflow-wrap: break-word; }
.fi-user { font-weight: 800; }
.fi-text .chip-me { margin-left: 4px; vertical-align: 1px; }
.fi-w { font-weight: 700; white-space: nowrap; }
.fi-text a { font-weight: 800; white-space: nowrap; }
.fi-x { font-weight: 800; }
.fi-ms {
  padding: 0 6px; border: 2px solid var(--line); border-radius: 999px; background: var(--pow);
  font: 400 12px/1.4 var(--font-display); white-space: nowrap;
}
.fi-t { grid-column: 2; font-size: 11px; color: var(--ink-3); }
/* 民调时刻：某一场翻盘 / 升档 / 开奖，黄底粗边，点名是谁那一拳 */
.feed-item.feed-moment { border-left: 6px solid var(--ink); background: #FFF3B0; }
.feed-item.feed-moment.is-me { background: var(--pig-soft); }
.feed-moment .fi-av { font-size: 22px; }
.fm-tag { font: 400 15px/1 var(--font-comic); letter-spacing: .05em; }
.fm-by { font-weight: 800; white-space: nowrap; }

/* ═════════════════════════════════════════════════════
   8. 我的战绩 / 选民登记号召
   ═════════════════════════════════════════════════════ */
.me-card.is-cta { padding: 12px; background: repeating-linear-gradient(-45deg, var(--pow) 0 16px, #FFE45C 16px 32px); }
.cta {
  padding: 16px; text-align: center;
  border: 2.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
}
.cta-art { display: inline-block; font-size: 44px; line-height: 1.1; transform: rotate(-14deg); animation: cta-bob 2.4s ease-in-out infinite; }
@keyframes cta-bob { 50% { transform: rotate(10deg) translateY(-4px); } }
.cta-kicker { margin: 6px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--ink-3); }
.cta-title { margin: 2px 0 6px; font: 400 24px/1.2 var(--font-display); }
.cta-sub { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.cta-btn { width: 100%; height: auto; padding-top: 10px; padding-bottom: 10px; white-space: normal; line-height: 1.25; text-align: center; }
.cta-alt { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); }
.linkish {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-size: inherit; font-weight: 800; text-decoration: underline;
}

.me-head { display: flex; align-items: center; gap: 12px; }
.me-big-av {
  flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center;
  border: 2.5px solid var(--line); border-radius: 50%; background: var(--pow); box-shadow: var(--shadow-sm);
  font-size: 30px;
}
.me-id { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.me-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--ink-3); }
.me-big-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 900; }
.me-stats { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.me-stats > div { padding: 8px 10px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); min-width: 0; }
.me-stats dt { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.me-stats dd { margin: 0; font-size: 20px; font-weight: 800; }
.me-next { margin-top: 12px; }
.me-next p { margin: 0 0 6px; font-size: 13.5px; }
.me-next .me-lv { margin: 6px 0 0; font-size: 12px; }
.me-arsenal { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.me-arsenal li {
  height: 36px; display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 8px; background: var(--card); font-size: 18px;
}
.me-arsenal li.is-off { background: var(--paper-2); opacity: .55; font-size: 13px; }
.me-sub { margin: 14px 0 6px; font-size: 13px; font-weight: 800; }
.me-targets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.me-targets li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.me-targets a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; text-decoration: none; }
.me-targets a:hover { text-decoration: underline; }
.thumb-sm { flex-shrink: 0; width: 36px; height: 36px; border-width: 2px; border-radius: 9px; }
.me-t-hits { margin-left: auto; font-weight: 800; }
.me-sub .muted { font-weight: 700; }
/* 我的选票：你占他挨打的多少 + 那场开没开奖 */
.me-t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.me-t-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.me-t-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; color: var(--ink-2); }
.me-t-sub b { color: var(--ink); }
/* 注意别叫 .me-chip：那是顶栏账号按钮的类名（base.css） */
.ballot-chip {
  padding: 0 7px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper-2);
  font-size: 11px; font-weight: 800; line-height: 1.5; color: var(--ink); white-space: nowrap;
}
.ballot-chip.is-called { background: var(--pig); }
.ballot-chip.is-lead { background: var(--pig-soft); }
.ballot-chip.is-close { background: var(--pow); }
.ballot-chip.is-other { background: var(--card); color: var(--ink-2); }
.me-none { margin: 0; font-size: 13px; }
.me-go { width: 100%; margin-top: 14px; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; white-space: normal; text-align: center; }

/* ═════════════════════════════════════════════════════
   手机
   ═════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .hero-head { padding: 14px 16px 0; }
  .term-hide-sm { display: none; }
  .duel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "d r" "c c";
    gap: 6px 12px; padding: 12px 16px 0;
  }
  .duel-d { grid-area: d; }
  .duel-r { grid-area: r; }
  .duel-center { grid-area: c; }
  .mascot { width: 92px; }
  .duel-party { font-size: 13px; }
  .prob-vs { display: none; }
  .duel-probs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prob-lbl { font-size: 12px; }
  .prob-lbl .tag-d, .prob-lbl .tag-r { display: none; }
  .sharebar { height: 40px; margin-top: 16px; }
  .sb-slipper { width: 30px; height: 60px; }
  .verdict { margin: 14px 16px 0; font-size: 14px; }
  .hero-stats { margin: 12px 16px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card.mk-sec { padding: 16px 14px; }
  .sec-head h2 { font-size: 22px; }

  .pig-row {
    grid-template-columns: 34px 52px minmax(0, 1fr);
    grid-template-areas: "rank th who" "stats stats stats";
    gap: 8px 10px; padding: 12px 4px;
  }
  .pr-thumb { width: 52px; height: 52px; }
  .pig-row.is-champ { grid-template-columns: 40px 96px minmax(0, 1fr); padding: 14px 10px; }
  .is-champ .pr-thumb { width: 96px; height: 96px; }
  .is-champ .pr-name { font-size: 17px; }
  .is-champ .pr-sash { font-size: 13px; padding: 4px 9px; }
  .is-champ .pr-quip { margin-left: 4px; font-size: 12px; }
  .is-champ .pr-crown { font-size: 26px; }
  .pr-stats dd, .is-champ .pr-stats dd { font-size: 16px; }
  .feed-list { max-height: 420px; }
}

/* ═════════════════════════════════════════════════════
   两党累计伤害（吉祥物下方）
   ═════════════════════════════════════════════════════ */
.party-dmg { display: flex; flex-direction: column; align-items: center; line-height: 1.1; margin: 2px 0; }
.pd-lbl { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.pd-val { font-size: 24px; font-weight: 800; padding: 0 4px; border-radius: 4px; }
.duel-d .pd-val { color: var(--dem); }
.duel-r .pd-val { color: var(--rep); }

/* ═════════════════════════════════════════════════════
   飘屏：从下往上飘"被什么打了"
   ═════════════════════════════════════════════════════ */
.duel-side { position: relative; }
.float-lane {
  --rise: 260px;
  position: absolute; z-index: 3; bottom: 28%; width: 96px; height: 300px;
  pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 12%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0, #000 12%, #000 60%, transparent 100%);
}
.duel-d .float-lane { left: -20px; }
.duel-r .float-lane { right: -20px; }
.flt {
  position: absolute; bottom: 0; white-space: nowrap;
  font: 800 17px/1 var(--font-mono); letter-spacing: -0.02em;
  text-shadow: 0 0 3px var(--card), 0 0 3px var(--card), 0 0 6px var(--card);
  animation: flt-rise var(--dur, 3.6s) cubic-bezier(.22, .61, .36, 1) forwards;
  will-change: transform, opacity;
}
.flt-d { left: 0; color: var(--dem); }
.flt-r { right: 0; color: var(--rep); }
.flt-e { font-size: 1.1em; text-shadow: none; }
.flt-big { font-size: 21px; }
@keyframes flt-rise {
  0% { transform: translate(0, 14px); opacity: 0; }
  10% { transform: translate(0, 0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--sway, 0), calc(var(--rise) * -1)); opacity: 0; }
}
@media (max-width: 720px) {
  .float-lane { --rise: 140px; height: 170px; bottom: 36%; width: 72px; }
  .duel-d .float-lane { left: -10px; }
  .duel-r .float-lane { right: -10px; }
  .flt { font-size: 13px; }
  .flt-big { font-size: 15px; }
  .pd-val { font-size: 20px; }
  .hero-stats dd .num { font-size: 16px; }
}

/* ═════════════════════════════════════════════════════
   全国暴打地图（usmap.js）
   ═════════════════════════════════════════════════════ */
@media (max-width: 1023px) { #map { order: 1; } }
.map-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.map-legend li { display: inline-flex; align-items: center; gap: 5px; }
.map-legend .mk { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--line); }
.mk-d2 { background: var(--dem); }
.mk-mid { background: var(--pow); }
.mk-r2 { background: var(--rep); }
.map-legend .mk-none { background: var(--paper-2); border-style: dashed; }

.usmap { container-type: inline-size; }
.usmap-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp {
  fill: #E2D8C4; stroke: var(--card); stroke-width: 1.2; stroke-linejoin: round;
  cursor: pointer; transition: fill .25s ease;
  transform-box: fill-box; transform-origin: center;
}
.sp-none:hover { fill: #D5C9B1; }
.sp-race { stroke: var(--line); stroke-width: 1.8; }
.sp-d2 { fill: var(--dem); }
.sp-d1 { fill: #9DB4FF; }
.sp-mid { fill: var(--pow); }
.sp-r1 { fill: #FFA59E; }
.sp-r2 { fill: var(--rep); }
.sp-quiet { fill: var(--card); stroke-dasharray: 4 3; }   /* 有比赛但还没人投票 */
.sp-race:hover, .sp-race:focus-visible { filter: brightness(1.08) saturate(1.1); outline: none; }
.sp.is-sel { stroke: var(--ink); stroke-width: 3.5; }
.sp.is-hit { animation: sp-hit .5s ease; }
@keyframes sp-hit {
  0%, 100% { transform: none; }
  25% { transform: scale(1.05) rotate(-1.5deg); }
  55% { transform: scale(1.03) rotate(1deg); }
}
.us-dc:not(.is-live) { display: none; }
.dc-lead { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.dc-dot { stroke: var(--line); stroke-width: 2.5; }
/* DC 本身只有几个像素：它被键盘聚焦时，把气泡也一起亮出来 */
.usmap-svg:has(.us-states [data-st="DC"]:focus-visible) .dc-dot { filter: brightness(1.08) saturate(1.1); stroke-width: 4; }
.sl text {
  text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: rgba(255, 252, 245, .92); stroke-width: 4px; stroke-linejoin: round; fill: var(--ink);
}
.sl .sl-code { font: 800 15px var(--font-mono); }
.sl .sl-p { font: 700 12.5px var(--font-mono); }
.sl .sl-pig { font-size: 18px; stroke: none; }
@container (max-width: 520px) {
  .sp { stroke-width: 2; }
  .sp-race { stroke-width: 3; }
  .sl .sl-code { font-size: 30px; }
  .sl .sl-p { display: none; }
  .sl .sl-pig { font-size: 30px; }
  .dc-dot { r: 34px; }
}

.usmap-info {
  margin-top: 14px; min-height: 64px; padding: 10px 12px;
  border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.mi-empty { margin: 0; font-size: 13px; color: var(--ink-2); }
.mi-head { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.mi-verdict { padding: 1px 8px; border: 2px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 800; }
.mi-d2 { background: var(--dem); color: #fff; }
.mi-d1 { background: #9DB4FF; }
.mi-mid { background: var(--pow); }
.mi-quiet { background: var(--card); color: var(--ink-2); }
.mi-r1 { background: #FFA59E; }
.mi-r2 { background: var(--rep); color: #fff; }
.mi-vol { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.mi-races { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mi-race { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mi-title { min-width: 160px; font-weight: 800; font-size: 13px; }
.mi-cand { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.mi-p { font-size: 15px; }
.mi-cand .btn-sm { min-height: 26px; padding: 0 10px; font-size: 12px; }

.race.is-spot { animation: race-spot 1.6s ease; }
@keyframes race-spot {
  0%, 100% { box-shadow: var(--shadow); }
  20%, 60% { box-shadow: 0 0 0 5px var(--pow), var(--shadow); }
}
