/* ============ DPYK WAR ROOM — MODERN theme ============
   Activated by `html.modern` (set pre-paint from localStorage dpyk_theme).
   Overrides the arcade skin: same markup, same screens.
   Look: STEEL-INDIGO COMMAND DECK — aurora depth, indigo accents falling
   to steel blue, gold reserved for champions, glass chrome, hi-res logos.
   Arcade canon lives in style.css — never edit it for modern-only concerns. */

html.modern {
  --bg: #101425;
  --bg-deep: #0a0d18;
  --panel: #151a33;
  --panel-2: #1d2442;
  --ink: #e9ebf5;
  --dim: #949bc2;
  --yellow: #f3c969;
  --cyan: #6fc9f2;
  --red: #f37067;
  --green: #45de8f;
  --orange: #f0a35e;
  --purple: #9d90e8;
  --acc: #6d7ef2;
  --acc-2: #4c58d8;
  --lav: #c9cff5;
  --edge: rgba(148, 162, 255, 0.16);
  --edge-soft: rgba(255, 255, 255, 0.06);
  --shadow: rgba(8, 5, 22, 0.5);
  --glow: rgba(109, 126, 242, 0.28);
  --px: 1px;
  --font-head: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

/* kill the CRT: no scanlines, no flicker, no pixel text shadows */
html.modern #crt { display: none; }
html.modern * { text-shadow: none !important; }
html.modern img, html.modern .tlogo { image-rendering: auto; }
/* player headshots (Big Board + Mock Draft + player card) — circular */
html.modern .tface {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 12%;
  margin-right: 9px; display: inline-block; vertical-align: middle;
  background: #1b2038; border: 1px solid rgba(148, 162, 255, 0.22);
}
html.modern table.pix .tface { vertical-align: -12px; }
/* D/ST + arcade-fallback rows: give the team logo the SAME 34px avatar box as
   headshots so every Big Board / Mock row is one height (war-chip precedent) */
html.modern table.pix td:not(.tm-cell) .tlogo {
  width: 34px; height: 34px; border-radius: 50%; object-fit: contain; padding: 5px;
  margin-right: 9px; vertical-align: -12px; box-sizing: border-box;
  background: #1b2038; border: 1px solid rgba(148, 162, 255, 0.22);
}
html.modern .stage-player .tface { width: 46px; height: 46px; vertical-align: middle; margin-right: 8px; }
html.modern .tface.pcard-face { width: 56px; height: 56px; vertical-align: middle; margin: 0; }
html.modern ::selection { background: rgba(109, 126, 242, 0.4); }
html.modern :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* aurora depth — two violet washes over the deep base, fixed so it feels like a room */
html.modern body {
  font-size: 15px; line-height: 1.45;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(94, 114, 235, 0.15), transparent 60%),
    radial-gradient(900px 620px at 106% 16%, rgba(90, 168, 232, 0.08), transparent 55%),
    linear-gradient(180deg, #101425 0%, #0a0d18 100%);
  background-attachment: fixed;
}
html.modern #console { background: transparent; }

/* ---------- building blocks ---------- */
html.modern .panel {
  border: 1px solid var(--edge); border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(109, 126, 242, 0.06) 0%, transparent 38%),
    linear-gradient(180deg, #171d37 0%, #121732 100%);
  box-shadow: 0 10px 30px rgba(5, 3, 16, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 20px 22px;
}
/* signature: every section header carries a violet ingot */
html.modern .panel h3, html.modern .pcard h3 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lav); margin-bottom: 14px;
}
html.modern .panel h3::before, html.modern .pcard h3::before {
  content: ''; display: inline-block; width: 4px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, var(--acc), #58aee0);
  margin-right: 9px; vertical-align: -2px;
}
html.modern .panel h3 .sub, html.modern .pcard h3 .sub {
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--dim);
}

