/* Korean home controls are complete generated images: plate + icon + label.
   Keep semantic DOM labels for accessibility and the other four locales. */
html[lang=ko] #start-panel :is(.lobby-tool-card,.lobby-start,.bottom-nav button,.lobby-side-actions>button,.lobby-destination>button)>:is(strong,span:not(#journey-summary)),
html[lang=ko] body[data-phase=ready] .lobby-settings-label{
 position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;
}
html[lang=ko] #start-panel :is(.lobby-start,.bottom-nav button,.lobby-side-actions>button,.lobby-destination>button)>.game-icon,
html[lang=ko] #start-panel .bottom-nav .data-icon,
html[lang=ko] body[data-phase=ready] .lobby-settings>.game-icon{display:none}
html[lang=ko] #start-panel .lobby-tool-card{
 background-image:url('https://worldruncdn.ttok.im/assets/v1/8f8b9dc405c88bcfd36a8b5175495304c89e49bf28c990aecdb77e3b902a9076/tools-ko.webp');background-size:300% 100%;padding:0;border:0;box-shadow:0 5px 0 #0b45604d,0 8px 12px #102e4b40;overflow:hidden;
}
html[lang=ko] #start-panel .lobby-start{
 background:#ffe431 url('https://worldruncdn.ttok.im/assets/v1/28f3187438dff7ecd2d53c9da8a14b9db73537295dad61f787d0e50d8b8ed356/start-ko.webp') center/100% 150% no-repeat;border:0;padding:0;box-shadow:0 5px 0 #bd6c15,0 9px 17px #08345655;
}
html[lang=ko] #start-panel .bottom-nav{
 background-image:url('https://worldruncdn.ttok.im/assets/v1/0a247913239b2d4a2832c853d06e2387c5a6fd85781f1940e2e2411e2d8c4ce4/navigation-ko.webp');background-size:100% 198%;border-radius:27px;overflow:hidden;
}
html[lang=ko] #start-panel .bottom-nav button{padding:0}
html[lang=ko] .lobby-side-actions>button{
 width:88px;height:100px;min-height:0;padding:0;border:0;border-radius:23px;background:#15cfc4 url('https://worldruncdn.ttok.im/assets/v1/1b134f002ef8c5cfcfb6fd0753eae1164cb35b0fff3c42ed09dc1cb9a202b049/side-ko.webp') 0 50%/200% 100% no-repeat;box-shadow:0 4px 8px #102a5140;
}
html[lang=ko] .lobby-side-actions>.lobby-mission-button{background-position:100% 50%}
html[lang=ko] body[data-phase=ready] .lobby-settings,
html[lang=ko] .lobby-destination>button{
 background:#eaf7ff url('https://worldruncdn.ttok.im/assets/v1/2cea3033c922abd4b9629a0b2e3fe377a4480a55adb4d3eb8ea2fd87bbd8158a/utility-ko.webp') 0 50%/300% 212% no-repeat;border:0;padding:0;min-width:78px;width:78px;height:44px;border-radius:22px;box-shadow:0 3px 5px #142d4730;
}
html[lang=ko] .lobby-destination>button{width:104px;min-width:90px;height:45px;background-position:50% 50%;background-color:#22e7dc}
html[lang=ko] body[data-city=tokyo] .lobby-destination>.japan-flag{display:none}
html[lang=ko] body[data-city=tokyo] #lobby-city-name{
 display:block;flex:none;width:103px;height:41px;overflow:hidden;text-indent:-9999px;background:url('https://worldruncdn.ttok.im/assets/v1/2cea3033c922abd4b9629a0b2e3fe377a4480a55adb4d3eb8ea2fd87bbd8158a/utility-ko.webp') 100% 50%/300% 212% no-repeat;border-radius:9px;
}
html[lang=ko] .lobby-destination-copy{gap:0}
html[lang=ko] #mode-label{padding-left:5px}
html[lang=ko] body[data-phase=ready] .lobby-wallet :is(.item-icon,.game-icon){display:none}
html[lang=ko] body[data-phase=ready] .resource-label{
 display:block;flex:none;width:52px;height:27px;overflow:hidden;text-indent:-9999px;border-radius:5px;background:url('https://worldruncdn.ttok.im/assets/v1/83f677b4d6f156cf36b3333c21b4a961000f69227acc886870ddad7c07506978/status-ko.webp') 0 16.6667%/200% 400% no-repeat;
}
html[lang=ko] body[data-phase=ready] .hearts-pill .resource-label{width:50px;background-position:100% 16.6667%}
html[lang=ko] body[data-phase=ready] .lobby-data .resource-label{width:74px;height:29px;background-position:0 83.3333%}
html[lang=ko] #start-panel .lobby-record>.game-icon{display:none}
html[lang=ko] #start-panel .lobby-record>span{
 display:block;width:92px;height:27px;overflow:hidden;text-indent:-9999px;background:url('https://worldruncdn.ttok.im/assets/v1/83f677b4d6f156cf36b3333c21b4a961000f69227acc886870ddad7c07506978/status-ko.webp') 100% 83.3333%/200% 400% no-repeat;
}
/* The saved runner owns the center of the home stage, independent of picker focus. */
#lobby-stage .showcase-name[hidden]{display:none!important}
@media(max-width:370px){
 html[lang=ko] body[data-phase=ready] .lobby-settings{min-width:61px;width:61px;height:44px;background-size:300% 180%}
 html[lang=ko] body[data-phase=ready] .resource-label{width:47px;height:25px}
 html[lang=ko] body[data-phase=ready] .hearts-pill .resource-label{width:44px}
 html[lang=ko] body[data-phase=ready] .lobby-data .resource-label{width:64px;height:26px}
 html[lang=ko] .lobby-side-actions>button{width:73px;height:86px;border-radius:20px}
 html[lang=ko] .lobby-destination>button{width:91px;min-width:84px}
}
@media(max-height:700px){
 html[lang=ko] .lobby-side-actions>button{width:67px;height:76px;border-radius:18px}
 html[lang=ko] body[data-city=tokyo] #lobby-city-name{width:91px;height:34px}
 html[lang=ko] #start-panel .lobby-record>span{width:84px;height:22px}
}
@media(orientation:landscape) and (max-height:550px){
 html[lang=ko] .lobby-side-actions>button{width:56px;height:64px;border-radius:16px}
 html[lang=ko] .lobby-destination>button{width:84px;min-width:75px}
}

