:root {
  --bg: #090d16;
  --bg-raise: #101826;
  --bg-card: #141c2b;
  --line: rgba(154, 160, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.45);
  --text: #f3f5fb;
  --muted: #9aa0b8;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --up: #34d399;
  --down: #fb7185;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}
a { color: var(--cyan); }
a:hover { color: #67e8f9; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.prose { width: min(760px, 100%); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.brand .wordmark { width: auto; height: 32px; max-width: none; border-radius: 0; }
.brand .mark, .brand .brand-text { display: none; }
.brand small { display: block; color: var(--gold); font-weight: 700; letter-spacing: 0.08em; font-size: 11px; text-transform: uppercase; }
.nav-links { display: none; gap: 14px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary,
a.btn-primary,
.btn-primary { background: #22d3ee; color: #041820; }
.nav-links a.btn-primary:hover,
a.btn-primary:hover,
.btn-primary:hover { background: #67e8f9; color: #041820; }
.nav-cta { display: none; }

.hero { padding: 28px 0 0; }
.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 0.98; margin: 0; letter-spacing: -0.04em; }
h2 { font-size: clamp(20px, 3vw, 28px); line-height: 1.25; margin: 12px 0; font-weight: 650; }
h3 { margin: 0 0 8px; font-size: 18px; }
.deck { color: #d5dbeb; font-size: 17px; max-width: 68ch; }
.deck-strong { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; margin: 12px 0; font-weight: 750; letter-spacing: -0.03em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
}
.btn-primary { background: #22d3ee; color: #041820; }
.btn-primary:hover { background: #67e8f9; color: #041820; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--text); }
.fine { color: var(--muted); font-size: 13px; margin: 0; }
.split { display: grid; gap: 12px; margin: 20px 0 0; }
.split article {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.split h3 { color: var(--gold); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

[data-promo-slot] { display: none; }

.board-section { padding: 28px 0 8px; }
.board-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; justify-content: space-between; margin: 0 0 12px; }
.board-head h2 { margin: 0; }
.mono, .rank, .adp, .proj, .picks, .progress { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.slate-meta { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.games-wrap { position: relative; margin: 0 0 16px; }
.games-wrap::before,
.games-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  z-index: 1;
}
.games-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.games-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.games { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; margin: 0; scrollbar-width: none; }
.games::-webkit-scrollbar { display: none; }
.games li {
  list-style: none;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}
.games { padding-left: 0; }
.games strong { color: var(--text); font-weight: 700; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .toolbar select, .search {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 12px;
}
.chips button[aria-checked="true"] { border-color: var(--cyan); color: var(--cyan); }
.search { border-radius: 10px; min-width: min(220px, 100%); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.studio { display: grid; gap: 16px; min-width: 0; }
.studio-main, .rail { min-width: 0; }
.dk-exchange {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101826;
}
.dk-exchange h2 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.02em; }
.dk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.faq h3 { font-size: 16px; margin: 16px 0 4px; }
.dk-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.dk-status { margin: 10px 0 0; color: var(--text); font-size: 13px; font-weight: 650; }
.dk-steps { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.dk-steps li { margin: 2px 0; }
.table-scroll {
  width: 100%;
  max-width: 100%;
  max-height: calc(36px + 30 * 68px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0c1320;
}
.cols, .board { min-width: 0; }
.cols, .pick {
  grid-template-columns: 28px 36px minmax(0, 1fr) 32px 52px 48px 64px 36px 72px 28px;
}
.cols {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 8px 6px;
  background: #101826;
}
.pick {
  display: grid;
  gap: 4px 6px;
  align-items: center;
}
.board { list-style: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.pick {
  padding: 10px 8px;
  border-top: 1px solid var(--line);
}
.drag { touch-action: none; }
.pick:first-child { border-top: 0; }
.pick.over { background: rgba(34, 211, 238, 0.08); }
.pick[hidden] { display: none; }
.drag {
  width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); cursor: grab; border-radius: 8px;
}
.rank { font-weight: 700; color: var(--cyan); font-size: 15px; }
.who { display: flex; gap: 10px; min-width: 0; align-items: center; }
.badge {
  width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px; flex: 0 0 auto;
  border: 1px solid rgba(243, 245, 251, 0.22);
}
.who .name { font-weight: 750; }
.meta strong { color: var(--text); font-weight: 800; }
.exclude {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--down); cursor: pointer; font-size: 18px; line-height: 1;
}
.proj, .csrank, .adp-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rail {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.rail h3 { margin: 8px 0 0; font-size: 16px; }
.rail p { margin: 0; font-size: 13px; color: var(--muted); }
.rail .btn { width: 100%; }
.upload { font-size: 13px; font-weight: 700; color: var(--text); }
.upload input { display: block; width: 100%; margin-top: 6px; font-weight: 500; }
.steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.steps li + li { margin-top: 6px; }
.excluded { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.excluded li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; }
.excluded button { border: 0; background: transparent; color: var(--cyan); cursor: pointer; font-weight: 700; }
.meta { color: var(--muted); font-size: 12px; }
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px;
}
.tag-q, .tag-d { color: #1c1403; background: var(--gold); }
.tag-out, .tag-ir { color: #fff; background: #e11d48; }
.tag-late { color: #1c1403; background: var(--gold); }
.nudge { display: flex; flex-direction: column; gap: 2px; }
.nudge button {
  width: 32px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-raise); cursor: pointer;
}
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--muted); }
.adp small, .proj { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }

.courtesy {
  margin: 8px 0 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cs-promo .cs-promo__attrib {
  margin: -2px 0 12px;
  max-width: 46ch;
  color: var(--csp-muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.house-ad-row {
  list-style: none;
  max-width: 100%;
  margin: 0;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: #0c1320;
}
.house-ad-row .cs-promo { margin: 0; }
.rail .cs-promo { margin-top: 8px; }

/* ==========================================================
   CleanSlate DFS house-ad cards for CleanSlate Royale (v2)
   Scoped under .cs-promo. Uses container queries, so each card
   adapts to the width of the slot it sits in (full-width hero,
   rankings list, or the 280px desktop rail).
   ========================================================== */
.cs-promo {
  --csp-bg0: #070b14; --csp-bg1: #0d1322; --csp-bg2: #11192d; --csp-bg3: #17223b; --csp-line: #223254;
  --csp-cy1: #67e8f9; --csp-cy2: #22d3ee; --csp-cy3: #06b6d4;
  --csp-gold: #fbbf24; --csp-text: #f3f5fb; --csp-sub: #c3cadb; --csp-muted: #9aa0b8;
  --csp-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --csp-mono: "JetBrains Mono", ui-monospace, monospace;
  --csp-radius: 18px;

  container: cspromo / inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid transparent;
  border-radius: var(--csp-radius);
  color: var(--csp-text);
  font-family: var(--csp-sans);
  text-align: left;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(34, 211, 238, 0.20), transparent 55%) padding-box,
    radial-gradient(70% 120% at 0% 100%, rgba(251, 191, 36, 0.07), transparent 60%) padding-box,
    linear-gradient(135deg, #131d33 0%, var(--csp-bg1) 55%, #0a0f1b 100%) padding-box,
    linear-gradient(135deg, rgba(103, 232, 249, 0.9), rgba(34, 50, 84, 0.95) 35%, rgba(34, 50, 84, 0.95) 72%, rgba(251, 191, 36, 0.6)) border-box;
  box-shadow: 0 22px 60px -28px rgba(6, 182, 212, 0.55), 0 2px 0 rgba(0, 0, 0, 0.25);
}
/* subtle grid texture, faded toward the art side */
.cs-promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(75% 90% at 85% 25%, #000 0%, transparent 75%);
          mask-image: radial-gradient(75% 90% at 85% 25%, #000 0%, transparent 75%);
}
.cs-promo *, .cs-promo *::before, .cs-promo *::after { box-sizing: border-box; }
.cs-promo .cs-promo__inner { display: grid; gap: 0 24px; }
.cs-promo .cs-promo__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }

/* ---- promo label ---- */
.cs-promo .cs-promo__label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.cs-promo .cs-promo__mark { width: 26px; height: 26px; border-radius: 7px; display: block; flex: none; }
.cs-promo .cs-promo__brand { font-size: 13px; font-weight: 800; letter-spacing: 0.01em; color: var(--csp-text); }
.cs-promo .cs-promo__tag {
  font-family: var(--csp-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--csp-gold); padding: 3px 7px 2px; border: 1px solid rgba(251, 191, 36, 0.55); border-radius: 6px; line-height: 1.2;
}

/* ---- copy ---- */
.cs-promo .cs-promo__title {
  margin: 0 0 8px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; color: var(--csp-text);
  font-size: 22px; text-wrap: balance;
}
.cs-promo .cs-promo__title em { font-style: normal; background: linear-gradient(90deg, var(--csp-cy1), var(--csp-cy2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-promo .cs-promo__sub { margin: 0 0 14px; color: var(--csp-sub); font-size: 14px; line-height: 1.5; max-width: 48ch; text-wrap: pretty; }
.cs-promo .cs-promo__chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; }
.cs-promo .cs-promo__chips li {
  margin: 0; font-family: var(--csp-mono); font-size: 11px; font-weight: 500; color: #a5f3fc; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(103, 232, 249, 0.22);
}

/* ---- CTA ---- */
.cs-promo .cs-promo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cs-promo .cs-promo__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; white-space: nowrap;
  background: linear-gradient(135deg, var(--csp-cy1) 0%, var(--csp-cy2) 50%, var(--csp-cy3) 100%);
  color: #041820; font-family: var(--csp-sans); font-size: 15.5px; font-weight: 800; letter-spacing: -0.005em; text-decoration: none;
  box-shadow: 0 10px 28px -10px rgba(34, 211, 238, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.cs-promo .cs-promo__cta:hover { color: #041820; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(34, 211, 238, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.cs-promo .cs-promo__cta:focus-visible { outline: 2px solid var(--csp-cy1); outline-offset: 3px; }
.cs-promo .cs-promo__cta svg { width: 16px; height: 16px; flex: none; }
.cs-promo .cs-promo__fine { margin: 0; font-size: 12px; line-height: 1.4; color: var(--csp-muted); }
.cs-promo .cs-promo__fine strong { color: var(--csp-text); font-weight: 700; }

/* ---- coupon ticket (hidden until a real code exists) ---- */
.cs-promo[data-coupon="off"] [data-cs-coupon] { display: none !important; }
.cs-promo .cs-promo__coupon {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; max-width: 100%; padding: 7px 12px;
  border: 1.5px dashed rgba(251, 191, 36, 0.8); border-radius: 10px; background: rgba(251, 191, 36, 0.08);
  font-family: var(--csp-mono); font-size: 11.5px; font-weight: 700; line-height: 1.45; letter-spacing: 0.06em; text-transform: uppercase; color: #fde68a;
}
.cs-promo .cs-promo__coupon svg { width: 16px; height: 16px; flex: none; color: var(--csp-gold); }
.cs-promo .cs-promo__nw { white-space: nowrap; }
@container cspromo (max-width: 419px) {
  .cs-promo .cs-promo__coupon .cs-promo__nw { display: block; }
  .cs-promo .cs-promo__coupon .cs-promo__dot { display: none; }
}
@container cspromo (max-width: 279px) { .cs-promo .cs-promo__coupon { letter-spacing: 0.02em; font-size: 10px; padding: 7px 10px; gap: 8px; } }
.cs-promo--row .cs-promo__coupon .cs-promo__nw { display: block; }
.cs-promo--row .cs-promo__coupon .cs-promo__dot { display: none; }
.cs-promo .cs-promo__coupon b { color: var(--csp-gold); font-weight: 800; white-space: nowrap; }

/* ---- art ---- */
.cs-promo .cs-promo__art { pointer-events: none; user-select: none; }
.cs-promo .cs-promo__art img { display: block; width: 100%; height: auto; }
.cs-promo .cs-promo__icon { display: none; }

/* ======================= SLOT 1 · HERO ======================= */
.cs-promo--hero .cs-promo__inner { grid-template-columns: minmax(0, 1fr); padding: 20px 20px 0; }
.cs-promo--hero .cs-promo__body { padding-bottom: 4px; }
.cs-promo--hero .cs-promo__mark { width: 30px; height: 30px; border-radius: 8px; }
.cs-promo--hero .cs-promo__brand { font-size: 14px; }
.cs-promo--hero .cs-promo__title { font-size: 25px; }
.cs-promo--hero .cs-promo__art { height: 172px; overflow: hidden; margin: 12px -4px 0; }
.cs-promo--hero .cs-promo__cta { width: 100%; }
.cs-promo--hero .cs-promo__actions { width: 100%; justify-content: center; }
@container cspromo (max-width: 399px) { .cs-promo--hero .cs-promo__chips li:nth-child(n+4) { display: none; } }
@container cspromo (min-width: 640px) {
  .cs-promo--hero .cs-promo__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); padding: 30px 8px 0 34px; align-items: end; }
  .cs-promo--hero .cs-promo__body { padding-bottom: 30px; align-self: center; }
  .cs-promo--hero .cs-promo__title { font-size: clamp(28px, 3.1cqi, 36px); }
  .cs-promo--hero .cs-promo__sub { font-size: 15.5px; }
  .cs-promo--hero .cs-promo__art { height: auto; margin: 0; align-self: end; }
  .cs-promo--hero .cs-promo__cta { width: auto; }
  .cs-promo--hero .cs-promo__actions { width: auto; justify-content: flex-start; }
}

/* ================ SLOT 2 · COMPACT ROW IN THE LIST ================ */
.cs-promo--row { --csp-radius: 14px; max-width: 720px; margin: 0; } /* 720px keeps the CTA in view when the board scrolls sideways */
.cs-promo--row .cs-promo__inner { grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; padding: 14px; align-items: start; }
.cs-promo--row .cs-promo__body { display: contents; }
.cs-promo--row .cs-promo__icon { display: block; width: 40px; height: 40px; margin-top: 2px; grid-column: 1; grid-row: 1 / span 4; }
.cs-promo--row .cs-promo__body > :not(.cs-promo__actions) { grid-column: 2; }
.cs-promo--row .cs-promo__art { display: none; }
.cs-promo--row .cs-promo__label { margin-bottom: 6px; gap: 7px; }
.cs-promo--row .cs-promo__mark { width: 18px; height: 18px; border-radius: 5px; }
.cs-promo--row .cs-promo__brand { font-size: 12px; }
.cs-promo--row .cs-promo__tag { font-size: 9px; padding: 2px 6px 1px; }
.cs-promo--row .cs-promo__title { font-size: 17px; margin-bottom: 4px; }
.cs-promo--row .cs-promo__sub { font-size: 13px; line-height: 1.45; margin: 0; }
.cs-promo--row .cs-promo__coupon { margin: 10px 0 0; padding: 5px 10px; font-size: 10.5px; justify-self: start; }
.cs-promo--row .cs-promo__actions { grid-column: 1 / -1; margin-top: 12px; flex-direction: column; align-items: stretch; gap: 6px; }
.cs-promo--row .cs-promo__cta { min-height: 44px; font-size: 15px; }
.cs-promo--row .cs-promo__fine { text-align: center; font-size: 11.5px; }
@container cspromo (min-width: 600px) {
  .cs-promo--row .cs-promo__inner { grid-template-columns: 212px minmax(0, 1fr); gap: 0 18px; padding: 12px 16px 12px 12px; align-items: center; }
  .cs-promo--row .cs-promo__icon { display: none; }
  .cs-promo--row .cs-promo__art { display: block; order: -1; }
  .cs-promo--row .cs-promo__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: center; }
  .cs-promo--row .cs-promo__body > :not(.cs-promo__actions) { grid-column: 1; }
  .cs-promo--row .cs-promo__actions { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .cs-promo--row .cs-promo__title { font-size: 17px; }
  .cs-promo--row .cs-promo__sub { font-size: 12.5px; }
  .cs-promo--row .cs-promo__cta { min-height: 42px; padding: 0 16px; font-size: 14px; }
}

/* ============ SLOT 3 · MID CARD BY THE CSV DOWNLOADS ============ */
.cs-promo--mid { margin: 6px 0; }
.cs-promo--mid .cs-promo__inner { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 18px; }
.cs-promo--mid .cs-promo__art { order: -1; margin: 0 auto 4px; width: min(100%, 290px); }
.cs-promo--mid .cs-promo__body { display: contents; }
.cs-promo--mid .cs-promo__label { order: -2; }
.cs-promo--mid .cs-promo__title { font-size: 21px; }
.cs-promo--mid .cs-promo__sub { font-size: 13.5px; }
.cs-promo--mid .cs-promo__actions { flex-direction: column; align-items: stretch; gap: 7px; }
.cs-promo--mid .cs-promo__cta { width: 100%; }
.cs-promo--mid .cs-promo__fine { text-align: center; }
@container cspromo (min-width: 560px) {
  .cs-promo--mid .cs-promo__inner { grid-template-columns: minmax(0, 1fr) 280px; padding: 24px 18px 22px 26px; align-items: center; }
  .cs-promo--mid .cs-promo__body { display: flex; }
  .cs-promo--mid .cs-promo__art { order: 0; margin: 0; width: 100%; }
  .cs-promo--mid .cs-promo__title { font-size: 25px; }
  .cs-promo--mid .cs-promo__actions { flex-direction: row; align-items: center; }
  .cs-promo--mid .cs-promo__cta { width: auto; }
  .cs-promo--mid .cs-promo__fine { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .cs-promo .cs-promo__cta { transition: none; } }
@media print { .cs-promo { display: none !important; } }

.freshness {
  margin: 0 0 16px;
  padding: 8px 12px;
  border-left: 2px solid rgba(34, 211, 238, 0.55);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.note {
  color: var(--muted); font-size: 13px; margin: 10px 0 0;
}
.empty {
  padding: 28px 16px; color: var(--muted);
}

.section { padding: 36px 0; border-top: 1px solid var(--line); }
.section h2 { margin-top: 0; }
.cards { display: grid; gap: 12px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.card h3 { color: var(--text); }
.card ol, .section ul, .section ol { padding-left: 18px; }
.card li + li, .section li + li { margin-top: 6px; }
.roster { width: 100%; border-collapse: collapse; font-size: 14px; }
.roster th, .roster td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.roster th { color: var(--muted); font-size: 12px; font-weight: 700; }
.later { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.calc label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.calc input, .calc select {
  display: block; margin-top: 4px; width: 100%; max-width: 180px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-height: 40px; padding: 8px;
}
.fields { display: flex; flex-wrap: wrap; gap: 12px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.picks span { background: #062028; color: var(--cyan); border-radius: 8px; padding: 6px 8px; font-weight: 700; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg-card); }
.checks label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checks input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--cyan); }
.checks li.elig:not(:has(input:checked)) { border-color: var(--gold); }
.progress { color: var(--cyan); font-weight: 700; }
.check-cta { margin-top: 14px; }

.sources { font-size: 14px; }
.footer {
  padding: 28px 0 96px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.footer strong { color: var(--text); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(9, 13, 22, 0.96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.2s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta a { display: block; text-align: center; }

@media (max-width: 799px) {
  .table-scroll { max-height: 70vh; overflow-x: visible; overflow-y: auto; }
  .cols, .board { min-width: 0; }
  .cols { display: none; }
  .pick {
    min-width: 0;
    grid-template-columns: 32px 40px minmax(0, 1fr) 84px;
    grid-template-areas:
      "drag rank who delta"
      "nudge exclude adp par";
  }
  .drag { grid-area: drag; }
  .rank { grid-area: rank; }
  .who { grid-area: who; min-width: 0; }
  .exclude { grid-area: exclude; }
  .nudge { grid-area: nudge; flex-direction: row; }
  .adp { grid-area: adp; }
  .par { grid-area: par; font-size: 12px; }
  .proj, .csrank { display: none; }
  .delta { grid-area: delta; justify-self: end; text-align: right; white-space: nowrap; }
  .csrank { display: none; }
  .who .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 800px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .split { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .wide { grid-column: 1 / -1; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 40px; }
}
@media (min-width: 1280px) {
  .wrap { width: min(1280px, calc(100% - 48px)); }
  .studio { grid-template-columns: minmax(0, 1fr) 248px; align-items: start; }
  .rail { position: sticky; top: 72px; min-width: 0; }
}
@media (min-width: 1440px) {
  .wrap { width: min(1360px, calc(100% - 64px)); }
  .studio { grid-template-columns: minmax(0, 1fr) 280px; }
}

.meta-compact { display: none; }

@media (max-width: 480px) {
  .toolbar { flex-wrap: wrap; align-items: center; }
  .chips {
    flex: 1 0 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; }
  .search { flex: 1 1 0; min-width: 0; width: auto; min-height: 44px; }
  .pod-control {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .pod-control input {
    width: 56px;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg-raise);
    text-align: center;
    padding: 0 4px;
  }
  .brand .wordmark { display: none; }
  .brand .mark { display: block; width: 32px; height: 32px; border-radius: 8px; }
  .brand .brand-text { display: block; }
  .table-scroll {
    max-height: 70vh;
    overflow-x: visible;
    overflow-y: auto;
    padding-bottom: 0;
  }
  .cols, .board { min-width: 0; }
  .cols { display: none; }
  .pick {
    position: relative;
    min-width: 0;
    grid-template-columns: 44px 28px minmax(0, 1fr) auto;
    grid-template-areas: "drag rank who delta";
    gap: 2px 6px;
    padding: 6px 8px 6px 0;
    align-items: center;
  }
  .drag { grid-area: drag; width: 44px; height: 44px; }
  .rank { grid-area: rank; font-size: 14px; }
  .who { grid-area: who; min-width: 0; gap: 8px; align-items: center; overflow: hidden; }
  .copy { min-width: 0; overflow: hidden; }
  .badge { width: 32px; height: 32px; font-size: 12px; }
  .delta {
    grid-area: delta;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    padding-left: 8px;
  }
  .meta, .adp, .proj, .par, .csrank, .nudge, .exclude { display: none; }
  .meta-compact {
    display: flex;
    align-items: baseline;
    gap: 6px;
    max-width: 100%;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
  }
  .meta-compact .par-bit { flex: 0 0 auto; font-weight: 800; }
  .meta-compact .par-bit.up { color: var(--up); }
  .meta-compact .par-bit.down { color: var(--down); }
  .meta-compact .place { flex: 0 0 auto; }
  .meta-compact .place strong { color: var(--text); font-weight: 800; }
  .meta-compact .rest {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .meta-compact .rest:not(:empty)::before { content: "· "; }
  .who .name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
  }
  .name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tag { flex: 0 0 auto; margin-left: 0; }
  .pick.is-open {
    grid-template-areas:
      "drag rank who delta"
      "tools tools tools tools";
    row-gap: 8px;
    padding-bottom: 10px;
  }
  .pick.is-open .nudge,
  .pick.is-open .exclude { display: flex; }
  .pick.is-open .nudge {
    grid-area: tools;
    flex-direction: row;
    gap: 8px;
    justify-self: start;
  }
  .pick.is-open .exclude { grid-area: tools; justify-self: end; }
  .pick.is-open .nudge button,
  .pick.is-open .exclude {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
}

@media print {
  .nav, .hero, .promo-slot, .toolbar, .games, .section, .footer, .sticky-cta, .drag, .nudge, .rail { display: none !important; }
  body { background: white; color: black; }
  .cols, .pick {
    display: grid !important;
    grid-template-areas: none !important;
    grid-template-columns: 48px minmax(0, 1fr) 52px 72px 140px !important;
  }
  .drag, .rank, .who, .pos, .adp, .delta, .nudge { grid-area: auto !important; }
  .pos, .adp, .delta, .cols span { display: block !important; }
  .pick { break-inside: avoid; color: black; border-color: #ccc; content-visibility: visible; }
  .rank, .delta.up { color: #046; }
  .delta.down { color: #900; }
  .badge { border-color: #999; }
  a { color: black; text-decoration: none; }
}

.stack-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.40);
  color: var(--text);
  font-size: 13px;
}
.stack-banner[hidden] { display: none; }
.stack-banner-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stack-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.18);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}
.stack-legend { display: flex; align-items: center; gap: 8px; }
.stack-key {
  font-size: 11px;
  font-family: var(--mono);
  padding: 2px 7px;
  border-radius: 6px;
}
.stack-key-mate { background: rgba(34, 211, 238, 0.14); color: #67e8f9; border: 1px solid rgba(34, 211, 238, 0.35); }
.stack-key-opp { background: rgba(251, 191, 36, 0.14); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.35); }
.stack-clear {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.stack-clear:hover { border-color: var(--cyan); color: var(--text); }

.pick.is-stack-anchor {
  background: rgba(34, 211, 238, 0.18) !important;
  box-shadow: inset 3px 0 0 #22d3ee, inset 0 0 0 1px rgba(34, 211, 238, 0.55);
}
.pick.is-stack-teammate {
  background: rgba(34, 211, 238, 0.09) !important;
  box-shadow: inset 3px 0 0 rgba(34, 211, 238, 0.65);
}
.pick.is-stack-opp {
  background: rgba(251, 191, 36, 0.09) !important;
  box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.7);
}