html.modern button {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: #c9cde8;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(148, 162, 255, 0.18);
  border-radius: 9px; box-shadow: none; padding: 8px 14px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
html.modern button:hover {
  background: rgba(109, 126, 242, 0.12); color: var(--ink);
  border-color: rgba(148, 162, 255, 0.45);
}
html.modern button:active { transform: translateY(1px); box-shadow: none; background: rgba(109, 126, 242, 0.2); }

/* one violet pill rule for every "active" state the arcade paints yellow */
html.modern .nav-btn.active,
html.modern .yearpicker button.active,
html.modern .weekpicker button.active,
html.modern button.recmode.active,
html.modern .set-row button.active,
html.modern .keep-opt.on {
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-2) 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
html.modern .nav-btn.active:hover,
html.modern .yearpicker button.active:hover,
html.modern .weekpicker button.active:hover,
html.modern button.recmode.active:hover,
html.modern .set-row button.active:hover,
html.modern .keep-opt.on:hover {
  background: linear-gradient(135deg, #7f8ff5 0%, #5a68e0 100%); color: #fff;
}

/* ---------- chrome: glass topbar, pill nav ---------- */
html.modern #topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 12, 23, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--edge-soft); box-shadow: none; padding: 12px 20px;
}
html.modern .logo-mini {
  border: none; box-shadow: none; padding: 4px 8px 4px 0;
  font-size: 17px; font-weight: 800; letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--lav), var(--acc) 60%, #58aee0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.modern .logo-mini:hover { filter: brightness(1.2); }
html.modern .nav-btn { font-size: 11.5px; border-radius: 999px; padding: 7px 14px; }
/* nav dropdown menus — steel-indigo glass */
html.modern .nav-caret { font-size: 8px; opacity: 0.75; }
html.modern .nav-menu {
  top: calc(100% + 8px); padding: 5px; min-width: 190px;
  border: 1px solid var(--edge); border-radius: 14px;
  background: rgba(20, 22, 38, 0.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
}
html.modern .nav-menu::before { top: -10px; height: 10px; }
html.modern .nav-sub {
  border-radius: 9px; font-size: 11px; font-weight: 600; padding: 9px 13px; color: var(--ink);
}
html.modern .nav-sub:hover { background: var(--acc); color: #0e1120; }
html.modern .nav-sub.active { color: var(--acc); background: rgba(109, 126, 242, 0.14); }
/* branded dropdown — steel-indigo glass, matches the nav menus */
html.modern .csel-field { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }
html.modern .csel-btn { border-radius: 999px; font-size: 12px; font-weight: 600; padding: 8px 14px; min-width: 130px; }
html.modern .csel-caret { font-size: 8px; opacity: 0.75; transition: transform 0.15s ease; }
html.modern .csel.open .csel-caret { transform: rotate(180deg); }
html.modern .csel-menu {
  top: calc(100% + 8px); padding: 5px; min-width: 100%;
  border: 1px solid var(--edge); border-radius: 14px;
  background: rgba(20, 22, 38, 0.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
}
html.modern .csel-opt { border-radius: 9px; font-size: 12px; font-weight: 600; padding: 9px 13px; color: var(--ink); }
html.modern .csel-opt:hover { background: var(--acc); color: #0e1120; }
html.modern .csel-opt.active { color: var(--acc); background: rgba(109, 126, 242, 0.14); }
html.modern .led { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--dim); }
html.modern .led-dot { border-radius: 50%; }
html.modern #mute-btn { font-size: 11px; border-radius: 999px; }

html.modern #tickerbar {
  background: rgba(10, 12, 23, 0.8); border-top: 1px solid var(--edge-soft); box-shadow: none;
}
html.modern .ticker-label {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--acc), #58aee0); color: #fff;
  border-radius: 0 10px 10px 0;
}
html.modern .ticker-tape { font-size: 11px; font-weight: 600; color: var(--dim); }

html.modern .screen-head h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--ink) 55%, var(--lav));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.modern .screen-head .meta { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
html.modern .meta-dot { color: var(--ink); font-weight: 800; margin: 0 8px; }
html.modern .back-btn { font-size: 10.5px; }

/* ---------- tables ---------- */
html.modern table.pix { font-size: 14px; }
html.modern table.pix th {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--dim); border-bottom: 1px solid var(--edge); padding: 9px 10px;
}
html.modern table.pix td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); font-variant-numeric: tabular-nums; }
html.modern table.pix tbody tr:hover { background: rgba(109, 126, 242, 0.07); }
html.modern table.pix th.sortable:hover { color: var(--lav); }
html.modern tr.pickable:hover td { background: rgba(109, 126, 242, 0.1); color: var(--lav); }

html.modern .owner-dim { font-size: 13px; }
html.modern .era-line { font-size: 12px; }

