/* Keifer Klub theme layer — loaded AFTER kk-base.css.
   Re-themes the live Keifer Kup design system per event, and adds the
   umbrella-only components (top bar, event switcher, escrow pot card). */

/* ---- Umbrella default theme (navy) ---- */
:root {
  --bg: #070a14;
  --panel: #0e1422;
  --panel-2: #141d31;
  --line: rgba(180, 200, 240, 0.15);
  --text: #f4f7ff;
  --muted: #aab6d2;
  --soft: #d7e0f4;
  --gold: #ffce5c;
  --green: #4c8dff;   /* primary accent (live/picked/highlights) */
  --blue: #7aa9ff;
  --accent: #4c8dff;
}

/* Per-event reskins — same components, different palette */
body[data-event="kup"] {
  --bg: #05130f; --panel: #0d1916; --panel-2: #12231f;
  --line: rgba(210, 236, 221, 0.16); --text: #f8fbf4; --muted: #c8d3c9; --soft: #e3ebe3;
  --gold: #ffd166; --green: #22c55e; --blue: #4cc9f0; --accent: #22c55e;
}
body[data-event="nfl"] {
  --bg: #0a0f1c; --panel: #111a2e; --panel-2: #18233d;
  --line: rgba(180, 200, 240, 0.16); --gold: #ffce5c; --green: #3aa75a; --blue: #5b9bff; --accent: #3b6ef6;
}
body[data-event="madness"] { --bg: #160d05; --panel: #221409; --panel-2: #2c1a0c; --gold: #ffb454; --green: #f97316; --blue: #fb923c; --accent: #f97316; --line: rgba(255,200,150,0.16); }
body[data-event="masters"] { --bg: #07140c; --panel: #0d1d12; --panel-2: #122718; --gold: #ffe08a; --green: #16a34a; --blue: #4ade80; --accent: #16a34a; --line: rgba(190,230,200,0.16); }
body[data-event="squares"] { --bg: #0c0d1a; --panel: #14152a; --panel-2: #1c1d38; --gold: #c7b3ff; --green: #818cf8; --blue: #a5b4fc; --accent: #6366f1; --line: rgba(190,195,255,0.16); }
body[data-event="nhl"] { --bg: #060d18; --panel: #0c1726; --panel-2: #122036; --gold: #d6e8ff; --green: #38bdf8; --blue: #7dd3fc; --accent: #0ea5e9; --line: rgba(180,215,250,0.18); }
body[data-event="mlb"] { --bg: #0a0f1c; --panel: #111a2c; --panel-2: #18243c; --gold: #ffd27a; --green: #c8362f; --blue: #4f7bd6; --accent: #c8362f; --line: rgba(200,210,240,0.16); }
body[data-event="f1"] { --bg: #0b0b0e; --panel: #15151b; --panel-2: #1d1d25; --gold: #f5d36b; --green: #e10600; --blue: #ff5a4d; --accent: #e10600; --line: rgba(235,210,210,0.16); }
body[data-event="derby"] { --bg: #170a10; --panel: #241019; --panel-2: #2f1622; --gold: #ffd56b; --green: #c2185b; --blue: #e879a8; --accent: #c2185b; --line: rgba(255,200,220,0.16); }
body[data-event="olywinter"] { --bg: #081320; --panel: #0e1d30; --panel-2: #142940; --gold: #e6f1ff; --green: #56a0ef; --blue: #8cc5ff; --accent: #3b82f6; --line: rgba(180,212,250,0.18); }
body[data-event="olysummer"] { --bg: #190e0a; --panel: #261611; --panel-2: #321e16; --gold: #ffd56b; --green: #2aac5c; --blue: #ef6a4d; --accent: #e0552f; --line: rgba(255,210,190,0.16); }
body[data-event="cfp"] { --bg: #07140d; --panel: #0d1d13; --panel-2: #12271a; --gold: #ffe08a; --green: #22a35a; --blue: #5bd08a; --accent: #1f9d52; --line: rgba(190,230,200,0.16); }

html { background: #070a14; }

/* The backdrop is built in three fixed, full-viewport layers (top → bottom):
   1. a readability veil that darkens top + bottom so the sticky bar and cards
      always have contrast, while leaving the middle of the surface vivid;
   2. an edge vignette for depth — corners only, NO bright circle/ring;
   3. the sport surface itself (field / court / ice / track);
   …over the flat --bg base. */
body {
  margin: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 78%, transparent) 0%,
      transparent 16%, transparent 72%,
      color-mix(in srgb, var(--bg) 72%, transparent) 100%),
    radial-gradient(125% 105% at 50% 42%, transparent 52%, rgba(0,0,0,0.45) 100%),
    var(--surface, transparent),
    var(--bg);
  background-attachment: fixed, fixed, fixed, fixed;
  animation: none;
  min-height: 100vh;
}

/* Neutralize the inherited Keifer Kup global decorations: the thin white ring
   (the "half circle" near the top), the global grid overlay and the animated
   stadium sweeps. The sport surface above is now the single, clean backdrop. */
body::before {
  content: none;
  background: none;
  animation: none;
}
body::after {
  content: none;
  background: none;
  animation: none;
}

/* ---- Full-page sport surface — the whole SITE background reads as the
   playing surface (court / field / green / track), per event. It is layered
   as the body's own background (fixed), so opaque cards/panels stay fully
   readable on top. Each --surface holds comma-separated background layers
   with baked-in alpha so the surface is clearly visible but never washes
   out the content. ---- */

/* Soccer (kup) — mowed pitch: bold mow bands + halfway line + center spot */
body[data-event="kup"] {
  --surface:
    radial-gradient(circle at 50% 38%, transparent 0 6px, rgba(255,255,255,0.30) 7px 9px, transparent 10px),
    linear-gradient(90deg, transparent calc(50% - 2px), rgba(255,255,255,0.26) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    repeating-linear-gradient(90deg, rgba(34,197,94,0.42) 0 116px, rgba(17,108,63,0.42) 116px 232px);
}
/* NFL — gridiron: crisp white yard lines over bold alternating field bands */
body[data-event="nfl"] {
  --surface:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.30) 0 4px, transparent 4px 104px),
    repeating-linear-gradient(90deg, rgba(38,130,76,0.52) 0 104px, rgba(26,100,60,0.52) 104px 208px);
}
/* NBA + March Madness — hardwood: clean planks + bold center circle */
body[data-event="nba"],
body[data-event="madness"] {
  --surface:
    radial-gradient(circle at 50% 36%, transparent 0 172px, rgba(255,255,255,0.24) 173px 179px, transparent 180px),
    linear-gradient(90deg, transparent calc(50% - 2px), rgba(255,255,255,0.16) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.13) 0 2px, transparent 2px 42px),
    linear-gradient(92deg, rgba(192,122,56,0.64), rgba(170,98,40,0.64) 60%, rgba(192,122,56,0.64));
}
/* Masters — fairway: bold diagonal mow stripes on deep turf */
body[data-event="masters"] {
  --surface:
    repeating-linear-gradient(118deg, rgba(255,255,255,0.13) 0 3px, transparent 3px 78px),
    repeating-linear-gradient(118deg, rgba(44,142,80,0.6) 0 78px, rgba(30,108,60,0.6) 78px 156px);
}
/* Super Bowl Squares — crisp claim grid across the whole page */
body[data-event="squares"] {
  --surface:
    repeating-linear-gradient(90deg, rgba(165,175,255,0.34) 0 2px, transparent 2px 68px),
    repeating-linear-gradient(0deg, rgba(165,175,255,0.34) 0 2px, transparent 2px 68px),
    linear-gradient(180deg, rgba(70,76,150,0.18), rgba(50,54,120,0.18));
}
/* NHL — ice rink: pale ice, bold red center line + two blue zone lines */
body[data-event="nhl"] {
  --surface:
    linear-gradient(90deg, transparent calc(50% - 3px), rgba(206,17,38,0.6) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(90deg, transparent calc(25% - 3px), rgba(28,86,206,0.55) calc(25% - 3px) calc(25% + 3px), transparent calc(25% + 3px)),
    linear-gradient(90deg, transparent calc(75% - 3px), rgba(28,86,206,0.55) calc(75% - 3px) calc(75% + 3px), transparent calc(75% + 3px)),
    linear-gradient(180deg, rgba(208,226,247,0.34), rgba(182,212,242,0.34));
}
/* MLB — ballpark: green grass, mow lines + brown infield dirt arc */
body[data-event="mlb"] {
  --surface:
    radial-gradient(closest-side at 50% 116%, rgba(178,124,64,0.72) 0 47%, transparent 48%),
    repeating-linear-gradient(112deg, rgba(255,255,255,0.10) 0 3px, transparent 3px 82px),
    linear-gradient(180deg, rgba(46,128,72,0.56), rgba(33,103,58,0.56));
}
/* F1 — asphalt circuit: clean dark track, dashed racing line + red/white
   curbing on both edges. Static (no drift) so the curbing reads crisp. */
body[data-event="f1"] {
  --surface:
    repeating-linear-gradient(0deg, rgba(225,6,0,0.7) 0 40px, rgba(244,244,244,0.7) 40px 80px) left top / 18px 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(225,6,0,0.7) 0 40px, rgba(244,244,244,0.7) 40px 80px) right top / 18px 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(245,211,107,0.6) 0 64px, transparent 64px 140px) center top / 8px 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 130px),
    linear-gradient(180deg, rgba(48,48,54,0.78), rgba(30,30,36,0.78));
}
/* Derby — dirt track: brown racing surface with white inside rail + furrows */
body[data-event="derby"] {
  --surface:
    linear-gradient(90deg, rgba(255,255,255,0.26) 0 5px, transparent 5px) left top / 100% 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(0,0,0,0.13) 0 2px, transparent 2px 38px),
    linear-gradient(180deg, rgba(148,98,56,0.64), rgba(120,76,42,0.64));
}
/* Winter Olympics — icy field with the five rings (white ring for the dark one) */
body[data-event="olywinter"] {
  --surface:
    radial-gradient(circle at 38% 32%, transparent 0 60px, rgba(80,162,240,0.6) 61px 69px, transparent 70px),
    radial-gradient(circle at 50% 32%, transparent 0 60px, rgba(235,240,250,0.55) 61px 69px, transparent 70px),
    radial-gradient(circle at 62% 32%, transparent 0 60px, rgba(228,72,82,0.55) 61px 69px, transparent 70px),
    radial-gradient(circle at 44% 40%, transparent 0 60px, rgba(246,202,72,0.55) 61px 69px, transparent 70px),
    radial-gradient(circle at 56% 40%, transparent 0 60px, rgba(82,200,122,0.55) 61px 69px, transparent 70px),
    linear-gradient(180deg, rgba(180,206,236,0.30), rgba(138,176,222,0.30));
}
/* Summer Olympics — athletics track (terracotta + lanes) with the five rings */
body[data-event="olysummer"] {
  --surface:
    radial-gradient(circle at 38% 30%, transparent 0 60px, rgba(40,120,220,0.55) 61px 69px, transparent 70px),
    radial-gradient(circle at 50% 30%, transparent 0 60px, rgba(22,22,28,0.55) 61px 69px, transparent 70px),
    radial-gradient(circle at 62% 30%, transparent 0 60px, rgba(222,42,52,0.55) 61px 69px, transparent 70px),
    radial-gradient(circle at 44% 38%, transparent 0 60px, rgba(246,194,44,0.55) 61px 69px, transparent 70px),
    radial-gradient(circle at 56% 38%, transparent 0 60px, rgba(42,172,92,0.55) 61px 69px, transparent 70px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 132px),
    linear-gradient(180deg, rgba(184,74,52,0.46), rgba(150,54,40,0.46));
}
/* College Football Playoff — deep-green gridiron, bold yard lines */
body[data-event="cfp"] {
  --surface:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.28) 0 4px, transparent 4px 108px),
    repeating-linear-gradient(90deg, rgba(34,110,72,0.54) 0 108px, rgba(22,84,56,0.54) 108px 216px);
}

/* ---- Hero decoration ----
   The full-page sport surface (--surface) already shows through the hero,
   so the inherited KK pitch decoration would double up. Kill the hero
   pseudo-elements for every event EXCEPT soccer (kup), where the mowed
   pitch + center circle is the correct, intended look.
   Soccer's own decoration is themed below. No circles or grids leak onto
   NFL, basketball, golf, etc. — those get only their full-page surface. */
.hero::before,
.hero::after {
  content: none;
  background: none;
  animation: none;
}

/* Soccer (kup) — keep a themed mowed pitch with the center circle. */
body[data-event="kup"] .hero::before {
  content: "";
  background:
    radial-gradient(ellipse at 50% 2%, transparent 0 7.5rem, rgba(255,255,255,0.14) 7.55rem 7.65rem, transparent 7.72rem),
    repeating-linear-gradient(90deg, rgba(34,197,94,0.10) 0 9%, rgba(34,197,94,0.03) 9% 18%);
  opacity: 0.45;
  mix-blend-mode: screen;
}
body[data-event="kup"] .hero::after {
  content: "";
  background:
    linear-gradient(108deg, transparent 0 38%, color-mix(in srgb, var(--gold) 14%, transparent) 47%, transparent 59%),
    linear-gradient(78deg, transparent 0 42%, color-mix(in srgb, var(--blue) 12%, transparent) 51%, transparent 64%);
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Top bar: wordmark + event switcher ---- */
.klub-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.klub-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.klub-brand .brand-mark { display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.klub-brand .brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.klub-brand .brand-text strong { font-size: 19px; letter-spacing: -0.01em; }
.klub-brand .brand-sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.klub-brand .brand-sub::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

.event-switch { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.event-switch .switch-hint { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap; }

/* ---- Custom pool dropdown (replaces the native select so the label can wrap
   onto two lines for long pool names like "Stanley Cup Pick'em") ---- */
.pool-select { position: relative; }
.pool-trigger {
  display: flex; align-items: center; gap: 9px;
  width: 210px; min-height: 44px;
  padding: 8px 12px; cursor: pointer; text-align: left;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 700; line-height: 1.18;
}
.pool-trigger .pt-emoji { font-size: 18px; flex: 0 0 auto; }
.pool-trigger .pt-label { flex: 1; white-space: normal; overflow-wrap: break-word; }
.pool-trigger .pt-caret { flex: 0 0 auto; transition: transform 0.18s ease; color: var(--muted); }
.pool-select.open .pt-caret { transform: rotate(180deg); }
.pool-trigger:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }

.pool-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 256px; max-height: min(70vh, 460px); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none; z-index: 60;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 20px 48px rgba(0,0,0,0.55);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.pool-select.open .pool-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pool-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; line-height: 1.22; color: var(--soft);
}
.pool-menu li .pm-emoji { font-size: 17px; flex: 0 0 auto; }
.pool-menu li .pm-label { white-space: normal; overflow-wrap: break-word; }
.pool-menu li:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.pool-menu li[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--text); }
.pool-menu li[aria-selected="true"] .pm-label::after { content: " ✓"; color: var(--accent); font-weight: 800; }
.klub-login { text-decoration: none; color: #07101c; font-weight: 800; font-size: 14px; background: linear-gradient(135deg, var(--gold), #f7dc8e); padding: 10px 18px; border-radius: 11px; }

.klub-shell { max-width: 1120px; margin: 0 auto; padding: clamp(18px, 3.5vw, 38px) clamp(16px, 4vw, 40px) 50px; }

/* Hero brand lockup (umbrella + sub-brand) */
.klub-hero { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 30px; align-items: stretch; margin-bottom: 8px; }
.klub-hero .hero-copy { display: flex; flex-direction: column; justify-content: center; }
.event-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.event-chip .ec-emoji { font-size: 18px; }
.event-chip .ec-live { color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.event-chip .ec-mark { display: block; width: 24px; height: 24px; border-radius: 7px; }
.klub-brand .brand-mark { border-radius: 11px; }

/* ---- Escrow pot card (umbrella component) ---- */
.pot-card { background: linear-gradient(165deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; box-shadow: 0 24px 60px -36px rgba(0,0,0,0.8); }
.pot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pot-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--muted); font-weight: 800; }
.pot-chain { font-size: 11px; color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.pot-chain::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.pot-amount { font-size: 42px; font-weight: 900; letter-spacing: -0.02em; margin: 4px 0 16px; }
.pot-amount span { font-size: 18px; color: var(--muted); font-weight: 700; }
.pot-meta { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.pot-meta li { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 9px; }
.pot-meta li:last-child { border-bottom: 0; padding-bottom: 0; }
.pot-meta strong { color: var(--text); }
.stake-band { background: color-mix(in srgb, var(--green) 14%, transparent); border: 1px solid color-mix(in srgb, var(--green) 38%, transparent); border-radius: 11px; padding: 10px 13px; font-size: 13px; color: var(--soft); margin-bottom: 12px; }
.stake-band strong { color: var(--green); }
.pot-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---- Team logo badges (NFL / NBA / NHL / MLB / NCAA) ----
   One mark per circle. The colored <b> is a fallback abbreviation that gets
   hidden the instant the real logo loads (onload in app.js). The white logo
   disc is sized to the FULL badge so it fully covers the fallback — no logo
   sitting inside a second colored ring, no abbreviation + logo together. */
.team-badge.nfl,
.team-badge.nba,
.team-badge.nhl,
.team-badge.mlb,
.team-badge.ncaa { width: 44px; height: 44px; }

.team-badge.nfl b[data-tc],  .team-badge.nfl .team-logo,
.team-badge.nba b[data-tc],  .team-badge.nba .team-logo,
.team-badge.nhl b[data-tc],  .team-badge.nhl .team-logo,
.team-badge.mlb b[data-tc],  .team-badge.mlb .team-logo,
.team-badge.ncaa b[data-tc], .team-badge.ncaa .team-logo { grid-area: 1 / 1; }

.team-badge.nfl b[data-tc],
.team-badge.nba b[data-tc],
.team-badge.nhl b[data-tc],
.team-badge.mlb b[data-tc],
.team-badge.ncaa b[data-tc] {
  width: 44px; height: 44px; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: -0.02em;
  padding: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22);
}

.team-badge.nfl .team-logo,
.team-badge.nba .team-logo,
.team-badge.nhl .team-logo,
.team-badge.mlb .team-logo,
.team-badge.ncaa .team-logo {
  z-index: 1; width: 44px; height: 44px; border-radius: 999px;
  background: #fff; padding: 5px; object-fit: contain;
  box-shadow: 0 2px 9px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(0,0,0,0.06);
}
.team-badge.ncaa .team-logo { padding: 4px; }

.team-logos { gap: 12px; min-height: 46px; }
.team-logos i { font-size: 13px; opacity: 0.7; }      /* the @ / vs separator */

/* ---- Soccer flag badges (Keifer Kup) — crisp circular flags ---- */
.team-badge.flag { width: 44px; height: 44px; }
.team-badge.flag .team-flag {
  width: 44px; height: 44px; border-radius: 999px; object-fit: cover;
  background: var(--panel-2);
  box-shadow: 0 2px 9px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.85);
}

/* ---- Golf (Masters) — pick-your-champion field + leaderboard, player photos ---- */
.game-card.golf { gap: 10px; }
.golf-row { display: flex; align-items: center; gap: 12px; }
.golf-pic {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #f4f7fc, #d7deea);
  box-shadow: 0 2px 9px rgba(0,0,0,0.45), inset 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent);
}
.golf-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.golf-pic.nation img { object-position: center center; }
.golf-pic.nation { background: var(--panel-2); }
.golf-pic.noimg { box-shadow: 0 2px 9px rgba(0,0,0,0.45), inset 0 0 0 2px var(--line); }
.golf-name { display: flex; flex-direction: column; line-height: 1.18; flex: 1; min-width: 0; }
.golf-name strong { font-size: 15px; }
.golf-name span { font-size: 12px; color: var(--muted); }
.golf-odds { font-size: 14px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.game-card.final.golf-leader { padding: 12px 14px; }

/* ---- Super Bowl Squares — claimable 10×10 grid ---- */
.squares-legend { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.squares-legend b { font-weight: 800; }
.squares-grid { display: grid; grid-template-columns: 22px repeat(10, 1fr); gap: 4px; }
.sq-head { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.sq-head.col { color: var(--accent); }
.sq-head.row { color: var(--blue); }
.sq-cell {
  aspect-ratio: 1; min-width: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel-2); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.sq-cell.pickable:hover { border-color: var(--accent); }
.sq-cell.on { background: color-mix(in srgb, var(--accent) 34%, transparent); border-color: var(--accent); }
.sq-cell.taken { background: color-mix(in srgb, var(--blue) 16%, transparent); border-color: transparent; opacity: 0.5; cursor: not-allowed; }
.squares-side { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Klub board uses 2 sections (open picks + finals), not KK's 3 */
#board .public-scoreboard { grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); }
@media (max-width: 900px) { #board .public-scoreboard { grid-template-columns: 1fr; } }

/* ---- Pick interactivity layered on KK game-card ---- */
.game-card.pickable { cursor: pointer; }
.game-card.picked { border-color: var(--accent) !important; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), rgba(4,10,20,0.9)) !important; }
.pick-row { display: flex; gap: 8px; margin-top: 2px; }
.pick-btn { flex: 1; background: transparent; border: 1.5px solid var(--line); color: var(--text); border-radius: 9px; padding: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.pick-btn:hover { border-color: var(--accent); }
.pick-btn.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---- Standings (Klub table) ---- */
.klub-standings-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.klub-standings-table th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 12px 10px; }
.klub-standings-table td { padding: 12px; border-top: 1px solid var(--line); }
.klub-standings-table tr td:first-child { color: var(--accent); font-weight: 800; width: 38px; }
.klub-standings-table tr td:last-child { font-weight: 800; text-align: right; }
.klub-standings-table tr.you { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---- Engine note + footer ---- */
.engine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.klub-foot { max-width: 1120px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 40px) 44px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.klub-foot a { color: var(--blue); }

@media (max-width: 880px) {
  .klub-hero { grid-template-columns: 1fr; }
  .klub-topbar { flex-wrap: wrap; }
  .event-switch { order: 3; width: 100%; }
  .event-switch .pool-select { flex: 1; }
  .pool-trigger { width: 100%; }
  .pool-menu { width: 100%; left: 0; right: 0; }
}
