/* Approved game-lobby concept: live selected runner, tactile controls, one start action. */
:root{--lobby-width:420px;--lobby-nav:72px;--lobby-tools:104px;--lobby-start:88px;--lobby-footer:calc(var(--lobby-tools) + var(--lobby-start) + 46px);--lobby-head:122px}
.wordmark img{display:block;width:150px;height:auto;object-fit:contain}
.loading-brand img{display:block;width:240px;height:auto;margin:auto;filter:drop-shadow(0 6px 0 #071e3540)}
.lobby-settings-label,.resource-label{display:none}
.lobby-profile{display:flex;align-items:center;gap:5px}
body[data-phase=ready] .hud{top:max(9px,env(safe-area-inset-top));left:50%;right:auto;width:calc(100% - 24px);max-width:var(--lobby-width);height:112px;display:block;transform:translateX(-50%)}
body[data-phase=ready] .wordmark{display:block;position:absolute;left:50%;top:-9px;transform:translateX(-50%);filter:drop-shadow(0 3px 2px #072b5840);z-index:1}
body[data-phase=ready] .wordmark img{width:clamp(110px,29vw,142px);height:83px;object-fit:contain}
body[data-phase=ready] .lobby-wallet{position:absolute;inset:auto 0 0;display:grid;grid-template-columns:1fr .8fr 1.2fr;width:100%;height:43px;gap:0;flex:none;padding:2px 4px;background:linear-gradient(120deg,#174973f5,#092346f5);border:1px solid #98e6ff;border-radius:24px;box-shadow:inset 0 2px 3px #c9faff60,0 3px 0 #082b53,0 5px 10px #071e3533}
body[data-phase=ready] .lobby-profile{position:absolute;left:0;bottom:57px;width:116px;height:52px;display:block;border:1px solid #c0e6ffb0;border-radius:30px;background:linear-gradient(120deg,#214e73ef,#102849ed);box-shadow:0 3px 5px #113a5940}
body[data-phase=ready] .lobby-profile .avatar-chip{position:absolute;inset:0;width:100%;height:100%;min-height:44px;display:block;padding:0;background:none;border:0;box-shadow:none}
body[data-phase=ready] .avatar-face{position:absolute;left:-2px;top:-2px;width:54px;height:54px;margin:0;border:3px solid white}
body[data-phase=ready] #player-level{position:absolute;left:56px;top:4px;font-size:17px;line-height:21px}
body[data-phase=ready] #account-chip{position:absolute;left:53px;right:0;bottom:-5px;width:auto;height:44px;min-height:44px;display:flex;justify-content:flex-start;padding:9px 3px 0;background:none;box-shadow:none;border:0;border-radius:8px;font-size:11px;overflow:hidden}
body[data-phase=ready] #account-chip-label{max-width:58px;overflow:hidden;text-overflow:ellipsis}
body[data-phase=ready] #account-chip .account-glyph{display:none}
body[data-phase=ready] .lobby-wallet>.wallet-pill{position:relative;width:100%;min-height:38px;height:38px;min-width:0;max-width:none;padding:0 5px;gap:5px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:14px;overflow:visible}
body[data-phase=ready] .lobby-wallet>.wallet-pill+.wallet-pill:before{content:'';position:absolute;left:0;top:20%;height:60%;width:1px;background:#c2eaff80}
body[data-phase=ready] .lobby-wallet>.wallet-pill b{font-size:14px;overflow:hidden;text-overflow:ellipsis;min-width:0}
body[data-phase=ready] .resource-label{display:inline;font-size:11px;font-weight:850}
body[data-phase=ready] .wallet-plus,body[data-phase=ready] #hearts-timer{display:none}
body[data-phase=ready] .lobby-wallet .item-icon,body[data-phase=ready] .lobby-wallet .game-icon{width:26px;height:28px;margin:0}
body[data-phase=ready] .top-controls{position:absolute;right:0;top:3px}
body[data-phase=ready] .lobby-settings{display:flex;width:auto;min-width:70px;height:44px;gap:5px;padding:5px 10px;border-radius:18px;border:2px solid #fff;background:linear-gradient(#fff,#eaf7ff);box-shadow:0 3px 0 #7198b680,0 5px 10px #142d4730;color:#102b50;font-size:13px}
body[data-phase=ready] .lobby-settings .game-icon{width:26px;height:26px}
body[data-phase=ready] .lobby-settings-label{display:inline;font-weight:900}
#start-panel{background:#78b9db url('https://worldruncdn.ttok.im/assets/v1/662919b44fe4d166c2e8e099f04f739afc8300ba7b7e9e84020ebd9899b72c64/tokyo-game-street.webp') center 48%/cover no-repeat;--floor-space:calc(var(--lobby-nav) + var(--lobby-footer) + 28px + env(safe-area-inset-bottom))}
#start-panel:before{display:block;content:'';position:absolute;inset:68% 0 0;z-index:-1;background:linear-gradient(transparent,#103c5120)}
.lobby-destination{position:absolute;top:calc(var(--lobby-head) + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(calc(100% - 56px),480px);min-height:73px;display:flex;align-items:center;gap:12px;padding:9px 13px;border:3px solid #bd8e56;border-radius:13px;background:linear-gradient(120deg,#fff2ce,#fffdf1 45%,#f9e8c8);box-shadow:inset 0 0 0 2px #fff9e7,0 4px 0 #70442de0,0 7px 13px #1e355151;color:#102e54}
.lobby-destination:before,.lobby-destination:after{content:'';position:absolute;top:-13px;width:9px;height:22px;border:2px solid #5d432c;border-radius:5px;background:linear-gradient(90deg,#8c653c,#edc388,#6d482c);box-shadow:0 1px 2px #533627}
.lobby-destination:before{left:12px}.lobby-destination:after{right:12px}
.lobby-destination>.city-flag{display:grid;place-items:center;flex:none;width:42px;height:36px;font-size:31px;filter:drop-shadow(1px 3px 1px #384b5a30)}
.lobby-destination-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:2px}
#lobby-city-name{font-size:26px;line-height:1.1;letter-spacing:-1px}
#mode-label{font-size:11px;font-weight:850;white-space:nowrap}
.lobby-destination>button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;min-width:78px;max-width:45%;padding:5px 9px;border:1px solid #e2fffb;border-radius:17px;background:linear-gradient(#baffed,#12e3cc);color:#063c59;font-size:12px;font-weight:900;box-shadow:inset 0 2px 1px #fff,0 3px 0 #148f9c55}
.lobby-destination>button .icon-world{width:23px;height:25px}.lobby-destination>button .icon-right{width:12px;height:15px}
#start-panel .lobby-stage{position:absolute;top:calc(var(--lobby-head) + 76px + env(safe-area-inset-top));bottom:var(--floor-space);left:50%;right:auto;width:min(100%,720px);transform:translateX(-50%)}
#lobby-stage .runner-showcase canvas{touch-action:auto;pointer-events:none}
#lobby-stage .showcase-arrow{display:none}
#lobby-stage .showcase-name{min-width:104px;min-height:34px;padding:4px 17px;border:2px solid #a0fff1;border-radius:23px;background:linear-gradient(#105075,#062746);box-shadow:inset 0 2px 0 #6eecdb80,0 3px 7px #073b4740;font-size:17px;opacity:1;pointer-events:none}
.lobby-side-actions{position:absolute;left:50%;top:calc(var(--lobby-head) + 113px + env(safe-area-inset-top));transform:translateX(-50%);width:min(calc(100% - 30px),550px);display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}
.lobby-side-actions>button{position:relative;pointer-events:auto;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:2px;width:84px;min-height:98px;padding:3px 2px 5px;border-radius:24px;background:linear-gradient(140deg,#beffef,#18d9d0 70%,#0397bb);border:2px solid #b4fff2;box-shadow:inset 0 3px 0 #fff9,0 4px 0 #07668e,0 7px 12px #102a5140;color:white}
.lobby-side-actions .runner-emblem{width:65px;height:63px;background-size:cover;background-position:center;border-radius:18px;filter:none}
.lobby-side-actions strong{position:relative;display:grid;place-items:center;min-height:29px;width:calc(100% + 7px);padding:3px 4px;border:1px solid #67e7ff;border-radius:13px;background:linear-gradient(#1574a3,#074575);box-shadow:0 2px 0 #064479;font-size:13px;line-height:1.2;text-shadow:0 1px 1px #092c54}
.lobby-side-actions>.lobby-mission-button{background:linear-gradient(140deg,#e4d9ff,#8c55f4 65%,#4c26b4);border-color:#ede5ff;box-shadow:inset 0 3px 0 #fff9,0 4px 0 #452782,0 7px 12px #102a5140}
.lobby-mission-button>.game-icon{width:60px;height:61px;margin-top:-8px}
.lobby-mission-button strong{background:linear-gradient(#5c53ad,#322e78);border-color:#b9a7ff}
#journey-summary{position:absolute;top:calc(100% - 1px);left:14%;right:14%;padding:2px 3px;border:1px solid #fff;border-radius:11px;background:#e8fbff;color:#14345d;font-size:14px;font-weight:950;box-shadow:0 3px 0 #39518855}
#start-panel .lobby-bottom{position:absolute;bottom:calc(var(--lobby-nav) + 22px + env(safe-area-inset-bottom));left:50%;width:min(calc(100% - 34px),var(--lobby-width));max-width:var(--lobby-width);transform:translateX(-50%);height:var(--lobby-footer);display:grid;grid-template-rows:var(--lobby-tools) 28px var(--lobby-start);gap:9px}
#start-panel .lobby-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;height:var(--lobby-tools);flex:none;padding:0 5px}
#start-panel .lobby-tool-card{min-height:0;height:100%;padding:0 6px 9px;display:flex;justify-content:flex-end;align-items:center;gap:0;border:2px solid #b5fff1;border-radius:26px;background:linear-gradient(135deg,#a3ffdf,#12e2bb 48%,#08b6a6);box-shadow:inset 0 3px 0 #fff9,inset 0 -5px 2px #006c8030,0 5px 0 #087988,0 9px 12px #102e4b55;overflow:visible;color:white;transform:perspective(500px) rotateX(9deg);transform-origin:bottom}
#start-panel .lobby-tool-card:before{inset:4px 8px auto;height:30%;border-radius:20px;background:linear-gradient(110deg,#fff8,transparent)}
#start-panel .lobby-tool-skill{background:linear-gradient(135deg,#8ceeff,#23c4ff 48%,#087dce);border-color:#baf5ff;box-shadow:inset 0 3px 0 #fff9,inset 0 -5px 2px #023a9230,0 5px 0 #075baa,0 9px 12px #102e4b55}
#start-panel .lobby-tool-gear{background:linear-gradient(135deg,#fff8a4,#ffd537 48%,#ffa928);border-color:#fff4af;color:#0e365e;box-shadow:inset 0 3px 0 #fff9,inset 0 -5px 2px #b64e1330,0 5px 0 #b45c12,0 9px 12px #102e4b55}
#start-panel .lobby-tool-visual{position:absolute;top:-11px;width:78%;height:75%;background:none;border-radius:0;box-shadow:none}
#start-panel .lobby-tool-visual>.game-icon{width:100%;height:100%;filter:drop-shadow(0 4px 2px #10395466)}
#start-panel .lobby-tool-card>strong{font-size:clamp(17px,4.6vw,24px);line-height:1.15;text-shadow:0 2px 0 #0c4a7640}
#start-panel .lobby-tool-summary{display:none!important}
#start-panel .lobby-record{display:flex;align-items:center;justify-content:center;align-self:center;gap:7px;padding:3px 18px;margin:0;min-height:29px;max-width:100%;border:1px solid #fff;border-radius:18px;background:linear-gradient(#fffaf0,#f7eed9);color:#123258;box-shadow:0 2px 3px #11385622;text-shadow:none;font-size:12px;white-space:nowrap}
#start-panel .lobby-record .game-icon{height:22px;width:24px}#start-panel .lobby-record b{font-size:16px}
#start-panel .lobby-start{position:relative;display:flex;align-items:center;justify-content:center;gap:13px;flex:1;min-height:var(--lobby-start);width:100%;padding:6px 17px;border:3px solid #fff18a;border-radius:32px;color:#062954;background:linear-gradient(170deg,#ffff7b,#ffe832 46%,#ffcd28);box-shadow:inset 0 3px 1px #ffffec,inset 0 -6px 1px #f8971f80,0 5px 0 #bd6c15,0 9px 17px #08345655;font-weight:950;font-size:clamp(25px,6.3vw,37px);line-height:1.05;overflow:hidden}
#start-panel .lobby-start:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 4% 93%,#fff4ad 0 8%,transparent 8.5%),radial-gradient(ellipse at 96% 98%,#fff4ad 0 11%,transparent 11.5%);pointer-events:none}
#start-panel .lobby-start>*{position:relative}#start-panel .lobby-start .icon-run{width:53px;height:53px}#start-panel .lobby-start .icon-right{width:30px;height:32px;margin-left:auto}#start-panel .lobby-start>span{flex:1;text-align:center}
#start-panel .lobby-start:disabled{filter:grayscale(.6);opacity:.75}
#start-panel .bottom-nav{left:50%;width:min(calc(100% - 20px),600px);max-width:600px;bottom:calc(10px + env(safe-area-inset-bottom));min-height:var(--lobby-nav);height:var(--lobby-nav);padding:4px 5px;border:2px solid #76cfe9;border-radius:27px;background:linear-gradient(135deg,#0c517c,#0d254b 70%);box-shadow:inset 0 2px 0 #c1fbff90,0 4px 0 #082b4d,0 8px 15px #15395255;backdrop-filter:none}
#start-panel .bottom-nav button{height:100%;min-height:44px;gap:1px;padding:2px 1px;border-radius:20px;color:white;font-size:11px;line-height:1.1}
#start-panel .bottom-nav button+button:before{background:#a4d4eb55;left:-2px}
#start-panel .bottom-nav .game-icon,#start-panel .bottom-nav .data-icon{width:34px;height:34px;filter:drop-shadow(0 2px 1px #0005)}
#start-panel .bottom-nav .selected{background:linear-gradient(140deg,#adffe1,#09d5c2 60%,#04a9ba);color:white;box-shadow:inset 0 2px 0 white,0 0 0 1px #91fff0,0 3px 0 #047e91}
#start-panel .bottom-nav .selected:after{display:none}
#start-panel button:active:not(:disabled){filter:brightness(.96)}
#start-panel .lobby-tool-card:active:not(:disabled),#start-panel .lobby-start:active:not(:disabled){transform:translateY(3px)}
#start-panel button:focus-visible,.hud button:focus-visible,.hud a:focus-visible{outline:3px solid white;outline-offset:3px;box-shadow:0 0 0 6px #08788f}
@media(max-width:370px){
 :root{--lobby-head:118px}
 body[data-phase=ready] .hud{width:calc(100% - 18px);height:101px}
 body[data-phase=ready] .wordmark img{width:112px;height:73px}
 body[data-phase=ready] .lobby-profile{width:103px;bottom:50px;height:47px}
 body[data-phase=ready] .avatar-face{width:48px;height:48px}
 body[data-phase=ready] #player-level{left:49px;font-size:15px}
 body[data-phase=ready] #account-chip{left:48px;font-size:10px}
 body[data-phase=ready] .lobby-settings{min-width:59px;padding:5px 7px;font-size:11px;gap:3px}
 body[data-phase=ready] .lobby-settings .game-icon{width:21px;height:23px}
 body[data-phase=ready] .lobby-wallet>.wallet-pill{gap:3px;padding:0 3px}
 body[data-phase=ready] .lobby-wallet>.wallet-pill b{font-size:12px}
 body[data-phase=ready] .resource-label{font-size:9px}
 body[data-phase=ready] .lobby-wallet .item-icon,body[data-phase=ready] .lobby-wallet .game-icon{width:23px;height:25px}
 .lobby-destination{width:calc(100% - 36px);gap:8px;padding:7px 10px;min-height:65px}
 #lobby-city-name{font-size:23px}#mode-label{font-size:10px}
 .lobby-side-actions>button{width:71px;min-height:82px;border-radius:20px}
 .lobby-side-actions .runner-emblem{width:53px;height:53px}.lobby-mission-button>.game-icon{width:50px;height:52px}
 .lobby-side-actions strong{font-size:11px;min-height:26px}
 #start-panel .lobby-start{font-size:25px;gap:7px;padding-inline:10px}
 #start-panel .lobby-start .icon-run{width:42px;height:44px}
}
@media(max-height:700px){
 :root{--lobby-nav:60px;--lobby-tools:78px;--lobby-start:60px;--lobby-footer:177px;--lobby-head:109px}
 body[data-phase=ready] .hud{height:91px}
 body[data-phase=ready] .lobby-profile{bottom:48px;height:44px}
 body[data-phase=ready] .avatar-face{width:45px;height:45px}
 body[data-phase=ready] .wordmark img{height:62px}
 body[data-phase=ready] #player-level{font-size:14px;left:47px;top:1px}
 body[data-phase=ready] #account-chip{left:47px;font-size:10px}
 body[data-phase=ready] .lobby-profile{width:102px}
 body[data-phase=ready] .lobby-wallet{height:37px}body[data-phase=ready] .lobby-wallet>.wallet-pill{height:33px;min-height:33px}
 .lobby-destination{min-height:59px;padding-block:4px}
 #lobby-city-name{font-size:23px}#mode-label{font-size:10px}
 #start-panel .lobby-stage{top:calc(var(--lobby-head) + 58px + env(safe-area-inset-top));bottom:calc(var(--floor-space) - 6px)}
 .lobby-side-actions{top:calc(var(--lobby-head) + 80px + env(safe-area-inset-top))}
 .lobby-side-actions>button{width:66px;min-height:71px}.lobby-side-actions .runner-emblem{width:45px;height:44px}.lobby-mission-button>.game-icon{width:45px;height:45px}.lobby-side-actions strong{min-height:25px;font-size:10px}
 #start-panel .lobby-tool-card{border-radius:20px;padding-bottom:6px}#start-panel .lobby-tool-card>strong{font-size:18px}
 #start-panel .lobby-bottom{gap:7px}#start-panel .lobby-record{min-height:25px;font-size:11px}#start-panel .lobby-record b{font-size:14px}
 #start-panel .lobby-start{font-size:27px;border-radius:25px}#start-panel .lobby-start .icon-run{width:43px;height:43px}
 #start-panel .bottom-nav .game-icon,#start-panel .bottom-nav .data-icon{width:29px;height:29px}
 #start-panel .bottom-nav button{font-size:10px}
 #lobby-stage .showcase-name{min-height:29px;min-width:87px;font-size:14px;padding:3px 12px}
}
@media(orientation:landscape) and (max-height:550px){
 :root{--lobby-width:620px;--lobby-head:110px;--lobby-tools:70px;--lobby-footer:168px}
 body[data-phase=ready] .hud{max-width:none;width:calc(100% - 28px)}
 body[data-phase=ready] .lobby-wallet{width:46%;right:auto}
 body[data-phase=ready] .wordmark{left:60%;top:-7px}
 .lobby-destination{left:25%;width:42%;top:108px;min-height:54px}
 #start-panel .lobby-stage{left:25%;width:48%;top:158px;bottom:8px}
 .lobby-side-actions{left:25%;width:45%;top:176px}
 .lobby-side-actions>button{width:55px;min-height:64px}.lobby-side-actions strong{font-size:9px}
 #start-panel .lobby-bottom{left:75%;width:44%;bottom:88px}
 #start-panel .bottom-nav{left:75%;width:46%;bottom:12px}
 #start-panel .lobby-tools{gap:10px}
}
@media(prefers-reduced-motion:reduce){#start-panel button{transition:none}}
/* Keep legacy summary specificity and global HUD visibility out of the lobby. */
#start-panel #wardrobe-worn{display:none!important}
body[data-phase=ready]:is([data-dialog],[data-settings],[data-collection]) .hud{display:none}
/* Resource actions retain 44px hit areas even on the shortest phone layout. */
body[data-phase=ready] .lobby-wallet{height:47px}
body[data-phase=ready] .lobby-wallet>.wallet-pill{height:44px;min-height:44px}
body[data-phase=ready] .lobby-profile .avatar-chip{width:54px}
@media(max-width:370px),(max-height:700px){body[data-phase=ready] .lobby-profile .avatar-chip{width:46px}}
#journey-summary{white-space:nowrap}
@media(orientation:landscape) and (max-height:550px){#journey-summary{font-size:12px}}
/* Approved opaque button plates carry artwork; all functional labels stay live. */
#start-panel .lobby-tool-gear{background:#ffd432 url('https://worldruncdn.ttok.im/assets/v1/7c9d6d549f83602b07de32ea0b52aa0ca975cae5628cdf9fd21432ca47c8d1df/items-button.webp') center/100% 100% no-repeat}
#start-panel .lobby-tool-gear:before,#start-panel .lobby-tool-gear .lobby-tool-visual{display:none}
#start-panel .lobby-start{background:#ffdf28 url('https://worldruncdn.ttok.im/assets/v1/263d21de6819eb05351ecf1a147ee69eb3709e7a752216da8b5a2ee2bc0d4295/start-button.webp') center/100% 130% no-repeat}
#start-panel .lobby-start:before{display:none}
#start-panel .lobby-start>.game-icon{visibility:hidden}

/* Reference artwork is a skin over independent, localized, keyboard-usable buttons. */
#start-panel .lobby-start{display:grid;grid-template-columns:24% 1fr 10%;gap:0;padding:4px 8px;font-size:clamp(28px,8vw,42px);border-radius:38px}
#start-panel .lobby-start>span{min-width:0;white-space:nowrap;font-weight:950;letter-spacing:-.8px}
#start-panel .lobby-tools{padding:0;gap:12px}
#start-panel .lobby-record{justify-self:center;width:max-content}
#start-panel .lobby-tool-card{background-image:url('https://worldruncdn.ttok.im/assets/v1/e6b8e1e7d11dd7db0a530079c6ad97314d6d9f78d53fe1d1db60474162fe6b16/tool-buttons.webp');background-size:300% 100%;background-repeat:no-repeat;background-position:0 50%;transform:none;border-radius:26px;padding-bottom:8px}
#start-panel .lobby-tool-skill{background-position:50% 50%}
#start-panel .lobby-tool-gear{background-position:100% 50%}
#start-panel .lobby-tool-card:before,#start-panel .lobby-tool-visual{display:none}
#start-panel .lobby-tool-card>strong{font-size:clamp(20px,5.2vw,28px);font-weight:950;text-shadow:0 2px 1px #07345b50}
#start-panel .bottom-nav{width:min(calc(100% - 20px),440px);max-width:440px;background:#0b325f url('https://worldruncdn.ttok.im/assets/v1/b30e8557abe8cd2f1fdcbe4a98cb838b415fe3c3440f6d4b07543c8afb87a2ab/navigation.webp') center/100% 166% no-repeat;padding:0;border:0;border-radius:27px;gap:0;box-shadow:0 4px 0 #073255,0 7px 13px #143d5a66}
#start-panel .bottom-nav button{justify-content:flex-end;padding:0 1px 8px;font-size:12px;font-weight:900;text-shadow:0 1px 2px #082541}
#start-panel .bottom-nav .game-icon,#start-panel .bottom-nav .data-icon{visibility:hidden;height:39px;margin:0}
#start-panel .bottom-nav button.selected{background:transparent;box-shadow:none}
#start-panel .bottom-nav button+button:before{display:none}
#start-panel .bottom-nav .nav-dot{top:10%;right:18%;width:10px;height:10px;box-shadow:0 2px 3px #08254180}
@media(max-height:700px){
 :root{--lobby-tools:72px;--lobby-footer:166px}
 #start-panel .lobby-bottom{bottom:calc(var(--lobby-nav) + 20px + env(safe-area-inset-bottom));grid-template-rows:var(--lobby-tools) 22px var(--lobby-start);gap:6px}
 #start-panel .lobby-record{min-height:22px;padding:0 15px}
 #start-panel .lobby-record .game-icon{height:20px}
 #start-panel .lobby-stage{bottom:calc(var(--floor-space) + 8px)}
 #start-panel .lobby-start{font-size:clamp(24px,8vw,31px);border-radius:27px}
 #start-panel .lobby-tool-card{padding-bottom:5px;border-radius:20px}
 #start-panel .lobby-tool-card>strong{font-size:19px}
 #start-panel .bottom-nav button{font-size:11px;padding-bottom:6px}
}
@media(orientation:landscape) and (max-height:550px){:root{--lobby-tools:70px;--lobby-footer:164px}#start-panel .lobby-stage{bottom:8px}#start-panel .bottom-nav{width:46%}}

/* Loading uses the same Tokyo world, brand and tactile travel materials as home. */
.loading{gap:0;padding:24px 20px calc(28px + env(safe-area-inset-bottom));background:#65baff url('https://worldruncdn.ttok.im/assets/v1/662919b44fe4d166c2e8e099f04f739afc8300ba7b7e9e84020ebd9899b72c64/tokyo-game-street.webp') center/cover no-repeat;justify-content:center;isolation:isolate}
.loading:before{z-index:-1;background:linear-gradient(#52b7ff15 0%,#0d36574d 45%,#08294dd9 100%)}
.loading .loading-brand{width:min(90vw,420px);margin:-70px 0 12px;filter:drop-shadow(0 7px 6px #072b5970)}
.loading .loading-brand img{width:100%;height:auto;filter:none}
.loading-journey{display:flex;align-items:center;justify-content:center;gap:10px;width:min(65vw,250px);height:58px;margin:-14px 0 32px;filter:drop-shadow(0 3px 2px #08305255)}
.loading-journey>.game-icon{width:43px;height:43px}
.loading-journey>.icon-airplane{width:54px;height:54px;transform:rotate(-8deg)}
.loading-journey>span{flex:1;min-width:10px;border-top:3px dashed #fff8cd}
.loading-journey>.japan-flag{width:42px;height:31px;border:2px solid white;border-radius:5px;background:radial-gradient(circle,#ed3658 0 8px,#fff 8.5px)}
.loading-ticket{position:relative;width:min(100%,410px);display:flex;flex-direction:column;align-items:center;gap:12px;padding:26px 20px 24px;border:3px solid #e2b366;border-radius:24px;background:linear-gradient(140deg,#fffef2,#fff1ce);color:#0e2f55;box-shadow:inset 0 0 0 2px #fff,0 6px 0 #815236,0 14px 26px #061d4b77;text-align:center}
.loading-ticket:before,.loading-ticket:after{content:'';position:absolute;top:-12px;width:10px;height:25px;border:2px solid #735336;border-radius:8px;background:linear-gradient(90deg,#916330,#eacd8b,#865929)}
.loading-ticket:before{left:22px}.loading-ticket:after{right:22px}
#loading-title{font-size:clamp(20px,5.8vw,28px);font-weight:950;line-height:1.2;letter-spacing:-.6px}
#load-detail{display:block;min-height:38px;font-size:12px;line-height:1.55;color:#47607b;font-weight:750}
.loading-meter{display:flex;align-items:center;gap:10px;width:100%;margin-top:4px}
.loading .load-track{position:relative;flex:1;width:auto;height:26px;min-width:0;overflow:visible;border:3px solid #113b61;border-radius:20px;background:#13314d;box-shadow:inset 0 2px 3px #051827,0 2px 0 white}
.loading #load-progress{display:block;max-width:100%;height:100%;width:0;border-radius:20px;background:linear-gradient(#c7fff1,#32f0cd 30%,#05c7ae 70%,#069f94);box-shadow:inset 0 2px 0 #efffff,0 0 9px #34e7d788;transition:width .25s ease-out}
.loading .loading-plane{position:absolute;top:50%;left:clamp(12px,var(--load-progress,0%),calc(100% - 12px));transform:translate(-50%,-50%);width:38px;height:38px;border-radius:0;background:url('https://worldruncdn.ttok.im/assets/v1/139a7dc7d47fdc7076afa8e8af610043aee6a5a1cf7441a9722b67f0ddd9876c/airplane.webp') center/contain no-repeat;box-shadow:none;filter:drop-shadow(0 2px 1px #07516c);transition:left .25s ease-out}
#load-percent{width:46px;flex:none;color:#0b355c;font-size:20px;font-weight:950;font-variant-numeric:tabular-nums}
.loading #retry{margin:4px 0 0;width:100%;background:linear-gradient(#fff571,#ffce29);border-color:#e5af37;color:#113355}
@media(max-width:370px){.loading{padding-inline:16px}.loading-ticket{padding:22px 15px}.loading .loading-brand{margin-top:-30px}#load-detail{font-size:11px}}
@media(orientation:landscape) and (max-height:550px){.loading{flex-direction:row;gap:24px;padding:20px}.loading .loading-brand{width:35%;max-width:320px;margin:0}.loading-journey{display:none}.loading-ticket{width:48%;max-width:400px;padding:22px 18px}}
@media(prefers-reduced-motion:reduce){.loading #load-progress,.loading .loading-plane{transition:none}}

/* 이벤트 버튼. 오른쪽 '여행 미션' 아래에 붙어 가운데 러너를 가리지 않는다. */
.lobby-side-actions>.lobby-event-button{position:absolute;right:0;top:calc(100% + 16px);background:linear-gradient(140deg,#ffe3b0,#ff9f3c 65%,#d1631a);border-color:#ffeccb;box-shadow:inset 0 3px 0 #fff9,0 4px 0 #a34c12,0 7px 12px #102a5140}
.lobby-event-button>.game-icon{width:58px;height:58px;margin-top:-4px}
.lobby-event-button strong{background:linear-gradient(#b3611b,#8a4410);border-color:#ffd8a0}
.event-dot{position:absolute;top:1px;right:4px;min-width:21px;height:21px;padding:0 5px;display:grid;place-items:center;border-radius:11px;background:#ff4b55;border:2px solid #fff;color:#fff;font-size:12px;font-weight:950;font-style:normal;box-shadow:0 2px 4px #0a2c4a55}
