/* The tournament boards: compact portraits above four player stations,
   and a stage thumbnail board with one clear selected arena. All artwork is
   the game's own independent portraits/panoramas; no reference-game assets. */
#select.console-select {
 --board-ink:#070c13;--board-metal:#89959f;--board-line:#485560;
 --board-paper:#f0f0e9;--board-red:#ed463e;--board-muted:#9aa6af;
 min-height:100dvh;padding:18px clamp(12px,3vw,48px) max(14px,env(safe-area-inset-bottom));
 background:linear-gradient(153deg,#394650 0 12%,transparent 12.1% 88%,#26343f 88.1%),#080f19;
 color:var(--board-paper);overflow:auto;isolation:isolate;
}
#select.console-select[hidden]{display:none!important}
#select .select-top {
 max-width:1240px;min-height:58px;margin:0 auto 10px;padding:0 0 10px;
 border:0;border-bottom:2px solid var(--board-metal);background:none;box-shadow:none;
}
#select .select-top:before,#select .select-top:after {content:none}
#select .console-heading small {font-size:9px;letter-spacing:.18em;color:#b8c3ca}
#select .console-heading h2 {font:900 italic clamp(30px,3.8vw,48px)/.91 var(--font-display);letter-spacing:-.025em;color:var(--board-paper)}
#select .selection-body,#select.online-fighter-select .selection-body {
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 grid-template-rows:44px auto clamp(180px,27dvh,268px) 50px 16px;
 gap:10px 20px;width:100%;max-width:1240px;min-height:0;margin:0 auto;flex:0 0 auto;
}
#select .console-rule-strip {
 grid-column:1/-1;grid-row:1;min-height:44px;margin:0;padding:0 14px;
 background:#17212c;border:1px solid #67747f;border-left:5px solid var(--board-paper);
 box-shadow:none;gap:16px;flex-wrap:nowrap;
}
.menu-equipment #select .rule-entry {min-height:44px;padding:0;gap:12px;background:none;border:0;color:var(--board-paper)}
#select .rule-entry>b {font:700 19px/1 var(--font-display);letter-spacing:.035em}
#select .rule-entry>span,#select .console-rule-caption {color:#b0bcc5;font-size:9px}
#select .cpu-difficulty-quick {min-height:44px;margin-left:auto;gap:9px;font-size:9px;color:#c3ccd2;letter-spacing:.06em}
.menu-equipment #select #cpuDifficultyChoice {min-height:44px;min-width:104px;color:var(--board-paper);border:0;border-left:1px solid #53616d;background-color:transparent}
#select .roster-column,#select.online-fighter-select .roster-column {
 grid-column:1/-1;grid-row:2;display:grid;grid-template-rows:18px minmax(0,1fr);min-width:0;min-height:0;padding:0;border:0;background:none;
}
#select .roster-head {height:18px;margin:0;padding:0 2px;font:700 9px/1 var(--font-ui);color:#aebac4;letter-spacing:.13em}
#select .roster-head>span:last-child {color:#b1bdc7}
#select .roster,#select .roster.expanded-roster {
 display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(3,minmax(76px,1fr));
 grid-auto-rows:minmax(76px,1fr);gap:4px;height:clamp(242px,38dvh,390px);min-height:0;
 padding:3px;background:none;border:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
 scroll-padding:3px;scrollbar-width:thin;scrollbar-color:#84929f #0b121c;
}
#select .fighter-card,#select .expanded-roster .fighter-card {
 position:relative;min-width:0;min-height:44px;height:auto;padding:0;overflow:hidden;
 border:1px solid #a1acb4;border-radius:2px;background:#19232e;
 box-shadow:inset 0 0 0 2px #101720;clip-path:none;transform:none;isolation:isolate;
}
#select .fighter-art-crop {position:absolute;inset:3px 3px 24px;height:auto;background:#465460;overflow:hidden}
#select .fighter-art-crop:after {content:none}
#select .fighter-art-crop .card-portrait {display:block;width:100%;height:100%;transform:none;filter:none;transition:none}
#select .fighter-name,#select .expanded-roster .fighter-name {
 position:absolute;left:3px;right:3px;bottom:3px;z-index:2;display:flex;align-items:center;justify-content:center;
 height:21px;min-height:0;padding:2px;color:#f7f5ed;background:#0b0e13;border:0;
 font:700 clamp(10px,1.2vw,16px)/1 var(--font-display);letter-spacing:.02em;white-space:nowrap;text-shadow:none;
}
#select .fighter-type {display:none}
#select .fighter-card:after {content:"";position:absolute;inset:0;z-index:3;pointer-events:none;border:0;box-shadow:none;background:none}
#select .fighter-card.p1:after {border:3px solid var(--board-red)}
#select .fighter-card.p2:after {border:3px solid #62c8f0}
#select .fighter-card.p1.p2:after {border:3px solid var(--board-red);border-right-color:#62c8f0;border-bottom-color:#62c8f0}
#select .fighter-card:is(:hover,:focus-visible,.inspected) {background:#9ba7af;outline:0;z-index:4;border-color:#fff;box-shadow:0 0 0 2px #fff}
#select .fighter-card:is(:hover,:focus-visible,.inspected) .fighter-art-crop {background:#677b89}
#select .fighter-card:is(:hover,:focus-visible,.inspected) .fighter-name {color:#fff;background:#202b35}
#select .fighter-card:is(:hover,:focus-visible,.inspected):after {box-shadow:none}
#select .fighter-badge,#select .fighter-badge.blue {
 top:3px;bottom:auto;left:3px;right:auto;min-width:26px;width:auto;height:21px;padding:0 5px;
 border:0;border-radius:0;clip-path:none;background:var(--board-red);color:#080e16;
 font:900 12px/1 var(--font-display);transform:none;box-shadow:none;
}
#select .fighter-badge.blue {left:auto;right:3px;background:#62c8f0;color:#06131a}
#select .fighter-card.fighter-coming-soon {background:#101923;border-color:#475763;box-shadow:none}
#select .fighter-coming-soon .fighter-art-crop {background:#15212c}
#select .fighter-coming-soon .fighter-name {color:#92a0aa;background:#0a111a;font-size:10px;letter-spacing:.035em}
#select .fighter-coming-soon .locked-silhouette {fill:#101922;stroke:#374653}
#select .fighter-coming-soon .locked-register {stroke:#495b68}
#select .fighter-coming-soon .locked-fighter-mark {fill:#738693}

