/* ============================================================
   Pimi World Cup — expanded public-hub styles.
   Builds on styles.css tokens + worldcup.css. All colours come
   from Pimi design tokens; only the sweepstakes highlight is new.
   ============================================================ */
:root {
  --wc-live: #16a34a;
  --wc-live-dim: rgba(22, 163, 74, 0.10);
  --wc-live-line: rgba(22, 163, 74, 0.26);
  --wc-sweep: #6d5ae6;
  --wc-sweep-dim: rgba(109, 90, 230, 0.10);
  --wc-sweep-line: rgba(109, 90, 230, 0.30);
  --wc-gap: clamp(16px, 2vw, 22px);
  --wc-pad: clamp(18px, 2.5vw, 48px);
}

/* ---- App shell ---- */
.worldcup-app { background: var(--bg); }

/* Buttons — follow the canonical Pimi Buttons style guide:
   sans, sentence case, 13/12/15px — NOT uppercase mono.
   Scoped to the World Cup surface; excludes card/row/pill buttons. */
.worldcup-app .btn:not(.wc-fx-team, .wc-spot-match, .wc-scorer-row, .wc-livemini, .wc-mini-head, .wc-mini-row, .wc-bk-side, .wc-team-card, .wc-goalbar, .wc-pick-chip, .wc-cell-team, .wc-draft-chip, .wc-bottomnav-item, .wc-team-pillbtn) {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}
.worldcup-app .btn.sm:not(.wc-fx-team, .wc-spot-match, .wc-scorer-row, .wc-livemini, .wc-mini-head, .wc-mini-row, .wc-bk-side, .wc-team-card, .wc-goalbar, .wc-pick-chip, .wc-cell-team, .wc-draft-chip, .wc-bottomnav-item, .wc-team-pillbtn) {
  font-size: 12px;
}
.worldcup-app .btn.lg:not(.wc-fx-team, .wc-spot-match, .wc-scorer-row, .wc-livemini, .wc-mini-head, .wc-mini-row, .wc-bk-side, .wc-team-card, .wc-goalbar, .wc-pick-chip, .wc-cell-team, .wc-draft-chip, .wc-bottomnav-item, .wc-team-pillbtn) {
  font-size: 15px;
}

/* Segmented / range selectors — canonical soft segmented labels. */
.worldcup-app .seg-btn {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
}
.wc-main { padding-bottom: 0; }
.wc-page { position: relative; min-height: 100%; padding: 0 0 64px; }

.wc-booting { place-items: center; }
/* transparent boot loader — no boxed card around it */
.worldcup-app.wc-booting { background: var(--bg); }
.worldcup-app.wc-booting .loading-screen { background: transparent; min-height: 100vh; width: 100%; }
.wc-boot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: auto; }
.wc-boot-title { margin-top: 14px; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.wc-boot-sub { color: var(--muted); font-size: 13px; max-width: 320px; }

/* ---- Sidebar tweaks ---- */
.wc-brand-badge {
  margin-left: auto; padding: 3px 7px; border: 1px solid var(--border-2); border-radius: 6px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); background: var(--accent-dim);
}
/* sidebar uses the real Pimi mechanism (sliding indicator + floating icon);
   labels can wrap to two lines for the longer World Cup item names */
.worldcup-sidebar .sb-nav-full { white-space: normal; line-height: 1.25; }
.worldcup-sidebar .sb-nav-item { align-items: center; min-height: 36px; }
.worldcup-sidebar-note {
  margin: 12px 8px 0; padding: 10px 11px; border-radius: 10px;
  background: var(--surface-2); color: var(--muted); font-size: 11px; line-height: 1.45;
}
.wc-sidebar-feedback {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 8px 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.wc-feedback-label {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.wc-sidebar-feedback textarea {
  min-height: 84px;
  padding: 9px 10px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  resize: vertical;
}
.wc-sidebar-feedback textarea::placeholder { color: var(--dim); }
.wc-sidebar-feedback textarea:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.wc-feedback-submit {
  width: 100%;
  margin-top: 2px;
}
.wc-feedback-state {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}
.wc-feedback-state.success { color: var(--wc-live); display: inline-flex; align-items: center; gap: 5px; }
.wc-feedback-state.error { color: var(--down); }
.wc-feedback-state.success svg { color: var(--wc-live); }
.wc-feedback-loading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.wc-sidebar-feedback.sent,
.wc-sidebar-feedback.sending { gap: 7px; }

.wc-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.wc-foot-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text); }
.wc-foot-host { font-size: 10px; color: var(--muted); }

/* live dot */
.wc-livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--wc-live); display: inline-block; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); animation: wc-pulse 1.8s infinite; }
@keyframes wc-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.45); } 70% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .wc-livedot { animation: none; } }

/* ---- Flags ---- */
.wc-flag { display: inline-block; flex: 0 0 auto; border-radius: 50%; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(10,12,16,0.12), 0 1px 2px rgba(15,23,42,0.12); }
.wc-flag-empty { display: grid; place-items: center; background: var(--surface-2); color: var(--dim);
  font-family: var(--mono); font-size: 11px; box-shadow: inset 0 0 0 1px var(--border-2); }
.wc-flagcode { display: inline-flex; align-items: center; gap: 7px; }
.wc-flagcode .mono { font-size: 11px; color: var(--text-2); }
.wc-player-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-2), 0 1px 2px rgba(15,23,42,0.10);
}
.wc-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wc-player-avatar.fallback {
  background: var(--accent-dim);
  color: var(--accent);
  line-height: 1;
}
.wc-player-avatar.fallback b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.wc-player-avatar.fallback small {
  display: none;
}

