/* 8-0 World Cup — soccer overrides layered on top of the shared 84-0 styles.css */

/* ---------- stadium-pitch theme (scoped to body.wc so hockey is untouched) ---------- */
body.wc {
  --bg-1: #1f6b43;                       /* lit grass glow up top */
  --bg-2: #0d3a26;
  --bg-3: #071e15;                       /* deep night-stadium green */
  --line-on-grass: rgba(255,255,255,0.16);
  background-image:
    radial-gradient(1200px 760px at 50% -12%, rgba(70,175,110,0.38), rgba(7,30,21,0) 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.020) 0 72px, rgba(0,0,0,0.05) 72px 144px),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
}
:root[data-theme="light"] body.wc {
  --bg-1: #bfe6c8;
  --bg-2: #d8efdc;
  --bg-3: #cbe8d0;
  --line-on-grass: rgba(20,90,55,0.20);
  background-image:
    radial-gradient(1200px 760px at 50% -12%, rgba(120,200,150,0.55), rgba(203,232,208,0) 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 72px, rgba(20,90,55,0.05) 72px 144px),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
}
/* ---------- World Cup palette: gold accents instead of the hockey blue ---------- */
body.wc .brand-sub { color: var(--gold); border-color: var(--gold); }
body.wc .brand-dash { color: var(--gold); }
body.wc .accent { color: var(--gold); }            /* "WORLD CUP" in the headline */
body.wc .r-pos { color: var(--gold); }
body.wc .primary-btn {
  background: linear-gradient(135deg, #ffd76a, #eaa83a);
  color: #2a1a05;
  box-shadow: 0 10px 26px rgba(234, 168, 58, 0.4);
}
body.wc .primary-btn:hover { box-shadow: 0 14px 32px rgba(234, 168, 58, 0.5); }
body.wc .mode-card:hover { border-color: var(--gold); box-shadow: 0 10px 26px rgba(234, 168, 58, 0.22); }
body.wc .ghost-btn:hover { border-color: var(--gold); color: var(--gold); }

body.wc .cand-stats { color: var(--accent-2); }        /* caps·goals line: green, not hockey blue */
/* position badge (DEF/FWD/MID/GK): dark-green pill, not the hockey navy/blue inset */
body.wc .cand-pos {
  background: rgba(8, 40, 28, 0.6);
  border-color: rgba(120, 200, 150, 0.28);
  color: #e3efe3;
}
body.wc .cand-pos.pos-filled { color: #93a89a; }
/* draw reels: field-green panels (not hockey navy). Dark mode = deep grass + light
   text; light mode = pale grass + dark-green text. Theme-scoped so neither renders
   dark-on-dark. */
body.wc .reel { background: linear-gradient(180deg, #123524, #0a2217); border-color: rgba(120,200,150,0.16); }
body.wc .reel span { color: #eef7f0; }
:root[data-theme="light"] body.wc .reel { background: linear-gradient(180deg, #e8f6ec, #cfe9d6); border-color: rgba(20,90,55,0.22); }
:root[data-theme="light"] body.wc .reel span { color: #0e4d30; }
body.wc .rate-fill.def { background: linear-gradient(90deg, #2bb673, #9be29f); }  /* defence bar: green, no blue */

/* ---------- results: don't let the pitch bump the buttons ---------- */
body.wc .results-actions { margin-top: 22px; }
body.wc .results-card { padding-bottom: 30px; }

/* ---------- full-page pitch markings (centre circle + halfway + boxes) ---------- */
.pitch-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.pitch-bg .pl-half {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: var(--line-on-grass);
}
.pitch-bg .pl-circle {
  position: absolute; left: 50%; top: 50%; width: 300px; height: 300px;
  transform: translate(-50%, -50%); border: 2px solid var(--line-on-grass);
  border-radius: 50%;
}
.pitch-bg .pl-box {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 360px; height: 130px; border: 2px solid var(--line-on-grass);
}
.pitch-bg .pl-box-top { top: -2px; border-top: none; }
.pitch-bg .pl-box-bottom { bottom: -2px; border-bottom: none; }

/* ---------- title emblem (logo) — identical to the hockey .logo-emblem ---------- */
img.wc-emblem {
  display: block;
  width: clamp(170px, 40vw, 248px);
  height: auto;
  margin: 0 auto clamp(8px, 2vh, 16px);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* ---------- results pitch (full 4-3-3 XI) ---------- */
.pitch {
  position: relative; width: 100%; max-width: 440px; margin: 20px auto 0;
  aspect-ratio: 3 / 4.1; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 12.5%, rgba(255,255,255,0) 12.5% 25%),
    linear-gradient(160deg, #1f7a44, #14613a 60%, #0f5031);
}
.pitch::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px;
  background: rgba(255,255,255,0.26);
}
.pitch::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px;
  transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,0.26); border-radius: 50%;
}
.pitch-player {
  position: absolute; transform: translate(-50%, -50%);
  width: 80px; text-align: center; z-index: 1;
}
.pp-dot {
  width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
.pp-dot span { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 9.5px; color: #fff; letter-spacing: 0.3px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.pp-name { font-family: "Inter", sans-serif; font-weight: 700; font-size: 11px; color: #fff; line-height: 1.05; text-shadow: 0 1px 3px rgba(0,0,0,0.75); }
.pp-meta { font-size: 9px; color: rgba(255,255,255,0.82); margin-top: 1px; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
@media (max-width: 460px) {
  .pitch-player { width: 66px; }
  .pp-name { font-size: 10px; }
  .pp-dot { width: 30px; height: 30px; }
}

/* ---------- compact 11-slot draft tracker (position pills only) ---------- */
body.wc .slot-chip { flex: 0 1 62px; min-width: 54px; padding: 7px 4px 8px; }
body.wc .slot-chip .sc-name, body.wc .slot-chip .sc-meta, body.wc .slot-chip .sc-empty { display: none; }
body.wc .slot-chip .sc-pos { font-size: 11px; letter-spacing: 0.5px; }

/* ---------- leaderboard: World Cup gold instead of hockey blue ---------- */
body.wc .board-tab.active { background: rgba(255, 209, 102, 0.16); border-color: var(--gold); color: var(--text); }
body.wc .board-name-link:hover { color: var(--gold); }

/* ---------- shared account dropdown menu (mirrors portal.css) ---------- */
.account-menu {
  position: absolute; top: 56px; right: 14px; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45); padding: 8px; min-width: 190px; text-align: left;
  backdrop-filter: blur(8px);
}
.account-menu[hidden] { display: none; }
.account-menu .am-name { padding: 8px 12px 10px; font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit;
  font: inherit; padding: 9px 12px; border-radius: 9px; cursor: pointer;
}
.account-menu button:hover { background: var(--line); }

/* ---------- re-draw buttons: keep the count badge inside the button ---------- */
body.wc .respin-btn { font-size: 12px; padding: 11px 8px; overflow: hidden; }
body.wc .respin-btn .count { min-width: 14px; padding: 1px 5px; margin-left: 5px; font-size: 10.5px; }

/* ---------- signup CTA: gold for the World Cup ---------- */
body.wc .signup-cta { border-color: var(--gold); background: rgba(255, 209, 102, 0.07); }
body.wc .signup-cta:hover { background: rgba(255, 209, 102, 0.14); }