/* Real local selections occupy their numbered station. Additional stations
   describe Online VS availability and intentionally have no controls/IDs. */
#select .player-deck,#select.online-fighter-select .player-deck {
 grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 grid-template-rows:minmax(0,1fr);gap:9px;width:100%;max-width:none;min-height:0;margin:0;
}
#select .player-bay,#select .player-two,#select.online-fighter-select .player-bay {
 --owner:#ed463e;position:relative;min-height:0;height:100%;overflow:hidden;
 background:#17242e;border:2px solid #677581;border-top:4px solid var(--owner);box-shadow:none;
}
#select .player-two {--owner:#62c8f0}
#select .player-bay:after {content:none}
#select .player-deck[data-player="0"] .player-one,#select .player-deck[data-player="1"] .player-two {
 background:#1c2b37;border-color:var(--owner);border-left-width:2px;box-shadow:0 0 0 1px var(--owner);
}
#select .player-tab,#select .player-two .player-tab {
 position:absolute;z-index:5;left:0;right:0;top:0;width:100%;height:44px;min-height:44px;margin:0;
 display:flex;align-items:center;justify-content:flex-start;padding:0 11px;
 background:#101923e6;color:#c4cdd3;border:0;border-bottom:1px solid #536573;box-shadow:none;
 font:700 12px/1 var(--font-display);letter-spacing:.055em;
}
#select .player-tab.active,#select .player-two .player-tab.active {background:var(--owner);color:#07111a;box-shadow:none}
#select .player-tab.active:after {content:"EDITING";position:static;width:auto;height:auto;margin:0 0 0 auto;background:none;border:0;font:800 8px/1 var(--font-ui);letter-spacing:.1em}
#select .player-tab:focus-visible {outline:2px solid #fff;outline-offset:-4px}
#select .player-preview {position:absolute;inset:0;height:100%;display:block;border:0;background:none}
#select .player-preview .bay-portrait,#select.online-fighter-select .player-preview .bay-portrait {
 position:absolute;left:0;right:auto;top:44px;bottom:auto;width:100%;height:calc(100% - 62px);filter:none;
}
#select .player-preview .bay-fighter-label,#select.online-fighter-select .player-preview .bay-fighter-label {
 position:absolute;z-index:3;left:0;right:0;top:auto;bottom:0;padding:20px 10px 9px;
 background:linear-gradient(transparent,#08121ee8 42%,#08121e);border:0;text-align:left;
}
#select .player-preview b,#select.online-fighter-select .player-preview b {
 display:block;font:900 italic clamp(21px,2.45vw,34px)/.9 var(--font-display);letter-spacing:-.015em;color:#f4f4ed;white-space:nowrap;text-shadow:none;
}
#select .player-preview small {display:none}
#select .player-preview .bay-fighter-label>span {display:block;margin-top:6px;font:700 8px/1 var(--font-ui);letter-spacing:.08em;color:#b7c5ce}
#select .bay-number,#select .bay-caption {display:none}
#select .bay-state {display:block;position:absolute;z-index:4;top:51px;right:8px;bottom:auto;font:700 7px/1 var(--font-ui);letter-spacing:.1em;color:#d1dce3;background:#07101acb;padding:4px;border:0}
#select [data-state="preview"] .bay-state {color:#fff;border:1px dashed #b8c5ce}
#select .player-bay-empty {
 --owner:#5b6872;display:flex;flex-direction:column;align-items:center;justify-content:center;
 background:repeating-linear-gradient(-35deg,transparent 0 28px,#a0b5c805 28px 29px),#15202a;
 border-color:#46545f;box-shadow:none;color:#96a6b3;
}
#select .player-bay-empty .reserved-player {font:900 italic clamp(45px,5.5vw,78px)/1 var(--font-display);letter-spacing:-.07em;color:#526371}
#select .player-bay-empty>b {margin-top:10px;font:800 14px/1 var(--font-display);letter-spacing:.06em}
#select .player-bay-empty>small {margin:7px 8px 0;font:600 8px/1.35 var(--font-ui);text-align:center;letter-spacing:.045em;color:#9aa7b2}
#select .online-reserved {display:none}
#select.online-fighter-select .online-reserved {display:flex}
#select .console-bottom,#select.online-fighter-select .console-bottom {
 grid-column:1;grid-row:4;display:flex;align-items:center;justify-content:space-between;gap:20px;
 min-height:50px;margin:0;padding:0;background:none;border:0;
}
#select .roster-note {gap:18px;margin:0}
.menu-equipment #select .roster-note [data-ui="utility"],.menu-equipment #select #chooseStage {
 min-height:44px;padding:8px 0;background:none;border:0;border-bottom:1px solid #7a8995;
 color:#e1e6e8;box-shadow:none;font:700 13px/1 var(--font-display);letter-spacing:.04em;
}
#select .arena-choice {display:flex;align-items:center;gap:12px;width:auto;color:#a8b5bf;font-size:9px}
#select #chooseStage {width:auto;max-width:none;min-width:0;flex:none}
#select #chooseStage b {font:700 16px/1 var(--font-display);color:#f3f3eb}
#select #chooseStage svg {width:9px;height:9px;margin-left:8px;fill:#e9e9df}
.menu-equipment #select #start,.menu-equipment #select.online-fighter-select #start {
 grid-column:2;grid-row:4;align-self:stretch;min-height:50px;width:auto;min-width:230px;margin:0;padding:10px 38px 10px 20px;
 font:900 italic clamp(24px,2.6vw,34px)/1 var(--font-display);letter-spacing:-.015em;background:var(--board-red);color:#07101a;border:0;box-shadow:none;clip-path:none;
}
.menu-equipment #select #start:is(:hover,:focus-visible) {color:#0c131a;background:#f4f0df;outline:2px solid #fff;outline-offset:2px}
#select .control-summary,#select.online-fighter-select .control-summary {grid-column:1/-1;grid-row:5;display:block;margin:0;padding:0;font:600 9px/1.4 var(--font-ui);letter-spacing:.03em;text-align:left;color:#99a8b3}
#select .control-summary br {display:none}
#select.online-fighter-select .selection-body {grid-template-rows:0 auto clamp(180px,27dvh,268px) 50px 16px}

