/* NEXT UP — Northstar command center. UI only; the competition engine is unchanged. */
:root {
  color-scheme: dark;
  --bg: #101315;
  --surface: #171b1e;
  --surface2: #202629;
  --line: #343b3e;
  --text: #f0ece2;
  --muted: #a1adae;
  --lime: #ff765f;
  --lime-dark: #f24d3b;
  --red: #ff8476;
  --blue: #90c5cc;
  --purple: #b9c0be;
  --radius: 6px;
  --paper: #f0ece2;
  --ink: #202526;
  --signal: #f24d3b;
  --action: #c43829;
  --action-hover: #ce3b2e;
  --display: Impact, "Arial Narrow", "Helvetica Neue", sans-serif;
  --font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

html { scroll-padding-top: 84px; }
body {
  background: var(--bg);
  background-image: linear-gradient(#ffffff02 1px, transparent 1px), linear-gradient(90deg, #ffffff02 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font: 14px/1.65 var(--font);
}
button, input, select { font-family: var(--font); }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #ff846e; outline-offset: 4px; }
button, summary { scroll-margin-top: 88px; scroll-margin-bottom: 105px; }
.main, .tab-content, .prep-main, .side-panels, .section-head > div, .player-body, .scout-body { min-width: 0; }
.muted { color: var(--muted); }
.lime { color: #ff8b75; }
.mono { font-family: "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.upper { color: #a4b0b0; font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: 1.7px; }
.icon { flex-shrink: 0; }

/* Fixed instruments at the edges, generous space for the club itself. */
.topbar { height: 72px; padding: 0 32px; background: #101315; border-bottom: 1px solid var(--line); }
.wordmark { gap: 13px; }
.brand-symbol { width: 30px; height: 36px; color: var(--signal); }
.brand-title { font-family: var(--display); font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: .6px; color: var(--paper); }
.brand-title span { letter-spacing: 2px; }
.brand-caption { font-size: 8px; letter-spacing: 1.6px; color: #95a3a4; margin-top: 6px; }
.top-actions { gap: 18px; }
.rules-top { min-height: 40px; padding: 8px 13px; border-color: #464e50; background: transparent; color: #c1cbc9; font-size: 10px; letter-spacing: 1.2px; }
.save-state { color: #b4bfbd; font-size: 11px; }
.save-dot { background: #99c6b8; box-shadow: 0 0 0 3px #99c6b811; }
.icon-button { width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--line); background: #1a2022; color: #c1cbc9; }
.icon-button:hover { border-color: #768581; color: var(--paper); }
.shell { grid-template-columns: 94px minmax(0, 1fr); min-height: calc(100dvh - 72px); }
.sidebar { background: #101315; border-color: var(--line); padding: 24px 9px; gap: 12px; position: sticky; top: 0; height: calc(100dvh - 1px); align-self: start; }
.sidebar .club-emblem { width: 48px; height: 48px; margin-bottom: 14px; border: 1px solid #4d5453; background: var(--paper); color: #202526; border-radius: 4px; }
.nav-button { position: relative; width: 74px; min-height: 70px; padding: 12px 4px; border-radius: 4px; color: #9ca9a9; font-size: 11px; gap: 7px; }
.nav-button .icon { width: 22px; height: 22px; }
.nav-button:hover { background: #242b2d; color: var(--paper); }
.nav-button.active { background: var(--paper); color: #202526; }
.nav-button.active::before { content: ""; position: absolute; top: 15px; bottom: 15px; left: -10px; width: 3px; background: var(--signal); }
.nav-button.active .icon { color: #df4938; }
.sidebar-tail { padding-top: 28px; }
.main { max-width: 1450px; width: 100%; padding: 26px 32px 32px; }
.mobile-nav { display: none; }

/* The team key art is an actual asset, supplied in markup, with readable live copy. */
.club-hero { position: relative; isolation: isolate; min-height: 318px; overflow: hidden; border: 1px solid #404544; border-radius: 6px 6px 0 0; background: #10171b; }
.club-hero::after { content: ""; position: absolute; z-index: 1; left: 0; top: 0; height: 4px; width: 104px; background: var(--signal); pointer-events: none; }
.club-hero-image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: -2; }
.club-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10171bfa 0%, #10171bc4 26%, #10171b23 59%, #10171b06 80%), linear-gradient(0deg, #0d141adb, transparent 46%); }
.club-hero-content { position: relative; padding: 30px 34px 26px; max-width: 70%; min-height: inherit; }
.club-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: #d7dcdd; font-size: 10px; font-weight: 700; letter-spacing: 2.4px; }
.club-kicker::before { content: ""; width: 18px; height: 2px; background: var(--signal); }
.club-kicker-mark { padding: 3px 6px; border: 1px solid #a9b8b47a; color: #e7eaea; font-size: 9px; letter-spacing: 1px; }
.club-hero-heading { margin: 0; color: var(--paper); font-family: var(--display); font-size: clamp(62px, 6.2vw, 82px); font-weight: 900; line-height: .94; letter-spacing: -2.8px; }
.club-hero-heading > span { display: block; margin-top: 12px; color: #aebeb8; font: 600 10px/1.4 var(--font); letter-spacing: 5.2px; }
.club-hero-note { margin: 15px 0 0; color: #c8cfd0; font-size: 13px; letter-spacing: .5px; }
.club-hero-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 21px; color: #e8e8dc; font-size: 12px; font-weight: 600; }
.club-hero-stage > span:first-child { padding: 4px 7px; border: 1px solid #788581; border-radius: 2px; color: var(--paper); background: #10181c7d; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.club-hero-stage strong { font-size: 12px; font-weight: 600; }
.club-hero-stage > span:last-child { color: #a6b8b2; font-size: 10px; font-weight: 400; }
.club-hero-records { display: flex; flex-wrap: wrap; align-items: baseline; gap: 22px; margin-top: 20px; color: #b8c3c0; }
.club-hero-records > div, .club-hero-records > span { display: flex; align-items: baseline; gap: 6px; font-size: 9px; letter-spacing: .8px; }
.club-hero-records strong { font: 500 24px/1 var(--display); color: var(--paper); letter-spacing: .4px; }
.club-view-name { position: absolute; bottom: 25px; right: 27px; color: #ebeded; text-align: right; font-size: 10px; font-weight: 600; line-height: 1.7; letter-spacing: 2px; }
.club-view-name strong { display: block; font-family: var(--font); font-size: 25px; font-weight: 700; letter-spacing: 1px; }
.club-hero.is-compact { min-height: 234px; }
.club-hero.is-compact .club-hero-content { padding-block: 26px; }
.club-hero.is-compact .club-hero-heading { font-size: clamp(58px, 5.7vw, 74px); }
.club-hero.is-compact .club-hero-records { margin-top: 14px; }
.club-hero.is-compact .club-kicker { margin-bottom: 10px; }
.club-hero.is-compact .club-hero-stage { margin-top: 14px; }
.club-hero.is-compact .club-hero-note { margin-top: 10px; }

.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 18px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 5px 5px; background: #1b2123; }
.metric { min-width: 0; gap: 13px; padding: 18px 23px; }
.metric + .metric::before { background: #394243; top: 22%; bottom: 22%; }
.metric-icon { color: #859a9a; }
.metric-icon .icon { width: 22px; height: 22px; }
.metric-label { margin-bottom: 5px; color: #a9b5b3; font-size: 10px; letter-spacing: .5px; }
.metric-value { color: var(--paper); font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.7px; }
.metric-value small { margin-left: 5px; color: #9caeab; font-size: 10px; letter-spacing: 0; }
.career-strip { margin-bottom: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 18px; color: #a3b0ae; font-size: 11px; }
.career-strip span, .career-strip button { font-size: 11px; }
.career-strip strong { color: var(--paper); }
.career-strip button { min-height: 36px; color: #b8c9c4; }
.season-badge { color: #c1ccc8; font-size: 10px; border: 1px solid #4d5a58; background: #222a2c; border-radius: 3px; padding: 5px 8px; }
.section-head { margin-bottom: 18px; align-items: center; gap: 15px; }
.section-head .upper { font-size: 10px; margin-bottom: 7px; color: #8da3a1; }
.section-head h2 { color: var(--paper); font-size: 20px; line-height: 1.5; font-weight: 700; letter-spacing: -.4px; }
.section-head h3 { color: var(--paper); }

/* Preparation is the primary task, presented as a light coach's desk. */
.preparation-layout { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 24px; align-items: start; }
.prep-main { display: flex; flex-direction: column; gap: 0; }
.training-command { position: relative; padding: 24px; margin-bottom: 28px; color: var(--ink); background: var(--paper); border: 0; border-radius: 6px; box-shadow: 0 8px 30px #00000012; }
.training-command::before { content: ""; position: absolute; top: 0; left: 24px; width: 54px; height: 4px; background: var(--signal); }
.training-command .section-head { margin-bottom: 9px; }
.training-command .section-head h2 { color: #202526; font-size: 22px; letter-spacing: -.5px; }
.training-command .section-head .upper { color: #6a7470; font-size: 9px; letter-spacing: 1.5px; }
.training-command .training-hint { color: #626b67; font-size: 12px; line-height: 1.8; margin: 7px 0 17px; }
.action-counter { display: flex; flex-shrink: 0; align-items: center; gap: 5px; color: #56645e; font-size: 11px; }
.action-counter i { width: 7px; height: 18px; border-radius: 1px; background: var(--signal); }
.action-counter i.used { background: #c9d0d1; }
.prep-readiness { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 12px 0; margin: 0 0 17px; border-top: 1px solid #ccd2d3; border-bottom: 1px solid #ccd2d3; }
.readiness-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 1px 7px; align-items: center; min-width: 0; padding: 0 7px 0 0; }
.readiness-index { align-self: center; color: #a3a89e; font: 500 20px/1.2 var(--display); }
.readiness-index .icon { display: block; width: 20px; height: 20px; }
.readiness-step > div { min-width: 0; }
.readiness-step strong, .readiness-step small { display: block; }
.readiness-step strong { color: #353e40; font-size: 11px; line-height: 1.5; }
.readiness-step small { color: #a44532; font-size: 10px; line-height: 1.5; }
.readiness-step.done .readiness-index { color: #5e8278; }
.readiness-step.done small { color: #5a7168; }
.train-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.train-btn { min-width: 0; min-height: 94px; padding: 16px 14px; gap: 11px; border: 1px solid #c8cecf; border-radius: 4px; background: #f9f6ee; color: #202526; box-shadow: 0 2px 0 #12161704; transition: background-color .15s, border-color .15s, transform .15s; }
.train-btn:hover:not(:disabled) { background: #fffdf7; border-color: #f24d3b; box-shadow: 0 2px 0 #f24d3b; transform: translateY(-1px); }
.train-btn:focus-visible { outline-color: #d23b2c; }
.train-btn:disabled { background: #e3e2d9; border-color: #c9d0d1; color: #737a70; opacity: .72; }
.train-btn > span:nth-child(2) { min-width: 0; }
.train-icon, .train-btn:nth-child(2) .train-icon, .train-btn:nth-child(3) .train-icon, .train-btn:nth-child(4) .train-icon { width: 36px; height: 42px; background: none; border: 0; border-radius: 0; color: #4b585b; }
.train-icon .icon { width: 25px; height: 25px; }
.train-btn:first-child .train-icon { color: #da4837; }
.train-name { color: #202526; font-size: 13px; font-weight: 700; line-height: 1.55; }
.train-meta { display: block; margin-top: 5px; color: #69746a; font-size: 11px; line-height: 1.5; }
.train-arrow { margin-left: auto; color: #8a9589; }
.train-arrow .icon { width: 16px; height: 16px; }
.development-note { font-size: 11px; color: #869795; line-height: 1.8; }
.training-command .development-note { margin: 15px 0 0; color: #68766c; font-size: 11px; }
.training-log { gap: 8px; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid #cad0d1; color: #6b786f; font-size: 11px; line-height: 1.8; }
.training-log .icon { color: #627478; width: 15px; height: 15px; }
.lineup-section .section-head { margin-bottom: 15px; }
.chemistry { padding: 7px 9px; border: 1px solid #3f5350; border-radius: 3px; background: #25322e; color: #abc5bb; font-size: 10px; }
.chemistry strong { color: #d9dedf; font-size: 17px; }

/* Player identity, rather than rows of indistinguishable cards. */
.roster, .roster.lineup-grid, .squad-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; gap: 13px; overflow: visible; scroll-snap-type: none; padding: 0; margin-bottom: 18px; }
.player-card, .squad-roster .player-card { min-width: 0; width: 100%; max-width: none; border: 1px solid #3e4849; border-radius: 5px; background: #1a2023; overflow: hidden; }
.player-art { position: relative; height: 196px; border-bottom: 1px solid #43504e; background: radial-gradient(ellipse at 50% 85%, #4a5d5b 0%, #263236 49%, #192024 85%); }
.player-art::before { opacity: .1; }
.player-art::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, #131b2082); pointer-events: none; }
.lineup-grid .player-art { height: 155px; }
.player-number { top: 11px; left: 13px; font-family: var(--display); font-size: 51px; line-height: 1; font-weight: 500; color: #dee2e226; letter-spacing: -2px; }
.player-tag { top: 12px; right: 10px; color: #d9dedf; background: #12201d7d; border: 1px solid #a3b1b454; padding: 3px 5px; border-radius: 2px; font-size: 8px; line-height: 1.4; letter-spacing: 1px; }
.portrait-wrap, .portrait-wrap > span { height: 100%; width: 100%; }
.player-body { padding: 16px; }
.player-ident { align-items: flex-start; gap: 6px; }
.player-name, .career-scout-grid .player-name { color: #f2eee4; font: 500 31px/.97 var(--display); letter-spacing: .4px; }
.player-role, .career-scout-grid .player-role { margin-top: 7px; color: #a9b7b3; font-size: 11px; line-height: 1.6; }
.ovr { color: var(--paper); font-size: 27px; line-height: 1; font-weight: 700; }
.ovr small { color: #90a5a0; font-size: 8px; letter-spacing: 1px; margin-top: 5px; }
.player-potential { margin: 12px 0; padding: 7px 0; color: #90a5a0; font-size: 10px; border-top: 1px solid #34403e; border-bottom: 1px solid #34403e; }
.player-potential b { color: #d2d7d8; font-size: 12px; }
.stat-row { grid-template-columns: 44px minmax(0, 1fr) 23px; gap: 8px; margin: 8px 0; font-size: 11px; }
.stat-row label { color: #a5b3b6; }
.stat-row strong { font-size: 12px; color: #dadfe0; }
.stat-track { height: 4px; background: #35443f; border-radius: 1px; }
.stat-track span { border-radius: 1px; opacity: 1; background: #a4b2b5; }
.energy { padding-top: 11px; margin-top: 12px; border-color: #34403e; font-size: 10px; color: #9cafaa; }
.energy strong { font-size: 11px; color: #d2d8d9; }
.energy-dots { gap: 3px; }
.energy-dots i { background: #353e40; height: 6px; border-radius: 1px; }
.energy-dots i.filled { background: #a4b2b4; }
.energy.low, .energy.low strong { color: #ffa185; }
.energy.low .energy-dots i.filled { background: #f0765c; }
.assigned-legend, .squad-roster .assigned-legend { min-height: 50px; padding: 9px 8px; gap: 8px; margin-top: 14px; border: 1px solid #44534f; border-radius: 3px; background: #27322e; color: #d9ddde; }
.assigned-legend:hover:not(:disabled) { border-color: #829599; background: #364042; }
.assigned-legend small { color: #8d9ea1; font-size: 8px; line-height: 1.4; letter-spacing: 1px; }
.assigned-legend strong, .squad-roster .assigned-legend strong { font-size: 11px; line-height: 1.6; }
.assigned-legend > .icon, .squad-roster .assigned-legend > .icon { display: block; width: 14px; height: 14px; color: #a5b2b5; }
.legend-emblem { width: 25px; height: 25px; }
.assigned-legend.banned { background: #442b25; border-color: #cf705b; }
.assigned-legend.banned small, .assigned-legend.banned strong { color: #ffae95; }
.composition-note { margin-bottom: 15px; padding: 10px 12px; gap: 8px; background: #192023; border: 1px solid #34413f; border-radius: 3px; color: #9cadab; font-size: 11px; }
.composition-note b { color: #cfd5d6; }
.composition-note > button { margin-left: auto; flex-shrink: 0; width: 44px; min-height: 44px; color: #adb7b9; }
.bench-preview { margin: 0 0 26px; padding: 14px 0; border-top: 1px solid #34413f; border-bottom: 1px solid #34413f; border-radius: 0; background: transparent; gap: 10px; color: #a9b5b0; }
.bench-preview > div { min-width: 0; font-size: 11px; }
.bench-preview > button { min-height: 44px; font-size: 11px; color: #f9977c; }
.member-actions { margin-top: 14px; gap: 8px; }
.member-actions .outline-button { font-size: 11px; }
.release-link { min-height: 44px; font-size: 11px; color: #c69585; }
.roster-hint, .squad-note { color: #a2b1ad; font-size: 12px; line-height: 1.9; }
.empty-roster, .empty-history { padding: 30px; color: #a9b8b2; background: #1a2224; border: 1px dashed #4a5b54; border-radius: 5px; font-size: 13px; }
.empty-roster-slot { min-width: 0; min-height: 180px; padding: 24px; border: 1px dashed #536266; border-radius: 5px; background: #182023; color: #a8b8b9; }
.empty-roster-slot strong { color: #d3dfdc; font-size: 14px; }
.empty-roster-slot span { color: #96abad; font-size: 12px; }
.empty-roster-slot:hover { background: #222e31; border-color: #a2b8b8; }

/* Next drop, strategy and recruitment use the same physical controls. */
.side-panels { display: flex; flex-direction: column; gap: 18px; }
.panel { border: 1px solid #3c4747; border-radius: 6px; background: #1b2225; }
.training-command.panel { background: var(--paper); border: 0; }
.next-match, .br-next { display: block; overflow: hidden; }
.match-top, .br-next .match-top { padding: 22px 20px 18px; background: #20282a; }
.panel-eyebrow { color: #a8b7b1; font-size: 10px; letter-spacing: 1.8px; }
.live-pill { padding: 4px 7px; border: 1px solid #64756e; border-radius: 2px; color: #b9c1c3; background: #182620; font-size: 8px; letter-spacing: .6px; }
.match-top h3 { color: var(--paper); font: 500 38px/1.1 var(--display); letter-spacing: -.3px; margin-top: 14px; }
.match-top h3 > span { color: #95a4a7; font: 500 10px/1.7 var(--font); letter-spacing: .7px; }
.next-stage-label { color: #a5b2b5; font-size: 11px; margin-top: 10px; }
.tactical-preview { aspect-ratio: 720 / 385; border-bottom: 1px solid #3d484a; background: #182522; }
.map-preview-caption { padding: 11px 14px; background: linear-gradient(transparent, #101b1de8); }
.map-preview-caption strong { font-family: var(--display); font-size: 22px; line-height: 1.15; font-weight: 500; letter-spacing: .8px; color: #e2e5e6; }
.map-preview-caption span { color: #b8c0c2; font-size: 10px; }
.series-mini { padding: 16px 20px 11px; gap: 8px; }
.series-mini > div > span { color: #9baeaa; font-size: 10px; }
.series-mini strong { color: #e4e7e7; font-size: 24px; line-height: 1.3; }
.series-mini strong small { font-size: 9px; color: #9dabae; }
.score-rule { color: #8fa0a3; font-size: 10px; padding: 0 20px 15px; }
.br-next .tactics-box { padding: 17px 20px 12px; border-color: #3a4744; }
.tactics-title { color: #dadfe0; font-size: 12px; }
.tactics-title span { color: #8e9fa3; font-size: 10px; }
.tactic-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.tactic-btn { min-height: 48px; border: 1px solid #455254; border-radius: 3px; color: #9aa9ac; background: #222829; font-size: 11px; padding: 9px 4px; }
.tactic-btn .icon { width: 15px; height: 15px; }
.tactic-btn.active { border-color: #ee7c64; color: #ffc5ad; background: #5c3429; }
.tactic-feedback { margin-top: 12px; color: #a8b5b7; font-size: 11px; line-height: 1.9; }
.play-wrap { padding: 13px 20px 19px; }
.primary, .scout-card .primary, .career-scout-grid .primary { min-height: 48px; border: 1px solid transparent; border-radius: 4px; background: var(--action); color: #fff7ea; padding: 12px 17px; font-size: 13px; font-weight: 700; letter-spacing: .2px; box-shadow: none; }
.primary:not(:disabled):hover, .scout-card .primary:not(:disabled):hover { background: var(--action-hover); color: #fffaf0; box-shadow: 0 3px 16px #f24d3b25; }
.primary:disabled, .scout-card .primary:disabled { opacity: 1; background: #39413d; border-color: #485153; color: #96a2a4; cursor: not-allowed; }
.primary .icon { width: 18px; height: 18px; }
.play-note { color: #8fa0a3; font-size: 10px; margin-top: 10px; }
.outline-button { min-height: 44px; padding: 10px 13px; border: 1px solid #4b585b; border-radius: 4px; background: transparent; color: #c4cbcc; font-size: 12px; line-height: 1.65; }
.outline-button:not(:disabled):hover { border-color: #8fa0a3; background: #2a3234; color: #e8ebeb; }
.outline-button:disabled { color: #818e82; border-color: #3a4548; opacity: .65; }
.text-button { min-height: 44px; color: #ffa58c; font-size: 12px; }
.facilities { padding: 20px; border: 1px solid #35443e; border-radius: 5px; background: #17221e; }
.facility-header { color: #cdd3d4; font-size: 12px; }
.facility-header .icon { color: #9baaad; }
.facility-header > span { font-size: 10px; color: #adb7b9; }
.facility-levels { gap: 5px; margin: 18px 0 13px; }
.facility-levels i { height: 5px; border-radius: 1px; background: #384244; }
.facility-levels i.active { background: #9faeb1; }
.facilities p { color: #93a3a6; font-size: 11px; line-height: 1.9; }
.facility-button { margin-top: 14px; padding: 11px; font-size: 10px; gap: 5px; }
.facility-button strong { color: #d3d9da; font-size: 11px; white-space: nowrap; }

/* Competition status remains explicit, including missed routes and locked rosters. */
.world-progress { margin: 0 0 24px; padding: 22px; border: 1px solid #3e5352; border-left: 3px solid #78a8ac; border-radius: 0 5px 5px 0; background: linear-gradient(110deg, #243335, #192226 70%); }
.world-progress.compact { padding: 15px 19px; }
.world-progress .upper { color: #8fabad; font-size: 9px; letter-spacing: 1.7px; }
.world-progress h2 { color: #dfe2e3; font-size: 17px; line-height: 1.55; }
.world-summary { color: #aabfbc; font-size: 12px; line-height: 1.85; margin-top: 9px; }
.world-progress.compact .text-button { min-height: 36px; margin-top: 5px; color: #afdae0; font-size: 11px; }
.world-status { padding: 5px 8px; border: 1px solid #6f8084; background: #46535629; color: #c5ccce; border-radius: 3px; font-size: 10px; }
.world-status.qualified, .world-status.competing { border-color: #74b8b1; color: #b8e5d9; background: #36645940; }
.world-status.missed { color: #ffc0a4; border-color: #b4735b; background: #7b3c2840; }
.world-next { font-size: 11px; color: #9dafab; border-color: #3c5350; }
.world-next strong { color: #d3d9da; }
.world-routes, .world-route + .world-route, .world-player-details { border-color: #3c5350; }
.world-route-heading h3 { color: #c6e3da; font-size: 14px; }
.world-route-heading h3 span { font-size: 11px; color: #9fbbb3; }
.world-metrics dt { font-size: 11px; color: #9bb6ac; }
.world-metrics dd { color: #e4e7e8; font-size: 30px; letter-spacing: -.5px; }
.world-metrics dd small { color: #a3b1b3; font-size: 10px; }
.world-route-reason { color: #b3bcbe; font-size: 12px; }
.world-lcq { border-left-color: #a2b0b2; background: #3a454829; padding: 13px 15px; }
.world-lcq strong { color: #d1d7d8; font-size: 12px; }
.world-lcq > div > span, .world-lcq > span, .world-lcq p { color: #a8b5b7; font-size: 11px; }
.world-player-details summary { color: #d1d6d7; font-size: 12px; min-height: 44px; }
.world-player-details summary span { color: #a4b2b5; font-size: 11px; }
.world-missed { padding: 16px; border: 1px solid #8b655047; background: #633a282e; border-radius: 3px; }
.world-missed h3, .world-missed strong { color: #e6b59a; font-size: 12px; }
.world-missed p { font-size: 12px; color: #bfa394; }
.world-missed p span { color: #bfa394; }
.competition-details { margin: 0 0 22px; border-top: 1px solid #384846; border-bottom: 1px solid #384846; border-radius: 0; }
.competition-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; padding: 10px 3px; color: #b3bcbd; font-size: 12px; cursor: pointer; list-style: none; }
.competition-details > summary::-webkit-details-marker { display: none; }
.competition-details > summary::after { content: "+"; flex-shrink: 0; font: 500 24px/1 var(--font); color: #8caa9e; }
.competition-details[open] > summary::after { content: "−"; }
.competition-details .competition-brief { margin: 0 0 16px; }
.competition-brief { padding: 20px; margin: 0 0 24px; border-left: 3px solid #f0785e; background: #211f1d; border-radius: 0 5px 5px 0; }
.competition-heading .upper { color: #b2a69a; font-size: 9px; }
.competition-heading h2 { color: #eee5d6; font-size: 20px; }
.competition-heading p { color: #b7afa1; font-size: 12px; }
.competition-heading .text-button { min-height: 44px; color: #ffab87; font-size: 11px; }
.rules-chip { color: #f5ac88; border-color: #91684c; font-size: 8px; }
.qualification-target { color: #d5c2a5; font-size: 12px; border-color: #5d4b3c; }
.qualification-target .icon { width: 16px; height: 16px; }
.quiet-note, .registration-reason { color: #a6b4b7; font-size: 12px; line-height: 1.85; }
.rule-exception { color: #ddb48b; font-size: 12px; }
.seed-restriction { border-color: #4c5b5e; font-size: 12px; }
.ban-panel, .draft-panel, .registration-panel { padding: 20px; border: 1px solid #3c4749; border-radius: 5px; background: #1a2420; }
.ban-panel.compact { padding: 16px; }
.side-panels .draft-panel { margin-bottom: 0; }
.ban-panel .upper, .draft-panel .upper, .registration-panel .upper { color: #96a6a9; font-size: 9px; letter-spacing: 1.5px; }
.ban-panel h3, .draft-panel h3, .registration-panel h3 { color: #d5d9da; font-size: 14px; }
.ban-count { color: #e3b89a; border-color: #8c6e50; background: #664c291f; font-size: 9px; padding: 4px 7px; }
.ban-chips { gap: 7px; }
.ban-chips > span { color: #edbaa4; border-color: #805a49; background: #52352c70; font-size: 11px; padding: 5px 8px; }
.ban-actions .outline-button { min-height: 44px; font-size: 11px; }
.ban-action-copy { color: #eab29b; font-size: 12px; }
.needs-action { border-color: #d3815e; background: linear-gradient(120deg, #4b302740, #1e2425); }
.micro-details { border-color: #3b4649; font-size: 11px; }
.micro-details summary { min-height: 36px; color: #a9b6b9; cursor: pointer; }
.micro-details p { color: #a1afb2; font-size: 11px; line-height: 1.9; }
.registration-status { padding: 6px 9px; font-size: 10px; border-color: #5c907c; color: #c3cacb; }
.registration-status.locked { border-color: #8a7b52; color: #d8c58b; }
.registered-players > span { border-color: #465355; background: #2c3435; font-size: 13px; padding: 10px 13px; }
.registered-players small { color: #9aaaad; font-size: 10px; }
.registered-players i { background: #a8b5b7; }
.reserve-choices > span { color: #aab7b9; font-size: 12px; }
.reserve-choices button { font-size: 12px; min-height: 44px; }
.reserve-choices button.selected { color: #e1e2bc; border-color: #85989c; background: #3a454844; }
.player-points { border-color: #3e4a4c; }
.player-points summary { min-height: 44px; color: #c2c9ca; font-size: 12px; }
.map-pool-label { color: #99a9ac; font-size: 10px; border-color: #404c4e; }
.own-pois > div { border-color: #414d50; padding: 8px 0; }
.own-pois span { color: #9dacaf; font-size: 11px; }
.own-pois strong { color: #cad0d2; font-size: 11px; }
.draft-panel > .primary, .draft-panel > .outline-button { font-size: 12px; }
.draft-panel.compact h3 { font-size: 14px; }
.next-stage-card, .complete-banner { padding: 25px; border: 1px solid #a66d52; border-radius: 5px; background: linear-gradient(110deg, #493325, #222623); }
.next-stage-card .upper, .complete-banner .upper { color: #d1ae89; font-size: 10px; }
.next-stage-card h3, .complete-banner h2 { color: #f0dfba; font-size: 23px; }
.next-stage-card p, .complete-banner p { color: #bcb59f; font-size: 12px; }
.next-stage-card > .primary { font-size: 12px; min-width: 190px; }
.ongoing-series { color: #a9b6b8; border-color: #4d5c5f; border-radius: 4px; font-size: 12px; }
.roadmap { gap: 9px; }
.roadmap span { color: #a3b1b3; border-color: #3f4b4e; background: #222829; font-size: 10px; padding: 12px 8px; }
.career-next { padding: 23px 20px; background: #212728; }
.career-next h3 { color: #e5e4c5; font-size: 21px; }
.career-next p { color: #a2b0b3; font-size: 12px; line-height: 1.9; }
.career-next .primary, .career-next .outline-button { margin-top: 12px; font-size: 12px; }
.mp-progress { padding: 15px 20px; border-color: #465356; background: #2a323429; }
.mp-progress strong { color: #b4bcbe; font-size: 10px; }
.mp-progress span, .mp-progress p { color: #96a6aa; font-size: 11px; }
.mp-track { background: #363f41; border-radius: 1px; }
.mp-track i { border-radius: 1px; background: #9baaad; }
.mp-progress.eligible { border-color: #bb9c54; background: #68541e28; }

/* League tables are useful data surfaces, with local horizontal scroll only. */
.scoreboard-scroll { max-width: 100%; min-width: 0; border-color: #414d4f; border-radius: 4px; background: #1c2223; scrollbar-color: #5e6f73 #1c2223; }
.scoreboard { font-size: 12px; }
.scoreboard thead, .season-standings .scoreboard thead { background: #2b3334; color: #aab7ba; }
.scoreboard thead th { padding: 13px 17px; font-size: 10px; letter-spacing: .4px; }
.scoreboard tbody td, .scoreboard tbody th { padding: 12px 17px; border-color: #353f41; }
.scoreboard tbody th { color: #ced4d5; }
.scoreboard .table-rank { color: #92a2a5; font-size: 13px; }
.scoreboard .table-points { font-size: 18px; }
.scoreboard tr.own-team { background: #573d2860 !important; box-shadow: inset 3px 0 var(--signal); }
.scoreboard tr.own-team th, .scoreboard tr.own-team td { color: #f2d2a7; }
.scoreboard tbody small { color: #dfc48d; border-color: #9e85524d; background: #6a512b3b; font-size: 8px; }
.cp-scoreboard .earned-points { color: #9baaad; }
.standings-scope { color: #9aa9ac; font-size: 12px; }
.standings-more { border-color: #404c4e; }
.standings-more summary { min-height: 44px; color: #b6bec0; font-size: 12px; }
.history-section { margin-top: 32px; }
.honor-card { border-color: #414d50; border-radius: 4px; background: #202527; }
.honor-card h3 { color: #bec6c7; }
.honor-card p, .history-section > .section-head > .muted { color: #9cabae; font-size: 11px; }
.match-history { border-color: #424e50; border-radius: 4px; background: #1c2223; }
.match-history > summary { min-height: 46px; color: #b2bbbd; font-size: 12px; }

/* Scout dossiers contrast the dark club and its existing player art. */
.scout-toolbar { margin: 0 0 20px; gap: 22px; }
.scout-toolbar p { max-width: 760px; color: #a6b3b6; font-size: 12px; line-height: 1.9; }
.scout-toolbar .outline-button { min-height: 44px; color: #f1b78c; border-color: #926449; font-size: 12px; }
.info-banner { align-items: center; gap: 12px; padding: 14px 17px; border: 1px solid #424e50; border-radius: 4px; background: #23292a; color: #b2bbbc; font-size: 12px; line-height: 1.9; }
.info-banner .icon { color: #a2b0b3; }
.career-scout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: none; margin-top: 23px; }
.scout-card { border: 1px solid #bdc5c6; border-radius: 5px; background: var(--paper); }
.career-scout-grid .scout-art { height: 245px; background: radial-gradient(ellipse at 50% 90%, #546366, #253632 70%); border-bottom: 1px solid #c1c8ca; }
.potential-badge { top: 16px; left: 16px; background: #141819b8; border: 1px solid #7e929656; color: #b4bcbe; border-radius: 2px; padding: 8px 10px; font-size: 8px; letter-spacing: 1.3px; }
.potential-badge strong { font-family: var(--display); font-size: 40px; line-height: 1.05; font-weight: 500; color: #d4d9da; margin-top: 5px; }
.career-scout-grid .scout-body { padding: 22px; color: #262d2f; background: var(--paper); }
.career-scout-grid .scout-body .player-name { color: #242a2b; font-size: 37px; }
.career-scout-grid .scout-body .player-role { color: #5d6e72; font-size: 12px; }
.scout-body .ovr { color: #30393a; font-size: 32px; }
.scout-body .ovr small { color: #6c8185; }
.career-scout-grid .scout-description { color: #64767a; font-size: 12px; min-height: 46px; margin: 15px 0; line-height: 1.8; }
.career-scout-grid .scout-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 0; border-top: 1px solid #c3cacb; border-bottom: 1px solid #c3cacb; margin: 14px 0 19px; }
.scout-stats > div { color: #65777b; font-size: 11px; }
.scout-stats strong { color: #343d3f; font-size: 25px; font-weight: 700; }
.career-scout-grid .primary { font-size: 12px; }
.career-scout-grid .primary:disabled { background: #cad0d2; border-color: #bbc3c4; color: #677a7e; }
.scout-note { color: #93a4a7; font-size: 12px; line-height: 1.9; margin-top: 19px; }

/* Dialogs are readable tactical overlays, not a separate design language. */
dialog { color: var(--paper); border: 1px solid #617073; border-radius: 6px; background: #1c2122; box-shadow: 0 24px 100px #000a; max-height: min(90dvh, 1000px); }
dialog::backdrop { background: #080f0ddb; backdrop-filter: blur(6px); }
.modal-pad { padding: 29px; }
.modal-head { gap: 16px; margin-bottom: 21px; }
.modal-head h2 { color: #e4e7e8; font-size: 23px; line-height: 1.5; }
.modal-head .upper { color: #9baaad; font-size: 10px; }
.modal-close { width: 44px; height: 44px; min-width: 44px; border: 1px solid #515f62; border-radius: 4px; background: #262d2f; color: #c3cacb; }
.modal-close:hover { background: #353e40; }
.modal-copy { color: #adb7b9; font-size: 13px; line-height: 1.95; }
.modal-buttons { gap: 10px; }
.legend-filters { gap: 7px; }
.legend-filters > button { min-height: 44px; padding: 8px 12px; border: 1px solid #465356; border-radius: 3px; background: #242b2d; color: #b3bcbe; font-size: 11px; }
.legend-filters > button.active { border-color: #dc9670; background: #573b2c; color: #f1c29c; }
.legend-choice { min-width: 0; min-height: 98px; padding: 15px; gap: 12px; border: 1px solid #445052; border-radius: 4px; background: #242b2d; }
.legend-choice:hover:not(:disabled) { background: #323b3d; border-color: #91a2a5; }
.legend-choice.selected { border-color: #e69b72; background: #523b2b; }
.legend-choice-icon { background: #191e1f; border-color: #485558; border-radius: 3px; }
.legend-choice-copy > strong { color: #d5dadb; font-size: 14px; }
.legend-choice-copy > small { color: #a1afb2; font-size: 10px; }
.legend-choice-copy > span, .legend-choice-copy p { color: #9faeb1; font-size: 11px; line-height: 1.8; }
.legend-choice-copy > em { font-size: 10px; color: #daa389; }
.draft-instructions { border-color: #8c7650; background: #5b49262e; padding: 17px; }
.draft-instructions > strong { color: #ead2a5; font-size: 18px; }
.draft-instructions > p { color: #bfb497; font-size: 12px; }
.draft-clock { color: #efb87c; }
.draft-clock b { font-size: 30px; }
.draft-clock span { font-size: 10px; }
.poi-options h3 { color: #c2c9ca; font-size: 14px; }
.poi-option { min-height: 47px; padding: 10px; border-color: #485557; border-radius: 3px; background: #242b2d; color: #b4bdbf; font-size: 11px; }
.poi-option:hover { background: #353f41; border-color: #c0b375; }
.poi-option .icon { color: #c3c082; width: 15px; height: 15px; }
.draft-picks { border-color: #434f52; }
.draft-picks summary { min-height: 44px; font-size: 12px; color: #b1babb; }
.draft-picks > div > div { border-color: #3a4547; font-size: 11px; }
.draft-picks b, .draft-picks strong, .draft-picks span { font-size: 11px; }
.draft-picks span { color: #96a6aa; }
.draft-picks strong { color: #a8b5b8; }
.draft-picks .own-pick { background: #78513329; }
.rule-sections > section { border-color: #414d50; }
.rule-sections h3 { color: #c2c9ca; font-size: 16px; }
.rule-sections p { color: #a6b4b7; font-size: 12px; line-height: 2; }
.placement-grid > span { border-color: #4b595b; background: #2a3233; border-radius: 3px; }
.placement-grid small { color: #9cabae; font-size: 10px; }
.placement-grid b { color: #bdc5c7; font-size: 20px; }
.help-step > span { border-color: #4d5b5e; background: #293133; color: #b7bfc1; border-radius: 3px; }
.help-step h3 { color: #d1d6d7; font-size: 14px; }
.help-step p, .help-small, .about-game p { color: #a2b0b3; font-size: 12px; line-height: 1.9; }
.about-game { border-color: #455255; }
.about-game summary { min-height: 44px; font-size: 12px; color: #bbc3c5; }
.br-match-heading h2 { color: #dce0e1; font-family: var(--display); font-size: 32px; font-weight: 500; }
.br-match-heading h2 span { color: #9fadb0; font-family: var(--font); font-size: 12px; }
.br-live-stats { border-color: #4a585b; background: #262d2e; }
.br-live-stats span { color: #9eacaf; font-size: 11px; }
.br-live-stats strong { color: #d0d5d6; font-size: 30px; }
.br-arena { border-color: #465356; border-radius: 4px; }
.br-commentary { color: #c5ccce; font-size: 13px; line-height: 1.9; }
.skip-button { min-height: 44px; color: #afb8ba; font-size: 12px; }
.br-verdict { padding: 22px 10px; border-color: #49575a; background: #293133; }
.br-verdict > span { color: #9aaaad; font-size: 10px; letter-spacing: 2px; }
.br-verdict strong { color: #d5d9da; font-family: var(--display); font-size: 72px; font-weight: 500; }
.br-verdict strong small { color: #93a3a6; font-family: var(--font); font-size: 11px; }
.br-verdict.champion { background: linear-gradient(120deg, #715a22, #282f31); border-color: #a99c54; }
.br-verdict.champion strong { color: #f0e6af; font-size: 50px; }
.br-result-stats { border-color: #424e50; }
.br-result-stats span { color: #9fadb0; font-size: 11px; }
.br-result-stats strong { color: #ced3d4; font-size: 29px; }
.br-result-stats .result-total strong { color: #edbd88; }
.result-standing { background: #2e3739; color: #a9b6b9; padding: 14px 16px; font-size: 12px; }
.result-standing b, .result-standing > strong { color: #dddda7; }
.rewards { gap: 10px; }
.reward { color: #98a8ab; font-size: 11px; }
.reward strong { color: #c9cfd0; font-size: 14px; }
.mp-result { color: #b9c1c2; border-color: #58696c; font-size: 12px; line-height: 1.9; }
.mp-result.eligible { color: #e5cd93; border-color: #a3914e; }
.result-details .scoreboard { font-size: 11px; }
.result-details .scoreboard th, .result-details .scoreboard td { padding: 10px 11px; }
.ending-copy, .carryover-note { color: #a7b4b7; font-size: 12px; line-height: 1.9; }
.algs-ending h2 { color: #e6e7ba; font-size: 29px; }
.ending-stats { background: #272e2f; border-color: #455254; }
.ending-stats > div { color: #9eacaf; font-size: 11px; }
.ending-stats b { color: #cad0d1; font-size: 23px; }
.ending-award { color: #e7bd83; font-size: 14px; }
.algs-ending .outline-button { margin-top: 10px; }
.save-warning { padding: 15px 18px; margin-bottom: 22px; color: #edcb9a; background: #3b301e; border: 1px solid #9b7b49; border-radius: 4px; font-size: 12px; }
.save-warning.migration-notice { color: #cbd1d2; background: #262d2f; border-color: #6a7e82; }
.toast { max-width: min(520px, calc(100vw - 32px)); color: #202628; background: #e4e7e7; border: 1px solid #a3b1b3; border-radius: 5px; font-size: 12px; line-height: 1.8; box-shadow: 0 8px 40px #0005; }
.toast .icon { color: #596a6d; }
.footer { margin-top: 32px; padding-top: 21px; border-color: #3b4649; gap: 15px; color: #7e9094; font-size: 9px; letter-spacing: 1px; }
.footer-about { min-height: 44px; color: #99a8ab; font-size: 11px; }

/* A neutral charcoal instrument system: green-tinted data remains an accent only. */
.ban-panel, .draft-panel, .registration-panel, .facilities, .scoreboard-scroll,
.match-history, .honor-card, .info-banner, .legend-choice, .poi-option,
.roadmap span, .registered-players > span, dialog { background-color: #1c2426; border-color: #3c494b; }
.scoreboard thead, .season-standings .scoreboard thead, .legend-filters > button,
.placement-grid > span, .br-live-stats, .br-verdict, .ending-stats { background-color: #283235; border-color: #465558; }
.scoreboard tbody td, .scoreboard tbody th, .rule-sections > section, .draft-picks,
.draft-picks > div > div, .map-pool-label, .own-pois > div, .player-points,
.micro-details, .standings-more { border-color: #39474a; }
.quiet-note, .registration-reason, .facilities p, .map-pool-label, .own-pois span,
.scoreboard .table-rank, .cp-scoreboard .earned-points, .standings-scope,
.scout-toolbar p, .scout-note, .modal-copy, .rule-sections p, .help-step p,
.help-small, .about-game p, .ending-copy, .carryover-note, .roadmap span { color: #a5b4b3; }
.ban-panel h3, .draft-panel h3, .registration-panel h3, .registered-players > span,
.scoreboard tbody th, .rule-sections h3, .help-step h3, .legend-choice-copy > strong,
.br-result-stats strong, .br-live-stats strong, .br-verdict strong, .ending-stats b,
.poi-options h3, .own-pois strong { color: #dbdfe0; }

@media (min-width: 1600px) {
  .main { padding-inline: 42px; }
  .club-hero { min-height: 342px; }
  .club-hero-content { padding: 38px 42px; }
  .preparation-layout { grid-template-columns: minmax(0, 1fr) 345px; gap: 28px; }
}

@media (max-width: 1180px) {
  .main { padding: 23px 25px 30px; }
  .shell { grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { padding-inline: 5px; }
  .preparation-layout { grid-template-columns: minmax(0, 1fr) 294px; gap: 18px; }
  .training-command { padding: 20px; }
  .training-command .section-head h2 { font-size: 19px; }
  .train-btn { padding: 13px 10px; gap: 7px; }
  .train-icon { width: 27px; }
  .train-name { font-size: 12px; }
  .train-arrow { display: none; }
  .club-hero { min-height: 300px; }
  .club-hero-content { padding: 31px; max-width: 76%; }
  .club-hero-heading { font-size: clamp(58px, 6.5vw, 76px); }
  .metric { padding: 17px; }
  .metric-icon { display: none; }
  .metric-value { font-size: 24px; }
  .lineup-grid { gap: 9px; }
  .lineup-grid .player-art { height: 139px; }
  .lineup-grid .player-body { padding: 12px 10px; }
  .lineup-grid .player-name { font-size: 26px; }
  .lineup-grid .ovr { font-size: 24px; }
  .lineup-grid .player-role { font-size: 10px; }
  .lineup-grid .stat-row { grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 5px; font-size: 10px; }
  .lineup-grid .energy-dots { gap: 2px; }
  .lineup-grid .assigned-legend { padding: 8px 5px; gap: 5px; }
  .lineup-grid .legend-emblem { width: 20px; height: 20px; }
  .lineup-grid .assigned-legend > .icon { width: 11px; }
  .career-scout-grid .scout-body { padding: 18px; }
}

@media (max-width: 980px) and (min-width: 801px) {
  .preparation-layout { grid-template-columns: minmax(0, 1fr); }
  .side-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .side-panels .br-next { grid-row: span 2; }
  .lineup-grid .player-art { height: 173px; }
  .lineup-grid .player-body { padding: 16px; }
  .train-arrow { display: block; }
  .club-hero-content { max-width: 86%; }
  .club-view-name { display: none; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 73px; }
  .topbar { height: 65px; padding: 0 22px; }
  .shell { display: block; min-height: calc(100dvh - 65px); }
  .sidebar { display: none; }
  .main { padding: 0 22px 117px; }
  .top-actions { gap: 13px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: sticky; top: 0; z-index: 20; gap: 0; margin: 0 -22px 18px; padding: 8px 22px; border: 0; border-bottom: 1px solid #435051; border-radius: 0; background: #13191bf7; backdrop-filter: blur(10px); }
  .mobile-nav button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 45px; padding: 10px 5px; color: #a6b5b0; border-radius: 3px; font-size: 12px; font-weight: 700; background: transparent; }
  .mobile-nav .icon { display: block; width: 16px; height: 16px; margin: 0; }
  .mobile-nav button.active { color: #fff7ea; background: var(--action); }
  .club-hero { min-height: 270px; }
  .club-hero-content { padding: 29px; max-width: 86%; }
  .club-hero-heading { font-size: 68px; }
  .club-view-name { right: 20px; bottom: 18px; font-size: 9px; }
  .club-view-name strong { font-size: 22px; }
  .club-hero.is-compact { min-height: 225px; }
  .club-hero.is-compact .club-hero-heading { font-size: 63px; }
  .club-hero.is-compact .club-hero-content { padding: 24px 28px; }
  .metrics { margin-bottom: 16px; }
  .metric { padding: 16px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 23px; }
  .preparation-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .training-command { padding: 23px; margin-bottom: 27px; }
  .training-command .section-head h2 { font-size: 22px; }
  .training-command .training-hint { font-size: 12px; }
  .train-btn { padding: 16px; gap: 12px; min-height: 95px; }
  .train-name { font-size: 13px; }
  .train-meta { font-size: 11px; }
  .train-arrow { display: block; }
  .prep-readiness { margin-bottom: 19px; }
  .roster.lineup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .lineup-grid .player-art { height: 170px; }
  .lineup-grid .player-body { padding: 14px; }
  .lineup-grid .player-name { font-size: 29px; }
  .lineup-grid .stat-row { grid-template-columns: 41px minmax(0, 1fr) 20px; font-size: 11px; }
  .squad-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .squad-roster .player-art { height: 220px; }
  .side-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .side-panels > .panel, .side-panels > .draft-panel { width: 100%; }
  .side-panels > .br-next { grid-row: span 2; }
  .side-panels .draft-panel { padding: 18px; }
  .br-next .play-wrap { display: none; }
  .career-scout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career-scout-grid .scout-art { height: 230px; }
  .career-strip { flex-wrap: wrap; gap: 8px 17px; margin-bottom: 18px; }
  .mobile-play { display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 13px 22px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid #60706c; background: #151e20f7; backdrop-filter: blur(12px); box-shadow: 0 -8px 40px #0003; }
  .mobile-play-label { min-width: 0; flex: 0 1 140px; }
  .mobile-play-label .upper { font-size: 9px; color: #8ca7a5; letter-spacing: 1.4px; }
  .mobile-play-label strong { display: block; color: #d6dadb; font-size: 12px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
  .mobile-play .primary { flex: 1; min-width: 0; min-height: 49px; max-width: none; width: auto; padding: 10px 15px; font-size: 13px; }
  .toast { bottom: calc(98px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  .main { padding-inline: 17px; padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .topbar { padding-inline: 17px; }
  .brand-symbol { width: 25px; height: 29px; }
  .brand-title { font-size: 24px; }
  .brand-caption { font-size: 7px; letter-spacing: 1px; }
  .top-actions { gap: 10px; }
  .save-state { font-size: 10px; }
  .icon-button { width: 40px; height: 44px; border: 0; background: none; }
  .mobile-nav { margin-inline: -17px; padding: 7px 17px; margin-bottom: 14px; }
  .mobile-nav button { min-height: 44px; font-size: 11px; gap: 5px; }
  .mobile-nav .icon { width: 15px; height: 15px; }
  .club-hero, .club-hero.is-compact { min-height: 208px; border-radius: 4px 4px 0 0; }
  .club-hero-image { object-position: 68% 20%; }
  .club-hero-shade { background: linear-gradient(90deg, #10171bf2 0%, #10171ba3 31%, #10171b1c 78%), linear-gradient(0deg, #10171bdd, transparent 77%); }
  .club-hero-content, .club-hero.is-compact .club-hero-content { max-width: 100%; padding: 18px 18px 15px; }
  .club-kicker, .club-hero.is-compact .club-kicker { font-size: 8px; gap: 6px; letter-spacing: 1.7px; margin-bottom: 12px; }
  .club-kicker::before { width: 11px; }
  .club-hero-heading, .club-hero.is-compact .club-hero-heading { font-size: clamp(42px, 11.6vw, 62px); letter-spacing: -2px; }
  .club-hero-heading > span { margin-top: 7px; font-size: 7px; letter-spacing: 3.7px; }
  .club-kicker-mark { font-size: 7px; padding: 2px 4px; }
  .club-hero-note, .club-hero.is-compact .club-hero-note { font-size: 10px; margin-top: 8px; }
  .club-hero-stage, .club-hero.is-compact .club-hero-stage { margin-top: 10px; gap: 5px 7px; font-size: 10px; max-width: 100%; }
  .club-hero-stage > span:first-child { font-size: 7px; padding: 3px 5px; }
  .club-hero-stage strong { font-size: 10px; }
  .club-hero-stage > span:last-child { font-size: 9px; }
  .club-hero-records, .club-hero.is-compact .club-hero-records { margin-top: 11px; gap: 17px; }
  .club-hero-records > div, .club-hero-records > span { gap: 5px; font-size: 8px; }
  .club-hero-records strong { font-size: 20px; }
  .club-view-name { display: none; }
  .metrics { min-height: 75px; margin-bottom: 15px; }
  .metric { padding: 12px 9px; gap: 0; align-items: center; justify-content: center; }
  .metric-label { font-size: 9px; letter-spacing: 0; white-space: nowrap; margin-bottom: 6px; }
  .metric-value { font-size: 20px; line-height: 1.15; letter-spacing: -.8px; white-space: nowrap; }
  .metric-value small { font-size: 8px; margin-left: 3px; }
  .career-strip { padding: 7px 0; font-size: 10px; gap: 5px 12px; }
  .career-strip span, .career-strip button { font-size: 10px; }
  .career-current { width: 100%; }
  .section-head { margin-bottom: 15px; gap: 10px; }
  .section-head h2 { font-size: 17px; letter-spacing: -.4px; }
  .section-head .upper { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 6px; }
  .season-badge { flex-shrink: 0; font-size: 9px; padding: 5px 6px; }
  .training-command { padding: 19px 15px; margin-bottom: 24px; border-radius: 5px; }
  .training-command::before { left: 15px; width: 43px; }
  .training-command .section-head { flex-wrap: wrap; gap: 7px 10px; }
  .training-command .section-head h2 { font-size: 19px; }
  .training-command .section-head .upper { font-size: 8px; letter-spacing: 1.3px; }
  .training-command .training-hint { font-size: 12px; margin: 10px 0 14px; }
  .action-counter { font-size: 10px; gap: 4px; }
  .action-counter i { height: 13px; width: 6px; }
  .prep-readiness { padding: 11px 0; margin: 0 0 14px; }
  .readiness-step { grid-template-columns: 17px minmax(0, 1fr); gap: 2px 4px; padding-right: 5px; }
  .readiness-index { font-size: 17px; }
  .readiness-index .icon { width: 17px; height: 17px; }
  .readiness-step strong { font-size: 10px; }
  .readiness-step small { font-size: 9px; }
  .train-grid { gap: 8px; }
  .train-btn { position: relative; min-height: 111px; padding: 12px 10px; display: block; text-align: left; }
  .train-icon, .train-btn:nth-child(2) .train-icon, .train-btn:nth-child(3) .train-icon, .train-btn:nth-child(4) .train-icon { display: flex; align-items: center; justify-content: flex-start; width: 27px; height: 22px; margin-bottom: 8px; }
  .train-icon .icon { width: 21px; height: 21px; }
  .train-name { font-size: 12px; line-height: 1.6; }
  .train-meta { margin-top: 4px; font-size: 10px; line-height: 1.6; }
  .train-arrow { position: absolute; right: 9px; top: 15px; display: block; }
  .train-arrow .icon { width: 14px; height: 14px; }
  .training-command .development-note, .training-log { font-size: 10px; line-height: 1.9; }
  .training-log { align-items: flex-start; margin-top: 12px; padding-top: 11px; }
  .training-log .icon { margin-top: 3px; }
  .chemistry { font-size: 10px; padding: 6px 7px; }
  .chemistry .icon { display: none; }
  .chemistry strong { font-size: 15px; }
  .roster, .roster.lineup-grid, .squad-roster { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; gap: 12px; margin-inline: 0; padding: 0; }
  .player-card, .squad-roster .player-card { width: 100%; min-width: 0; }
  .lineup-grid .player-card { display: grid; grid-template-columns: minmax(0, .66fr) minmax(0, 1fr); }
  .lineup-grid .player-art { height: 100%; min-height: 258px; border-bottom: 0; border-right: 1px solid #45514e; }
  .lineup-grid .player-art .portrait-wrap { position: absolute; inset: 0; }
  .lineup-grid .player-art .portrait-wrap svg { height: 100%; width: 100%; }
  .lineup-grid .player-number { left: 9px; top: 11px; font-size: 47px; }
  .lineup-grid .player-tag { top: auto; bottom: 12px; left: 9px; right: auto; font-size: 8px; }
  .lineup-grid .player-body { padding: 15px 13px; }
  .lineup-grid .player-name { font-size: 31px; }
  .lineup-grid .player-role { font-size: 11px; margin-top: 6px; }
  .lineup-grid .ovr { font-size: 25px; }
  .lineup-grid .player-potential { margin: 9px 0; font-size: 10px; }
  .lineup-grid .stat-row { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 6px; font-size: 11px; }
  .lineup-grid .energy { margin-top: 10px; padding-top: 9px; }
  .lineup-grid .assigned-legend { min-height: 48px; padding: 7px; gap: 6px; margin-top: 11px; }
  .lineup-grid .assigned-legend strong { font-size: 11px; }
  .lineup-grid .assigned-legend small { font-size: 7px; }
  .lineup-grid .assigned-legend > .icon { width: 13px; }
  .lineup-grid .legend-emblem { width: 24px; height: 24px; }
  .squad-roster .player-art { height: 220px; }
  .squad-roster .player-body { padding: 20px; }
  .squad-roster .player-name { font-size: 37px; }
  .squad-roster .player-role { font-size: 12px; }
  .squad-roster .stat-row { grid-template-columns: 50px minmax(0, 1fr) 27px; font-size: 12px; margin: 11px 0; }
  .squad-roster .assigned-legend { padding: 10px; }
  .squad-roster .assigned-legend strong { font-size: 12px; }
  .squad-roster .assigned-legend small { font-size: 8px; }
  .composition-note { font-size: 11px; padding: 8px 10px; }
  .composition-note > .icon { display: none; }
  .bench-preview { padding: 12px 0; }
  .bench-preview > div { font-size: 11px; }
  .bench-preview > button { font-size: 11px; }
  .side-panels { display: flex; gap: 18px; }
  .side-panels .draft-panel { padding: 18px; }
  .match-top, .br-next .match-top { padding: 20px; }
  .match-top h3 { font-size: 39px; }
  .tactical-preview { aspect-ratio: 720 / 350; }
  .br-next .tactics-box { padding: 18px 20px; }
  .tactic-btn { min-height: 48px; font-size: 12px; }
  .tactic-feedback { font-size: 12px; }
  .facility-button { font-size: 12px; }
  .facility-button strong { font-size: 12px; }
  .world-progress, .world-progress.compact { padding: 14px 15px; margin-bottom: 18px; }
  .world-progress-heading { align-items: flex-start; gap: 10px; }
  .world-progress .upper { font-size: 8px; letter-spacing: 1.2px; }
  .world-progress h2 { font-size: 14px; line-height: 1.65; }
  .world-summary, .world-route-reason { font-size: 11px; line-height: 1.85; }
  .world-status { font-size: 9px; padding: 4px 7px; }
  .world-progress.compact .text-button { min-height: 36px; font-size: 11px; }
  .world-next { font-size: 11px; padding-top: 12px; }
  .world-next strong { display: block; margin: 5px 0 0; }
  .world-route-heading { align-items: flex-start; }
  .world-route-heading h3 { font-size: 13px; }
  .world-route-heading h3 span { font-size: 10px; }
  .world-metrics { gap: 9px; }
  .world-metrics dt { font-size: 10px; }
  .world-metrics dd { font-size: 25px; }
  .world-metrics dd small { display: block; font-size: 9px; margin: 3px 0 0; }
  .world-lcq { padding: 12px; }
  .world-lcq strong, .world-lcq > div > span, .world-lcq p { font-size: 11px; }
  .world-player-details summary { font-size: 11px; }
  .world-player-details summary span { display: block; font-size: 10px; margin: 5px 0 0; }
  .world-missed { padding: 13px; }
  .world-missed h3, .world-missed strong, .world-missed p { font-size: 11px; }
  .competition-details { margin-bottom: 19px; }
  .competition-details > summary { font-size: 11px; min-height: 46px; }
  .competition-brief { padding: 16px; }
  .competition-heading { flex-wrap: wrap; gap: 7px; }
  .competition-heading h2 { font-size: 16px; }
  .competition-heading p { font-size: 11px; }
  .competition-heading .upper { font-size: 8px; }
  .competition-heading > .text-button { min-height: 44px; font-size: 11px; }
  .rules-chip { display: inline-block; font-size: 7px; margin-right: 6px; }
  .qualification-target { font-size: 11px; }
  .ban-panel, .draft-panel, .registration-panel { padding: 16px; margin-bottom: 19px; }
  .ban-panel.compact { padding: 14px; }
  .ban-panel h3, .draft-panel h3, .registration-panel h3 { font-size: 13px; }
  .ban-count { font-size: 9px; }
  .ban-chips > span { font-size: 10px; }
  .ban-actions .outline-button { min-height: 44px; font-size: 11px; }
  .ban-action-copy, .quiet-note, .registration-reason { font-size: 11px; }
  .registration-panel .section-head { align-items: flex-start; flex-wrap: wrap; }
  .registration-status { font-size: 10px; }
  .registered-players > span { padding: 8px 10px; font-size: 12px; }
  .registered-players small { font-size: 9px; }
  .reserve-choices > span { font-size: 11px; }
  .reserve-choices button { font-size: 11px; }
  .micro-details, .micro-details p { font-size: 11px; }
  .player-points summary { font-size: 11px; }
  .next-stage-card { display: block; padding: 20px; }
  .next-stage-card h3, .complete-banner h2 { font-size: 20px; }
  .next-stage-card p, .complete-banner p { font-size: 12px; }
  .next-stage-card > .primary { min-height: 48px; max-width: none; width: 100%; font-size: 12px; margin-top: 17px; }
  .complete-banner { display: flex; flex-direction: column; align-items: stretch; padding: 20px; }
  .complete-banner .primary { width: 100%; max-width: none; font-size: 12px; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .roadmap span { font-size: 10px; padding: 10px 7px; }
  .ongoing-series { font-size: 11px; padding: 16px; }
  .scoreboard { min-width: 430px; font-size: 11px; }
  .scoreboard thead th { font-size: 10px; padding: 11px 12px; }
  .scoreboard tbody td, .scoreboard tbody th { padding: 12px; }
  .scoreboard .table-rank { font-size: 12px; }
  .scoreboard .table-points { font-size: 16px; }
  .scoreboard tbody small { font-size: 8px; }
  .cp-scoreboard { min-width: 520px; }
  .standings-scope, .standings-more summary { font-size: 11px; }
  .scout-toolbar { flex-direction: column; align-items: stretch; gap: 13px; }
  .scout-toolbar p { font-size: 12px; }
  .scout-toolbar .outline-button { align-self: flex-start; font-size: 12px; }
  .info-banner { font-size: 11px; padding: 13px 14px; align-items: flex-start; }
  .info-banner > .icon { margin-top: 4px; }
  .career-scout-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
  .career-scout-grid .scout-art { height: 244px; }
  .career-scout-grid .scout-body { padding: 22px; }
  .career-scout-grid .scout-body .player-name { font-size: 39px; }
  .career-scout-grid .scout-description { min-height: 0; font-size: 12px; }
  .career-scout-grid .scout-stats { gap: 13px; }
  .career-scout-grid .primary { font-size: 13px; min-height: 49px; }
  .scout-note { font-size: 11px; }
  .mobile-play { min-height: 80px; gap: 10px; padding: 12px 17px calc(12px + env(safe-area-inset-bottom)); }
  .mobile-play-label { flex-basis: 95px; }
  .mobile-play-label .upper { font-size: 8px; letter-spacing: 1.3px; }
  .mobile-play-label strong { font-size: 11px; }
  .mobile-play .primary { min-height: 51px; font-size: 12px; padding: 9px 12px; line-height: 1.65; }
  .mobile-play .primary .icon { width: 16px; height: 16px; }
  dialog, .draft-dialog, .rules-dialog, .legend-dialog, .br-dialog { width: calc(100% - 24px); max-height: 89dvh; border-radius: 5px; }
  .modal-pad, .draft-dialog .modal-pad, .rules-dialog .modal-pad { padding: 21px 17px; }
  .modal-head h2 { font-size: 20px; }
  .modal-copy { font-size: 12px; }
  .modal-buttons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .legend-grid { grid-template-columns: minmax(0, 1fr); }
  .legend-filters > button { min-height: 44px; padding: 8px 10px; font-size: 10px; }
  .legend-choice { padding: 14px; min-height: 93px; }
  .legend-choice-copy > strong { font-size: 14px; }
  .legend-choice-copy > span, .legend-choice-copy p { font-size: 11px; }
  .legend-choice-copy > small, .legend-choice-copy > em { font-size: 10px; }
  .draft-instructions { padding: 13px; }
  .draft-instructions > strong { font-size: 15px; }
  .draft-instructions > p { font-size: 11px; }
  .draft-clock b { font-size: 26px; }
  .poi-options { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .poi-options h3 { font-size: 13px; }
  .poi-option { min-height: 46px; font-size: 11px; }
  .draft-picks > div > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .draft-picks b, .draft-picks strong, .draft-picks span { font-size: 10px; }
  .draft-picks > div > div > b { grid-column: 1 / -1; }
  .rule-sections h3 { font-size: 14px; }
  .rule-sections p { font-size: 12px; line-height: 1.95; }
  .placement-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .placement-grid small { font-size: 9px; }
  .placement-grid b { font-size: 20px; }
  .br-match-heading { gap: 10px; }
  .br-match-heading h2 { font-size: 28px; }
  .br-match-heading h2 span { font-size: 10px; }
  .br-match-heading .live-pill { font-size: 7px; padding: 4px 5px; }
  .br-verdict strong { font-size: 66px; }
  .br-verdict.champion strong { font-size: 40px; }
  .br-result-stats strong { font-size: 26px; }
  .br-result-stats span { font-size: 10px; }
  .result-standing { font-size: 11px; padding: 13px; }
  .result-standing b, .result-standing > strong { font-size: 18px; }
  .result-details .scoreboard { width: 100%; min-width: 0; font-size: 10px; }
  .result-details .scoreboard td, .result-details .scoreboard th { padding: 10px 8px; }
  .reward { font-size: 10px; }
  .reward strong { font-size: 12px; }
  .algs-ending h2 { font-size: 24px; }
  .ending-stats > div { font-size: 10px; }
  .ending-stats b { font-size: 20px; }
  .save-warning { font-size: 12px; padding: 13px 15px; }
  .footer { flex-wrap: wrap; margin-top: 27px; gap: 4px 14px; font-size: 8px; line-height: 1.9; }
  .footer > span { width: 100%; }
  .footer-about { min-height: 44px; font-size: 10px; }
}

@media (max-width: 420px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 75px; padding: 13px 18px; justify-content: flex-start; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .metric:nth-child(odd)::before { display: none; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 24px; letter-spacing: -.5px; }
  .metric-value small { font-size: 10px; }
}

@media (max-width: 360px) {
  .main { padding-inline: 12px; }
  .mobile-nav { margin-inline: -12px; padding-inline: 12px; }
  .mobile-nav button { font-size: 10px; gap: 4px; }
  .mobile-nav .icon { width: 13px; height: 13px; }
  .topbar { padding-inline: 12px; }
  .wordmark { gap: 7px; }
  .save-state { font-size: 9px; }
  .top-actions { gap: 4px; }
  .club-hero-content, .club-hero.is-compact .club-hero-content { padding-inline: 14px; }
  .club-hero-heading, .club-hero.is-compact .club-hero-heading { font-size: 45px; }
  .metric { padding-inline: 13px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 22px; }
  .training-command { padding-inline: 13px; }
  .training-command .section-head h2 { font-size: 18px; }
  .train-name { font-size: 11px; }
  .lineup-grid .player-card { grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); }
  .lineup-grid .player-body { padding-inline: 10px; }
  .mobile-play { padding-inline: 12px; }
  .mobile-play-label { flex-basis: 82px; }
  .mobile-play .primary { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  button:active, .train-btn:hover:not(:disabled) { transform: none; }
}
