/* ORBITA - kinowy atlas Układu Słonecznego. Demo ITTI.
   Tryby: bez klasy .is-flight strona jest zwykłym, przewijanym atlasem (bez JS, ograniczony ruch, przełącznik ruchu).
   Z .is-flight scena jest przypięta, a przewijanie steruje lotem kamery (app.js). */

@font-face {
  font-family: "Instrument Sans";
  src: url("../../assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../../assets/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --void: #050507;
  --ivory: #efe8da;
  --ivory-2: rgba(239, 232, 218, .7);
  --ivory-3: rgba(239, 232, 218, .62);
  --line: rgba(239, 232, 218, .16);
  --glass: rgba(8, 8, 11, .42);
  --glow: #6b2a07;
  --deep: #0d0503;
  --glow-x: 74%;
  --glow-y: 78%;
  --gx: max(clamp(16px, 2.8vw, 44px), env(safe-area-inset-left), env(safe-area-inset-right));
  --top: 88px;
  --bottom: 104px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color: var(--ivory); -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; background: var(--void); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--gx); top: 12px; z-index: 100; padding: 12px 16px; background: var(--ivory); color: var(--void); font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transform: translateY(-160%); }
.skip:focus { transform: none; }
.noscript { position: relative; z-index: 60; margin: 0; padding: 96px var(--gx) 0; font: 12px/1.6 var(--mono); color: var(--ivory-2); }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; padding: env(safe-area-inset-top) var(--gx) 0; background: linear-gradient(to bottom, rgba(5, 5, 7, .72), rgba(5, 5, 7, 0)); pointer-events: none; }
.hud::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(to bottom, var(--void) 62%, rgba(5, 5, 7, 0)); opacity: 0; transition: opacity .4s; pointer-events: none; }
.is-coda .hud::before { opacity: 1; }   /* zamknięcie: nagłówek nie wjeżdża pod logo */
.hud > * { pointer-events: auto; }
.hud__logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .32em; }
.hud__mark { width: 22px; height: 22px; color: var(--accent-ui, #f6a744); transition: color .8s; }
.hud__read { position: absolute; left: calc(var(--gx) + 150px); top: calc(env(safe-area-inset-top) + 36px); transform: translateY(-50%); display: flex; gap: 14px; align-items: baseline; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); pointer-events: none; white-space: nowrap; }
.hud__read b { font-weight: 400; color: var(--ivory); font-variant-numeric: tabular-nums; min-width: 9ch; }
.hud__read i { font-style: normal; color: var(--ivory-3); font-variant-numeric: tabular-nums; }
.hud__actions { display: flex; align-items: center; gap: 8px; }
.hud__btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: border-color .25s, background .25s, color .25s; }
.hud__btn svg { width: 16px; height: 16px; flex: none; }
.hud__btn:hover { border-color: rgba(239, 232, 218, .5); }
.hud__btn b { font-weight: 400; color: var(--ivory); }
.hud__motion[aria-pressed="false"] { color: var(--ivory-3); }
.hud__map { background: var(--ivory); color: var(--void); border-color: var(--ivory); }
.hud__map:hover { background: #fff; }

/* ---------- Stage / tło ---------- */
.nebula, .stars, .veil { position: fixed; inset: 0; pointer-events: none; }
.nebula { z-index: 0; background:
  radial-gradient(60vmax 50vmax at var(--glow-x) var(--glow-y), color-mix(in srgb, var(--glow) 82%, transparent), transparent 70%),
  radial-gradient(90vmax 70vmax at calc(100% - var(--glow-x)) calc(100% - var(--glow-y)), color-mix(in srgb, var(--glow) 22%, transparent), transparent 75%),
  var(--deep); }
.stars { z-index: 1; width: 100%; height: 100%; }
.orbits { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.schema-note { display: none; }
.is-flight .schema-note { display: block; position: fixed; z-index: 40; left: var(--gx); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 66px); max-width: 60vw; font: 9px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); opacity: 0; pointer-events: none; transition: opacity .4s; }
.veil { z-index: 30; background:
  radial-gradient(120% 90% at 50% 50%, transparent 58%, rgba(0, 0, 0, .42) 100%),
  var(--grain);
  opacity: .9; mix-blend-mode: soft-light; }
.debris, .transit { display: none; }
.track { display: none; }
.worlds { position: relative; z-index: 2; }