/* Stage thumbnails lead the selection board; the selected name and actual
   battle panorama share the lower feature. All three layout modes stay live. */
#stageDialog.console-stage {
 --stage-ink:#070c16;--stage-paper:#f0f0e9;--stage-metal:#8e9ba6;
 width:100vw;max-width:none;min-height:100dvh;max-height:100dvh;margin:0;
 padding:18px clamp(12px,3vw,48px) max(16px,env(safe-area-inset-bottom));
 color:var(--stage-paper);background:linear-gradient(145deg,#2b3442 0 11%,transparent 11.1%),#080d1a;overflow:auto;
}
#stageDialog>header {max-width:1240px;min-height:58px;padding:0 0 10px;margin:0 auto 12px;border:0;border-bottom:2px solid var(--stage-metal);box-shadow:none}
#stageDialog>header:after {content:none}
#stageDialog .console-heading h2 {font:900 italic clamp(31px,3.8vw,48px)/.9 var(--font-display);letter-spacing:-.025em}
#stageDialog .console-heading small {color:#b8c3ca;font-size:9px}
#stageDialog .stage-console-body {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:10px;max-width:1240px;margin:0 auto}
#stageDialog .stage-forms {grid-row:1;order:0;min-height:52px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;border:0;background:none}
#stageDialog .stage-forms>button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;padding:8px 12px;border:1px solid #74828f;border-bottom:3px solid #74828f;background:#17212e;color:#becbd4;box-shadow:none}
#stageDialog .stage-forms>button:before {content:none}
#stageDialog .stage-forms b {font:900 italic 24px/.9 var(--font-display);letter-spacing:.02em}
#stageDialog .stage-forms span {margin:0;font:600 8px/1 var(--font-ui);letter-spacing:.09em;color:inherit}
#stageDialog .stage-forms>button[aria-selected="true"] {border-color:#f3f0df;border-bottom-color:#ed463e;background:#efecdf;color:#0c1520}
#stageDialog .stage-forms>button:is(:hover,:focus-visible) {outline:2px solid #fff;outline-offset:0;background:#304050;color:#fff}
#stageDialog .stage-forms>button[aria-selected="true"]:is(:hover,:focus-visible) {background:#fff;color:#0c1520}
#stageDialog .stage-form-description {grid-row:2;order:0;min-height:16px;margin:0;padding:0 2px;font:600 10px/1.3 var(--font-ui);color:#a6b5c2}
#stageDialog .arena-grid {
 grid-row:3;order:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:auto;gap:7px;
 width:100%;max-width:none;margin:0;padding:3px;background:none;border:0;overflow:visible;
}
#stageDialog .arena-card {
 min-height:44px;min-width:0;height:auto;margin:0;padding:3px;border:1px solid #94a1ad;border-radius:2px;
 color:#e5e9e9;background:#111a27;box-shadow:none;transform:none;overflow:hidden;clip-path:none;
}
#stageDialog .arena-card .arena-card-scene {display:block;position:relative;aspect-ratio:16/8.5;width:100%;height:auto;background:#22303e;overflow:hidden;border:0}
#stageDialog .arena-card-scene .arena-layout {display:block;width:100%;height:100%}
#stageDialog .arena-card-name {position:relative;inset:auto;display:flex;align-items:center;justify-content:center;min-height:23px;height:auto;padding:4px 3px 2px;background:#0a111d;color:#e8edec;border:0;font:700 clamp(11px,1.25vw,16px)/1 var(--font-display);letter-spacing:.03em;white-space:nowrap}
#stageDialog .arena-card-name:before {content:none}
#stageDialog .arena-card:before,#stageDialog .arena-card:after,#stageDialog .arena-card.selected:after,#stageDialog .arena-card:is(.inspected,:hover,:focus-visible):before {content:none}
#stageDialog .arena-card.selected {border-color:#ed463e;box-shadow:0 0 0 2px #ed463e}
#stageDialog .arena-card:is(:hover,:focus-visible,.inspected) {border-color:#fff;outline:0;box-shadow:0 0 0 2px #fff;transform:none}
#stageDialog .arena-card:is(:hover,:focus-visible,.inspected) .arena-card-name,#stageDialog .arena-card.selected .arena-card-name,#stageDialog .arena-card.selected:is(:hover,:focus-visible,.inspected) .arena-card-name {background:#253647;color:#fff}
#stageDialog .arena-card:disabled {opacity:.55;cursor:wait}
#stageDialog .stage-inspection {
 grid-row:4;order:0;display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.4fr);grid-template-rows:minmax(230px,32dvh);
 min-height:230px;margin:8px 0 0;gap:20px;padding:16px 0 0;border:0;border-top:2px solid #7b8b98;background:none;box-shadow:none;overflow:visible;
}
#stageDialog .stage-title-panel {
 grid-column:1;grid-row:1;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:9px;
 width:auto;min-width:0;padding:10px 0 8px;pointer-events:none;background:none;border:0;
}
#stageDialog #arenaIndex {margin:0;padding:0;color:#bdc7cf;font:700 10px/1 var(--font-ui);letter-spacing:.14em}
#stageDialog .stage-title-panel h3 {margin:0;color:#f2f0e7;font:900 italic clamp(38px,5vw,70px)/.85 var(--font-display);letter-spacing:-.035em;text-shadow:none;overflow-wrap:normal}
#stageDialog #arenaPreviewSubtitle {max-width:38ch;margin:3px 0 0;color:#b6c4cf;font:600 11px/1.45 var(--font-ui)}
#stageDialog #arenaPreviewRules {color:#d7dee1;font:700 9px/1.4 var(--font-ui);letter-spacing:.08em}
#stageDialog #arenaDossier {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.menu-equipment #stageDialog #confirmStage {align-self:flex-start;min-height:44px;width:auto;min-width:190px;margin:7px 0 0;padding:10px 34px 10px 17px;font:900 italic 24px/1 var(--font-display);background:#ed463e;color:#0b1420;border:0;box-shadow:none;pointer-events:auto}
.menu-equipment #stageDialog #confirmStage:is(:hover,:focus-visible) {color:#0c1520;background:#f3f0df;outline:2px solid #fff;outline-offset:2px}
#stageDialog .stage-preview-frame {position:relative;grid-column:2;grid-row:1;align-self:stretch;min-height:0;width:100%;height:auto;overflow:hidden;border:1px solid #8e9ba6;background:#07101a;box-shadow:none}
#stageDialog .stage-preview-frame:after {content:none}
#stageDialog .stage-large-preview,#stageDialog #stageViewport {position:absolute;inset:0;width:100%;height:100%;min-height:0;border:0;background:#07101a}
#stageDialog .stage-large-preview .arena-layout {width:100%;height:100%}
#stageDialog .arena-view-label {left:8px;bottom:8px;right:auto;top:auto;padding:5px 7px;font:700 8px/1 var(--font-ui);letter-spacing:.12em;background:#07101ad9;color:#e4e8e8;border:0}
#stageDialog .stage-console-body>footer {display:none}

