@font-face { font-family: 'Inter Tight'; src: url(fonts/InterTight.woff2?v=681611) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JB Mono'; src: url(fonts/JetBrainsMono.woff2?v=681611) format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  --ink: #e9eef3; --mute: rgba(233, 238, 243, .62); --dim: rgba(233, 238, 243, .36); --line: rgba(255, 255, 255, .1); --mint: #97fce4;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  --pad: 28px; --ease: cubic-bezier(.22, .8, .2, 1);
  --mono: 'JB Mono', ui-monospace, SFMono-Regular, Menlo, monospace; --sans: 'Inter Tight', -apple-system, 'Helvetica Neue', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #020306; color: var(--ink); overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
body { position: fixed; inset: 0; height: 100vh; height: 100dvh; font-family: var(--sans); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--mint); outline-offset: 3px; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#vig { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse 120% 95% at 50% 50%, transparent 55%, rgba(0, 0, 0, .5) 100%); }

/* visor frame */
#frame { position: fixed; inset: calc(16px + var(--st)) calc(16px + var(--sr)) calc(16px + var(--sb)) calc(16px + var(--sl)); pointer-events: none; opacity: 0; transition: opacity 2s 1.2s; }
#frame i { position: absolute; width: 18px; height: 18px; border-color: rgba(255, 255, 255, .26); border-style: solid; border-width: 0; }
#frame .tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; } #frame .tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
#frame .bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; } #frame .br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
#frame .reticle { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: .0; transition: opacity 1s; }
#frame .reticle::before, #frame .reticle::after { content: ''; position: absolute; background: rgba(255, 255, 255, .35); }
#frame .reticle::before { left: 12.5px; top: 0; width: 1px; height: 26px; clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%, 0 65%, 100% 65%, 100% 100%, 0 100%); }
#frame .reticle::after { top: 12.5px; left: 0; height: 1px; width: 26px; clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%); }
body.in-earth #frame .reticle { opacity: .8; } body.in-hyper #frame .reticle { opacity: 0; }

/* HUD */
#hud { position: fixed; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: calc(var(--pad) + var(--st)) calc(var(--pad) + 8px + var(--sr)) 0 calc(var(--pad) + 8px + var(--sl)); pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity 1.4s 1.4s var(--ease), transform 1.4s 1.4s var(--ease); }
.brand b { display: block; font-weight: 500; font-size: 13px; letter-spacing: .5em; text-transform: uppercase; }
.brand span { display: block; margin-top: 7px; font: 400 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.hud-r { display: flex; gap: 26px; align-items: flex-start; }
#tele { font: 400 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; text-align: right; }
#tele p { margin: 0 0 7px; display: flex; gap: 14px; justify-content: flex-end; }
#tele span { color: var(--dim); } #tele b { font-weight: 400; color: var(--ink); min-width: 0; }
#snd { pointer-events: auto; display: flex; align-items: center; gap: 9px; font: 400 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); padding: 2px 0 8px 8px; }
#snd .eq { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
#snd .eq i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
#snd.on { color: var(--ink); }
#snd.on .eq i { animation: eq 1.2s ease-in-out infinite alternate; } #snd.on .eq i:nth-child(2) { animation-delay: -.4s; } #snd.on .eq i:nth-child(3) { animation-delay: -.8s; } #snd.on .eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { from { height: 2px; } to { height: 10px; } }

/* destinations rail */
#rail { position: fixed; left: 50%; bottom: calc(24px + var(--sb)); transform: translate(-50%, 10px); display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity 1.4s 1.6s var(--ease), transform 1.4s 1.6s var(--ease); }
#rail .ticks { display: flex; }
.tick { position: relative; width: 38px; height: 40px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; }
.tick i { display: block; width: 1px; height: 9px; background: rgba(255, 255, 255, .34); transition: height .6s var(--ease), background .6s; }
.tick span { position: absolute; bottom: 30px; left: 50%; transform: translate(-50%, 4px); font: 400 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .5s, transform .5s var(--ease); pointer-events: none; color: var(--mute); }
.tick.on i { height: 18px; background: var(--mint); box-shadow: 0 0 10px rgba(151, 252, 228, .6); }
.tick.on span { opacity: 1; transform: translate(-50%, 0); color: var(--ink); }
@media (hover: hover) { .tick:hover span { opacity: 1; transform: translate(-50%, 0); } .tick:hover i { background: #fff; } }
#prev, #next { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: border-color .4s, opacity .4s; }
#prev svg, #next svg, #earthUI svg, #hyperUI svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
#prev:disabled, #next:disabled { opacity: .25; cursor: default; }
@media (hover: hover) { #prev:hover:not(:disabled), #next:hover:not(:disabled) { border-color: rgba(255, 255, 255, .4); } }
#hint { position: fixed; left: 0; right: 0; bottom: calc(86px + var(--sb)); margin: 0; text-align: center; font: 400 10px/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease), transform .8s var(--ease); padding: 0 20px; }
#hint.on { opacity: 1; transform: none; }
body.in-earth #hint, body.in-hyper #hint { bottom: calc(92px + var(--sb)); }

body.began #hud, body.began #rail { opacity: 1; transform: translate(0, 0); }
body.began #rail { transform: translate(-50%, 0); }
body.began #frame { opacity: 1; }
body.in-earth #rail, body.in-hyper #rail { opacity: 0 !important; pointer-events: none; transition-delay: 0s; }

/* planet card */
#card { position: fixed; right: calc(var(--pad) + 8px + var(--sr)); top: 50%; width: 384px; max-height: min(78vh, 760px); max-height: min(78dvh, 760px); transform: translate(26px, -50%); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .9s; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(14, 19, 27, .62), rgba(6, 9, 14, .66)); border: 1px solid rgba(255, 255, 255, .09); border-radius: 4px; -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
#card::before, #card::after { content: ''; position: absolute; width: 10px; height: 10px; border: 0 solid var(--mint); opacity: .8; }
#card::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; } #card::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
#card.on { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(0, -50%); transition: opacity .9s .15s var(--ease), transform 1.1s .1s var(--ease), visibility 0s; }
#cardIn { overflow-y: auto; padding: 30px 32px 30px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none; }
#cardIn::-webkit-scrollbar { display: none; }
#cardX { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; font-size: 20px; font-weight: 200; color: var(--dim); z-index: 2; }
#cardX:hover { color: var(--ink); }
.c-top { display: flex; gap: 14px; align-items: center; font: 400 10px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; padding-right: 26px; }
.c-idx { color: var(--mint); display: inline-flex; } .c-kind { color: var(--mute); }
#card h2 { margin: 16px 0 16px; font-weight: 250; font-size: 58px; line-height: .95; letter-spacing: -.025em; }
.c-desc { margin: 0; font-size: 15px; line-height: 1.62; color: rgba(233, 238, 243, .8); font-weight: 350; }
.c-more { display: none; }
.c-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0 0; border-top: 1px solid var(--line); }
.c-stats div { padding: 14px 0 13px; border-bottom: 1px solid var(--line); }
.c-stats div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); } .c-stats div:nth-child(even) { padding-left: 16px; }
.c-stats dt { font: 400 9.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.c-stats dd { margin: 0; font-size: 15px; font-weight: 400; letter-spacing: -.005em; }
.c-facts { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: f; }
.c-facts li { counter-increment: f; position: relative; padding: 0 0 14px 34px; font-size: 13.5px; line-height: 1.55; color: rgba(233, 238, 243, .74); }
.c-facts li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 400 10px/1.4 var(--mono); color: var(--mint); letter-spacing: .1em; }
.c-secs section { padding: 16px 0 0; } .c-secs h4 { margin: 0 0 6px; font: 400 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--mint); }
.c-secs p { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(233, 238, 243, .76); }
.c-cta { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 50px; padding: 0 18px; border: 1px solid rgba(151, 252, 228, .45); color: var(--mint); text-decoration: none; font: 400 11px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; transition: background .4s, border-color .4s; border-radius: 2px; }
.c-cta i { position: relative; width: 26px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.c-cta i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transform-origin: 100% 0; }
.c-cta:hover { background: rgba(151, 252, 228, .08); border-color: var(--mint); } .c-cta:hover i { width: 38px; }
#card.hl { border-color: rgba(151, 252, 228, .22); background: linear-gradient(180deg, rgba(8, 26, 24, .66), rgba(3, 10, 11, .7)); }
#card.hl h2 { color: var(--mint); }

/* labels */
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#labels > * { position: absolute; left: 0; top: 0; visibility: hidden; opacity: 0; will-change: transform, opacity; pointer-events: auto; transition: opacity .35s; }
.plabel { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 0; font: 400 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.plabel i { width: 11px; height: 11px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; }
.plabel b { font-weight: 400; color: var(--mint); }
@media (hover: hover) { .plabel:hover { color: #fff; } .plabel:hover i { border-color: var(--mint); } }
.elabel.cont { font: 450 10.5px/1 var(--mono); letter-spacing: .38em; text-transform: uppercase; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); padding: 8px; }
.elabel.city { display: flex; align-items: center; gap: 7px; padding: 4px 6px 4px 0; font-size: 12px; font-weight: 450; letter-spacing: .01em; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 8px rgba(0, 0, 0, .95); }
.elabel.city i { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
.elabel.sig { display: flex; flex-direction: column; gap: 5px; padding: 6px 0 6px 30px; text-align: left; }
.elabel.sig::before { content: ''; position: absolute; left: 3px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 1px solid var(--mint); border-radius: 50%; animation: ping 1.8s var(--ease) infinite; }
.elabel.sig span { font: 450 10.5px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--mint); text-shadow: 0 0 12px rgba(151, 252, 228, .5), 0 1px 6px rgba(0, 0, 0, .9); }
.elabel.sig em { font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* small popover for continents & cities */
#pop { position: fixed; left: calc(var(--pad) + 8px + var(--sl)); bottom: calc(var(--pad) + 70px + var(--sb)); width: 330px; padding: 22px 24px 22px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .6s;
  background: rgba(8, 12, 18, .66); border: 1px solid var(--line); border-radius: 4px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
#pop.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
#pop .k { margin: 0; font: 400 10px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mint); }
#pop h3 { margin: 10px 0 8px; font-weight: 300; font-size: 30px; letter-spacing: -.015em; }
#pop p { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(233, 238, 243, .78); }
#pop .x { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; font-size: 18px; color: var(--dim); }

/* mode buttons */
#earthUI, #hyperUI { position: fixed; left: 50%; bottom: calc(26px + var(--sb)); transform: translate(-50%, 10px); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), transform .8s var(--ease), visibility 0s .8s; }
#earthUI.on, #hyperUI.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 1s .6s var(--ease), transform 1s .6s var(--ease), visibility 0s; }
#earthBack, #hyperBack { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px 0 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 21px; font: 400 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; background: rgba(6, 9, 14, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#hyperBack { border-color: rgba(151, 252, 228, .3); color: var(--mint); }
#fade { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #f4fffc 0%, #c9fff1 30%, #6fd9c4 70%, #1c4f48 100%); }

/* loader / title */
#loader { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #020306; transition: background 2.4s ease, opacity 1.4s var(--ease), transform 1.6s var(--ease); }
body.ready #loader { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(2, 3, 6, .15), rgba(2, 3, 6, .55)); }
#loader.gone { opacity: 0; pointer-events: none; transform: scale(1.06); }
.ld-mid { text-align: center; padding: 0 24px; }
.ld-k { margin: 0; font: 400 10.5px/1 var(--mono); letter-spacing: .34em; text-transform: uppercase; color: var(--mute); opacity: 0; animation: up 1.6s .2s var(--ease) forwards; }
#loader h1 { margin: 22px 0 0; font-weight: 200; font-size: clamp(54px, 13vw, 170px); line-height: 1; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; animation: up 2s .35s var(--ease) forwards; }
@keyframes up { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.ld-load { margin: 46px auto 0; width: 180px; transition: opacity .8s; pointer-events: none; }
.ld-bar { height: 1px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ld-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.ld-pct { margin: 14px 0 0; display: flex; justify-content: space-between; font: 400 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.ld-go { position: relative; z-index: 2; margin-top: -30px; display: flex; flex-direction: column; align-items: center; gap: 18px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 1.2s .3s var(--ease), transform 1.2s .3s var(--ease); }
body.ready .ld-load { opacity: 0; } body.ready .ld-go { opacity: 1; pointer-events: auto; transform: none; }
.btn { display: inline-flex; align-items: center; gap: 22px; height: 54px; padding: 0 26px 0 30px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 27px; font: 400 11px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; background: rgba(255, 255, 255, .03); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .5s, background .5s; }
.btn i { position: relative; width: 22px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.btn i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transform-origin: 100% 0; }
.btn:hover { border-color: var(--mint); background: rgba(151, 252, 228, .06); } .btn:hover i { width: 34px; }
.lnk { font: 400 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); padding: 8px; }
.lnk:hover { color: var(--ink); }
.ld-foot { position: absolute; left: 0; right: 0; bottom: calc(30px + var(--sb)); margin: 0; text-align: center; font: 400 9.5px/1.5 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); padding: 0 20px; opacity: 0; transition: opacity 1.2s .6s; }
body.ready .ld-foot { opacity: 1; }
.ld-nogl { display: none; position: absolute; left: 24px; right: 24px; bottom: 40%; text-align: center; font-size: 15px; line-height: 1.6; color: var(--mute); }
body.nogl .ld-nogl { display: block; } body.nogl .ld-load, body.nogl .ld-go { display: none; }

/* phones */
@media (max-width: 820px) {
  :root { --pad: 18px; }
  .brand b { font-size: 12px; letter-spacing: .44em; } .brand span { font-size: 9px; }
  #tele p:nth-child(n+2) { display: none; } #tele { font-size: 9.5px; } .hud-r { gap: 16px; }
  #snd .lbl { display: none; }
  #rail { bottom: calc(14px + var(--sb)); gap: 2px; }
  .tick { width: 26px; } .tick span { font-size: 9.5px; }
  #prev, #next { width: 36px; height: 36px; }
  #hint { bottom: calc(70px + var(--sb)); font-size: 9.5px; letter-spacing: .2em; }
  #card { left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); width: auto; top: auto; bottom: calc(66px + var(--sb)); max-height: 58vh; max-height: 58dvh; transform: translateY(24px); }
  #card.on { transform: none; }
  #cardIn { padding: 20px 20px 18px; }
  #card h2 { font-size: 38px; margin: 10px 0 10px; }
  .c-desc { font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  #card.open .c-desc { display: block; -webkit-line-clamp: unset; }
  .c-more { display: inline-flex; margin-top: 12px; font: 400 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--mint); padding: 6px 0; }
  .c-more::after { content: ' +'; white-space: pre; } #card.open .c-more::after { content: ' −'; }
  .c-body { display: none; } #card.open .c-body { display: block; }
  .c-stats { margin-top: 16px; } .c-cta { margin-top: 14px; height: 46px; }
  #pop { left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); width: auto; bottom: calc(80px + var(--sb)); }
  .elabel.city { font-size: 11px; } .elabel.cont { font-size: 9.5px; letter-spacing: .3em; }
  #frame { inset: calc(10px + var(--st)) calc(10px + var(--sr)) calc(10px + var(--sb)) calc(10px + var(--sl)); }
  #frame i { width: 12px; height: 12px; }
}
@media (max-height: 520px) and (orientation: landscape) { #card { max-height: 80vh; } #card h2 { font-size: 34px; } }
/* touch devices: blurring a live WebGL canvas behind glass costs a full-screen pass every frame, so the glass is simply a little more opaque */
@media (pointer: coarse), (max-width: 820px) {
  #card, #pop, .btn, #earthBack, #hyperBack { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  #card { background: linear-gradient(180deg, rgba(12, 17, 25, .9), rgba(5, 8, 12, .92)); }
  #card.hl { background: linear-gradient(180deg, rgba(6, 24, 22, .92), rgba(3, 10, 11, .94)); }
  #pop { background: rgba(8, 12, 18, .9); }
  #earthBack, #hyperBack { background: rgba(6, 9, 14, .72); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; transition-duration: .2s !important; } }

/* feedback: pressed states, tap ripple, hover glow (transform / opacity only) */
#ripple { position: fixed; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); pointer-events: none; opacity: 0; will-change: transform, opacity; }
#ripple.go::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(151, 252, 228, .9); animation: rip .6s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes rip { from { transform: scale(.25); opacity: .95; } to { transform: scale(1.5); opacity: 0; } }
.btn, .c-cta, #earthBack, #hyperBack, #prev, #next, .tick, .plabel, .elabel, #snd, .c-more { transition-property: transform, opacity, border-color, background, color; }
.btn:active, .c-cta:active, #earthBack:active, #hyperBack:active { transform: scale(.965); }
#prev:active:not(:disabled), #next:active:not(:disabled) { transform: scale(.88); border-color: var(--mint); }
.tick:active i { background: var(--mint); } .plabel:active, .elabel.city:active { opacity: .7; }
#card, #pop { transition-property: opacity, transform, visibility; }
@media (hover: hover) { #card:hover { border-color: rgba(255, 255, 255, .16); } .elabel.city:hover span { color: #fff; } .elabel.city:hover i { box-shadow: 0 0 0 5px rgba(151, 252, 228, .22); background: var(--mint); } }

/* side arrows: transparent glass chevrons on the screen edges; the hit area is big and invisible, the visible mark is small */
.snav { position: fixed; z-index: 4; top: 50%; width: 64px; height: 96px; margin-top: -48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease), transform .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.snav.l { left: var(--sl); } .snav.r { right: var(--sr); }
.snav i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 22px rgba(0, 0, 0, .25); transition: border-color .3s, background .3s, transform .25s var(--ease); }
.snav svg { width: 14px; height: 14px; fill: none; stroke: rgba(233, 238, 243, .85); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.snav span { font: 400 8.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); min-height: 9px; }
body.began .snav { opacity: .9; pointer-events: auto; }
body.began .snav:disabled { opacity: .0; pointer-events: none; }
body.in-earth .snav, body.in-hyper .snav { opacity: 0 !important; pointer-events: none; }
.snav:active i { transform: scale(.88); border-color: var(--mint); background: rgba(151, 252, 228, .1); }
@media (hover: hover) { .snav:hover i { border-color: rgba(151, 252, 228, .6); background: rgba(151, 252, 228, .08); } .snav:hover span { color: var(--mute); } }
@media (min-width: 821px) { .snav { width: 76px; } body.card-on .snav.r { right: calc(var(--pad) + 8px + 384px + 12px + var(--sr)); } .snav.l { left: calc(8px + var(--sl)); } }
@media (max-width: 820px) { .snav { top: 27%; width: 56px; height: 88px; margin-top: -44px; } .snav i { width: 36px; height: 36px; } .snav.l { left: calc(2px + var(--sl)); } .snav.r { right: calc(2px + var(--sr)); } }
@media (max-height: 520px) and (orientation: landscape) { .snav { top: 46%; } body.card-on .snav.r { right: calc(var(--pad) + 8px + 384px + 12px + var(--sr)); } }
.snav i { border-color: rgba(255, 255, 255, .24); background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(0, 0, 0, .28), 0 6px 22px rgba(0, 0, 0, .35); }
@media (hover: hover) and (pointer: fine) { .snav i { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }
@media (max-width: 820px) { .snav span { display: none; } }

/* Earth: locate button, bigger signal hit area */
#earthUI { display: flex; gap: 10px; align-items: center; }
#locate { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 16px; border: 1px solid rgba(151, 252, 228, .3); border-radius: 21px; font: 400 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--mint); background: rgba(6, 9, 14, .35); transition-property: transform, opacity, border-color, background, color; transition-duration: .3s; }
#locate i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
#locate:active { transform: scale(.96); background: rgba(151, 252, 228, .12); }
@media (max-width: 820px) { #earthBack, #locate { height: 40px; font-size: 9.5px; letter-spacing: .16em; padding: 0 14px; } #earthBack { padding-left: 10px; } }
.elabel.sig { z-index: 5; }
.elabel.sig::after { content: ''; position: absolute; left: -25px; top: 50%; width: 76px; height: 76px; margin-top: -38px; border-radius: 50%; }
.elabel.sig.mars span { color: #ffc9a6; text-shadow: 0 0 12px rgba(255, 160, 110, .5), 0 1px 6px rgba(0, 0, 0, .9); }
.elabel.sig.mars::before { border-color: #ffa273; }
/* Mars base: speech bubble + warm card accents */
#say { position: fixed; left: 0; top: 0; margin: 0; padding: 7px 12px; max-width: 220px; border-radius: 14px 14px 14px 3px; font: 450 12px/1.25 var(--sans); color: #1b1210; background: rgba(255, 244, 236, .95); box-shadow: 0 8px 28px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; white-space: nowrap; will-change: transform, opacity; z-index: 6; }
#card.mars::before, #card.mars::after { border-color: #ffa273; }
#card.mars .c-idx { color: #ffa273; } #card.mars .c-kind { color: rgba(255, 201, 166, .8); }
#card.mars .c-cta { border-color: rgba(255, 162, 115, .45); color: #ffc9a6; }
.c-fine { margin: 14px 0 0; font-size: 11px; line-height: 1.5; color: var(--dim); }
body[data-alt="mars"] #hyperBack { border-color: rgba(255, 162, 115, .4); color: #ffc9a6; }
#card.hl.mars { border-color: rgba(255, 162, 115, .26); background: linear-gradient(180deg, rgba(38, 18, 14, .68), rgba(14, 7, 6, .72)); }
#card.hl.mars h2 { color: #ffd2b5; }
#card.hl.mars .c-stats dd, #card.hl.mars .c-secs h4 { color: #ffc9a6; }
@media (pointer: coarse), (max-width: 820px) { #card.hl.mars { background: linear-gradient(180deg, rgba(34, 16, 12, .93), rgba(12, 6, 5, .95)); } }
#earthBack, #locate { white-space: nowrap; flex: none; }
body[data-alt="mars"] #hint { bottom: auto; top: calc(78px + var(--st)); text-shadow: 0 1px 8px rgba(60, 20, 14, .8); color: rgba(255, 244, 236, .85); }
@media (max-width: 380px) { #earthBack, #locate { padding: 0 11px; letter-spacing: .12em; } #earthUI { gap: 7px; } }