/* ---------- Świat (wspólne) ---------- */
.world { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(12, minmax(0, 1fr)); column-gap: 24px; min-height: 100vh; min-height: 100svh; padding: var(--top) var(--gx) var(--bottom); overflow: clip; isolation: isolate; }
.w-giant, .w-planet { position: absolute; }
.w-giant { z-index: 1; left: var(--gl, auto); right: var(--gr, auto); top: var(--gt, auto); bottom: var(--gb, auto); translate: var(--gtr, 0 0); font-size: var(--gs, 20vw); font-weight: 600; line-height: .78; letter-spacing: -.055em; white-space: nowrap; user-select: none; pointer-events: none; }
.g-solid { color: var(--ivory); background: linear-gradient(180deg, var(--ivory) 30%, color-mix(in srgb, var(--accent) 60%, var(--ivory)) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.g-stroke { color: transparent; -webkit-text-stroke: 1.4px color-mix(in srgb, var(--accent-2) 70%, transparent); }
.w-planet { z-index: 2; left: var(--px); top: var(--py); width: var(--ps); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.w-planet img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.w-planet::before { content: ""; position: absolute; inset: var(--halo-inset, 4%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); opacity: var(--halo, .35); filter: blur(12px); z-index: 0; }
.w-missing { display: none; }
.w-planet.is-missing img { opacity: 0; }
.w-planet.is-missing .w-missing { position: absolute; inset: 10%; z-index: 1; display: grid; place-items: center; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 50%; font: 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); }
.w-planet.is-missing .w-missing::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid var(--line); }

.w-copy { position: relative; z-index: 4; align-self: center; max-width: 30rem; }
.w-intro { margin-bottom: 30px; font: 11px/1.7 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-2); }
.w-intro span { display: block; margin-bottom: 4px; font: 600 13px/1 var(--sans); letter-spacing: .4em; color: var(--ivory); }
.w-intro em { font-style: normal; color: var(--accent-2); }
.w-kicker { display: flex; gap: 14px; align-items: baseline; margin-bottom: 20px; font: 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-2); }
.w-kicker span { color: var(--accent-2); }
.w-kicker::after { content: ""; flex: 1; max-width: 72px; height: 1px; background: var(--line); align-self: center; }
.w-title { font-size: clamp(34px, 3.9vw, 68px); font-weight: 500; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.w-text { margin-top: 22px; max-width: 34ch; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; color: var(--ivory-2); text-wrap: pretty; }
.w-cue { display: flex; align-items: center; gap: 14px; margin-top: 34px; font: 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-3); }
.w-cue span { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.w-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ivory); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.w-fact { position: relative; z-index: 3; align-self: center; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: end; }
.w-fact b { grid-row: span 2; font-size: var(--fs, clamp(96px, 13vw, 232px)); font-weight: 400; line-height: .78; letter-spacing: -.07em; color: var(--accent-2); font-variant-numeric: lining-nums; }
.w-fact i { font: 500 clamp(18px, 1.6vw, 26px)/1 var(--sans); font-style: normal; letter-spacing: -.02em; color: var(--ivory); align-self: end; }
.w-fact i, .w-fact small { text-shadow: 0 1px 14px rgba(0, 0, 0, .65); }
.w-fact small { max-width: 22ch; padding-top: 8px; font: 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-2); align-self: start; }
.w-fact i:empty { display: none; }
.w-fact i:empty + small { grid-row: span 2; align-self: end; padding-bottom: .6em; }

/* ---------- Kompozycje: desktop ----------
   Zasada: wielki napis i planeta to warstwy artystyczne; tekst informacyjny (kopia, liczba) ma własne strefy
   zakotwiczone do krawędzi kadru, a wysokość napisu jest ograniczona także przez vh, więc nie wchodzą na siebie. */