@media (max-width:999px) {
 #select .roster,#select .roster.expanded-roster {grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(4,minmax(72px,1fr));grid-auto-rows:minmax(72px,1fr);height:clamp(294px,40dvh,380px)}
 #select .selection-body,#select.online-fighter-select .selection-body {grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px auto 200px 50px 16px;gap:9px 14px}
 #select.online-fighter-select .selection-body {grid-template-rows:0 auto 200px 50px 16px}
 #select .player-preview b,#select.online-fighter-select .player-preview b {font-size:24px}
 #select .player-tab,#select .player-two .player-tab {font-size:10px;padding:0 7px}
 #select .player-tab.active:after {font-size:7px;letter-spacing:0}
 #select .player-bay-empty>small {font-size:7px}
 #select .console-bottom,#select.online-fighter-select .console-bottom {gap:12px}
 #select .roster-note {gap:10px}
 #select .arena-choice>span {display:none}
 #select #chooseStage b {font-size:13px}
 .menu-equipment #select #start,.menu-equipment #select.online-fighter-select #start {min-width:190px;font-size:26px;padding-left:12px}
 #stageDialog .stage-inspection {grid-template-columns:minmax(230px,.85fr) minmax(0,1.2fr);grid-template-rows:minmax(230px,32dvh);gap:14px}
 #stageDialog .stage-title-panel h3 {font-size:48px}
}
@media (max-width:599px) {
 #select.console-select {padding:12px 10px max(10px,env(safe-area-inset-bottom))}
 #select .select-top {min-height:53px;margin-bottom:8px;padding-bottom:8px;gap:8px}
 #select .console-heading h2 {font-size:28px}
 #select .console-heading small {font-size:8px}
 #select .selection-body,#select.online-fighter-select .selection-body {grid-template-columns:minmax(0,1fr);grid-template-rows:88px auto 186px 48px 88px;gap:8px;min-height:0}
 #select .console-rule-strip {min-height:88px;flex-wrap:wrap;align-content:flex-start;gap:0;padding:0 9px}
 #select .rule-entry {flex:1 1 100%;min-height:44px}
 #select .rule-entry>b {font-size:18px}
 #select .cpu-difficulty-quick {flex:1 1 100%;justify-content:space-between;margin:0;min-height:44px}
 #select .console-rule-caption {display:none}
 #select .roster,#select .roster.expanded-roster {grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:84px;height:clamp(252px,39dvh,340px);gap:4px;padding:3px}
 #select .roster-column {grid-template-rows:18px minmax(0,1fr)}
 #select .fighter-name,#select .expanded-roster .fighter-name {font-size:clamp(9px,2.8vw,14px);letter-spacing:0;height:21px;padding:2px 0}
 #select .fighter-badge,#select .fighter-badge.blue {height:19px;min-width:23px;font-size:10px}
 #select .fighter-coming-soon .fighter-name {font-size:9px}
 #select .player-deck,#select.online-fighter-select .player-deck {grid-column:1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #select .player-bay,#select .player-two,#select.online-fighter-select .player-bay {height:100%;min-height:0}
 #select .player-bay-empty {display:none}
 #select.online-fighter-select .online-reserved {display:flex}
 #select .player-preview .bay-portrait,#select.online-fighter-select .player-preview .bay-portrait {top:44px;left:0;width:100%;height:calc(100% - 62px)}
 #select .player-preview .bay-fighter-label,#select.online-fighter-select .player-preview .bay-fighter-label {left:0;right:0;top:auto;bottom:0;padding:20px 8px 9px;background:linear-gradient(transparent,#08121ef0 42%)}
 #select .player-preview b,#select.online-fighter-select .player-preview b {font-size:clamp(21px,6vw,29px)}
 #select .player-tab,#select .player-two .player-tab {left:0;top:0;width:100%;height:44px;min-height:44px;padding:0 8px;font-size:11px}
 #select .bay-state {top:51px;right:7px;bottom:auto}
 .menu-equipment #select #start,.menu-equipment #select.online-fighter-select #start {grid-column:1;grid-row:4;min-height:48px;font-size:28px}
 #select .console-bottom,#select.online-fighter-select .console-bottom {grid-column:1;grid-row:5;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:44px 44px;gap:0;min-height:0}
 #select .roster-note {display:flex;justify-content:space-between;gap:12px;width:100%}
 #select .arena-choice {width:100%;justify-content:space-between;gap:12px}
 #select .arena-choice>span {display:block}
 #select #chooseStage {flex:1;text-align:right}
 #select #chooseStage b {font-size:14px}
 #select .control-summary,#select.online-fighter-select .control-summary {display:none}
 #select.online-fighter-select .selection-body {grid-template-rows:0 auto 186px 48px 44px}
 #select.online-fighter-select .console-bottom {grid-template-rows:44px}
 #stageDialog.console-stage {padding:12px 10px max(12px,env(safe-area-inset-bottom))}
 #stageDialog>header {min-height:52px;margin-bottom:10px;padding-bottom:8px}
 #stageDialog .console-heading h2 {font-size:30px}
 #stageDialog .stage-forms {gap:4px;min-height:54px}
 #stageDialog .stage-forms>button {min-height:54px;padding:8px 3px}
 #stageDialog .stage-forms b {font-size:19px}
 #stageDialog .stage-forms span {font-size:6px;letter-spacing:.02em}
 #stageDialog .stage-form-description {font-size:9px;min-height:24px}
 #stageDialog .arena-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:2px}
 #stageDialog .arena-card .arena-card-scene {aspect-ratio:16/9}
 #stageDialog .arena-card-name {font-size:clamp(9px,2.9vw,13px);letter-spacing:0;min-height:24px;padding:3px 0}
 #stageDialog .stage-inspection {grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;min-height:0;gap:10px;padding-top:12px;margin-top:5px}
 #stageDialog .stage-preview-frame {grid-column:1;grid-row:1;aspect-ratio:16/9;min-height:0}
 #stageDialog .stage-title-panel {grid-column:1;grid-row:2;gap:8px;padding:0 0 8px}
 #stageDialog .stage-title-panel h3 {font-size:45px;line-height:.9}
 #stageDialog #arenaPreviewSubtitle {max-width:none;font-size:10px}
 #stageDialog #arenaIndex,#stageDialog #arenaPreviewRules {font-size:8px}
 .menu-equipment #stageDialog #confirmStage {width:100%;min-height:48px;margin-top:6px}
}
@media (min-width:600px) and (max-height:600px) {
 #select.console-select,#stageDialog.console-stage {padding-top:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
 #select .select-top,#stageDialog>header {min-height:46px;margin-bottom:7px;padding-bottom:6px}
 #select .console-heading h2,#stageDialog .console-heading h2 {font-size:30px}
 #select .selection-body {grid-template-rows:44px auto 164px 48px 0;gap:7px 14px}
 #select.online-fighter-select .selection-body {grid-template-rows:0 auto 164px 48px 0;gap:7px 14px}
 #select .roster,#select .roster.expanded-roster {height:224px;grid-template-rows:none;grid-auto-rows:70px}
 #select .player-preview b,#select.online-fighter-select .player-preview b {font-size:24px}
 #select .control-summary,#select.online-fighter-select .control-summary {display:none}
 #stageDialog .stage-inspection {grid-template-rows:230px}
 #stageDialog .arena-card .arena-card-scene {aspect-ratio:16/7}
}
@media (prefers-reduced-motion:reduce) {
 #select .fighter-card,#select .fighter-art-crop,#select .player-bay,#stageDialog .arena-card,#stageDialog .stage-forms>button {animation:none!important;transition:none!important}
}

/* The scene has an aspect-ratio height, not an explicit height. Keep the SVG
   out of intrinsic sizing so its 270-unit viewBox fits the thumbnail instead
   of painting a tall image whose platform layer is clipped below the card. */
#stageDialog .arena-card-scene .arena-layout {position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%}