/* ---------- record lines / chips / tags ---------- */
html.modern .rec-line { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
html.modern .rec-line .val { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
html.modern .rec-line .who small { font-size: 12px; }
html.modern .lab-steal, html.modern .lab-bust { font-size: 12px; font-weight: 700; }
html.modern .hurt { font-size: 11px; font-weight: 700; }
html.modern .hurt-kit { border-radius: 3px; image-rendering: auto; width: 13px; height: 13px; }
html.modern .rk-tag { font-size: 10px; font-weight: 700; }

/* position tags: tinted glass — translucent color wash + colored text (not Sleeper's solid pastel) */
html.modern .pos { font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 5px; letter-spacing: 0.05em; }
html.modern .pos-QB { background: rgba(243, 112, 103, 0.16); color: var(--red); }
html.modern .pos-RB { background: rgba(69, 222, 143, 0.15); color: var(--green); }
html.modern .pos-WR { background: rgba(111, 201, 242, 0.15); color: var(--cyan); }
html.modern .pos-TE { background: rgba(243, 201, 105, 0.16); color: var(--yellow); }
html.modern .pos-K { background: rgba(205, 138, 245, 0.16); color: var(--purple); }
html.modern .pos-DST, html.modern .pos-D\/ST { background: rgba(154, 154, 180, 0.16); color: #b9b9cf; }
html.modern .pos-\? { background: rgba(255, 255, 255, 0.08); color: var(--dim); }
html.modern .chip {
  font-size: 10px; font-weight: 800; border: none; border-radius: 5px; padding: 3px 8px;
  background: rgba(109, 126, 242, 0.14); color: var(--lav);
}
html.modern .kept-tag {
  font-size: 10px; font-weight: 800; border-radius: 5px; padding: 2px 7px;
  background: rgba(243, 201, 105, 0.16); color: var(--yellow);
}
html.modern .final-tag {
  font-size: 9px; font-weight: 800; border-radius: 5px; padding: 2px 7px;
  background: rgba(243, 112, 103, 0.16); color: var(--red);
}

/* ---------- pickers / controls ---------- */
html.modern .yearpicker button, html.modern .draft-controls button { font-size: 11px; padding: 6px 12px; }
html.modern .weekpicker button { font-size: 10px; padding: 5px 10px; }
html.modern button.recmode { font-size: 10px; }
html.modern .draft-controls .hint { font-size: 12px; }
html.modern .pill-toggle { border: 1px solid var(--edge); border-radius: 999px; background: rgba(109, 126, 242, 0.10); }
html.modern .pill-indicator { border-radius: 999px; background: var(--acc); }
html.modern .pill-toggle .pill-opt { font-size: 11px; font-weight: 700; width: 72px; padding: 7px 0; color: var(--ink); }
html.modern .pill-toggle .pill-opt.active { color: #0e1120; }
html.modern .draft-search { border: 1px solid var(--edge); border-radius: 999px; font-size: 13px; padding: 7px 14px; }
html.modern .boardsort { font-size: 10px; }
html.modern .bid { font-size: 12px; font-weight: 700; }

/* ---------- season cartridges -> glowing cards ---------- */
html.modern .cart {
  border: 1px solid var(--edge); border-radius: 14px; padding: 16px;
  background:
    linear-gradient(160deg, rgba(109, 126, 242, 0.09) 0%, transparent 45%),
    linear-gradient(180deg, #191f3d 0%, #121732 100%);
  box-shadow: 0 6px 18px rgba(5, 3, 16, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
html.modern .cart:hover {
  transform: translateY(-4px); background:
    linear-gradient(160deg, rgba(109, 126, 242, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #1e2547 0%, #151b39 100%);
  box-shadow: 0 14px 34px rgba(5, 3, 16, 0.5), 0 0 24px var(--glow);
  border-color: rgba(148, 162, 255, 0.5);
}
html.modern .cart:active { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(5, 3, 16, 0.35); }
html.modern .cart .notch { display: none; }
html.modern .cart .year { font-size: 26px; font-weight: 800; margin-top: 0; letter-spacing: -0.01em; }
html.modern .cart .mode { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; }
html.modern .cart .champline { font-size: 13px; }

/* ---------- season detail / brackets ---------- */
html.modern .bracket-round { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--purple); }
html.modern .bracket-team { border: 1px solid var(--edge-soft); border-radius: 8px; padding: 6px 12px; background: #1b213e; }
html.modern .bracket-team.w { border-color: rgba(243, 201, 105, 0.55); }
html.modern .bracket-team .sc { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
html.modern .game-row { border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 7px 10px; }
html.modern .game-row .vs { font-size: 12px; }

/* ---------- name vault ---------- */
html.modern .nv-card { border: 1px solid var(--edge-soft); border-radius: 10px; background: var(--panel-2); padding: 12px 14px; }
html.modern .nv-card h4 { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lav); }
html.modern .nv-count { font-size: 9px; font-weight: 700; color: var(--dim); letter-spacing: 0.04em; }
html.modern .nv-row { font-size: 13.5px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
html.modern .nv-yr { font-size: 10px; font-weight: 700; min-width: 36px; font-variant-numeric: tabular-nums; }
html.modern .nv-new .nv-name { color: var(--yellow); font-weight: 600; }
html.modern .nv-mid .nv-name small { font-size: 11px; }
html.modern .nv-rank { font-size: 10px; font-weight: 800; }

/* ---------- rivalry matrix ---------- */
html.modern table.matrix { font-size: 11px; font-weight: 700; }
html.modern table.matrix th, html.modern table.matrix td { border: 1px solid rgba(255, 255, 255, 0.07); }
html.modern table.matrix thead th, html.modern table.matrix tbody th { background: #1b213e; color: var(--lav); }
html.modern table.matrix td.self { background: #11152d; }
html.modern table.matrix td:hover { outline: 2px solid var(--acc); outline-offset: -2px; }

/* ---------- keeper center ---------- */
html.modern .rec-line .val.price { color: #34bd75; }
html.modern .keep-no { font-size: 9px; font-weight: 700; border: 1px solid var(--edge); border-radius: 6px; padding: 2px 6px; }
html.modern .keep-price .keep-paid { color: var(--dim); font-weight: 600; }
html.modern .keep-price .keep-arrow { color: var(--dim); }
html.modern .dim-line { font-size: 13px; }
html.modern details.dropped summary { font-size: 11px; font-weight: 600; }
html.modern details.dropped summary:hover { color: var(--lav); }
/* keeper lineage owner × year grid — steel-indigo */
html.modern .lg-grid th, html.modern .lg-grid td { border-right: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
html.modern .lg-grid thead th {
  background: #171b33; color: var(--ink);
  font-size: 17px; font-weight: 800; letter-spacing: 0.02em; padding: 12px 8px; vertical-align: middle;
}
html.modern .lg-star { color: var(--acc); font-size: 12px; }
html.modern .lg-legend { font-size: 11px; font-weight: 600; }
html.modern .lg-legend .lg-star { color: var(--acc); }
/* owner band gets the "selected button" treatment — muted a shade so it's not too loud */
html.modern .lg-owner {
  background: linear-gradient(135deg, #3b4288 0%, #2c3168 100%);
  color: #ececff; font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html.modern .lg-ownh { background: #171b33; }
html.modern .lg-who { font-size: 12px; font-weight: 600; min-height: 18px; }
html.modern .lg-who .pname { font-size: 12px; }
html.modern .lg-who .tlogo { width: 16px !important; height: 16px !important; }
html.modern .lg-det { font-size: 11px; }
html.modern .lg-kept .lg-det { color: var(--green); }
html.modern .lg-ccont::before { color: var(--dim); font-weight: 700; }
html.modern .lg-tier { font-size: 8px; font-weight: 700; border: 1px solid var(--edge); border-radius: 5px; padding: 1px 5px; color: var(--dim); }
html.modern .lg-first td { border-top: 2px solid var(--acc); }
html.modern .out-tag {
  font-size: 9px; font-weight: 800; border-radius: 5px; padding: 2px 7px;
  background: rgba(154, 154, 180, 0.16); color: #b9b9cf;
}
html.modern .wt-fin { font-size: 13px; font-weight: 700; }
html.modern .wcaret { font-size: 13px; }
html.modern .wd-wrap {
  background: rgba(109, 126, 242, 0.06); border-left: 3px solid rgba(109, 126, 242, 0.5);
  border-radius: 0 8px 8px 0;
}
html.modern .wd-item { font-size: 13px; }
html.modern .wd-k { font-size: 9px; font-weight: 800; letter-spacing: 0.3px; }

/* ---------- draft tracker / big board ---------- */
html.modern .tk-btn { font-size: 10px; font-weight: 800; border-radius: 6px; color: #55507a; }
html.modern .tk-btn:hover { background: rgba(109, 126, 242, 0.12); color: var(--ink); }
html.modern .tk-btn.on-gone { background: rgba(243, 112, 103, 0.18); color: var(--red); }
html.modern .tk-btn.on-mine { background: rgba(69, 222, 143, 0.16); color: var(--green); }
html.modern .b-act:hover { background: rgba(109, 126, 242, 0.1); }
html.modern .note-cell { font-size: 13px; }
html.modern .note-cell:hover { background: rgba(109, 126, 242, 0.08); }
html.modern .drag-cell b { font-size: 11px; font-weight: 800; }
/* ---- positional tier cutoffs (tb-c1..6 + overlay positioning inherited from style.css) ---- */
/* modern's table.pix td (padding 9px + border-bottom) has higher specificity than the base
   boundary rules — re-zero it here so gutters collapse flush (no 19px gap between players) */
html.modern .board-scroll .tier-bound > td { border-bottom: none; background: transparent; }
html.modern .board-scroll .tier-gutter > td { padding: 0; }
/* the cut line: a glass tier-chip resting on a soft tier-coloured hairline (steel-deck look) */
html.modern .board-scroll .tier-head > td,
html.modern .board-scroll .tier-div > td {
  position: relative; padding: 15px 12px 8px; border-top: none; background: transparent;
}
html.modern .board-scroll .tier-head > td::before,
html.modern .board-scroll .tier-div > td::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 25px; height: 1px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--tc) 60%, transparent),
    color-mix(in srgb, var(--tc) 20%, transparent) 42%, transparent 80%);
}
html.modern .tb-label {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 11px; border-radius: 999px;
  font-family: var(--font-head); font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 15%, rgba(20, 22, 38, 0.94));
  border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent);
  box-shadow: 0 3px 12px rgba(8, 5, 22, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html.modern .tb-label::before {   /* leading tier dot */
  content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--tc);
  box-shadow: 0 0 9px color-mix(in srgb, var(--tc) 75%, transparent);
}
html.modern .board-scroll .tier-div > td { cursor: pointer; }
html.modern .tier-div .tb-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-30%); margin: 0;
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-head); font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--red); background: rgba(243, 112, 103, 0.14); border: 1px solid rgba(243, 112, 103, 0.36);
  opacity: 0; transition: opacity .12s ease;
}
html.modern .tier-div:hover .tb-x { opacity: 1; }
html.modern .tier-div:hover .tb-label { background: color-mix(in srgb, var(--tc) 26%, rgba(20, 22, 38, 0.94)); }
/* insertion affordance: hovering the dividing-line zone physically SPLITS the two rows apart
   (gutter expands in-flow → bottom rows slide down, top row lifts up) and drops the cut button
   into the opened gap, so it never overlays row content. Smoothly collapses on mouse-leave. */
html.modern .board-scroll .tier-gutter > td {
  padding: 0; position: relative;
  transition: padding-top .22s cubic-bezier(.22, .61, .36, 1), padding-bottom .22s cubic-bezier(.22, .61, .36, 1);
}
html.modern .board-scroll .tier-gutter:hover > td { padding-top: 14px; padding-bottom: 14px; }
/* the top row lifts up (into its neighbour's padding) so the split reads from both sides.
   .tier-gutter:hover is true whenever the tb-ins overlay is hovered (hover propagates to
   ancestors) — a single, valid :has() (nesting :has inside :has is not allowed) */
html.modern .board-scroll tr[data-bpid] { transition: transform .22s cubic-bezier(.22, .61, .36, 1); }
html.modern .board-scroll tr[data-bpid]:has(+ .tier-gutter:hover) { transform: translateY(-5px); }
/* right after a drop the cursor often rests on a boundary; force the flush (un-split) state until
   the next intentional mouse move so the dropped player settles instantly (no .22s split replay).
   transition:none makes it snap rather than animate closed. */
html.modern .board-scroll.no-hover-split .tier-gutter > td { padding-top: 0 !important; padding-bottom: 0 !important; transition: none !important; }
html.modern .board-scroll.no-hover-split tr[data-bpid] { transform: none !important; transition: none !important; }
html.modern .board-scroll.no-hover-split .tier-gutter .tb-chip { opacity: 0 !important; transition: none !important; }
/* hit-zone: thin band straddling the boundary when flush; stretches to fill the opened gap
   (top/bottom anchored to the cell) so the cursor stays inside as the rows part — no flicker */
html.modern .tier-gutter .tb-ins {
  left: 0; right: 0; top: -9px; bottom: -9px; width: auto; height: auto; transform: none;
  display: flex; align-items: center; justify-content: center;
  padding: 0; background: transparent; border: none; border-radius: 0; box-shadow: none;
  opacity: 1; pointer-events: auto; -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* the cut label — bare tier-coloured text (no pill) centred in the opened gap, fades/rises in */
html.modern .tb-chip {
  position: static; right: auto; top: auto; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px; padding: 0;
  font-family: var(--font-head); font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--tc);
  background: none; border: none; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  opacity: 0; transform: translateY(5px) scale(.95);
  transition: opacity .16s ease .05s, transform .2s cubic-bezier(.22, .61, .36, 1) .05s;
}
html.modern .tier-gutter:hover .tb-chip { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- mock draft room ---------- */
html.modern .stage {
  border: 1px solid rgba(148, 162, 255, 0.3); border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(109, 126, 242, 0.12), rgba(109, 126, 242, 0.03) 40%),
    #171d37;
  box-shadow: 0 10px 26px rgba(5, 3, 16, 0.4);
}
html.modern .stage-player { font-size: 17px; }
html.modern .stage-player b { font-weight: 700; }
html.modern .stage-bid { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
html.modern .stage-leader { font-size: 11px; font-weight: 600; }
html.modern .going { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
html.modern .clock { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
html.modern .stage-actions button { font-size: 10.5px; }
html.modern #m-start {
  background: linear-gradient(135deg, #34d17f, #1fa863); color: #06130b; border-color: transparent;
  box-shadow: 0 4px 16px rgba(52, 209, 127, 0.3);
}
html.modern #m-start:hover { background: linear-gradient(135deg, #46e392, #26bd72); color: #06130b; }
html.modern .mock-settings label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }
html.modern .mbud {
  font-size: 10px; font-weight: 700; border: 1px solid var(--edge-soft);
  border-radius: 10px; background: #171d37; padding: 6px 10px;
}
html.modern .mbud b { font-size: 12px; }
html.modern .mbud.me { border-color: rgba(243, 201, 105, 0.5); }
html.modern .plan-stickybar {
  background: #151a36; border-bottom: 1px solid var(--edge-soft);
  padding: 8px 0 10px; border-radius: 0;
}
html.modern .plan-grade b { font-size: 15px; font-weight: 800; }
html.modern .plan-grade .gscore { font-size: 10px; }
html.modern .tab-grade { font-size: 10px; font-weight: 800; margin-left: 6px; }
html.modern .grade-blurb { font-size: 12px; line-height: 1.5; }
html.modern .grade-blurb b { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }
html.modern .draft-controls button[data-plan].active {
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-2) 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
html.modern .draft-controls button[data-plan].active .tab-grade,
html.modern .draft-controls button[data-plan].active .tab-ren { color: #fff; }
html.modern .draft-controls button.cplan { color: #7ee0ff; border-color: rgba(126, 224, 255, 0.45); }
html.modern .draft-controls button.cplan.active {
  background: linear-gradient(135deg, #3db6e8 0%, #2a7fd4 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 16px rgba(61, 182, 232, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
html.modern .draft-controls button.cplan.active .tab-grade { color: #fff; }
html.modern .plan-row { cursor: pointer; }
html.modern .plan-expand td { padding: 0; }
html.modern .keep-setup { border: 1px solid var(--edge-soft); border-radius: 10px; background: #171d37; }
html.modern .keep-setup b { font-size: 11px; font-weight: 800; color: var(--lav); }
html.modern .keep-opt { font-size: 10px; border-radius: 7px; }
html.modern .mslot { border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; }
html.modern .mslot-tag {
  font-size: 9px; font-weight: 800; border-radius: 4px;
  background: #232c54; color: var(--lav);
}
html.modern .mcost { font-size: 12px; font-weight: 700; }
html.modern .mbye { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; }
html.modern .mslot-tag.pos-QB { background: rgba(243, 112, 103, 0.16); color: var(--red); }
html.modern .mslot-tag.pos-RB { background: rgba(69, 222, 143, 0.15); color: var(--green); }
html.modern .mslot-tag.pos-WR { background: rgba(111, 201, 242, 0.15); color: var(--cyan); }
html.modern .mslot-tag.pos-TE { background: rgba(243, 201, 105, 0.16); color: var(--yellow); }
html.modern .mslot-tag.pos-K { background: rgba(205, 138, 245, 0.16); color: var(--purple); }
html.modern .mslot-tag.pos-DST { background: rgba(154, 154, 180, 0.16); color: #b9b9cf; }
html.modern .mlog-line { font-size: 13.5px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
html.modern .my-result { outline: 2px solid rgba(243, 201, 105, 0.6); border-radius: 14px; }

/* ---------- inputs ---------- */
html.modern input, html.modern select {
  font-family: var(--font-body); font-size: 14px; border-radius: 9px;
  border: 1px solid rgba(148, 162, 255, 0.22); background: #0f1221; color: var(--ink);
  box-shadow: none; padding: 8px 10px;
}
html.modern input:focus, html.modern select:focus {
  outline: none; border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(109, 126, 242, 0.18);
}
html.modern .plan-in { font-size: 14px; font-weight: 700; padding: 6px 4px; }
html.modern .plan-in:disabled { border-color: rgba(243, 201, 105, 0.5); }
/* on-brand stepper — steel-indigo glass to match the modern deck */
html.modern .plan-stepper .plan-in { border-radius: 9px 0 0 9px; }
html.modern .plan-step {
  border: 1px solid rgba(148, 162, 255, 0.22); width: 17px; font-size: 7px; padding: 0;
  background: rgba(109, 126, 242, 0.10); color: var(--lav);
}
html.modern .plan-step:first-child { border-radius: 0 9px 0 0; }
html.modern .plan-step:last-child { border-radius: 0 0 9px 0; border-top: none; }
html.modern .plan-step:hover { background: var(--acc); color: #0e1120; }
html.modern .plan-step:active { color: var(--ink); }
html.modern .plan-step:disabled { background: rgba(148, 162, 255, 0.05); color: var(--dim); opacity: .5; }
html.modern .plan-range { font-size: 12px; }
html.modern .plan-delta { font-size: 10px; font-weight: 800; }
html.modern .note-input { border: 1px solid var(--acc); font-size: 13px; }

/* ---------- player card ---------- */
html.modern #pcard-overlay, html.modern #pick-overlay {
  background: rgba(10, 7, 22, 0.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html.modern .pickbox { max-width: 680px; }
html.modern .pcard {
  max-width: 1080px;
  border: 1px solid var(--edge); border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(109, 126, 242, 0.07) 0%, transparent 40%),
    linear-gradient(180deg, #181e3a 0%, #111632 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(109, 126, 242, 0.12);
}
html.modern .pcard-close {
  border-radius: 999px; background: rgba(243, 112, 103, 0.16); color: var(--red);
  border: 1px solid rgba(243, 112, 103, 0.3); font-size: 12px;
}
html.modern .pcard-close:hover { background: var(--red); color: #16091a; }
html.modern .pcard-name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
html.modern .pcard .pts { font-size: 12px; font-weight: 700; }
html.modern .pcard .statline { font-size: 13px; }
html.modern .pcard-logo { width: 56px !important; height: 56px !important; }
html.modern .pname:hover { color: var(--lav); }

/* ---------- title screen ---------- */
html.modern #boot {
  background:
    radial-gradient(900px 620px at 50% 118%, rgba(94, 114, 235, 0.22), transparent 62%),
    radial-gradient(700px 460px at 84% -8%, rgba(90, 168, 232, 0.12), transparent 55%),
    linear-gradient(180deg, #0a0d18 0%, #101425 100%);
}
html.modern .boot-topline { font-size: 11px; font-weight: 600; letter-spacing: 0.35em; }
html.modern .logo {
  font-weight: 800; letter-spacing: 0.02em; color: var(--lav);
  filter: drop-shadow(0 8px 40px var(--glow));
}
html.modern .logo span { color: var(--acc); }
html.modern .boot-sub { font-size: clamp(12px, 2vw, 16px); font-weight: 600; letter-spacing: 0.5em; color: var(--dim); }
html.modern .field-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(148, 162, 255, 0.5), transparent); }
html.modern .boot-stats { font-size: 12px; font-weight: 600; line-height: 2; color: var(--lav); }
html.modern .press-start {
  display: inline-block; font-size: clamp(13px, 2.2vw, 16px); font-weight: 700; letter-spacing: 0.3em;
  padding: 13px 36px 13px 44px; border: 1px solid rgba(148, 162, 255, 0.4); border-radius: 999px;
  background: rgba(109, 126, 242, 0.1); color: var(--ink);
}
html.modern .boot-copy { font-size: 10px; font-weight: 500; }
/* arcade .blink is steps(2) visibility; modern gets a smooth glow pulse */
html.modern .blink { animation: modern-pulse 1.8s ease-in-out infinite; }
@keyframes modern-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(109, 126, 242, 0); }
  50% { opacity: 0.72; box-shadow: 0 0 26px 3px var(--glow); }
}

/* ---------- toast: violet glass ---------- */
html.modern #toast {
  border: 1px solid rgba(243, 112, 103, 0.4); border-radius: 12px;
  background: rgba(20, 22, 38, 0.85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12.5px; font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ---------- scrollbars ---------- */
html.modern ::-webkit-scrollbar { width: 10px; height: 10px; }
html.modern ::-webkit-scrollbar-track { background: transparent; }
html.modern ::-webkit-scrollbar-corner { background: transparent; }
html.modern ::-webkit-scrollbar-thumb { background: #28325a; border-radius: 8px; border: 2px solid #0a0d18; }
html.modern ::-webkit-scrollbar-thumb:hover { background: var(--acc); }

/* ---------- settings screen (shared layout — lives here, used by both themes) ---------- */
.set-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.set-row button.active { background: var(--yellow); color: var(--bg-deep); }

/* WAR ROOM mark expander — compact in modern (global input/button padding is too big here) */
html.modern .war-expand-in { gap: 6px; border-radius: 0 0 10px 10px; border-left-color: var(--acc, #5865f2); }
html.modern .war-expand input.war-price { width: 48px; padding: 3px 6px; font-size: 11px; border-radius: 6px; }
html.modern .war-expand button { font-size: 9px; padding: 3px 9px; border-radius: 6px; letter-spacing: .03em; }
html.modern .war-chip img { width: 34px; height: 34px; }
/* MY TEAM slots: a drafted D/ST's team logo gets the SAME 34px avatar box as
   player headshots so every filled slot renders one height (Jack, 2026-07-26) */
html.modern .war-slot .tlogo {
  width: 34px; height: 34px; border-radius: 50%; object-fit: contain; padding: 5px;
  margin-right: 9px; box-sizing: border-box;
  background: #1b2038; border: 1px solid rgba(148, 162, 255, 0.22);
}

/* claude value view: modern's generous cell padding was re-inflating the RANK/Δ gap */
html.modern #b-table.cbv th:nth-child(-n+2), html.modern #b-table.cbv td:nth-child(-n+2) { padding-left: 8px; padding-right: 4px; }
html.modern #b-table.cbv td:nth-child(3), html.modern #b-table.cbv th:nth-child(3) { padding-left: 6px; }

/* ---------- LIVE DRAFT ROOM (league build L1) ---------- */
html.modern .room-bidbar input, html.modern .room-identrow select,
html.modern #room-nom-amt, html.modern #room-search {
  background: var(--m-bg-inset, rgba(255,255,255,.05)); color: var(--ink);
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 13px; padding: 6px 10px; }
html.modern #room-nom-amt { font-size: 12px; padding: 3px 8px; }
html.modern .room-dot { width: 7px; height: 7px; }
html.modern .room-team { border-bottom: 1px solid rgba(255,255,255,.08); }
html.modern .room-teamnums { font-size: 12px; }
html.modern .room-nomtag { border-radius: 5px; font-size: 10px; font-weight: 800; }
html.modern .room-paused { border-color: var(--red); }

/* ---------- LEAGUE LOGIN (L2) ---------- */
html.modern #league-login { background: var(--bg, #0b0b14); }
html.modern .llog-box { border-radius: 16px; }
html.modern .llog-box input { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; }
html.modern #logout-btn { border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; }

/* LIVE SYNC (war-room bridge, L3) */
html.modern #war-bridge.wb-live { color: var(--green); border-color: rgba(77,255,124,.5); }

/* room keeper pre-load (L3) */
html.modern .room-keeprow { border-bottom: 1px solid rgba(255,255,255,.08); }
html.modern .room-keepteam { font-size: 12px; font-weight: 600; }
