/* Selection: one large standing fighter per side, portraits only in the roster. */
#select{max-width:1560px;padding:12px 24px 24px;margin:auto}
.select-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;text-align:left;border-bottom:1px solid #a47b493d;padding-bottom:8px}
.select-header>.select-brand{grid-column:2;grid-row:1;justify-self:center}
.select-header>div{grid-column:1;grid-row:1;min-width:0;text-align:left!important}
.select-header>.club-brand{grid-column:3;grid-row:1;justify-self:end}
.select-brand{width:125px;height:62px;object-fit:contain}
.select-header h1{font-size:clamp(20px,2.5vw,32px);line-height:1.1;margin:4px 0;font-style:italic;color:#fff0ca}
.select-header .eyebrow{font-size:12px;letter-spacing:2px}.match-mode{font-size:12px;line-height:1.5;text-align:right;color:#c4b4ca}.match-mode b{font-size:16px;color:#ffcf73}
#select .mode-picker{display:flex;justify-content:center;gap:10px;margin:12px 0;padding:0;border:0}
#select .mode-picker button{flex:0 1 250px;min-height:46px;padding:10px 16px;background:#21192c;border:2px solid #84708f;border-radius:5px;color:#e3d9ec;font-size:15px;font-weight:800;opacity:1;cursor:pointer}
#select .mode-picker button[aria-pressed=true]{background:#ffd37c;border-color:#ffe7b5;color:#241326;box-shadow:0 0 16px #ffd37c33}
.selection-stage{display:grid;grid-template-columns:minmax(190px,1fr) minmax(380px,1.8fr) minmax(190px,1fr);gap:20px;align-items:start;padding:4px 0 16px}
#select[data-mode=arcade] .selection-stage{grid-template-columns:minmax(220px,1fr) minmax(440px,2.2fr) 110px}
.fighter-preview{--fighter-color:#78c77c;min-width:0;text-align:center;position:relative}
.player-tag{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:12px;font-weight:800;letter-spacing:1px;border-bottom:2px solid #ffd16e;padding:5px;color:#ffd16e;min-height:32px}
.player-tag span{font-size:12px}.opponent-preview .player-tag{border-color:#ef698c;color:#ef9bb0;justify-content:center}
.preview-logo{width:100%;height:80px;object-fit:contain;display:block;margin:4px auto}
.preview-art{height:clamp(320px,52vh,550px);width:100%;margin:0;position:relative;background:radial-gradient(ellipse at 50% 90%,color-mix(in srgb,var(--fighter-color) 22%,transparent),transparent 65%)}
.preview-art canvas{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 8px 10px #0006)}
.fighter-preview>p{font-size:14px;color:#cab9cf;margin:4px 0}
#selection-unknown{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#ad94b5}
#selection-unknown strong{font-size:clamp(32px,4vw,64px);color:#ffdb92;letter-spacing:2px}#selection-unknown span{font-size:12px;line-height:1.5}
#select[data-mode=arcade] .opponent-preview .preview-art{height:260px;background:none}
.selection-center{min-width:0;text-align:center}.selection-target{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:30px;margin-bottom:10px;color:#ffdda1;font-size:13px;font-weight:800}
#selection-back{padding:6px 10px;font-size:13px;color:#e9d6ee;background:#33233e;border:1px solid #9c79ac;border-radius:4px;min-height:36px}
.roster-heading{display:none}.roster{display:grid;grid-template-columns:repeat(var(--roster-columns,3),minmax(0,1fr));gap:12px}
.portrait{position:relative;min-width:0;padding:0;border:2px solid #73516d;border-radius:4px;background:#1c1423;display:flex;flex-direction:column;overflow:visible;aspect-ratio:auto;cursor:pointer}
.portrait canvas{width:100%;height:auto;aspect-ratio:1;display:block;border-radius:2px 2px 0 0;image-rendering:auto}
.portrait-name{position:static;display:block;width:100%;padding:8px 3px;background:#160f20;min-height:34px;font-size:14px;font-weight:900;line-height:18px;color:#e7d1e6;letter-spacing:.5px}
.portrait:focus-visible{border-color:#ffd78a;outline:2px solid #ffda7b;outline-offset:3px}.portrait.selected{border-color:#ffe3a5;box-shadow:0 0 0 2px #b67c3280}
.portrait:disabled{opacity:.38;cursor:default}.portrait.selected .portrait-name{color:#ffdf93}
.portrait::after{content:"";position:absolute;inset:-3px;border:3px solid transparent;border-radius:4px;pointer-events:none;z-index:3}
.portrait.selected::after{animation:cursor-glow 1.2s ease-in-out infinite}.confirming .portrait.selected canvas{animation:portrait-confirm 100ms ease-in-out 7}
@keyframes cursor-glow{0%,100%{border-color:#ffb53d;box-shadow:0 0 8px #e46b3060}50%{border-color:#fff2be;box-shadow:0 0 16px #ffdc83a0}}
@keyframes portrait-confirm{0%,100%{filter:brightness(1)}50%{filter:brightness(1.8)}}
.selection-cursor{display:none;position:absolute;left:-4px;top:-8px;background:#ffda79;color:#281020;font-size:12px;font-weight:900;padding:2px 5px;z-index:4}.portrait.selected .selection-cursor{display:block}
.versus-mark{display:none}.selection-status{font-size:14px;color:#e8cedf;min-height:24px;line-height:1.4;margin:10px 0 8px}
.selection-center .start{font-size:15px;padding:12px 8px;min-height:46px;width:100%}.confirming .start:disabled{opacity:1;background:#fff0b7}
.selection-hint{font-size:12px;color:#bca7c4;line-height:1.5;margin:8px 0}
.selection-footer{border-top:1px solid #a47b493d;padding-top:12px}.selection-footer .match-options{justify-content:center;margin:0;gap:10px;flex-wrap:wrap}
.selection-footer .match-options select,.selection-footer .quiet{padding:9px 12px;min-height:40px}.selection-footer .input-note{font-size:12px;margin:8px 0}.selection-footer #devicehint,.selection-footer #loadnote:empty{display:none}
.selection-footer .help{margin:8px auto 0}.selection-footer #loadnote{font-size:14px}
.portrait-style{display:flex;justify-content:center;align-items:center;gap:10px;margin:0 auto 12px;font-size:14px;color:#dfc9a0}.portrait-style select{font:inherit;min-height:40px;background:#211627;color:#ffdf93;border:1px solid #8c6841;border-radius:4px;padding:6px 10px}
#select [hidden]{display:none!important}
#unknown-rival{display:flex;flex-direction:column;align-items:center;font-size:64px;color:#ffdd91;min-height:130px;justify-content:center}#unknown-rival small{font-size:14px;letter-spacing:2px}#unknown-rival[hidden],#versus-enemy[hidden]{display:none}
@media(max-width:1000px){.selection-stage{grid-template-columns:minmax(120px,1fr) minmax(300px,1.8fr) minmax(120px,1fr);gap:12px}#select[data-mode=arcade] .selection-stage{grid-template-columns:minmax(150px,1fr) minmax(340px,2fr) 70px}.preview-art{height:370px}.preview-logo{height:64px}}
@media(max-width:720px){
 #select{padding:8px max(10px,env(safe-area-inset-left)) 18px}.select-header{gap:8px}.select-brand{width:72px;height:42px}.select-header h1{font-size:20px}.select-header .eyebrow{font-size:12px}.match-mode{display:none}
 #select .mode-picker{margin:10px 0;gap:8px}#select .mode-picker button{font-size:13px;padding:8px;min-height:44px}
 .selection-stage{grid-template-columns:minmax(0,1fr) minmax(150px,1.6fr) minmax(0,1fr);gap:7px}
 #select[data-mode=arcade] .selection-stage{grid-template-columns:minmax(0,.9fr) minmax(0,1.7fr);gap:10px}
 .selection-center{grid-column:2;grid-row:1}.player-preview{grid-column:1;grid-row:1}.opponent-preview{grid-column:3;grid-row:1}
 #select[data-mode=arcade] .opponent-preview{grid-column:1;grid-row:2;align-self:start;margin-top:-20px}#select[data-mode=arcade] .opponent-preview .player-tag{display:none}#select[data-mode=arcade] .opponent-preview .preview-art{height:68px}
 .roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.portrait-name{font-size:12px;letter-spacing:0;padding:6px 2px;min-height:30px}
 .preview-art{height:280px}.preview-logo{height:50px}.player-tag{font-size:12px;letter-spacing:0;flex-wrap:wrap;justify-content:center}.player-tag span{font-size:12px}.fighter-preview>p{display:none}
 .selection-target{font-size:12px;line-height:1.4;min-height:30px;margin-bottom:8px}.selection-status{font-size:12px}.selection-center .start{font-size:12px}.selection-hint{font-size:12px}#selection-unknown strong{font-size:32px}#selection-unknown span{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.portrait.selected::after,.confirming .portrait.selected canvas{animation:none;border-color:#fff3cb}}

@media(max-width:720px){#select[data-mode=arcade] .selection-stage{position:relative;padding-top:32px}#select[data-mode=arcade] .opponent-preview{position:absolute;right:0;top:0;margin:0;width:auto}#select[data-mode=arcade] .opponent-preview .preview-art{height:24px}#select[data-mode=arcade] #selection-unknown{flex-direction:row;gap:6px}#select[data-mode=arcade] #selection-unknown strong{font-size:22px}}
/* HD menu figures: raised placement, soft light and logos below the feet. */
.player-tag{min-height:26px;padding:2px 5px}.preview-art{height:clamp(280px,48vh,490px);overflow:visible;background:radial-gradient(ellipse at 50% 70%,color-mix(in srgb,var(--fighter-color) 19%,transparent) 0%,transparent 69%)}
.preview-logo{height:68px;margin:-5px auto 0}.selection-stage{padding-top:0}.selection-target{margin-bottom:7px}.select-header{padding-bottom:4px}
#tower .tower-stage{max-width:1320px;margin:auto;display:grid;grid-template-columns:minmax(180px,1fr) minmax(360px,1.7fr) minmax(180px,1fr);gap:12px;align-items:center}
#tower-list{grid-column:1/-1;grid-row:1}#tower-list li{position:relative;overflow:hidden;isolation:isolate}#tower-list li>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;opacity:.42}#tower-list li:has(img){text-shadow:0 2px 5px #000;background:#1e1629}
.tower-standing{grid-row:2;min-width:0}.tower-player{grid-column:1}.tower-enemy{grid-column:3}.tower-standing canvas{display:block;width:100%;height:400px;object-fit:contain}.tower-standing img{display:none}
#tower .versus-intro{grid-column:2;grid-row:2;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);width:100%;gap:12px;align-content:center}#tower .versus-intro>img{width:100%;height:120px;object-fit:contain}#tower .versus-intro>b{font-size:28px}#tower #unknown-rival{font-size:42px;min-height:120px}#tower #unknown-rival small{font-size:12px;letter-spacing:0}
#tower [hidden]{display:none!important}
@media(max-width:720px){
 #select{padding-top:4px}.select-header h1{font-size:18px}.select-brand{height:34px;width:62px}.select-header .eyebrow{display:none}#select .mode-picker{margin:6px 0}#select .mode-picker button{min-height:40px}
 #select[data-mode=arcade] .selection-stage{padding-top:23px}.selection-target{min-height:22px;margin-bottom:4px}.selection-status{margin:6px 0 5px;min-height:0}.selection-hint{margin:4px 0}.selection-center .start{min-height:44px;padding:9px 5px}
 .preview-art{height:245px}.preview-logo{height:44px;margin:-3px auto 0}.player-tag{min-height:24px}.player-tag span{font-size:11px}.portrait-name{min-height:26px;padding:4px 2px}.roster{gap:6px}
 #tower{padding-top:8px;padding-bottom:12px}#tower h2{margin:4px 0 10px;font-size:22px}#tower .tower-stage{grid-template-columns:1fr 1fr;gap:10px;max-width:520px}#tower-list{grid-column:1/-1;grid-row:1;gap:5px}#tower-list li{min-height:68px;padding:6px 3px}#tower-list li>b{font-size:16px}#tower-list li>strong,#tower-list li>span{font-size:10px}
 .tower-standing{grid-row:2}.tower-player{grid-column:1}.tower-enemy{grid-column:2}.tower-standing canvas{display:none}.tower-standing img{display:block;width:100%;max-height:160px;aspect-ratio:1;object-fit:contain;border-radius:6px}.tower-enemy{min-height:100px}
 #tower .versus-intro{grid-column:1/-1;grid-row:3;gap:8px;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr)}#tower .versus-intro>img{height:74px}#tower #unknown-rival{min-height:74px;font-size:32px}#tower .versus-intro .start{font-size:14px;min-height:44px;padding:10px 4px}
}
@media(max-width:720px) and (max-height:700px){.preview-art{height:210px}.selection-hint{display:none}.select-header{border:0}.portrait-name{font-size:12px}.selection-stage{padding-bottom:6px}.selection-footer{padding-top:6px}}
@media(max-width:720px){.portrait canvas{height:clamp(50px,calc((100svh - 340px)/3),120px);object-fit:contain}.tower-standing{display:none}#tower .versus-intro{grid-row:2}#tower-list li.current:has(img){min-height:110px}}
/* Resting fighters and their logos sit lower, leaving room around the heads. */
.player-preview,.opponent-preview{padding-top:18px}
.preview-logo{margin:5px auto 0}
@media(max-width:720px){.preview-logo{height:68px;width:112%;max-width:none;margin-left:-6%}}
#match-loading{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#100c20ed;padding:24px;text-align:center}
#match-loading[hidden]{display:none}
#match-loading>div{max-width:360px;color:#ffe4ac}
#match-loading p{font-size:18px;line-height:1.5}
#match-loading button{font:inherit;min-height:48px;margin:8px;padding:10px 22px;border:1px solid #ffd37c;border-radius:5px;background:#292033;color:#ffe4ac}
#tower .tower-stage{min-height:min(660px,calc(100svh - 110px));align-content:center;row-gap:24px}
#tower-list{grid-template-columns:repeat(var(--opponents,5),minmax(0,1fr));max-width:900px;width:100%;justify-self:center}
#tower-list li{aspect-ratio:1;min-height:0}
#tower .versus-intro{row-gap:22px;align-self:center}
#tower .versus-intro>img{height:170px}
#tower #unknown-rival{min-height:170px;font-size:56px}
#tower .versus-intro .start{margin-top:12px;min-height:52px}
.tower-standing canvas{height:440px}
@media(max-width:720px){
 .player-preview,.opponent-preview{padding-top:12px}
 #tower .tower-stage{min-height:calc(100svh - 100px);align-content:center;row-gap:clamp(18px,4svh,38px)}
 #tower-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #tower-list li,#tower-list li.current:has(img){min-height:0;aspect-ratio:1;padding:8px 4px}
 #tower-list li>strong,#tower-list li>span{font-size:12px}
 #tower .versus-intro{row-gap:18px}
 #tower .versus-intro>img{height:130px}
 #tower #unknown-rival{min-height:130px;font-size:42px}
 #tower .versus-intro .start{margin-top:10px;min-height:50px;font-size:15px}
}
@media(orientation:landscape) and (max-height:600px){
 #tower .tower-stage{min-height:0;row-gap:12px}
 #tower-list{grid-template-columns:repeat(var(--opponents,5),minmax(0,1fr));max-width:600px}
 #tower-list li{aspect-ratio:auto;min-height:72px}
 #tower .versus-intro>img{height:90px}#tower #unknown-rival{min-height:90px;font-size:36px}
 .tower-standing canvas{height:250px}
}

/* Concealed opponent preview has no useful space in the phone selector. */
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){
 #select[data-mode=arcade] .opponent-preview,
 #select[data-mode=exhibition][data-step=player] .opponent-preview{display:none}
 #select[data-mode=arcade] .selection-stage,
 #select[data-mode=exhibition][data-step=player] .selection-stage{grid-template-columns:minmax(0,.9fr) minmax(0,1.7fr);padding-top:0}
 #select[data-step=player] .player-preview{grid-column:1;grid-row:1}
 #select[data-step=player] .selection-center{grid-column:2;grid-row:1}
}
#tower-list li.cleared{opacity:1;justify-content:flex-end;border-color:#876c77;padding-bottom:10px}
#tower-list li.cleared>img{opacity:.9;z-index:-2;filter:grayscale(1) brightness(.78)}
#tower-list li.cleared::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 30%,#120e1bbf 72%,#120e1bef)}
#tower-list li.cleared>b{position:absolute;left:7px;top:5px;color:#eadce1;font-size:14px;text-shadow:0 1px 4px #000}
#tower-list li.cleared>span{display:block;color:#e9aeb2;font-weight:800;letter-spacing:.5px}

.selection-actions .start{font-size:15px;padding:12px 8px;min-height:46px;width:100%}
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){
 .player-preview .selection-actions{margin-top:12px}
 .player-preview .selection-actions .start{font-size:12px;line-height:1.4;padding:10px 5px;min-height:48px;overflow-wrap:anywhere}
 .player-preview .selection-actions .selection-hint{display:block;font-size:12px;line-height:1.4;margin:8px 0}
}
@media(max-width:720px){
 .select-header>div{min-width:0;flex:1;text-align:right}
 .select-header h1{font-size:clamp(15px,4.2vw,18px);white-space:normal;overflow-wrap:normal}
 #select .mode-picker{flex-wrap:nowrap;gap:5px}
 #select .mode-picker button{flex:1 1 0;min-width:0;max-width:none;padding:7px 3px;line-height:1.3;font-size:11px;min-height:44px;letter-spacing:0}
 .selection-target{font-size:11px;line-height:1.3}
 .portrait canvas{height:auto;aspect-ratio:1;object-fit:contain}
 .selection-footer .match-options{gap:8px}
}
/* Stable matchup geometry: both sides share width, header height and sole baseline. */
html{scrollbar-gutter:stable}
#select#select .selection-stage{grid-template-columns:minmax(190px,1fr) minmax(380px,1.8fr) minmax(190px,1fr)}
#select#select .player-tag{height:44px;min-height:44px;box-sizing:border-box;justify-content:center;flex-wrap:wrap;align-content:center}
#select#select .preview-art canvas{object-position:center bottom}
#select#select .selection-target{min-height:58px;justify-content:center}
@media(max-width:720px), (max-width:1000px) and (pointer:coarse){
 #select#select{padding-bottom:12px}
 #select#select .selection-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px;padding-top:0}
 #select#select .player-preview{grid-column:1;grid-row:1;padding-top:0}
 #select#select .opponent-preview{display:block!important;position:relative;grid-column:2;grid-row:1;align-self:start;top:auto;right:auto;width:auto;margin:0;padding-top:0}
 #select#select .fighter-preview .player-tag{display:flex;height:32px;min-height:32px;font-size:11px}
 #select#select .fighter-preview .preview-art{height:clamp(110px,18svh,160px)}
 #select#select .preview-logo{height:38px;width:100%;max-width:100%;margin:0}
 #select#select #selection-unknown{flex-direction:column;gap:6px}
 #select#select #selection-unknown strong{font-size:28px}
 #select#select .selection-center{grid-column:1/-1;grid-row:2}
 #select#select .selection-target{min-height:58px;flex-direction:row;flex-wrap:wrap;gap:6px;margin:0 0 5px}
 #select#select #selection-back{min-height:26px;padding:3px 6px;font-size:11px}
 #select#select .roster{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 #select#select .portrait canvas{height:clamp(44px,calc((100svh - 540px)/2),96px);aspect-ratio:auto;object-fit:contain}
 #select#select .portrait-name{font-size:11px;min-height:23px;line-height:15px;padding:4px 1px}
 #select#select .player-preview .selection-actions{margin-top:4px}
 #select#select .player-preview .selection-actions .start{min-height:48px;padding:6px 4px}
 #select#select .player-preview .selection-actions .selection-hint{min-height:28px;margin:3px 0;font-size:11px;line-height:1.25}
 #select#select .selection-status{margin:5px 0;min-height:18px}
 #select#select .selection-footer{padding-top:6px}
}
@media(orientation:landscape) and (max-height:500px){
 #select#select .selection-stage{grid-template-columns:minmax(120px,1fr) minmax(280px,2fr) minmax(120px,1fr);gap:10px}
 #select#select .player-preview{grid-column:1;grid-row:1}
 #select#select .selection-center{grid-column:2;grid-row:1}
 #select#select .opponent-preview{grid-column:3;grid-row:1}
 #select#select .fighter-preview .preview-art{height:150px}
 #select#select .roster{grid-template-columns:repeat(4,minmax(0,1fr))}
 #select#select .portrait canvas{height:clamp(44px,15svh,72px)}
}

.club-brand{display:flex;align-items:center;gap:9px;flex-shrink:0;font-size:11px;color:#d8d0c7}.club-brand img{display:block;width:60px;height:60px;clip-path:circle(39% at 50% 50%);transform:scale(1.25)}.club-brand b{color:#fff}.select-header>div{flex:1}@media(max-width:720px){.club-brand img{width:36px;height:36px}.club-brand>span{display:none}.select-header{gap:6px}.select-header h1{font-size:clamp(14px,4.2vw,20px)}}

/*156: one touch highlight, larger eight-person grid, settings in two rows. */
.select-header{position:relative}#headersound{position:absolute;right:4px;bottom:0;padding:6px 10px;z-index:2;font-size:12px}.audio-options{display:flex;gap:12px;align-items:center;justify-content:center;grid-column:1/-1}.admin-final{padding:12px;background:#ffd278;color:#211627;border:0;border-radius:6px;font-weight:bold;margin:6px 0}
@media(hover:hover){.portrait:hover{border-color:#ffd78a}}
@media(max-width:720px),(max-width:1000px) and (pointer:coarse){
 #select#select .selection-target{min-height:30px;padding:2px 0}
 #select#select .preview-art{height:clamp(100px,16svh,140px)}
 #select#select .portrait canvas{height:clamp(74px,11svh,110px);width:100%;object-fit:contain}
 #select#select .roster{gap:7px}#select#select .portrait-name{font-size:12px;min-height:23px}
 #select#select .selection-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:8px}
 #select#select .portrait-style,#select#select .match-options{display:flex;align-items:center;justify-content:center;gap:5px;margin:0;flex-wrap:nowrap}
 #select#select .audio-options{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center}
 #select#select .selection-footer>p,#select#select #community,#select#select .help{grid-column:1/-1}
 #select#select .selection-footer select{max-width:140px;padding:7px 4px}
}

/*158: logo cutout, dedicated sound column, larger roster and secondary audio row. */
#select .select-header{grid-template-columns:minmax(110px,1fr) minmax(220px,1.35fr) 48px auto;gap:14px}
#select .select-header .select-brand{grid-column:2;grid-row:1;width:100%;height:100px;max-width:400px}
#select .select-header>div{grid-column:1;grid-row:1}
#select .select-header .club-brand{grid-column:4;grid-row:1}
#select #headersound{position:static;grid-column:3;grid-row:1;width:44px;min-width:0;min-height:36px;padding:5px 2px;justify-self:center;font-size:11px}
#select .select-header h1{font-size:clamp(15px,1.6vw,23px)}
#select#select .selection-footer{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;max-width:760px;margin:0 auto}
#select#select .portrait-style,#select#select .match-options{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;flex-wrap:nowrap}
#select#select .audio-options{grid-column:1/-1;margin-top:20px;padding-top:14px;border-top:1px solid #a47b493d}
#select#select .selection-footer>p,#select#select #community,#select#select .help{grid-column:1/-1}
@media(min-width:1001px){#select#select .selection-stage{grid-template-columns:minmax(180px,1fr) minmax(460px,2.5fr) minmax(180px,1fr)}#select#select .selection-target{min-height:30px}}
@media(max-width:720px),(max-width:1000px) and (pointer:coarse){
 #select .select-header{grid-template-columns:55px minmax(0,1fr) 32px 40px;gap:6px;min-height:76px}
 #select .select-header .select-brand{height:76px;max-width:none}
 #select .select-header h1{font-size:11px;line-height:1.2;margin:0;letter-spacing:0}
 #select .select-header .eyebrow{display:none}
 #select #headersound{width:32px;font-size:10px;min-height:32px;padding:4px 0}
 #select .club-brand img{width:34px;height:34px;transform:scale(1.15)}
 #select#select .fighter-preview .preview-art{height:clamp(90px,12svh,116px)}
 #select#select .portrait canvas{height:clamp(90px,14svh,128px);aspect-ratio:auto}
 #select#select .selection-footer{gap:8px;padding-top:6px}
 #select#select .selection-footer .audio-options{margin-top:28px;padding-top:16px}
 #select#select .portrait-style,#select#select .match-options{gap:5px;font-size:12px}
 #select#select .selection-footer select{max-width:132px}
}
@media(orientation:landscape) and (max-height:500px){#select#select .portrait canvas{height:70px}}

@media(min-width:1001px){#select .select-header{grid-template-columns:minmax(0,1fr) 44px minmax(300px,400px) 44px minmax(0,1fr)}#select .select-header .select-brand{grid-column:3}#select #headersound{grid-column:4}#select .select-header .club-brand{grid-column:5}#select#select .fighter-preview .preview-art{height:clamp(300px,46vh,460px)}}
@media(max-width:720px),(max-width:1000px) and (pointer:coarse){#select#select .portrait canvas{object-fit:cover}}

/*159: current portraits in arcade versus, including mobile.*/
#tower .versus-intro>img{height:120px;aspect-ratio:auto;object-fit:contain;border:0;border-radius:0}

/*160: give arcade portraits the concealed rival's space and keep mode changes stable. */
#select .select-header .select-brand{height:110px;max-width:440px}
#select .mode-picker{margin-bottom:40px}
#select #exhibition-options{margin:-36px auto 6px;min-height:30px;padding:3px 12px}
#select #exhibition-options summary{min-height:22px;line-height:22px}
#select #exhibition-options[open]{margin-bottom:12px}
@media(min-width:1001px),(min-width:721px) and (pointer:fine){
 #select#select[data-mode=arcade] .opponent-preview{display:none}
 #select#select[data-mode=arcade] .selection-stage{grid-template-columns:minmax(180px,1fr) minmax(0,3.5fr)}
 #select#select[data-mode=arcade] .selection-center{grid-column:2;grid-row:1}
 #select#select[data-mode=arcade] .portrait canvas{height:clamp(116px,calc((100svh - 365px)/2),240px);aspect-ratio:auto;object-fit:cover}
 #select#select .selection-stage{padding-bottom:8px}
}
@media(min-width:1001px){
 #select .select-header{grid-template-columns:minmax(0,1fr) 44px minmax(330px,440px) 44px minmax(0,1fr)}
}
@media(max-width:720px),(max-width:1000px) and (pointer:coarse){
 #select .select-header .select-brand{height:84px;max-width:none}
 #select#select .fighter-preview .preview-art{height:clamp(108px,14svh,136px)}
}

@media(min-width:1001px),(min-width:721px) and (pointer:fine){#select#select[data-mode=arcade] .portrait canvas{height:clamp(110px,calc((100svh - 540px)/2),210px)}}

@media(max-width:720px),(max-width:1000px) and (pointer:coarse){#select#select .selection-hint{display:none}#select#select .selection-stage{padding-bottom:4px}}

/*161: full portrait artwork, readable defeated cards and larger mobile fighters. */
@media(min-width:1001px),(min-width:721px) and (pointer:fine){
 #select#select .portrait canvas{object-fit:contain}
 #select#select[data-mode=arcade] .portrait canvas{object-fit:contain}
}
#tower-list li:has(>img){padding:0 0 8px;aspect-ratio:auto;justify-content:flex-start;gap:4px;text-shadow:none}
#tower-list li>img,#tower-list li.cleared>img{position:static;display:block;inset:auto;width:100%;height:auto;aspect-ratio:1;object-fit:contain;z-index:auto;opacity:1}
#tower-list li.cleared>img{filter:grayscale(1) brightness(.78)}
#tower-list li.cleared::after{display:none}
#tower-list li.cleared>b{position:static;text-shadow:none;font-size:12px;line-height:1}
#tower-list li:has(>img)>strong,#tower-list li:has(>img)>span{position:static;padding:0 3px}
@media(max-width:720px),(max-width:1000px) and (pointer:coarse){
 #select .select-header>div{display:none}
 #select .select-header{grid-template-columns:minmax(0,1fr) 32px 40px}
 #select .select-header .select-brand{grid-column:1}
 #select #headersound{grid-column:2}
 #select .select-header .club-brand{grid-column:3}
 #select .mode-picker{margin-bottom:6px}
 #select #exhibition-options{margin:0 auto 6px}
 #select#select .fighter-preview .preview-art{height:clamp(166px,23svh,204px)}
 #select#select .fighter-preview .player-tag{height:26px;min-height:26px}
 #select#select .selection-stage{row-gap:2px}
}

/*162: long round announcements stay inside the phone ring.*/
#announce{left:0;right:0;width:auto;max-width:100%;padding:0 12px;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;line-height:1.12;text-wrap:balance}
@media(max-width:720px){#game #announce{font-size:clamp(17px,5.2vw,25px);padding:0 14px}}

/*162: compact tower labels remain below unobstructed portraits.*/
#tower-list .tower-card-title{display:flex;align-items:baseline;justify-content:center;gap:4px;padding:0 3px;max-width:100%;font-size:11px;line-height:1.1}
#tower-list .tower-card-title b{font-size:10px;color:#b9a7bf}
#tower-list .tower-card-title strong{font-size:11px;overflow-wrap:anywhere}
#tower-list li>span{font-size:10px;line-height:1.1;letter-spacing:0}
#tower-list li:has(>img){padding-bottom:4px;gap:3px}
#tower-list li.current{cursor:pointer}
#tower-list li.current:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(max-width:720px){#tower-list{gap:5px}#tower-list li>img{max-height:clamp(65px,12svh,100px)}#tower .tower-stage{gap:7px}#tower h2{margin-bottom:6px}.versus-intro>img{max-height:75px}}

@media(max-width:720px){#tower #unknown-rival{min-height:75px;font-size:34px}#tower .versus-intro{row-gap:8px}#tower .versus-intro .start{margin-top:4px}}

#restart-arcade-warning{max-width:min(380px,90vw);padding:24px;background:#23152c;color:#fff;border:2px solid #ffd36c;border-radius:12px}#restart-arcade-warning::backdrop{background:#000b}#restart-arcade-warning h2{font-size:22px}#restart-arcade-warning p{line-height:1.5}#restart-arcade-warning button{display:block;width:100%;padding:13px 8px;margin-top:10px;background:#423047;border:1px solid #c5aabc;border-radius:6px;font-weight:bold}#restart-arcade-warning button[value=cancel]{background:#eac065;color:#241522}

#select#select .selection-footer .language-option{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;color:#ffe0b2}#select#select .selection-footer .language-option select{min-height:38px;background:#211725;color:#fff;border:1px solid #a77c75;border-radius:5px;padding:6px 10px}
