/* ============================================================
   Eastern Farm — 2026 世界杯观赛台 (World Cup Viewing Hub)
   Phase 1: read-only. Hay Day / cozy tokens from style.css.
   Everything scoped under #wc-hub / .wc-* so it can't leak into
   the farm game, and the whole module deletes cleanly in July.
   字号已整体上调一档(2026-06-27),更清晰大气;质感同步加强。
   ============================================================ */

/* ---- palette (reuses farm tokens, adds a few pitch accents) ---- */
#wc-hub {
  --wc-pitch:      #3a7d2c;          /* deep grass */
  --wc-pitch-soft: #6ab04c;          /* leaf green */
  --wc-amber:      #f4a72c;          /* trophy gold */
  --wc-amber-deep: #d98410;
  --wc-cream:      #fdf8ee;
  --wc-card:       #fffdf6;
  --wc-ink:        #3a2e26;
  --wc-soft:       #6b5d52;
  --wc-faint:      #a99e90;
  --wc-line:       #ece1c9;
  --wc-live:       #e0392b;
  --wc-upset:      #8e44ad;
  --wc-border:     #e8dcc4;
  /* premium layered shadows (soft, warm-tinted) */
  --wc-sh-sm: 0 1px 2px rgba(83,58,28,0.05), 0 2px 6px rgba(83,58,28,0.06);
  --wc-sh-md: 0 2px 5px rgba(83,58,28,0.06), 0 8px 20px rgba(83,58,28,0.09);
  --wc-sh-lg: 0 4px 10px rgba(83,58,28,0.08), 0 16px 34px rgba(83,58,28,0.14);

  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(130% 70% at 50% -8%, rgba(106,176,76,0.18), transparent 60%),
    linear-gradient(180deg, #fef6e6 0%, var(--wc-cream) 28%, #f6edd8 100%);
  color: var(--wc-ink);
  font-family: var(--font-zh), var(--font-en);
  box-shadow: 0 0 50px rgba(139,90,60,0.18);
  overflow: hidden;
  animation: wc-hub-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes wc-hub-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
#wc-hub.wc-closing { animation: wc-hub-out 0.24s ease forwards; }
@keyframes wc-hub-out { to { opacity: 0; transform: translateY(10px) scale(0.99); } }

#wc-hub * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ===================== TOP BAR ===================== */
/* 3-zone grid: left = Eastern Market logo · center = World Cup title (truly
   centered) · right = clock + close. Grid reserves each zone so nothing overlaps. */
.wc-topbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 9px;
  border-bottom: 1px solid var(--wc-line);
  background: linear-gradient(180deg, rgba(255,253,246,0.94), rgba(255,253,246,0.62));
  backdrop-filter: blur(6px);
}
.wc-em-logo { justify-self: start; min-width: 0; display: inline-flex; align-items: center; text-decoration: none; }
.wc-em-logo:active { transform: scale(0.95); }
.wc-em-logo img { height: 42px; width: auto; max-width: 100%; display: block; border-radius: 6px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.12)); }
.wc-title { justify-self: center; min-width: 0; display: inline-flex; align-items: center; gap: 7px; }
.wc-title .wc-emblem { height: 28px; width: auto; flex: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18)); }
.wc-title-zh { font-family: var(--font-display); font-size: 18.5px; color: var(--wc-pitch); white-space: nowrap; letter-spacing: 0.6px; }
.wc-topbar-right { justify-self: end; display: inline-flex; align-items: center; gap: 9px; }
.wc-clock { text-align: right; line-height: 1.18; flex: none; }
.wc-clock .t { font-family: var(--font-en); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14.5px; color: var(--wc-ink); }
.wc-clock .z { font-family: var(--font-en); font-size: 10px; letter-spacing: 0.4px; color: var(--wc-faint); }
.wc-close {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--wc-border); background: var(--wc-card); color: var(--wc-soft);
  font-size: 19px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
.wc-close:active { transform: scale(0.9); background: #f3ead6; }

/* ===================== TABS ===================== */
/* 单行分段控件(segmented control):去掉每个 tab 下方那行 9px 大写英文小字 —— 那是高度
   占用 + "业余感"的来源。改单行后更紧凑、更专业;选中态保留品牌绿做识别。 */
.wc-tabs {
  flex: 0 0 auto;
  display: flex; gap: 3px; margin: 9px 12px; padding: 3px;
  background: #ebe0c6; border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 2px rgba(83,58,28,0.10);
}
.wc-tabs button {
  flex: 1; border: 0; cursor: pointer; border-radius: var(--radius-pill);
  background: transparent; color: var(--wc-soft);
  padding: 8px 4px; line-height: 1; transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.12s;
  font-family: var(--font-display);
}
.wc-tabs button .zh { display: block; font-size: 15px; letter-spacing: 0.6px; }
.wc-tabs button .en { display: none; }   /* 单行更干净;英文标识从 DOM 保留但隐藏 */
.wc-tabs button:active { transform: scale(0.97); }
.wc-tabs button[aria-selected="true"] {
  background: linear-gradient(160deg, var(--wc-pitch-soft), var(--wc-pitch));
  color: #fff; box-shadow: 0 2px 8px rgba(58,125,44,0.30);
  font-weight: 700;
}

/* ===================== BODY (scroll) ===================== */
.wc-body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 12px calc(28px + env(safe-area-inset-bottom));
}
.wc-body section[hidden] { display: none; }

/* ===================== SHARED BITS ===================== */
.wc-flag { font-size: 1em; display: inline-block; transition: transform 0.2s; }
.wc-flag.wc-wiggle { animation: wc-wiggle 0.5s ease; }
@keyframes wc-wiggle { 0%,100%{transform:none} 25%{transform:rotate(-14deg) scale(1.25)} 60%{transform:rotate(11deg) scale(1.2)} }

.wc-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--font-display); font-size: 11.5px; line-height: 1;
  padding: 4px 8px 3px; border-radius: var(--radius-pill); white-space: nowrap;
}
.wc-badge.big   { background: #fdeccb; color: var(--wc-amber-deep); }
.wc-badge.upset { background: #efe1f7; color: var(--wc-upset); }
.wc-badge.live  { background: var(--wc-live); color: #fff; }
.wc-badge.mine  { background: #dff0d3; color: var(--wc-pitch); }

.wc-empty { text-align: center; color: var(--wc-faint); padding: 36px 10px; font-size: 14.5px; }
.wc-live-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--font-display); font-size: 13px; color: var(--wc-pitch); background: #eaf6df; border: 1px solid #cfe7bd; border-radius: var(--radius-pill); padding: 6px 13px; margin: 6px 2px 10px; }
.wc-live-src { font-family: var(--font-zh); font-size: 11px; color: var(--wc-faint); font-weight: normal; }
.wc-section-note { font-size: 12.5px; color: var(--wc-faint); margin: 2px 2px 10px; line-height: 1.5; }

/* live pulse dot */
.wc-pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--wc-live); position: relative; }
.wc-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--wc-live); animation: wc-ping 1.4s ease-out infinite; }
@keyframes wc-ping { 0%{transform:scale(0.6);opacity:0.9} 100%{transform:scale(1.8);opacity:0} }