/* status chip */
.wc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.wc-chip-live { border-color: var(--wc-live-line); background: var(--wc-live-dim); color: #15803d; font-weight: 600; }
.wc-chip-finished { color: var(--text-2); }
.wc-grouptag { font-size: 10px; color: var(--dim); letter-spacing: 0.05em; text-transform: uppercase; }

/* ---- Hero ---- */
.wc-hero { padding: clamp(28px, 3.5vw, 44px) var(--wc-pad) clamp(22px, 2.6vw, 30px); }
.wc-hero-main { min-width: 0; }
.wc-hero-actions, .wc-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.wc-statuspill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--wc-live-line); background: var(--wc-live-dim); color: #15803d; font-size: 12px; font-weight: 600; }
.wc-updated { color: var(--dim); font-size: 11px; }
.wc-hero-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: clamp(280px, 31vw, 340px); align-items: stretch; }
/* ---- Hero stat cards (Fixtures / Teams / Live / Groups) ---- */
.worldcup-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  min-width: 0;
  padding: 15px 16px 14px;
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  appearance: none;
  transition: transform .2s cubic-bezier(.4,1.1,.4,1), box-shadow .2s, border-color .18s;
}
.worldcup-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--wc-stat-accent, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
  z-index: 2;
}
.worldcup-stat:hover { transform: translateY(-2px); border-color: var(--border-3); box-shadow: 0 6px 16px rgba(15,23,42,0.07), 0 16px 36px rgba(15,23,42,0.05); }
.worldcup-stat:hover::before { transform: scaleX(1); }
.worldcup-stat:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-line); }
.wc-stat-watermark {
  position: absolute;
  right: -16px;
  bottom: -20px;
  color: var(--wc-stat-accent, var(--accent));
  opacity: 0.08;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.worldcup-stat:hover .wc-stat-watermark { transform: scale(1.08) rotate(-6deg); opacity: 0.12; }
.wc-stat-top { display: flex; align-items: center; width: 100%; margin-bottom: 14px; }
.worldcup-stat-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--wc-stat-accent, var(--accent));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 4px 10px var(--wc-stat-glow, rgba(37,99,235,0.26));
}
.wc-stat-livedot { margin-left: 7px; display: inline-flex; }
.wc-stat-arrow {
  margin-left: auto;
  color: var(--wc-stat-accent, var(--accent));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.worldcup-stat:hover .wc-stat-arrow { opacity: 1; transform: translateX(0); }
.worldcup-stat-v { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.worldcup-stat-l { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--text); margin-top: 6px; }
.wc-stat-sub { font-size: 9.5px; color: var(--dim); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 3px; }
.worldcup-stat.tone-blue   { --wc-stat-accent: var(--accent); --wc-stat-glow: rgba(37,99,235,0.26);  background: linear-gradient(165deg, rgba(37,99,235,0.10), var(--surface) 60%); }
.worldcup-stat.tone-cyan   { --wc-stat-accent: #0891b2;       --wc-stat-glow: rgba(8,145,178,0.26);  background: linear-gradient(165deg, rgba(8,145,178,0.10), var(--surface) 60%); }
.worldcup-stat.tone-green  { --wc-stat-accent: var(--wc-live); --wc-stat-glow: rgba(22,163,74,0.26);  background: linear-gradient(165deg, rgba(22,163,74,0.10), var(--surface) 60%); }
.worldcup-stat.tone-violet { --wc-stat-accent: var(--wc-sweep);--wc-stat-glow: rgba(109,90,230,0.26); background: linear-gradient(165deg, rgba(109,90,230,0.10), var(--surface) 60%); }
.wc-stat.accent { border-color: var(--wc-live-line); }
.wc-stat.accent .worldcup-stat-v { color: #15803d; }

/* ---- Layout grids ---- */
.wc-grid { display: grid; gap: var(--wc-gap); padding: var(--wc-gap) var(--wc-pad) 0; }
.wc-grid-overview { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); }
.wc-grid-match { grid-template-columns: 1fr 1fr; }
.wc-grid-team { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr); }
.wc-grid-stats { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr); }
.wc-col-main { display: flex; flex-direction: column; gap: var(--wc-gap); min-width: 0; }
.wc-col-side { display: flex; flex-direction: column; gap: var(--wc-gap); min-width: 0; }
.wc-panel { border-radius: 16px; }
.wc-panel.wc-fullbleed { margin: var(--wc-gap) var(--wc-pad) 0; }
.wc-panel-headright { display: inline-flex; align-items: center; gap: 12px; }
.wc-link.btn, .wc-inline-link.btn { gap: 6px; }
.wc-link.btn.sm, .wc-inline-link.btn.sm { font-size: 11.5px; }
.wc-inline-link.center { margin-top: 4px; }
.btn.wc-inline-link.center { display: inline-flex; }
.btn.wc-fx-team,
.btn.wc-spot-match,
.btn.wc-scorer-row,
.btn.wc-livemini,
.btn.wc-mini-head,
.btn.wc-mini-row,
.btn.wc-bk-side,
.btn.wc-team-card,
.btn.wc-goalbar,
.btn.wc-pick-chip,
.btn.wc-cell-team,
.btn.wc-draft-chip,
.btn.wc-bottomnav-item,
.btn.wc-team-pillbtn {
  height: auto;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
}

/* ---- Subhead ---- */
.wc-subhead { display: flex; align-items: center; gap: 14px; padding: 16px var(--wc-pad) 0; }
.wc-back { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; }
.wc-back:hover { border-color: var(--border-3); color: var(--text); }
.wc-crumbs { font-size: 11px; color: var(--dim); }
.wc-subhead-right { margin-left: auto; }

/* ---- Fixture card ---- */
.wc-fx-list { display: grid; gap: 10px; }
.wc-fx { position: relative; overflow: hidden; cursor: pointer; padding: 17px 18px; transition: border-color .18s, box-shadow .2s, transform .2s cubic-bezier(.4,1.1,.4,1); }
.wc-fx::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; z-index: 1; }
.wc-fx:hover { border-color: var(--border-3); box-shadow: 0 6px 16px rgba(15,23,42,0.07), 0 18px 40px rgba(15,23,42,0.06); transform: translateY(-2px); }
.wc-fx:hover::before { transform: scaleX(1); }
.wc-fx:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.wc-fx.owned { border-color: var(--wc-sweep-line); background: linear-gradient(180deg, var(--wc-sweep-dim), var(--paper) 60%); }
.wc-fx.owned::before { background: var(--wc-sweep); }
.wc-fx.live::before { background: var(--wc-live); transform: scaleX(1); }
.wc-fx-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wc-fx-top .mono { font-size: 10px; color: var(--dim); letter-spacing: 0.04em; text-transform: uppercase; }
.wc-fx-main { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 10px; margin: 20px 0 18px; }
.wc-fx-team { min-width: 0; height: auto; padding: 0; display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--text); border: 0; background: transparent; }
.wc-fx-team.side-away { flex-direction: row-reverse; text-align: right; }
.wc-fx-team-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.wc-fx-team:hover { transform: none; box-shadow: none; border-color: transparent; background: transparent; }
.btn.wc-fx-team:active { transform: none !important; }
.btn.wc-fx-team:focus-visible { box-shadow: none; outline: 2px solid var(--accent-line); outline-offset: 3px; border-radius: 7px; }
.wc-fx-team:hover .wc-fx-team-name { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.wc-fx-team.lose { color: var(--muted); }
.wc-fx-team.win .wc-fx-team-name { font-weight: 700; }
.wc-fx-mid { display: grid; place-items: center; }
.wc-fx-score { font-size: 20px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 7px; }
.wc-fx-score i { color: var(--dim); font-style: normal; font-weight: 400; }
.wc-fx-vs { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.wc-fx-vs b { font-size: 15px; color: var(--text); }
.wc-fx-vs small { font-size: 9.5px; color: var(--accent); letter-spacing: 0.04em; }
.wc-fx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--dim);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; }
.wc-fx-meta span { display: inline-flex; align-items: center; gap: 5px; }
.wc-fx-meta svg { color: var(--dim); }
.wc-owned-tag { color: var(--wc-sweep); }
.wc-owned-tag svg { color: var(--wc-sweep); }