/* Side tools free the road in front of the runner. Keep native square cells. */
:root{--lobby-footer:calc(var(--lobby-start) + 64px);--lobby-side-width:88px;--lobby-side-height:100px;--lobby-tool-side:84px}
#start-panel .lobby-tools{
 position:absolute;top:calc(var(--lobby-head) + 113px + var(--lobby-side-height) + 30px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);
 width:min(calc(100% - 30px),550px);height:auto;display:grid;grid-template-columns:var(--lobby-tool-side) var(--lobby-tool-side);grid-auto-rows:var(--lobby-tool-side);justify-content:space-between;gap:12px 0;padding:0;pointer-events:none;
}
#start-panel .lobby-tools>.lobby-tool-card{width:var(--lobby-tool-side);height:var(--lobby-tool-side);min-height:44px;pointer-events:auto;border-radius:21px}
#start-panel .lobby-tool-outfit{grid-column:1;grid-row:1}
#start-panel .lobby-tool-skill{grid-column:1;grid-row:2}
#start-panel .lobby-tool-gear{grid-column:2;grid-row:1}
#start-panel .lobby-tool-card>strong{font-size:16px}
#start-panel .lobby-bottom{height:var(--lobby-footer);grid-template-rows:54px var(--lobby-start);gap:10px}
#start-panel .lobby-record{height:54px;min-height:54px;padding:2px 15px;gap:9px;flex-shrink:0}
#start-panel .lobby-record b{font-size:18px;line-height:1.2;flex:none}
html[lang=ko] #start-panel .lobby-record>span{
 flex:none;width:120px;height:48px;background-size:240px 240px;background-position:right -153px;
}
html[lang=ko] body[data-city=tokyo] .lobby-destination>.japan-flag{display:none!important}
@media(max-width:370px){:root{--lobby-side-width:73px;--lobby-side-height:86px;--lobby-tool-side:68px}}
@media(max-height:700px){
 :root{--lobby-footer:122px;--lobby-side-width:67px;--lobby-side-height:76px;--lobby-tool-side:56px}
 #start-panel .lobby-tools{top:calc(var(--lobby-head) + 80px + var(--lobby-side-height) + 27px + env(safe-area-inset-top));gap:8px 0}
 #start-panel .lobby-tools>.lobby-tool-card{border-radius:16px}
 #start-panel .lobby-tool-card>strong{font-size:12px}
 #start-panel .lobby-bottom{grid-template-rows:54px var(--lobby-start);gap:8px}
 #start-panel .lobby-stage{bottom:calc(var(--floor-space) + 8px)}
}
@media(orientation:landscape) and (max-height:550px){
 :root{--lobby-footer:122px;--lobby-tool-side:60px}
 #start-panel .lobby-tools{left:75%;top:auto;bottom:224px;width:44%;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:60px;gap:8px}
 #start-panel .lobby-tools>.lobby-tool-card{width:100%;height:60px;grid-row:1;grid-column:auto}
 #start-panel .lobby-stage{bottom:8px}
}
