﻿main{max-width:1440px;padding-top:24px}main>.eyebrow,footer{display:none}.home-screen{min-height:calc(100vh - 150px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:45px 0 80px}.home-screen h1{font-size:clamp(70px,12vw,160px);letter-spacing:-3px;margin:22px 0 8px}.home-screen h1 span{display:block}.home-screen>p{margin:8px 0 35px}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:20px;width:min(800px,100%)}.mode-card{padding:30px;text-align:left;background:linear-gradient(135deg,#242733,#17191f);border:1px solid #53525b;border-bottom:4px solid var(--orange);transition:transform .15s}.mode-card:hover{transform:translateY(-5px)}.mode-card span{display:block;font-size:10px;color:#ffac6d;letter-spacing:2px}.mode-card strong{display:block;font:800 clamp(24px,3vw,37px) 'Barlow Condensed',sans-serif;margin:16px 0 10px}.mode-card small{display:block;font-weight:400;line-height:1.6;color:#b4b5bf;letter-spacing:0}.panel{border-color:#42434d;background:radial-gradient(ellipse at top,#262a38,#16181f 70%);margin-bottom:0;min-height:calc(100vh - 150px)}.selection-stage{display:grid;grid-template-columns:minmax(220px,420px) 1fr;align-items:center;gap:35px;border-top:1px solid #45434a;border-bottom:1px solid #45434a;background:radial-gradient(ellipse at 25% 95%,#bf623a30,transparent 65%);margin-bottom:25px}.selection-stage canvas{width:100%;max-height:350px;object-fit:contain}.selection-info{padding:25px 35px 25px 0}.selection-info h2{font-size:clamp(38px,5vw,70px);text-transform:uppercase;line-height:1;margin:15px 0}.selection-info h3{color:#ffba69;letter-spacing:1px;margin:24px 0 0}.selection-info p{max-width:600px;margin:10px 0}.move-key{display:inline-block;border:1px solid #615b4c;padding:9px 12px;color:#d9c497;font-size:10px;letter-spacing:1px}.roster{grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.fighter:hover,.fighter.chosen{transform:none}.fighter.chosen{box-shadow:0 0 0 2px #ff9c55,0 0 25px #ff742933;border-color:#ffd3a0}.fighter.chosen:after{content:'P1';position:absolute;top:8px;right:8px;background:#ff773d;color:#16181f;padding:4px 6px;font-size:10px}.fighter .portrait{height:135px}.fighter-info{padding:12px 8px}.fighter h3{font-size:19px;margin:0}.fighter p,.fighter .power{display:none}#ready{width:100%;margin:25px 0 0}#match-setup{text-align:center;padding:80px 15px}#match-setup h2{font-size:64px}#match-setup select{font-size:24px;padding:18px 40px;margin:20px;max-width:100%}#match-setup #start-match{display:block;margin:25px auto;min-width:240px}#result{background:radial-gradient(ellipse at center,#513526f5,#10141bf5);padding:20px;overflow:auto;gap:6px}#result h2{font-size:clamp(24px,3.5vw,49px);margin:0;color:#ffe1a4;line-height:1.1}#victory-portrait{height:clamp(100px,19vw,235px);width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 0 20px #ffb34c40)}#result p{margin:0;text-align:center;font-size:12px}.result-actions{display:flex;gap:12px;margin-top:10px}#hall-of-fame{max-width:90%;color:#c9b99a!important;font-size:10px!important;margin-top:12px!important}#victory-label{color:#ffcb78}.controls{padding-bottom:20px}.headright .live{display:none}@media(max-width:800px){.panel{padding:16px}.selection-stage{grid-template-columns:150px 1fr;gap:12px}.selection-stage canvas{max-height:265px}.selection-info{padding:20px 0}.selection-info h2{font-size:34px}.selection-info h3{font-size:13px;margin-top:14px}.selection-info p{font-size:11px;line-height:1.6}.move-key{font-size:8px;padding:6px}.roster{grid-template-columns:repeat(4,minmax(0,1fr))}.fighter:last-child{grid-column:auto}.fighter .portrait,.fighter:last-child .portrait{height:100px}.fighter h3{font-size:16px}.fighter .number{font-size:8px;left:6px;top:6px}.home-screen{padding-top:15px}.mode-options{grid-template-columns:1fr;max-width:420px;gap:14px}.mode-card{padding:22px}.mode-card strong{font-size:29px;margin:10px 0}.home-screen h1{font-size:80px}.result-actions .primary,.result-actions .secondary{padding:10px 16px}#result{padding:10px;gap:3px}#victory-portrait{height:90px}#hall-of-fame{display:none}#result p{font-size:10px}#match-setup{padding:55px 0}#match-setup h2{font-size:46px}}@media(prefers-reduced-motion:reduce){.mode-card{transition:none}}
/* Keep each arcade screen inside the current window. */
html,body{height:100%;height:100dvh;overflow:hidden}header{height:56px;padding:0 24px}header .brand{font-size:22px}.brandmark{padding:4px 6px}main{height:calc(100dvh - 56px);padding:10px 24px;max-width:1440px}.home-screen{min-height:0;height:100%;padding:0}.panel{height:100%;min-height:0;padding:14px 20px;margin:0;display:flex;flex-direction:column}.section-top{margin-bottom:6px;min-height:32px}.section-top h2{font-size:30px;margin:0}.panel>#connection{margin:4px 0;font-size:12px}.panel .section-top .eyebrow{display:none}#select{display:flex;flex-direction:column;flex:1;min-height:0}.arenas{margin:6px 0;font-size:11px}.arenas select{padding:8px 12px}.selection-stage{flex:1;min-height:0;margin:0 0 10px;grid-template-columns:minmax(160px,32%) 1fr;gap:20px;overflow:hidden}.selection-stage canvas{height:100%;max-height:260px;min-height:0;object-fit:contain}.selection-info{padding:10px 18px 10px 0}.selection-info h2{font-size:clamp(28px,4vw,48px);margin:8px 0}.selection-info h3{margin:10px 0 0;font-size:15px}.selection-info p{font-size:12px;line-height:1.5;margin:6px 0}.selection-info .eyebrow{font-size:9px}.move-key{font-size:8px;padding:6px 8px}.fighter .portrait,.fighter:last-child .portrait{height:clamp(50px,10dvh,100px)}.fighter-info{padding:7px}.fighter h3{font-size:17px}#ready{padding:12px;margin-top:10px;min-height:40px}.roster{flex:none}#match-setup{padding:20px 0;margin:auto}#match-setup h2{font-size:48px}#game{height:100%;display:flex;flex-direction:column;align-items:stretch;gap:8px}#game>.section-top{flex:none;margin:0}#game>.canvas-wrap{width:min(100%,calc((100dvh - 175px)*1.9642857));aspect-ratio:1100/560;align-self:center;flex:none;min-height:0}#fight{width:100%;height:100%;object-fit:contain}#game>.asset-status{display:none}#game>.dialogue-caption{padding:4px 10px;min-height:22px;font-size:11px;line-height:1.4;margin:0}#game>.controls{padding:2px 0;flex-wrap:wrap;margin:0;gap:6px;justify-content:center}#game>.controls kbd{padding:2px 5px}#game>.touch{margin:0;gap:5px}#result{overflow:hidden}#result h2{font-size:clamp(20px,3vw,42px)}#victory-portrait{height:min(19dvh,190px)}#hall-of-fame{margin-top:5px!important}.result-actions{margin-top:5px}.result-actions button{padding:10px 18px}
@media(max-width:800px){header{height:50px;padding:0 14px}header .brand{font-size:21px}.headright{gap:0}main{height:calc(100dvh - 50px);padding:8px 12px}.panel{padding:10px}.section-top h2{font-size:26px}.section-top .subtle{padding:7px}.panel>#connection{font-size:10px;line-height:1.4;margin:4px 0}.arenas{gap:8px;align-items:center;margin:5px 0}.arenas label{flex-direction:row;align-items:center;gap:5px;font-size:8px}.arenas select{max-width:145px;font-size:10px;padding:7px}.arenas>span{font-size:9px}.selection-stage{grid-template-columns:minmax(90px,35%) 1fr;gap:10px;margin-bottom:8px}.selection-info{padding:8px 0}.selection-info h2{font-size:30px}.selection-info h3{font-size:12px;margin-top:8px}.selection-info p{font-size:10px;line-height:1.4;margin:5px 0}.selection-info .eyebrow{font-size:7px;letter-spacing:1px}.move-key{font-size:7px;padding:5px}.fighter .portrait,.fighter:last-child .portrait{height:clamp(40px,8dvh,70px)}.fighter-info{padding:5px}.fighter h3{font-size:13px}.roster{gap:6px}.fighter.chosen:after{font-size:8px;top:4px;right:4px;padding:2px 4px}#ready{margin-top:8px;padding:10px;min-height:36px}#game>.canvas-wrap{width:min(100%,calc((100dvh - 245px)*1.9642857))}#game>.touch{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}#game>.touch button{padding:10px 4px;font-size:9px}#game>.controls{font-size:8px;gap:5px}#game>.section-top .eyebrow{font-size:8px;letter-spacing:1px}#game>.section-top .subtle{font-size:9px;padding:5px}#victory-portrait{height:clamp(35px,11dvh,80px)}#result{gap:2px;padding:6px}#result h2{font-size:clamp(16px,4vw,28px)}#victory-label{font-size:8px;letter-spacing:1px}#result p{font-size:9px}.result-actions button{font-size:9px;padding:7px 14px}.mode-options{max-width:650px}.mode-card{padding:24px}.mode-card strong{font-size:30px}}
@media(max-height:600px){.panel{padding:8px 12px}.panel>.section-top{min-height:24px}.section-top h2{font-size:23px}.selection-info h2{font-size:26px}.selection-info h3{font-size:12px}.selection-info p{font-size:10px}.selection-info .move-key,.selection-info>.eyebrow,.selection-info>#selected-tag{display:none}.selection-stage{gap:10px}.fighter .portrait,.fighter:last-child .portrait{height:40px}.fighter h3{font-size:12px}.fighter-info{padding:4px}.roster{grid-template-columns:repeat(7,minmax(0,1fr))}#ready{min-height:30px;padding:7px;margin-top:6px}.arenas{margin:3px 0}.arenas select{padding:4px}.panel>#connection{margin:2px 0}.selection-info h3{margin-top:5px}.selection-info p{margin:4px 0}#game>.canvas-wrap{width:min(100%,calc((100dvh - 150px)*1.9642857))}#game>.controls,#game>.dialogue-caption{display:none}#game>.touch{display:flex;justify-content:center;flex-wrap:nowrap}#game>.touch button{padding:8px 10px;font-size:8px}.mode-options{grid-template-columns:1fr 1fr}.mode-card{padding:18px}#match-setup{padding:0}#match-setup h2{font-size:32px}#match-setup p{font-size:11px;margin:8px}#match-setup select{padding:8px 22px;margin:10px;font-size:20px}#match-setup #start-match{margin:12px auto;padding:10px}}
/* Preview and move details on the left, expandable fighter grid on the right. */
#select{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,36%);grid-template-rows:auto minmax(0,1fr) auto;column-gap:18px;row-gap:8px}#select>.arenas{grid-column:1/-1;grid-row:1}#select>.selection-stage{grid-column:1;grid-row:2;margin:0;grid-template-columns:minmax(120px,35%) minmax(0,1fr);gap:14px}#select>#picks{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;grid-auto-rows:max-content;overflow:auto;min-height:0;padding:3px;scrollbar-width:thin;scrollbar-color:#ff884c #23252e;gap:8px}#select>#ready{grid-column:1/-1;grid-row:3;margin-top:0}#picks .fighter{min-width:0}#picks .fighter:last-child{grid-column:auto}#picks .portrait{height:clamp(65px,14dvh,140px)}#picks .fighter h3{font-size:16px}#select .selection-info{padding-right:10px;min-width:0}#selected-stats.super-stats{color:#ffe0a3;background:#ffad4714;border-left:3px solid #ffb85d;padding:9px 10px;font-size:11px;font-weight:700;line-height:1.5;letter-spacing:.5px;margin:12px 0}#victory-label{text-transform:none;font-size:18px;letter-spacing:1px}
@media(max-width:1000px){#select{grid-template-columns:minmax(0,1fr) minmax(200px,34%)}#select>#picks{grid-template-columns:repeat(2,minmax(0,1fr))}#select>.selection-stage{grid-template-columns:minmax(100px,34%) minmax(0,1fr)}}
@media(max-width:600px){#select{grid-template-columns:minmax(0,1fr) minmax(115px,38%);column-gap:10px;row-gap:6px}#select>.selection-stage{display:flex;flex-direction:column;justify-content:center;gap:0;align-items:stretch}#select .selection-stage canvas{flex:1;min-height:40px;max-height:190px;width:100%;height:auto;object-fit:contain}#select .selection-info{padding:6px 0;flex:none}#select .selection-info h2{font-size:25px;margin:5px 0}#select .selection-info .eyebrow,#select #selected-tag{display:none}#select .selection-info h3{font-size:11px;margin-top:7px}#select .selection-info p{font-size:10px;line-height:1.4}#select #selected-stats{font-size:9px;margin:7px 0;padding:6px;letter-spacing:0}#select .move-key{font-size:6px;padding:4px}#select>#picks{gap:6px;padding:3px;grid-template-columns:repeat(2,minmax(0,1fr))}#picks .portrait{height:clamp(48px,9dvh,82px)}#picks .fighter-info{padding:5px 3px}#picks .fighter h3{font-size:12px;overflow-wrap:anywhere}#picks .fighter .number{display:none}#picks .fighter.chosen:after{font-size:7px;padding:1px 3px;top:2px;right:2px}#victory-label{font-size:12px}}
@media(max-height:600px){#select{column-gap:12px}#picks .portrait{height:48px}#picks .fighter h3{font-size:12px}#select>#picks{grid-template-columns:repeat(3,minmax(0,1fr))}#select .selection-stage canvas{max-height:135px}#selected-stats.super-stats{font-size:9px;padding:5px;margin:6px 0}#select .selection-info h2{font-size:24px}#select .selection-info p{font-size:10px}#select .selection-info .eyebrow,#select #selected-tag{display:none}}
.selection-stage{position:relative;isolation:isolate}.map-preview{position:absolute!important;inset:0;background:url('assets/kathmandu-rooftop.png') center center/cover no-repeat;z-index:-2;opacity:.8;pointer-events:none}.selection-stage:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#11182115,#111821e6 48%,#111821f2);z-index:-1;pointer-events:none}#select .selection-stage>canvas,#select .selection-stage>.selection-info{position:relative}#game{gap:4px}#game>.section-top{min-height:22px;justify-content:flex-end}#game>.canvas-wrap{width:min(100%,calc((100dvh - 126px)*1.9642857))}#game>.dialogue-caption{display:none}#game>.controls{font-size:8px;padding:0}#game>.section-top .subtle{padding:3px 8px;font-size:9px}body:has(#game:not([hidden]))>header{display:none}body:has(#game:not([hidden]))>main{height:100dvh;max-width:none;padding:4px 8px}body:has(#game:not([hidden])) #game>.canvas-wrap{width:min(100%,calc((100dvh - 62px)*1.9642857))}@media(max-width:800px){.selection-stage:after{background:linear-gradient(0deg,#111821f7 0%,#111821d9 43%,#11182115 90%)}body:has(#game:not([hidden])) #game>.canvas-wrap{width:min(100%,calc((100dvh - 150px)*1.9642857))}#game>.touch button{padding:8px 4px}}@media(max-height:600px){body:has(#game:not([hidden])) #game>.canvas-wrap{width:min(100%,calc((100dvh - 74px)*1.9642857))}#game>.section-top{min-height:18px}.selection-stage:after{background:linear-gradient(90deg,#11182133,#111821ee 50%)} }

#career-status{margin-right:auto;font-size:11px;letter-spacing:.06em;color:#e6d5aa}@media(max-width:600px){#career-status{font-size:9px;letter-spacing:0}}

/* Keep mode choices stacked and sound available at one viewport position. */
.mode-options{grid-template-columns:minmax(0,1fr);width:min(540px,100%)}
#sound{position:fixed;top:8px;right:14px;z-index:100;min-width:112px;min-height:36px;background:#1b1c22;border:1px solid #53525b;border-radius:4px;color:var(--ink)}
body:has(#game:not([hidden])) #game>.section-top{padding-right:132px;min-height:40px}

#game #exitfight,#lobby #cancel{min-height:40px;min-width:108px;padding:10px 16px;font-size:12px;font-weight:800;color:#fff;background:#c72c38;border:1px solid #ff6b72;border-radius:6px;transition:background-color .16s,transform .16s,box-shadow .16s}
#game #exitfight:hover,#lobby #cancel:hover{background:#e13a48;box-shadow:0 4px 16px #d52e4655;transform:translateY(-2px)}
#game #exitfight:active,#lobby #cancel:active{transform:translateY(0);box-shadow:none}
@media(prefers-reduced-motion:reduce){#game #exitfight,#lobby #cancel{transition:none}#game #exitfight:hover,#lobby #cancel:hover{transform:none}}

/* Persistent header and fighting-screen side panels. */
body{padding-top:56px}
body>header,body:has(#game:not([hidden]))>header{position:fixed;inset:0 0 auto;display:flex;height:56px;padding:0 146px 0 24px;background:#121318;z-index:90}
body:has(#game:not([hidden]))>main{height:calc(100dvh - 56px);padding:12px;max-width:none}
body:has(#game:not([hidden])) #game{display:grid;grid-template-columns:120px minmax(0,1fr) 132px;grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"keys arena actions" "keys touch actions";gap:12px;height:100%;align-items:center}
body:has(#game:not([hidden])) #game>.canvas-wrap{grid-area:arena;justify-self:center;width:min(100%,calc((100dvh - 104px)*1.9642857));margin:0}
body:has(#game:not([hidden])) #game>.section-top{grid-area:actions;align-self:start;display:flex;flex-direction:column;align-items:flex-end;gap:12px;padding:0;min-height:40px;margin:0}
body:has(#game:not([hidden])) #game>.controls{grid-area:keys;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;padding:0;margin:0;font-size:10px}
body:has(#game:not([hidden])) #game>.controls>span{display:flex;align-items:center;gap:4px;white-space:nowrap}
body:has(#game:not([hidden])) #game>.touch{grid-area:touch;justify-content:center}
body:has(#game:not([hidden])) #game>.dialogue-caption,body:has(#game:not([hidden])) #game>.asset-status{display:none}
@media(max-width:800px){
 body>header,body:has(#game:not([hidden]))>header{padding-left:14px}
 body:has(#game:not([hidden]))>main{padding:8px}
 body:has(#game:not([hidden])) #game{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto auto;grid-template-areas:"arena arena" "keys actions" "touch touch";gap:8px}
 body:has(#game:not([hidden])) #game>.canvas-wrap{width:min(100%,calc((100dvh - 360px)*1.9642857))}
 body:has(#game:not([hidden])) #game>.controls{gap:5px;font-size:9px}
 body:has(#game:not([hidden])) #game>.controls kbd{padding:3px 5px;font-size:9px}
}
@media(max-height:600px){
 body:has(#game:not([hidden])) #game{grid-template-columns:105px minmax(0,1fr) 122px;grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"keys arena actions" "keys touch actions";gap:8px}
 body:has(#game:not([hidden])) #game>.canvas-wrap{width:min(100%,calc((100dvh - 124px)*1.9642857))}
 body:has(#game:not([hidden])) #game>.controls{gap:5px;font-size:8px}
 body:has(#game:not([hidden])) #game>.controls kbd{padding:3px 5px;font-size:9px}
}
