/* Draft Night — black steel scoreboard. Light comes only from the lamps. */
:root {
  --ground: #0b0a0b;
  --steel: #151417;
  --steel-2: #1b1a1d;
  --steel-3: #232126;
  --seam: #050505;
  --bolt: #3b383d;
  --ink: #fbedd2;
  --ink-2: #c9c0b0;
  --ink-dim: #878277;
  --off: #353230;
  --amber: #f7c66f;
  --amber-hot: #ff9e30;
  --amber-deep: #753f20;
  --green: #5fe873;
  --red: #ff4430;
  --glow-amber: 0 0 6px rgba(255, 158, 48, .85), 0 0 18px rgba(255, 140, 40, .45);
  --display: 'Silkscreen', 'Courier New', monospace;
  --body: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --strip-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    radial-gradient(circle at 50% 50%, #1a181a 0 1.4px, transparent 1.9px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  background-size: 14px 14px, auto;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.35;
  overflow-x: hidden;
}
body.has-strip { padding-bottom: calc(var(--strip-h) + 8px); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff3d2; text-shadow: var(--glow-amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--amber); color: #120c06; padding: 8px 12px; font-family: var(--display); }
.skip:focus { top: 8px; }

.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }

/* ---------- steel module ---------- */
.steel {
  position: relative;
  background-color: var(--steel);
  background-image:
    radial-gradient(circle, var(--bolt) 0 2.4px, #0a090a 2.6px 3.4px, transparent 3.6px),
    radial-gradient(circle, var(--bolt) 0 2.4px, #0a090a 2.6px 3.4px, transparent 3.6px),
    radial-gradient(circle, var(--bolt) 0 2.4px, #0a090a 2.6px 3.4px, transparent 3.6px),
    radial-gradient(circle, var(--bolt) 0 2.4px, #0a090a 2.6px 3.4px, transparent 3.6px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  background-size: 14px 14px, 14px 14px, 14px 14px, 14px 14px, auto;
  background-position: 3px 3px, calc(100% - 3px) 3px, 3px calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), inset 0 -1px 0 rgba(0,0,0,.6);
}
.seams { display: grid; gap: 2px; background: var(--seam); border: 2px solid var(--seam); }

/* ---------- top frame ---------- */
.frame-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px; border-bottom: 2px solid var(--seam);
  background: linear-gradient(#111012, #0c0b0c);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 15px; letter-spacing: .04em; }
.brand img { width: 36px; height: 36px; }
.brand:hover { color: var(--amber); }
.frame-top nav { display: flex; gap: 6px; align-items: center; }

/* ---------- switches: chunky lit toggles ---------- */
.switch {
  --lamp: var(--off);
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 42px; padding: 0 14px;
  font: 400 13px/1 var(--display); letter-spacing: .03em; text-decoration: none;
  color: var(--ink-2);
  background: linear-gradient(#26242a, #18171b);
  border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 #000, 0 4px 0 #2a272b;
  transition: transform .07s cubic-bezier(.3,1.8,.5,1), box-shadow .07s, color .07s;
  white-space: nowrap;
}
.switch::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--lamp); box-shadow: inset 1px 1px 0 rgba(255,255,255,.15);
}
.switch:hover { color: var(--ink); --lamp: #6b5634; }
.switch:hover::before { box-shadow: 0 0 6px rgba(255,158,48,.5); }
.switch:active, .switch.is-down { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 #000, 0 1px 0 #2a272b; }
.switch[aria-pressed="true"], .switch.on { color: #fff3d2; --lamp: var(--amber); }
.switch[aria-pressed="true"]::before, .switch.on::before { background: radial-gradient(circle at 35% 35%, #fff3d2, var(--amber) 55%, var(--amber-hot)); box-shadow: var(--glow-amber); }
.switch.snap { animation: snap .16s steps(3, end); }
@keyframes snap { 0% { transform: translateY(3px); } 60% { transform: translateY(-1px); } 100% { transform: translateY(0); } }
.switch.primary { color: #1a0f05; background: linear-gradient(#ffd27f, #f0a948); border-color: #5a2f10; --lamp: #fff6dc; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #5a2f10, 0 0 22px rgba(255,150,40,.35); }
.switch.primary::before { box-shadow: 0 0 6px #fff; }
.switch.primary:hover { color: #000; background: linear-gradient(#ffe0a0, #f7b55a); }
.switch:disabled, .switch[aria-disabled="true"] { cursor: not-allowed; color: #6d675e; --lamp: #262427; background: linear-gradient(#1c1b1e, #141316); box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 3px 0 #000; }
.switch:disabled:hover { color: #8a8377; }
.switch.small { min-height: 34px; padding: 0 10px; font-size: 11px; }

/* ---------- status lamps + day bulbs (CSS lamps) ---------- */
.lamp { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--off); box-shadow: inset 2px 2px 0 rgba(255,255,255,.12); }
.lamp.s-alive { background: radial-gradient(circle at 35% 35%, #eaffe6, var(--green) 60%); box-shadow: 0 0 8px rgba(70,235,100,.8), 0 0 20px rgba(70,235,100,.35); }
.lamp.s-dying { background: radial-gradient(circle at 35% 35%, #ffe2da, var(--red) 60%); box-shadow: 0 0 8px rgba(255,60,40,.8), 0 0 18px rgba(255,60,40,.3); animation: flicker 1.7s steps(1, end) infinite; }
.lamp.s-dead { background: radial-gradient(circle at 35% 35%, #ff9a86, #c8261a 60%, #5a0f0a); box-shadow: 0 0 6px rgba(210,40,25,.55); }
.lamp.s-unknown { background: #2b2926; }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .25; } 12% { opacity: 1; } 47% { opacity: 1; } 50% { opacity: .35; } 53% { opacity: 1; } 56% { opacity: .5; } 59% { opacity: 1; } }
.bulbs { display: flex; gap: 6px; align-items: center; }
.bulb { width: 13px; height: 13px; border-radius: 50%; background: var(--off); box-shadow: inset 2px 2px 0 rgba(255,255,255,.12); flex: none; }
.bulb.lit { background: radial-gradient(circle at 35% 35%, #fff3d2, var(--amber) 55%, var(--amber-hot)); box-shadow: var(--glow-amber); }
.bulb.bonus { outline: 1px dashed #5b4a33; outline-offset: 2px; }
.bulb.bonus.lit { outline-color: var(--amber); }
.bulb.dark { background: #1b191b; box-shadow: none; }
.bulb.fresh { animation: warm .5s steps(4, end); }
@keyframes warm { 0% { background: var(--off); box-shadow: none; } 50% { background: #fff; box-shadow: 0 0 24px #ffb24a; } 100% {} }

/* ---------- board header ---------- */
.board { padding-top: 18px; }
.marquee-wrap { padding: 10px; }
#marquee { display: block; width: 100%; height: 300px; }
.tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; padding: 8px 4px 2px; font-family: var(--display); font-size: 12px; color: var(--ink-2); text-transform: uppercase; }
.tally > span { display: inline-flex; align-items: center; gap: 8px; }
.tally .lamp { width: 10px; height: 10px; }
.tally b { font-weight: 400; color: var(--ink); }
.tally .t-alive b { color: #c9ffcf; }
.tally .t-dying b { color: #ffb2a5; }
.tally .t-dead b { color: #ff6a55; }
.tally time { color: var(--amber); text-transform: none; }
.hero-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin: 18px auto 10px; }
.hero-line .tagline { margin: 0; }
.switch.go { min-height: 54px; padding: 0 24px; font-size: 15px; }
#wall { scroll-margin-top: calc(var(--strip-h) + 16px); grid-auto-flow: row dense; }
.tagline {
  text-align: center; margin: 18px auto 6px; max-width: 30ch;
  font-family: var(--display); font-size: clamp(18px, 2.4vw, 28px); line-height: 1.25;
  color: #ffe6b5; text-shadow: 0 0 8px rgba(255,160,50,.55), 0 0 22px rgba(255,140,40,.25);
}
.lede { text-align: center; color: var(--ink-2); font-size: 19px; max-width: 46ch; margin: 0 auto 16px; }
.readout-bar {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center;
  font-family: var(--display); font-size: 12px; color: var(--ink-dim); margin-bottom: 14px;
}
.readout-bar > * { display: inline-flex; gap: 8px; align-items: center; }
.readout-bar time { color: var(--amber); text-shadow: 0 0 6px rgba(255,150,40,.4); }
.notice {
  margin: 0 auto 14px; max-width: 760px; padding: 10px 14px 10px 38px; position: relative;
  border: 1px solid #3a1a14; background: #150c0b; color: #ffcdbf; font-size: 17px;
}
.notice::before { content: ''; position: absolute; left: 14px; top: 50%; margin-top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(255,60,40,.8); }
.notice[hidden] { display: none; }

.controls { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center; margin: 4px 0 16px; }
.ctl-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ctl-group > span { font-family: var(--display); font-size: 11px; color: var(--ink-dim); margin-right: 4px; text-transform: uppercase; }

/* ---------- the wall of rookie modules ---------- */
.wall { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.mod { display: flex; flex-direction: column; min-height: 330px; padding: 16px 16px 14px; }
.mod .name-lamps { display: block; width: 100%; height: 58px; margin-bottom: 10px; background: #0d0c0e; border: 1px solid #000; }
.mod-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mod h3 { font-family: var(--body); font-weight: 600; font-size: 24px; line-height: 1.05; letter-spacing: .01em; }
.mod h3 a { color: var(--ink); text-decoration: none; }
.mod h3 a:hover { color: var(--amber); }
.sym { font-family: var(--display); font-size: 11px; color: var(--ink-dim); }
.mod-status { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; font-family: var(--display); font-size: 12px; text-transform: uppercase; }
.mod-status b { font-weight: 400; color: var(--ink); }
.mod-status .age { margin-left: auto; color: var(--ink-dim); text-transform: none; }
.mod[data-status="alive"] .mod-status b { color: #c9ffcf; }
.mod[data-status="dying"] .mod-status b { color: #ffb2a5; }
.mod[data-status="dead"] .mod-status b { color: #ff5a44; font-size: 17px; letter-spacing: .04em; text-shadow: 0 0 8px rgba(255,60,40,.55); }
.mod[data-status="dead"] .mod-status .lamp { width: 20px; height: 20px; }
.scout { color: var(--ink-2); font-size: 18px; min-height: 2.7em; }
.mod .bulbs { margin: 12px 0 14px; }
.mod .bulbs .tag { font-family: var(--display); font-size: 10px; color: var(--ink-dim); margin-left: 6px; }
.mod .face { flex: 1; display: flex; flex-direction: column; }
.mod .face[hidden] { display: none; }
.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #000; border: 1px solid #000; margin: 0 0 10px; }
.vitals div { background: #0f0e10; padding: 10px; }
.vitals dt { font-family: var(--display); font-size: 10px; color: var(--ink-dim); text-transform: uppercase; }
.vitals dd { margin: 4px 0 0; font-family: var(--display); font-size: 19px; color: var(--amber); text-shadow: 0 0 8px rgba(255,150,40,.4); }
.back-note { font-size: 15px; color: var(--ink-dim); margin-bottom: 8px; }
.back-note time { color: var(--ink-2); }
.mod-switches { display: flex; flex-wrap: wrap; gap: 8px 6px; margin-top: auto; padding-top: 4px; }
.mod-switches .switch { flex: 1 1 auto; justify-content: center; }
.mod-switches .draft-btn { flex: 1 1 100%; min-height: 46px; font-size: 14px; }
.switch.quiet { background: transparent; border-color: #2c292d; box-shadow: none; color: var(--ink-dim); min-height: 30px; }
.switch.quiet::before { width: 7px; height: 7px; }
.switch.quiet:hover { color: var(--ink); border-color: #4a4440; }
.switch.quiet:active { transform: translateY(1px); box-shadow: none; }
.switch.quiet[aria-pressed="true"] { color: #fff3d2; border-color: var(--amber-deep); }
/* alive leads the wall: bigger lamp, green edge */
.mod[data-status="alive"] { box-shadow: inset 0 3px 0 var(--green), inset 0 0 40px rgba(70,235,100,.07); }
.mod[data-status="alive"] .mod-status .lamp { width: 24px; height: 24px; }
.mod[data-status="alive"] .mod-status b { font-size: 15px; text-shadow: 0 0 8px rgba(70,235,100,.5); }
.mod[data-status="dying"] { box-shadow: inset 0 3px 0 var(--red); }
.mod[data-status="dying"] .mod-status .lamp { width: 20px; height: 20px; }
/* the dead go quiet: short card, no scout line */
.mod[data-status="dead"] { min-height: 0; box-shadow: inset 0 3px 0 #c8261a, inset 0 0 36px rgba(200,38,26,.08); }
.mod[data-status="dead"] .mod-switches .draft-btn { min-height: 32px; font-size: 11px; }
.mod[data-status="dead"] .front .scout, .mod[data-status="dead"] .front .bulbs { display: none; }
.mod[data-status="dead"] .name-lamps { height: 40px; }
.mod[data-status="dead"] .mod-head h3 { font-size: 20px; }
.mod[data-status="dead"] .mod-head h3 a { color: var(--ink-2); }
.wall .mod.drafted { box-shadow: inset 0 0 0 2px var(--amber), inset 0 0 30px rgba(255,150,40,.12); }
.wall .mod.picked { box-shadow: inset 0 0 0 2px #fff1d2; }
.wall .mod.drafted.picked { box-shadow: inset 0 0 0 2px var(--amber), inset 0 0 0 4px #fff1d2; }
@media (min-width: 1100px) {
  .mod.lead { grid-column: span 2; }
  .mod.lead .name-lamps { height: 92px; }
  .mod.lead h3 { font-size: 32px; }
  .mod.lead .mod-status .lamp { width: 32px; height: 32px; }
}
.mod.drafted { box-shadow: inset 0 0 0 2px var(--amber), inset 0 0 30px rgba(255,150,40,.12); }
.mod.picked { box-shadow: inset 0 0 0 2px #fff1d2; }
.mod.drafted.picked { box-shadow: inset 0 0 0 2px var(--amber), inset 0 0 0 4px #fff1d2; }
.mod[data-status="dead"] .name-lamps { opacity: .85; }
.mod.flick .face { animation: flick .18s steps(3, end); }
@keyframes flick { 0% { opacity: .1; } 34% { opacity: .9; } 67% { opacity: .3; } 100% { opacity: 1; } }
.mod.ghost { min-height: 330px; }
.mod.ghost .ghost-lamps { height: 58px; background: #0d0c0e; border: 1px solid #000; margin-bottom: 14px;
  background-image: radial-gradient(circle, #2a2729 0 2.2px, transparent 2.6px); background-size: 9px 9px; }
.mod.ghost .ghost-line { height: 14px; background: #1d1b1f; margin: 10px 0; width: 70%; }
.mod.ghost .ghost-line.short { width: 40%; }
.wall-empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; }
.wall-empty h3 { font-family: var(--display); font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.wall-empty p { color: var(--ink-2); margin-bottom: 16px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 16px 0 0; font-family: var(--display); font-size: 12px; color: var(--ink-dim); }
.pager[hidden] { display: none; }

/* ---------- sections below the wall ---------- */
.section { padding: 72px 0 0; }
.section-title { font-family: var(--display); font-size: clamp(24px, 3.4vw, 42px); line-height: 1.1; color: #ffe6b5; text-shadow: 0 0 10px rgba(255,160,50,.45); margin-bottom: 22px; max-width: 22ch; }
.rules { grid-template-columns: 1.1fr 1.1fr 1fr 1.4fr; }
.rule { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.rule canvas { width: 100%; height: 130px; display: block; }
.rule h3 { font-family: var(--display); font-size: 16px; text-transform: uppercase; color: var(--ink); }
.rule p { color: var(--ink-2); }
.rule .one-bulb { height: 130px; display: grid; place-items: center; }
.rule .one-bulb .bulb { width: 64px; height: 64px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.legend li { display: grid; grid-template-columns: 18px 1fr; gap: 4px 12px; align-items: center; }
.legend b { font-family: var(--display); font-weight: 400; font-size: 13px; text-transform: uppercase; }
.legend span.call { grid-column: 2; color: var(--ink-2); font-size: 17px; }
.legend .lamp { width: 18px; height: 18px; }

.flat-list { grid-template-columns: 1fr; }
.flat-row { display: grid; grid-template-columns: minmax(150px, 2fr) 3fr auto; gap: 16px; align-items: center; padding: 12px 18px; }
.flat-row canvas { width: 100%; height: 34px; display: block; }
.flat-row .who { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.flat-row .who a { font-weight: 600; font-size: 20px; color: var(--ink-2); text-decoration: none; }
.flat-row .who a:hover { color: var(--amber); }
.flat-row .why { font-family: var(--display); font-size: 11px; color: var(--ink-dim); }
.flat-row .verdict { font-family: var(--display); font-size: 12px; color: #ff7b68; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.flat-empty { padding: 28px 20px; color: var(--ink-2); }

.callout { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; min-height: 380px; border: 2px solid var(--seam); }
.callout .panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.callout::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,8,.94) 0 46%, rgba(8,7,8,.35)); }
.callout-text { position: relative; z-index: 1; padding: 44px 36px; display: grid; gap: 16px; justify-items: start; }
.callout-text p { color: var(--ink-2); max-width: 40ch; font-size: 20px; }
.callout .trophy { position: relative; z-index: 1; width: min(300px, 80%); height: auto; justify-self: center; }

/* ---------- footer frame ---------- */
.foot { margin-top: 80px; border-top: 2px solid var(--seam); background: #0c0b0c; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; padding: 32px 0 28px; align-items: start; }
.foot .brand img { width: 44px; height: 44px; }
.foot h2 { font-family: var(--display); font-size: 11px; color: var(--ink-dim); text-transform: uppercase; margin-bottom: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot small { display: block; color: var(--ink-dim); font-size: 15px; margin-top: 10px; }
.foot small time { color: var(--ink-2); }
.foot-src { color: var(--ink-dim); font-size: 15px; }
.foot-src span { color: var(--ink-2); }
.slot-ca { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 10px; border: 1px solid #000; background: #111012; font-family: var(--display); font-size: 11px; }
.slot-ca[hidden], [data-slot][hidden] { display: none !important; }
.slot-ca code { color: var(--amber); word-break: break-all; font-size: 11px; }

/* ---------- pinned lineup strip ---------- */
.strip {
  position: sticky; top: 0; z-index: 30; margin: 0 0 16px;
  background: linear-gradient(#18161a, #0d0c0e); border: 2px solid #000;
  box-shadow: 0 1px 0 #262327, 0 14px 30px rgba(0,0,0,.65);
}
.strip-in { min-height: var(--strip-h); display: flex; align-items: center; gap: 16px; padding: 10px 14px; }
.strip-label { font-family: var(--display); font-size: 12px; color: var(--amber); text-shadow: 0 0 6px rgba(255,150,40,.4); writing-mode: vertical-rl; transform: rotate(180deg); }
.sockets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; flex: 1; min-width: 0; counter-reset: sock; }
.socket {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; counter-increment: sock;
  padding: 8px 10px; min-height: 64px; border: 1px dashed #7a5428; background: #120f0c;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8), inset 0 0 18px rgba(255,150,40,.06);
}
.socket::before {
  content: counter(sock); flex: none; font-family: var(--display); font-size: 26px; line-height: 1;
  color: var(--amber); text-shadow: var(--glow-amber);
}
.socket.filled::before { display: none; }
.socket .sbulb { width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 50%, #0a090a 0 45%, #2c2a2d 47% 60%, #19181a 62%); }
.socket:not(.filled) .sbulb { display: none; }
.socket .sname { font-family: var(--display); font-size: 12px; color: #b9935c; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.socket.filled { border: 1px solid #000; background: #17130e; box-shadow: inset 0 0 0 1px rgba(255,170,70,.35), inset 0 0 24px rgba(255,150,40,.14); }
.socket.filled .sbulb { background: radial-gradient(circle at 35% 35%, #fff3d2, var(--amber) 55%, var(--amber-hot)); box-shadow: var(--glow-amber); }
.socket.filled .sname { color: var(--ink); }
.socket.fresh .sbulb { animation: warm .5s steps(4, end); }
.socket.over { box-shadow: inset 0 0 0 2px var(--amber); }
.socket .sx { appearance: none; border: 1px solid #000; background: #1c1b1e; color: var(--ink-2); width: 26px; height: 26px; border-radius: 3px; cursor: pointer; font: 14px/1 var(--display); flex: none; }
.socket .sx:hover { color: #fff; background: #3a1712; }
.socket .sx:active { transform: translateY(2px); }
.socket .sx[hidden] { display: none; }
#lock { min-height: 54px; padding: 0 20px; font-size: 14px; }

/* ---------- compare dialog ---------- */
dialog.compare { width: min(860px, 100% - 24px); max-height: calc(100vh - 40px); padding: 0; border: 2px solid #000; color: var(--ink); background: var(--steel); overflow: auto; }
dialog.compare::backdrop { background: rgba(0,0,0,.78); }
.cmp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 2px solid #000; }
.cmp-head h2 { font-family: var(--display); font-size: 18px; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #000; }
.cmp-col { background: var(--steel-2); padding: 16px; display: grid; gap: 12px; align-content: start; }
.cmp-col canvas { width: 100%; height: 48px; display: block; background: #0d0c0e; }
.cmp-col h3 { font-weight: 600; font-size: 22px; }
.cmp-row { display: grid; gap: 4px; }
.cmp-row dt { font-family: var(--display); font-size: 10px; color: var(--ink-dim); text-transform: uppercase; }
.cmp-row dd { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--display); font-size: 15px; color: var(--amber); }
.cmp-row .bulbs { gap: 4px; }
.cmp-row .bulb { width: 9px; height: 9px; }
.cmp-verdict { padding: 16px 18px; font-family: var(--display); font-size: 16px; color: #ffe6b5; text-shadow: 0 0 8px rgba(255,160,50,.4); border-top: 2px solid #000; }
.cmp-verdict time { font-size: 11px; color: var(--ink-dim); text-shadow: none; display: block; margin-top: 6px; }

/* ---------- player file (rookie page) ---------- */
.file { padding: 28px 0 0; }
.file-top { padding: 18px; display: grid; gap: 14px; }
.file-top canvas { width: 100%; height: 120px; display: block; background: #0d0c0e; border: 1px solid #000; }
.file-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; justify-content: space-between; }
.file-head h1 { font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: 1; }
.file-call { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: clamp(18px, 2.4vw, 26px); text-transform: uppercase; }
.file-call .lamp { width: 26px; height: 26px; }
.file-scout { font-size: 22px; color: var(--ink-2); max-width: 46ch; }
.file-grid { grid-template-columns: repeat(3, 1fr); margin-top: 2px; }
.file-cell { padding: 18px; min-height: 120px; display: grid; align-content: space-between; gap: 10px; }
.file-cell dt { font-family: var(--display); font-size: 11px; color: var(--ink-dim); text-transform: uppercase; }
.file-cell dd { margin: 0; font-family: var(--display); font-size: clamp(22px, 3vw, 34px); color: var(--amber); text-shadow: 0 0 10px rgba(255,150,40,.45); }
.file-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px; }
.file-meta { padding: 0 18px 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: 17px; }
.file-meta time { color: var(--amber); }
.file-links { display: flex; flex-wrap: wrap; gap: 8px; }
.state-panel { padding: 44px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.state-panel h1, .state-panel h2 { font-family: var(--display); font-size: clamp(22px, 3vw, 32px); color: var(--ink); }
.state-panel p { color: var(--ink-2); max-width: 44ch; }
.state-panel canvas { width: min(520px, 100%); height: 90px; }

/* ---------- team scoreboard ---------- */
.score-head { position: relative; overflow: hidden; border: 2px solid var(--seam); }
.score-head .panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.score-head::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(10,9,10,.9) 30%, rgba(10,9,10,.55)); }
.score-head-in { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 28px; align-items: center; padding: 26px 24px; }
.breaker { width: 74px; height: 110px; border: 2px solid #000; background: #121113; position: relative; border-radius: 4px; box-shadow: inset 0 0 0 4px #1d1b1f; }
.breaker::before { content: ''; position: absolute; left: 50%; top: 18px; width: 22px; height: 74px; margin-left: -11px; background: #08070a; border-radius: 3px; }
.breaker i { position: absolute; left: 50%; width: 34px; height: 34px; margin-left: -17px; top: 58px; background: linear-gradient(#57524c, #2c2a2c); border: 1px solid #000; border-radius: 3px; transition: top .09s cubic-bezier(.3,1.8,.5,1); }
.breaker.on i { top: 18px; background: linear-gradient(#ffd27f, #c9822e); box-shadow: var(--glow-amber); }
.score-title h1 { font-family: var(--display); font-size: clamp(22px, 3.2vw, 38px); line-height: 1.1; color: #ffe6b5; text-shadow: 0 0 10px rgba(255,160,50,.45); }
.score-title p { color: var(--ink-2); margin-top: 6px; }
.score-total { display: grid; justify-items: end; gap: 6px; }
.score-total canvas { width: 180px; height: 70px; display: block; }
.score-total span { font-family: var(--display); font-size: 11px; color: var(--ink-dim); text-transform: uppercase; text-align: right; }
.team-rows { grid-template-columns: 1fr; margin-top: 2px; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; padding: 14px 18px; align-items: center; }
.trow canvas { grid-column: 1 / -1; width: 100%; height: 54px; display: block; background: #0d0c0e; border: 1px solid #000; }
.trow-info { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; min-width: 0; }
.trow-info a.nm { font-weight: 600; font-size: 22px; color: var(--ink); text-decoration: none; }
.trow-info a.nm:hover { color: var(--amber); }
.trow-info .st { display: inline-flex; gap: 8px; align-items: center; font-family: var(--display); font-size: 12px; text-transform: uppercase; }
.trow-info .vt { font-family: var(--display); font-size: 11px; color: var(--ink-dim); }
.trow-days { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 12px; color: var(--ink-2); }
.trow.dead .nm { color: #7f7870; }
.trow.off .bulb.lit { background: var(--off); box-shadow: inset 2px 2px 0 rgba(255,255,255,.12); }
.trow.off .bulb.fresh { animation: none; }
.trow.off .lamp { background: #1d1b1d; box-shadow: none; animation: none; }
.team-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 0; }
.team-actions .msg { font-family: var(--display); font-size: 12px; color: var(--amber); }
.stamp { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 22px; margin-top: 2px; }
.stamp img { width: 220px; height: auto; }
.stamp h2 { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); color: #ffe6b5; text-shadow: var(--glow-amber); margin-bottom: 8px; }
.stamp p { color: var(--ink-2); }
.stamp[hidden] { display: none; }

/* ---------- locker ---------- */
.shelf { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tcard { padding: 16px; display: grid; gap: 12px; align-content: start; }
.tcard canvas { width: 100%; height: 120px; display: block; background: #0d0c0e; border: 1px solid #000; }
.tcard-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tcard-head b { font-family: var(--display); font-weight: 400; font-size: 14px; color: var(--ink); }
.tcard-head .kind { font-family: var(--display); font-size: 10px; text-transform: uppercase; padding: 3px 6px; border: 1px solid #3a3530; color: var(--ink-dim); }
.tcard-head .kind.rival { color: #ffb2a5; border-color: #4a201a; }
.tcard .names { color: var(--ink-2); font-size: 16px; }
.tcard .score { font-family: var(--display); font-size: 13px; color: var(--amber); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tcard .score time { color: var(--ink-dim); font-size: 11px; }
.tcard-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hof { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; margin-bottom: 18px; }
.hof img { width: 260px; height: auto; }
.hof p { color: var(--ink-2); max-width: 44ch; }
.locker-head { position: relative; overflow: hidden; border: 2px solid var(--seam); margin-top: 24px; }
.locker-head .panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.locker-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,8,.95) 0 50%, rgba(8,7,8,.5)); }
.locker-head-in { position: relative; z-index: 1; padding: 34px 26px; display: grid; gap: 10px; }
.locker-head h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 48px); color: #ffe6b5; text-shadow: 0 0 10px rgba(255,160,50,.45); }
.locker-head p { color: var(--ink-2); max-width: 46ch; }
.more { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- 390 px and friends ---------- */
@media (max-width: 1100px) {
  .rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --strip-h: 64px; }
  body { font-size: 17px; }
  .wrap { width: calc(100% - 20px); }
  .board { padding-top: 10px; }
  #marquee { height: 240px; }
  .switch.go { display: none; }
  .tally { gap: 2px 12px; font-size: 10px; }
  .hero-line { margin: 12px auto 8px; gap: 10px; }
  .hero-line .tagline { font-size: 17px; }
  .switch.go { min-height: 46px; }
  .lede { display: none; }
  .readout-bar { margin-bottom: 8px; font-size: 10px; }
  .strip { margin-inline: -4px; }
  .strip-in { gap: 6px; padding: 6px; }
  .strip-label { display: none; }
  .sockets { gap: 4px; }
  .socket { justify-content: center; gap: 0; padding: 4px 2px; min-height: 50px; text-align: center; }
  .socket::before { font-size: 20px; }
  .socket .sopen { display: none; }
  .socket:not(.filled) .sname { display: none; }
  .socket.filled { flex-direction: column; gap: 3px; }
  .socket .sname { font-size: 9px; width: 100%; }
  .socket .sx { position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; font-size: 10px; }
  .socket .sbulb { width: 16px; height: 16px; }
  #lock { flex: none; min-height: 50px; padding: 0 8px; font-size: 10px; letter-spacing: 0; white-space: nowrap; }
  #lock::before { display: none; }
  .controls { flex-wrap: nowrap; justify-content: flex-start; gap: 14px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .controls::-webkit-scrollbar { display: none; }
  .ctl-group { flex-wrap: nowrap; flex: none; }
  .ctl-group .switch { flex: none; }
  .mod { padding: 12px; }
  .mod .name-lamps { height: 44px; margin-bottom: 8px; }
  .mod .bulbs { margin: 8px 0 10px; }
  .scout { font-size: 16px; min-height: 0; }
  .rules { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .callout::after { background: rgba(8,7,8,.82); }
  .callout .trophy { width: 180px; margin: 0 0 28px; }
  .callout-text { padding: 30px 20px 16px; }
  .flat-row { grid-template-columns: 1fr; gap: 8px; }
  .foot-in { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: 1fr 1fr; }
  .score-head-in { grid-template-columns: auto 1fr; padding: 20px 16px; }
  .score-total { grid-column: 1 / -1; justify-items: start; }
  .score-total span { text-align: left; }
  .breaker { width: 56px; height: 86px; }
  .breaker::before { top: 14px; height: 58px; }
  .breaker i { width: 28px; height: 28px; margin-left: -14px; top: 44px; }
  .breaker.on i { top: 14px; }
  .trow { grid-template-columns: 1fr; }
  .stamp, .hof { grid-template-columns: 1fr; }
  .stamp img, .hof img { width: 170px; }
  .shelf { grid-template-columns: 1fr; }
  .cmp-grid { grid-template-columns: 1fr 1fr; }
  .cmp-col { padding: 10px; }
  .cmp-col h3 { font-size: 18px; }
  .cmp-row dd { flex-direction: column; align-items: flex-start; font-size: 13px; }
  .mod { min-height: 0; }
  .mod-switches .switch { padding: 0 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
