/* Orbital glass: the map remains the primary surface, with a compact bottom dock. */
:root{font-family:Nunito,system-ui,sans-serif;--hud:#322047;--hud-deep:#190e29;--accent:#c6fa4b;--mist:#e9dafa;--ink:#eee7f7;--dock-height:170px;color:var(--ink)}
body{background:#100c24}.vignette{box-shadow:inset 0 0 120px #100b2720}.is-globe .vignette{box-shadow:inset 0 0 110px #13092c38;background:radial-gradient(ellipse at 80% 40%,#6838920a,transparent 65%)}
button,input,select{accent-color:var(--accent)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.round:hover,.chunky:hover{transform:none}.round:active,.chunky:active{transform:scale(.96);box-shadow:none}
.hud-top{position:fixed;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;left:20px;right:20px;top:calc(var(--viewport-top,0px) + env(safe-area-inset-top,0px) + 14px);bottom:auto;height:100px;max-width:none;width:auto;padding:0;margin:0;background:none;border:0;border-radius:0;box-shadow:none;z-index:6;pointer-events:none}
.hud-top header.planet-brand{position:static;display:flex;align-items:center;gap:9px;transform:none;left:auto;top:auto;width:auto;max-width:62%;padding:0;margin:0;background:none;border:0;box-shadow:none;pointer-events:none;text-align:left}
.brand-orbit{width:43px;height:43px;flex:none;color:var(--accent);filter:drop-shadow(0 2px 8px #0003)}
.hud-top header h1{display:block;width:auto;max-width:none;margin:0;font-family:system-ui,sans-serif;font-size:11px;line-height:1.55;font-weight:600;letter-spacing:2.3px;color:#f6f2ed;-webkit-text-stroke:0;text-shadow:0 1px 10px #0a061dd9;white-space:nowrap}
.hud-top .top-actions{position:static;display:flex;align-items:center;gap:13px;margin:0;padding:0;pointer-events:auto}
.hud-top .language-control{position:relative;display:flex;align-items:center;gap:5px;background:none;color:#eee5fa;border:0;border-radius:8px;width:auto;min-width:56px;height:40px;padding:0;box-shadow:none}
.hud-top .language-control>span{font-size:14px;line-height:1;letter-spacing:.5px;font-weight:600}.language-chevron{width:18px;height:18px}
.hud-top .language-control select{position:absolute;inset:0;opacity:0;width:100%;height:100%;font-size:16px!important;cursor:pointer}.language-control option{background:#251936;color:#fff}
.hud-top .help{position:static;background:#21132c38;border:1px solid #d9c8ecbb;border-radius:50%;height:36px;width:36px;min-width:36px;font-size:22px;font-weight:600;color:#f3e8ff;box-shadow:none;line-height:1}.top-actions::after{content:'';height:26px;width:1px;background:#b186ce55;order:-1;display:none}
.hud-top .count{position:absolute;top:61px;right:0;display:flex;align-items:center;flex-wrap:nowrap;gap:0;max-width:calc(100% - 12px);min-height:32px;background:#241431a8;border:1px solid #b185d6;border-radius:30px;padding:6px 12px;color:#f0e7f7;-webkit-text-stroke:0;text-shadow:none;box-shadow:inset 0 1px 0 #e5c5ff15,0 4px 18px #160c2720;font-size:11px;font-weight:650;letter-spacing:0;white-space:nowrap;pointer-events:none;backdrop-filter:blur(10px)}
.count>span{display:inline-flex;align-items:center;gap:7px}.count>span+span::before{content:'·';margin:0 7px;color:#ceb3e1}.count .stat-symbol{font-size:0;width:0;display:none}.count>span:first-child::before{content:'';display:block;width:18px;height:18px;background:var(--accent);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 11 9-8 9 8M5 9v12h14V9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
footer{position:fixed;left:0;right:0;bottom:calc(var(--viewport-bottom,0px));transform:none;width:100%;max-width:none;display:flex;align-items:center;flex-direction:column;gap:15px;padding:25px max(18px,env(safe-area-inset-right,0px)) calc(15px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));border-radius:36px 36px 0 0;border:0;border-top:2px solid #a578c4;background:linear-gradient(165deg,#4a2d61ed,#24152ff5 65%,#1b1128f7);box-shadow:0 -10px 44px #130a2728,inset 0 1px 0 #e9cdff22;z-index:8;backdrop-filter:blur(18px);touch-action:pan-x}
.dock-grip{position:absolute;top:9px;left:50%;transform:translateX(-50%);width:35px;height:4px;border:1px solid #b18ace;border-radius:8px;background:#9f75bd55}
footer #search-form{position:relative;display:flex;gap:0;align-items:center;pointer-events:auto;min-width:0;width:min(100%,760px);height:51px;border:1px solid #aa7dc780;border-radius:40px;background:#77548b30;box-shadow:inset 0 1px 0 #ffffff08;padding:4px 5px 4px 0;margin:0}
.search-wrap{min-width:0;flex:1;height:100%;position:relative}.search-icon{position:absolute;left:17px;top:50%;transform:translateY(-50%);color:#d3b1ec;width:23px;height:23px;pointer-events:none}.search-icon svg{width:100%;height:100%}
footer #search{display:block;width:100%;min-width:0;height:100%;background:transparent;border:0;border-radius:30px;padding:0 32px 0 51px;color:#f4eaff;box-shadow:none;font-size:16px!important;font-weight:500;letter-spacing:0}
footer #search::placeholder{color:#c4a9d8;font-size:14px;font-weight:500}footer #clear-search{right:2px;top:2px;width:30px;height:36px;padding:0;color:#e7d0f6;font-size:23px;background:none;border:0}
.search-submit{display:grid;place-items:center;flex:0 0 41px;width:41px;height:41px;padding:0;border:0;border-radius:50%;background:var(--accent);color:#192b16;box-shadow:0 0 17px #c6fa4b15}.search-submit svg{width:22px;height:22px}
footer .footer-buttons{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:nowrap;overflow:visible;width:min(100%,720px);max-width:none;padding:0;background:none;border:0;border-radius:0;box-shadow:none;scrollbar-width:none}
footer .footer-buttons .chunky{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;min-width:0;min-height:47px;margin:0;padding:8px 12px;background:none;border:0;border-radius:30px;color:#d7bce9;font-size:13px;font-weight:650;box-shadow:none;white-space:nowrap}
.footer-buttons svg{height:24px;width:24px;flex:none}.footer-buttons #world{background:var(--accent);color:#172615;font-weight:850;box-shadow:0 4px 18px #c6fa4b0d}footer .footer-buttons #data{border-left:1px solid #b88bd23d;border-radius:0}.footer-buttons #join[hidden]{display:none!important}
footer #search-results{position:absolute;top:auto;bottom:calc(100% + 16px);left:0;right:-49px;max-height:min(360px,calc(var(--visible-height,100dvh) - 180px));text-align:left;background:#2a1b3bf5;color:#f2e7ff;border:1px solid #b184c980;border-radius:18px;box-shadow:0 -12px 34px #0c061a55;padding:5px;backdrop-filter:blur(18px);z-index:20}
#search-results button{color:#f0e8fa;font-size:13px;border-color:#b48ac426;padding:12px;border-radius:10px}#search-results button:hover,#search-results button[aria-selected=true]{background:#69477e5e}#search-results button small,.no-results{color:#c2a8d6}
.controls{position:fixed;right:16px;bottom:calc(var(--viewport-bottom,0px) + var(--footer-height,var(--dock-height)) + 24px);display:flex;flex-direction:column;gap:0;width:44px;padding:3px;background:linear-gradient(150deg,#513261aa,#261634dc);border:1px solid #b181ce;border-radius:28px;box-shadow:inset 0 1px 0 #ebd5ff22,0 5px 20px #150a2722;z-index:5;backdrop-filter:blur(12px)}
.controls .round{display:grid;place-items:center;height:45px;min-height:44px;width:36px;min-width:0;padding:0;background:transparent;border:0;border-radius:50%;color:#ead4fa;font-size:29px;font-weight:500;box-shadow:none}.controls #zoom-out{border-top:1px solid #b88ad122}
.controls #fullscreen{position:fixed;left:16px;bottom:calc(var(--viewport-bottom,0px) + var(--footer-height,var(--dock-height)) + 24px);height:44px;width:44px;border:1px solid #b181ce;background:#382244b8;backdrop-filter:blur(12px);border-radius:50%;box-shadow:inset 0 1px 0 #ebd5ff22}.controls #fullscreen svg{height:25px;width:25px}
.hint{display:flex;align-items:center;justify-content:center;gap:8px;position:fixed;left:50%;bottom:calc(var(--viewport-bottom,0px) + var(--footer-height,var(--dock-height)) + 25px);transform:translateX(-50%);font-size:11px;color:#e2c7f4;background:#28183640;padding:5px 8px;border-radius:15px;max-width:calc(100% - 140px);white-space:normal;text-align:center;z-index:4;font-weight:650}.hint svg{height:25px;width:25px;flex:none}.hint span{line-height:1.3}
.location{position:fixed;top:calc(var(--hud-bottom,110px) + 8px);left:50%;max-width:calc(100% - 34px);transform:translateX(-50%);border:1px solid #b78bce88;background:#2d1b3edb;color:#efdefa;border-radius:20px;padding:8px 12px;font-size:11px;z-index:4}.location button{color:#d3f48b}.map-status{top:calc(var(--hud-bottom,110px) + 48px);background:#2d1b3ee8;color:#ead4fa;border:1px solid #b78bce55}
#house-card,.model-preview{bottom:calc(var(--viewport-bottom,0px) + var(--footer-height,var(--dock-height)) + 20px);border-radius:22px;background:#291d3bec;border:1px solid #b68ad180;color:#f4eafa;box-shadow:0 12px 40px #10081f44}.model-preview{max-height:calc(var(--visible-height,100dvh) - 290px)}#house-card{right:74px;max-height:calc(var(--visible-height,100dvh) - 270px);overflow-y:auto}#house-card h2{color:#f4eafa}#house-card p,#visit-city,.card-kicker{color:#cbb2df}#card-tag{background:#57416a;color:#e5d6f5}.card-close{color:#d9c2ea}#visit-city{border-top-color:#9b7cb244}.toast{bottom:calc(var(--viewport-bottom,0px) + var(--footer-height,var(--dock-height)) + 22px);background:#342043;color:#f3e8ff;border-color:#b88dd1}
.person-label{background:#2e1d44e8;border-color:#bd99da77;color:#f3eaff}.person-label.selected{background:var(--accent);color:#23351e}.geo-label,.globe-label{color:#eff7e8;text-shadow:0 1px 3px #152c23,0 -1px 2px #152c2388;font-weight:700}.geo-label.country,.globe-label.continent{color:#f5f7e9}.geo-label.state,.globe-label.state{color:#ebecd5}.city-label{color:#f4f7e8;text-shadow:0 1px 3px #102b20,0 -1px 2px #102b2099}.city-label small{color:#def0ad}.city-label .pin{border-color:#405839;background:#c6fa4b}
.orbital-card{bottom:calc(var(--viewport-bottom,0px) + 20px);background:#1e162ded;border-color:#a889c077}.orbital-back{background:var(--accent);color:#22311c}.inspecting-orbiter .controls{bottom:24px}.inspecting-orbiter .controls #fullscreen{bottom:24px}.inspecting-orbiter .hint{display:none!important}
.keyboard-open footer{display:flex!important;gap:0;padding-top:20px;padding-bottom:10px}.keyboard-open .footer-buttons,.keyboard-open .hint,.keyboard-open .controls{display:none!important}.keyboard-open .hud-top{opacity:.3}
@media(min-width:900px){:root{--dock-height:174px}.hud-top{left:30px;right:30px;top:calc(env(safe-area-inset-top,0px) + 22px)}.brand-orbit{width:48px;height:48px}.hud-top header h1{font-size:12px;letter-spacing:2.5px}.hud-top .count{top:65px;font-size:13px}footer{left:50%;right:auto;transform:translateX(-50%);width:min(860px,calc(100% - 160px));border:1px solid #aa7cc680;border-top:2px solid #aa7cc6;border-radius:32px 32px 0 0;padding-left:22px;padding-right:22px}.controls{right:28px}.controls #fullscreen{left:28px}.hint{font-size:12px;bottom:calc(var(--footer-height,var(--dock-height)) + 18px)}}
@media(max-width:360px){.hud-top{left:12px;right:12px}.hud-top header h1{font-size:9px;letter-spacing:1.5px}.brand-orbit{width:35px;height:35px}.hud-top .top-actions{gap:8px}.hud-top .language-control{min-width:44px}.hud-top .language-control>span{font-size:12px}.hud-top .help{width:32px;height:32px;min-width:32px}footer{padding-left:12px;padding-right:12px;gap:12px}.footer-buttons svg{width:21px;height:21px}footer .footer-buttons .chunky{font-size:12px;gap:6px;padding:8px}.hint{font-size:10px}}
@media(max-height:520px) and (orientation:landscape){:root{--dock-height:90px}.hud-top{top:8px;height:70px;left:16px;right:16px}.brand-orbit{width:34px;height:34px}.hud-top header h1{font-size:9px}.hud-top .count{top:43px;font-size:10px;min-height:28px;padding:4px 9px}.hud-top .help{height:32px;width:32px;min-width:32px}footer{left:50%;right:auto;transform:translateX(-50%);width:calc(100% - 144px);max-width:800px;padding:17px 12px 8px;border-radius:25px 25px 0 0;display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:10px}footer #search-form{height:44px}footer .footer-buttons .chunky{min-height:42px;padding:5px;gap:5px;font-size:11px}.footer-buttons svg{width:21px;height:21px}.search-submit{width:34px;height:34px;flex-basis:34px}footer #search::placeholder{font-size:12px}.hint{display:none}.controls{bottom:16px;right:12px}.controls #fullscreen{left:12px;bottom:16px}.location{top:81px;font-size:10px;padding:5px 9px}.model-preview,#house-card{top:80px;bottom:auto;max-height:calc(100dvh - 160px)}.keyboard-open footer{grid-template-columns:1fr;display:grid!important}.dock-grip{top:6px;height:3px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.round,.chunky{transition:none}}

/* Keep the lower-left fixed button anchored to the viewport. */
.controls{backdrop-filter:none}

/* Compact mobile map: less glass, same usable touch controls and text inputs. */
@media(max-width:899px) and (orientation:portrait){
 :root{--dock-height:118px}
 .hud-top{left:12px;right:12px;top:calc(var(--viewport-top,0px) + env(safe-area-inset-top,0px) + 8px);height:73px}
 .brand-orbit{width:34px;height:34px}.hud-top header.planet-brand{gap:7px}.hud-top header h1{font-size:9px;line-height:1.5;letter-spacing:1.8px}
 .hud-top .top-actions{gap:7px}.hud-top .language-control{height:36px;min-width:44px}.hud-top .language-control>span{font-size:12px}.language-chevron{width:15px;height:15px}
 .hud-top .help{position:relative;width:32px;height:32px;min-width:32px;font-size:20px}.hud-top .help::after{content:'';position:absolute;inset:-6px}
 .hud-top .count{top:43px;min-height:26px;padding:4px 9px;font-size:10px}.count>span:first-child::before{width:15px;height:15px}.count>span+span::before{margin:0 5px}
 footer{gap:6px;padding:14px max(12px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));border-radius:26px 26px 0 0}
 .dock-grip{top:5px;width:28px;height:3px}footer #search-form{height:44px;padding:3px 4px 3px 0}.search-submit{width:36px;height:36px;flex-basis:36px}.search-submit svg{width:20px;height:20px}
 .search-icon{left:14px;width:20px;height:20px}footer #search{padding-left:43px}footer #search::placeholder{font-size:13px}
 footer .footer-buttons .chunky{min-height:44px;padding:5px 8px;gap:7px;font-size:12px}.footer-buttons svg{width:21px;height:21px}
 .controls,.controls #fullscreen{bottom:calc(var(--viewport-bottom,0px) + var(--footer-height,var(--dock-height)) + 12px)}.controls{right:12px}.controls #fullscreen{left:12px}
 .hint{display:none}.location{padding:6px 10px;font-size:10px}.keyboard-open footer{padding-top:12px;padding-bottom:8px}
}
