:root{color-scheme:light;--ink:#294338;--muted:#4f675b;--accent:#286356;--paper:#fffdf5;--line:#d6ded5;--control-line:#6f8a7b;--focus:#b97525;--font-heading:Georgia,"Times New Roman",serif;--font-ui:"Segoe UI Variable Text","Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0}body{overflow:hidden;font:15px/1.5 var(--font-ui);color:var(--ink);background:var(--paper)}button,input,summary{font:inherit}a{color:var(--accent)}
button{min-height:44px;cursor:pointer;border:1px solid var(--control-line);border-radius:9px;padding:9px 13px;background:#fffdf5ed;color:var(--ink);font-size:14px;font-weight:650;line-height:1.2}
button:hover:not(:disabled){background:#edf2e6}button:disabled{cursor:wait;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}[aria-disabled="true"]{opacity:.5;cursor:default}
.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}
/* Controls float over the full scene; they reserve no header or footer strip. The title and the credits link sit on
   the hint's soft paper pill; a negative margin cancels its padding, so the words keep their size and place. */
main{position:fixed;inset:0}
.toolbar{position:absolute;left:0;right:0;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;pointer-events:none}.toolbar>*{pointer-events:auto}.brand{min-width:max-content}.brand h1{margin:-3px -9px;padding:3px 9px;border-radius:7px;background:#fffdf5dc;font:700 24px/1.08 var(--font-heading);letter-spacing:-.025em;text-shadow:0 0 5px var(--paper),0 0 9px var(--paper)}
.primary-actions{display:flex;align-items:center;gap:5px;min-width:0}.atlas-search{position:relative;width:clamp(150px,22vw,270px)}.atlas-search input{width:100%;min-height:44px;padding:9px 30px 9px 12px;text-overflow:ellipsis;border:1px solid #6f8a7b99;border-radius:9px;background:#fffdf5ed;color:var(--ink);font-size:15px}.atlas-search input::placeholder{color:#61786c;opacity:1}.atlas-search::after{content:"⌕";position:absolute;right:10px;top:50%;translate:0 -53%;color:var(--muted);font-size:20px;pointer-events:none}
.shuffle-button{min-height:44px;padding:9px 12px;border-color:#6f8a7b99;background:#fffdf5ed;white-space:nowrap}
/* The language picker: each option is named in its own language. A drawn arrow keeps it like the other controls everywhere. */
#language{flex:none;min-height:44px;max-width:150px;padding:9px 28px 9px 11px;border:1px solid #6f8a7b99;border-radius:9px;background:#fffdf5ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234f675b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;color:var(--ink);font:650 14px/1.2 var(--font-ui);text-overflow:ellipsis;cursor:pointer;-webkit-appearance:none;appearance:none}#language:hover{background-color:#edf2e6}
.atlas-search-results{position:absolute;z-index:30;top:calc(100% + 6px);right:0;width:min(430px,calc(100vw - 24px));max-height:min(55vh,390px);overflow:auto;padding:6px;border:1px solid var(--control-line);border-radius:11px;background:var(--paper);box-shadow:0 14px 40px #183c3833}.atlas-search-results[hidden]{display:none}.search-group-label{padding:8px 10px 5px;color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.search-option{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:9px 10px;border:0;border-radius:7px;background:transparent;text-align:left;font-weight:650}.search-option small{color:var(--muted);font-size:12px;font-weight:500;text-align:right}.search-option[aria-selected="true"],.search-option:hover{background:#e6f1e8}.search-empty{padding:12px;color:var(--muted);font-size:13px}
.discovery-feedback{position:fixed;z-index:30;top:66px;right:140px;max-width:min(360px,calc(100vw - 160px));padding:12px;border:1px solid var(--control-line);border-radius:9px;background:var(--paper)}.discovery-feedback[hidden]{display:none}.discovery-feedback p{margin:0;font-size:14px}#discovery-suggestions{display:flex;gap:6px;flex-wrap:wrap}#discovery-suggestions:not(:empty){margin-top:7px}#discovery-dismiss{margin-top:8px;min-height:36px;padding:6px 12px}
.map-shell{position:absolute;inset:0;overflow:hidden;touch-action:none;background:#c1dce6;cursor:grab}.map-shell.dragging{cursor:grabbing}#world-map{width:100%;height:100%;display:block}.map-shell:focus-visible{outline:3px solid #286356;outline-offset:-3px}
.map-help,.map-status{position:absolute;left:20px;background:#fffdf5dc;color:var(--muted);font-size:12px;padding:6px 9px;border-radius:7px;pointer-events:none}.map-help.dismissed{opacity:0;visibility:hidden}.map-status{bottom:60px;max-width:calc(100% - 90px)}.map-status:has(#load-status:empty){display:none}#load-status.error{color:#9e3b30;pointer-events:auto}.map-status:has(.error){pointer-events:auto}.map-footer{position:absolute;z-index:20;bottom:max(12px,env(safe-area-inset-bottom));right:max(20px,env(safe-area-inset-right));left:auto;display:flex;align-items:center;gap:12px;padding:4px 0;font-size:12px}.map-footer a{margin:-3px -9px;padding:3px 9px;border-radius:7px;background:#fffdf5dc;text-decoration:none;text-shadow:0 0 3px var(--paper),0 0 6px var(--paper)}.map-footer a:hover{text-decoration:underline}.map-footer button{min-height:34px;padding:6px 11px;font-size:13px}
/* The drawing hint: a label, not a control (no border, and touches pass through to the map). A dark pill so it is
   noticed, centred at the bottom; on phones it sits beside Whole world. It shows for ten seconds each visit and fades,
   or goes when a card opens. */
.map-help{left:50%;transform:translateX(-50%);bottom:58px;max-width:min(560px,calc(100% - 300px));padding:11px 20px;border-radius:12px;background:#2f4d40f2;color:#fffdf5;font-size:17px;font-weight:650;line-height:1.35;text-align:center;text-wrap:balance;box-shadow:0 4px 16px #183c3855;transition:opacity .4s,visibility .4s}.map-shell:has(#load-status:not(:empty)) .map-help{visibility:hidden}
/* Zoom controls sit lower right, just above the footer, where map users expect them. */
.map-navigation{position:absolute;right:20px;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 52px);display:grid;overflow:hidden;border:1px solid #6f8a7b99;border-radius:10px;background:#fffdf5ed;cursor:default;touch-action:manipulation}.map-navigation button{display:grid;place-items:center;width:100%;min-width:44px;height:44px;padding:0;border:0;border-radius:0;background:transparent;font-size:27px;font-weight:500;line-height:1}.map-navigation button+button{border-top:1px solid var(--line)}.map-navigation button:focus-visible{outline-offset:-4px}.map-navigation .world-view{padding:0 12px;font-size:14px;font-weight:650;white-space:nowrap}
.place-marker{min-height:0}.place-dialog .place-dialog-close{width:44px;height:44px;margin-bottom:-44px}.place-category,.place-country{font-size:12px!important}.startup-fallback{position:fixed;z-index:20;inset:auto 12px 12px;background:var(--paper);padding:16px}.browse-dialog{max-width:650px;width:calc(100% - 32px);max-height:85vh;background:var(--paper);color:var(--ink);border:1px solid var(--control-line);border-radius:12px;padding:20px}.browse-dialog button{min-height:44px}.browse-dialog .browse-close{position:sticky;top:0;z-index:1;float:right}.browse-list{display:grid;gap:8px}.browse-list button{text-align:left}
/* Phones: the picker sits at the end of the brand's row, so the search keeps its width. */
@media(max-width:650px){.toolbar{flex-wrap:wrap;row-gap:6px;padding:10px 12px;gap:8px}.brand{display:flex;align-items:center;min-height:44px}.brand h1{font-size:20px}.brand h1,.map-footer a{margin:-3px -6px;padding:3px 6px}#language{position:absolute;top:10px;right:12px;font-size:16px}.primary-actions{flex:1 1 100%;gap:6px}.atlas-search{flex:1 1 auto;width:auto}.atlas-search input{font-size:16px;padding-left:9px}.map-navigation{right:max(12px,env(safe-area-inset-right))}.map-footer{left:auto;right:max(12px,env(safe-area-inset-right))}.map-help,.map-status{left:12px}.map-help{display:flex;align-items:center;justify-content:center;min-height:44px;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 52px);max-width:calc(100% - 36px - var(--nav-width,130px));transform:none;padding:8px 12px;font-size:14px;font-weight:600}.atlas-search-results{position:fixed;top:124px;left:12px;right:12px;width:auto;max-height:65vh}.discovery-feedback{right:12px;top:124px}}
@media(max-width:360px){.brand h1{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.map-help{transition:none}}
/* Touch phones zoom with a pinch; only Whole world stays as a button. */
@media(max-width:650px) and (pointer:coarse){#zoom-in,#zoom-out{display:none}.map-navigation .world-view{border-top:0}}
/* Place names ride a layer that moves and, mid-zoom, scales with the map; each name is scaled back so its words keep their size. */
.place-markers.place-labels .place-label-button{transform:translate(calc(var(--label-dx,0px)*(var(--label-inverse,1) - 1)),calc(var(--label-dy,0px)*(var(--label-inverse,1) - 1))) scale(var(--label-inverse,1))!important;transform-origin:center}

/* Optional support shares the footer's paper pill and keeps a 44 px tap target. */
.map-footer{gap:12px;padding:0;min-height:44px}
.map-footer a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0 6px;background:transparent;text-shadow:0 0 3px var(--paper),0 0 6px var(--paper)}
.map-footer .map-tip-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 6px;border:0;border-radius:7px;background:transparent;color:var(--accent);font-size:12px;font-weight:600;text-shadow:0 0 3px var(--paper),0 0 6px var(--paper)}
.map-footer .map-tip-link:hover{background:transparent;text-decoration:underline}
.map-footer a,.map-footer .map-tip-link{position:relative;isolation:isolate;background:transparent}
.map-footer a::before,.map-footer .map-tip-link::before{content:"";position:absolute;z-index:-1;inset:10px 0;border-radius:7px;background:#fffdf5dc}
.maps-tip-dialog{position:fixed;inset:0;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow-y:auto;overscroll-behavior:contain;border:1px solid #6f8a7b55;border-radius:20px;background:var(--paper);color:var(--ink);box-shadow:0 22px 80px #16332930}
.maps-tip-dialog::backdrop{background:#29433838;backdrop-filter:blur(5px)}
.maps-tip-dialog .tip-close{position:absolute;z-index:1;top:12px;right:12px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #6f8a7b55;border-radius:50%;background:#fffdf5e8;font:400 25px/1 var(--font-ui)}
.tip-atlas-preview{position:relative;width:100%;height:176px;overflow:hidden;background:var(--paper);border-bottom:1px solid var(--line)}
.tip-atlas-preview img{position:absolute;left:50%;top:50%;width:420px;max-width:none;height:auto;transform:translate(-50%,-50%)}
.tip-atlas-preview::after{content:"";position:absolute;inset:0 0 auto;height:8px;background:var(--paper)}
.tip-content{padding:28px 36px 24px;text-align:center}
.tip-eyebrow{margin:0 0 12px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.tip-content h2{max-width:360px;margin:0 auto 18px;font:700 34px/1.1 var(--font-heading);letter-spacing:-.025em;text-wrap:balance}
.tip-product-name{display:inline-block;white-space:nowrap}
.tip-content p:not(.tip-eyebrow){color:var(--muted)}
#tip-description{margin:0 auto 14px;font-size:15px;line-height:1.65;text-wrap:pretty}
.tip-free{margin:0 0 25px;font-size:14px;line-height:1.5}
.tip-checkout{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 26px;border-radius:999px;background:var(--ink);color:var(--paper);font-size:15px;font-weight:650;line-height:1.4;text-decoration:none}
.tip-checkout:hover{background:#365745}
.tip-checkout-note{margin:16px 0 8px;font-size:12px;line-height:1.65}
.maps-tip-dialog .tip-later{display:block;min-height:44px;margin:0 auto;padding:8px 4px;border:0;background:transparent;color:var(--accent);font-size:13px;font-weight:550}
.maps-tip-dialog .tip-later:hover{text-decoration:underline;background:transparent}
.tip-thanks-dialog .tip-content{padding-top:32px;padding-bottom:32px}
.tip-thanks-dialog .tip-content p{margin:0 0 24px;font-size:15px;line-height:1.65}
.tip-thanks-dialog .tip-thanks-continue{border:0;border-radius:999px;padding:13px 24px;background:var(--ink);color:var(--paper);font-size:15px}
@media(max-width:650px){
 .map-footer{left:12px;right:12px;justify-content:flex-end;gap:8px}
 .map-footer a,.map-footer .map-tip-link{padding-inline:5px}
 .map-footer .map-tip-link{gap:5px}
}
@media(max-width:380px){
 .map-footer{justify-content:space-between;gap:4px}
 .map-footer a,.map-footer .map-tip-link{font-size:11px;padding-inline:4px}
 .map-footer button#browse-places{padding-inline:8px}
 .tip-content{padding:23px 24px 18px}
 .tip-content h2{font-size:29px}
 .tip-atlas-preview{height:150px}
 .tip-atlas-preview img{width:360px}
 #tip-description{font-size:14px}
 .tip-free{font-size:13px;margin-bottom:20px}
}
@media(max-width:340px){.tip-content h2{font-size:26px}.tip-product-name{white-space:nowrap}}
@media(max-height:650px) and (min-width:651px){.tip-atlas-preview{height:110px}.tip-atlas-preview img{width:260px}.tip-content{padding-block:20px}.tip-content h2{font-size:30px;margin-bottom:12px}.tip-free{margin-bottom:16px}.tip-checkout-note{margin-top:10px}}

.map-footer .map-tip-link svg{flex:none}
@media(max-width:650px){.map-footer a,.map-footer .map-tip-link{min-width:0;text-align:center;line-height:1.2;padding-block:10px}.map-footer #browse-places{flex:none}}