/* ---- Overview: spotlight ---- */
.wc-spotlight { background: linear-gradient(180deg, rgba(37,99,235,0.05), var(--surface) 55%); }
.wc-spot-count { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.wc-spot-count .num { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.wc-spot-count small { color: var(--muted); font-size: 11px; }
.wc-spot-match { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.wc-spot-match:hover { border-color: var(--accent-line); }
.wc-spot-team { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; }
.wc-spot-team.right { flex-direction: row-reverse; text-align: right; }
.wc-spot-team b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-spot-v { color: var(--dim); font-size: 10px; }
.wc-spot-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 10px; color: var(--muted); }
.wc-spot-meta span::before { content: ""; }

/* sweep cta + your teams */
.wc-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wc-yourteams-grid { display: grid; gap: 10px; }
.wc-yt-card { text-align: left; padding: 12px; border: 1px solid var(--wc-sweep-line); border-radius: 12px; background: var(--wc-sweep-dim); }
.wc-yt-card:hover { background: rgba(109,90,230,0.14); }
.wc-yt-head { display: flex; align-items: center; gap: 10px; }
.wc-yt-head b { font-size: 13.5px; display: block; }
.wc-yt-head small { color: var(--muted); font-size: 10.5px; }
.wc-yt-next { margin-top: 8px; font-size: 10.5px; color: var(--text-2); }

/* mini standings grid + qualified grid */
.wc-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.wc-qual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.wc-qual-chip { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); }
.wc-qual-chip:hover { border-color: var(--border-3); background: var(--mist); }
.wc-qual-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.wc-qual-grp { color: var(--dim); font-size: 11px; }

/* ---- Mini standing ---- */
.wc-mini { border: 1px solid var(--border); border-radius: 12px; background: var(--paper); overflow: hidden; }
.wc-mini-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface); text-align: left; }
.wc-mini-head:hover { background: var(--mist); }
.wc-mini-head:focus-visible { outline: 2px solid var(--accent-line); outline-offset: -2px; }
.wc-mini-title { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--text); }
.wc-mini-head:hover .wc-mini-title { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.wc-livetag { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: #15803d; text-transform: uppercase; letter-spacing: 0.06em; }
.wc-mini-rows { padding: 4px; }
.wc-mini-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) 26px 34px 32px; align-items: center; gap: 4px;
  padding: 6px 8px; border-radius: 7px; font-size: 12px; text-align: left; }
.wc-mini-row:not(.head):hover { background: var(--mist); }
.wc-mini-row.head { font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 8px; }
.wc-mini-row.head span { text-align: center; }
.wc-mini-row.head .wc-mini-rank, .wc-mini-row.head .wc-mini-team { text-align: left; }
.wc-mini-row .num { text-align: center; font-size: 12px; color: var(--text-2); }
.wc-mini-rank { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.wc-mini-team { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.wc-mini-name { font-weight: 600; color: var(--text); }
.wc-mini-pts { font-weight: 700; color: var(--text) !important; }
.wc-mini-row.owned { background: var(--wc-sweep-dim); }
.wc-mini-row.hl { background: var(--accent-dim); }

/* qual dots */
.wc-qualdot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; background: var(--border-3); }
.wc-qual-qualified, .wc-qual-advancing { background: var(--wc-live); }
.wc-qual-possible { background: var(--warn); }
.wc-qual-third { background: var(--accent-2); }
.wc-qual-trailing { background: var(--border-3); }
.wc-qual-eliminated { background: var(--down); }

/* ---- Fixtures filters ---- */
.wc-filterbar { display: flex; flex-direction: column; gap: 12px; padding: 18px var(--wc-pad) 0; }
.wc-filterbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wc-fixtures-body { padding: 18px var(--wc-pad) 0; display: flex; flex-direction: column; gap: 20px; }
.wc-day { display: flex; flex-direction: column; gap: 10px; }
.wc-day-head { display: flex; align-items: center; gap: 12px; }
.wc-day-label { font-family: var(--serif); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.wc-day-rule { flex: 1; height: 1px; background: var(--border); }
.wc-day-count { font-size: 10px; color: var(--dim); white-space: nowrap; }

/* ---- Match page ---- */
.wc-match-hero { padding: 22px var(--wc-pad); border-bottom: 1px solid var(--border);
  background: radial-gradient(120% 120% at 50% 0%, rgba(37,99,235,0.06), transparent 60%), var(--surface); }
.wc-match-scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px,4vw,48px); max-width: 720px; margin: 0 auto; }
.wc-match-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wc-match-team-name { font-family: var(--serif); font-size: clamp(16px,2vw,22px); font-weight: 600; text-align: center; letter-spacing: -0.02em; }
.wc-match-team:hover .wc-match-team-name { color: var(--accent); }
.wc-match-team-code { font-size: 10px; color: var(--dim); }
.wc-match-center { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.wc-match-score { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; display: inline-flex; gap: 10px; }
.wc-match-score i { color: var(--dim); font-style: normal; font-weight: 300; }
.wc-match-kotime { font-size: 30px; font-weight: 700; color: var(--text); }
.wc-match-ht { font-size: 10px; color: var(--muted); }
.wc-match-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; font-size: 11px; color: var(--muted); }
.wc-match-facts span { display: inline-flex; align-items: center; gap: 6px; }
.wc-match-result { color: var(--accent) !important; font-weight: 600; }

.wc-tabs { display: flex; gap: 4px; padding: 0 var(--wc-pad); margin-top: 16px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.wc-tab { height: 42px; padding: 0 16px; color: var(--muted); font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.wc-tab:hover { color: var(--text); }
.wc-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.wc-match-body { padding-top: var(--wc-gap); }
.wc-match-body .wc-grid { padding-top: 0; }

.wc-summary-grid { display: flex; flex-direction: column; }
.wc-sumrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.wc-sumrow:last-child { border-bottom: none; }
.wc-sumrow span { color: var(--muted); font-size: 12.5px; }
.wc-sumrow b { font-size: 13.5px; color: var(--text); }
.wc-summary-grid .worldcup-muted { margin-top: 10px; }

.wc-keyevents { display: flex; flex-direction: column; gap: 2px; }
.wc-keyevent { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.wc-keyevent:last-child { border-bottom: none; }
.wc-ev-min { font-size: 11px; color: var(--muted); min-width: 34px; }
.wc-ev-player { flex: 1; font-size: 13px; font-weight: 500; }
.wc-ev-ic { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; flex: 0 0 auto; }
.wc-ev-ic.goal { background: var(--wc-live-dim); color: var(--wc-live); }
.wc-ev-ic.yellow { background: #f5c518; }
.wc-ev-ic.red { background: var(--down); }
.wc-ev-ic.sub { background: var(--accent-dim); color: var(--accent); }
.wc-ev-ic.half { background: var(--surface-2); color: var(--muted); }

/* timeline */
.wc-timeline { position: relative; padding: 6px 0; }
.wc-timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border); transform: translateX(-0.5px); }
.wc-tl-row { display: flex; margin: 8px 0; }
.wc-tl-row.left { justify-content: flex-start; padding-right: calc(50% + 16px); }
.wc-tl-row.right { justify-content: flex-end; padding-left: calc(50% + 16px); }
.wc-tl-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--paper); max-width: 320px; }
.wc-tl-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wc-tl-text b { font-size: 13px; }
.wc-tl-text small { font-size: 10.5px; color: var(--muted); }
.wc-tl-team { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--dim); margin-top: 2px; }
.wc-tl-min { font-size: 11px; color: var(--text); font-weight: 600; margin-left: auto; }
.wc-tl-half { display: flex; justify-content: center; margin: 12px 0; }
.wc-tl-half span { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; position: relative; z-index: 1; }