.w-terrain { position: absolute; z-index: 4; left: -6vw; right: -6vw; bottom: 0; height: min(17vw, 22vh); overflow: hidden; pointer-events: none; }
.w-terrain img { position: absolute; left: 0; top: calc(112vw * -.4267); width: 100%; height: auto; max-width: none; }
.w-terrain.is-grey img { filter: saturate(.18) brightness(.82) contrast(1.05); }
@media (min-width: 761px) {
  .world { --T: var(--top); --B: var(--bottom); }
  .w-copy, .w-fact { position: absolute; left: var(--cl, auto); right: var(--cr, auto); top: var(--ct, auto); bottom: var(--cb, auto); }
  .w-copy { --cl: var(--gx); --cb: var(--B); width: var(--cw, min(29rem, 36vw)); max-width: none; z-index: 5; }
  .w-fact { z-index: 5; max-width: 40vw; translate: var(--ftr, 0 0); }
  .w-sun, .w-mercury, .w-venus, .w-earth, .w-mars, .w-jupiter, .w-saturn, .w-uranus, .w-neptune { --gtop: var(--T); }
  .w-giant { top: var(--gt, auto); }

  .w-sun { --px: 74%; --py: 82%; --ps: min(108vmin, 760px); --halo: .95; --halo-inset: -26%; --gl: 2.6vw; --gt: var(--T); --gs: min(16vw, 25vh); }
  .w-sun .w-fact { --cr: var(--gx); --ct: calc(var(--T) + 4px); --fs: clamp(84px, 9.5vw, 180px); }

  .w-mercury { --px: 33%; --py: 54%; --ps: min(40vmin, 440px); --gr: 2vw; --gb: calc(var(--B) + 4vh); --gs: min(15vw, 24vh); }
  .w-mercury .w-copy { --cl: auto; --cr: var(--gx); --cb: auto; --ct: calc(var(--T) + 12px); }
  .w-mercury .w-fact { --cl: calc(var(--gx) + 2vw); --ct: calc(var(--T) - 4px); --fs: clamp(84px, 10vw, 190px); }

  .w-venus { --px: 64%; --py: 56%; --ps: min(56vmin, 580px); --halo: .45; --gl: 2vw; --gt: var(--T); --gs: min(19vw, 24vh); }
  .w-venus .w-fact { --cr: var(--gx); --ct: auto; --cb: var(--B); --fs: clamp(72px, 8.4vw, 160px); }

  .w-earth { --px: 54%; --py: 60%; --ps: min(62vmin, 620px); --halo: .6; --gl: 50%; --gt: var(--T); --gtr: -50% 0; --gs: min(20vw, 24vh); }
  .w-earth .w-copy { --cw: min(25rem, 28vw); }
  .w-earth .w-fact { --cr: var(--gx); --ct: var(--T); --fs: clamp(84px, 9.5vw, 180px); }

  .w-mars { --px: 64%; --py: 44%; --ps: min(50vmin, 520px); --halo: .4; --gl: 2.6vw; --gt: var(--T); --gs: min(22vw, 26vh); --B2: calc(var(--B) + min(9vw, 11vh)); }
  .w-mars .w-copy { --cb: var(--B2); }
  .w-mars .w-fact { --cr: var(--gx); --cb: var(--B2); --fs: clamp(80px, 9vw, 170px); }

  .w-jupiter { --px: 17%; --py: 54%; --ps: min(112vmin, 720px); --halo: .3; --gr: 2vw; --gt: var(--T); --gs: min(17vw, 23vh); }
  .w-jupiter .w-copy { --cl: auto; --cr: var(--gx); --cw: min(27rem, 34vw); }
  .w-jupiter .w-fact { --cr: var(--gx); --ct: calc(var(--T) + min(17vw, 23vh) * .78 + 3vh); --fs: clamp(56px, 6vw, 110px); }

  .w-saturn { --px: 60%; --py: 52%; --ps: min(90vmin, 760px); --halo: .25; --halo-inset: 26%; --gl: 50%; --gb: calc(var(--B) - 2vh); --gtr: -50% 0; --gs: min(20vw, 25vh); }
  .w-saturn .w-copy { --cb: auto; --ct: calc(var(--T) + 8px); --cw: min(26rem, 29vw); }
  .w-saturn .w-fact { --cr: var(--gx); --ct: var(--T); --fs: clamp(76px, 8.5vw, 160px); }

  .w-uranus { --px: 70%; --py: 40%; --ps: min(54vmin, 540px); --halo: .5; --gl: 2vw; --gb: var(--B); --gs: min(24vw, 28vh); }
  .w-uranus .w-copy { --cb: auto; --ct: calc(var(--T) + 8px); }
  .w-uranus .w-fact { --cr: var(--gx); --cb: var(--B); --fs: clamp(72px, 8vw, 150px); }

  .w-neptune { --px: 58%; --py: 45%; --ps: min(60vmin, 640px); --halo: .55; --gl: 50%; --gb: calc(var(--B) - 2vh); --gtr: -50% 0; --gs: min(20vw, 25vh); }
  .w-neptune .w-copy { --cb: auto; --ct: calc(var(--T) + 8px); --cw: min(26rem, 30vw); }
  .w-neptune .w-fact { --cr: var(--gx); --ct: var(--T); --fs: clamp(72px, 7.6vw, 150px); }

  .w-title { font-size: clamp(32px, min(3.8vw, 6.6vh), 68px); }
}
@media (min-width: 761px) and (max-height: 780px) {
  .w-sun .w-cue { display: none; }
  .w-dist__label { display: none; }
  .w-meta { margin-top: 12px; }
  .w-more { min-height: 44px; }
  .w-mars { --B2: calc(var(--B) + min(9vw, 7vh)); }
  .w-text { margin-top: 14px; font-size: 15px; line-height: 1.5; }
  .w-kicker { margin-bottom: 14px; }
  .w-intro { margin-bottom: 18px; }
}


/* ---------- Odległość od Słońca i więcej faktów ---------- */
.w-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.w-dist { position: relative; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: baseline; padding-bottom: 9px; font: 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-3); }
.w-dist__label { grid-column: 1 / -1; margin-bottom: 4px; }
.w-dist b { font: 500 17px/1 var(--sans); letter-spacing: -.01em; text-transform: none; color: var(--ivory); font-variant-numeric: tabular-nums; }
.w-dist i { font-style: normal; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.w-dist__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.w-dist__bar span { position: absolute; left: calc(var(--pos, 0) * 100%); top: -3px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px rgba(5, 5, 7, .7); }
.w-more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); transition: border-color .25s, background .25s; }
.w-more span { font: 400 16px/1 var(--sans); color: var(--accent-2); }
.w-more:hover, .w-more:focus-visible { border-color: var(--accent-2); }

