/* The entire character-select cabinet is one fixed 16:9 composition: no roster or page scrolling. */
#select-screen.red-screen{--stone:#65615e;--stone-edge:#282523;--stone-light:#99938e;--select-green:#28f437;--select-red:#fa3533;font-family:'FK Select',Impact,'Arial Narrow',sans-serif;color:#fff1b8;background:radial-gradient(ellipse at 50% 30%,#89827d 0%,#66615e 50%,#383432 100%);}
#select-screen.red-screen::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;background:repeating-linear-gradient(0deg,#fff2 0 1px,transparent 1px 4px),repeating-linear-gradient(103deg,#20181544 0 1px,transparent 1px 6px);mix-blend-mode:soft-light}
#select-screen .select-header{top:1.4%;left:3%;right:3%;align-items:center;z-index:3}
#select-screen .select-header>div{display:flex;flex-direction:column;gap:.15cqw}
/* A complete local alphabet keeps every label in the same condensed arcade face. */
#select-screen .select-header h2{margin:0;max-width:80cqw;font:normal 4.1cqw/.98 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.015em;text-transform:uppercase;white-space:nowrap;color:#f79427;background:linear-gradient(180deg,#ffe8b0 0%,#ffc15b 22%,#ff9d2e 47%,#fb791a 66%,#dd4a0b 92%,#a92b08 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke:.012em #a5470c;filter:drop-shadow(.14cqw .25cqw 0 #160d0a)}
#select-screen .select-header .eyebrow{font:normal .85cqw/1.2 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.2em;color:#f5e5bb;text-shadow:0 .12cqw .18cqw #17120d;text-transform:uppercase}
#select-screen .select-difficulty{display:block;margin-top:.25cqw;color:#ffe4a2;font:normal .95cqw/1.1 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.13em;text-transform:uppercase;text-shadow:0 2px 3px #160d0a}
#select-screen .select-header .quiet-button{font:normal .98cqw/1.1 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#fff3d1;text-shadow:0 .12cqw .18cqw #17120d}
#select-screen #select-canvas{z-index:0;pointer-events:none}
#select-screen .select-side{z-index:1;top:auto;bottom:8.5%;width:22%;pointer-events:none;text-shadow:0 2px 4px #17120d,0 0 10px #17120d}
#select-screen .select-side.left{left:2%}#select-screen .select-side.right{right:2%}
#select-screen .select-side h3{font:normal 2.05cqw/1.05 'FK Select',Impact,'Arial Narrow',sans-serif;margin:.25cqw 0 .1cqw;letter-spacing:.04em;color:#ffe0a3;text-transform:uppercase}
#select-screen .select-side p{font:normal .92cqw/1.2 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.12em;margin:.2cqw 0;color:#f7ead0;text-transform:uppercase}
#select-screen .select-side .player-tag{font:normal .98cqw/1 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.1em;background:#1b1b17d9;color:var(--select-green);border:1px solid var(--select-green);padding:.2cqw .6cqw}
#select-screen .select-side.right .player-tag{color:var(--select-red);border-color:var(--select-red)}
#select-screen .select-center{z-index:2;left:26%;right:26%;top:16%;gap:.6cqw}
#select-screen .roster-frame{position:relative;width:100%;padding:1.15cqw 1.35cqw 1.4cqw;border:.45cqw ridge #9b948d;background:linear-gradient(125deg,#4e4b48,#716c68 49%,#4b4643);box-shadow:0 .45cqw 0 #24211f,0 .9cqw 1.2cqw #161210aa,inset 0 0 0 .25cqw #282624,inset 0 0 0 .5cqw #aaa49c;}
#select-screen .roster-frame::before{content:"";position:absolute;inset:.65cqw;border:1px solid #aaa69a99;pointer-events:none;box-shadow:inset 0 0 .8cqw #24201f}
#select-screen .roster-grid{position:relative;display:grid;grid-template-columns:repeat(var(--columns,2),minmax(0,1fr));grid-auto-rows:auto;gap:.6cqw;width:100%;max-height:32cqw;overflow-y:auto;padding:.25cqw;justify-items:stretch}
#select-screen .roster-grid.four-fighters{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;overflow:visible}
#select-screen .roster-grid.four-fighters .fighter-tile:nth-child(1){grid-column:1}
#select-screen .roster-grid.four-fighters .fighter-tile:nth-child(2){grid-column:4}
#select-screen .roster-grid.four-fighters .fighter-tile:nth-child(3){grid-column:2;grid-row:2}
#select-screen .roster-grid.four-fighters .fighter-tile:nth-child(4){grid-column:3;grid-row:2}
#select-screen .roster-grid.five-fighters{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible}
#select-screen .roster-grid.five-fighters .fighter-tile:nth-child(4){grid-column:1;grid-row:2}
#select-screen .roster-grid.five-fighters .fighter-tile:nth-child(5){grid-column:2;grid-row:2}
#select-screen .roster-grid.five-fighters .fighter-tile{aspect-ratio:4/3}
#select-screen .roster-grid.six-fighters{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible}
#select-screen .roster-grid.six-fighters .fighter-tile{aspect-ratio:4/3}
#select-screen .fighter-tile{aspect-ratio:4/5;border:.25cqw ridge #77716c;background:#1a1514;box-shadow:0 .2cqw .4cqw #171210b8;transform:none;transition:filter .15s,box-shadow .15s}
#select-screen .roster-grid.five-fighters .fighter-tile:nth-child(4),#select-screen .roster-grid.five-fighters .fighter-tile:nth-child(5){transform:translateX(50%)}
#select-screen .roster-grid.five-fighters .fighter-tile:hover{filter:brightness(1.15)}
#select-screen .fighter-tile:hover{transform:none;filter:brightness(1.15)}
#select-screen .fighter-tile canvas{object-fit:cover}
#select-screen .fighter-tile .tile-name{font:normal .83cqw/1.05 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.015em;padding:.34cqw .12cqw;background:linear-gradient(transparent,#090606ec 30%);color:#fff0ca;text-shadow:0 1px 2px #000}
#select-screen .tile-markers{top:.35cqw;left:.4cqw;right:.4cqw;z-index:2}
#select-screen .tile-markers span{font:normal 1.25cqw/1 'FK Select',Impact,'Arial Narrow',sans-serif;color:var(--select-green);border:0;background:transparent;padding:0;text-shadow:0 2px 2px #000}
#select-screen .tile-markers span:nth-child(2){color:var(--select-red);border:0;background:transparent}
#select-screen .fighter-tile.cursor-one,#select-screen .fighter-tile.locked-one{outline:.5cqw solid var(--select-green);outline-offset:-.15cqw;z-index:1}
#select-screen .fighter-tile.cursor-two,#select-screen .fighter-tile.cursor-cpu,#select-screen .fighter-tile.locked-two{box-shadow:0 0 0 .5cqw var(--select-red),0 .2cqw .4cqw #171210b8;z-index:1}
#select-screen .fighter-tile.cursor-one.cursor-two,#select-screen .fighter-tile.locked-one.cursor-cpu,#select-screen .fighter-tile.cursor-one.cursor-cpu{outline:.48cqw solid var(--select-green);outline-offset:-.15cqw;box-shadow:0 0 0 .5cqw var(--select-red),0 .2cqw .4cqw #171210b8}
#select-screen .fighter-tile:focus-visible{outline:.28cqw solid #fff736;outline-offset:.5cqw;z-index:3}
#select-screen .fighter-tile.locked-one::before,#select-screen .fighter-tile.locked-two::after{font-size:1.2cqw;bottom:1.65cqw;color:var(--select-green)}
#select-screen .fighter-tile.locked-two::after{color:var(--select-red)}
#select-screen .roster-seal{position:absolute;left:50%;top:29%;transform:translate(-50%,-50%);width:15cqw;aspect-ratio:1549/1015;display:block;pointer-events:none}
#select-screen .roster-seal img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 .15cqw .3cqw #211e1c)}
#select-screen .roster-grid:not(.four-fighters)+.roster-seal{display:none}
#select-screen .join-prompt{font:normal 1cqw/1.1 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.08em;color:#76f46d;min-height:1.2em;margin:.4cqw 0 0;text-shadow:0 2px 2px #171210;text-transform:uppercase}
#select-screen .lock-actions{gap:.8cqw}
#select-screen .lock-actions button{font:normal 1cqw/1 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#ffd88e;background:#302c28dd;border:.2cqw ridge #aaa49a;padding:.35cqw .8cqw;box-shadow:0 .2cqw #211d1b}
#select-screen .lock-actions button:hover,#select-screen .lock-actions button:focus-visible{background:#48413a;color:white}
#select-screen .select-key{bottom:1.4%;font:normal .82cqw/1.1 'FK Select',Impact,'Arial Narrow',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#eee4cc;text-shadow:0 2px 3px #17120d;z-index:1}
@media(prefers-color-scheme:dark){#select-screen.red-screen{background:radial-gradient(ellipse at 50% 30%,#625e5c 0%,#403d3b 55%,#22201f 100%)}#select-screen .roster-frame{background:linear-gradient(125deg,#373533,#55514e 49%,#302d2b)}}
@media(prefers-reduced-motion:reduce){#select-screen .fighter-tile{transition:none}}