/* lineups */
.wc-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px,3vw,40px); }
.wc-lineup-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.wc-lineup-head b { font-size: 14px; display: block; }
.wc-lineup-head small { color: var(--muted); font-size: 10.5px; }
.wc-lineup-group { margin-bottom: 14px; }
.wc-lineup-grouplabel { display: block; font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.wc-player-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 6px; }
.wc-player-row:hover { background: var(--mist); }
.wc-player-row.sub { opacity: 0.78; }
.wc-player-num { font-size: 11px; color: var(--muted); text-align: center; }
.wc-player-name { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.wc-cap { font-size: 8px; font-weight: 700; font-style: normal; background: var(--accent); color: #fff; border-radius: 3px; padding: 1px 3px; letter-spacing: 0.04em; }
.wc-player-pos { font-size: 10px; color: var(--dim); }
.wc-player-pos.gk { color: var(--warn); }

/* stats */
.wc-stats-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 13px; }
.wc-stats-head span { display: inline-flex; align-items: center; gap: 8px; }
.wc-stats-list { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.wc-statrow { display: grid; grid-template-columns: 44px 1fr 44px; grid-template-areas: "ln lbl rn" "tr tr tr"; align-items: center; gap: 4px 8px; }
.wc-stat-num.left { grid-area: ln; text-align: left; }
.wc-stat-num.right { grid-area: rn; text-align: right; }
.wc-stat-num { font-size: 13px; font-weight: 600; }
.wc-stat-label { grid-area: lbl; text-align: center; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.wc-stat-track { grid-area: tr; display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.wc-stat-fill { height: 100%; }
.wc-stat-fill.home { background: var(--accent); border-radius: 999px 0 0 999px; }
.wc-stat-fill.away { background: var(--accent-2); border-radius: 0 999px 999px 0; }

/* ---- Group tabs + standings table ---- */
.wc-group-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px var(--wc-pad) 0; }
.wc-group-tab { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; position: relative;
  border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); color: var(--text-2); font-family: var(--serif); font-size: 14px; font-weight: 600; }
.wc-group-tab.wide { width: auto; padding: 0 14px; }
.wc-group-tab:hover { border-color: var(--border-3); }
.wc-group-tab.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.wc-group-tab .wc-livedot { position: absolute; top: 5px; right: 5px; }

.wc-table-wrap { overflow-x: auto; }
.wc-standings { width: 100%; border-collapse: collapse; font-size: 13px; }
.wc-standings thead th { font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.wc-standings th.l, .wc-standings td.l { text-align: left; }
.wc-standings th.team { min-width: 160px; }
.wc-standings th.pts, .wc-standings td.pts { text-align: center; }
.wc-standings tbody tr { border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.14s ease; }
.wc-standings tbody tr:last-child { border-bottom: none; }
.wc-standings tbody tr:hover { background: var(--mist); }
.wc-standings td { padding: 10px 6px; text-align: center; color: var(--text-2); }
.wc-standings td.rank { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wc-standings td.rank { display: table-cell; }
.wc-st-team { display: inline-flex; align-items: center; gap: 10px; }
.wc-st-team b { font-size: 13.5px; color: var(--text); }
.wc-standings td.pts b { font-size: 14px; color: var(--text); }
.wc-standings td.gd { color: var(--muted); }
.wc-owned-mini { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--wc-sweep-dim); color: var(--wc-sweep); margin-left: 6px; }
.wc-strow.owned { background: var(--wc-sweep-dim); }
.wc-strow.qual-advancing td.rank, .wc-strow.qual-qualified td.rank { box-shadow: inset 3px 0 0 var(--wc-live); }
.wc-strow.qual-possible td.rank { box-shadow: inset 3px 0 0 var(--warn); }
.wc-strow.qual-eliminated td.rank, .wc-strow.qual-trailing td.rank { box-shadow: inset 3px 0 0 var(--border-3); }
.wc-form { display: inline-flex; gap: 3px; }
.wc-form-pip { width: 16px; height: 16px; display: inline-grid; place-items: center; border-radius: 4px; font-size: 9px; font-weight: 700; font-style: normal; color: #fff; }
.wc-form-pip.w { background: var(--wc-live); }
.wc-form-pip.d { background: var(--neu); }
.wc-form-pip.l { background: var(--down); }
.wc-form-empty { color: var(--dim); }
.wc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); }
.wc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wc-legend-note { color: var(--wc-sweep); }
.wc-legend-note svg { color: var(--wc-sweep); }

/* ---- Bracket ---- */
.wc-bracket-scroll { overflow-x: auto; padding: 20px var(--wc-pad) 0; }
.wc-bracket { display: flex; gap: 18px; min-width: max-content; }
.wc-bk-round { display: flex; flex-direction: column; min-width: 200px; }
.wc-bk-round-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.wc-bk-round-head span { color: var(--dim); }
.wc-bk-col { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; flex: 1; }
.wc-bk-node { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 4px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.wc-bk-side { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; text-align: left; }
.wc-bk-side:hover { background: var(--mist); }
.wc-bk-side.tbd { color: var(--dim); }
.wc-bk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.wc-bk-side.tbd .wc-bk-name { font-weight: 500; }
.wc-bk-score { min-width: 18px; text-align: right; font-size: 13px; font-weight: 700; color: var(--text); }
.wc-bk-seed { font-size: 8.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.wc-bk-flag.empty { width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-2); }
.wc-bk-divider { height: 1px; background: var(--border); margin: 1px 8px; }
.wc-bk-date { display: block; text-align: center; padding: 4px 0 2px; font-size: 9px; color: var(--dim); }

/* ---- Teams grid ---- */
.wc-team-section { padding: 18px var(--wc-pad) 0; }
.wc-team-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wc-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.wc-team-card { display: block; width: 100%; text-align: left; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: all 0.16s ease; }
.wc-team-card:hover { border-color: var(--border-3); box-shadow: 0 6px 18px rgba(15,23,42,0.07); transform: translateY(-1px); }
.wc-team-card.owned { border-color: var(--wc-sweep-line); }
.wc-team-card-top { display: flex; align-items: center; gap: 11px; }
.wc-team-card-id { flex: 1; min-width: 0; }
.wc-team-card-id b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-team-card-id small { color: var(--muted); font-size: 10.5px; }
.wc-team-rank { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.wc-team-rank small { font-size: 9px; color: var(--dim); font-weight: 500; }
.wc-team-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 10px; font-size: 10px; color: var(--muted); }
.wc-team-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.wc-team-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 10px; color: var(--dim); }
.wc-owner-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--wc-sweep-dim); color: var(--wc-sweep); font-size: 10px; font-weight: 600; }

/* team detail */
.wc-team-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px var(--wc-pad); border-bottom: 1px solid var(--border);
  background: radial-gradient(120% 120% at 0% 0%, rgba(37,99,235,0.06), transparent 55%), var(--surface); }
