/* DC UNIT character select: full-body showcase above a ten-column roster. */
#lobby{height:100dvh;min-height:0;max-width:none;padding:0 max(24px,env(safe-area-inset-right)) 30px max(24px,env(safe-area-inset-left));overflow:hidden}
#lobby:after{background:linear-gradient(#060d09a6,#08100be6),url('assets/temple.webp') center/cover}
#lobby .screen-heading{position:absolute;left:120px;right:120px;top:14px;padding:0;font-size:clamp(24px,3vw,40px);letter-spacing:3px;z-index:3;pointer-events:none}
#lobby .screen-heading>span{display:block;font:500 8px var(--body);letter-spacing:4px;color:#bcaf88;margin:0 0 8px}
#lobby .setup-grid{height:100%;width:100%;max-width:1440px;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:0;margin:0 auto}
#lobby .preview-wrap,.touch-device #lobby .preview-wrap{height:100%;width:100%;min-height:0;max-height:none;margin:0;border:0;overflow:hidden;background:transparent}
#lobby .preview-wrap canvas,.touch-device #lobby .preview-wrap canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;mask-image:linear-gradient(transparent,#000 12%,#000 70%,transparent);opacity:.8}
.selection-hero{position:absolute;bottom:43px;top:58px;width:36%;left:6%;pointer-events:none;isolation:isolate}
.selection-hero:before{content:'';position:absolute;left:16%;right:16%;bottom:0;height:13px;background:radial-gradient(ellipse,#000a,transparent 70%);z-index:-1}
.selection-hero img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 8px #0008);transform-origin:center bottom;animation:selectBreathe 5s ease-in-out infinite}
.hero-rival{left:auto;right:6%}.hero-rival img{transform:scaleX(-1);animation-name:rivalBreathe;animation-delay:-2s}
@keyframes selectBreathe{50%{transform:scale(1.004,1.008)}}@keyframes rivalBreathe{50%{transform:scale(-1.004,1.008)}}
#lobby .preview-names,.touch-device #lobby .preview-names{left:7%;right:7%;bottom:7px;z-index:2;align-items:flex-end}
#lobby .preview-names h2,.touch-device #lobby .preview-names h2{font-size:clamp(24px,3.3vw,44px);margin:5px 0 3px;letter-spacing:1px}
#lobby .preview-names small{font-size:8px;color:#e2b965}#lobby .preview-names .opponent-name small{color:#78c7db}
#lobby .preview-names div>span,.touch-device #lobby .preview-names div>span{display:block;font-size:8px;letter-spacing:1px;color:#bbb99f}
#lobby .preview-names .versus,.touch-device #lobby .preview-names .versus{left:50%;bottom:8px;font-size:48px;opacity:.65;color:#d9b77e}
#lobby .console,.touch-device #lobby .console{width:100%;max-width:none;align-self:end;margin:0;display:grid;grid-template-columns:1fr 1fr;grid-template-areas:'roster roster' 'rival actions' 'options options';gap:9px 20px;align-items:center}
#lobby .roster,.touch-device #lobby .roster{grid-area:roster;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));width:100%;max-width:none;max-height:none;gap:7px;padding:4px 2px;overflow:visible;margin:5px 0 0}
#lobby .fighter-card,.touch-device #lobby .fighter-card,#lobby .fighter-slot{height:clamp(76px,13dvh,135px);width:100%;min-width:0;max-width:none;flex:none;border:1px solid #91826966;position:relative;background:linear-gradient(155deg,#544d3977,#0a110de6);overflow:hidden;box-shadow:0 4px 12px #0006;border-radius:0}
#lobby .fighter-card img{position:absolute;left:0;top:0;width:100%;height:290%;object-fit:cover;object-position:center top;opacity:.9;filter:saturate(.6);transition:filter .15s,opacity .15s}
#lobby .fighter-card:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(transparent 35%,#050906e8 95%)}
#lobby .fighter-card.selected{border:2px solid #f0ce83;box-shadow:0 0 0 2px #d7b36733,0 0 20px #e5b65033}
#lobby .fighter-card.rival{border:2px solid #75c4d6;box-shadow:0 0 0 2px #4fbed322,0 0 16px #58b8d122}
#lobby .fighter-card.selected img,#lobby .fighter-card.rival img,#lobby .fighter-card:hover img{filter:saturate(1);opacity:1}
#lobby .fighter-card .fighter-number{display:none;z-index:3;top:3px;left:3px;padding:2px 4px;font:700 9px var(--body)}
#lobby .fighter-card.selected .fighter-number{display:block;background:#be8534;color:#fff3d1}#lobby .fighter-card.rival .fighter-number{display:block;background:#226a81;color:#def7fa}
#lobby .fighter-caption,.touch-device #lobby .fighter-caption{z-index:2;left:3px;right:3px;bottom:6px;text-align:center}
#lobby .fighter-caption b,.touch-device #lobby .fighter-caption b{display:block;font-size:clamp(10px,1.45vw,20px);white-space:nowrap;overflow:hidden;text-overflow:clip;letter-spacing:.2px;line-height:1}
#lobby .fighter-caption small{display:block;font:500 clamp(6px,.7vw,8px) var(--body);letter-spacing:.7px;color:#c3c3ac;margin-top:5px;white-space:nowrap;overflow:hidden}
#lobby .fighter-slot.empty{border:1px solid #b69d6533;background:linear-gradient(155deg,#8574470c,#040b0866);display:grid;place-items:center;box-shadow:inset 0 0 20px #0003}
#lobby .fighter-slot.empty span{font:800 clamp(15px,2.5vw,32px) var(--display);letter-spacing:-1px;color:#a2946d22;border:1px solid #8e805c22;border-radius:50%;width:44px;height:44px;line-height:42px;text-align:center}
#lobby .fighter-detail,#lobby .look-picker{display:none}#lobby .rival-picker{grid-area:rival;justify-content:flex-start;gap:10px;margin:0}
#lobby .rival-picker button{font:600 10px var(--body);letter-spacing:.6px;min-height:38px;text-align:left}
#lobby .selection-actions{grid-area:actions;justify-content:flex-end;gap:22px;margin:0}#lobby .selection-actions .primary-button{min-width:200px;min-height:42px;justify-content:center;padding:9px 18px;font-size:18px}#lobby .selection-actions .text-button{font-size:9px}
#lobby .match-options{grid-area:options;justify-content:center;margin:0;gap:25px;min-height:28px}#lobby .match-options label:first-child{font-size:8px;gap:9px}#lobby .match-options select{font-size:10px;padding:5px 8px}
#lobby .console-bottom{height:24px;padding:4px max(24px,env(safe-area-inset-right)) 4px max(24px,env(safe-area-inset-left));font-size:8px;gap:12px;flex-wrap:nowrap}#lobby .console-bottom .text-button{font-size:8px}#lobby .console-bottom>span:first-child{font-size:8px}
.game-logo span{letter-spacing:.24em;padding-left:.24em}#title-screen .game-logo span{font-size:clamp(48px,6vw,90px)}
@media(max-height:600px){
#lobby,.touch-device #lobby{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:21px}
#lobby .screen-heading,.touch-device #lobby .screen-heading{font-size:22px;top:9px;left:110px;right:110px;letter-spacing:2px}#lobby .screen-heading>span{font-size:6px;margin-bottom:4px;letter-spacing:2px}
.selection-hero{top:35px;bottom:31px;width:36%;left:5%}.hero-rival{left:auto;right:5%}
#lobby .preview-names,.touch-device #lobby .preview-names{bottom:4px;left:4%;right:4%}#lobby .preview-names h2,.touch-device #lobby .preview-names h2{font-size:22px;margin:2px 0}#lobby .preview-names small{font-size:6px}#lobby .preview-names div>span,.touch-device #lobby .preview-names div>span{font-size:6px;letter-spacing:.5px}#lobby .preview-names .versus,.touch-device #lobby .preview-names .versus{font-size:30px;bottom:2px}
#lobby .roster,.touch-device #lobby .roster{gap:4px;margin:3px 0 0;padding:2px}#lobby .fighter-card,.touch-device #lobby .fighter-card,#lobby .fighter-slot{height:clamp(59px,18dvh,88px)}
#lobby .fighter-slot.empty span{width:27px;height:27px;line-height:25px;font-size:18px}#lobby .fighter-caption,.touch-device #lobby .fighter-caption{bottom:4px}#lobby .fighter-caption b,.touch-device #lobby .fighter-caption b{font-size:clamp(9px,1.4vw,14px)}#lobby .fighter-caption small{font-size:5px;letter-spacing:.2px;margin-top:3px}
#lobby .console,.touch-device #lobby .console{gap:2px 12px}#lobby .rival-picker button,.touch-device #lobby .rival-picker button{min-height:32px;font-size:8px;padding:4px 0}#lobby .selection-actions,.touch-device #lobby .selection-actions{gap:14px}#lobby .selection-actions .primary-button,.touch-device #lobby .selection-actions .primary-button{min-width:146px;font-size:14px;padding:6px 12px;min-height:32px}#lobby .selection-actions .text-button,.touch-device #lobby .selection-actions .text-button{font-size:7px;min-height:30px}
#lobby .match-options,.touch-device #lobby .match-options{min-height:24px;margin:0;gap:18px}#lobby .match-options label:first-child,.touch-device #lobby .match-options label:first-child{font-size:6px}#lobby .match-options select,.touch-device #lobby .match-options select{font-size:8px;padding:2px 5px}#lobby .match-options .blood-toggle,.touch-device #lobby .match-options .blood-toggle{font-size:6px}
#lobby .console-bottom,.touch-device #lobby .console-bottom{height:20px;padding-top:3px;padding-bottom:3px}#lobby .console-bottom .text-button,.touch-device #lobby .console-bottom .text-button{font-size:6px}#lobby .console-bottom>span:first-child{font-size:6px}
}
@media(max-width:600px) and (orientation:portrait){#lobby .screen-heading{left:12px;right:12px;top:53px;font-size:24px}.selection-hero{top:100px;width:46%;left:0}.hero-rival{left:auto;right:0}#lobby .preview-names h2{font-size:19px}#lobby .preview-names div>span{display:none}#lobby .fighter-caption small{display:none}#lobby .fighter-caption b{font-size:7px}#lobby .roster{gap:2px}#lobby .fighter-slot.empty span{font-size:12px;width:20px;height:20px;line-height:18px}#lobby .rival-picker button{font-size:7px}#lobby .selection-actions{gap:5px}#lobby .selection-actions .primary-button{min-width:105px;font-size:11px;padding:6px}#lobby .selection-actions .text-button{display:none}}
@media(prefers-reduced-motion:reduce){.selection-hero img{animation:none}}

.touch-device #lobby .console-bottom>span:first-child{font-size:0}.touch-device #lobby .console-bottom>span:first-child:after{content:"TAP A FIGHTER";font-size:7px}
body:not(.touch-device):has(#game:not([hidden])) .screen-toggle{right:calc(3% + 105px)}
.game-top{position:relative}body:not(.touch-device) #game-mode{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap}