/* ===================== FOCUS MATCH (今日焦点战) ===================== */
.wc-focus {
  position: relative; margin: 6px 0 16px; border-radius: var(--radius-lg);
  padding: 17px 17px 16px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, #348647 0%, #3a7d2c 52%, #29571f 100%);
  box-shadow: var(--wc-sh-lg), inset 0 1px 0 rgba(255,255,255,0.18);
}
.wc-focus::before { /* pitch stripes */
  content: ""; position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background: repeating-linear-gradient(115deg, #fff 0 22px, transparent 22px 44px);
}
.wc-focus::after { /* corner glow */
  content: ""; position: absolute; right: -30px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(244,167,44,0.55), transparent 70%); pointer-events: none;
}
/* soft top sheen for glossy depth */
.wc-focus > .wc-focus-kicker::before {
  content: ""; position: absolute; left: -16px; right: -16px; top: -16px; height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent); pointer-events: none;
}
.wc-focus-kicker { position: relative; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; color: #ffe9bf; }
.wc-focus-kicker .en { font-family: var(--font-en); font-size: 8.5px; letter-spacing: 1.5px; opacity: 0.7; font-weight: 700; }
.wc-focus-teams { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 13px 2px 10px; }
.wc-focus-team { flex: 1; text-align: center; min-width: 0; }
.wc-focus-team .fl {
  width: 60px; height: 60px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 35px; line-height: 1;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.30), 0 4px 10px rgba(0,0,0,0.22);
  overflow: hidden;
}
.wc-focus-team .nm { font-family: var(--font-display); font-size: 16.5px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-focus-vs { flex: none; font-family: var(--font-en); font-weight: 800; font-size: 15px; color: #ffe9bf; opacity: 0.85; }
.wc-focus-score { flex: none; font-family: var(--font-en); font-weight: 800; font-size: 33px; letter-spacing: 2px; color: #fff; }
.wc-focus-meta { position: relative; text-align: center; font-size: 13px; color: #d9eccf; margin-bottom: 13px; }
.wc-countdown {
  position: relative; display: flex; justify-content: center; gap: 7px;
}
.wc-cd-cell { background: rgba(255,255,255,0.14); border-radius: 12px; padding: 8px 0 6px; min-width: 54px; text-align: center; backdrop-filter: blur(2px); }
.wc-cd-cell .n { font-family: var(--font-en); font-weight: 800; font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
.wc-cd-cell .l { font-size: 10px; color: #d9eccf; margin-top: 4px; letter-spacing: 0.5px; }
.wc-focus-live-tag { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--wc-live); color: #fff; font-family: var(--font-display); font-size: 13px; padding: 6px 13px; border-radius: var(--radius-pill); }
.wc-focus-cta { position: relative; display: block; width: 100%; margin-top: 4px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #fdf3df); color: var(--wc-pitch); font-family: var(--font-display); font-size: 14.5px;
  padding: 11px; border-radius: var(--radius-pill); transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.9); }
.wc-focus-cta:active { transform: scale(0.97); box-shadow: 0 1px 4px rgba(0,0,0,0.18); }

/* ===================== FILTERS ===================== */
.wc-filters { display: flex; gap: 7px; margin: 2px 0 10px; }
.wc-search {
  flex: 1; min-width: 0; border: 1px solid var(--wc-border); background: var(--wc-card);
  border-radius: var(--radius-pill); padding: 10px 15px; font-size: 15px; color: var(--wc-ink);
  font-family: var(--font-zh); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.wc-search:focus { border-color: var(--wc-pitch-soft); box-shadow: 0 0 0 3px rgba(106,176,76,0.15); }
.wc-select {
  flex: none; border: 1px solid var(--wc-border); background: var(--wc-card);
  border-radius: var(--radius-pill); padding: 10px 13px; font-size: 14.5px; color: var(--wc-soft);
  font-family: var(--font-zh); outline: none;
}
.wc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.wc-chip {
  border: 1px solid var(--wc-border); background: var(--wc-card); color: var(--wc-soft);
  border-radius: var(--radius-pill); padding: 7px 14px; font-size: 14px; cursor: pointer;
  font-family: var(--font-zh); transition: all 0.15s; display: inline-flex; align-items: center; gap: 4px;
}
.wc-chip:active { transform: scale(0.95); }
.wc-chip[aria-pressed="true"] { background: var(--wc-amber); border-color: var(--wc-amber); color: #4a2e00; font-weight: 700; }
.wc-chip.wc-chip-mine[aria-pressed="true"] { background: var(--wc-pitch); border-color: var(--wc-pitch); color: #fff; }
.wc-spoiler-toggle { margin-left: auto; }

/* ===================== DAY GROUPS + MATCH ROWS ===================== */
/* 轮次分组头（2026-07-03 淘汰赛阶段改版）：可点开合，已结束轮次收起成一行 */
.wc-round-head {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  margin: 14px 0 6px; padding: 12px 14px; cursor: pointer; text-align: left;
  background: var(--wc-card); border: 1px solid var(--wc-line); border-radius: var(--radius-md);
  box-shadow: var(--wc-sh-sm); font-family: var(--font-display); font-size: 15px; color: var(--wc-pitch);
}
.wc-round-head:active { transform: scale(0.995); }
.wc-round-head.done { opacity: 0.72; }
.wc-round-head.done.open { opacity: 1; }
.wc-round-head .cnt { font-family: var(--font-en); font-size: 11.5px; color: var(--wc-faint); font-weight: 700; }
.wc-round-head .wc-round-state { font-size: 11.5px; color: var(--wc-faint); font-weight: 600; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.wc-round-head .chev { font-size: 13px; }
.wc-round-body { padding: 0 2px 4px; }

.wc-day { font-family: var(--font-display); font-size: 14.5px; color: var(--wc-pitch); display: flex; align-items: center; gap: 8px; margin: 16px 2px 9px; }
.wc-day::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--wc-line), transparent); }
.wc-day .cnt { font-family: var(--font-en); font-size: 11.5px; color: var(--wc-faint); font-weight: 700; }

.wc-match {
  background: var(--wc-card); border: 1px solid var(--wc-line); border-radius: var(--radius-md);
  margin-bottom: 10px; overflow: hidden; box-shadow: var(--wc-sh-sm); transition: box-shadow 0.2s, transform 0.12s;
}
.wc-match:active { transform: scale(0.992); }
.wc-match.open { box-shadow: var(--wc-sh-md); }
.wc-match.mine { border-color: var(--wc-pitch-soft); box-shadow: 0 0 0 1.5px rgba(106,176,76,0.4), var(--wc-sh-sm); }
.wc-match-head:active { background: rgba(106,176,76,0.04); }
.wc-match-head { display: grid; grid-template-columns: 54px 1fr auto; gap: 11px; align-items: center; padding: 12px 13px; cursor: pointer; }
.wc-match-time { text-align: center; line-height: 1.2; }
.wc-match-time .t { font-family: var(--font-en); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--wc-ink); }
.wc-match-time .s { font-size: 10.5px; color: var(--wc-faint); margin-top: 3px; font-family: var(--font-en); letter-spacing: 0.3px; }
.wc-match-time .s.live { color: var(--wc-live); font-weight: 700; }
.wc-match-time .cd { font-size: 10.5px; color: var(--wc-pitch); margin-top: 3px; font-family: var(--font-en); font-variant-numeric: tabular-nums; }

.wc-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wc-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wc-team .fl { font-size: 20px; width: 26px; text-align: center; flex: none; }
.wc-team .nm { font-family: var(--font-zh); font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-team .nm .en { color: var(--wc-faint); font-size: 12.5px; font-family: var(--font-en); margin-left: 5px; }
.wc-team .sc { margin-left: auto; font-family: var(--font-en); font-weight: 800; font-size: 19px; flex: none; min-width: 20px; text-align: right; color: var(--wc-soft); }
.wc-team.win .nm { color: var(--wc-ink); font-weight: 700; }
.wc-team.win .sc { color: var(--wc-pitch); }
.wc-team.lose .nm, .wc-team.lose .sc { color: var(--wc-faint); }
.wc-team.win .nm::after { content: " ▸"; color: var(--wc-pitch); font-size: 12px; }

/* spoiler-hidden score */
.wc-sc-hidden { cursor: pointer; }
.wc-sc-hidden .sc-blur { display: inline-block; min-width: 44px; text-align: center; font-family: var(--font-display); font-size: 12px; color: var(--wc-amber-deep); background: #fbeed0; border-radius: var(--radius-pill); padding: 3px 9px; }
.wc-match.spoiler-hidden .wc-team .sc { filter: blur(7px); opacity: 0.55; }
.wc-team .sc.live { color: var(--wc-barn-red, #c44536); }
.wc-team .sc .pk { font-size: 11px; font-weight: 700; margin-left: 2px; color: var(--wc-faint); vertical-align: 1px; }
.wc-focus-score.live { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.35); }
.wc-focus-pk { display: block; font-family: var(--font-zh); font-weight: 600; font-size: 12px; letter-spacing: 1px; color: rgba(255,255,255,0.82); margin-top: 3px; }

.wc-match-meta { text-align: right; line-height: 1.45; }
.wc-match-meta .stage { font-family: var(--font-en); font-size: 10.5px; color: var(--wc-faint); font-weight: 700; letter-spacing: 0.3px; display: block; }
.wc-match-meta .badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; margin-top: 5px; }
.wc-match-meta .chev { color: var(--wc-faint); font-size: 13px; transition: transform 0.2s; display: inline-block; }
.wc-match.open .wc-match-meta .chev { transform: rotate(180deg); }

/* expandable detail */
.wc-match-detail { display: none; padding: 0 13px 12px; border-top: 1px dashed var(--wc-line); }
.wc-match.open .wc-match-detail { display: block; animation: wc-detail-in 0.25s ease; }
@keyframes wc-detail-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.wc-detail-venue { font-size: 13px; color: var(--wc-soft); margin: 11px 0 8px; display: flex; align-items: center; gap: 6px; }
.wc-timeline { position: relative; padding-left: 4px; }
.wc-goal { display: flex; align-items: center; gap: 8px; padding: 4px 0; opacity: 0; transform: translateX(-8px); }
.wc-goal.in { animation: wc-goal-pop 0.4s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes wc-goal-pop { to { opacity: 1; transform: none; } }
.wc-goal .min { font-family: var(--font-en); font-weight: 800; font-size: 12px; color: var(--wc-amber-deep); background: #fdeccb; border-radius: var(--radius-pill); padding: 2px 8px; min-width: 36px; text-align: center; }
.wc-goal .who { font-size: 14px; color: var(--wc-ink); }
.wc-goal .who .ball { margin-right: 4px; }
.wc-detail-empty { font-size: 13px; color: var(--wc-faint); padding: 6px 0; }
.wc-follow-btn { margin-top: 10px; border: 1px solid var(--wc-border); background: var(--wc-card); color: var(--wc-soft);
  border-radius: var(--radius-pill); padding: 8px 15px; font-size: 13.5px; cursor: pointer; font-family: var(--font-zh); transition: all 0.15s; }
.wc-follow-btn:active { transform: scale(0.96); }
.wc-follow-btn.on { background: #dff0d3; border-color: var(--wc-pitch-soft); color: var(--wc-pitch); }

/* ===================== STANDINGS ===================== */
.wc-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--wc-soft); margin: 4px 2px 14px; }
.wc-legend i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; }
.wc-legend .dot { width: 10px; height: 4px; border-radius: 2px; }
.wc-grp { background: var(--wc-card); border: 1px solid var(--wc-line); border-radius: var(--radius-md); padding: 12px 13px 7px; margin-bottom: 12px; box-shadow: var(--wc-sh-sm); }
.wc-grp-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.wc-grp-h .g { font-family: var(--font-display); font-size: 16.5px; color: var(--wc-pitch); }
.wc-grp-h .note { font-family: var(--font-en); font-size: 11px; color: var(--wc-faint); }
.wc-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.wc-table th { font-family: var(--font-en); font-size: 10px; font-weight: 700; color: var(--wc-faint); text-align: right; padding: 4px 2px 7px; letter-spacing: 0.2px; }
.wc-table th.l { text-align: left; }
.wc-table th:not(.l), .wc-table td:not(.team) { width: 27px; }
.wc-table td { padding: 8px 2px; text-align: right; border-top: 1px solid var(--wc-line); font-family: var(--font-en); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--wc-soft); }
.wc-table td.team { text-align: left; font-family: var(--font-zh); font-weight: 500; font-size: 14px; color: var(--wc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-table td.team .pos { color: var(--wc-faint); font-family: var(--font-en); font-weight: 700; width: 14px; display: inline-block; }
.wc-table td.team .fl { margin: 0 4px 0 1px; }
.wc-table td.pts { color: var(--wc-amber-deep); font-weight: 800; }
.wc-table tr.q1 td { background: rgba(58,125,44,0.055); }
.wc-table tr.q2 td { background: rgba(106,176,76,0.06); }
.wc-table tr.q3 td { background: rgba(244,167,44,0.07); }
.wc-table tr.q1 td:first-child { box-shadow: inset 3px 0 0 var(--wc-pitch); }
.wc-table tr.q2 td:first-child { box-shadow: inset 3px 0 0 var(--wc-pitch-soft); }
.wc-table tr.q3 td:first-child { box-shadow: inset 3px 0 0 var(--wc-amber); }
.wc-table tr.q1 td.pos, .wc-table tr.q2 td.team .pos { font-weight: 800; }
.wc-table tr.elim td { color: var(--wc-faint); }
.wc-table tr.elim td.team { color: var(--wc-faint); }
.wc-h2h { font-size: 9.5px; color: var(--wc-upset); margin-left: 3px; }
.wc-cut td { border-top: 2px dashed var(--wc-amber-deep) !important; }
.wc-cut .lbl { font-family: var(--font-display); font-size: 11px; color: var(--wc-amber-deep); padding: 4px; text-align: center; }

/* third place mini sim */
.wc-sim-hint { font-size: 12.5px; color: var(--wc-soft); background: #f3ead6; border-radius: var(--radius-sm); padding: 9px 11px; margin: 2px 2px 12px; line-height: 1.5; }

/* ===================== BRACKET ===================== */
/* 真·竞赛括号图:固定对阵框高度 → space-around 让后一轮精确居中在前一轮两框之间;
   连接线用伪元素(每对一竖线 + 引向下一轮的横线),手机横向滑动查看,两侧渐隐提示。 */
.wc-bracket-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 14px 12px; margin: 0 -12px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
.wc-bracket { --th: 66px; --pg: 16px; --con: 22px; display: flex; gap: var(--con); width: max-content; }
.wc-round { display: flex; flex-direction: column; flex: 0 0 150px; }
.wc-round-lbl { flex: none; font-family: var(--font-display); font-size: 12px; color: var(--wc-pitch); text-align: center; margin-bottom: 12px;
  background: rgba(106,176,76,0.12); border-radius: var(--radius-pill); padding: 5px 0; letter-spacing: 0.3px; }
.wc-round-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.wc-pair { position: relative; display: flex; flex-direction: column; gap: var(--pg); }
.wc-pair::before { content: ''; position: absolute; left: 100%; top: calc(var(--th) / 2);
  width: 2px; height: calc(var(--th) + var(--pg)); background: var(--wc-line); }
.wc-pair::after { content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-1px);
  width: var(--con); height: 2px; background: var(--wc-line); }
.wc-tie { height: var(--th); background: var(--wc-card); border: 1px solid var(--wc-line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--wc-sh-sm); }
.wc-tie.locked { border-color: #f0d28a; box-shadow: 0 0 0 1px rgba(244,167,44,0.25), var(--wc-sh-sm); }
.wc-slot { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 32px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--wc-line); transition: background 0.15s; }
.wc-slot:last-child { border-bottom: 0; }
.wc-slot .fl { font-size: 15px; width: 20px; text-align: center; flex: none; }
.wc-slot .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; font-family: var(--font-zh); font-weight: 500; }
.wc-slot.tbd { color: var(--wc-faint); cursor: default; font-family: var(--font-en); font-size: 12px; }
.wc-slot.picked { background: linear-gradient(90deg, rgba(106,176,76,0.18), rgba(106,176,76,0.05)); }
.wc-slot.picked .nm { color: var(--wc-pitch); font-weight: 700; }
.wc-slot:not(.tbd):not(.locked):active { background: #f1f7eb; }
/* locked = real result (auto-advanced, not editable) */
.wc-slot.locked { cursor: default; }
.wc-slot.locked.picked { background: linear-gradient(90deg, rgba(244,167,44,0.20), rgba(244,167,44,0.05)); }
.wc-slot.locked.picked .nm { color: var(--wc-amber-deep); }
.wc-slot.locked:not(.picked) { opacity: 0.5; }
.wc-slot-win { flex: none; font-size: 12px; font-weight: 700; color: var(--wc-amber-deep); margin-left: 2px; }
.wc-champ { text-align: center; font-family: var(--font-display); font-size: 15.5px; color: var(--wc-amber-deep);
  background: linear-gradient(160deg, #fff4d6, #fdeccb); border: 1px solid #f0d28a; border-radius: var(--radius-md);
  padding: 15px; margin-top: 12px; box-shadow: 0 4px 12px rgba(217,132,16,0.18); }
.wc-champ .f { font-size: 36px; display: block; margin-bottom: 4px; animation: wc-trophy 2.4s ease-in-out infinite; }
@keyframes wc-trophy { 0%,100%{transform:rotate(-4deg)} 50%{transform:rotate(4deg)} }
.wc-bracket-bar { display: flex; align-items: center; gap: 10px; margin: 2px 2px 12px; flex-wrap: wrap; }
.wc-reset { border: 1px solid var(--wc-border); background: var(--wc-card); color: var(--wc-soft); border-radius: var(--radius-pill); padding: 7px 15px; font-size: 13.5px; cursor: pointer; font-family: var(--font-zh); }
.wc-reset:active { transform: scale(0.96); }
.wc-progress { font-size: 13px; color: var(--wc-soft); }
.wc-progress b { color: var(--wc-pitch); }

/* ===================== LOTTERY (竞猜抽奖) ===================== */
/* hub 顶部醒目横幅:打开观赛台就看到活动,点击直达最近一场竞猜 */
.wc-lotto-banner {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: calc(100% - 24px); margin: 9px 12px 0; padding: 12px 16px; border: 0;
  border-radius: var(--radius-pill); cursor: pointer; color: #fff; font-family: var(--font-zh);
  background: linear-gradient(100deg, #ffa42e 0%, #f4632c 60%, #e23b2e 100%);
  box-shadow: 0 5px 16px rgba(226,90,40,0.44); animation: wc-banner-pulse 2.2s ease-in-out infinite;
}
.wc-lotto-banner .bn { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; line-height: 1.25; }
.wc-lotto-banner .bn-l1 { font-size: 14.5px; font-weight: 600; opacity: 0.96; letter-spacing: 0.3px; }
.wc-lotto-banner .bn-l2 { font-family: var(--font-display); font-size: 18.5px; font-weight: 800; letter-spacing: 0.6px; display: inline-flex; align-items: center; gap: 5px; }
.wc-lotto-banner .bn-go { font-style: normal; font-weight: 700; opacity: 0.9; }
.wc-lotto-banner:active { transform: scale(0.99); }
@keyframes wc-banner-pulse {
  0%, 100% { box-shadow: 0 5px 16px rgba(226,90,40,0.44); }
  50% { box-shadow: 0 6px 24px rgba(244,99,44,0.80); }
}

/* 比赛卡片底部的竞猜徽章 */
.wc-match-lotto {
  display: block; width: 100%; border: 0; cursor: pointer; text-align: center;
  padding: 10px 12px; font-family: var(--font-zh); font-size: 14.5px; font-weight: 600; color: #fff; letter-spacing: 0.2px;
  background: linear-gradient(100deg, var(--wc-amber), var(--wc-amber-deep));
  border-top: 1px dashed rgba(255,255,255,0.55);
}
.wc-match-lotto b { font-family: var(--font-display); }
.wc-match-lotto:active { filter: brightness(0.96); }
.wc-match:not(.open) .wc-match-lotto { border-radius: 0 0 var(--radius-md) var(--radius-md); }

.wc-lotto { margin: 12px 0 4px; }
.wc-lotto-card { background: linear-gradient(160deg, #fff8e8, #fdf0d4); border: 1px solid #f0d28a; border-radius: var(--radius-md); padding: 13px; box-shadow: var(--wc-sh-sm); }
.wc-lotto-head { font-family: var(--font-display); font-size: 15.5px; color: var(--wc-amber-deep); display: flex; align-items: center; gap: 7px; }
.wc-lotto-tag { font-family: var(--font-display); font-size: 11.5px; color: #fff; background: var(--wc-amber-deep); padding: 3px 9px; border-radius: var(--radius-pill); }
.wc-lotto-prizes { font-size: 13px; color: var(--wc-soft); margin: 7px 0 11px; line-height: 1.55; }
.wc-lotto-picks { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.wc-lotto-pick { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; background: #fff; border: 2px solid var(--wc-line); border-radius: var(--radius-md); padding: 12px 6px; cursor: pointer; transition: all 0.15s; font-family: var(--font-zh); }
.wc-lotto-pick .fl { font-size: 30px; line-height: 1; }
.wc-lotto-pick .nm { font-size: 14.5px; font-weight: 600; color: var(--wc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wc-lotto-pick.sel { border-color: var(--wc-pitch); background: #f1f9ea; box-shadow: 0 0 0 3px rgba(106,176,76,0.18); }
.wc-lotto-pick:active { transform: scale(0.97); }
.wc-lotto-vs { font-family: var(--font-en); font-weight: 800; font-size: 13px; color: var(--wc-faint); flex: none; }
.wc-lotto-submit, .wc-lotto-btn { display: block; width: 100%; border: 0; cursor: pointer; text-align: center; text-decoration: none;
  background: linear-gradient(160deg, var(--wc-pitch-soft), var(--wc-pitch)); color: #fff; font-family: var(--font-display);
  font-size: 15.5px; padding: 12px; border-radius: var(--radius-pill); box-shadow: 0 3px 9px rgba(58,125,44,0.3); transition: all 0.15s; }
.wc-lotto-submit:disabled { background: #d8cdb5; box-shadow: none; cursor: default; }
.wc-lotto-submit:active:not(:disabled), .wc-lotto-btn:active { transform: scale(0.97); }
.wc-lotto-mypick { font-size: 14.5px; color: var(--wc-ink); margin-bottom: 6px; }
.wc-lotto-mypick .fl { font-size: 19px; }
.wc-lotto-wait, .wc-lotto-closed { font-size: 13.5px; color: var(--wc-soft); }
.wc-lotto-card.win { background: linear-gradient(160deg, #fff4d6, #ffe9bf); border-color: #eaba5a; text-align: center; }
.wc-lotto-card.win.coins { background: linear-gradient(160deg, #eaf6df, #dff0d3); border-color: #bfe0a8; }
.wc-lotto-win-h { font-family: var(--font-display); font-size: 19px; color: var(--wc-amber-deep); }
.wc-lotto-card.win.coins .wc-lotto-win-h { color: var(--wc-pitch); }
.wc-lotto-prize { font-family: var(--font-display); font-size: 17.5px; margin: 5px 0; }
.wc-lotto-code { font-size: 15px; margin: 5px 0; }
.wc-lotto-code b { font-family: var(--font-en); letter-spacing: 1px; color: var(--wc-amber-deep); }
.wc-lotto-redeem { font-size: 13px; color: var(--wc-soft); }
.wc-lotto-coins { font-size: 13.5px; color: var(--wc-pitch); margin-top: 5px; }

/* 抽奖机会过渡卡:提交竞猜后报喜,点击进入转盘 */
.wc-lotto-card.wc-gate { text-align: center; background: linear-gradient(160deg, #fff4d6, #ffe6b8); border-color: #eaba5a; padding: 18px 14px; }
.wc-gate-emoji { font-size: 40px; line-height: 1; animation: wc-gate-pop 0.5s cubic-bezier(0.22,1,0.36,1); }
@keyframes wc-gate-pop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.wc-gate-h { font-family: var(--font-display); font-size: 19px; color: var(--wc-amber-deep); margin-top: 6px; }
.wc-gate-sub { font-size: 14px; color: var(--wc-soft); margin: 4px 0 14px; }
.wc-gate-go { animation: wc-gate-cta 1.6s ease-in-out infinite; }
@keyframes wc-gate-cta { 0%,100% { transform: scale(1); box-shadow: 0 3px 9px rgba(58,125,44,0.3); } 50% { transform: scale(1.03); box-shadow: 0 5px 16px rgba(58,125,44,0.5); } }

/* 已抽奖标签 */
.wc-lotto-done-tag { display: inline-block; font-family: var(--font-display); font-size: 11.5px; color: #fff;
  background: var(--wc-pitch); padding: 3px 11px; border-radius: var(--radius-pill); margin-bottom: 7px; }

/* 「我的奖品」入口按钮(横幅下) */
.wc-myprizes-btn { flex: 0 0 auto; display: block; width: calc(100% - 24px); margin: 8px 12px 0; padding: 9px 14px;
  border: 1px solid #f0d28a; border-radius: var(--radius-pill); cursor: pointer; font-family: var(--font-zh);
  font-size: 14px; font-weight: 600; color: var(--wc-amber-deep); background: linear-gradient(160deg, #fff8e8, #fdeccb);
  box-shadow: var(--wc-sh-sm); }
.wc-myprizes-btn:active { transform: scale(0.99); }
/* [hidden] 默认 display:none 会被上面的 display 覆盖,显式补回(否则按钮在该隐藏时仍显示且点击无反应) */
.wc-myprizes-btn[hidden], .wc-lotto-banner[hidden] { display: none !important; }

/* 「我的奖品」弹层 */
.wc-mp-overlay { position: absolute; inset: 0; z-index: 50; background: rgba(40,30,20,0.5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: wc-mp-in 0.2s ease; }
@keyframes wc-mp-in { from { opacity: 0; } to { opacity: 1; } }
.wc-mp-card { position: relative; width: 100%; max-width: 380px; max-height: 80%; overflow-y: auto;
  background: var(--wc-cream); border-radius: var(--radius-lg); padding: 20px 16px 18px; box-shadow: var(--wc-sh-lg); }
.wc-mp-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--wc-border); background: var(--wc-card); color: var(--wc-soft); font-size: 17px; cursor: pointer; }
.wc-mp-h { font-family: var(--font-display); font-size: 18.5px; color: var(--wc-amber-deep); text-align: center; margin-bottom: 10px; }
.wc-mp-tip { font-size: 13px; color: var(--wc-soft); text-align: center; margin-bottom: 13px; line-height: 1.55; }
.wc-mp-item { background: var(--wc-card); border: 1px solid #f0d28a; border-radius: var(--radius-md); padding: 13px; margin-bottom: 10px; text-align: center; }
.wc-mp-item.done { opacity: 0.6; }
.wc-mp-pz { font-family: var(--font-display); font-size: 16px; color: var(--wc-ink); }
.wc-mp-code { font-family: var(--font-en); font-size: 25px; font-weight: 800; letter-spacing: 3px; color: var(--wc-amber-deep);
  background: #fff8e8; border: 1px dashed #eaba5a; border-radius: var(--radius-sm); padding: 9px; margin: 9px 0 7px; }
.wc-mp-st { font-size: 12.5px; color: var(--wc-soft); }
.wc-mp-item.done .wc-mp-st { color: var(--wc-pitch); font-weight: 700; }
.wc-mp-empty { text-align: center; color: var(--wc-soft); font-size: 14.5px; line-height: 1.7; padding: 26px 8px; }

/* 竞猜中心（2026-07-04）：横幅直达的全场次竞猜列表 */
.wc-lc-head { font-family: var(--font-display); font-size: 18px; color: var(--wc-pitch); text-align: center; margin: 2px 0 8px; }
.wc-lc-sub { font-size: 12.5px; color: var(--wc-soft); line-height: 1.7; text-align: center; margin-bottom: 14px; }
.wc-lc-sub b { color: var(--wc-pitch); }
.wc-lc-row {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left;
  background: linear-gradient(160deg, #fffdf6, #fdf6e4); border: 1px solid #ecd9a8;
  border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
  box-shadow: var(--wc-sh-sm);
}
.wc-lc-row:active { transform: scale(0.985); }
.wc-lc-teams { font-family: var(--font-display); font-size: 15.5px; color: var(--wc-ink, #333); }
.wc-lc-teams .vs { font-size: 11px; color: var(--wc-faint); margin: 0 2px; }
.wc-lc-meta { font-size: 11.5px; color: var(--wc-faint); }
.wc-lc-go { align-self: flex-end; font-family: var(--font-display); font-size: 13.5px; color: #b8860b; font-weight: 700; }
.wc-mp-sub { font-family: var(--font-display); font-size: 13px; color: var(--wc-soft); text-align: left; margin: 14px 2px 8px; }
.wc-mp-sub:first-of-type { margin-top: 4px; }
.wc-mp-coincard { background: linear-gradient(160deg, #eaf6df, #dff0d3); border: 1px solid #bfe0a8; border-radius: var(--radius-md); padding: 14px; text-align: center; }
.wc-mp-coin-amt { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--wc-pitch); display: flex; align-items: center; justify-content: center; gap: 6px; }
.wc-mp-coin-sub { font-size: 12.5px; color: var(--wc-soft); margin-top: 5px; }
.wc-mp-note { font-size: 12px; color: var(--wc-amber-deep); background: #fff5dc; border: 1px solid #f0d28a; border-radius: var(--radius-sm); padding: 9px 11px; margin-top: 12px; line-height: 1.5; text-align: center; }
.wc-mp-deadline { font-size: 12.5px; font-weight: 700; color: #8a6d1a; background: #fff8e1; border: 1.5px solid #f2c14e; border-radius: var(--radius-md); padding: 8px 11px; margin: 0 0 8px; line-height: 1.5; text-align: center; }
.wc-mp-deadline b { color: #7a5c0f; }
.wc-mp-summary { font-size: 13px; color: var(--wc-soft); text-align: center; background: #f6efe0; border-radius: var(--radius-md); padding: 9px 12px; margin: 2px 0 6px; line-height: 1.5; }
.wc-mp-summary b { color: var(--wc-pitch); font-family: var(--font-display); }
.wc-mp-rec-m { font-size: 12.5px; color: var(--wc-soft); margin-bottom: 5px; }
.wc-mp-correct { color: var(--wc-pitch); font-weight: 700; }
.wc-mp-coinrec { background: linear-gradient(160deg, #eaf6df, #dff0d3); border: 1px solid #bfe0a8; border-radius: var(--radius-md); padding: 11px 13px; margin-bottom: 9px; text-align: left; }
.wc-mp-rec-p { font-family: var(--font-display); font-size: 15px; color: var(--wc-pitch); display: flex; align-items: center; gap: 5px; }
.wc-mp-item { text-align: left; }
.wc-mp-item .wc-mp-pz, .wc-mp-item .wc-mp-code, .wc-mp-item .wc-mp-st { text-align: center; }

/* ===================== LUCKY WHEEL (转盘揭晓) ===================== */
.wc-wheel-card { text-align: center;
  --wc-wheel-size: min(300px, 80vw);
  --wc-wheel-r:    calc(var(--wc-wheel-size) * 0.30);   /* 图标轨道半径 */
  --wc-wheel-dotr: calc(var(--wc-wheel-size) * 0.452);  /* 灯珠半径 */
}
.wc-wheel-title { font-family: var(--font-display); font-size: 17px; color: var(--wc-amber-deep); }
.wc-wheel-sub { font-size: 13.5px; color: var(--wc-soft); margin: 3px 0 13px; }

.wc-wheel-stage { position: relative; width: var(--wc-wheel-size); height: var(--wc-wheel-size); margin: 0 auto; }

/* pointer */
.wc-wheel-ptr { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); z-index: 6;
  width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-top: 23px solid var(--wc-live); filter: drop-shadow(0 2px 3px rgba(0,0,0,0.28)); }
.wc-wheel-ptr::after { content: ''; position: absolute; top: -30px; left: -8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--wc-live); box-shadow: 0 2px 4px rgba(0,0,0,0.25); }

/* gold ring */
.wc-wheel-ring { position: absolute; inset: 0; border-radius: 50%; padding: 11px;
  background: conic-gradient(from 0deg, #f6c66b, #e8a838, #f6c66b, #e8a838, #f6c66b, #e8a838, #f6c66b);
  box-shadow: 0 9px 24px rgba(120,80,20,0.32), inset 0 2px 6px rgba(255,255,255,0.5); }
.wc-wheel-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.55); pointer-events: none; z-index: 5; }
.wc-wheel-dot { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 4px rgba(0,0,0,0.2); z-index: 5; }

/* colored disc (spins) */
/* 6 格交替：沙琪玛(琥珀) / 龙角散(绿) —— 顺序须与 worldcup.js 的 WHEEL_SEGS 一致 */
.wc-wheel-disc { position: absolute; inset: 11px; border-radius: 50%; will-change: transform;
  background: conic-gradient(from 0deg,
    var(--wc-amber) 0 60deg, var(--wc-pitch-soft) 60deg 120deg, var(--wc-amber) 120deg 180deg,
    var(--wc-pitch-soft) 180deg 240deg, var(--wc-amber) 240deg 300deg, var(--wc-pitch-soft) 300deg 360deg);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.85), inset 0 0 28px rgba(0,0,0,0.12); }
.wc-wheel-disc::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0) 0 59.3deg, rgba(255,255,255,0.85) 59.3deg 60deg); }

/* labels layer (spins together; each icon counter-rotates to stay upright) */
.wc-wheel-labels { position: absolute; inset: 11px; will-change: transform; }
.wc-wheel-lab { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-origin: 0 0; }
.wc-wheel-lab .li { position: absolute; left: 0; top: 0; width: calc(var(--wc-wheel-size) * 0.27);
  display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none; }
.wc-wheel-lab .ic { display: flex; align-items: center; justify-content: center;
  height: calc(var(--wc-wheel-size) * 0.17); }
.wc-wheel-photo { width: calc(var(--wc-wheel-size) * 0.16); height: calc(var(--wc-wheel-size) * 0.16);
  border-radius: 50%; object-fit: cover; background: #fff; display: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.28), inset 0 0 0 2px #fff; }
.wc-wheel-photo.ok { display: block; }
.wc-wheel-photo.ok + .wc-wheel-emoji { display: none; }
.wc-wheel-emoji { font-size: calc(var(--wc-wheel-size) * 0.115); line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.18)); }
.wc-wheel-coin { font-size: calc(var(--wc-wheel-size) * 0.13); display: inline-flex; }
.wc-wheel-lab .tx { font-size: calc(var(--wc-wheel-size) * 0.05); font-weight: 800;
  white-space: nowrap; line-height: 1.05; }
.wc-wheel-lab .tx.on-dark { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.wc-wheel-lab .tx.on-light { color: var(--wc-ink); }
.wc-wheel-lab .tx .amt { font-size: calc(var(--wc-wheel-size) * 0.058); color: var(--wc-amber-deep); }

/* center hub button */
.wc-wheel-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 4;
  width: calc(var(--wc-wheel-size) * 0.27); height: calc(var(--wc-wheel-size) * 0.27);
  border-radius: 50%; border: 4px solid #fff; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, var(--wc-pitch-soft), var(--wc-pitch));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(58,125,44,0.45); transition: transform 0.12s; }
.wc-wheel-hub:active { transform: translate(-50%,-50%) scale(0.94); }
.wc-wheel-hub .go { color: #fff; font-family: var(--font-display); font-size: 18px; line-height: 1; }
.wc-wheel-hub .gs { color: #eaffd9; font-size: 10.5px; margin-top: 2px; }
.wc-wheel-hub.spinning { animation: wc-hub-pulse 0.6s ease-in-out infinite; }
@keyframes wc-hub-pulse { 0%,100% { box-shadow: 0 4px 12px rgba(58,125,44,0.45); } 50% { box-shadow: 0 4px 20px rgba(106,176,76,0.8); } }

.wc-wheel-result { margin-top: 12px; }

/* ===================== HERO 首屏大转盘 (2026-07-08) ===================== */
.wc-hero { margin: 10px 12px 2px; }
.wc-hero[hidden] { display: none !important; }
.wc-hero-card { position: relative; text-align: center;
  background: linear-gradient(165deg, #fff8e8, #fdeccb);
  border: 1px solid #f0d28a; border-radius: 16px; padding: 15px 14px 14px;
  box-shadow: 0 6px 20px rgba(160,110,20,0.14); }
.wc-hero-card.ready::before { content: ''; position: absolute; inset: 0; border-radius: 16px;
  box-shadow: inset 0 0 0 2px rgba(246,198,107,0.55); pointer-events: none; }
.wc-hero-h { font-family: var(--font-display); font-size: 19px; color: var(--wc-amber-deep); letter-spacing: 0.3px; }
.wc-hero-sub { font-size: 13px; color: var(--wc-soft); margin: 5px 4px 0; line-height: 1.55; }
.wc-hero-sub b { color: var(--wc-amber-deep); font-weight: 800; }
/* 可选「猜晋级」区 */
.wc-hero-guess { margin: 12px 0 2px; padding: 11px 6px 2px; border-top: 1px dashed #ecd39a; }
.wc-hero-guess-t { font-size: 13px; color: var(--wc-ink); font-weight: 700; margin-bottom: 9px; }
.wc-hero-guess-t span { font-weight: 500; font-size: 11.5px; color: var(--wc-soft); margin-left: 4px; }
.wc-hero .wc-lotto-picks { margin-bottom: 2px; }
/* 转盘(hero 内略小,避免吃满屏) */
.wc-hero-wheel { --wc-wheel-size: min(240px, 62vw);
  --wc-wheel-r: calc(var(--wc-wheel-size) * 0.30);
  --wc-wheel-dotr: calc(var(--wc-wheel-size) * 0.452);
  text-align: center; margin: 10px auto 2px; }
.wc-hero-foot { margin-top: 12px; font-size: 12.5px; color: var(--wc-soft); line-height: 1.5; }
.wc-hero-foot .vs { color: var(--wc-amber-deep); font-weight: 700; margin: 0 2px; }
/* hero 按钮 */
.wc-hero-btn { display: inline-block; margin: 11px 4px 2px; padding: 11px 20px;
  font-family: var(--font-display); font-size: 15.5px; color: #fff; text-decoration: none;
  background: linear-gradient(160deg, #6ab04c, var(--wc-pitch)); border: none; border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(58,125,44,0.35); cursor: pointer; transition: transform 0.12s; }
.wc-hero-btn:active { transform: scale(0.97); }
.wc-hero-btn.ghost { background: #fff; color: var(--wc-pitch); box-shadow: inset 0 0 0 1.5px #cfe6bf; }
.wc-hero-btn.again { animation: wc-gate-cta 1.6s ease-in-out infinite; }

/* ===================== STREAK TOAST (easter egg) ===================== */
.wc-streak {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%) translateY(-10px); z-index: 7200;
  background: linear-gradient(160deg, var(--wc-amber), var(--wc-amber-deep)); color: #4a2e00;
  font-family: var(--font-display); font-size: 14px; padding: 11px 19px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 22px rgba(217,132,16,0.4); opacity: 0; pointer-events: none; white-space: nowrap;
}
.wc-streak.show { animation: wc-streak 2.8s ease forwards; }
@keyframes wc-streak { 0%{opacity:0;transform:translateX(-50%) translateY(-10px) scale(0.9)} 12%,80%{opacity:1;transform:translateX(-50%) translateY(0) scale(1)} 100%{opacity:0;transform:translateX(-50%) translateY(-8px)} }

/* mini confetti for easter eggs */
.wc-confetti { position: fixed; inset: 0; z-index: 7100; pointer-events: none; overflow: hidden; }
.wc-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: wc-fall linear forwards; }
@keyframes wc-fall { to { transform: translateY(110vh) rotate(540deg); opacity: 0.2; } }

/* ===================== SPLASH ENTRY (login page) ===================== */
.splash-wc {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 10px 0 2px; padding: 12px 15px; cursor: pointer; text-align: left;
  border: 1px solid #f0d28a; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2f7a3f 0%, #36812f 100%);
  color: #fff; box-shadow: 0 6px 16px rgba(40,90,30,0.3); position: relative; overflow: hidden;
  transition: transform 0.15s;
}
.splash-wc:active { transform: scale(0.98); }
.splash-wc::after { content: ""; position: absolute; right: -20px; top: -28px; width: 110px; height: 110px; background: radial-gradient(circle, rgba(244,167,44,0.5), transparent 70%); pointer-events: none; }
.splash-wc .splash-wc-emblem { height: 54px; width: auto; flex: none; object-fit: contain; position: relative; background: #fffdf6; border-radius: 12px; padding: 5px 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
/* Each text row is its own block so they never reflow into one run on narrow
   screens; padding-right on the first cluster keeps the title clear of the
   absolute LIVE pill (audit B3 P1). */
.splash-wc-txt { position: relative; line-height: 1.2; flex: 1; min-width: 0; padding-right: 42px; }
.splash-wc-zh { display: block; font-family: var(--font-display); font-size: 17px; }
.splash-wc-en { display: block; font-family: var(--font-en); font-size: 10px; letter-spacing: 1.4px; font-weight: 700; color: #ffe9bf; text-transform: uppercase; margin-top: 3px; }
.splash-wc-sub { display: block; font-size: 12px; color: #d9eccf; margin-top: 4px; }
.splash-wc-go { position: relative; flex: none; font-size: 22px; color: #ffe9bf; }
.splash-wc-pill { position: absolute; top: 8px; right: 12px; font-family: var(--font-en); font-size: 9px; font-weight: 700; letter-spacing: 0.5px; background: var(--wc-live); color: #fff; padding: 3px 8px; border-radius: var(--radius-pill); }

/* ≤380px: tighten the whole banner and drop the meta line so the title +
   subtitle stay legible instead of mashing together (audit B3 P1). */
@media (max-width: 380px) {
  .splash-wc { padding: 10px 12px; gap: 9px; }
  .splash-wc-emblem { height: 44px; }
  .splash-wc-txt { padding-right: 34px; }
  .splash-wc-zh { font-size: 14.5px; }
  .splash-wc-en { font-size: 9px; letter-spacing: 1px; margin-top: 2px; }
  .splash-wc-sub { display: none; }
  .splash-wc-pill { top: 6px; right: 8px; font-size: 8px; padding: 2px 6px; }
  .splash-wc-go { font-size: 19px; }
}

/* persistent re-entry button on the farm (after splash dismissed) */
#wcReentry {
  position: fixed; z-index: 60; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom));
  width: 54px; height: 54px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: linear-gradient(150deg, var(--wc-pitch-soft), var(--wc-pitch));
  box-shadow: 0 4px 12px rgba(40,90,30,0.4); display: flex; align-items: center; justify-content: center;
  font-size: 25px; transition: transform 0.15s;
}
#wcReentry:active { transform: scale(0.9); }
#wcReentry .wcre-dot { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--wc-live); border: 2px solid #fff; }

@media (max-width: 380px) {
  .wc-team .nm .en { display: none; }
  .wc-focus-team .fl { font-size: 34px; }
  .wc-lotto-banner .bn-l1 { font-size: 13px; }
  .wc-lotto-banner .bn-l2 { font-size: 16.5px; }
  .wc-match-lotto { font-size: 13.5px; }
}

/* 尊重系统「减弱动态效果」:关掉横幅脉动 / CTA 呼吸 / ping 等循环动画(转盘的单次揭晓动画
   保留,它是功能性的一次性反馈,但加速收尾)。专业 + 无障碍。 */
@media (prefers-reduced-motion: reduce) {
  .wc-lotto-banner { animation: none !important; }
  .wc-gate-go { animation: none !important; }
  .wc-gate-emoji { animation: none !important; }
  .wc-hero-btn.again { animation: none !important; }
  .wc-pulse::after { animation: none !important; }
  #wc-hub *, #wc-hub *::before, #wc-hub *::after { scroll-behavior: auto !important; }
}

/* ===== 收官 / 退场（2026-07-11）===== */
/* 开屏横幅「LIVE」→「回顾」：从赛事红降为安静的灰绿 */
.splash-wc-pill.done { background: #8a9b8e; }
/* 农场 ⚽ 重入按钮收官降级：去红点、降饱和，读作「回顾」而非「正在直播」 */
#wcReentry.wcre-quiet { opacity: 0.82; filter: saturate(0.75); }
#wcReentry.wcre-quiet .wcre-dot { display: none; }
/* 收官卡：个人战绩行 + 待领实物置顶提醒 */
.wc-wrap-stats { margin-top: 8px; }
.wc-wrap-line { display: block; font-size: 12.5px; color: #5d6b57; line-height: 1.6; }
.wc-wrap-pending {
  margin: 4px auto 8px; padding: 8px 12px; max-width: 320px;
  background: #fff8e1; border: 1.5px solid #f2c14e; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: #8a6d1a; line-height: 1.5;
}