.wc-team-hero-flag { box-shadow: inset 0 0 0 1px rgba(10,12,16,0.14), 0 6px 18px rgba(15,23,42,0.12); }
.wc-team-hero-id { flex: 1; min-width: 220px; }
.wc-team-hero-id h1 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(28px,4vw,42px); font-weight: 500; letter-spacing: -0.03em; }
.wc-team-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.wc-team-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.wc-team-hero-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.wc-tstat { display: flex; align-items: baseline; gap: 6px; }
.wc-tstat b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.wc-tstat small { font-size: 11px; color: var(--muted); }
.wc-tstat-line { display: flex; gap: 10px; font-size: 11px; color: var(--text-2); }

/* squad */
.wc-squad { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.wc-squad-grouplabel { font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; padding-bottom: 5px; border-bottom: 1px solid var(--border); }
.wc-squad-row { display: grid; grid-template-columns: 24px 1fr auto auto; align-items: center; gap: 8px; padding: 7px 4px; border-radius: 6px; }
.wc-squad-row:hover { background: var(--mist); }
.wc-squad-num { font-size: 11px; color: var(--muted); text-align: center; }
.wc-squad-name { font-size: 13px; font-weight: 500; }
.wc-squad-club { font-size: 10px; color: var(--dim); }
.wc-squad-age { font-size: 10px; color: var(--muted); width: 22px; text-align: right; }

/* stats page */
.wc-col-side-wide { min-width: 0; }
.wc-goalbars { display: flex; flex-direction: column; gap: 8px; }
.wc-goalbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; }
.wc-goalbar:hover { background: var(--mist); }
.wc-goalbar-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-goalbar-track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.wc-goalbar-fill { display: block; height: 100%; background: var(--brand-grad); border-radius: 999px; }
.wc-goalbar-val { font-size: 13px; font-weight: 700; }

/* ---- Sweepstakes ---- */
.wc-sweep-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wc-gap); padding: var(--wc-gap) var(--wc-pad) 0; }
.wc-action-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-align: left; transition: all 0.18s ease; }
.wc-action-card:hover { border-color: var(--accent-line); box-shadow: 0 14px 34px rgba(15,23,42,0.08); transform: translateY(-2px); }
.wc-action-card.create { background: linear-gradient(180deg, rgba(37,99,235,0.05), var(--surface) 60%); }
.wc-action-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-dim); color: var(--accent); }
.wc-action-card.create .wc-action-ic { background: var(--brand-grad); color: #fff; }
.wc-action-card b { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.wc-action-card small { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 340px; }
.wc-action-go { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--accent); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.wc-league-mini { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wc-league-mini-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 11px; color: var(--muted); }
.wc-league-mini-facts span { display: inline-flex; align-items: center; gap: 6px; }
.wc-league-mini-you { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wc-league-mini-you > .mono { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
.wc-team-pillbtn { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border: 1px solid var(--wc-sweep-line); border-radius: 999px; background: var(--wc-sweep-dim); font-size: 12.5px; font-weight: 600; color: var(--text); }
.wc-team-pillbtn:hover { background: rgba(109,90,230,0.16); }
.wc-league-list { display: grid; gap: 8px; }
.wc-league-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; border-radius: 14px; }
.wc-league-list-row span { display: grid; gap: 3px; }
.wc-league-list-row small { color: var(--muted); }

.wc-recover-strip { display: flex; align-items: center; gap: 14px; margin: var(--wc-gap) var(--wc-pad) 0; padding: 16px 18px; border: 1px dashed var(--border-2); border-radius: 14px; background: var(--surface); width: auto; text-align: left; }
.wc-recover-strip:hover { border-color: var(--accent-line); }
.wc-recover-ic { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-dim); color: var(--accent); }
.wc-recover-strip > div { flex: 1 1 auto; min-width: 0; }
.wc-recover-strip b { display: block; font-size: 13.5px; }
.wc-recover-strip small { color: var(--muted); font-size: 12px; }
.wc-recover-cta { flex: 0 0 auto; white-space: nowrap; }

/* share */
.wc-share { display: flex; flex-direction: column; gap: 12px; }
.wc-share-link { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--paper); }
.wc-share-link .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--text-2); }
.wc-copy { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 600; flex: 0 0 auto; }
.wc-copy.ok { background: var(--wc-live); }
.wc-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-share-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text); }
.wc-share-btn:hover { border-color: var(--border-3); background: var(--mist); }
.wc-share-btn.wa svg { color: #25d366; }
.wc-share-btn.sms svg { color: var(--accent); }
.wc-share-btn.mail svg { color: var(--warn); }

/* forms */
.wc-formpage { max-width: 640px; margin: 0 auto; padding: 22px var(--wc-pad) 0; }
.wc-formpage.narrow { max-width: 460px; }
.wc-formpage-intro h1 { margin: 0; font-family: var(--serif); font-size: clamp(26px,3.5vw,36px); font-weight: 500; letter-spacing: -0.03em; }
.wc-formpage-intro p { margin: 8px 0 0; }
.wc-form2 { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.wc-form2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wc-field { display: flex; flex-direction: column; gap: 6px; }
.wc-field-label { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.wc-field-label small { font-size: 10.5px; font-weight: 400; color: var(--dim); }
.wc-field input { height: 44px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--paper); color: var(--text); font-size: 14px; transition: border-color 0.14s ease; }
.wc-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.wc-field input::placeholder { color: var(--dim); }
.wc-form2-note { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 11px; line-height: 1.5; }
.wc-form2-note svg { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }

/* success */
.wc-success { max-width: 560px; margin: 0 auto; padding: 28px var(--wc-pad) 0; text-align: center; }
.wc-success-tick { width: 56px; height: 56px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--wc-live-dim); color: var(--wc-live); margin-bottom: 14px; }
.wc-success h1 { margin: 0; font-family: var(--serif); font-size: clamp(26px,3.5vw,34px); font-weight: 500; letter-spacing: -0.03em; }
.wc-success > p { margin: 10px auto 0; max-width: 440px; }
.wc-success-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.wc-codecard { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; }
.wc-codecard span { display: block; font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.wc-codecard b { font-size: 16px; }
.wc-code { letter-spacing: 0.04em; color: var(--accent); }
.wc-success .wc-panel { text-align: left; margin-top: 8px; }
.wc-success-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.wc-success-teams { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0; }
.wc-success-team { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border: 1px solid var(--wc-sweep-line); border-radius: 12px; background: var(--wc-sweep-dim); text-align: left; }
.wc-success-team b { font-size: 14px; display: block; }
.wc-success-team small { color: var(--muted); font-size: 10.5px; }
.wc-expire-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11px; color: var(--muted); }

/* pick teams */
.wc-pickpage { padding: 20px var(--wc-pad) 120px; }
.wc-pick-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.wc-pick-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(24px,3vw,32px); font-weight: 500; letter-spacing: -0.03em; }
.wc-pick-head p { margin: 6px 0 0; }
.wc-pick-counter { display: flex; align-items: baseline; gap: 6px; padding: 8px 16px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-dim); flex: 0 0 auto; }
.wc-pick-counter .num { font-size: 24px; font-weight: 700; color: var(--accent); }
.wc-pick-counter small { font-size: 11px; color: var(--muted); }
.wc-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.wc-pick-chip { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); text-align: left; transition: all 0.14s ease; }
.wc-pick-chip:hover:not(:disabled) { border-color: var(--accent-line); }
.wc-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.wc-pick-grp { font-size: 10px; color: var(--dim); }
.wc-pick-chip.sel { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent); }
.wc-pick-chip.taken { opacity: 0.5; cursor: not-allowed; }
.wc-pick-tick { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(37,99,235,0.3); }
.wc-pick-taken { position: absolute; top: 8px; right: 10px; font-size: 8.5px; color: var(--down); text-transform: uppercase; letter-spacing: 0.05em; }
.wc-pick-bar { position: fixed; left: 248px; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--wc-pad); background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-top: 1px solid var(--border); z-index: 30; }
.wc-pick-bar-sel { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }

