/* REBUILD — retro broadcast scoreboard × Apple restraint */
/* Self-hosted display face: identical broadcast type on every OS (OFL license).
   Apple devices that have Avenir Next Condensed still prefer it. */
@font-face { font-family: "Barlow SemiCond"; font-weight: 500; font-display: swap; src: url("../assets/fonts/barlow-semicond-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow SemiCond"; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-semicond-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow SemiCond"; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-semicond-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow SemiCond"; font-weight: 800; font-display: swap; src: url("../assets/fonts/barlow-semicond-800.woff2") format("woff2"); }
:root {
  --bg: #101214;
  --bg2: #16191c;
  --card: #1c2024;
  --card2: #22272c;
  --line: rgba(255, 255, 255, 0.08);
  --txt: #f2f4f6;
  --mut: #9aa3ab;
  --amber: #ffb000;
  --green: #3fe27f;
  --red: #ff5252;
  --blue: #4da3ff;
  /* clay palette, sampled from the logo: rim orange, stripe red, backboard */
  --clay: #e65f36;
  --clay-deep: #c9451c;
  --clay-hi: #f37d50;
  --board: #e9e7e3;
  --cond: "Avenir Next Condensed", "Barlow SemiCond", "Arial Narrow", sans-serif;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sys);
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:disabled { opacity: 0.45; cursor: default; }

/* ---------- HUD scoreboard ---------- */
#hud {
  display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(180deg, #23282d 0%, #14171a 55%, #101214 100%);
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 24px rgba(0,0,0,0.5);
  min-height: 64px;
  padding: 0 14px;
  position: sticky; top: 0; z-index: 20;
}
.hud-brand { font-family: var(--cond); font-weight: 700; font-size: 30px; letter-spacing: 2px; align-self: center; color: var(--clay); }
.hud-brand span { color: var(--txt); }
.hud-sub { align-self: center; margin-left: 14px; color: var(--mut); font-size: 13px; }
.hud-team { display: flex; align-items: center; gap: 10px; padding-right: 16px; }
.hud-abbr {
  font-family: var(--cond); font-weight: 700; font-size: 26px; letter-spacing: 1px;
  background: linear-gradient(160deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #000));
  border-top: 2px solid var(--c2);
  color: #fff; padding: 8px 12px; margin: 8px 0; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hud-teamname { font-family: var(--cond); font-size: 13px; line-height: 1.15; text-transform: uppercase; letter-spacing: 1px; color: var(--mut); }
.hud-teamname b { color: var(--txt); font-size: 15px; }
.hud-phase { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hud-phase-main { font-family: var(--cond); font-size: 21px; font-weight: 600; letter-spacing: 3px; }
.hud-year { color: var(--amber); }
.hud-phase-sub { font-family: var(--cond); font-size: 11px; letter-spacing: 2px; color: var(--mut); margin-top: 2px; }
.hud-leds { display: flex; gap: 14px; align-items: center; }
.led { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.led label { font-family: var(--cond); font-size: 10px; letter-spacing: 2px; color: var(--mut); }
.led-num {
  font-family: var(--mono); font-size: 22px; font-weight: 700; min-width: 54px; text-align: center;
  background: #0a0c0d; border: 1px solid #000; border-radius: 6px; padding: 2px 8px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
}
.led-num.amber { color: var(--amber); text-shadow: 0 0 12px rgba(255,176,0,0.55); }
.led-num.green { color: var(--green); text-shadow: 0 0 12px rgba(63,226,127,0.5); }
.led-num.red { color: var(--red); text-shadow: 0 0 12px rgba(255,82,82,0.5); }
.led-num.white { color: #e8ecef; text-shadow: 0 0 10px rgba(255,255,255,0.35); }
.hud-right { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

/* ---------- generic ---------- */
#screen { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 20px 16px 150px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; margin-bottom: 14px;
}
.card h3 { font-family: var(--cond); font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--mut); margin-bottom: 12px; }
.muted { color: var(--mut); } .small { font-size: 13px; } .center { text-align: center; }
.tip { margin-top: 10px; color: var(--amber); font-size: 13px; }
/* clay CTA: matte rim-orange — flat fill, soft clay light, no gloss */
.primary {
  background: var(--clay);
  color: #fff8f4; font-family: var(--cond); font-weight: 700;
  letter-spacing: 2px; font-size: 15px; padding: 11px 22px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--clay-deep) 70%, #000);
  transition: transform .08s ease, box-shadow .2s, filter .15s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 6px 18px rgba(230,95,54,0.28), 0 2px 6px rgba(0,0,0,0.3);
}
.primary:hover:not(:disabled) {
  transform: translateY(-1px); filter: brightness(1.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 24px rgba(230,95,54,0.38), 0 2px 6px rgba(0,0,0,0.3);
}
.primary:active:not(:disabled) {
  transform: translateY(1px); filter: brightness(0.97);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 3px 10px rgba(230,95,54,0.22);
}
.primary.big { font-size: 18px; padding: 15px 30px; width: 100%; border-radius: 18px; }
.ghost {
  color: var(--mut); font-family: var(--cond); letter-spacing: 1.5px; font-size: 13px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}
.ghost:hover { color: var(--txt); border-color: rgba(255,255,255,0.25); }
.mini { font-family: var(--cond); letter-spacing: 1.5px; font-size: 12px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); color: var(--txt); white-space: nowrap; background: rgba(255,255,255,0.03); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset; }
.mini.primary { border: none; }
.mini.danger { color: var(--mut); border: 1px solid var(--line); background: rgba(255,255,255,0.02); box-shadow: none; }
.mini.danger:hover { color: var(--red); border-color: rgba(255,82,82,0.3); }
.armed { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
.pill {
  font-family: var(--cond); font-size: 12px; letter-spacing: 1.5px; padding: 5px 13px;
  border: 1px solid var(--line); border-radius: 99px; color: var(--mut);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07) inset, 0 2px 5px rgba(0,0,0,0.25);
}
.pill.on {
  background: var(--clay); color: #fff8f4;
  border-color: color-mix(in srgb, var(--clay-deep) 70%, #000); font-weight: 700;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 3px 8px rgba(230,95,54,0.3);
}

.ovr {
  display: inline-block; min-width: 34px; text-align: center; font-family: var(--mono);
  font-weight: 700; font-size: 13px; padding: 3px 6px; border-radius: 6px;
}
.ovr.elite { background: rgba(255,176,0,0.16); color: var(--amber); }
.ovr.star { background: rgba(77,163,255,0.16); color: var(--blue); }
.ovr.starter { background: rgba(63,226,127,0.13); color: var(--green); }
.ovr.rot { background: rgba(255,255,255,0.08); color: var(--txt); }
.ovr.fringe { background: rgba(255,255,255,0.05); color: var(--mut); }

/* ---------- landing ---------- */
.landing { display: flex; flex-direction: column; align-items: center; padding-top: 4vh; gap: 22px; }
/* the clay logo is its own physical object — no plate, just float it with soft light */
.logo-poster { background: none; border: none; padding: 0; }
.logo-poster img {
  display: block; width: min(340px, 72vw); height: auto; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,0.55)) drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

/* ---------- landing cinema: today's scenario as a broadcast open ---------- */
.cinema {
  position: relative; width: min(560px, 94vw); aspect-ratio: 4 / 3;
  border-radius: 22px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 90px rgba(0,0,0,0.65), 0 1px 0 rgba(255,255,255,0.09) inset,
              0 0 0 1px rgba(0,0,0,0.4);
  background: #0b0d0f;
}
.cin-slides, .cin-slides img, .cin-tone, .cin-grade, .cin-grain { position: absolute; inset: 0; }
.cin-slides img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  opacity: 0; transition: opacity 1.9s ease; user-select: none; -webkit-user-drag: none;
  filter: saturate(1.04) contrast(1.07) brightness(0.92);
  animation: cin-push 15s ease-in-out infinite alternate;
}
.cin-slides img:nth-child(2n) { animation-name: cin-push-b; }
.cin-slides img.on { opacity: 1; }
@keyframes cin-push   { from { transform: scale(1.06) translate(0.8%, 0.6%); } to { transform: scale(1.17) translate(-1.2%, -0.8%); } }
@keyframes cin-push-b { from { transform: scale(1.17) translate(-1%, 0.8%); } to { transform: scale(1.06) translate(1%, -0.6%); } }
/* team-color duotone wash, blended into the photo */
.cin-tone {
  background: linear-gradient(155deg, color-mix(in srgb, var(--c1) 85%, #000) 0%, transparent 62%),
              linear-gradient(335deg, color-mix(in srgb, var(--c2) 60%, #000) 0%, transparent 55%);
  mix-blend-mode: soft-light; opacity: 0.9;
}
/* golden key light + bottom scrim + vignette */
.cin-grade {
  background:
    radial-gradient(115% 85% at 14% -4%, rgba(255,199,77,0.30), transparent 52%),
    radial-gradient(80% 55% at 88% 8%, rgba(255,176,0,0.12), transparent 60%),
    linear-gradient(0deg, rgba(8,9,11,0.92) 0%, rgba(8,9,11,0.35) 26%, transparent 52%),
    radial-gradient(135% 135% at 50% 42%, transparent 58%, rgba(0,0,0,0.52) 100%);
}
.cin-grain {
  opacity: 0.11; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
/* network bug: the clay logo floats over the photo like a broadcast sting */
.cin-brand { position: absolute; top: 12px; left: 12px; z-index: 3; }
.cin-brand img {
  display: block; width: 96px; height: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6)) drop-shadow(0 2px 5px rgba(0,0,0,0.45));
}
/* lower third */
.cin-lower {
  position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 3;
  display: flex; align-items: flex-end; gap: 14px;
}
.cin-logo {
  width: 64px; height: 64px; object-fit: contain; flex: none;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.65));
}
.cin-eyebrow {
  font-family: var(--cond); letter-spacing: 3px; font-size: 11px; color: #e9d9ad;
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.cin-no { color: var(--amber); font-weight: 700; }
.cin-year {
  margin-left: auto; font-family: var(--cond); font-weight: 700; font-size: 64px; line-height: 0.82;
  letter-spacing: 1px;
  background: linear-gradient(178deg, #ffe9b0 8%, var(--amber) 55%, #9a6a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.7));
}
@media (prefers-reduced-motion: reduce) {
  .cin-slides img { animation: none; transition-duration: 0.4s; }
}
@media (max-width: 560px) {
  .cinema { aspect-ratio: 1 / 1; border-radius: 18px; }
  .cin-year { font-size: 46px; }
  .cin-brand img { width: 72px; }
  .cin-logo { width: 48px; height: 48px; }
}

/* ---------- team logos across the UI ---------- */
.tlogo { width: 22px; height: 22px; object-fit: contain; vertical-align: -6px; flex: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.team-cell { display: inline-flex; align-items: center; gap: 8px; }
.po-opp .tlogo { width: 26px; height: 26px; margin-right: 8px; }
.card-wm, .arch-wm {
  position: absolute; right: -26px; top: -26px; width: 170px; height: 170px; object-fit: contain;
  opacity: 0.07; pointer-events: none; filter: grayscale(0.4) brightness(1.6);
}
.arch-wm { width: 84px; height: 84px; right: 10px; top: auto; bottom: 10px; opacity: 0.05; filter: grayscale(1) brightness(2.2); }
.arch-card { position: relative; overflow: hidden; }

/* ---------- player avatars ---------- */
.ava {
  --asz: 38px;
  position: relative; width: var(--asz); height: var(--asz); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(165deg, #2c343b, #191d21);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.ava i { font-style: normal; font-family: var(--cond); font-weight: 600; font-size: calc(var(--asz) * 0.36); letter-spacing: 1px; color: #cdd5db; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transform: scale(1.28) translateY(6%); }
.ava.sm { --asz: 26px; }
.ava.lg { --asz: 48px; }
.p-name { display: inline-flex; align-items: center; gap: 10px; }
.land-card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 560px; text-align: center;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c1) 26%, var(--card)) 0%, var(--card) 55%);
  border: 1px solid var(--line); border-top: 3px solid var(--c2);
  border-radius: 18px; padding: 34px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.land-no { font-family: var(--cond); letter-spacing: 3px; color: var(--mut); font-size: 13px; }
.land-team { font-family: var(--cond); font-weight: 700; font-size: 40px; letter-spacing: 1px; margin: 8px 0 2px; text-transform: uppercase; }
.land-title { color: var(--amber); font-size: 16px; font-style: italic; margin-bottom: 14px; }
.land-meta { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.land-intro { color: #c9d1d7; line-height: 1.55; font-size: 14px; margin-bottom: 22px; text-align: left; }
.land-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- archive ---------- */
.archive h2 { font-family: var(--cond); letter-spacing: 2px; margin-bottom: 4px; }
.archive > .muted { margin-bottom: 16px; }
.arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.arch-card {
  text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
  transition: transform .1s;
}
/* featured today card: the level-select hero */
.arch-feature {
  position: relative; display: block; width: 100%; overflow: hidden; text-align: left;
  border-radius: 18px; border: 1px solid rgba(255,255,255,0.12);
  min-height: 150px; margin-bottom: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.af-photo { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; object-position: center 30%;
  filter: blur(7px) saturate(1.15) brightness(0.72); transform: scale(1.08); }
.af-grade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,9,11,0.92) 18%, rgba(8,9,11,0.55) 55%, rgba(8,9,11,0.15)),
              linear-gradient(160deg, color-mix(in srgb, var(--c1) 40%, transparent), transparent 60%); }
.af-body { position: relative; z-index: 2; padding: 22px 20px; }
.af-kicker { font-family: var(--cond); letter-spacing: 3px; font-size: 11px; color: var(--amber); margin-bottom: 6px; }
.af-team { font-family: var(--cond); font-weight: 700; font-size: 26px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.af-logo { position: absolute; right: 18px; bottom: 14px; width: 54px; height: 54px; object-fit: contain; z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6)); }
.arch-feature:hover { transform: translateY(-2px); }
.arch-best .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); margin-right: 6px; vertical-align: 1px; }
.arch-best.solved { color: var(--green); }
.arch-card:hover { transform: translateY(-2px); background: var(--card2); }
.arch-year { font-family: var(--mono); color: var(--amber); font-size: 13px; }
.arch-name { font-family: var(--cond); font-weight: 600; font-size: 17px; letter-spacing: 0.5px; margin: 2px 0; }
.arch-title { color: var(--mut); font-size: 13px; font-style: italic; }
.arch-meta { color: var(--mut); font-size: 11px; margin-top: 8px; font-family: var(--cond); letter-spacing: 1px; text-transform: uppercase; }

/* ---------- offseason ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  font-family: var(--cond); letter-spacing: 2px; font-size: 13px; color: var(--mut);
  padding: 9px 18px; border-radius: 99px; border: 1px solid transparent;
}
.tab.on {
  background: var(--card2); color: var(--txt); border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 3px 10px rgba(0,0,0,0.35);
}
.tab i { font-style: normal; background: var(--clay); color: #fff8f4; border-radius: 99px; padding: 1px 7px; font-size: 11px; font-weight: 700; margin-left: 4px; box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset; }
.offbar {
  position: fixed; bottom: 34px; left: 0; right: 0; z-index: 15;
  display: flex; gap: 22px; align-items: center; justify-content: center;
  background: rgba(14,16,18,0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 10px 16px;
}
.offbar-stat { display: flex; flex-direction: column; align-items: center; }
.offbar-stat label { font-family: var(--cond); font-size: 10px; letter-spacing: 2px; color: var(--mut); }
.offbar-stat b { font-family: var(--mono); font-size: 16px; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-family: var(--cond); font-size: 11px; letter-spacing: 2px; color: var(--mut); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.bench td { opacity: 0.62; }
.tbl tr.you td { background: rgba(255,176,0,0.07); }
.pos { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.new-dot { font-family: var(--cond); font-size: 10px; letter-spacing: 1px; color: var(--amber); border: 1px solid rgba(255,176,0,0.4); border-radius: 6px; padding: 1px 5px; vertical-align: middle; }
.wire li, .movelog li { list-style: none; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.wire li:last-child, .movelog li:last-child { border-bottom: none; }
.log-year { font-family: var(--mono); color: var(--amber); font-size: 12px; margin-right: 10px; }
.intro-card { border-left: 3px solid var(--amber); }
.intro-card p { line-height: 1.55; font-size: 14px; }
.pickrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* trade */
.offer { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--card2); }
.offer-head { font-family: var(--cond); letter-spacing: 1px; margin-bottom: 6px; }
.offer-body { display: flex; flex-direction: column; gap: 3px; font-size: 13px; margin-bottom: 10px; }
.offer-body .give { color: var(--red); } .offer-body .get { color: var(--green); }
.target { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.target.open { border-color: rgba(255,176,0,0.4); }
.target-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; text-align: left; font-size: 14px; }
.target-row:hover { background: var(--card2); }
.target-row .ask { font-family: var(--mono); font-size: 13px; color: var(--amber); }
.target-row .econ { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.builder { border-top: 1px solid var(--line); padding: 14px; background: var(--card2); }
.builder-note { font-size: 13px; color: var(--mut); font-style: italic; margin-bottom: 10px; }
.builder-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.builder-cols label { font-family: var(--cond); font-size: 11px; letter-spacing: 2px; color: var(--mut); display: block; margin-bottom: 6px; }
.asset {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 5px;
  font-size: 13px; text-align: left;
}
.asset span { color: var(--mut); font-size: 11px; font-family: var(--mono); }
.asset.sel { border-color: var(--amber); background: rgba(255,176,0,0.1); }
.meter { position: relative; height: 26px; background: #0a0c0d; border-radius: 10px; overflow: hidden; border: 1px solid #000; margin-bottom: 10px; }
.meter-fill { height: 100%; background: linear-gradient(90deg, #7a4a00, var(--amber)); transition: width .25s ease; }
.meter-fill.good { background: linear-gradient(90deg, #0d7a3f, var(--green)); }
.meter span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.builder-foot { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.builder-foot .ok { color: var(--green); } .builder-foot .bad { color: var(--red); }
.builder-foot .mini { margin-left: auto; }

/* FA */
/* fixed grid so OVR / price / PULL / action land in the same columns every row */
.fa-row {
  display: grid; grid-template-columns: 30px 48px minmax(0,1fr) 48px 96px 92px 150px;
  align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line);
}
.fa-row:last-of-type { border-bottom: none; }
.fa-name { min-width: 0; display: flex; flex-direction: column; }
.fa-ask { font-family: var(--mono); font-size: 13px; color: var(--mut); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.fa-row > .ovr { justify-self: end; }
.fa-row > .mini { justify-self: end; }
.fa-pull { font-family: var(--cond); font-size: 12px; letter-spacing: 1px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.fa-pull.ok { color: var(--green); border: 1px solid rgba(63,226,127,0.35); }
.fa-pull.bad { color: var(--red); border: 1px solid rgba(255,82,82,0.3); }
.mini.locked { color: var(--mut); border-style: dashed; opacity: 0.75 !important; white-space: nowrap; }

/* ---------- season ---------- */
.season { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; padding-top: 3vh; }
.score-flash {
  text-align: center; background: linear-gradient(180deg, #23282d, #101214);
  border: 1px solid var(--line); border-radius: 18px; padding: 30px 20px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}
.sf-label { font-family: var(--cond); letter-spacing: 3px; color: var(--mut); font-size: 13px; }
.sf-record { font-family: var(--mono); font-size: 72px; font-weight: 700; color: var(--amber); text-shadow: 0 0 30px rgba(255,176,0,0.4); line-height: 1.1; }
.sf-record span { color: var(--mut); }
.sf-sub { font-family: var(--cond); letter-spacing: 2px; font-size: 13px; color: var(--txt); }

/* ---------- playoffs ---------- */
/* the bracket lives in an arena: court lines + vignette fill the viewport */
.playoffs {
  position: relative; max-width: 680px; margin: 0 auto;
  min-height: calc(100vh - 150px);
  display: flex; flex-direction: column; justify-content: center; padding-top: 0;
}
.playoffs::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(58% 44% at 50% 118%, rgba(230,95,54,0.10), transparent 60%),
    radial-gradient(circle at 50% 120%, transparent 218px, rgba(255,255,255,0.028) 219px 221px, transparent 222px),
    radial-gradient(circle at 50% 120%, transparent 318px, rgba(255,255,255,0.02) 319px 321px, transparent 322px),
    radial-gradient(circle at 50% 120%, transparent 428px, rgba(255,255,255,0.015) 429px 431px, transparent 432px);
}
.po-head { font-family: var(--cond); letter-spacing: 4px; text-align: center; margin-bottom: 14px; }
.po-note { text-wrap: balance; max-width: 440px; margin: 0 auto; }
.po-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.po-series {
  display: grid; grid-template-columns: 46px minmax(170px,1fr) auto; align-items: center; gap: 10px 14px;
  grid-template-areas: "logo main verdict" "caps caps caps";
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  min-height: 76px; position: relative;
}
.po-logo { grid-area: logo; }
.po-main { grid-area: main; min-width: 0; }
.po-result { grid-area: verdict; }
.po-caps { grid-area: caps; display: flex; justify-content: flex-start; border-top: 1px dashed rgba(255,255,255,0.08); padding-top: 9px; }
.po-caps .gcaps { justify-content: flex-start; }
/* bracket rail: rounds are connected, not floating */
.po-list { position: relative; }
.po-list::before { content: ""; position: absolute; left: 38px; top: 20px; bottom: 20px; width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)); }
.po-series { margin-left: 0; }
.po-series::before { content: ""; position: absolute; left: -1px; top: 50%; width: 3px; height: 26px;
  transform: translateY(-50%); border-radius: 2px; background: rgba(255,255,255,0.12); }
.po-series.won::before { background: var(--green); }
.po-series.lost::before { background: var(--red); }
.po-series.live::before { background: var(--amber); }
.po-series.live { border-color: var(--amber); box-shadow: 0 0 24px rgba(255,176,0,0.12); }
.po-series.won { border-color: rgba(63,226,127,0.4); }
.po-series.lost { border-color: rgba(255,82,82,0.5); }
.po-series.future { opacity: 0.55; }
.po-logo .tlogo { width: 40px; height: 40px; margin: 0; padding: 4px;
  background: rgba(244,245,246,0.92); border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,0.45); }
.po-field {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(244,245,246,0.92); color: #1a1d21;
  box-shadow: 0 1px 5px rgba(0,0,0,0.45);
}
.po-field .ic { width: 22px; height: 22px; }
.po-wm {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  font-family: var(--cond); font-weight: 800; font-size: clamp(160px, 26vw, 300px); line-height: 1;
  color: rgba(255,255,255,0.026); pointer-events: none; user-select: none; z-index: -1;
}
.po-stamp {
  display: inline-block; margin-left: 10px; transform: rotate(-4deg);
  font-family: var(--cond); font-weight: 800; letter-spacing: 2.5px; font-size: 12px;
  color: var(--red); border: 2px solid var(--red); border-radius: 6px; padding: 2px 8px;
  opacity: 0.95; background: rgba(16,18,20,0.7); vertical-align: 2px;
}
.po-stamp.champ { color: var(--amber); border-color: var(--amber); }
.po-round { font-family: var(--cond); font-size: 12px; letter-spacing: 2px; color: var(--mut); text-transform: uppercase; margin-bottom: 2px; }
.po-opp { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.po-odds { font-family: var(--mono); font-size: 12px; color: var(--amber); }
.po-waits { font-family: var(--cond); letter-spacing: 2px; font-size: 10px; color: var(--mut);
  border: 1px dashed rgba(255,255,255,0.18); border-radius: 99px; padding: 4px 12px; }
.po-result { text-align: right; font-family: var(--cond); letter-spacing: 1.5px; font-size: 13px; }
.po-series.won .po-result { color: var(--green); }
.po-series.lost .po-result { color: var(--red); }
.po-verdict { white-space: nowrap; display: inline-block; margin-left: 8px; font-weight: 700; }
/* per-game broadcast capsules */
.gcaps { display: inline-flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.gcap {
  font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0;
  padding: 3px 7px 4px; border-radius: 6px; display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--txt);
  font-variant-numeric: tabular-nums;
}
.gcap label { font-family: var(--cond); font-size: 8px; letter-spacing: 1.5px; color: var(--mut); }
.gcap.w { border-color: rgba(63,226,127,0.45); color: var(--green); }
.gcap.l { border-color: rgba(255,82,82,0.4); color: var(--red); }
.gcap.pop { animation: gcap-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }
@keyframes gcap-in { from { opacity: 0; transform: translateY(8px) scale(0.8); } }
/* the clinch: gold takeover the moment the title lands */
.clinch {
  position: fixed; inset: 0; z-index: 75; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255,176,0,0.20), transparent 70%),
    rgba(6,7,9,0.90);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadein 0.4s ease;
}
.clinch-inner { text-align: center; padding: 24px; animation: podium-in 0.6s cubic-bezier(0.2,0.9,0.3,1.15) backwards; }
.clinch-troph .ic { width: 88px; height: 88px; margin: 0 auto 10px; color: var(--amber); stroke-width: 1.2;
  filter: drop-shadow(0 0 34px rgba(255,176,0,0.55)); }
.clinch-kicker { font-family: var(--cond); font-weight: 700; letter-spacing: 8px; font-size: 15px; color: var(--amber); margin-bottom: 6px; }
.clinch-team {
  font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  font-size: clamp(34px, 7vw, 58px); line-height: 1.05; margin-bottom: 26px;
  background: linear-gradient(178deg, #fff 15%, #ffd98a 60%, #b98413 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.series-flash {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--cond); font-weight: 700; font-size: clamp(40px, 9vw, 90px); letter-spacing: 8px;
  z-index: 50; pointer-events: none; animation: flash 1.4s ease forwards;
  text-shadow: 0 0 60px currentColor; background: rgba(10,12,13,0.55); backdrop-filter: blur(3px);
}
.series-flash.w { color: var(--green); } .series-flash.l { color: var(--red); }
@keyframes flash { 0% { opacity: 0; transform: scale(1.25); } 15% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- end ---------- */
.end { max-width: 640px; margin: 0 auto; padding-top: 3vh; }
.end .end-banner, .end .card { position: relative; z-index: 10; }
.end-banner {
  text-align: center; border-radius: 18px; padding: 36px 24px; margin-bottom: 14px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c1) 40%, var(--card)), var(--card) 70%);
  border: 1px solid var(--line); border-top: 3px solid var(--c2);
}
.end.lost .end-banner {
  background: linear-gradient(165deg, #2a1214, var(--card) 70%); border-top-color: var(--red);
  animation: mourn 2.2s 0.4s ease forwards;
}
@keyframes mourn { to { filter: grayscale(0.85); } }
.np-rule { height: 1px; background: rgba(255,255,255,0.25); margin: 4px 10%; }
.np-head {
  font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: clamp(19px, 3.4vw, 26px); padding: 8px 0 2px;
}
.np-sub { font-family: var(--cond); font-size: 11px; letter-spacing: 3px; color: var(--mut); padding-bottom: 10px; }
.end.lost h1 { color: var(--red); letter-spacing: 8px; margin-top: 14px; }
.end-banner { position: relative; overflow: hidden; }
.end-wm {
  position: absolute; right: -44px; bottom: -44px; width: 190px; height: 190px; object-fit: contain;
  opacity: 0.04; pointer-events: none; filter: grayscale(0.6) brightness(1.7);
}
.end-troph { font-size: 64px; animation: bounce 1.2s ease; }
@keyframes bounce { 0% { transform: translateY(-40px); opacity: 0; } 60% { transform: translateY(6px); opacity: 1; } 100% { transform: translateY(0); } }

/* the banner itself, dropped from the rafters */
.raft-drop {
  position: relative; width: 190px; margin: 4px auto 20px; padding: 22px 16px 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), transparent 30%),
    linear-gradient(170deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 60%, #000) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.6));
  transform-origin: top center;
  animation: raft-drop 1.15s cubic-bezier(0.22, 0.9, 0.28, 1.04) backwards,
             raft-sway 2.6s 1.15s ease-in-out;
}
.raft-drop::before { /* gold trim */
  content: ""; position: absolute; inset: 6px;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
  border: 0; background:
    linear-gradient(#0000, #0000) padding-box,
    linear-gradient(180deg, rgba(255,220,130,0.9), rgba(160,110,20,0.9)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 2px; pointer-events: none;
}
@keyframes raft-drop { from { transform: translateY(-130%); } }
@keyframes raft-sway {
  0% { transform: rotate(0deg); } 25% { transform: rotate(1.6deg); }
  55% { transform: rotate(-1.1deg); } 80% { transform: rotate(0.5deg); } 100% { transform: rotate(0); }
}
.rb-year {
  font-family: var(--cond); font-weight: 800; font-size: 44px; letter-spacing: 2px;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.rb-logo { width: 58px; height: 58px; object-fit: contain; margin: 8px auto; display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.rb-label {
  font-family: var(--cond); font-weight: 700; font-size: 11px; letter-spacing: 3px;
  color: rgba(255,255,255,0.92); margin-bottom: 6px;
}
.rb-team {
  font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: 2px;
  line-height: 1.3; color: #fff; text-transform: uppercase;
}
.end-head { animation: rise 0.5s 0.9s ease backwards; }
.end.won .end-banner p { animation: rise 0.5s 1.05s ease backwards; }
.end-banner h1 { font-family: var(--cond); letter-spacing: 6px; font-size: 34px; margin: 8px 0; }
.end-banner p { color: #c9d1d7; line-height: 1.5; }
.share-card { text-align: center; }
.share-grid { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.sq { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 3px 8px rgba(0,0,0,0.35); }
.sq-missed, .sq-x { background: linear-gradient(180deg, #ff6b6b, #c62828); }
.sq-R1, .sq-R2 { background: linear-gradient(180deg, #ffd54f, #f9a825); }
.sq-CF { background: linear-gradient(180deg, #ffb74d, #ef6c00); }
.sq-F { background: linear-gradient(180deg, #cfd8dc, #90a4ae); }
.sq-champ { background: linear-gradient(180deg, #ffe082, #c19412); }
.sq-champ .ic { width: 20px; height: 20px; color: #4a3305; }
.share-pre { font-family: var(--mono); font-size: 13px; color: var(--mut); white-space: pre-wrap; margin-bottom: 14px; line-height: 1.5; }
.copied { opacity: 0; margin-left: 10px; color: var(--green); font-size: 13px; transition: opacity .3s; }
.copied.show { opacity: 1; }
.stat-row { display: flex; gap: 26px; justify-content: center; text-align: center; }
.stat-row b { font-family: var(--mono); font-size: 24px; display: block; }
.stat-row label { font-family: var(--cond); font-size: 11px; letter-spacing: 2px; color: var(--mut); text-transform: uppercase; }
.hist-row { display: flex; align-items: center; gap: 10px; margin: 5px 0; }
.hist-row label { font-family: var(--mono); width: 30px; color: var(--mut); font-size: 13px; text-align: right; }
.hist-bar { background: var(--amber); color: #14100a; font-family: var(--mono); font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; min-width: 24px; }

/* ---------- ticker ---------- */
#ticker {
  position: fixed; bottom: 0; left: 0; right: 0; height: 34px; overflow: hidden; z-index: 16;
  background: #0a0c0d; border-top: 2px solid var(--amber);
  display: flex; align-items: center;
}
/* broadcast tickers never hard-clip glyphs — fade the entry/exit edges of the TEXT,
   never the bar itself (masking the bar erases its background and content bleeds through) */
.tick-inner {
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 110px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 110px), transparent 100%);
}
.tick-inner {
  display: inline-flex; gap: 34px; align-items: center; white-space: nowrap;
  font-family: var(--cond); letter-spacing: 1.5px; font-size: 13px; color: #d3a53c;
  animation: tick 40s linear infinite; padding-left: 100%;
}
.tick-dot { color: #4a3a12; font-size: 8px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(6,8,9,0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 60; }
.modal-box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; max-width: 480px; width: calc(100% - 40px); max-height: 80vh; overflow-y: auto; box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 80px rgba(0,0,0,0.6); }
.modal-box h2 { font-family: var(--cond); letter-spacing: 2px; margin-bottom: 14px; }
/* help: one small clay card, one idea per step */
.modal-box.help-box { max-width: 330px; text-align: center; padding: 26px 22px 20px; position: relative; }
.hs-skip { position: absolute; top: 10px; right: 10px; font-size: 10px; padding: 6px 12px; min-height: 0; opacity: 0.75; }
.help-box .primary { box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 3px 10px rgba(0,0,0,0.3); }
.help-box h2 { font-size: 17px; letter-spacing: 3px; margin-bottom: 0; }
.hs-icon { font-size: 38px; margin-bottom: 8px; }
.hs-text { color: #c9d1d7; font-size: 14px; line-height: 1.6; margin: 10px 0 16px; min-height: 92px;
  padding-top: 6px; text-wrap: balance; }
.hs-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 16px; }
.hs-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.16);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset; }
.hs-dot.on { background: var(--clay); box-shadow: 0 0 8px rgba(230,95,54,0.5); }
.hs-nav { display: flex; gap: 10px; justify-content: center; align-items: center; }
.hs-nav .primary { flex: 1; max-width: 220px; }
.help-box .close { display: none; }
.help-box .legend { margin-top: 14px; font-size: 12px; }
.tiny { font-size: 11px; margin-top: 8px; }
.tiny a { color: var(--mut); }
.modal-box h3 { font-family: var(--cond); letter-spacing: 2px; font-size: 14px; color: var(--mut); margin: 14px 0 8px; }
.help li { margin: 0 0 10px 18px; line-height: 1.5; font-size: 14px; }
.close { margin-top: 16px; }
#toast {
  position: fixed; bottom: 48px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 18px; font-size: 14px; opacity: 0; pointer-events: none; z-index: 70;
  transition: all .25s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.show.bad { border-color: rgba(255,82,82,0.5); color: #ffb4b4; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hud-teamname { display: none; }
  .hud-phase-sub { display: none; }
  .hud-phase-main { font-size: 16px; letter-spacing: 1.5px; }
  .led-num { font-size: 17px; min-width: 44px; }
  .builder-cols { grid-template-columns: 1fr; }
  .po-series { grid-template-columns: 1fr 1fr; }
  .po-round { grid-column: 1 / -1; }
  .offbar { gap: 12px; }
  .sf-record { font-size: 54px; }
  /* phone: name row, stats row, full-width action — nothing floats */
  .fa-row {
    grid-template-columns: 44px auto auto 1fr;
    grid-template-areas: "av nm nm nm" "av s1 s2 s3" "bt bt bt bt";
    row-gap: 6px;
  }
  .fa-row > .pos { display: none; }
  .fa-row > .ava { grid-area: av; }
  .fa-row > .fa-name { grid-area: nm; }
  .fa-row > .ovr { grid-area: s1; justify-self: start; }
  .fa-row > .fa-ask { grid-area: s2; text-align: left; }
  .fa-row > .fa-pull { grid-area: s3; justify-self: start; }
  .fa-row > .mini { grid-area: bt; justify-self: stretch; width: 100%; }
}

/* ---------- gameplay juice ---------- */
.offbar-stat.odds b { color: var(--amber); }
.delta { font-style: normal; font-size: 11px; font-family: var(--mono); animation: fadein .25s ease; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } }
.odds-gain {
  font-family: var(--cond); font-size: 12px; letter-spacing: 1px; padding: 4px 9px;
  border-radius: 99px; white-space: nowrap; animation: fadein .25s ease;
}
.odds-gain.up { color: var(--green); border: 1px solid rgba(63,226,127,0.4); background: rgba(63,226,127,0.08); }
.odds-gain.down { color: var(--red); border: 1px solid rgba(255,82,82,0.35); background: rgba(255,82,82,0.07); }
.nudge { color: var(--amber); font-size: 13px; font-style: italic; }
.offer-foot { display: flex; align-items: center; gap: 12px; }

/* scouting */
/* one interactive accent: SHOP carries it, WAIVE stays quiet until armed */
.mini.scout { color: var(--clay); border-color: rgba(230,95,54,0.45); }
.mini.scout:hover { border-color: var(--clay); background: rgba(230,95,54,0.08); }
.mini.draft-cta { color: var(--clay); border-color: rgba(230,95,54,0.45); font-weight: 700; }
.mini.draft-cta:hover { border-color: var(--clay); background: rgba(230,95,54,0.08); }
.tier {
  font-family: var(--cond); font-size: 11px; letter-spacing: 1.5px; padding: 4px 9px;
  border-radius: 6px; white-space: nowrap; animation: fadein .3s ease;
}
.tier.t-franchise { color: #14100a; background: var(--amber); font-weight: 700; }
.tier.t-allstar { color: var(--blue); border: 1px solid rgba(77,163,255,0.45); }
.tier.t-starter { color: var(--green); border: 1px solid rgba(63,226,127,0.4); }
.tier.t-rotation { color: var(--txt); border: 1px solid var(--line); }
.tier.t-fringe { color: var(--mut); border: 1px solid var(--line); }

/* playoff game dots */
.gdots { display: inline-flex; gap: 5px; margin-right: 10px; vertical-align: middle; }
.gdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.gdot.w { background: var(--green); box-shadow: 0 0 8px rgba(63,226,127,0.6); }
.gdot.l { background: var(--red); box-shadow: 0 0 8px rgba(255,82,82,0.5); }
.gdot.pop { opacity: 0; animation: gpop .3s ease forwards; }
@keyframes gpop { from { opacity: 0; transform: scale(0.2); } 70% { transform: scale(1.35); } to { opacity: 1; transform: scale(1); } }
.po-verdict.late { opacity: 0; animation: fadein .4s ease forwards; }

/* report card */
.rc-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rc-row:last-child { border-bottom: none; }
.rc-desc { flex: 1; }
.rc-desc .steal { color: var(--amber); font-style: normal; font-size: 12px; }
.rc-quip { color: var(--mut); font-size: 12px; font-style: italic; white-space: nowrap; }
.grade {
  font-family: var(--mono); font-weight: 700; font-size: 13px; min-width: 30px; text-align: center;
  padding: 3px 7px; border-radius: 6px;
}
.grade.g-ap, .grade.g-a { background: rgba(63,226,127,0.15); color: var(--green); }
.grade.g-b { background: rgba(77,163,255,0.15); color: var(--blue); }
.grade.g-c { background: rgba(255,255,255,0.08); color: var(--txt); }
.grade.g-d { background: rgba(255,176,0,0.14); color: var(--amber); }
.grade.g-f { background: rgba(255,82,82,0.16); color: var(--red); }
.golf { color: var(--amber); }
.real-card { border-left: 3px solid var(--blue); }
.real-text { line-height: 1.6; font-size: 14px; color: #c9d1d7; }

/* countdown */
.countdown-card { text-align: center; }
.countdown { font-family: var(--mono); font-size: 38px; font-weight: 700; color: var(--amber); text-shadow: 0 0 18px rgba(255,176,0,0.4); letter-spacing: 3px; }

/* confetti */
.cf {
  position: fixed; top: -20px; z-index: 6; pointer-events: none; border-radius: 2px;
  animation: cfall linear forwards;
}
@keyframes cfall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0.7; }
}

/* ---------- audit round 2 ---------- */
.diff-easy, .diff-medium, .diff-hard, .diff-legendary { color: var(--txt) !important; border-color: var(--line) !important; }
.diff-easy::before, .diff-medium::before, .diff-hard::before, .diff-legendary::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.diff-easy::before { background: var(--green); }
.diff-medium::before { background: var(--blue); }
.diff-hard::before { background: var(--amber); }
.diff-legendary::before { background: var(--red); }
.arch-meta .diff { font-weight: 600; }
.arch-best { font-family: var(--mono); font-size: 11px; color: var(--mut); margin-top: 5px; }
.land-result { margin-top: 14px; font-family: var(--mono); font-size: 14px; color: var(--mut); letter-spacing: 1px; }
.divider-row td {
  text-align: center; font-family: var(--cond); font-size: 10px; letter-spacing: 3px;
  color: var(--mut); padding: 3px 8px !important; border-bottom: 1px dashed rgba(255,255,255,0.14) !important;
  border-top: 1px dashed rgba(255,255,255,0.14);
}
.autopkg { margin-bottom: 12px; }

/* ================= design elevation pass ================= */

/* ambient franchise tint behind every in-game screen */
body.themed::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1100px 520px at 50% -160px, color-mix(in srgb, var(--teamc, #000) 30%, transparent), transparent 72%),
    radial-gradient(700px 700px at 108% 112%, color-mix(in srgb, var(--teamc, #000) 12%, transparent), transparent 70%);
}
#screen { position: relative; z-index: 1; }

/* broadcast gloss + scanlines on the scoreboard */
#hud { position: sticky; overflow: hidden; }
#hud::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 38%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
}
.prac-chip {
  color: var(--blue); border: 1px solid rgba(77,163,255,0.45); border-radius: 6px;
  padding: 0 5px; font-size: 10px;
}

/* landing: center-court rings behind the poster */
.landing { position: relative; }
.landing::before {
  content: ""; position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 720px; max-width: 96vw; pointer-events: none;
  background:
    radial-gradient(circle, transparent 158px, rgba(255,255,255,0.045) 159px 161px, transparent 162px),
    radial-gradient(circle, transparent 248px, rgba(255,255,255,0.03) 249px 251px, transparent 252px),
    radial-gradient(circle, transparent 338px, rgba(255,255,255,0.02) 339px 341px, transparent 342px);
}
.logo-poster { position: relative; }

/* entrance motion — only when a screen or tab genuinely changes */
@media (prefers-reduced-motion: no-preference) {
  #screen.fresh .card, #screen.fresh .land-card, #screen.fresh .score-flash,
  #screen.fresh .end-banner, #screen.fresh .arch-card, #screen.fresh .logo-poster,
  #screen.fresh .cinema, #screen.fresh .po-list, #screen.fresh .tabs {
    animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  }
  #screen.fresh .card:nth-child(2), #screen.fresh .grid2 + .card { animation-delay: 0.05s; }
  #screen.fresh .card:nth-child(3) { animation-delay: 0.1s; }
  #screen.fresh .card:nth-child(4) { animation-delay: 0.15s; }
  #screen.fresh .card:nth-child(5) { animation-delay: 0.2s; }
  #screen.fresh .arch-card:nth-child(even) { animation-delay: 0.06s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* cards: crisper elevation */
.card {
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 34px rgba(0,0,0,0.28);
}
.card h3 { display: flex; align-items: center; gap: 8px; }
.card h3::before { content: ""; width: 3px; height: 12px; background: var(--amber); border-radius: 2px; }

/* situation room */
.grid2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid2 .card { margin-bottom: 0; }
.sit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sit { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sit.wide { grid-column: span 2; }
.sit label { display: block; font-family: var(--cond); font-size: 10px; letter-spacing: 2px; color: var(--mut); margin-bottom: 3px; }
.sit b { font-family: var(--mono); font-size: 18px; }
.sit b.amber { color: var(--amber); }
.sit-dim { color: var(--mut); font-size: 13px; }
.sit-player { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sys) !important; font-size: 14px !important; font-weight: 600; }
.gaunt-li { display: flex; align-items: center; gap: 10px; }
.gaunt-li b { flex: 1; }

/* standings */
.standings .mono-cell { font-family: var(--mono); font-size: 13px; }
.standings tr.you td { background: color-mix(in srgb, var(--teamc, var(--amber)) 14%, transparent); }
.standings tr.you b { color: var(--amber); }

/* interaction states */
button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.primary:active:not(:disabled) { transform: translateY(1px) scale(0.995); }
.mini:active:not(:disabled), .ghost:active { transform: translateY(1px); }
.tab { transition: background 0.15s, color 0.15s; }
.target-row, .fa-row, .arch-card, .asset { transition: background 0.12s, border-color 0.12s, transform 0.12s; }

/* help modal legend */
.modal-box .legend { margin-top: 12px; font-size: 13px; color: var(--mut); line-height: 1.8; }

/* small screens */
@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .sit-grid { grid-template-columns: repeat(2, 1fr); }
  .sit.wide { grid-column: span 2; }
  .offbar { flex-wrap: wrap; row-gap: 8px; padding: 8px 12px; }
  .offbar .primary { width: 100%; order: 9; }
  .landing::before { display: none; }
}

/* ================= mobile / iPhone polish ================= */
button, .tab, .asset, .target-row { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap .tbl { min-width: 100%; }

/* iPhone safe areas: home-bar clearance for the fixed ticker and action bar */
#ticker { height: calc(34px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
.offbar { bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }
#toast { bottom: calc(48px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 540px) {
  .col-note, .col-age { display: none; }           /* draft flavor collapses; the names ARE the game */
  .tbl th, .tbl td { padding: 6px 5px; font-size: 13px; }
  .tbl th { font-size: 10px; letter-spacing: 1.5px; }
  .ava { --asz: 30px; }
  .ava.lg { --asz: 38px; }
  #screen { padding: 14px 10px 120px; }
  .card { padding: 13px; border-radius: 14px; }
  .hud-abbr { font-size: 19px; padding: 6px 8px; }
  .hud-leds { gap: 7px; }
  .led-num { font-size: 15px; min-width: 38px; padding: 2px 5px; }
  .led label { font-size: 9px; letter-spacing: 1px; }
  .hud-right .ghost { padding: 6px 8px; font-size: 11px; }
  #hud { padding: 0 8px; }
  .hud-phase-main { font-size: 14px; letter-spacing: 1px; }
  .tabs { gap: 3px; }
  .tab { padding: 8px 10px; font-size: 12px; letter-spacing: 1px; }
  .fa-row { gap: 8px; }
  .fa-ask { font-size: 11px; }
  .fa-pull { font-size: 11px; padding: 3px 6px; }
  .mini { padding: 7px 9px; font-size: 11px; }
  /* phone: three clean lines — identity, meta, economics. Nothing shares a cell. */
  .target-row {
    display: grid; gap: 3px 10px; padding: 10px; font-size: 13px;
    grid-template-columns: 38px minmax(0,1fr) auto;
    grid-template-areas: "av nm ovr" "av meta meta" "ec ec ec";
    align-items: center;
  }
  .target-row > .pos { display: none; }
  .target-row > .ava { grid-area: av; }
  .target-row > b { grid-area: nm; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .target-row > .ovr { grid-area: ovr; justify-self: end; }
  .target-row > .meta { grid-area: meta; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .target-row > .sal { display: none; } /* salary yields to the badges */
  .target-row .econ { grid-area: ec; justify-self: end; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-top: 2px; }
  .target-row .ask { margin-left: 0; }
  .offer-body { font-size: 13px; }
  .sf-record { font-size: 46px; }
  .po-series { padding: 11px 12px; gap: 6px; }
  .share-grid { font-size: 27px; }
  .end-banner h1 { font-size: 26px; letter-spacing: 4px; }
  .rc-quip { display: none; }                       /* grades speak for themselves on small screens */
  .rc-row { font-size: 13px; flex-wrap: wrap; }
  .land-team { font-size: 30px; }
  .landing { padding-top: 2vh; }
  .countdown { font-size: 30px; }
  .stat-row { gap: 16px; }
}

/* ================= front-office AI ================= */
.intel { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.intel-chip {
  font-family: var(--cond); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--mut);
}
.intel-chip.dir-rebuilding { color: var(--blue); border-color: rgba(77,163,255,0.4); }
.intel-chip.dir-contending { color: var(--red); border-color: rgba(255,82,82,0.38); }
.intel-chip.dir-retooling { color: var(--green); border-color: rgba(63,226,127,0.35); }
.mini.counter {
  color: var(--amber); border-color: rgba(255,176,0,0.5); background: rgba(255,176,0,0.08);
  animation: fadein .3s ease;
}
/* table craft: numerals right-aligned in tabular figures under their headers */
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.roster-tbl { table-layout: fixed; }
.roster-tbl .col-pos { width: 40px; }
.roster-tbl .col-arc { width: auto; }
.roster-tbl th.num { width: 60px; }
.roster-tbl th:nth-child(2) { width: 250px; }
.spark-td { padding-right: 22px; }
.roster-tbl th.num:last-of-type { width: 86px; }
.roster-tbl .col-acts { width: 150px; }
.spark { width: 100%; max-width: 420px; height: 26px; display: block; }
.spark polyline { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: currentColor; }
.spark.up { color: var(--green); } .spark.down { color: #d98a4a; }
/* per-position identity ring on the roster */
tr[data-pos="PG"] .ava, tr[data-pos="QB"] .ava { border-color: rgba(77,163,255,0.55); }
tr[data-pos="SG"] .ava, tr[data-pos="WR"] .ava { border-color: rgba(80,220,220,0.5); }
tr[data-pos="SF"] .ava, tr[data-pos="RB"] .ava { border-color: rgba(63,226,127,0.5); }
tr[data-pos="PF"] .ava, tr[data-pos="TE"] .ava { border-color: rgba(255,176,0,0.5); }
tr[data-pos="C"] .ava, tr[data-pos="OL"] .ava { border-color: rgba(255,110,110,0.5); }
/* resting state shows data, not chrome: actions reveal on row hover (always on touch) */
@media (hover: hover) {
  .roster-tbl .acts { opacity: 0; transition: opacity 0.15s; }
  .roster-tbl tr:hover .acts, .roster-tbl tr:focus-within .acts { opacity: 1; }
}

/* draft board: prospects carry the screen, chrome recedes */
.draft-tbl .ava {
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 55%, #1a1d21), #16191c);
  border-color: color-mix(in srgb, var(--c2) 40%, rgba(255,255,255,0.15));
}
.draft-tbl .ava i { color: rgba(255,255,255,0.85); }
.d-note { display: none; font-size: 11px; line-height: 1.35; margin-top: 2px; white-space: normal; }
.ceiling-fog { font-family: var(--cond); font-size: 10px; letter-spacing: 1.5px; color: var(--mut); white-space: nowrap; }
.ceiling-fog .ic-inline { width: 12px; height: 12px; vertical-align: -2px; opacity: 0.7; }
.draft-acts { text-align: right; }
.draft-acts .acts { display: inline-flex; gap: 6px; }
/* desktop board: fixed rhythm, note column takes the slack, actions always visible */
.draft-tbl { table-layout: fixed; }
.draft-tbl th:nth-child(1) { width: 78px; }
.draft-tbl th:nth-child(2) { width: 42px; }
.draft-tbl th:nth-child(3) { width: 215px; }
.draft-tbl th:nth-child(4) { width: 48px; }
.draft-tbl th:nth-child(6) { width: 92px; }
.draft-tbl th:nth-child(7) { width: 205px; }
@media (hover: hover) {
  .draft-tbl .acts, .roster-tbl .acts { opacity: 0.55; transition: opacity 0.15s; }
  .draft-tbl tr:hover .acts, .draft-tbl tr:focus-within .acts,
  .roster-tbl tr:hover .acts, .roster-tbl tr:focus-within .acts { opacity: 1; }
}
@media (max-width: 540px) {
  /* phone board: the table becomes prospect cards — nothing can clip off-edge */
  .draft-tbl thead { display: none; }
  .draft-tbl, .draft-tbl tbody { display: block; }
  .draft-tbl tr {
    display: grid; grid-template-columns: 46px minmax(0,1fr) auto;
    grid-template-areas: "pk nm nm" "pk ce ac";
    gap: 4px 10px; align-items: center;
    padding: 12px 2px; border-bottom: 1px solid var(--line);
  }
  .draft-tbl tr:last-child { border-bottom: none; }
  .draft-tbl td { display: block; border: none; padding: 0; }
  .draft-tbl td:nth-child(1) { grid-area: pk; font-size: 15px; }
  .draft-tbl td:nth-child(2), .draft-tbl td:nth-child(4), .draft-tbl td:nth-child(5) { display: none; }
  .draft-tbl td:nth-child(3) { grid-area: nm; min-width: 0; }
  .draft-tbl td:nth-child(6) { grid-area: ce; }
  .draft-tbl td:nth-child(7) { grid-area: ac; justify-self: end; text-align: right; }
  .draft-acts .acts { display: inline-flex; flex-direction: row; gap: 5px; opacity: 1; }
  .draft-acts .acts .mini { min-height: 32px; padding: 5px 11px; }
  .d-note { display: block; }
  .draft-tbl .p-name { align-items: flex-start; }
}
/* phone: tab rail scrolls instead of wrapping an orphan */
@media (max-width: 540px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; }
  .acts .mini.danger { border: 1px solid var(--line); }
}

/* keep the td a real table cell — flex only the inner wrapper, or the row's
   columns detach from the grid and the divider rules misalign */
.row-actions { text-align: right; }
.row-actions .acts { display: inline-flex; gap: 6px; justify-content: flex-end; }
.mini.dim { opacity: 0.38; }
.how-chip {
  font-family: var(--cond); font-size: 10px; letter-spacing: 1.5px; vertical-align: 2px;
  color: var(--green); border: 1px solid rgba(63,226,127,0.4); border-radius: 6px;
  padding: 1px 5px; margin-left: 6px;
}
.tax-flag { color: var(--red); letter-spacing: 1px; }

/* ---------- phase wipe ---------- */
.wipe {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.wipe::before {
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(115deg, color-mix(in srgb, var(--c1) 88%, #000) 0%, color-mix(in srgb, var(--c1) 55%, #000) 55%, color-mix(in srgb, var(--c2) 60%, #000) 100%);
  transform: translateX(-115%) skewX(-12deg);
  animation: wipe-sweep 1.1s cubic-bezier(0.7, 0, 0.25, 1) forwards;
}
.wipe-title {
  position: relative; font-family: var(--cond); font-weight: 800; letter-spacing: 6px;
  font-size: clamp(24px, 5vw, 44px); color: #fff; text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  animation: wipe-title 1.1s ease forwards; opacity: 0;
}
@keyframes wipe-sweep {
  0% { transform: translateX(-115%) skewX(-12deg); }
  38% { transform: translateX(0) skewX(-12deg); }
  62% { transform: translateX(0) skewX(-12deg); }
  100% { transform: translateX(115%) skewX(-12deg); }
}
@keyframes wipe-title {
  0%, 30% { opacity: 0; transform: translateY(12px); }
  45%, 60% { opacity: 1; transform: translateY(0); }
  75%, 100% { opacity: 0; transform: translateY(-10px); }
}

/* ---------- season montage + narrative ---------- */
#season-flash { cursor: pointer; }
.narr-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.narr { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.narr label { display: block; font-family: var(--cond); font-size: 10px; letter-spacing: 2px; color: var(--mut); margin-bottom: 6px; }
.narr b { display: flex; gap: 8px; align-items: center; font-family: var(--cond); font-size: 16px; letter-spacing: 0.5px; }
.narr .narr-player { text-transform: none; }
.narr span { display: block; margin-top: 4px; }
.narr .narr-stat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cond); font-size: 10px; letter-spacing: 2px; color: var(--mut); }
.up-txt { color: var(--green); } .down-txt { color: var(--red); }
.season-late.reveal { animation: rise 0.5s ease backwards; }
.standings .you { transform: translateY(calc(var(--flip, 0) * 42px)); transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.25, 1); }
.season-late.flip-go .standings .you { transform: translateY(0); }
/* broadcast logo plate so dark marks read on dark tables */
.team-cell .tlogo, .po-opp .tlogo { background: rgba(244,245,246,0.92); border-radius: 50%; padding: 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
@media (max-width: 540px) {
  .narr-strip { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- SVG icon system ---------- */
.ic { width: 18px; height: 18px; display: block; flex: none; }
.ic-inline { display: inline-block; vertical-align: -4px; width: 16px; height: 16px; }
.hud-right .ic { width: 17px; height: 17px; }
.hs-icon .ic { width: 40px; height: 40px; margin: 0 auto; color: var(--clay); stroke-width: 1.4; }
.ic-flame { color: var(--clay); }
.ic-gold { color: var(--amber); }
.land-no .ic-inline, .tip .ic-inline { color: var(--clay); }
.sf-sub .ic-inline { vertical-align: -3px; width: 14px; height: 14px; }

/* ---------- mobile ergonomics: 44pt targets, calm archive, safe layout ---------- */
html, body { overflow-x: clip; }
#hud > * { min-width: 0; }
@media (max-width: 540px) {
  .mini, .ghost, .tab { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
  /* dense table rows keep compact pills (Apple: 44pt ROWS, smaller inline controls) */
  .acts .mini { min-height: 30px; padding: 4px 10px; }
  .hs-dots { gap: 10px; }
  .hs-dot { width: 9px; height: 9px; }
  .arch-best { color: var(--mut); }
  .arch-grid { grid-template-columns: 1fr; }
  /* scoreboard becomes two broadcast rows: identity, then the three LEDs full-width */
  #hud { flex-wrap: wrap; padding: 6px 12px 8px; row-gap: 2px; }
  .hud-team { padding-right: 10px; }
  .hud-phase { align-items: flex-end; text-align: right; }
  .hud-leds { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .led { flex: 1; }
  .led-num { width: 100%; font-size: 18px; }
  .hud-right { margin-left: 6px; }
  .hud-right .ghost { min-height: 34px; padding: 6px 10px; }
}
.cap-tools s { opacity: 0.6; }

/* ---------- draft-night podium ---------- */
.podium {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,6,8,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadein 0.25s ease;
}
.podium-card {
  position: relative; width: min(460px, 100%); text-align: center; overflow: hidden;
  border-radius: 22px; padding: 40px 30px 30px;
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--c1) 55%, #0c0e10) 0%, #14171a 62%),
    #14171a;
  border: 1px solid rgba(255,255,255,0.12); border-top: 3px solid var(--c2);
  box-shadow: 0 40px 120px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.1) inset;
  animation: podium-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.15) backwards;
}
@keyframes podium-in { from { opacity: 0; transform: translateY(26px) scale(0.94); } }
.podium-kicker {
  font-family: var(--cond); font-weight: 700; letter-spacing: 6px; font-size: 13px;
  color: var(--amber); animation: rise 0.4s 0.15s ease backwards;
}
.podium-logo {
  width: 104px; height: 104px; object-fit: contain; margin: 20px auto 16px; display: block;
  padding: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.10), rgba(255,255,255,0.03) 70%, transparent);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 0 40px color-mix(in srgb, var(--c2) 30%, transparent);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.6));
  animation: podium-logo-in 0.55s 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
}
@keyframes podium-logo-in { from { opacity: 0; transform: translateY(-18px) scale(0.7); } }
.podium-line { color: #c9d1d7; font-size: 14px; line-height: 1.6; animation: rise 0.4s 0.4s ease backwards; }
.podium-line b { color: var(--txt); }
.podium-name {
  font-family: var(--cond); font-weight: 800; text-transform: uppercase;
  font-size: 40px; letter-spacing: 1.5px; line-height: 1.05; margin: 10px 0 16px;
  background: linear-gradient(178deg, #fff 20%, #cfd6dc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 0.45s 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.1) backwards;
}
.podium-info { font-family: var(--cond); letter-spacing: 1.5px; font-size: 12px; color: var(--mut); text-transform: uppercase; margin: -8px 0 18px; animation: rise 0.45s 0.6s ease backwards; }
.podium-ava { margin: -4px 0 22px; animation: rise 0.45s 0.65s ease backwards; }
.podium-ava .ava { --asz: 104px; border-width: 2px; box-shadow: 0 12px 34px rgba(0,0,0,0.55); }
.podium-card .primary { animation: rise 0.4s 0.8s ease backwards; }
@keyframes fadein { from { opacity: 0; } }
@media (max-width: 540px) {
  .intel-chip { font-size: 10px; padding: 4px 7px; }
  .row-actions .acts { flex-direction: row; gap: 5px; }
  /* fit the whole roster row on a phone: auto layout, drop POS + ARC + AGE columns */
  .roster-tbl { table-layout: auto; }
  .roster-tbl td:nth-child(1), .roster-tbl th:nth-child(1),
  .roster-tbl td:nth-child(3), .roster-tbl th:nth-child(3),
  .roster-tbl td:nth-child(4), .roster-tbl th:nth-child(4) { display: none; }
  .roster-tbl td { padding: 6px 3px; }
  .roster-tbl .ava { display: none; }
  .roster-tbl .p-name { gap: 0; }
  .roster-tbl td { white-space: nowrap; }
  .roster-tbl .p-name { gap: 6px; }
  .roster-tbl .acts .mini { font-size: 11px; padding: 4px 9px; letter-spacing: 1px; }
}

/* ================= trade deadline ================= */
.dl-flash { border-top: 3px solid var(--red);
  background: linear-gradient(170deg, rgba(255,82,82,0.10), var(--card) 55%); }
.dl-flash .sf-sub { color: var(--red); letter-spacing: 2px; font-family: var(--cond); }
.sf-sub2 { color: var(--mut); font-family: var(--cond); letter-spacing: 2px; font-size: 12px; margin-top: 4px; }
.sf-sub2 b { color: var(--amber); }
.reach { font-family: var(--cond); font-size: 10px; letter-spacing: 1.5px; padding: 2px 7px; border-radius: 6px; }
.reach.in { color: var(--green); border: 1px solid rgba(63,226,127,0.4); }
.reach.stretch { color: var(--amber); border: 1px solid rgba(255,176,0,0.4); }
.reach.out { color: var(--mut); border: 1px solid var(--line); opacity: 0.7; }
/* balanced asset columns: long rosters scroll inside their rail */
.builder-cols > div > label + .asset { margin-top: 2px; }
.builder-cols > div { max-height: 330px; overflow-y: auto; scrollbar-width: thin;
  mask-image: linear-gradient(#000 calc(100% - 22px), transparent); }
.meter-fill.close { background: var(--amber); }
/* content fades out above the sticky offbar instead of slicing rows */
.offbar::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px;
  background: linear-gradient(180deg, transparent, rgba(16,18,20,0.9)); pointer-events: none; }

.want-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.want-row:last-of-type { border-bottom: none; }
.want-row .fa-name { flex: 1; min-width: 0; }
.want-row .mini { flex: none; }
@media (max-width: 540px) {
  .want-row { flex-wrap: wrap; }
  .want-row .pos { display: none; }
  .want-row .fa-name { flex: 1 1 60%; }
  .want-row .mini { width: 100%; justify-content: center; }
}
.dl-chip {
  font-family: var(--cond); font-size: 11px; letter-spacing: 1.5px; white-space: nowrap;
  color: var(--red); border: 1px solid rgba(255,82,82,0.5); background: rgba(255,82,82,0.1);
  padding: 3px 8px; border-radius: 6px; animation: dlpulse 1.6s ease infinite;
}
@keyframes dlpulse { 50% { background: rgba(255,82,82,0.22); } }
.deadline { max-width: 760px; margin: 0 auto; }
.deadline .score-flash { margin-bottom: 14px; }
.deadline .primary.big { margin-top: 4px; }

/* ================= player cards ================= */
.ava.clickable { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ava.clickable:hover { transform: scale(1.12); box-shadow: 0 0 0 2px var(--amber), 0 4px 12px rgba(0,0,0,0.5); }
.ava.xl { --asz: 84px; }
.pcard .pc-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.pcard h2 { margin-bottom: 2px; }
.pc-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pc-ovr { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; }
.pc-ovr .ovr { font-size: 19px; min-width: 46px; padding: 6px 8px; }
.spark { width: 180px; height: 46px; overflow: visible; }
.pcard .stat-row { margin-top: 14px; }

/* ================= rafters ================= */
.rafters { text-align: center; }
.raft-label { font-family: var(--cond); font-size: 11px; letter-spacing: 3px; color: var(--mut); margin-bottom: 10px; }
.raft-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.banner-flag {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  width: 74px; padding: 10px 6px 16px;
  background: linear-gradient(175deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #000));
  border-top: 3px solid var(--c2);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  color: #fff; transition: transform .15s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.banner-flag:hover { transform: translateY(-3px); }
.banner-flag b { font-family: var(--cond); font-size: 17px; letter-spacing: 1px; }
.banner-flag span { font-family: var(--cond); font-size: 10px; letter-spacing: 2px; opacity: 0.85; }
.banner-flag i { font-style: normal; font-family: var(--mono); font-size: 9px; margin-top: 3px; opacity: 0.9; }

/* streak */
.streak { font-family: var(--cond); letter-spacing: 2px; font-size: 14px; color: var(--amber); }

@media (max-width: 540px) {
  .dl-chip { font-size: 9px; padding: 2px 6px; }
  .banner-flag { width: 62px; }
}

.world-card { border-left: 3px solid var(--green); }
.world { font-size: 14px; line-height: 1.6; color: #c9d1d7; }
.world b { color: var(--green); font-family: var(--mono); }

.land-card.teaser { opacity: 0.75; border-top-color: var(--mut); background: var(--card); }
.land-card.teaser .land-title { color: var(--mut); }
