/* Player-facing shell: the map is the stage, tools open only when requested. */
body.game-hub{--ink:#18332f;--paper:#fffdf5;--sun:#ffd357;--mint:#1f9e88;--line:2px solid #213c38;background:#b2d7e4;color:var(--ink);overflow:hidden}
body.game-hub>header{display:none!important}
body.game-hub .layout{display:block!important;height:100dvh!important;height:100vh}
body.game-hub .mapwrap{height:100dvh!important;width:100%;min-height:0}
body.game-hub .layout>aside{position:fixed!important;z-index:1600;inset:0 auto 0 0;width:min(370px,calc(100vw - 32px));height:100dvh;transform:translateX(-110%);transition:transform .2s;background:var(--paper);color:var(--ink);padding:64px 22px 26px;box-shadow:12px 0 45px #102f3533;overflow:auto}
body.game-hub.hub-drawer-open .layout>aside{transform:translateX(0)}
body.game-hub aside p,body.game-hub aside .small{color:#4c6860}body.game-hub aside input,body.game-hub aside select{background:#fff;color:var(--ink);border:1px solid #9dbab0}
body.game-hub aside .stat,body.game-hub aside .cityOverview,body.game-hub aside .tip{background:#e7efe5;color:var(--ink)}
body.game-hub aside .milestone{background:#edf2e8;color:#355a48}
body.game-hub .v4Top,body.game-hub #cityPanelToggle{display:none!important}
body.game-hub .leaflet-control-zoom{display:none!important}
.hub-shell{position:absolute;inset:0;pointer-events:none;z-index:820;color:var(--ink)}.hub-shell button,.hub-shell input,.hub-shell a{pointer-events:auto}
.hub-brand{position:absolute;top:24px;left:24px;display:flex;align-items:center;gap:10px;font-size:17px;line-height:1.05;font-weight:900;letter-spacing:-.6px;text-shadow:0 1px 0 #fffd}
.hub-brand-mark{display:grid;place-items:center;width:43px;height:43px;background:var(--sun);border:var(--line);border-radius:15px;box-shadow:0 3px 0 #18332f35;font-size:25px}
.hub-brand small{display:block;letter-spacing:.13em;font-size:9px;margin-top:5px;text-transform:uppercase;font-weight:800}
.hub-search-area{position:absolute;top:21px;left:50%;transform:translateX(-50%);width:min(500px,calc(100% - 500px));text-align:center}
.hub-search-area h1{font-size:23px;letter-spacing:-.8px;margin:0 0 10px;line-height:1.1;text-shadow:0 1px 2px #fffd}
.hub-search-form{display:flex;align-items:center;gap:8px;background:var(--paper);padding:5px 5px 5px 17px;border:var(--line);border-radius:40px;box-shadow:0 5px 0 #173b3425}
.hub-search-form>span{font-size:20px;font-weight:900;color:#5a6b60}.hub-search-form input{border:0!important;box-shadow:none;background:transparent!important;color:var(--ink)!important;padding:10px 0;font-weight:650;font-size:14px;outline:none;min-width:0}
.hub-search-form:focus-within{outline:3px solid #34b89a;outline-offset:3px}.hub-search-form button{background:var(--sun)!important;color:var(--ink)!important;border:var(--line)!important;border-radius:30px;min-height:42px;padding:8px 19px;box-shadow:none;font-weight:850}
.hub-results{margin-top:8px;padding:8px;border:var(--line);border-radius:20px;background:var(--paper);box-shadow:0 10px 30px #153b3433;text-align:start;max-height:45dvh;overflow:auto;pointer-events:auto}.hub-results[hidden]{display:none}
.hub-results button{display:flex;align-items:center;gap:10px;width:100%;text-align:start;background:transparent;color:var(--ink);border:0;border-radius:12px;padding:12px}.hub-results button:hover{background:#e3f1e7}.hub-results button small{display:block;color:#61766a;font-weight:500}.hub-results p{margin:10px;line-height:1.4}
.hub-tools{position:absolute;top:24px;right:24px;display:flex;gap:8px}.hub-round{width:45px;height:45px;border:var(--line)!important;border-radius:50%!important;background:var(--paper)!important;color:var(--ink)!important;font-size:20px;padding:0!important;box-shadow:0 3px 0 #18332f25}
.hub-city-strip{position:absolute;top:137px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;max-width:calc(100% - 150px);pointer-events:none}
.hub-city-pill{background:var(--paper)!important;border:var(--line)!important;color:var(--ink)!important;border-radius:30px;padding:9px 18px;display:flex;align-items:center;gap:10px;box-shadow:0 3px 0 #173b3425;max-width:100%;font-size:13px}.hub-city-pill strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}.hub-city-pill small{border-inline-start:1px solid #b6c9ba;padding-inline-start:10px;white-space:nowrap;font-size:11px}
.hub-next{background:#fff9e8f5!important;max-width:100%;font-size:11px!important;padding:7px 13px!important;font-weight:600!important}.hub-next span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:340px}
.hub-launch{position:absolute;bottom:112px;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center}.hub-launch button{border:var(--line)!important;border-radius:30px;box-shadow:0 4px 0 #18332f25;font-size:12px;padding:11px 20px;white-space:nowrap;color:var(--ink)!important;background:var(--paper)!important}.hub-launch button:first-child{background:var(--sun)!important}
body.game-hub .v4Nav{position:absolute!important;z-index:830;bottom:24px!important;left:50%!important;transform:translateX(-50%);display:flex!important;gap:4px!important;width:auto!important;max-width:calc(100% - 32px);padding:7px!important;border:var(--line)!important;border-radius:40px!important;background:var(--paper)!important;box-shadow:0 5px 0 #173b3430;backdrop-filter:none}
body.game-hub .v4Nav button{color:var(--ink)!important;min-width:75px!important;min-height:53px!important;padding:7px 13px!important;font-size:20px!important;gap:3px;border-radius:25px!important;transform:none!important}body.game-hub .v4Nav button span{font-size:10px!important;font-weight:800!important;min-height:0!important}body.game-hub .v4Nav button.hub-selected{background:var(--sun)!important}body.game-hub .v4Nav button:hover{background:#e7efe3}
body.game-hub .earthControls{top:50%!important;right:18px!important;transform:translateY(-40%);display:flex!important;flex-direction:column;gap:7px!important;grid-template-columns:none!important;max-height:52vh;overflow:auto;padding:3px}
body.game-hub .earthControls>button{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;border:var(--line)!important;border-radius:50%!important;color:var(--ink)!important;background:var(--paper)!important;box-shadow:0 3px 0 #18332f25;font-size:17px!important}
body.game-hub #nearbyCities,body.game-hub #touchCameraMode{font-size:0!important}body.game-hub #nearbyCities::before{content:'🏙';font-size:18px}body.game-hub #touchCameraMode::before{content:'↔';font-size:20px}
body.game-hub #languageSwitcher{width:100px!important;min-height:32px!important;background:var(--paper);border:var(--line);border-radius:20px;position:fixed;right:0;transform:translateX(-2px);bottom:-44px;padding:3px!important}body.game-hub #languageSwitcher>span{display:none!important}body.game-hub #languageSwitcher select{color:var(--ink)!important;background:transparent!important;border:0!important;font-size:11px!important;min-height:25px!important}
body.game-hub .hud{bottom:5px!important;left:12px!important;font-size:9px!important;background:#fffc;color:#345b50;max-width:calc(100% - 150px);padding:3px 9px!important;border-radius:12px;pointer-events:none;opacity:.85}
body.game-hub .squareAttribution{bottom:4px!important;font-size:8px!important;max-width:48%;opacity:.7}
body.game-hub .v4Panel{top:112px!important;bottom:106px!important;right:80px!important;width:min(400px,calc(100% - 105px))!important;background:var(--paper)!important;color:var(--ink)!important;border:var(--line)!important;border-radius:25px!important;box-shadow:0 15px 50px #143e3933;padding:24px!important}
body.game-hub #card{top:115px!important;right:80px!important;background:var(--paper)!important;border:var(--line);border-radius:22px!important;max-height:calc(100dvh - 225px);overflow:auto;box-shadow:0 15px 50px #143e3933}
body.game-hub .v4Panel button:not(.v4Close){border:1px solid #bfd3c6;background:#e6f2e7;color:#204334;border-radius:14px;padding:12px}body.game-hub .v4Panel input,body.game-hub .v4Panel select{background:#fff!important;color:var(--ink)!important;border:1px solid #a7beaf!important}body.game-hub .civicObjective{background:#eaf1e7!important;color:#234738!important;border:1px solid #c5d5c4!important}body.game-hub .civicObjective.pending{background:#f3f1e7!important;color:#697567!important}
.hub-dialog{width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;border:var(--line);border-radius:28px;background:var(--paper);color:var(--ink);padding:28px;box-shadow:0 20px 90px #123e3944}.hub-dialog::backdrop{background:#183b3955;backdrop-filter:blur(4px)}.hub-dialog h2{margin:0 35px 4px 0;font-size:29px;letter-spacing:-1px}.hub-dialog p{line-height:1.55;color:#5d7163}.hub-dialog .hub-kicker{font-size:10px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:#24816a;margin:0 0 8px}.hub-dialog .hub-close{position:absolute;top:17px;right:17px;background:#e7eee3;color:var(--ink);border:0;border-radius:50%;width:34px;height:34px;padding:0}
.hub-dashboard-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0}.hub-dashboard-stats div{border:1px solid #c6d6c3;border-radius:17px;padding:15px 8px;text-align:center;background:#edf2e7}.hub-dashboard-stats strong{display:block;font-size:25px;letter-spacing:-1px}.hub-dashboard-stats small{font-size:11px;color:#59705c}
.hub-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hub-action-grid button{display:flex;flex-direction:column;align-items:start;gap:6px;text-align:start;border:1px solid #c6d6c3;background:#fff;color:var(--ink);border-radius:18px;padding:17px;min-height:100px}.hub-action-grid button>span{font-size:27px}.hub-action-grid button small{font-weight:500;color:#657c69;font-size:11px}.hub-action-grid button:hover{background:#f3f4df}.hub-progress{background:#fff0bc;border-radius:18px;padding:17px;margin:16px 0}.hub-progress p{margin:5px 0;font-size:12px}.hub-progress progress{display:block;width:100%;height:9px;accent-color:var(--mint);margin-top:12px}
.hub-guide-step{display:flex;gap:14px;padding:17px 0;border-bottom:1px solid #dbe3d3}.hub-guide-step>span{font-size:27px}.hub-guide-step strong{display:block}.hub-guide-step p{margin:4px 0;font-size:13px}.hub-guide-note{font-size:11px;padding:12px;background:#edf2e7;border-radius:12px}
.hub-drawer-backdrop{position:fixed;z-index:1500;inset:0;background:#143d3855;border:0;border-radius:0;cursor:default}.hub-drawer-close{position:absolute;top:15px;right:15px;background:#e6eddf!important;color:#264b3c!important;border:0!important;width:34px;height:34px;border-radius:50%;padding:0!important}
body.game-hub aside #languageSwitcher{position:static!important;transform:none!important;display:flex!important;width:100%!important;margin:8px 0 18px;border:1px solid #a7beaf;background:#fff}body.game-hub aside #languageSwitcher select{width:100%;font-size:13px!important;padding:8px}body.game-hub aside #ownerAccessButton{margin:18px 0 4px;background:#e6eddf;color:#274c3b}
body.game-hub button:focus-visible,body.game-hub a:focus-visible{outline:3px solid #187e69;outline-offset:3px}
@media(max-width:1050px){.hub-brand{font-size:14px;left:18px}.hub-brand-mark{width:36px;height:36px;font-size:21px}.hub-search-area{width:430px;max-width:calc(100% - 400px)}.hub-search-area h1{font-size:21px}.hub-tools{right:18px}.hub-round{width:39px;height:39px}body.game-hub .v4Nav button{min-width:62px!important;padding:7px 10px!important}}
@media(max-width:720px){.hub-brand{top:15px;left:14px;font-size:13px}.hub-brand small{font-size:8px;margin-top:3px}.hub-brand-mark{width:32px;height:32px;border-radius:11px;font-size:19px}.hub-tools{top:14px;right:14px;gap:6px}.hub-round{width:34px;height:34px;font-size:17px}.hub-search-area{top:68px;width:calc(100% - 28px);max-width:none}.hub-search-area h1{font-size:19px;margin-bottom:9px}.hub-search-form{padding:4px 4px 4px 13px;gap:6px}.hub-search-form input{font-size:13px;padding:9px 0}.hub-search-form button{font-size:12px;min-height:38px;padding:6px 14px}.hub-city-strip{top:168px;max-width:calc(100% - 34px);gap:7px}.hub-city-pill{font-size:12px;padding:8px 13px}.hub-city-pill strong{max-width:170px}.hub-city-pill small{font-size:10px}.hub-next{font-size:10px!important;padding:6px 11px!important}.hub-next span{max-width:275px}.hub-launch{bottom:104px;gap:7px}.hub-launch button{font-size:11px;padding:10px 13px}body.game-hub .v4Nav{bottom:19px!important;width:calc(100% - 20px)!important;max-width:none;gap:0!important;justify-content:space-around;border-radius:25px!important;padding:5px 3px!important}body.game-hub .v4Nav button{min-width:0!important;width:14.28%;padding:7px 1px!important;min-height:55px!important;font-size:19px!important;border-radius:18px!important}body.game-hub .v4Nav button span{font-size:9px!important;white-space:normal!important;line-height:1.2}body.game-hub .earthControls{right:8px!important;top:48%!important;max-height:43vh;gap:5px!important}body.game-hub .earthControls>button{width:35px!important;min-width:35px!important;height:35px!important;min-height:35px!important;font-size:15px!important}body.game-hub #languageSwitcher{display:none!important}body.game-hub .v4Panel{top:236px!important;right:10px!important;left:10px!important;width:auto!important;bottom:92px!important;padding:19px!important}body.game-hub #card{top:236px!important;right:10px!important;max-height:calc(100dvh - 335px);width:min(310px,calc(100% - 20px))}.hub-dialog{padding:23px 20px;border-radius:24px}.hub-dialog h2{font-size:25px}.hub-dashboard-stats strong{font-size:22px}.hub-action-grid{gap:8px}.hub-action-grid button{padding:14px;min-height:94px}.hub-dialog .hub-guide-step{padding:13px 0}.hub-dialog .hub-guide-step p{font-size:12px}}
@media(max-height:550px) and (min-width:721px){.hub-search-area{top:12px}.hub-search-area h1{display:none}.hub-brand,.hub-tools{top:13px}.hub-city-strip{top:78px;gap:5px}.hub-next{display:none!important}.hub-launch{bottom:91px}body.game-hub .v4Nav{bottom:12px!important}body.game-hub .v4Panel,body.game-hub #card{top:80px!important;bottom:86px!important;max-height:none}}
@media(prefers-reduced-motion:reduce){body.game-hub *{transition:none!important;scroll-behavior:auto!important}}

.world-country-label{background:#fffdf3;color:#173b32;border:2px solid #a36a08;border-radius:20px;padding:7px 14px;font:700 14px system-ui;box-shadow:0 3px 12px #24352633}.hub-results[aria-busy="true"]{opacity:.9}.hub-results button:focus-visible{outline:3px solid #d08c00;outline-offset:-3px}

body.game-hub.country-focus:not(.city-view) .hub-city-strip{display:none!important}

/* Search suggestions must stay above the city summary controls. */
.hub-search-area{z-index:6}