/* dashboard */
.wc-dash-hero { padding: 22px var(--wc-pad); border-bottom: 1px solid var(--border);
  background: radial-gradient(120% 120% at 100% 0%, rgba(8,145,178,0.07), transparent 55%), var(--surface); }
.wc-dash-hero h1 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(28px,4vw,42px); font-weight: 500; letter-spacing: -0.03em; }
.wc-dash-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 11px; color: var(--muted); }
.wc-dash-facts span { display: inline-flex; align-items: center; gap: 6px; }
.wc-dashboard-grid { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr); gap: var(--wc-gap); padding: var(--wc-gap) var(--wc-pad) 0; }
.wc-prize-card { background: radial-gradient(110% 120% at 100% 0%, rgba(245,158,11,0.12), transparent 55%), var(--surface); }
.wc-prize-card .wc-panel-title { font-size: clamp(30px, 5vw, 48px); color: var(--wc-sweep); }
.wc-prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.wc-prize-grid span { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.wc-prize-grid small { color: var(--dim); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; }
.wc-sweep-log th, .wc-sweep-log td { text-align: center; white-space: nowrap; }
.wc-sweep-log td { padding: 11px 7px; }
.wc-sweep-log .l { text-align: left; }
.wc-sweep-log .pos { color: var(--up); }
.wc-sweep-log .neg { color: var(--down); }
.wc-scorer-owner { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-h2h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.wc-h2h-card { display: grid; gap: 10px; padding: 14px; text-align: left; border-radius: 16px; }
.wc-h2h-card.live { border-color: var(--wc-live-line); background: linear-gradient(180deg, var(--wc-live-dim), var(--surface)); }
.wc-h2h-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.wc-h2h-top b { color: var(--accent); }
.wc-h2h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.wc-h2h-row span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.wc-h2h-row b { font-family: var(--mono); font-size: 18px; }
.wc-h2h-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--border); font-size: 12px; }
.wc-h2h-teams span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wc-h2h-teams span:last-child { justify-content: flex-end; text-align: right; }
.wc-h2h-teams i { font-family: var(--mono); font-style: normal; color: var(--dim); font-size: 10px; text-transform: uppercase; }
.wc-lockpill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--wc-live-line); background: var(--wc-live-dim); color: #15803d; font-size: 11px; font-weight: 600; }
.wc-lockpill.locked { border-color: var(--border-2); background: var(--surface-2); color: var(--muted); }
.wc-host-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.wc-host-controls-label { font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
.wc-participants td { padding: 11px 6px; }
.wc-host-tag, .wc-you-tag { font-size: 8px; font-weight: 700; padding: 2px 5px; border-radius: 4px; margin-left: 8px; letter-spacing: 0.05em; }
.wc-host-tag { background: var(--accent-dim); color: var(--accent); }
.wc-you-tag { background: var(--wc-sweep-dim); color: var(--wc-sweep); }
.wc-player-cell { display: inline-flex; align-items: center; gap: 10px; }
.wc-profile-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 999px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.20), transparent 35%), linear-gradient(135deg, rgba(59,130,246,0.95), rgba(34,197,94,0.85)); color: white; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.wc-profile-avatar.img { background: rgba(255,255,255,0.06); }
.wc-profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-support-team { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; color: var(--muted); font-size: 11px; }
.wc-profile-editor { display: flex; gap: 16px; align-items: flex-start; }
.wc-profile-form { flex: 1; min-width: 0; }
.wc-profile-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.wc-profile-message { color: var(--wc-green); font-size: 12px; }
.wc-cell-teams, .wc-cell-status { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.wc-cell-team { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); font-size: 11px; }
.wc-cell-team:hover { border-color: var(--border-3); }
.wc-tstatus { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 6px; }
.wc-tstatus.active { background: var(--wc-live-dim); color: #15803d; }
.wc-tstatus.out { background: var(--down-dim); color: var(--down); text-decoration: line-through; }
.wc-draft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.wc-draft-chip { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); text-align: left; }
.wc-draft-chip.free { border-style: dashed; opacity: 0.78; }
.wc-draft-chip.owned:hover { border-color: var(--border-3); background: var(--mist); }
.wc-draft-chip.out { opacity: 0.5; }
.wc-draft-chip.out .wc-draft-name { text-decoration: line-through; }
.wc-draft-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.wc-draft-owner { font-size: 9.5px; color: var(--dim); }
.wc-draft-chip.owned .wc-draft-owner { color: var(--wc-sweep); }

/* my teams */
.wc-myteams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--wc-gap); padding: var(--wc-gap) var(--wc-pad) 0; }
.wc-myteam-card { border: 1px solid var(--wc-sweep-line); border-radius: 16px; background: linear-gradient(180deg, var(--wc-sweep-dim), var(--surface) 50%); padding: 16px; }
.wc-myteam-head { display: flex; align-items: center; gap: 12px; }
.wc-myteam-id { flex: 1; min-width: 0; }
.wc-myteam-id b { font-size: 16px; display: block; }
.wc-myteam-id small { color: var(--muted); font-size: 11px; }
.wc-myteam-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.wc-myteam-stat { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--border); }
.wc-myteam-stat small { font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
.wc-myteam-stat b { font-size: 13px; }

/* ---- Bottom nav (mobile) ---- */
.wc-bottomnav { display: none; }
.wc-bottomnav-item { border: 0; border-radius: 0; background: transparent; box-shadow: none; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .wc-grid-overview, .wc-grid-team, .wc-grid-stats { grid-template-columns: 1fr; }
  .wc-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .wc-grid-match { grid-template-columns: 1fr; }
  .wc-lineups { grid-template-columns: 1fr; }
  .wc-timeline::before { left: 16px; }
  .wc-tl-row.left, .wc-tl-row.right { padding: 0 0 0 34px; justify-content: flex-start; }
  .wc-sweep-actions { grid-template-columns: 1fr; }
  .wc-form2-cols { grid-template-columns: 1fr; }
  .wc-success-codes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .worldcup-app { grid-template-columns: 1fr; }
  .worldcup-sidebar { display: none; }
  .wc-main { padding-bottom: 72px; }
  .wc-hero { grid-template-columns: 1fr; }
  .wc-hero-side { width: 100%; max-width: 420px; }
  .wc-pick-bar { left: 0; }
  .wc-bottomnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
  .wc-bottomnav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
    color: var(--muted); font-size: 10px; font-weight: 600; }
  .wc-bottomnav-item.active { color: var(--accent); }
}
@media (max-width: 520px) {
  .wc-fx-main { grid-template-columns: 1fr auto 1fr; }
  .wc-team-hero-stats { align-items: flex-start; }
}