/* ---------- Księżyc, ISS, sondy ----------
   Obiekty krążą po orbitach bez etykiet (dekoracja). Nazwy i dostęp: legenda w stałej, wolnej strefie świata. */
.sats { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; color: var(--ivory); }
.sats__ring { fill: none; stroke: rgba(239, 232, 218, .32); stroke-width: .25; stroke-dasharray: .8 1.4; }
.sats__ring.is-far { stroke: rgba(239, 232, 218, .2); }
.sats__obj.is-dim { opacity: .75; }
.w-objects { position: relative; z-index: 5; }
.w-objects__title { margin-bottom: 8px; font: 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-3); }
.w-objects ul { display: grid; gap: 2px; }
.w-objects button { display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 5px 12px 5px 6px; border-radius: 12px; text-align: left; transition: background .2s; }
.w-objects button:hover, .w-objects button:focus-visible { background: rgba(239, 232, 218, .08); }
.w-objects__icon { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(239, 232, 218, .3); border-radius: 50%; background: rgba(5, 5, 7, .5); }
.w-objects__icon svg { width: 20px; height: 13px; }
.w-objects__icon img { width: 30px; height: 30px; border-radius: 50%; }
.w-objects__icon img.is-missing { opacity: 0; }
.w-objects__name { font: 500 15px/1.1 var(--sans); letter-spacing: -.01em; color: var(--ivory); }
.w-objects small { font: 9px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-2); }
@media (min-width: 761px) {
  .w-objects { position: absolute; width: 230px; }
  .w-earth .w-objects { right: var(--gx); bottom: var(--B); }
  .w-mars .w-objects { right: var(--gx); top: var(--T); }
  .w-neptune .w-objects { right: var(--gx); bottom: var(--B); width: 210px; }
}
/* w locie scena nie łapie wskaźnika; klikalne są tylko kontrolki świata, przy którym kamera stoi */
.is-flight .world.is-here .w-objects button, .is-flight .world.is-here .w-more { pointer-events: auto; }

