/* v0.23.6: cinematic private-room entrance and readable match HUD */
.mg-emblem{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;isolation:isolate;margin-inline:auto;overflow:visible;background:transparent}
.mg-emblem>img,.mg-emblem>video{display:block;width:100%;height:100%;object-fit:contain;background:none;border:0;border-radius:0;box-shadow:none;margin:0;filter:drop-shadow(0 0 14px #b478ff55)}
.mg-emblem>video{position:absolute;inset:0;opacity:0;pointer-events:none}
.mg-emblem>video.video-ready{opacity:1}.mg-emblem:has(video.video-ready)>img{opacity:0}
html[data-motion="off"] .mg-emblem>video{opacity:0}html[data-motion="off"] .mg-emblem>img{opacity:1}
.lobby-shell{position:relative;isolation:isolate;min-height:100svh;max-width:none;padding:24px clamp(16px,4vw,64px) 40px;background:transparent}
.lobby-cinematic-scene{position:fixed;inset:0;z-index:-1;pointer-events:none;background:url('assets/night-city.svg') center/cover #120b25;overflow:hidden}
.lobby-cinematic-scene video{width:100%;height:100%;object-fit:cover;opacity:.65;display:block}
.lobby-cinematic-scene:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 18%,#8b42bc20,transparent 46%),linear-gradient(180deg,#0b071b22,#100a20aa 50%,#080711f0);pointer-events:none}
.lobby-top{position:relative;max-width:1440px;margin:auto;display:flex;justify-content:flex-end;min-height:44px;z-index:1}
.lobby-top button{background:#211633de;border:1px solid #9271c780;border-radius:10px;padding:12px 20px;font-size:14px;box-shadow:0 4px 15px #0004}
.lobby-shell main{position:relative;max-width:1080px;margin:0 auto}
.lobby-masthead{text-align:center;margin:-26px auto 28px;max-width:700px}.lobby-masthead .mg-emblem{width:clamp(180px,25vh,290px);margin-bottom:0}
.lobby-masthead .eyebrow{font-size:12px;letter-spacing:3px;color:#cdb1f5}.lobby-masthead h1{font-size:clamp(32px,4vw,52px);font-weight:800;letter-spacing:-.02em;margin:8px 0;color:#fff;text-shadow:0 0 24px #c58aff44}
.lobby-masthead p{font-size:16px;margin:5px 0 14px;color:#e0d5f2}.lobby-beta-label{display:inline-block;font-size:12px;letter-spacing:.06em;padding:6px 12px;border:1px solid #b790ee44;border-radius:30px;color:#e1cafa;background:#20152da0}
.lobby-shell #lobby-status:empty{display:none}.lobby-shell #lobby-status{margin:12px 0;text-align:center}
.lobby-shell .lobby-pair{gap:20px}.lobby-shell .lobby-box{background:linear-gradient(145deg,#2b2043f2,#151022f5 68%);border:1px solid #a278df66;border-radius:18px;box-shadow:0 22px 55px #03020888,inset 0 1px #e7d1ff16;padding:clamp(18px,2.6vw,30px);font-size:15px;min-width:0}
.lobby-shell .lobby-box h2{font-size:25px;letter-spacing:-.02em;margin:0 0 12px;color:#fff}.lobby-panel-kicker{font-size:11px;font-weight:750;color:#cfacff;letter-spacing:2px;margin:0 0 10px}.lobby-description{font-size:14px;color:#c8badc;line-height:1.5;margin:0 0 22px}
.lobby-shell .lobby-box label{font-size:14px;font-weight:600;color:#e5d8fa}.lobby-shell .lobby-box input,.lobby-shell .lobby-box select{font-size:15px;min-height:42px;background:#120d22d9;border-color:#9b79cb70}.lobby-shell .lobby-box button{font-size:14px}.lobby-shell .lobby-box button.primary{background:linear-gradient(110deg,#653ec6,#a34bd9);border-color:#c29aff;box-shadow:0 5px 18px #7d3ac54a;min-height:48px;font-weight:750}
.lobby-entrance #lobby-join input{font-size:22px;letter-spacing:.26em;text-align:center}.lobby-entrance .lobby-pair{align-items:stretch}.lobby-shell .lobby-footer{font-size:12px;color:#bca9d9;margin-top:24px;text-align:center}
.lobby-in-room .lobby-masthead .mg-emblem{width:clamp(120px,17vh,180px)}.lobby-in-room .lobby-masthead h1{font-size:32px}.lobby-in-room .lobby-masthead{margin-bottom:20px}.lobby-in-room .lobby-member{font-size:14px}.lobby-in-room .lobby-timer-row span{font-size:14px}.lobby-in-room .lobby-stepper input{min-height:36px}
/* Both game modes: typography and role artwork */
.match-header-label{font-size:12px;color:#d2b6f4;font-weight:750;letter-spacing:.12em}.match-shell .match-header{gap:10px;min-height:50px}.match-shell .header-actions{margin-left:auto}.match-shell .header-actions button,.om-header button{font-size:13px;padding:8px 12px}
.match-shell .match-meta{padding:12px 16px}.match-shell .phase-strip{max-width:none;gap:5px}.match-shell .phase-strip span{font-size:13px;line-height:1.4;padding:7px 10px;color:#d0c2e6;border-radius:5px 5px 0 0}.match-shell .phase-strip span.current{color:#fff;border-color:#d8b4ff;background:#7e4bb54d}.match-shell .match-timing>strong{font-size:17px}.match-shell .hud-timer span{font-size:28px}.match-shell .match-meta .eyebrow{font-size:12px}
.log-brand{display:block;text-align:center;padding:0 0 13px;margin-bottom:14px}.log-brand .mg-emblem{width:min(100%,190px)}.log-brand .mg-emblem img{width:100%;height:100%;border-radius:0;box-shadow:none;margin:0}.log-brand .log-motto{font-size:11px;font-weight:700;letter-spacing:2px;color:#d3b9fc}
.match-shell .stage{background:radial-gradient(ellipse at 50% 30%,#58377a40,transparent 65%),linear-gradient(180deg,#17132de0,#0c0e20cf),url('assets/night-city.svg') center/cover}.match-shell .stage.night{background:radial-gradient(ellipse at 50% 30%,#334f8650,transparent 65%),linear-gradient(180deg,#101b38b8,#080b19e8),url('assets/night-city.svg') center/cover}.match-shell .stage .sub{font-size:12px}.match-shell .phase-hint{font-size:14px;color:#c3b9da}.match-shell .stage h2{font-size:clamp(24px,2.6vw,38px)}
.match-shell .game-log-panel,.match-shell .chat-panel,.match-shell .roster,.match-shell .identity{padding:16px}.match-shell .chat-heading h3,.match-shell .roster h3{font-size:17px}.match-shell .chat-heading .small,.match-shell .chat-status{font-size:12px;color:#c2b6d7}.match-shell .event-entry,.match-shell .player-message,.match-shell .player-message strong,.match-shell .input input,.match-shell .input button{font-size:14px;line-height:1.5}.match-shell .chat-panel .row button{font-size:14px;padding:7px 13px}.match-shell .empty-chat{font-size:14px;line-height:1.5}.match-shell .roster .player{font-size:15px;min-height:37px;padding:6px 8px}.match-shell .roster .player .num,.match-shell .roster .player small{font-size:12px}.match-shell .roster .player button{font-size:13px;padding:5px 8px}
.match-shell .game .identity{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:0;min-height:0;overflow:visible;flex:none}.match-shell .identity>.eyebrow{font-size:13px;letter-spacing:1.5px;margin-bottom:8px}.match-shell .game .identity .identity-art{display:block;align-self:center;width:min(100%,240px);max-width:240px;height:auto;aspect-ratio:auto;object-fit:contain;object-position:center;margin:8px auto 10px;padding:0;border-radius:12px;filter:drop-shadow(0 0 12px #8058b955);animation:none}.match-shell .identity-name{font-size:22px;text-align:center}.match-shell .identity-faction{font-size:12px;text-align:center;margin:5px 0}.match-shell .identity-info{border-top:1px solid #6c50794d;padding:8px 0 0;margin:12px 0 0;line-height:1.5}.match-shell .identity-info h4,.om-role-info h4{font-size:13px;color:#cbb2fa;letter-spacing:.08em;margin:12px 0 5px}.match-shell .identity-info p,.om-role-info p{font-size:15px;color:#ece5f7;line-height:1.55;margin:0 0 12px}.match-shell .identity-info button{font-size:14px;padding:9px}.match-shell .private-updates{font-size:14px;max-height:none}
.om-shell .om-grid h2{font-size:17px;letter-spacing:.08em}.om-shell .om-grid p,.om-shell .om-grid .om-player,.om-shell .om-grid input,.om-shell .om-grid button{font-size:15px;line-height:1.5}.om-shell .om-grid small{font-size:13px}.om-shell .om-card-frame{width:min(100%,300px);max-width:300px}.om-shell .om-card{object-fit:contain!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important}.om-role-name{text-align:center;font-size:23px;margin:8px 0 4px}.om-role-faction{text-align:center;color:#ddd0ef;font-size:12px;letter-spacing:1.4px}.om-role-info{border-top:1px solid #a78cdb33;margin:15px 0;padding-top:4px}.om-shell .om-intel-entry small{font-size:12px}.om-shell .om-scroll p{line-height:1.5}.om-shell .om-log-panel .log-brand .mg-emblem{width:min(100%,190px)}
@media(min-width:1000px){.match-shell .game{grid-template-columns:minmax(200px,.85fr) minmax(300px,2.2fr) minmax(300px,1.35fr);height:auto;min-height:max(650px,calc(100svh - 160px));grid-template-rows:minmax(310px,1.2fr) minmax(290px,1fr);align-items:stretch}.match-shell .match-right{overflow:visible}.match-shell .game-log-panel .log-feed{max-height:650px;min-height:180px}.match-shell .chat-panel .chat{max-height:430px;min-height:140px}.match-shell .phase-strip{flex:1.3}.match-shell .match-timing{flex:1}}
@media(max-width:999px){.match-shell .game{grid-template-columns:minmax(0,1fr) minmax(245px,35%)}.match-shell .game-log-panel{max-height:450px;min-height:240px}.match-shell .log-brand .mg-emblem{width:115px}.match-shell .phase-strip{justify-content:center}.match-shell .phase-strip span{padding:5px 7px}}
@media(max-width:700px){.lobby-shell{padding:14px 14px 28px}.lobby-masthead{margin:0 auto 20px}.lobby-shell .lobby-pair{grid-template-columns:1fr}.lobby-shell .lobby-box{padding:20px}.match-shell .game{grid-template-columns:1fr}.match-shell .match-right{grid-column:1;grid-row:auto;display:flex}.match-shell .phase-strip{display:flex;width:100%;flex-wrap:wrap}.match-shell .phase-strip span{font-size:12px}.match-shell .identity-info p{font-size:15px}.match-shell .game .identity .identity-art{width:min(100%,240px)}.match-shell .match-header-label{display:none}.match-shell .header-actions{margin:0}.match-shell .match-timing{flex-wrap:wrap;justify-content:center}.om-shell .om-grid{grid-template-columns:1fr}}
/* Absolute media layers keep the emblem's intrinsic aspect independent of video metadata. */
.mg-emblem{display:block;height:auto;min-height:0;aspect-ratio:1/1}
.mg-emblem>img,.mg-emblem>video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
.lobby-masthead .mg-emblem{width:clamp(170px,24vh,250px)}
@media(min-width:1000px){.match-shell .game{height:max(660px,calc(100svh - 158px));min-height:0;grid-template-rows:minmax(260px,1.1fr) minmax(230px,1fr)}.match-shell .match-right{overflow:auto}.match-shell .roster .player{min-height:29px;margin:3px 0;padding:3px 7px}.match-shell .roster .player small{line-height:1.1}.match-shell .roster .player .grow small:empty{display:none}.match-shell .game .identity .identity-art{width:min(100%,220px);max-width:220px}.match-shell .game-log-panel .log-feed,.match-shell .chat-panel .chat{min-height:0;max-height:none}}
@keyframes mgEmblemFloat235{0%,100%{transform:translateY(0);filter:drop-shadow(0 0 12px #b478ff44)}50%{transform:translateY(-4px);filter:drop-shadow(0 0 22px #b478ff77)}}
.mg-emblem>img{animation:mgEmblemFloat235 7s ease-in-out infinite}
html[data-motion="off"] .mg-emblem>img{animation:none}
@media(prefers-reduced-motion:reduce){.mg-emblem>img{animation:none}}
@media(min-width:900px) and (max-height:1000px){.lobby-entrance .lobby-masthead .mg-emblem{width:clamp(145px,20vh,210px)}.lobby-entrance .lobby-masthead h1{font-size:42px;margin:4px 0}.lobby-entrance .lobby-masthead p{margin:4px 0 9px}.lobby-entrance .lobby-masthead{margin-bottom:20px}.lobby-entrance .lobby-box{padding:22px}.lobby-entrance .lobby-description{margin-bottom:12px}.lobby-entrance .lobby-box form{gap:8px}.lobby-entrance .lobby-box input,.lobby-entrance .lobby-box select{min-height:38px}.lobby-entrance .lobby-box button.primary{min-height:44px}}
@media(min-width:1000px){.match-shell .roster .player .grow{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.match-shell .roster .player .grow small{display:inline;margin:0}.match-shell .roster .player .name{font-size:14px}.match-shell .roster .player .grow small:empty{display:none}.match-shell .roster{max-height:355px;overflow:auto}.match-shell .game .identity .identity-art{width:min(100%,220px);max-width:220px}}
