:root {
  color-scheme: dark;
  --bg: #0e0e0d;
  --surface: #151514;
  --surface-2: #1b1b19;
  --surface-3: #242420;
  --line: #30302c;
  --line-bright: #55554e;
  --text: #f0ede6;
  --muted: #999991;
  --gold: #d8ad4a;
  --cyan: #6acbc3;
  --red: #e36567;
  --green: #69c58a;
  --blue: #6ea9e5;
  --font-body: "Inter", sans-serif;
  --font-display: var(--font-body);
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: var(--font-body); letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-rows: 56px 1fr auto; }
.topbar { height: 56px; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.brand { justify-self: start; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: 600 10px/1 var(--font-mono); }
.brand strong { display: block; font-size: 13px; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font: 500 9px/1 var(--font-mono); }
.topbar-status { text-align: center; }
.topbar-status span, .topbar-status strong { display: block; }
.topbar-status span { color: var(--muted); font: 600 9px/1 var(--font-mono); }
.topbar-status strong { margin-top: 5px; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1 var(--font-mono); }
.icon-button { justify-self: end; width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 600 15px/1 var(--font-mono); }
.icon-button.is-on { color: var(--gold); border-color: var(--gold); }

.screen { min-width: 0; }
.eyebrow { color: var(--muted); font: 600 10px/1.2 var(--font-mono); text-transform: uppercase; }
.site-footer { min-height: 48px; padding: 14px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid var(--line); color: #6f7880; font-size: 10px; }
.site-footer button { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: underline; }

/* Race selection */
.select-layout { min-height: calc(100vh - 104px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr); }
.era-browser { min-width: 0; padding: clamp(34px, 5vw, 66px); background: var(--bg); }
.archive-intro { max-width: 640px; }
.era-browser h1 { max-width: 760px; margin: 10px 0 12px; font: 700 clamp(40px, 5vw, 66px)/1.02 var(--font-display); }
.lede { max-width: 560px; margin: 0; color: #b9b9b1; font-size: 14px; line-height: 1.6; }
.archive-art { height: clamp(120px, 16vw, 190px); max-width: 820px; margin: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: url("/img/midnight-bg.png") center 44% / cover no-repeat; filter: saturate(.72) contrast(.92); }
.segmented { margin: 0 0 18px; display: flex; width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: transparent; }
.segmented { scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { min-height: 40px; padding: 0 16px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); white-space: nowrap; cursor: pointer; font: 600 9px/1 var(--font-mono); text-transform: uppercase; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--surface-3); color: var(--text); }
.raid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 940px; }
.raid-card { min-width: 0; min-height: 68px; padding: 11px; display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: 1fr auto; gap: 4px 10px; text-align: left; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; overflow: hidden; }
.raid-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--raid-color); opacity: .35; }
.raid-card:hover { border-color: var(--line-bright); background: var(--surface); }
.raid-card.selected { border-color: var(--raid-color); background: var(--surface-2); }
.raid-card.selected::before { opacity: 1; width: 5px; }
.raid-icon { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; align-self: center; border: 1px solid color-mix(in srgb, var(--raid-color) 70%, #fff 0%); color: var(--raid-color); font: 600 9px/1 var(--font-mono); }
.raid-card-copy { min-width: 0; }
.raid-card-copy strong, .raid-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raid-card-copy strong { font-size: 12px; }
.raid-card-copy small { margin-top: 5px; color: var(--muted); font: 600 9px/1 var(--font-mono); }
.raid-win { color: #737d85; font: 600 8px/1 var(--font-mono); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.race-dossier { padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; gap: 24px; border-left: 1px solid var(--line); background: #131312; position: relative; overflow: hidden; }
.dossier-topline { display: flex; justify-content: space-between; color: var(--raid-color); font: 700 11px/1 var(--font-mono); }
.race-dossier h2 { max-width: 520px; margin: 10px 0; font: 650 clamp(26px, 2.6vw, 38px)/1.12 var(--font-display); }
.dossier-headline { margin: 0; color: #c8c6bf; font-size: 13px; line-height: 1.55; }
.dossier-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dossier-facts div { min-height: 68px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dossier-facts span, .dossier-facts strong { display: block; }
.dossier-facts span { color: var(--muted); font: 600 8px/1 var(--font-mono); }
.dossier-facts strong { margin-top: 9px; font: 600 13px/1 var(--font-mono); }
.reality-note { margin: 0; padding-left: 14px; border-left: 1px solid var(--raid-color); color: #aaa9a2; font-size: 12px; line-height: 1.65; }
.meta-preview { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.meta-preview > span { color: var(--muted); font: 600 8px/1 var(--font-mono); }
.meta-preview div { display: flex; gap: 4px; }
.spec-icon { width: 30px; height: 30px; display: block; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line-bright); background: #090a0a; }
.spec-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.meta-spec-icon { width: 32px; height: 32px; }
.start-form { margin-top: auto; display: grid; gap: 18px; }
.start-form label > span, .start-form legend { display: block; margin-bottom: 8px; color: var(--muted); font: 700 9px/1 var(--font-mono); }
.start-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-bright); border-radius: 0; background: #0b0e11; color: var(--text); font-weight: 700; }
.start-form fieldset { padding: 0; border: 0; }
.region-picker { display: grid; grid-template-columns: repeat(3, 1fr); }
.region-picker button { min-width: 0; height: 52px; padding: 7px; border: 1px solid var(--line); border-right: 0; background: var(--surface); cursor: pointer; }
.region-picker button:last-child { border-right: 1px solid var(--line); }
.region-picker strong, .region-picker span { display: block; }
.region-picker strong { font: 700 12px/1 var(--font-mono); }
.region-picker span { margin-top: 6px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.region-picker button.selected { background: var(--text); color: #0f1214; }
.region-picker button.selected span { color: #4f5960; }
.primary-command { width: 100%; min-height: 50px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--gold); background: transparent; color: var(--gold); cursor: pointer; font: 600 10px/1 var(--font-mono); }
.primary-command b { font-size: 20px; }
.primary-command:hover { background: var(--gold); color: #121210; }
.primary-command:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .5; }
.ticker { height: 38px; padding: 0 24px; display: flex; align-items: center; justify-content: space-around; gap: 30px; overflow: hidden; border-top: 1px solid var(--line); background: var(--gold); color: #151515; font: 700 8px/1 var(--font-mono); white-space: nowrap; }

/* Draft */
.draft-header { min-height: 80px; padding: 16px 24px; display: grid; grid-template-columns: 1fr minmax(280px, 520px) 1fr; align-items: center; gap: 25px; border-bottom: 1px solid var(--line); background: var(--surface); }
.draft-header h1 { margin: 5px 0 0; font: 600 20px/1.15 var(--font-display); }
.draft-progress > span { display: block; margin-bottom: 8px; text-align: center; color: var(--muted); font: 700 9px/1 var(--font-mono); }
.draft-progress > div { height: 5px; background: #080a0c; }
.draft-progress i { display: block; height: 100%; background: var(--raid-color); transition: width .3s ease; }
.quiet-button { justify-self: end; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 700 9px/1 var(--font-mono); }
.quiet-button:hover { color: var(--text); border-color: var(--line-bright); }
.manager-layout { min-height: calc(100vh - 202px); display: grid; grid-template-columns: minmax(260px, .7fr) minmax(520px, 1.5fr) minmax(260px, .7fr); }
.mobile-draft-summary { display: none; }
.roster-board, .analytics-panel { min-width: 0; padding: 22px; background: #111110; }
.roster-board { border-right: 1px solid var(--line); }
.analytics-panel { border-left: 1px solid var(--line); }
.draft-room { min-width: 0; padding: clamp(26px, 4vw, 52px); background: var(--bg); }
.section-heading { min-height: 45px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.section-heading div { display: flex; align-items: baseline; gap: 10px; }
.section-heading span { color: var(--muted); font: 700 9px/1 var(--font-mono); }
.section-heading strong { color: var(--gold); font: 700 18px/1 var(--font-mono); }
.section-heading small { color: #626b72; font-size: 8px; text-align: right; }
.roster-group { margin-top: 18px; }
.roster-group-title { margin-bottom: 7px; display: flex; justify-content: space-between; color: var(--muted); font: 600 8px/1 var(--font-mono); }
.roster-slots { display: grid; gap: 4px; }
.roster-slot { min-width: 0; height: 40px; padding: 0 8px; display: grid; grid-template-columns: 28px minmax(0,1fr) 24px; gap: 7px; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.roster-slot > div { min-width: 0; }
.roster-slot strong, .roster-slot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-slot strong { font-size: 9px; }
.roster-slot small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.roster-slot > b { color: #9aa4ab; font: 600 9px/1 var(--font-mono); text-align: right; }
.roster-slot.empty { border-style: dashed; background: transparent; color: #424a50; }
.roster-slot.empty > span { font: 700 8px/1 var(--font-mono); }
.roster-slot.empty small { grid-column: 2; margin: 0; }
.region-dot, .region-pill { display: grid; place-items: center; font: 700 7px/1 var(--font-mono); }
.region-dot { width: 24px; height: 20px; }
.region-pill { width: 27px; height: 20px; }
.region-na { background: rgba(106,203,195,.14); color: var(--cyan); }
.region-eu { background: rgba(110,169,229,.14); color: var(--blue); }
.region-cn { background: rgba(227,101,103,.14); color: #ef8587; }

.pick-header { display: flex; justify-content: space-between; align-items: flex-end; }
.pick-header h2, .prep-head h2 { margin: 8px 0 0; font: 650 clamp(30px, 3vw, 42px)/1.08 var(--font-display); }
.reroll-button { min-width: 105px; height: 42px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-bright); background: #11161a; cursor: pointer; }
.reroll-button b { font-size: 18px; }
.reroll-button span { font: 700 8px/1 var(--font-mono); }
.reroll-button i { margin-left: auto; width: 18px; height: 18px; display: grid; place-items: center; background: var(--gold); color: #111; font: normal 700 8px/1 var(--font-mono); }
.reroll-button:disabled { opacity: .35; cursor: not-allowed; }
.pick-brief { margin: 10px 0 28px; color: var(--muted); font-size: 12px; }
.candidate-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.candidate-card { min-width: 0; min-height: 310px; padding: 18px; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; overflow: hidden; }
.candidate-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--raid-color); opacity: 0; transition: opacity .15s ease; }
.candidate-card:hover { border-color: var(--line-bright); }
.candidate-card:hover::before { opacity: 1; }
.candidate-top { min-height: 36px; display: flex; justify-content: space-between; align-items: flex-start; color: var(--muted); font: 700 8px/1 var(--font-mono); }
.candidate-top > strong { color: var(--gold); font-size: 21px; }
.duo-list { display: grid; gap: 1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.duo-list > div { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 28px minmax(0,1fr) 32px 24px; gap: 7px; align-items: center; }
.duo-list > div + div { border-top: 1px solid var(--line); }
.duo-list p { min-width: 0; margin: 0; }
.duo-list p strong, .duo-list p small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duo-list p strong { font-size: 12px; }
.duo-list p small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.duo-list > div > b { font: 700 9px/1 var(--font-mono); text-align: right; }
.trait-row { margin-top: 16px; display: flex; gap: 5px; flex-wrap: wrap; }
.trait-row span { padding: 5px 0; color: #aaa9a2; font: 500 8px/1 var(--font-mono); text-transform: uppercase; }
.trait-row span + span::before { margin-right: 5px; color: var(--line-bright); content: "/"; }
.candidate-note { margin: 16px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.sign-command { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--raid-color); font: 700 9px/1 var(--font-mono); }
.sign-command b { font-size: 16px; }
.candidate-name small { color: var(--muted); font: 700 8px/1 var(--font-mono); }
.candidate-name h3 { margin: 13px 0 7px; overflow-wrap: break-word; font: 600 20px/1.12 var(--font-display); }
.candidate-name p { margin: 0; color: var(--raid-color); font-size: 10px; font-weight: 700; }
.leader-card .trait-row { margin-top: 24px; }
.metric { margin-top: 20px; }
.metric > div:first-child { display: flex; justify-content: space-between; font: 700 8px/1 var(--font-mono); }
.metric > div:first-child span { color: var(--muted); }
.metric > div:first-child strong { color: #d7dcdf; }
.metric-track { height: 4px; margin: 8px 0 7px; background: #07090a; }
.metric-track i { display: block; height: 100%; background: var(--gold); }
.metric small { color: #73736c; font-size: 8px; }
.demand-list, .meta-list { margin-top: 30px; padding-top: 15px; border-top: 1px solid var(--line); }
.demand-list > span, .meta-list > span { display: block; margin-bottom: 11px; color: var(--muted); font: 700 8px/1 var(--font-mono); }
.demand-list > div { min-height: 32px; display: grid; grid-template-columns: 22px 1fr 20px; align-items: center; color: #707a81; }
.demand-list > div b { font: 500 12px/1 var(--font-mono); }
.demand-list > div span { font-size: 9px; }
.demand-list > div i { font: normal 700 8px/1 var(--font-mono); text-align: right; }
.demand-list > div.covered { color: var(--green); }
.meta-list p { min-width: 0; margin: 0; min-height: 38px; display: grid; grid-template-columns: 30px minmax(0,1fr) 20px; gap: 8px; align-items: center; color: #8f999f; font-size: 8px; }
.meta-list p .spec-icon { width: 28px; height: 28px; }
.meta-list p > span:not(.spec-icon) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-list p i { font: normal 700 8px/1 var(--font-mono); text-align: right; }

.prep-head p { margin: 12px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plan-head { max-width: 680px; }
.plan-step-track { height: 4px; margin-bottom: 24px; background: #080a0c; }
.plan-step-track i { display: block; height: 100%; background: var(--raid-color); transition: width .2s ease; }
.plan-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-options.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-card { min-width: 0; min-height: 230px; padding: 20px; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.plan-card > span { color: var(--raid-color); font: 700 9px/1 var(--font-mono); text-transform: uppercase; }
.plan-card h3 { margin: 22px 0 10px; font: 600 22px/1.15 var(--font-display); }
.plan-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.plan-card small { margin-top: auto; padding-top: 20px; color: #aaa9a2; font: 600 8px/1.4 var(--font-mono); text-transform: uppercase; }
.plan-card:hover, .plan-card.selected { border-color: var(--raid-color); }
.plan-card.selected { background: color-mix(in srgb, var(--raid-color) 8%, var(--surface)); }
.plan-card.selected small { color: var(--raid-color); }
.plan-navigation { margin-top: 20px; display: grid; grid-template-columns: auto minmax(220px, 1fr); gap: 10px; }
.plan-navigation .quiet-button { justify-self: stretch; min-width: 88px; }
.plan-review { border-top: 1px solid var(--line-bright); }
.plan-review div { min-height: 62px; padding: 12px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.plan-review span { color: var(--muted); font: 700 8px/1 var(--font-mono); text-transform: uppercase; }
.plan-review strong { font-size: 14px; text-align: right; }
.lock-summary { margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.lock-summary div { min-height: 60px; padding: 12px; border-right: 1px solid var(--line); }
.lock-summary div:last-child { border-right: 0; }
.lock-summary span, .lock-summary strong { display: block; }
.lock-summary span { color: var(--muted); font: 700 7px/1 var(--font-mono); }
.lock-summary strong { margin-top: 9px; font: 700 14px/1 var(--font-mono); }

/* Race reveal */
.race-live { min-height: calc(100vh - 104px); padding: 24px 16px 48px; background: #0c0e0f; }
.race-command-center { width: min(1040px, 100%); margin: 0 auto; border: 1px solid var(--line); background: var(--bg); }
.broadcast-bar { height: 46px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); }
.broadcast-bar > div { display: flex; align-items: center; gap: 10px; font: 700 9px/1 var(--font-mono); }
.broadcast-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: livePulse 1.3s infinite; }
.broadcast-bar span { color: var(--muted); }
.broadcast-state { color: var(--raid-color) !important; font: 700 9px/1 var(--font-mono); }
.race-live.is-paused .broadcast-bar { border-top: 3px solid var(--gold); background: #191816; }
.race-live.is-paused .broadcast-bar i { border-radius: 0; background: var(--gold); animation: none; }
.race-live.is-paused .broadcast-state { color: var(--gold) !important; }
.race-scoreboard { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.race-scoreboard div { min-height: 62px; padding: 13px 18px; border-right: 1px solid var(--line); }
.race-scoreboard div:last-child { border-right: 0; }
.race-scoreboard span, .race-scoreboard strong { display: block; }
.race-scoreboard span { color: var(--muted); font: 700 7px/1 var(--font-mono); }
.race-scoreboard strong { margin-top: 8px; color: var(--raid-color); font: 700 18px/1 var(--font-mono); }
.live-stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
.boss-feed { padding: 30px; border-right: 1px solid var(--line); }
.current-boss h1 { margin: 9px 0; font: 650 clamp(32px, 4vw, 48px)/1.04 var(--font-display); }
.current-boss p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; }
.final-phase-track { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.final-phase-track span { min-height: 46px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-right: 1px solid var(--line); color: #59636a; font: 700 7px/1.2 var(--font-mono); }
.final-phase-track span:last-child { border-right: 0; }
.final-phase-track span b { color: #69737a; font-size: 7px; }
.final-phase-track span.active { color: var(--text); background: color-mix(in srgb, var(--raid-color) 9%, transparent); }
.final-phase-track span.active b { color: var(--raid-color); }
.final-phase-track span.complete { color: var(--green); }
.boss-track { margin-top: 26px; border-top: 1px solid var(--line); }
.boss-row { min-height: 46px; display: grid; grid-template-columns: 32px minmax(0,1fr) 76px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); color: #59636a; }
.boss-row > span { font: 700 9px/1 var(--font-mono); }
.boss-row div { min-width: 0; }
.boss-row strong, .boss-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boss-row strong { font-size: 11px; }
.boss-row small { margin-top: 5px; font-size: 8px; text-transform: uppercase; }
.boss-row > b { font: 700 8px/1 var(--font-mono); text-align: right; }
.boss-row.killed { color: #a9b2b8; }
.boss-row.killed > span, .boss-row.killed > b { color: var(--green); }
.boss-row.active { color: var(--text); background: color-mix(in srgb, var(--raid-color) 7%, transparent); }
.boss-row.active > b { color: var(--raid-color); animation: livePulse 1.1s infinite; }
.race-console { padding: 24px; background: #131312; }
.console-title { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 8px/1 var(--font-mono); }
.console-title i { color: var(--red); font-style: normal; }
.incident-feed { max-height: 410px; overflow: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-bright) transparent; }
.incident { padding: 14px 0; border-bottom: 1px solid var(--line); }
.incident:last-child { border-bottom: 0; }
.incident > div { display: flex; justify-content: space-between; gap: 12px; }
.incident time, .incident > div b { color: #68737a; font: 700 7px/1 var(--font-mono); }
.incident > div b { color: var(--raid-color); text-align: right; }
.incident > strong { margin-top: 8px; display: block; color: #d6d9d7; font-size: 10px; line-height: 1.35; }
.incident p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.incident.kill > div b, .incident.breakthrough > div b, .incident.result > div b { color: var(--green); }
.incident.control > div b, .incident.wall > div b, .incident.setback > div b { color: var(--gold); }
.standings-list { padding: 16px 0; border-bottom: 1px solid var(--line); }
.standings-list > span, .standings-card > span { display: block; margin-bottom: 10px; color: var(--muted); font: 600 8px/1 var(--font-mono); }
.standings-list p, .standings-card p { min-width: 0; min-height: 30px; margin: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) 55px; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.standings-list p b, .standings-card p b { font: 600 8px/1 var(--font-mono); }
.standings-list p i, .standings-card p i { font: normal 600 8px/1 var(--font-mono); text-align: right; }
.standings-list p.is-player, .standings-card p.is-player { color: var(--raid-color); }
.race-vitals { padding-top: 16px; }
.race-vitals > span { display: block; margin-bottom: 8px; color: var(--muted); font: 700 8px/1 var(--font-mono); }
.race-vitals p { margin: 0; min-height: 27px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.race-vitals p b, .race-vitals p i { font: 700 8px/1 var(--font-mono); }
.race-vitals p i { color: var(--raid-color); font-style: normal; }
.live-stage.is-decision { display: block; width: min(720px, 100%); margin: 0 auto; }
.live-stage.is-decision .boss-feed { display: none; }
.live-stage.is-decision .race-console { min-height: 520px; padding: 28px 34px 38px; background: #121414; }
.action-beacon { min-height: 60px; margin-bottom: 14px; padding: 11px 18px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 6px 18px; border: 1px solid var(--gold); border-left-width: 4px; background: color-mix(in srgb, var(--gold) 6%, #141413); }
.action-beacon span, .action-beacon small { color: var(--gold); font: 700 8px/1 var(--font-mono); }
.action-beacon strong { grid-row: 2; color: #f2eee5; font: 700 18px/1 var(--font-mono); }
.action-beacon small { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); text-align: right; }
.live-stage.is-final:not(.is-decision) { display: block; width: min(780px, 100%); margin: 0 auto; }
.live-stage.is-final:not(.is-decision) .boss-feed { padding: 16px 34px 0; border-right: 0; text-align: center; }
.live-stage.is-final:not(.is-decision) .current-boss p { margin-inline: auto; }
.live-stage.is-final:not(.is-decision) .current-boss h1 { margin-block: 6px; font-size: 40px; }
.live-stage.is-final:not(.is-decision) .current-boss p { font-size: 10px; }
.live-stage.is-final:not(.is-decision) .final-phase-track { margin-top: 12px; }
.live-stage.is-final:not(.is-decision) .final-phase-track span { min-height: 38px; padding: 7px; gap: 4px; }
.live-stage.is-final:not(.is-decision) .race-console { padding: 12px 34px 20px; background: transparent; }
.final-progress-console { border-top: 1px solid var(--line); }
.pulling-indicator { min-height: 44px; padding: 0 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--green) 6%, #101312); }
.pulling-indicator span { display: flex; align-items: center; gap: 9px; color: var(--green); font: 700 9px/1 var(--font-mono); }
.pulling-indicator span i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: livePulse 1.2s infinite; }
.pulling-indicator > b { color: var(--muted); font: 700 8px/1 var(--font-mono); }
.boss-health-read { padding: 16px 4px 14px; text-align: center; }
.boss-health-read > span { color: var(--muted); font: 700 8px/1 var(--font-mono); }
.boss-health-read > strong { margin-top: 8px; display: block; color: var(--raid-color); font: 700 48px/1 var(--font-body); }
.boss-health-read > p { margin: 10px 0 0; color: #9ca5aa; font-size: 10px; }
.boss-health-bar { width: min(470px, 100%); height: 8px; margin: 12px auto 0; padding: 2px; border: 1px solid var(--line-bright); background: #080a0a; }
.boss-health-bar i { display: block; height: 100%; background: var(--red); transition: width 1.35s ease; }
.attempt-stream { border-top: 1px solid var(--line); }
.attempt-stream > span { padding: 10px 0 7px; display: block; color: var(--muted); font: 700 8px/1 var(--font-mono); }
.attempt-stream > p { margin: 0; padding: 13px 0; color: var(--muted); font-size: 10px; text-align: center; }
.attempt-stream article { min-height: 38px; display: grid; grid-template-columns: 70px minmax(0, 1fr) 52px 100px; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.attempt-stream article b, .attempt-stream article i, .attempt-stream article small { font: 700 8px/1 var(--font-mono); }
.attempt-stream article b { color: var(--raid-color); }
.attempt-stream article span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c2c7c8; font-size: 9px; text-align: left; }
.attempt-stream article i { color: var(--text); font-style: normal; text-align: right; }
.attempt-stream article small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); text-align: right; }
.final-live-footer { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.final-live-footer span { min-height: 40px; padding: 8px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border-right: 1px solid var(--line); color: var(--muted); font: 700 7px/1 var(--font-mono); }
.final-live-footer span:last-child { border-right: 0; }
.final-live-footer b { color: var(--text); font-size: 11px; }
.decision-panel .eyebrow { color: var(--red); }
.decision-panel h2 { margin: 12px 0 10px; color: var(--text); font: 650 34px/1.06 var(--font-display); }
.wall-briefing h2 { color: var(--red); font: 700 50px/1 var(--font-body); }
.wall-briefing > p { margin-bottom: 10px; }
.decision-panel > p { margin: 0 0 24px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.decision-options { display: grid; gap: 7px; }
.live-stage.is-decision .decision-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live-stage.is-decision .wall-briefing .decision-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.decision-options button { width: 100%; min-height: 68px; padding: 14px; display: flex; justify-content: space-between; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.decision-options button:hover { border-color: var(--raid-color); background: #1b2227; }
.decision-panel button b, .decision-panel button small { display: block; }
.decision-panel button b { font: 700 11px/1 var(--font-mono); }
.decision-panel button small { margin-top: 7px; color: var(--muted); font-size: 8px; }
.decision-panel button i { color: var(--raid-color); font: normal 700 20px/1 var(--font-mono); }
.decision-read { display: block; margin-top: 14px; color: #69737a; font-size: 8px; }
.evidence-grid, .final-arrival { margin: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.wall-evidence-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 14px; }
.wall-briefing .evidence-grid { margin: 10px 0; }
.wall-briefing .evidence-grid > div { min-height: 48px; padding: 10px; }
.wall-briefing .wipe-breakdown { margin-bottom: 8px; }
.wall-briefing .wipe-breakdown p { min-height: 27px; }
.wall-evidence-layout .analyst-note { min-height: 100px; margin: 10px 0 8px; }
.evidence-grid > div, .final-arrival > div { min-height: 58px; padding: 12px; border-right: 1px solid var(--line); }
.evidence-grid > div:last-child, .final-arrival > div:last-child { border-right: 0; }
.evidence-grid span, .evidence-grid strong, .final-arrival span, .final-arrival strong { display: block; }
.evidence-grid span, .final-arrival span { color: var(--muted); font: 700 7px/1 var(--font-mono); }
.evidence-grid strong, .final-arrival strong { margin-top: 9px; font: 700 11px/1.2 var(--font-mono); }
.wipe-breakdown { margin-bottom: 16px; border-top: 1px solid var(--line); }
.wipe-breakdown p { min-height: 34px; margin: 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.wipe-breakdown p b { color: var(--text); font: 700 9px/1 var(--font-mono); }
.wipe-breakdown p.primary { color: var(--red); }
.analyst-note { padding: 13px; border-left: 2px solid var(--gold); background: #181b1c; }
.analyst-note b { margin-bottom: 7px; display: block; color: var(--gold); font: 700 7px/1 var(--font-mono); }
.decision-prompt { margin: 12px 0 8px; display: block; color: var(--text); font: 700 9px/1 var(--font-mono); }
.outcome-panel .eyebrow { color: var(--gold); }
.outcome-panel.breakthrough .eyebrow { color: var(--green); }
.outcome-read { margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outcome-read span { min-height: 58px; padding: 12px 8px; display: flex; flex-direction: column; justify-content: center; gap: 8px; border-right: 1px solid var(--line); color: var(--muted); font: 700 7px/1 var(--font-mono); }
.outcome-read span:last-child { border-right: 0; }
.outcome-read b { color: var(--raid-color); font-size: 12px; }
.resume-panel .eyebrow { color: var(--green); }
.resume-pulling { border-color: var(--green); background: var(--green); color: #07100c; }
.final-arrival { grid-template-columns: repeat(3, 1fr); }
.phase-list { margin: 18px 0; border-top: 1px solid var(--line); }
.phase-list p { min-height: 42px; margin: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) 72px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); font-size: 9px; }
.phase-list p b, .phase-list p i { color: var(--muted); font: 700 8px/1 var(--font-mono); }
.phase-list p i { font-style: normal; text-align: right; }
.kill-sequence { min-height: 520px; }
.kill-beats { border-bottom: 1px solid var(--line); }
.kill-beats article { min-height: 64px; padding: 15px 0; border-bottom: 1px solid var(--line); opacity: .55; }
.kill-beats article.latest { opacity: 1; }
.kill-beats article span { color: var(--raid-color); font: 700 8px/1 var(--font-mono); }
.kill-beats article p { margin: 8px 0 0; color: #b9c0c3; font-size: 10px; line-height: 1.55; }
.kill-complete { margin-top: 16px; min-height: 48px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); font: 700 9px/1 var(--font-mono); }

/* Results */
.result-screen { min-height: calc(100vh - 104px); background: var(--bg); }
.result-hero { min-height: 280px; padding: clamp(34px, 5vw, 64px); display: grid; grid-template-columns: .75fr 1fr auto; align-items: end; gap: 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.result-hero h1 { margin: 12px 0 0; font: 700 clamp(52px, 6vw, 82px)/.85 var(--font-body); }
.result-hero h1 b { color: var(--raid-color); }
.result-verdict > span { color: var(--raid-color); font: 700 9px/1 var(--font-mono); }
.result-verdict h2 { margin: 10px 0; font: 650 clamp(26px, 3vw, 42px)/1.08 var(--font-display); }
.result-verdict p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.result-actions { display: grid; gap: 7px; }
.result-actions button { min-width: 130px; height: 38px; border: 1px solid var(--line-bright); background: #111519; cursor: pointer; font: 700 8px/1 var(--font-mono); }
.result-actions button.primary { border-color: var(--raid-color); background: var(--raid-color); color: #101214; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.result-stats div { min-height: 100px; padding: 20px 28px; border-right: 1px solid var(--line); }
.result-stats div:last-child { border-right: 0; }
.result-stats span, .result-stats strong, .result-stats small { display: block; }
.result-stats span { color: var(--muted); font: 700 8px/1 var(--font-mono); }
.result-stats strong { margin-top: 11px; font: 700 22px/1 var(--font-mono); }
.result-stats small { margin-top: 8px; color: #657078; font-size: 8px; }
.result-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .6fr); }
.boss-report { padding: clamp(28px, 5vw, 64px); border-right: 1px solid var(--line); }
.report-heading { padding-bottom: 14px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-bright); }
.report-heading span { font: 700 10px/1 var(--font-mono); }
.report-heading small { color: var(--muted); font-size: 8px; }
.report-row { min-height: 66px; display: grid; grid-template-columns: 38px minmax(0,1fr) 70px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.report-row > span { color: var(--muted); font: 700 9px/1 var(--font-mono); }
.report-row > div { min-width: 0; }
.report-row > div strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.report-row i { height: 3px; margin-top: 9px; display: block; background: #20262b; }
.report-row i b { display: block; height: 100%; max-width: 100%; background: var(--raid-color); }
.report-row > p { margin: 0; text-align: right; }
.report-row > p strong, .report-row > p small { display: block; }
.report-row > p strong { font: 700 13px/1 var(--font-mono); }
.report-row > p small { margin-top: 6px; color: var(--muted); font-size: 8px; }
.post-race { padding: 30px; background: #131312; }
.standings-card, .recap-card, .final-card, .lineup-card { padding: 20px 0; border-bottom: 1px solid var(--line); }
.recap-card:first-child { padding-top: 0; }
.recap-card > span, .final-card > span, .lineup-card > span { display: block; margin-bottom: 15px; color: var(--gold); font: 700 8px/1 var(--font-mono); }
.recap-card h3 { margin: 0 0 10px; color: #f0ede6; font: 650 22px/1.12 var(--font-display); }
.recap-card > p { margin: 0 0 16px; color: #a5aeb4; font-size: 10px; line-height: 1.65; }
.recap-card article { padding: 13px 0; border-top: 1px solid var(--line); }
.recap-card article b, .recap-card article span { display: block; }
.recap-card article b { color: var(--raid-color); font: 700 8px/1 var(--font-mono); }
.recap-card article span { margin-top: 7px; color: #aeb6bc; font-size: 9px; line-height: 1.6; }
.final-card h3 { margin: 0; font: 600 22px/1.15 var(--font-display); }
.final-card > div { margin-top: 15px; display: flex; align-items: baseline; gap: 7px; }
.final-card > div strong { color: var(--raid-color); font: 700 34px/1 var(--font-mono); }
.final-card > div small { color: var(--muted); font-size: 8px; }
.final-card p { color: var(--muted); font-size: 9px; line-height: 1.55; }
.lineup-card p { margin: 0 0 12px; }
.lineup-card p b, .lineup-card p span { display: block; }
.lineup-card p b { margin-bottom: 5px; color: var(--muted); font: 700 7px/1 var(--font-mono); }
.lineup-card p span { color: #aeb6bc; font-size: 8px; line-height: 1.55; }

/* Modal and feedback */
.modal { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 30px; border: 1px solid var(--line-bright); border-radius: 0; background: #12171b; color: var(--text); }
.modal::backdrop { background: rgba(0,0,0,.78); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }
.modal h2 { margin: 12px 0; font: 600 30px/1.1 var(--font-display); }
.modal > p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.share-card-preview { width: 100%; height: auto; margin-top: 10px; display: block; border: 1px solid var(--line-bright); }
.share-card-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-card-actions button { min-height: 44px; border: 1px solid var(--line-bright); background: transparent; color: var(--text); cursor: pointer; font: 700 9px/1 var(--font-mono); }
.share-card-actions button.primary { border-color: var(--cyan); background: var(--cyan); color: #0b1013; }
.source-links { margin-top: 22px; border-top: 1px solid var(--line); }
.source-links a { min-height: 45px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); color: #c3c9cd; text-decoration: none; font-size: 10px; }
.source-links a b { color: var(--cyan); }
.ethics-note { margin-top: 22px; padding: 15px; border-left: 2px solid var(--gold); background: #171d21; }
.ethics-note strong { font: 700 9px/1 var(--font-mono); }
.ethics-note p { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.toast-root { position: fixed; left: 50%; bottom: 24px; z-index: 100; padding: 11px 15px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; border: 1px solid var(--line-bright); background: #171c20; color: var(--text); font: 700 9px/1 var(--font-mono); transition: .2s ease; }
.toast-root.show { transform: translate(-50%, 0); opacity: 1; }

@keyframes livePulse { 50% { opacity: .35; } }

@media (max-width: 1180px) {
  .select-layout { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); }
  .era-browser { padding: 48px 36px; }
  .raid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manager-layout { grid-template-columns: 230px minmax(490px, 1fr); }
  .analytics-panel { grid-column: 1 / 3; border-top: 1px solid var(--line); border-left: 0; display: grid; grid-template-columns: 170px repeat(4, 1fr) 1.4fr 1.4fr; gap: 18px; align-items: start; }
  .analytics-panel .section-heading { display: block; }
  .analytics-panel .section-heading div { display: flex; }
  .analytics-panel .section-heading small { display: block; margin-top: 7px; text-align: left; }
  .analytics-panel .metric, .analytics-panel .demand-list, .analytics-panel .meta-list { margin-top: 0; padding-top: 0; border-top: 0; }
  .result-hero { grid-template-columns: .7fr 1fr; }
  .result-actions { grid-column: 1 / 3; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .app-shell { grid-template-rows: 64px 1fr auto; }
  .topbar { height: 64px; padding: 0 16px; grid-template-columns: 1fr auto; }
  .topbar-status { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 11px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .icon-button { width: 38px; height: 38px; }
  .eyebrow { font-size: 11px; }
  .site-footer { padding: 18px 16px; align-items: flex-start; font-size: 11px; line-height: 1.5; }
  .select-layout { display: block; }
  .era-browser { min-height: auto; padding: 34px 16px; }
  .era-browser h1 { font-size: 44px; }
  .lede { font-size: 15px; }
  .archive-art { height: 132px; margin: 26px 0; }
  .segmented { width: 100%; margin-top: 32px; }
  .segmented button { flex: 1; min-height: 48px; padding: 0 12px; font-size: 10px; }
  .raid-card { min-height: 76px; padding: 13px; }
  .raid-card-copy strong { font-size: 14px; }
  .raid-card-copy small { font-size: 10px; }
  .raid-win { font-size: 9px; }
  .race-dossier { padding: 32px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .race-dossier .start-form { order: 3; margin-top: 4px; }
  .race-dossier .dossier-facts { order: 4; }
  .race-dossier .reality-note { order: 5; }
  .race-dossier .meta-preview { display: none; }
  .dossier-headline { font-size: 14px; }
  .dossier-facts span, .meta-preview > span { font-size: 9px; }
  .dossier-facts strong { font-size: 14px; }
  .reality-note { font-size: 13px; }
  .start-form label > span, .start-form legend { font-size: 10px; }
  .start-form input { height: 54px; font-size: 16px; }
  .region-picker button { height: 58px; }
  .region-picker strong { font-size: 14px; }
  .region-picker span { font-size: 9px; }
  .primary-command { min-height: 56px; font-size: 11px; }
  .ticker { justify-content: flex-start; }
  .draft-header { min-height: 88px; padding: 16px; grid-template-columns: 1fr auto; }
  .quiet-button { min-height: 42px; padding: 0 12px; font-size: 10px; }
  .draft-progress { grid-column: 1 / 3; grid-row: 2; }
  .manager-layout { display: flex; flex-direction: column; }
  .draft-room { order: 1; padding: 30px 16px 38px; }
  .roster-board, .analytics-panel { display: none; }
  .mobile-draft-summary { order: 0; display: block; position: sticky; top: 64px; z-index: 20; border-bottom: 1px solid var(--line); background: #111110; }
  .mobile-draft-summary summary { min-height: 54px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
  .mobile-draft-summary summary::-webkit-details-marker { display: none; }
  .mobile-draft-summary summary span { color: var(--muted); font: 700 10px/1 var(--font-mono); }
  .mobile-draft-summary summary strong { color: var(--gold); font: 700 12px/1 var(--font-mono); }
  .mobile-draft-summary summary i { color: var(--muted); font: normal 18px/1 var(--font-mono); transition: transform .15s ease; }
  .mobile-draft-summary[open] summary i { transform: rotate(45deg); }
  .mobile-summary-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .mobile-summary-metrics span { min-height: 52px; padding: 12px; border-right: 1px solid var(--line); color: var(--muted); font: 700 9px/1 var(--font-mono); }
  .mobile-summary-metrics span:last-child { border-right: 0; }
  .mobile-summary-metrics b { display: block; margin-top: 8px; color: var(--text); font-size: 13px; }
  .mobile-summary-roster { padding: 14px 16px 18px; }
  .mobile-summary-roster p { margin: 0 0 12px; }
  .mobile-summary-roster p:last-child { margin-bottom: 0; }
  .mobile-summary-roster b, .mobile-summary-roster span { display: block; }
  .mobile-summary-roster b { margin-bottom: 5px; color: var(--muted); font: 700 9px/1 var(--font-mono); }
  .mobile-summary-roster span { color: #c1c4c2; font-size: 11px; line-height: 1.5; }
  .pick-header h2, .prep-head h2 { font-size: 36px; }
  .pick-brief { margin-bottom: 22px; font-size: 14px; }
  .candidate-grid, .plan-options, .plan-options.three-up { grid-template-columns: 1fr; }
  .candidate-card { min-height: 270px; padding: 20px; }
  .candidate-top { font-size: 10px; }
  .candidate-top > strong { font-size: 24px; }
  .duo-list p strong { font-size: 15px; }
  .duo-list p small { font-size: 10px; }
  .duo-list > div { min-height: 82px; }
  .trait-row span { font-size: 9px; }
  .candidate-note { font-size: 12px; }
  .sign-command { font-size: 10px; }
  .candidate-name small { font-size: 10px; }
  .candidate-name h3 { font-size: 26px; }
  .candidate-name p { font-size: 12px; }
  .plan-card { min-height: 190px; padding: 20px; }
  .plan-card > span { font-size: 10px; }
  .plan-card h3 { margin-top: 18px; font-size: 24px; }
  .plan-card p { font-size: 13px; }
  .plan-card small { font-size: 9px; }
  .plan-review span { font-size: 9px; }
  .plan-review strong { font-size: 15px; }
  .race-live { padding: 0 0 32px; }
  .race-command-center { border-width: 0 0 1px; }
  .live-stage, .live-stage.is-decision, .live-stage.is-final:not(.is-decision), .result-body { width: 100%; display: block; }
  .live-stage.is-decision .boss-feed { display: none; }
  .live-stage.is-decision .race-console { min-height: 0; padding: 24px 16px 32px; }
  .boss-feed, .boss-report { padding: 32px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .race-console, .post-race { padding: 28px 16px; }
  .live-stage.is-final:not(.is-decision) .boss-feed { padding: 18px 16px 0; }
  .live-stage.is-final:not(.is-decision) .race-console { padding: 12px 16px 22px; }
  .race-scoreboard span { font-size: 10px; }
  .race-scoreboard strong { font-size: 20px; }
  .boss-row { min-height: 60px; }
  .boss-row strong { font-size: 13px; }
  .boss-row small, .boss-row > b { font-size: 9px; }
  .standings-list > span, .standings-card > span { font-size: 10px; }
  .standings-list p, .standings-card p { min-height: 38px; font-size: 11px; }
  .race-fact p { font-size: 12px; }
  .decision-panel > p { font-size: 13px; }
  .decision-panel h2 { font-size: 30px; }
  .wall-briefing h2 { font-size: 50px; }
  .decision-options button { min-height: 76px; padding: 16px; }
  .live-stage.is-decision .decision-options, .live-stage.is-decision .wall-briefing .decision-options { grid-template-columns: 1fr; }
  .decision-panel button b { font-size: 12px; }
  .decision-panel button small { font-size: 10px; }
  .decision-read { font-size: 9px; line-height: 1.5; }
  .action-beacon { margin-bottom: 22px; padding: 14px; }
  .action-beacon strong { font-size: 16px; }
  .incident-feed { max-height: none; }
  .incident { padding: 16px 0; }
  .incident > strong { font-size: 12px; }
  .incident p { font-size: 10px; }
  .evidence-grid strong, .final-arrival strong { font-size: 12px; }
  .wall-evidence-layout { display: block; }
  .final-phase-track { grid-template-columns: 1fr 1fr; }
  .final-phase-track span:nth-child(2n) { border-right: 0; }
  .boss-health-read > strong { font-size: 44px; }
  .attempt-stream article { grid-template-columns: 62px minmax(0, 1fr) 46px; }
  .attempt-stream article small { display: none; }
  .final-arrival { grid-template-columns: 1fr; }
  .final-arrival > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .final-arrival > div:last-child { border-bottom: 0; }
  .kill-sequence { min-height: 0; }
  .result-hero { padding: 40px 16px; display: block; }
  .result-verdict { margin-top: 36px; }
  .result-verdict p { font-size: 14px; }
  .result-actions { margin-top: 25px; grid-template-columns: 1fr; }
  .result-actions button { height: 48px; font-size: 10px; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .result-stats span { font-size: 9px; }
  .result-stats small { font-size: 9px; line-height: 1.4; }
  .result-stats div:nth-child(2) { border-right: 0; }
  .result-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .modal { padding: 24px 16px; }
  .share-card-actions { grid-template-columns: 1fr; }
  .share-card-actions button { min-height: 48px; }
}

@media (max-width: 520px) {
  .era-browser h1 { font-size: 38px; }
  .segmented { display: grid; grid-template-columns: 1fr 1fr; }
  .segmented button { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .segmented button:nth-last-child(-n+2) { border-bottom: 0; }
  .raid-grid { grid-template-columns: 1fr; }
  .race-dossier h2 { font-size: 36px; }
  .draft-header { gap: 10px; }
  .draft-header h1 { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; }
  .quiet-button { padding: 0 8px; }
  .pick-header { align-items: center; }
  .pick-header h2, .prep-head h2 { font-size: 32px; }
  .candidate-card { padding: 18px; }
  .lock-summary { grid-template-columns: 1fr; }
  .lock-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .lock-summary div:last-child { border-bottom: 0; }
  .broadcast-bar { padding: 0 12px; }
  .broadcast-bar span { display: none; }
  .race-scoreboard { grid-template-columns: 1fr 1fr; }
  .race-scoreboard div { min-height: 62px; padding: 12px; }
  .race-scoreboard div:nth-child(2) { border-right: 0; }
  .race-scoreboard div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .current-boss h1 { font-size: 34px; }
  .action-beacon { grid-template-columns: 1fr; }
  .action-beacon small { display: none; }
  .pulling-indicator { padding: 0 10px; }
  .pulling-indicator > b { font-size: 7px; }
  .boss-health-read { padding-block: 16px 14px; }
  .boss-health-read > strong { font-size: 40px; }
  .attempt-stream article:nth-of-type(n + 3) { display: none; }
  .final-live-footer span { padding: 8px; }
  .boss-row { grid-template-columns: 28px minmax(0,1fr) 62px; }
  .boss-row small { display: none; }
  .plan-navigation { grid-template-columns: 86px minmax(0, 1fr); }
  .plan-navigation .primary-command { padding: 0 12px; }
  .plan-review div { align-items: flex-start; flex-direction: column; gap: 7px; }
  .plan-review strong { text-align: left; }
  .result-stats div { padding: 17px; }
  .result-stats strong { font-size: 17px; overflow-wrap: anywhere; }
  .report-heading small { display: none; }
}