/* ---------- Eksplorator ---------- */
.atlas { width: min(1040px, 100vw); height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); color: var(--ivory); background: rgba(7, 7, 10, .96); overflow: hidden; }
/* w dialogach etykiety i podpisy mają mocniejszy odcień niż w scenie (kontrast >= 4,5:1) */
.atlas, .map { --ivory-3: rgba(239, 232, 218, .76); }
.atlas::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.atlas[open] { animation: atlas-in .55s var(--ease-out); }
@keyframes atlas-in { from { opacity: 0; transform: translateX(40px); } }
.atlas__panel { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.atlas__head { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 20px; padding: calc(env(safe-area-inset-top) + 22px) clamp(20px, 3vw, 36px) 18px; border-bottom: 1px solid var(--line); }
.atlas__kicker { padding-top: 8px; font: 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-3); }
.atlas__title { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.atlas__close { margin-left: auto; display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid var(--line); border-radius: 50%; }
.atlas__close svg { width: 18px; height: 18px; }
.atlas__close:hover { border-color: var(--ivory); }
.atlas__nav { overflow-y: auto; padding: 18px clamp(16px, 2vw, 24px) 24px; border-right: 1px solid var(--line); }
.atlas__group { margin: 18px 0 8px; font: 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-3); }
.atlas__group:first-child { margin-top: 0; }
.atlas__list { display: grid; gap: 2px; }
.atlas__list--planets { grid-template-columns: 1fr 1fr; }
.atlas__list button { width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; text-align: left; font-size: 15px; letter-spacing: -.01em; color: var(--ivory-2); transition: background .2s, color .2s; }
.atlas__list button:hover { background: rgba(239, 232, 218, .06); color: var(--ivory); }
.atlas__list button[aria-current] { background: rgba(239, 232, 218, .1); color: var(--ivory); box-shadow: inset 2px 0 0 var(--accent-ui, var(--ivory)); }
.atlas__detail { overflow-y: auto; padding: 26px clamp(20px, 3.4vw, 44px) 32px; outline: none; }
.entry__tag { font: 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ui, var(--ivory-2)); }
.entry__title { margin-top: 10px; font-size: clamp(30px, 3.4vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.entry__fig { position: relative; margin: 26px 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(120% 120% at 20% 0%, rgba(239, 232, 218, .06), transparent 60%); }
.entry__fig--planet { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.entry__fig--planet img { width: 150px; height: 150px; object-fit: contain; }
.entry__ruler { position: relative; height: 34px; }
.entry__ruler::before { content: "0,39 AU · Merkury"; position: absolute; left: 0; bottom: 0; font: 11px/1 var(--mono); letter-spacing: .1em; color: var(--ivory-3); }
.entry__ruler::after { content: "Neptun · 30,18 AU"; position: absolute; right: 0; bottom: 0; font: 11px/1 var(--mono); letter-spacing: .1em; color: var(--ivory-3); }
.entry__ruler span { position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--line); }
.entry__ruler span::after { content: ""; position: absolute; left: calc(var(--pos, 0) * 100%); top: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--accent-ui, var(--ivory)); }
.diagram { width: 100%; height: auto; max-height: 240px; overflow: hidden; }
.diagram .d-earth { fill: #1d4f8c; stroke: #6fb2ff; stroke-width: 1; }
.diagram .d-sun { fill: #f6a744; }
.diagram .d-mars { fill: #a94a2a; stroke: #e06a3e; stroke-width: 1; }
.diagram .d-orbit { fill: none; stroke: rgba(239, 232, 218, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.diagram .d-helio { fill: rgba(246, 167, 68, .06); stroke: rgba(246, 167, 68, .5); stroke-width: 1; stroke-dasharray: 5 5; }
.diagram .d-dim { stroke: rgba(239, 232, 218, .5); stroke-width: 1; fill: none; }
.diagram .d-path { fill: none; stroke: var(--ivory); stroke-width: 1.4; }
.diagram .d-path.is-off { stroke: rgba(239, 232, 218, .3); stroke-dasharray: 4 4; }
.diagram .d-pin { fill: var(--ivory); }
.diagram .d-craft { color: var(--ivory); }
.diagram .d-label { font: 500 13px var(--sans); fill: var(--ivory); }
.diagram .d-small { font: 11px var(--mono); letter-spacing: .08em; fill: var(--ivory-2); }
.entry__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.entry__stats div { padding: 14px 16px; background: #0a0a0d; }
.entry__stats dt { font: 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); }
.entry__stats dd { margin: 8px 0 0; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.entry__facts { display: grid; gap: 0; margin-top: 22px; }
.entry__facts li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--ivory-2); }
.entry__facts li::before { content: ""; position: absolute; left: 0; top: 25px; width: 14px; height: 1px; background: var(--accent-ui, var(--ivory)); }
.entry__note { margin-top: 16px; font: 11px/1.6 var(--mono); letter-spacing: .06em; color: var(--ivory-3); }
.entry__note a, .entry__src a { color: var(--ivory-2); text-underline-offset: 3px; }
.entry__src { margin-top: 12px; font: 11px/1.7 var(--mono); letter-spacing: .04em; color: var(--ivory-3); }
.atlas__foot { grid-column: 1 / -1; padding: 12px clamp(20px, 3vw, 36px) calc(env(safe-area-inset-bottom) + 14px); border-top: 1px solid var(--line); font: 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-3); }

/* ---------- Tryb lotu ---------- */
.is-flight .stage { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.is-flight .worlds { position: absolute; inset: 0; }
.is-flight .world { position: absolute; inset: 0; height: 100%; min-height: 0; opacity: 0; visibility: visible; }
.is-flight .world.is-live { opacity: 1; }
.is-flight .w-giant, .is-flight .w-planet, .is-flight .w-copy, .is-flight .w-fact { transform-origin: 50% 50%; backface-visibility: hidden; }
.is-flight .world.is-live .w-giant, .is-flight .world.is-live .w-planet, .is-flight .world.is-live .w-copy, .is-flight .world.is-live .w-fact { will-change: transform, opacity; }
.is-flight .track { display: block; position: relative; z-index: 0; pointer-events: none; }
.is-flight .debris { display: block; position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; pointer-events: none; }
.is-flight .transit { display: flex; position: absolute; left: 50%; top: 46%; z-index: 6; flex-direction: column; align-items: center; gap: 12px; translate: -50% -50%; opacity: 0; font-size: clamp(40px, 7vw, 120px); font-weight: 500; letter-spacing: -.05em; line-height: .9; color: var(--ivory); white-space: nowrap; }
.transit small { font: 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-2); }

/* Odsłanianie tekstu przy zatrzymaniu */
.is-flight .w-title .wd { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.is-flight .w-title .wd > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 45ms); }
.is-flight .world.is-here .w-title .wd > span { transform: none; }
.is-flight .w-kicker, .is-flight .w-text, .is-flight .w-intro, .is-flight .w-cue, .is-flight .w-fact small, .is-flight .w-fact i { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.is-flight .world.is-here .w-kicker, .is-flight .world.is-here .w-intro { opacity: 1; transform: none; transition-delay: .05s; }
.is-flight .world.is-here .w-text, .is-flight .world.is-here .w-fact i { opacity: 1; transform: none; transition-delay: .32s; }
.is-flight .world.is-here .w-fact small, .is-flight .world.is-here .w-cue { opacity: 1; transform: none; transition-delay: .5s; }
.is-flying .world .w-cue { opacity: 0; }

/* ---------- Szyna postępu ---------- */
.rail { position: fixed; inset: auto 0 0; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 0 var(--gx) max(14px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(5, 5, 7, .78), rgba(5, 5, 7, 0)); transition: opacity .35s, visibility 0s; }
/* w zamknięciu (.coda) pasek przystanków znika: nie zasłania linków i źródeł */
.is-coda .rail { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s, visibility 0s .35s; }
.is-coda .world .w-copy, .is-coda .world .w-fact { opacity: 0 !important; transition: opacity .3s; }
.rail__list { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.rail__list a { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 52px; padding-top: 12px; text-decoration: none; font: 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); transition: color .3s; }
.rail__list a i { width: 7px; height: 7px; border-radius: 50%; background: var(--void); border: 1px solid var(--ivory-3); transition: transform .4s var(--ease-out), background .3s, border-color .3s; }
.rail__list a:hover { color: var(--ivory); }
.rail__list a[aria-current] { color: var(--ivory); }
.rail__list a[aria-current] i { background: var(--accent-ui, var(--ivory)); border-color: var(--accent-ui, var(--ivory)); transform: scale(1.6); }
.rail__bar { position: absolute; z-index: 0; left: calc(var(--gx) + (100% - 2 * var(--gx)) / 18); right: calc(var(--gx) + (100% - 2 * var(--gx)) / 18); top: 15px; height: 1px; background: var(--line); }
.rail__bar span { position: absolute; inset: 0; background: var(--ivory); transform-origin: 0 50%; transform: scaleX(0); }
.rail__step, .rail__now { display: none; }

/* ---------- Mapa ---------- */
.map { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; color: var(--ivory); background:
  radial-gradient(70vmax 60vmax at 8% 55%, rgba(246, 167, 68, .16), transparent 60%),
  rgba(5, 5, 7, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.map::backdrop { background: rgba(0, 0, 0, .5); }
.map[open] { animation: map-in .6s var(--ease-out); }
@keyframes map-in { from { opacity: 0; } }
.map__head { position: absolute; z-index: 3; inset: 0 0 auto; display: flex; align-items: flex-start; gap: 24px; padding: calc(env(safe-area-inset-top) + 22px) var(--gx) 0; pointer-events: none; }
.map__head > * { pointer-events: auto; }
.map__title { font-size: clamp(30px, 3.4vw, 56px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.map__sub { max-width: 34ch; padding-top: 6px; font: 11px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-2); }
.map__close { margin-left: auto; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--glass); }
.map__close svg { width: 18px; height: 18px; }
.map__close:hover { border-color: var(--ivory); }
.map__orbits { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; overflow: visible; }
.map__orbits ellipse { fill: none; stroke: rgba(239, 232, 218, .2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map__orbits ellipse.is-current { stroke: var(--accent-ui, var(--ivory)); stroke-opacity: .8; }
.map[open] .map__orbits ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; animation: orbit-draw 1.4s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 70ms); }
@keyframes orbit-draw { to { stroke-dashoffset: 0; } }
.map__list { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.map__list li { position: absolute; left: 0; top: 0; }
.map__list button { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 12px; min-width: 44px; min-height: 44px; padding: 4px 10px 4px 4px; border-radius: 999px; translate: calc(var(--s) / -2 - 4px) -50%; pointer-events: auto; text-align: left; white-space: nowrap; transition: background .25s; }
.map__list button:hover, .map__list button:focus-visible { background: rgba(239, 232, 218, .08); }
.map__list img { flex: none; width: var(--s); height: var(--s); max-width: none; object-fit: contain; transition: transform .5s var(--ease-out); }
.map__list button:hover img, .map__list button:focus-visible img { transform: scale(1.15); }
.map__list img.is-missing { border-radius: 50%; border: 1px dashed var(--ivory-3); }
.map__n { font: 11px/1 var(--mono); letter-spacing: .12em; color: var(--ivory-3); }
.map__name { font-size: clamp(15px, 1.3vw, 19px); font-weight: 500; letter-spacing: -.02em; }
.map__au { font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-3); }
.map__list button[aria-current] .map__name::after { content: " · tutaj"; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ui, var(--ivory)); }
.map__list li[data-side="l"] button { flex-direction: row-reverse; padding: 4px 4px 4px 10px; translate: calc(-100% + var(--s) / 2 + 4px) -50%; text-align: right; }
.map__list li[data-side="b"] button { flex-direction: column; gap: 6px; padding: 4px 8px 8px; border-radius: 22px; translate: -50% calc(var(--s) / -2 - 4px); text-align: center; }
.map__list li[data-side="sun"] button { translate: 0 -50%; padding-left: 12px; }
.map__list li[data-side="sun"] img { position: absolute; right: calc(100% - var(--s) * .15 + 6px); top: 50%; translate: 0 calc(-50% - var(--s) * .36); }
.map[open] .map__list li { animation: map-pop .7s var(--ease-out) both; animation-delay: calc(200ms + var(--d, 0) * 60ms); }
@keyframes map-pop { from { opacity: 0; transform: translateY(10px); } }
.map__note { position: absolute; z-index: 3; right: var(--gx); text-align: right; bottom: calc(env(safe-area-inset-bottom) + 20px); max-width: 46ch; font: 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-3); }

/* ---------- Koda ---------- */
.coda { position: relative; z-index: 10; padding: 36vh var(--gx) 120px; background: linear-gradient(to bottom, rgba(5, 5, 7, 0), rgba(5, 5, 7, .88) 28vh, var(--void) 48vh); }
.coda__inner { max-width: 1240px; }
.coda__kicker { font: 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-3); }
.coda__title { margin-top: 22px; font-size: clamp(44px, 7vw, 120px); font-weight: 500; line-height: .92; letter-spacing: -.055em; }
.coda__title em { display: block; font-style: normal; color: var(--ivory-3); }
.coda__text { margin-top: 30px; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--ivory-2); }
.coda__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.coda h3 { margin: 0 0 18px; font: 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-3); font-weight: 400; }
.coda__note p { max-width: 56ch; font-size: 14px; line-height: 1.7; color: var(--ivory-2); }
.coda__note p + p { margin-top: 12px; }
.coda__sources ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.coda__sources a { display: flex; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line); font: 12px/1.3 var(--mono); letter-spacing: .06em; color: var(--ivory-2); text-decoration: none; }
.coda__sources a:hover { color: var(--ivory); }
.coda__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 72px; font-size: 13px; color: var(--ivory-3); }
.coda__links { display: flex; flex-wrap: wrap; gap: 10px; }
.coda__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ivory); }
.coda__btn svg { width: 16px; height: 16px; }
.coda__btn:hover { border-color: var(--ivory); }

