/* Atlas Premium v3 - presentation layer for world-gk-atlas.php. Engine, data and markup are untouched. */
html:has(body.atlas-glass){background:#f2f5fd!important}
html[data-theme="dark"]:has(body.atlas-glass){background:#04091a!important}
.atlas-glass:not(#_){
--apx-ink:#101c3f;--apx-sub:#47577f;--apx-accent:#2f5bd0;--apx-gold:#8a5508;
--apx-wash-a:rgba(47,91,208,.16);--apx-wash-b:rgba(113,111,218,.13);
--apx-glass:rgba(255,255,255,.78);--apx-glass-2:rgba(255,255,255,.9);--apx-solid:#f6f8ff;
--apx-rim:inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(47,91,208,.14);
--apx-elev-1:0 10px 26px -12px rgba(19,45,107,.38);
--apx-elev-2:0 30px 64px -26px rgba(19,45,107,.5),0 8px 18px -10px rgba(19,45,107,.22);
--apx-elev-3:0 44px 90px -40px rgba(19,45,107,.55),0 14px 30px -18px rgba(19,45,107,.25);
--apx-field:rgba(255,255,255,.96);--apx-hover:rgba(47,91,208,.09);--apx-press:rgba(47,91,208,.17);--apx-line:rgba(47,91,208,.16);
--apx-frame-a:rgba(255,255,255,.95);--apx-frame-b:rgba(47,91,208,.34);
--apx-stage:radial-gradient(120% 96% at 30% 16%,#fff 0%,#eaf2ff 30%,#cfdff9 64%,#b1c8f2 100%);
--apx-glow:rgba(70,120,235,.44);--apx-ring:rgba(47,91,208,.30);--apx-sat:#2f5bd0;--apx-star:rgba(47,91,208,.45);--apx-star-2:#fff;--apx-vig:rgba(60,100,190,.18);
--apx-emblem:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%232f5bd0' stroke-opacity='.17'><g transform='rotate(-23.4 200 200)'><circle cx='200' cy='200' r='198'/><ellipse cx='200' cy='200' rx='99' ry='198'/><ellipse cx='200' cy='200' rx='171.5' ry='198'/><path d='M200 2v396M2 200h396M28.5 101h343M28.5 299h343M101 28.5h198M101 371.5h198'/></g></svg>");
--apx-out:cubic-bezier(.16,1,.3,1);
background:transparent!important;color:var(--apx-ink)!important;accent-color:var(--apx-accent);caret-color:var(--apx-accent)}
[data-theme="dark"] .atlas-glass:not(#_),.atlas-glass[data-theme="dark"]:not(#_){
--apx-ink:#f4f7ff;--apx-sub:#b3c1e2;--apx-accent:#8ab2ff;--apx-gold:#f1d394;
--apx-wash-a:rgba(47,91,208,.30);--apx-wash-b:rgba(113,111,218,.20);
--apx-glass:rgba(12,22,50,.62);--apx-glass-2:rgba(11,21,48,.8);--apx-solid:#0e1b3f;
--apx-rim:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(170,196,255,.13);
--apx-elev-1:0 10px 28px -12px rgba(0,0,0,.72);
--apx-elev-2:0 34px 70px -28px rgba(0,0,0,.86),0 8px 20px -10px rgba(0,0,0,.5);
--apx-elev-3:0 50px 100px -40px rgba(0,0,0,.9),0 16px 34px -18px rgba(0,0,0,.6);
--apx-field:rgba(255,255,255,.07);--apx-hover:rgba(170,196,255,.13);--apx-press:rgba(170,196,255,.22);--apx-line:rgba(170,196,255,.16);
--apx-frame-a:rgba(196,214,255,.5);--apx-frame-b:rgba(90,125,230,.14);
--apx-stage:radial-gradient(120% 96% at 28% 14%,#15316f 0%,#0b1d46 28%,#060f27 58%,#02040b 100%);
--apx-glow:rgba(84,138,255,.5);--apx-ring:rgba(170,198,255,.28);--apx-sat:#f1d394;--apx-star:rgba(170,200,255,.85);--apx-star-2:#fff;--apx-vig:rgba(0,2,10,.6);
--apx-emblem:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23aac4ff' stroke-opacity='.14'><g transform='rotate(-23.4 200 200)'><circle cx='200' cy='200' r='198'/><ellipse cx='200' cy='200' rx='99' ry='198'/><ellipse cx='200' cy='200' rx='171.5' ry='198'/><path d='M200 2v396M2 200h396M28.5 101h343M28.5 299h343M101 28.5h198M101 371.5h198'/></g></svg>")}

/* Page: still colour washes and an atlas graticule tilted on the Earth's axis */
.atlas-glass:not(#_)::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(40% 36% at 12% 6%,var(--apx-wash-a),transparent 72%),radial-gradient(36% 34% at 94% 34%,var(--apx-wash-b),transparent 72%)}
.atlas-glass:not(#_)::after{content:"";position:fixed;z-index:-1;pointer-events:none;top:-190px;right:-240px;width:800px;height:800px;background:var(--apx-emblem) center/contain no-repeat;-webkit-mask-image:linear-gradient(205deg,#000 18%,transparent 76%);mask-image:linear-gradient(205deg,#000 18%,transparent 76%)}
.atlas-glass:not(#_) ::selection{background:color-mix(in srgb,var(--apx-accent) 30%,transparent)}
.atlas-glass:not(#_) :is(a,button,input):focus-visible{outline:2px solid var(--apx-gold);outline-offset:2px}

/* Intro */
.atlas-glass:not(#_) .intro{margin:18px 0 22px}
.atlas-glass:not(#_) .intro h1{font-size:clamp(34px,4.6vw,56px);line-height:1.04;letter-spacing:-.03em;margin:0 0 10px;text-wrap:balance;font-optical-sizing:auto}
.atlas-glass:not(#_) .intro p{max-width:60ch;font-size:16px;line-height:1.5;color:var(--apx-sub)!important}
.atlas-glass:not(#_) .note{color:var(--apx-sub);letter-spacing:.005em}

/* Atlas window and sky */
.atlas-glass:not(#_) #atlasApp.app{border:0!important;border-radius:24px;padding:1px;background:linear-gradient(150deg,var(--apx-frame-a),var(--apx-frame-b) 42%,var(--apx-frame-a))!important;box-shadow:var(--apx-elev-3)!important}
.atlas-glass:not(#_) #atlasApp .stage{border-radius:23px;background:var(--apx-stage)!important;box-shadow:inset 0 0 140px var(--apx-vig);container-type:size;overflow:hidden}
.atlas-glass:not(#_) #atlasApp .stage::before,.atlas-glass:not(#_) #atlasApp .stage::after{content:"";position:absolute;z-index:0;pointer-events:none;background-repeat:repeat;opacity:1}
.atlas-glass:not(#_) #atlasApp .stage::before{inset:-12px -332px -292px -12px;background-image:radial-gradient(circle at 24px 34px,var(--apx-star-2) 0 .9px,transparent 1.6px),radial-gradient(circle at 148px 92px,var(--apx-star) 0 1.1px,transparent 1.8px),radial-gradient(circle at 86px 176px,var(--apx-star-2) 0 .7px,transparent 1.3px),radial-gradient(circle at 232px 214px,var(--apx-star) 0 .8px,transparent 1.4px),radial-gradient(circle at 290px 58px,var(--apx-star-2) 0 .6px,transparent 1.2px);background-size:320px 280px;translate:calc(var(--apx-px,0)*-10px) calc(var(--apx-py,0)*-10px);animation:apx-drift 150s linear infinite}
.atlas-glass:not(#_) #atlasApp .stage::after{inset:-6px;opacity:.75;background-image:radial-gradient(circle at 60px 80px,var(--apx-star-2) 0 1.4px,transparent 2.3px),radial-gradient(circle at 310px 250px,var(--apx-star) 0 1.2px,transparent 2px),radial-gradient(circle at 400px 120px,var(--apx-star-2) 0 .9px,transparent 1.6px);background-size:460px 400px;translate:calc(var(--apx-px,0)*-5px) calc(var(--apx-py,0)*-5px);animation:none}
.atlas-glass:not(#_) #atlasApp #globe::before{content:"";position:absolute;left:50%;top:50%;z-index:-1;width:118cqh;height:118cqh;margin:-59cqh 0 0 -59cqh;border-radius:50%;pointer-events:none;background:radial-gradient(closest-side at 47% 46%,var(--apx-glow) 0%,var(--apx-glow) 56%,transparent 100%)}
.atlas-glass:not(#_) #atlasApp #globe::after{content:"";position:absolute;left:50%;top:50%;z-index:-1;width:126cqh;height:126cqh;border-radius:50%;pointer-events:none;border:1px solid var(--apx-ring);background:radial-gradient(circle at 50% 4px,var(--apx-sat) 0 3px,transparent 4.5px);transform:translate(-50%,-50%) rotate(-23.4deg) rotateX(74deg);animation:apx-orbit 60s linear infinite}
.atlas-glass:not(#_) #atlasApp:is(.apx-still,.apx-idle,.atlas-motion-paused) .stage::before,.atlas-glass:not(#_) #atlasApp:is(.apx-still,.apx-idle,.atlas-motion-paused) #globe::after{animation-play-state:paused}
.atlas-glass:not(#_) #atlasApp.app:is(:fullscreen,:-webkit-full-screen,.atlas-fallback-fullscreen){padding:0;border-radius:0}
.atlas-glass:not(#_) #atlasApp.app:is(:fullscreen,:-webkit-full-screen,.atlas-fallback-fullscreen) .stage{border-radius:0}
.atlas-glass:not(#_) #atlasApp .loading{align-content:center;gap:16px;background:var(--apx-stage)!important;color:var(--apx-ink)!important;font:600 14px/1 Inter,system-ui,sans-serif;letter-spacing:.005em;transition:opacity .5s var(--apx-out),visibility .5s}
.atlas-glass:not(#_) #atlasApp .loading::before{content:"";width:44px;height:44px;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 25%,var(--apx-accent));-webkit-mask:radial-gradient(closest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));mask:radial-gradient(closest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));animation:apx-spin .9s linear infinite}
.atlas-glass:not(#_) #atlasApp .loading.hide{visibility:hidden}

/* Controls: one glass capsule; the material sits above the globe, content passes beneath */
.atlas-glass:not(#_) .controls{top:16px;right:16px;gap:2px;padding:4px;border:0;border-radius:14px;background:var(--apx-glass);box-shadow:var(--apx-elev-1),var(--apx-rim);-webkit-backdrop-filter:blur(18px) saturate(1.8);backdrop-filter:blur(18px) saturate(1.8);animation:apx-materialize .38s var(--apx-out) .05s backwards}
.atlas-glass:not(#_) .iconbtn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:44px;min-height:44px;padding:0 14px 0 11px;border:0!important;border-radius:10px;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--apx-ink)!important;font:600 13px/1 Inter,system-ui,sans-serif;letter-spacing:.005em;white-space:nowrap;cursor:pointer;transition:background-color .18s ease-out,scale .1s ease-out}
.atlas-glass:not(#_) .iconbtn:hover{background:var(--apx-hover)!important}
.atlas-glass:not(#_) .iconbtn:active{background:var(--apx-press)!important;scale:.97}
.atlas-glass:not(#_) .iconbtn::before{content:"";flex:0 0 15px;width:15px;height:15px;background:currentColor;opacity:.85;-webkit-mask:var(--apx-i) center/contain no-repeat;mask:var(--apx-i) center/contain no-repeat}
.atlas-glass:not(#_) #rotateBtn{--apx-i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='6' y='5' width='4' height='14' rx='1.5'/><rect x='14' y='5' width='4' height='14' rx='1.5'/></svg>")}
.atlas-glass:not(#_) #rotateBtn[data-apx="play"]{--apx-i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5.5v13a1 1 0 0 0 1.5.86l11-6.5a1 1 0 0 0 0-1.72l-11-6.5A1 1 0 0 0 8 5.5z'/></svg>")}
.atlas-glass:not(#_) #resetBtn{--apx-i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c3 3.2 3 14.8 0 18M12 3c-3 3.2-3 14.8 0 18'/></svg>")}
.atlas-glass:not(#_) #fullBtn{--apx-i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5'/></svg>")}
.atlas-glass:not(#_) #fullBtn[aria-pressed="true"]{--apx-i:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9h5V4M20 9h-5V4M4 15h5v5M20 15h-5v5'/></svg>")}

/* Search */
.atlas-glass:not(#_) .atlas-search{left:16px;top:16px;width:min(320px,calc(100% - 32px));padding:14px;border:0!important;border-radius:16px;background:var(--apx-glass)!important;box-shadow:var(--apx-elev-1),var(--apx-rim)!important;-webkit-backdrop-filter:blur(18px) saturate(1.8);backdrop-filter:blur(18px) saturate(1.8);animation:apx-materialize .38s var(--apx-out) backwards}
.atlas-glass:not(#_) .atlas-search label{color:var(--apx-ink)!important;font-weight:650;letter-spacing:.005em}
.atlas-glass:not(#_) .searchrow input{height:44px;padding:0 12px 0 38px;border:1px solid var(--apx-line)!important;border-radius:11px;background:var(--apx-field) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8bb0' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.6-3.6'/></svg>") 13px center/16px no-repeat!important;color:var(--apx-ink)!important;font:500 15px/1 Inter,system-ui,sans-serif;transition:border-color .18s ease-out,box-shadow .18s ease-out}
.atlas-glass:not(#_) .searchrow input::placeholder{color:var(--apx-sub)!important;opacity:1}
.atlas-glass:not(#_) .searchrow input:focus{border-color:var(--apx-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--apx-accent) 30%,transparent)}
.atlas-glass:not(#_) .searchrow button{height:44px;padding:0 18px;border-radius:11px;background:linear-gradient(180deg,#4674e6,#2a52c2)!important;color:#fff;font:650 14px/1 Inter,system-ui,sans-serif;letter-spacing:.005em;box-shadow:0 8px 16px -8px rgba(42,82,194,.9),inset 0 1px 0 rgba(255,255,255,.3);cursor:pointer;transition:filter .18s ease-out,scale .1s ease-out}
.atlas-glass:not(#_) .searchrow button:hover{filter:brightness(1.1)}
.atlas-glass:not(#_) .searchrow button:active{filter:brightness(.94);scale:.97}
.atlas-glass:not(#_) .status{color:var(--apx-sub)!important;font-size:12px;line-height:1.45;letter-spacing:.005em}

/* Country card: materialises from its pin, the tail is the anchor */
.atlas-glass:not(#_) .country-marker{border:0!important;border-radius:16px!important;background:var(--apx-glass-2)!important;color:var(--apx-ink)!important;box-shadow:var(--apx-elev-2),var(--apx-rim)!important;-webkit-backdrop-filter:blur(28px) saturate(1.8);backdrop-filter:blur(28px) saturate(1.8);transform-origin:50% 100%;animation:apx-card .34s var(--apx-out) backwards}
.atlas-glass:not(#_) .country-marker::before{display:none}
.atlas-glass:not(#_) .country-marker::after{background:var(--apx-solid)!important;border-color:transparent!important;box-shadow:none}
.atlas-glass:not(#_) .country-marker .marker-flag{border-radius:8px!important;border-color:var(--apx-line)!important;box-shadow:0 8px 18px -8px rgba(0,0,0,.45)}
.atlas-glass:not(#_) .marker-head{border-bottom-color:var(--apx-line)}
.atlas-glass:not(#_) .marker-head .marker-name{color:var(--apx-ink)!important;letter-spacing:-.02em;text-shadow:none}
.atlas-glass:not(#_) .marker-label{color:var(--apx-sub)!important;font-weight:600}
.atlas-glass:not(#_) .marker-value{color:var(--apx-ink)!important;font-weight:600;font-variant-numeric:tabular-nums;text-shadow:none}
.atlas-glass:not(#_) .marker-source{color:var(--apx-sub)!important;font-weight:500;letter-spacing:.01em}
.atlas-glass:not(#_) .marker-row{animation:apx-row .28s var(--apx-out) backwards}
.atlas-glass:not(#_) .marker-row:nth-child(1){animation-delay:.06s}
.atlas-glass:not(#_) .marker-row:nth-child(2){animation-delay:.09s}
.atlas-glass:not(#_) .marker-row:nth-child(3){animation-delay:.12s}
.atlas-glass:not(#_) .marker-row:nth-child(4){animation-delay:.15s}
.atlas-glass:not(#_) .marker-row:nth-child(n+5){animation-delay:.18s}
.atlas-glass:not(#_) .speak-country{border-radius:50%;cursor:pointer;transition:background-color .18s ease-out,scale .1s ease-out}
.atlas-glass:not(#_) .speak-country:active{scale:.94}

/* Country sheet on phones */
.atlas-glass:not(#_) .country-facts{border:0!important;border-radius:18px;background:var(--apx-glass-2)!important;box-shadow:var(--apx-elev-2),var(--apx-rim)!important;-webkit-backdrop-filter:blur(28px) saturate(1.8);backdrop-filter:blur(28px) saturate(1.8)}
.atlas-glass:not(#_) .country-facts-live:not(.has-country){transform:translateY(24px)!important;transition:opacity .2s ease-in,transform .2s ease-in,visibility .2s!important}
.atlas-glass:not(#_) .country-facts-live.has-country{transition:opacity .25s ease-out,transform .4s var(--apx-out),visibility .25s!important}
.atlas-glass:not(#_) .country-facts .facts-title-row strong{color:var(--apx-ink)!important;letter-spacing:-.015em}
.atlas-glass:not(#_) .country-facts p{color:var(--apx-sub)!important;font-variant-numeric:tabular-nums}
.atlas-glass:not(#_) .country-facts p b{color:var(--apx-ink)!important}
.atlas-glass:not(#_) .facts-flag{border-radius:8px;border-color:var(--apx-line)}

@keyframes apx-materialize{from{opacity:0;scale:.97;filter:blur(8px)}}
@keyframes apx-card{from{opacity:0;scale:.94;filter:blur(8px)}}
@keyframes apx-row{from{opacity:0;translate:0 5px}}
@keyframes apx-fade{from{opacity:0}}
@keyframes apx-drift{to{transform:translate3d(-320px,-280px,0)}}
@keyframes apx-orbit{from{transform:translate(-50%,-50%) rotate(-23.4deg) rotateX(74deg) rotateZ(0deg)}to{transform:translate(-50%,-50%) rotate(-23.4deg) rotateX(74deg) rotateZ(360deg)}}
@keyframes apx-spin{to{rotate:360deg}}

@media(max-width:760px){
.atlas-glass:not(#_)::after{top:-60px;right:-250px;width:520px;height:520px}
.atlas-glass:not(#_) #atlasApp.app{border-radius:20px}
.atlas-glass:not(#_) #atlasApp .stage{border-radius:19px}
.atlas-glass:not(#_) .controls{left:10px;right:10px;top:10px}
.atlas-glass:not(#_) .iconbtn{padding:0 6px;gap:5px;font-size:12.5px}
.atlas-glass:not(#_) .atlas-search{left:10px;right:10px;top:72px;width:auto;padding:8px;border-radius:14px}
}
@media(max-width:380px){.atlas-glass:not(#_) .iconbtn::before{display:none}}
@media(max-height:520px){.atlas-glass:not(#_) .atlas-search{left:10px;right:auto;top:10px;width:210px}.atlas-glass:not(#_) .controls{left:auto;right:10px;top:10px}}
@media(prefers-reduced-transparency:reduce){
.atlas-glass:not(#_){--apx-glass:var(--apx-solid);--apx-glass-2:var(--apx-solid)}
.atlas-glass:not(#_) :is(.controls,.atlas-search,.country-marker,.country-facts){-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-contrast:more){
.atlas-glass:not(#_){--apx-glass:var(--apx-solid);--apx-glass-2:var(--apx-solid);--apx-rim:inset 0 0 0 1.5px var(--apx-ink);--apx-line:var(--apx-ink)}
.atlas-glass:not(#_) :is(.controls,.atlas-search,.country-marker,.country-facts){-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){
.atlas-glass:not(#_) #atlasApp .stage::before,.atlas-glass:not(#_) #atlasApp #globe::after{animation:none}
.atlas-glass:not(#_) :is(.controls,.atlas-search,.country-marker,.marker-row){animation-name:apx-fade;animation-duration:.2s;animation-delay:0s}
.atlas-glass:not(#_) .country-facts-live:not(.has-country){transform:none!important}
}

/* ---- v3: light theme is daylight, dark theme is night ---- */
html:has(body.atlas-glass){background:#edf3fd!important}
.atlas-glass:not(#_){
--apx-ink:#0e1a3c;--apx-sub:#3f5080;--apx-accent:#2457d6;
--apx-wash-a:rgba(255,200,120,.34);--apx-wash-b:rgba(60,130,240,.22);
--apx-glass:rgba(255,255,255,.74);--apx-glass-2:rgba(255,255,255,.92);
--apx-rim:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(255,255,255,.55);
--apx-elev-1:0 12px 28px -12px rgba(16,52,130,.5);
--apx-elev-2:0 30px 64px -26px rgba(16,52,130,.6),0 8px 18px -10px rgba(16,52,130,.3);
--apx-elev-3:0 46px 90px -40px rgba(24,70,170,.62),0 16px 32px -18px rgba(24,70,170,.3);
--apx-frame-a:#fff;--apx-frame-b:rgba(120,170,245,.7);
--apx-stage:radial-gradient(48% 50% at 8% 0%,rgba(255,244,216,.92) 0%,rgba(255,255,255,.34) 36%,transparent 66%),linear-gradient(180deg,#2b6fe0 0%,#5697ef 34%,#9bc5f8 68%,#dcedfe 100%);
--apx-glow:rgba(255,255,255,.66);--apx-ring:rgba(255,255,255,.62);--apx-sat:#fff;--apx-vig:rgba(16,56,150,.2)}
/* Day sky: slow clouds. Night sky: drifting stars that twinkle. */
.atlas-glass:not(#_) #atlasApp .stage::before{inset:0 -1200px 0 0;background-image:radial-gradient(ellipse 190px 44px at 240px 96px,rgba(255,255,255,.82),transparent 72%),radial-gradient(ellipse 260px 58px at 660px 232px,rgba(255,255,255,.55),transparent 72%),radial-gradient(ellipse 160px 38px at 1010px 130px,rgba(255,255,255,.7),transparent 72%),radial-gradient(ellipse 320px 70px at 430px 470px,rgba(255,255,255,.42),transparent 72%);background-size:1200px 560px;filter:blur(5px);animation:apx-clouds 170s linear infinite}
.atlas-glass:not(#_) #atlasApp .stage::after{background-image:none;animation:none}
[data-theme="dark"] .atlas-glass:not(#_) #atlasApp .stage::before,.atlas-glass[data-theme="dark"]:not(#_) #atlasApp .stage::before{inset:-12px -332px -292px -12px;background-image:radial-gradient(circle at 24px 34px,var(--apx-star-2) 0 .9px,transparent 1.6px),radial-gradient(circle at 148px 92px,var(--apx-star) 0 1.1px,transparent 1.8px),radial-gradient(circle at 86px 176px,var(--apx-star-2) 0 .7px,transparent 1.3px),radial-gradient(circle at 232px 214px,var(--apx-star) 0 .8px,transparent 1.4px),radial-gradient(circle at 290px 58px,var(--apx-star-2) 0 .6px,transparent 1.2px);background-size:320px 280px;filter:none;animation:apx-drift 150s linear infinite}
[data-theme="dark"] .atlas-glass:not(#_) #atlasApp .stage::after,.atlas-glass[data-theme="dark"]:not(#_) #atlasApp .stage::after{background-image:radial-gradient(circle at 60px 80px,var(--apx-star-2) 0 1.4px,transparent 2.3px),radial-gradient(circle at 310px 250px,var(--apx-star) 0 1.2px,transparent 2px),radial-gradient(circle at 400px 120px,var(--apx-star-2) 0 .9px,transparent 1.6px);animation:apx-twinkle 3.6s ease-in-out infinite alternate}
.atlas-glass:not(#_) .apx-meteor{position:absolute;z-index:0;width:170px;height:1.5px;border-radius:2px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.95));rotate:28deg;transform-origin:100% 50%;pointer-events:none;animation:apx-meteor 1.1s ease-in forwards}
/* Arrival */
.atlas-glass:not(#_) .intro h1{animation:apx-rise .7s var(--apx-out) backwards}
.atlas-glass:not(#_) .intro p{animation:apx-rise .7s var(--apx-out) .08s backwards}
.atlas-glass:not(#_) #atlasApp.app{animation:apx-stage .9s var(--apx-out) .06s backwards}
.atlas-glass:not(#_) #atlasApp.app:is(:fullscreen,:-webkit-full-screen,.atlas-fallback-fullscreen){animation:none}
.atlas-glass:not(#_) .atlas-search{animation-delay:.3s;transition:box-shadow .25s ease-out}
.atlas-glass:not(#_) .atlas-search:focus-within{box-shadow:var(--apx-elev-2),var(--apx-rim)!important}
.atlas-glass:not(#_) .controls{animation-delay:.38s}
/* Glass catches the light under the pointer */
.atlas-glass:not(#_) .controls::after,.atlas-glass:not(#_) .atlas-search::after,.atlas-glass:not(#_) .country-marker::before{content:"";display:block;position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:none;background:radial-gradient(210px circle at var(--apx-gx,50%) var(--apx-gy,-60px),rgba(255,255,255,.28),transparent 62%);opacity:0;transition:opacity .3s ease-out}
.atlas-glass:not(#_) .controls:hover::after,.atlas-glass:not(#_) .atlas-search:hover::after,.atlas-glass:not(#_) .country-marker:hover::before{opacity:1}
/* Icons answer the pointer */
.atlas-glass:not(#_) .iconbtn::before{transition:rotate .5s var(--apx-out),scale .2s ease-out}
.atlas-glass:not(#_) #resetBtn:hover::before{rotate:28deg}
.atlas-glass:not(#_) #fullBtn:hover::before{scale:1.16}
.atlas-glass:not(#_) #rotateBtn:hover::before{scale:1.12}
.atlas-glass:not(#_) #resetBtn.apx-spin::before{animation:apx-turn .7s var(--apx-out)}
/* Theme switch: the new sky opens from the toggle */
html.apx-vt::view-transition-old(root),html.apx-vt::view-transition-new(root){animation:none;mix-blend-mode:normal}
html.apx-vt::view-transition-new(root){animation:apx-wipe .8s cubic-bezier(.16,1,.3,1) both}
@keyframes apx-wipe{from{clip-path:circle(0 at var(--apx-vx,90%) var(--apx-vy,36px))}to{clip-path:circle(150vmax at var(--apx-vx,90%) var(--apx-vy,36px))}}
@keyframes apx-rise{from{opacity:0;translate:0 .45em;filter:blur(6px)}}
@keyframes apx-stage{from{opacity:0;translate:0 18px;scale:.985}}
@keyframes apx-clouds{to{transform:translate3d(-1200px,0,0)}}
@keyframes apx-twinkle{from{opacity:.45}to{opacity:.95}}
@keyframes apx-meteor{from{opacity:0;translate:-110px -58px}15%{opacity:1}to{opacity:0;translate:270px 144px}}
@keyframes apx-turn{to{rotate:360deg}}
@media(prefers-reduced-motion:reduce){
.atlas-glass:not(#_) #atlasApp .stage::after{animation:none}
.atlas-glass:not(#_) .intro h1,.atlas-glass:not(#_) .intro p,.atlas-glass:not(#_) #atlasApp.app{animation-name:apx-fade;animation-duration:.2s;animation-delay:0s}
.atlas-glass:not(#_) .iconbtn::before{transition:none}
}

/* Phones: compact header, an atlas that fills the first screen, map-style controls */
@media(max-width:760px){
.atlas-glass:not(#_) main{padding:10px 10px 22px}
.atlas-glass:not(#_) .intro{margin:0 0 8px}
.atlas-glass:not(#_) .intro h1{font-size:26px;line-height:1.05;margin:0}
.atlas-glass:not(#_) .intro p{display:none}
.atlas-glass:not(#_) #atlasApp.app{height:calc(100vh - 160px);height:calc(100svh - 160px);min-height:440px}
.atlas-glass:not(#_) #atlasApp.app:is(:fullscreen,:-webkit-full-screen,.atlas-fallback-fullscreen){height:100vh;height:100dvh;min-height:0}
.atlas-glass:not(#_) .controls{left:auto;right:10px;top:10px;display:flex;flex-direction:column;gap:2px;padding:4px}
.atlas-glass:not(#_) .iconbtn{width:44px;height:44px;min-height:44px;padding:0;gap:0;font-size:0}
.atlas-glass:not(#_) .iconbtn::before{display:block;flex-basis:18px;width:18px;height:18px}
.atlas-glass:not(#_) .atlas-search{left:10px;right:70px;top:10px;width:auto;padding:8px}
.atlas-glass:not(#_) .status{margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.atlas-glass:not(#_) .country-facts-live{bottom:24px!important}
.atlas-glass:not(#_) #atlasApp.app:is(:fullscreen,:-webkit-full-screen,.atlas-fallback-fullscreen) .country-facts-live{bottom:calc(24px + env(safe-area-inset-bottom,0px))!important}
}