/* ============================================================
   v2 additions — real-component alignment + Time Machine
   ============================================================ */

/* booting */
.app.wc-booting { display: flex; align-items: center; justify-content: center; }

/* chip tab rows (real .fx-chip pills) */
.wc-chiptabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px var(--wc-pad) 0; }
.wc-chiptabs .fx-chip { display: inline-flex; align-items: center; gap: 6px; }
.wc-chiptabs .fx-chip .wc-livedot { margin-left: 2px; }

/* group filter as the app's sliding-indicator tab selector
   (identical to the Outcomes / Related markets bar in analysis.jsx) */
.wc-slidetabs.seg { position: relative; display: flex; gap: 2px; align-items: stretch;
  margin: 18px var(--wc-pad) 0; overflow-x: auto; scrollbar-width: none; }
.wc-slidetabs::-webkit-scrollbar { display: none; }
.wc-slidetab.seg-btn { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.wc-slidetab:hover { color: var(--text); }
.wc-slidetab.active { color: var(--accent); }
.wc-slidetab .ct { font-family: var(--mono); font-size: 9.5px; color: var(--dim);
  background: var(--surface-2); border-radius: 3px; padding: 1px 5px; }
.wc-slidetab.active .ct { color: var(--accent); background: var(--accent-dim); }
.wc-slidetab .wc-livedot { margin-left: 1px; }
.wc-slidetab-ind.seg-ind { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .wc-slidetab-ind { transition: none; } }

/* draw-mode info note in the create form */
.wc-draw-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--accent-line); background: var(--accent-dim); color: var(--text-2); font-size: 12px; line-height: 1.5; }
.wc-draw-note svg { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.wc-draw-note b { color: var(--text); }

/* fx-chip toggles used as filter buttons */
.wc-mine-chip.active { color: var(--wc-sweep); border-color: var(--wc-sweep-line); background: var(--wc-sweep-dim); font-weight: 600; }
.wc-mine-chip svg, .wc-clear-chip svg { width: 12px; height: 12px; }
.wc-clear-chip:hover { color: var(--down); border-color: var(--down-dim); }
.wc-filterbar .sp-seg-field { gap: 6px; }
.wc-filterbar .sp-seg-field .label { font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.wc-filterbar-row { align-items: flex-end; }

/* full-width primary CTA */
.btn.wc-btn-block { width: 100%; height: 46px; font-size: 12px; margin-top: 4px; }

/* compact live "now" panel on the home page (only ~2 live at a time) */
.wc-livepanel .worldcup-panel-head { margin-bottom: 12px; }
.wc-live-grid { display: flex; flex-direction: column; gap: 8px; }
.wc-livemini { display: grid; grid-template-columns: 62px 1fr auto 1fr 16px; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px; border: 1px solid var(--wc-live-line); border-radius: 11px;
  background: linear-gradient(180deg, var(--wc-live-dim), var(--paper) 70%); text-align: left; transition: border-color .18s ease, box-shadow .2s ease, transform .2s cubic-bezier(.4,1.1,.4,1); }
.wc-livemini:hover { border-color: var(--wc-live); box-shadow: 0 6px 16px rgba(22,163,74,0.12), 0 16px 34px rgba(15,23,42,0.05); transform: translateY(-2px); }
.wc-livemini-status { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.wc-livemini-status .wc-livedot { margin-bottom: 2px; }
.wc-livemini-status b { font-size: 13px; color: #15803d; }
.wc-livemini-status small { font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.wc-livemini-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wc-livemini-side.home { justify-content: flex-end; }
.wc-livemini-side.away { justify-content: flex-start; }
.wc-livemini-name { font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-livemini-score { font-size: 17px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.wc-livemini-score i { color: var(--dim); font-style: normal; font-weight: 400; }
.wc-livemini-go { color: var(--dim); display: inline-flex; }
.wc-livemini:hover .wc-livemini-go { color: var(--wc-live); }

/* top scorers panel (overview side) */
.wc-scorerlist { display: flex; flex-direction: column; }
.wc-scorer-row { display: grid; grid-template-columns: 18px auto 1fr auto auto; align-items: center; gap: 10px; width: 100%; padding: 8px 4px; border-bottom: 1px dashed var(--border); text-align: left; }
.wc-scorer-row:last-child { border-bottom: none; }
.wc-scorer-row:hover { background: var(--mist); }
.wc-scorer-rank { font-size: 11px; color: var(--muted); text-align: center; }
.wc-scorer-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-scorer-team { font-size: 10px; color: var(--dim); }
.wc-scorer-goals { font-size: 15px; font-weight: 700; color: var(--text); }
.wc-scorer-player { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.wc-scorer-player b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* team detail — edition selector bar */
.wc-team-editionbar { display: flex; align-items: center; gap: 14px; padding: 16px var(--wc-pad) 0; }
.wc-editionbar-label { font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.07em; }

/* ---- Time Machine ---- */
.wc-tm-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 18px var(--wc-pad) 0; }
.wc-tm-select-wrap { display: flex; flex-direction: column; gap: 5px; }
.wc-tm-select-label { font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.07em; }
.wc-tm-select-wrap .fx-select { min-width: 200px; }
.wc-tm-summary { display: grid; grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.4fr); gap: 14px; margin: var(--wc-gap) var(--wc-pad) 0; }

/* podium */
.wc-tm-podium { display: grid; grid-template-rows: auto auto; gap: 10px; }
.wc-tm-place { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.wc-tm-place.winner { border-color: rgba(202,138,4,0.45); background: linear-gradient(120deg, rgba(202,138,4,0.13), var(--surface) 62%); box-shadow: 0 10px 26px rgba(202,138,4,0.10); }
.wc-tm-place.runner { border-color: var(--border-2); background: linear-gradient(120deg, rgba(100,116,139,0.10), var(--surface) 62%); }
.wc-tm-place .wc-hcrest, .wc-tm-place .wc-flag, .wc-tm-place .wc-hflag { box-shadow: 0 5px 14px rgba(15,23,42,0.16); }
.wc-tm-trophy { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(160deg, #f6c560, #d99409); color: #fff; box-shadow: 0 4px 10px rgba(202,138,4,0.32); }
.wc-tm-rank2 { position: absolute; top: 15px; right: 16px; font-size: 11px; font-weight: 700; color: var(--muted); }
.wc-tm-place-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wc-tm-place-meta b { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.wc-tm-place.runner .wc-tm-place-meta b { font-size: 19px; }
.wc-tm-badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wc-tm-badge.gold { background: rgba(202,138,4,0.16); color: #b45309; }
.wc-tm-badge.gold svg { color: #d99409; }
.wc-tm-badge.silver { background: rgba(100,116,139,0.16); color: #475569; }

/* key stats */
.wc-tm-keystats { display: grid; grid-template-rows: auto auto; gap: 10px; }
.wc-tm-topscorer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(120deg, rgba(37,99,235,0.08), var(--surface) 60%); }
.wc-tm-topscorer .wc-player-avatar { box-shadow: 0 6px 16px rgba(15,23,42,0.18); border: 2px solid var(--surface); }
.wc-tm-topscorer-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wc-tm-topscorer-id > span { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.wc-tm-topscorer-id > b { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-tm-topscorer-id small { font-size: 10px; color: var(--dim); }
.wc-tm-goalbig { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 66px; padding: 8px 12px; border-radius: 13px; background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,0.30); }
.wc-tm-goalbig b { font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.wc-tm-goalbig small { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.92; }
.wc-tm-numbers { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 10px; }
.wc-tm-num { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; justify-content: center; padding: 12px 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.wc-tm-num b { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.wc-tm-num small { font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.07em; }
.wc-tm-golden { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
.wc-tm-golden .wc-player-avatar { box-shadow: 0 3px 8px rgba(15,23,42,0.14); }
.wc-tm-golden-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wc-tm-golden-id span { font-size: 9px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.wc-tm-golden-id b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-tm-note { margin-bottom: 12px; }

/* historical crest chip (mirrors real .fx-crest) */
.wc-hcrest { display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid; border-radius: 8px;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }

/* historical match row */
.wc-hmatch { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); }
.wc-hmatch.compact { padding: 8px 10px; }
.wc-hmatch-side { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wc-hmatch-side.home { justify-content: flex-end; }
.wc-hmatch-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-hmatch-score { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 54px; }
.wc-hmatch-score b { font-size: 16px; font-weight: 700; }
.wc-hmatch-score small { font-size: 8.5px; color: var(--muted); }

/* historical bracket */
.wc-hbracket-scroll { overflow-x: auto; }
.wc-hbracket { display: flex; gap: 16px; min-width: max-content; }
.wc-hbracket-round { display: flex; flex-direction: column; min-width: 260px; }
.wc-hbracket-head { padding: 6px 4px 10px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.wc-hbracket-col { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; flex: 1; }

/* historical final card */
.wc-hfinal { display: flex; flex-direction: column; gap: 18px; }
.wc-hfinal-scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px,4vw,48px); max-width: 640px; margin: 6px auto 0; }
.wc-hfinal-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wc-hfinal-name { font-family: var(--serif); font-size: clamp(15px,2vw,20px); font-weight: 600; text-align: center; }
.wc-hfinal-mid { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.wc-hfinal-score { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.wc-hfinal-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 11px; color: var(--muted); }
.wc-hfinal-facts span { display: inline-flex; align-items: center; gap: 6px; }
.wc-hfinal-champ { color: var(--accent) !important; font-weight: 600; }
.wc-hfinal-scorers { border-top: 1px solid var(--border); padding-top: 14px; }
.wc-hfinal-scorers-label { display: block; font-size: 9.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.wc-hfinal-scorerlist { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.wc-hscorer { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); font-size: 12.5px; }
.wc-hscorer-min { color: var(--muted); font-style: normal; font-size: 10px; }
.wc-hscorer small { color: var(--dim); font-size: 9.5px; }

/* team page — historical edition */
.wc-hist { display: flex; flex-direction: column; gap: var(--wc-gap); padding-top: var(--wc-gap); }
.wc-hist > .wc-panel { margin: 0 var(--wc-pad); }
.wc-hist-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 var(--wc-pad); padding: 16px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.wc-hist-banner b { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.wc-hist-year { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.wc-hist-champ { margin-left: auto; font-size: 11px; color: var(--muted); }
.wc-hist-banner.tier-gold { border-color: rgba(202,138,4,0.4); background: linear-gradient(180deg, rgba(202,138,4,0.10), var(--surface) 60%); }
.wc-hist-banner.tier-gold b { color: #b45309; }
.wc-hist-banner.tier-silver { border-color: var(--border-3); }
.wc-hist-banner.tier-bronze { border-color: rgba(180,83,9,0.3); }
.wc-hist-matches { display: flex; flex-direction: column; gap: 8px; }
.wc-hist-matchrow { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; }
.wc-hist-round { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.wc-history-summary { display: grid; grid-template-columns: repeat(8, minmax(64px, 1fr)); gap: 8px; padding: 0 var(--wc-pad); }
.wc-hist-fixtures { display: grid; gap: 10px; }
.wc-history-fixture { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; text-align: left; border-radius: 14px; }
.wc-history-fixture-meta { display: grid; gap: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.wc-history-fixture-meta b { color: var(--text); }
.wc-history-fixture-main { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.wc-history-side { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.wc-history-side.home { justify-content: flex-end; text-align: right; }
.wc-history-side.away { justify-content: flex-start; }
.wc-history-side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-history-score { display: inline-flex; align-items: center; gap: 5px; justify-content: center; min-width: 54px; padding: 5px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--border); font-weight: 800; }
.wc-history-score i { color: var(--dim); font-style: normal; }
.wc-history-result { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; font-weight: 800; }
.wc-history-result.W { background: var(--up-dim); color: var(--up); }
.wc-history-result.D { background: var(--surface-2); color: var(--muted); }
.wc-history-result.L { background: var(--down-dim); color: var(--down); }
.wc-history-scorers { display: grid; gap: 8px; }
.wc-history-scorer { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.wc-history-scorer span { color: var(--dim); }
.wc-history-scorer strong { color: var(--accent); }
.wc-road-panel { background: radial-gradient(120% 130% at 100% 0%, rgba(37,99,235,0.08), transparent 55%), var(--surface); }
.wc-road-summary { display: grid; grid-template-columns: repeat(8, minmax(64px, 1fr)); gap: 8px; margin-bottom: 16px; }
.wc-road-groups { display: grid; gap: 14px; margin-bottom: 18px; }
.wc-road-group { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--paper); }
.wc-road-group-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.wc-road-group-head span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.wc-road-table td { padding: 8px 6px; }
.wc-road-results { display: grid; gap: 8px; }
.wc-road-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); }
.wc-road-results-head b { color: var(--text); }
.wc-road-fixture { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.wc-road-date { color: var(--muted); font-size: 10px; }

@media (max-width: 900px) {
  .wc-tm-summary { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .wc-hist-matchrow { grid-template-columns: 1fr; gap: 4px; }
  .wc-history-summary { grid-template-columns: repeat(4, 1fr); }
  .wc-history-fixture { grid-template-columns: 1fr; }
  .wc-road-summary { grid-template-columns: repeat(4, 1fr); }
  .wc-road-fixture { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wc-tm-numbers { grid-template-columns: 1fr 1fr; }
  .wc-tm-golden { grid-column: span 2; }
}
@media (max-width: 760px) {
  .wc-team-editionbar, .wc-tm-controls, .wc-chiptabs { padding-left: var(--wc-pad); padding-right: var(--wc-pad); }
  .wc-pick-bar { left: 0; }
}