/* ---------- Tablet ---------- */
@media (max-width: 1240px) {
  .hud__read { display: none; }
}
@media (max-width: 1100px) {
  .hud__back span, .hud__motion-label, .hud__atlas span { display: none; }
  .hud__back, .hud__motion, .hud__atlas { width: 44px; padding: 0; justify-content: center; }
}

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
  :root { --top: 76px; --bottom: 88px; }
  .hud { height: 64px; }
  .hud__logo { font-size: 13px; letter-spacing: .28em; }
  .hud__btn { padding: 0 12px; }
  .hud__back span, .hud__motion-label, .hud__atlas span { display: none; }
  .hud__back, .hud__motion, .hud__atlas { width: 44px; padding: 0; justify-content: center; }
  .hud__actions { gap: 6px; }
  .hud__logo span { letter-spacing: .2em; }
  .hud__map span { font-size: 0; }
  .hud__map span::before { content: "Mapa"; font-size: 11px; }

  .world { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(36svh, 1fr) auto auto; column-gap: 0; row-gap: 18px; }
  .world .w-copy, .world .w-fact { grid-column: 1; justify-self: start; max-width: none; z-index: 5; }
  .w-terrain { height: min(26vw, 14svh); }
  .w-terrain img { top: calc(112vw * -.4267); }
  .world .w-fact { grid-row: 2; align-self: end; --fs: clamp(64px, 21vw, 110px); }
  .w-jupiter .w-fact, .w-saturn .w-fact { --fs: clamp(52px, 15vw, 80px); }
  .world .w-copy { grid-row: 3; align-self: end; }
  .world::after { content: ""; position: absolute; inset: 42% 0 0; z-index: 3; background: linear-gradient(to bottom, rgba(5, 5, 7, 0), rgba(5, 5, 7, .7) 55%); pointer-events: none; }
  .is-flight .world::after { opacity: 0; transition: opacity .5s; }
  .is-flight .world.is-here::after { opacity: 1; }
  .w-giant { z-index: 3; --gl: 12px !important; --gr: auto !important; --gt: calc(var(--top) + 2svh) !important; --gb: auto !important; --gtr: 0 0 !important; --gs: 21vw; }
  .w-sun { --px: 70%; --py: 34%; --ps: min(92vw, 600px); --gs: 22vw; --halo: .8; --halo-inset: -20%; }
  .w-sun .w-cue { display: none; }
  .veil { background-size: auto; background-image: radial-gradient(160% 100% at 50% 35%, transparent 62%, rgba(0, 0, 0, .3) 100%), var(--grain); }
  .w-terrain { opacity: .8; }
  /* planeta niżej i mniejsza niż na desktopie: wielka nazwa (z-index 3) czyta się nad nią w całości */
  .w-mercury { --px: 42%; --py: 35%; --ps: 60vw; --gs: 19vw; }
  .w-venus { --px: 58%; --py: 35%; --ps: 70vw; --gs: 23vw; }
  .w-earth { --px: 50%; --py: 35%; --ps: 72vw; }
  .w-mars { --px: 58%; --py: 35%; --ps: 66vw; --gs: 28vw; }
  .w-jupiter { --px: 55%; --py: 36%; --ps: 92vw; --gs: 21vw; }
  .w-saturn { --px: 50%; --py: 35%; --ps: 96vw; --gs: 21vw; }
  .w-uranus { --px: 58%; --py: 35%; --ps: 66vw; --gs: 30vw; }
  .w-neptune { --px: 50%; --py: 35%; --ps: 70vw; }
  .w-intro { margin-bottom: 18px; }
  .w-kicker { margin-bottom: 12px; font-size: 11px; }
  .w-title { font-size: clamp(30px, 8.6vw, 40px); }
  .w-text { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .w-cue { margin-top: 16px; }
  .w-cue span { height: 28px; }
  .w-fact small { max-width: 26ch; }
  .is-flight .transit { font-size: 13vw; }

  .rail { gap: 4px; padding-top: 14px; }
  .rail__list { display: none; }
  .rail__step { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--glass); flex: none; }
  .rail__step svg { width: 18px; height: 18px; }
  .rail__step:disabled { opacity: .3; }
  .rail__now { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-3); }
  .rail__now b { font: 500 16px/1 var(--sans); letter-spacing: -.01em; text-transform: none; color: var(--ivory); }
  .rail__bar { left: calc(var(--gx) + 56px); right: calc(var(--gx) + 56px); top: auto; bottom: max(8px, calc(env(safe-area-inset-bottom) - 6px)); }

  .w-meta { margin-top: 12px; gap: 8px 14px; }
  .w-dist b { font-size: 15px; }
  .w-more { padding: 0 14px; }
  .w-objects { display: none; }
  .is-flight .schema-note { display: none; }

  .atlas { width: 100vw; border-left: 0; }
  .atlas__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .atlas__nav { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .atlas__group { display: none; }
  .atlas__list, .atlas__list--planets { display: flex; gap: 6px; }
  .atlas__list li { flex: none; }
  .atlas__list button { width: auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
  .atlas__list button[aria-current] { box-shadow: none; border-color: var(--accent-ui, var(--ivory)); }
  .atlas__detail { padding: 20px 16px 28px; }
  .entry__fig--planet { grid-template-columns: 96px 1fr; gap: 16px; }
  .entry__fig--planet img { width: 96px; height: 96px; }
  .entry__facts li { font-size: 15px; }

  .map__head { flex-wrap: wrap; gap: 8px 16px; }
  .map__sub { order: 3; flex-basis: 100%; padding-top: 0; font-size: 11px; }
  .map__name { font-size: 15px; }
  .map__au { display: none; }
  .map__note { right: var(--gx); font-size: 11px; }
  .map__list button[aria-current] .map__name::after { content: "tutaj"; display: block; margin-top: 5px; }

  .coda { padding-top: 30vh; padding-bottom: 110px; }
  .coda__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
  .coda__sources ul { grid-template-columns: 1fr; }
  .coda__sources a { min-height: 44px; }
}
/* wąska linijka odległości: podpisy końców jeden nad drugim, żeby się nie nakładały */
@media (max-width: 900px) {
  .entry__ruler { height: 50px; }
  .entry__ruler::before { bottom: 18px; }
}
@media (max-width: 760px) and (max-height: 640px) {
  .w-text { font-size: 14px; }
  .w-title { font-size: 28px; }
  .world .w-fact { --fs: 60px; }
}

/* ---------- Niski ekran (np. telefon poziomo): zawsze tryb statyczny, układ w przepływie ---------- */
@media (min-width: 761px) and (max-height: 459px) {
  .world { display: block; min-height: 0; padding: 84px var(--gx) 96px; }
  .world .w-giant { position: relative; inset: auto; translate: none; display: block; margin-bottom: 18px; font-size: min(12vw, 22vh); }
  .world .w-copy, .world .w-fact { position: relative; inset: auto; translate: none; width: auto; max-width: 52%; }
  .world .w-fact { margin-top: 22px; --fs: clamp(56px, 8vw, 96px); }
  .w-sun .w-cue { display: none; }
  .world .w-planet { --px: 76%; --py: 50%; --ps: min(42vw, 78vh); top: 50%; }
  .world .w-objects { position: relative; inset: auto; width: auto; max-width: 52%; margin-top: 22px; }
  .w-terrain { display: none; }
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  .w-cue span::after, .map[open], .map[open] .map__orbits ellipse, .map[open] .map__list li { animation: none !important; }
  .map__orbits ellipse { stroke-dasharray: none !important; }
  .map__list img { transition: none; }
}
.is-calm .w-cue span::after, .is-calm .map[open], .is-calm .map[open] .map__orbits ellipse, .is-calm .map[open] .map__list li { animation: none !important; }
.is-calm .map__orbits ellipse { stroke-dasharray: none !important; }
.is-calm .atlas[open] { animation: none; }
@media (prefers-reduced-motion: reduce) { .atlas[open] { animation: none; } }
