.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid #e7a64a;outline-offset:4px}
.comfort-dialog{color:#f4efe6;background:#17191d;border:1px solid #ffffff30;border-radius:20px;padding:28px;width:min(480px,calc(100vw - 32px));max-height:85vh;overflow:auto;font:14px/1.6 var(--sans,system-ui)}
.comfort-dialog::backdrop{background:#050810b3;backdrop-filter:blur(5px)}
.comfort-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.comfort-dialog h2{font-family:var(--serif,Georgia);font-size:28px;font-weight:400;line-height:1.1;margin:0}
.comfort-dialog p{color:#d0cdc5}.comfort-dialog label{display:grid;grid-template-columns:22px 1fr;column-gap:10px;margin:24px 0;font-weight:600}.comfort-dialog label span{grid-column:2;font-weight:400;color:#bab9b4;font-size:12px}.comfort-dialog input{accent-color:#dfb46e;width:18px;height:18px;margin-top:3px}.comfort-dialog label.comfort-quality{display:flex;justify-content:space-between;align-items:center}.comfort-dialog select{font:inherit;background:#272b31;color:#f4efe6;padding:8px;border:1px solid #ffffff38;border-radius:7px}.comfort-dialog details{padding:14px 0;border-top:1px solid #ffffff25}.comfort-dialog summary{cursor:pointer}.comfort-dialog output{display:block;color:#d3c5a6;font-size:12px;margin-bottom:10px}.comfort-dialog details button{border:1px solid #ffffff40;padding:8px 12px;border-radius:8px}.comfort-close{width:40px;height:40px;font-size:26px}.comfort-done{display:block;margin-top:20px;width:100%;padding:12px;border-radius:999px;background:#f4efe6;color:#17191d;font-weight:600}
.top-tools{display:flex;gap:8px;align-items:center}.comfort-open{min-height:40px}.recovery-banner{position:fixed;left:50%;top:20%;transform:translateX(-50%);z-index:120;max-width:90vw;background:#20242a;color:#fff;border:1px solid #e7a64a;border-radius:14px;padding:24px}.recovery-banner button{background:#f4efe6;color:#17191d;padding:10px 18px;border-radius:8px}
.diagnostics-panel{position:fixed;left:8px;bottom:90px;z-index:90;max-width:min(560px,95vw);max-height:25vh;overflow:auto;white-space:pre-wrap;background:#080b0fe8;color:#dce7da;padding:10px;font:11px/1.5 monospace;pointer-events:none}
html[data-reduced-motion=true] *,html[data-reduced-motion=true] *::before,html[data-reduced-motion=true] *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
@media(max-width:700px){.topbar{flex-wrap:wrap;gap:8px}.topbar .nav{order:3;max-width:100%;width:100%;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}.nav button{white-space:nowrap;min-height:36px}.topbar .wordmark{flex:1}.topbar .lbl{display:none}.comfort-open{font-size:10px;letter-spacing:.05em}.panel{top:130px;bottom:145px}.comfort-dialog{padding:20px}}
.top-tools{flex-shrink:0}.top-tools button{white-space:nowrap}.wordmark{flex-shrink:0}
@media(min-width:861px) and (max-width:1450px){.topbar{flex-wrap:wrap;gap:10px}.topbar .nav{order:3;flex-basis:100%;justify-content:center;max-width:100%;box-sizing:border-box}.panel{top:140px}.minimap{top:145px}.search{top:140px}}
/* Tablet widths share the wrapped navigation; mobile panels follow its height. */
@media(min-width:701px) and (max-width:860px){.topbar{flex-wrap:wrap;gap:8px}.topbar .nav{order:3;flex-basis:100%;max-width:100%;overflow-x:auto;justify-content:flex-start;box-sizing:border-box}.nav button{white-space:nowrap;min-height:44px}.panel,.search{top:140px}.minimap{top:145px}}
@media(max-width:700px){
 .topbar{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));padding:0;box-sizing:border-box}
 .topbar .wordmark{min-width:0}.top-tools{gap:5px}.top-tools button{min-width:40px;min-height:44px;padding-left:10px;padding-right:10px}
 .topbar .nav{flex-basis:100%;box-sizing:border-box}.nav button{min-height:44px;padding:10px 13px}
 .panel,.search{top:142px;max-height:calc(100dvh - 300px);overflow-y:auto}.search-in input{min-width:0;width:100%}
 .bottombar{bottom:max(14px,env(safe-area-inset-bottom))}.timebar{box-sizing:border-box;max-width:100%;min-width:0}
 .comfort-dialog{max-height:calc(100dvh - 32px);box-sizing:border-box}.comfort-dialog select{max-width:48%}
 .joy-ud button{min-width:44px;min-height:44px}
}
@media(max-width:390px){.topbar .wm-b{font-size:19px}.topbar .wm-a{font-size:8px}.top-tools{gap:3px}.top-tools button{padding-left:8px;padding-right:8px}.comfort-open{font-size:9px}.time-chips button{font-size:8px}}
@media(max-height:520px) and (orientation:landscape){.topbar .nav{max-height:44px}.panel,.search{top:115px;bottom:80px;max-height:calc(100dvh - 195px)}.joy{bottom:80px!important;width:92px!important;height:92px!important}.joy-ud{bottom:84px!important;left:116px!important}}
/* The compact navigation remains docked below the time controls. */
@media(max-width:860px){.bottombar{bottom:calc(64px + env(safe-area-inset-bottom))}.topbar .nav{left:0;right:0;bottom:0;width:100%;border-radius:0}.nav button[data-panel=about]{display:block}}
@media(max-height:520px) and (orientation:landscape){.bottombar{flex-direction:row;align-items:flex-end;gap:8px;padding:6px}.timebar{flex:1}.right-tools .zone-name{display:none}.joy{bottom:140px!important;width:80px!important;height:80px!important}.joy-ud{bottom:144px!important;left:104px!important}}

/* Direct, keyboard-accessible walking exit; no panel navigation required. */
.walk-hud{position:fixed;left:50%;top:100px;transform:translateX(-50%);z-index:35;display:flex;align-items:center;gap:16px;padding:10px 16px;border-radius:24px;color:#f5eee2;font:12px/1.4 system-ui,sans-serif;max-width:calc(100vw - 32px)}
.walk-hud[hidden]{display:none}.walk-hud button{border:1px solid #ffffff60;border-radius:18px;background:#29231ee0;color:#fff;padding:9px 14px;white-space:nowrap;cursor:pointer}
.skip-scene{position:fixed;top:8px;left:8px;z-index:1000;padding:12px 18px;border-radius:10px;background:#f4e7cd;color:#201b16;transform:translateY(-160%)}.skip-scene:focus{transform:none}
@media(max-width:760px){.walk-hud{top:112px;gap:8px;padding:8px 12px}.walk-hud span{max-width:140px;font-size:11px}.walk-hud button{font-size:11px;padding:9px}}
@media(max-height:500px){.walk-hud{top:70px}.walk-hud span{display:none}}

.city-dialog{color:#f3eadb;background:#24211ded;border:1px solid #8e7855;border-radius:20px;width:min(850px,calc(100vw - 32px));max-height:85dvh;padding:24px;box-shadow:0 20px 80px #0008}.city-dialog::backdrop{background:#0008;backdrop-filter:blur(5px)}.city-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.city-dialog h2{font:26px Georgia,serif;margin:0}.city-dialog p{line-height:1.6}.city-dialog button,.city-dialog input,.city-dialog select,.city-selected button{font:inherit;color:inherit;background:#ffffff0c;border:1px solid #c4ac7e66;border-radius:9px;padding:10px 12px}.city-dialog select option{background:#29251f}.city-dialog button,.city-dialog select{cursor:pointer}.city-filters{display:flex;flex-wrap:wrap;gap:8px}.city-filters input{flex:1;min-width:180px}.city-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.city-results article{border:1px solid #c4ac7e33;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:6px}.city-results article button{text-align:left;color:#ffe4a9}.city-results small,.city-source{color:#c6bbab;font-size:12px}.city-dialog a,.city-selected a{color:#f3d392}.city-selected{position:fixed;right:20px;bottom:155px;z-index:50;padding:16px;border-radius:16px;max-width:min(340px,80vw);display:flex;flex-wrap:wrap;gap:10px}.city-selected strong,.city-selected span,.city-selected small{flex-basis:100%}.city-selected[hidden]{display:none}.city-selected small{font-size:11px}.city-selected button{padding:4px 8px}@media(max-width:600px){.city-results{grid-template-columns:1fr}.city-dialog{padding:16px}.city-selected{bottom:170px;right:10px}.city-dialog h2{font-size:21px}}
.nav>button:last-child{white-space:nowrap}
