/* POZA · Atlas ekspedycji - pięć światów z fotograficznych warstw, przypięta scena, natywne przewijanie.
   Bez .is-film (brak JS, ograniczony ruch, wyłączony ruch): każdy świat to pełny kadr, a pod nim cały tekst i lekcja. */

@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 {
  --gx: max(clamp(16px, 3vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right));
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* kotwice kompozycji (desktop) */
  --hz: 58svh;                    /* linia horyzontu na ekranie (horyzont podłoża = 40% wysokości grafiki) */
  --gw: max(104vw, 105svh);       /* szerokość podłoża: teren zawsze sięga dołu i boków kadru */
  --fx: 60%;                      /* środek postaci */
  --fy: 82svh;                    /* stopy postaci */
  --fh: 23svh;                    /* wysokość postaci */
  --bar-ink: #f2f4f8;
  --accent: #cfe2ff;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: #0b1230; color: #f2f4f8; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; 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; z-index: 100; left: var(--gx); top: 10px; padding: 12px 16px; background: #fff; color: #111; font: 12px/1 var(--mono); transform: translateY(-160%); }
.skip:focus { transform: none; }
.noscript { padding: 20px var(--gx); background: #111; font: 12px/1.6 var(--mono); }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 1px solid currentColor; border-radius: 999px; font: 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: rgba(255, 255, 255, .12); }
.btn--solid { background: #f2f4f8; color: #0d1220; border-color: #f2f4f8; }
.btn--solid:hover { background: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--danger { border-color: #ff9c8a; color: #ffb6a8; }

/* ---------- Pasek ---------- */
.bar { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: max(12px, env(safe-area-inset-top)) var(--gx) 0; color: var(--bar-ink); pointer-events: none; transition: color .5s; }
.bar > * { pointer-events: auto; }
.bar__brand { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; padding-top: 14px; font-weight: 700; font-size: 15px; letter-spacing: .32em; text-decoration: none; white-space: nowrap; }
.bar__brand span { font: 400 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.bar__nav { margin: 0 auto; }
.bar__nav ol { display: flex; gap: 2px; }
.bar__nav a { position: relative; display: inline-flex; align-items: baseline; gap: 7px; min-height: 44px; padding: 15px 10px 0; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; opacity: .62; transition: opacity .25s; }
.bar__nav a b { font-weight: 400; opacity: .7; }
.bar__nav a:hover, .bar__nav a[aria-current] { opacity: 1; }
.bar__nav a > i { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.bar__nav a > i > i { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
.bar__nav a.is-done b::after { content: " ·"; }
.bar__where { display: none; }
.bar__actions { display: flex; gap: 6px; margin-left: auto; }
.bar__nav + .bar__where + .bar__actions { margin-left: 0; }
.bar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 999px; background: rgba(8, 10, 20, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.bar__btn svg { width: 16px; height: 16px; flex: none; }
.bar__btn b { font-weight: 400; }
.bar__motion[aria-pressed="false"] { opacity: .7; }
.bar__journal { background: rgba(242, 244, 248, .14); }
.bar__journal.is-full { background: #f2f4f8; color: #0d1220; }

/* ---------- Świat ---------- */
.film { position: relative; }
.stage { position: relative; }
.world { position: relative; --ink: #f2f4f8; color: var(--ink); }
.scenery { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.world--lod { background: #0b1230; }
.world--piasek { background: #4a1f2e; }
.world--mgla { background: #8d969d; --ink: #1b2127; }
.world--zar { background: #1a0d08; --hzr: .3; --gw: max(104vw, 117svh); --boot: .97; }  /* horyzont podłoża na 45% */
.world--swit { background: #3b4b3a; --boot: .97; }
.sky { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.far { position: absolute; z-index: 1; width: auto; pointer-events: none; }
.far--orb { left: 68%; top: 36svh; height: 52svh; translate: -50% -50%; transform-origin: 50% 50%; }
.far--portal { left: 68%; top: calc(var(--hz) + 14svh - 50svh); height: 50svh; translate: -50% 0; transform-origin: 50% 100%; }
/* Podłoże i postać: jedna grupa z punktem zaczepienia w stopach */
.land { position: absolute; z-index: 2; inset: 0; transform-origin: var(--fx) var(--fy); pointer-events: none; }
/* --hzr: horyzont grafiki podłoża jako ułamek jej szerokości (0,40 wysokości × 2/3 = ,2667) */
.ground { position: absolute; left: 50%; top: calc(var(--hz) - var(--gw) * var(--hzr, .2667)); width: var(--gw); height: auto; translate: -50% 0; }
.figure { position: absolute; z-index: 2; left: var(--fx); top: calc(var(--fy) - var(--fh) * var(--boot, .96)); height: var(--fh); width: auto; translate: -50% 0; }
.contact { position: absolute; z-index: 1; left: var(--fx); top: var(--fy); border-radius: 50%; }
.contact--warm { background: radial-gradient(ellipse, rgba(40, 14, 6, .8), rgba(40, 14, 6, 0) 72%); }
/* Wielkie słowo: między niebem a obiektem i podłożem, dolna krawędź chowa się za horyzontem */
.bigword { position: absolute; z-index: 1; left: 50%; top: 26svh; margin: 0; translate: -50% 0; font-size: min(28vw, 44svh); font-weight: 700; line-height: .8; letter-spacing: -.05em; white-space: nowrap; color: rgba(214, 228, 255, .09); pointer-events: none; user-select: none; }
.world--piasek .bigword { color: rgba(255, 210, 170, .1); }
.world--mgla .bigword { color: rgba(255, 255, 255, .26); }
.world--zar .bigword { color: rgba(255, 170, 110, .1); }
.world--swit .bigword { color: rgba(255, 244, 214, .16); }

/* ---------- Tekst ---------- */
.copy { position: relative; z-index: 4; padding: 9svh var(--gx) 11svh; }
.world--lod .copy { background: linear-gradient(#0b1230, #070b1d); }
.world--piasek .copy { background: linear-gradient(#3a1724, #1d0c12); }
.world--mgla .copy { background: linear-gradient(#9aa3aa, #c9ced2); }
.world--zar .copy { background: linear-gradient(#1a0d08, #0e0705); }
.world--swit .copy { background: linear-gradient(#304232, #1c2a1f); }
.copy__label { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font: 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.copy__label span { padding: 5px 8px; border: 1px solid currentColor; border-radius: 999px; letter-spacing: .1em; }
.verse { margin: 0 0 6svh; font-size: clamp(26px, min(3vw, 5.2svh), 50px); font-weight: 400; line-height: 1.06; letter-spacing: -.03em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.world--mgla .verse { text-shadow: 0 1px 18px rgba(255, 255, 255, .45); }
.verse .ln { display: block; }
.verse .b { font-weight: 600; }
.verse .s { margin-bottom: .35em; font: 400 12px/1.3 var(--mono); letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.verse .soft { opacity: .74; }
.verse .i1 { margin-left: 1.1em; }
.verse .i2 { margin-left: 2.2em; }
.verse--title { font-size: clamp(40px, min(5.2vw, 8.6svh), 88px); line-height: .94; letter-spacing: -.04em; }
.verse--title .l1 { font-weight: 700; }
.verse--title .l2 { font-weight: 400; margin-left: .9em; opacity: .92; }
.field { display: grid; gap: 18px; justify-items: start; max-width: 340px; margin-bottom: 6svh; }
.note { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.note__k { font: 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; opacity: .78; }
.note__t { font-size: 14px; line-height: 1.55; opacity: .92; }
.btn--discover { background: rgba(8, 10, 20, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.world--mgla .btn--discover { background: rgba(255, 255, 255, .45); }
.btn--discover.is-done::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html:not(.js) .btn--discover, html:not(.js) [data-start], html:not(.js) [data-open-journal], html:not(.js) .bar__actions button, html:not(.js) .bar__where { display: none; }

.intro { max-width: 34rem; margin-bottom: 7svh; }
.intro__title { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; font-size: clamp(34px, min(4.4vw, 7svh), 70px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.intro__title span { font: 700 13px/1 var(--sans); letter-spacing: .4em; }
.intro__lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.3; letter-spacing: -.01em; }
.intro__how { margin: 14px 0 26px; max-width: 30rem; font-size: 15px; line-height: 1.6; opacity: .82; }

.lesson { max-width: 40rem; margin-bottom: 6svh; padding: 22px 0 0; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.lesson__title { margin-bottom: 12px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.lesson > p { margin-bottom: 12px; font-size: 16px; line-height: 1.6; opacity: .88; }
.lesson__ask { margin-top: 16px; font-weight: 600; }
.lesson__opts { margin: 8px 0 0 1.2em; list-style: disc; line-height: 1.7; }
.lesson__answer { margin-top: 10px; }
.lesson__answer summary { cursor: pointer; font: 11px/1.8 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.lesson__src, .sheet__src { margin-top: 12px; font: 11px/1.6 var(--mono); letter-spacing: .04em; opacity: .75; }
.js .lesson { display: none; }

.finale { max-width: 34rem; }
.finale__k { margin-bottom: 14px; font: 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.finale__title { font-size: clamp(32px, min(4.2vw, 7svh), 64px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.finale__text { margin: 16px 0 24px; max-width: 30rem; font-size: 16px; line-height: 1.6; opacity: .85; }
.finale__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.veil { display: none; }
.is-missing { visibility: hidden; }

/* ---------- Film ---------- */
.is-film .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.is-film .world { position: absolute; inset: 0; overflow: hidden; display: none; background: none; }
.is-film .world.is-near { display: block; }
.is-film .scenery { position: absolute; inset: 0; height: auto; }
.is-film .world:not(:first-child) .scenery [data-ly] { opacity: 0; }
.is-film .copy { position: absolute; inset: 0; padding: 0; background: none; pointer-events: none; }
.is-film .copy > [data-v] { position: absolute; opacity: 0; visibility: hidden; margin: 0; }
.is-film .copy > .is-on { pointer-events: auto; }
.is-film .copy__label { left: var(--gx); top: calc(31svh - 46px); }
.is-film .verse { left: var(--gx); top: 31svh; max-width: 44vw; }
.is-film .verse--title { max-width: none; }
.world--lod .verse--title { font-size: clamp(36px, min(4.4vw, 7.8svh), 76px); }  /* trzy świadome wiersze, krawędź księżyca zaczyna się ok. 68% − 26svh */
.is-film .verse .ln { opacity: clamp(0, calc(var(--e, 1) * 1.7 - var(--k) * .32), 1); transform: translateY(calc((1 - clamp(0, calc(var(--e, 1) * 1.7 - var(--k) * .32), 1)) * .5em)); }
.is-film .field { right: var(--gx); bottom: 6svh; width: min(26vw, 320px); justify-items: stretch; }
.is-film .intro { left: var(--gx); top: 24svh; max-width: min(36rem, 46vw); }
.is-film .finale { left: var(--gx); top: 28svh; max-width: min(34rem, 46vw); }
.is-film .sky, .is-film .far, .is-film .land, .is-film .figure, .is-film .bigword, .is-film .copy > [data-v] { will-change: transform, opacity; }
.is-film .veil { display: block; position: absolute; z-index: 5; inset: 0; opacity: 0; pointer-events: none; }
.veil--dust { background: radial-gradient(90% 26% at 50% 64%, rgba(226, 168, 122, .96), rgba(214, 150, 112, .5) 55%, rgba(200, 140, 110, 0) 80%), linear-gradient(to top, rgba(205, 140, 100, .85), rgba(205, 140, 100, 0) 46%); }
.veil--fog { background: radial-gradient(120% 60% at 50% 55%, rgba(226, 230, 233, .98), rgba(200, 207, 212, .7) 55%, rgba(190, 198, 204, 0) 85%), linear-gradient(to top, rgba(214, 219, 223, .9), rgba(214, 219, 223, 0) 70%); }
.veil--smoke { background: radial-gradient(90% 50% at 40% 60%, rgba(30, 18, 14, .97), rgba(60, 28, 16, .7) 55%, rgba(60, 28, 16, 0) 85%), linear-gradient(to top, rgba(120, 50, 20, .55), rgba(20, 10, 8, 0) 60%); }
.veil--light { background: radial-gradient(80% 70% at 22% 30%, rgba(255, 246, 225, .98), rgba(255, 228, 190, .65) 45%, rgba(255, 228, 190, 0) 80%); }

/* ---------- Okna (odkrycie, dziennik, mapa) ---------- */
.sheet { width: min(540px, 100vw); height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; color: #eef1f5; background: #0f141d; box-shadow: -30px 0 80px rgba(0, 0, 0, .4); overflow: auto; }
.sheet::backdrop { background: rgba(4, 6, 10, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.sheet__inner { display: flex; flex-direction: column; gap: 18px; min-height: 100%; padding: max(22px, env(safe-area-inset-top)) clamp(20px, 4vw, 40px) max(28px, env(safe-area-inset-bottom)); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sheet__k { font: 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.sheet__close { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid rgba(238, 241, 245, .3); border-radius: 50%; }
.sheet__close svg { width: 18px; height: 18px; }
.sheet__close:hover { border-color: #fff; }
.sheet__title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.sheet__body p, .sheet__lead { font-size: 16px; line-height: 1.62; color: rgba(238, 241, 245, .86); }
.sheet__body p + p { margin-top: 12px; }
.quiz { margin: 6px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid rgba(238, 241, 245, .18); }
.quiz__ask { padding: 0; margin-bottom: 12px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.quiz__opts { display: grid; gap: 8px; }
.quiz__opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid rgba(238, 241, 245, .26); border-radius: 14px; text-align: left; font-size: 15px; line-height: 1.35; transition: border-color .2s, background .2s; }
.quiz__opt b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; font: 11px/1 var(--mono); }
.quiz__opt:hover:not(:disabled) { border-color: #fff; }
.quiz__opt[aria-pressed="true"] { background: rgba(238, 241, 245, .1); border-color: #fff; }
.quiz__opt.is-ok { border-color: var(--accent); }
.quiz__opt:disabled { cursor: default; }
.quiz__fb { min-height: 1px; margin-top: 12px; font-size: 15px; line-height: 1.6; color: rgba(238, 241, 245, .9); }
.quiz__fb:not(:empty) { padding: 14px 16px; border-left: 2px solid var(--accent); background: rgba(238, 241, 245, .05); }
.sheet__foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; }
.sheet__foot--wrap { flex-wrap: wrap; }
.sheet__status { font: 11px/1.5 var(--mono); letter-spacing: .06em; color: var(--accent); }
.confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.journal { display: grid; gap: 0; }
.journal li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 16px 0; border-top: 1px solid rgba(238, 241, 245, .14); }
.journal b { grid-row: span 3; font: 11px/1.6 var(--mono); letter-spacing: .1em; opacity: .7; font-weight: 400; }
.journal strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.journal small { font: 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.journal p { font-size: 14px; line-height: 1.55; color: rgba(238, 241, 245, .82); }
.journal li.is-missing-note p { opacity: .6; }
.journal .btn { justify-self: start; min-height: 40px; margin-top: 6px; }
.map { display: grid; gap: 8px; }
.map__item { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%; min-height: 64px; padding: 12px 16px; border: 1px solid rgba(238, 241, 245, .2); border-radius: 14px; text-align: left; }
.map__item b { grid-row: span 2; font: 11px/1 var(--mono); letter-spacing: .12em; opacity: .7; font-weight: 400; }
.map__item span { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.map__item small { font: 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.map__item em { grid-row: 1 / span 2; grid-column: 3; font: normal 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.map__item[aria-current] { border-color: #fff; background: rgba(238, 241, 245, .08); }

/* ---------- Stopka ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 44px var(--gx) 52px; background: #0d0f14; color: #e9ecf1; }
.foot__title { margin-bottom: 8px; font-weight: 700; letter-spacing: .2em; font-size: 13px; }
.foot p:not(.foot__title) { max-width: 62ch; font-size: 13px; line-height: 1.65; opacity: .72; }
.missing { position: fixed; z-index: 30; right: var(--gx); bottom: 14px; max-width: 60vw; padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, .7); color: #fff; font: 11px/1.4 var(--mono); }

/* ---------- Węższy desktop ---------- */
@media (max-width: 1240px) {
  .bar__brand span, .bar__back .bar__label { display: none; }
  .bar__nav a { padding-inline: 8px; }
}
@media (max-width: 980px) {
  .bar__nav a span { display: none; }
  .bar__motion .bar__label { display: none; }
}

/* ---------- Telefon: osobna kompozycja ---------- */
@media (max-width: 760px) {
  :root { --hz: 60svh; --fx: 62%; --fy: 83svh; --fh: 20svh; }
  .bar { gap: 6px; }
  .bar__brand { letter-spacing: .24em; font-size: 14px; }
  .bar__nav { display: none; }
  .bar__where { display: inline-flex; margin-left: auto; }
  .bar__actions { margin-left: 0; }
  .bar__label { display: none; }
  .bar__btn { padding: 0 11px; }
  .verse { font-size: clamp(22px, 6.4vw, 28px); }
  .verse--title { font-size: clamp(30px, 9vw, 40px); }
  .verse .s { font-size: 11px; }
  .verse .i2 { margin-left: 1.1em; }
  .bigword { top: 34svh; font-size: 28vw; }
  .far--orb { left: 60%; top: 45svh; height: 30svh; }
  .far--portal { left: 60%; height: 34svh; top: calc(var(--hz) + 11svh - 34svh); }
  .sky { object-position: 60% 50%; }
  /* tekst w górnej strefie (nad obiektem ok. 30–60svh i postacią ok. 65–83svh); odkrycie przy lewej krawędzi u dołu */
  .is-film .copy__label { top: 74px; }
  .is-film .verse { top: 106px; right: var(--gx); max-width: none; }
  .is-film .field { left: var(--gx); right: auto; bottom: max(14px, env(safe-area-inset-bottom)); width: auto; }
  .is-film .field .note { display: none; }
  .is-film .btn--discover { max-width: 54vw; min-height: 44px; padding: 0 14px; font-size: 10px; }
  .is-film .intro { top: 74px; right: var(--gx); max-width: none; }
  .intro__title { font-size: 30px; margin-bottom: 12px; }
  .intro__lead { font-size: 17px; }
  .intro__how { margin: 10px 0 16px; font-size: 14px; }
  .is-film .finale { top: 74px; right: var(--gx); max-width: none; }
  .finale__title { font-size: 30px; }
  .finale__text { font-size: 14px; margin: 10px 0 16px; }
  .sheet { width: 100vw; }
}
/* niski ekran poziomo */
@media (max-height: 520px) and (min-width: 761px) {
  .is-film .copy__label { top: calc(26svh - 34px); }
  .is-film .verse { top: 26svh; font-size: clamp(20px, 6svh, 32px); }
  .is-film .verse--title { font-size: clamp(30px, 9svh, 48px); }
  .is-film .intro, .is-film .finale { top: 16svh; }
  .is-film .field .note { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
.is-calm .sheet[open] { animation: none; }

/* Czytelny lewy plan tekstu, bez przyciemniania postaci. */
.world::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(5,9,20,.28), transparent 52%); }

/* Lighting pass: low key light from upper left; all cast shadows fall toward camera-right. */
.figure { filter: none; }
.cast-shadow { position:absolute; z-index:1; left:var(--fx); top:calc(var(--fy) - var(--fh) * var(--boot, .96)); height:var(--fh); width:auto; translate:-50% 0; transform-origin:50% calc(var(--boot, .96) * 100%); transform:matrix(1,0,-1.05,-.58,0,0); filter:brightness(0) blur(1.8px); opacity:var(--shadow-alpha,.66); mix-blend-mode:multiply; mask-image:linear-gradient(to bottom, transparent 0%, #000 55%); pointer-events:none; }
.cast-shadow--warm { opacity:var(--shadow-alpha,.6); transform:matrix(1,0,-1.1,-.52,0,0); }
.contact { width:calc(var(--fh) * .3); height:calc(var(--fh) * .045); translate:-50% -60%; background:radial-gradient(ellipse,rgba(2,7,19,.85),rgba(2,7,19,0) 72%); }
.contact::before,.contact::after { content:""; position:absolute; width:30%; height:70%; bottom:30%; border-radius:50%; background:rgba(0,3,12,.6); filter:blur(1px); }
.contact::before { left:14%; }.contact::after { right:14%; }
.horizon-light { position:absolute; z-index:0; left:-5%; right:-5%; top:calc(var(--hz) - 10svh); height:20svh; background:radial-gradient(ellipse at 16% 51%,rgba(229,225,204,.42),rgba(125,173,211,.22) 30%,transparent 69%); filter:blur(13px); pointer-events:none; mix-blend-mode:screen; }
.horizon-light--warm { background:radial-gradient(ellipse at 12% 51%,rgba(255,190,100,.4),rgba(215,128,68,.18) 35%,transparent 70%); }
.ground-grade { position:absolute; z-index:0; inset:var(--hz) 0 0; background:linear-gradient(135deg,transparent 20%,rgba(6,24,56,.13) 70%,rgba(2,12,30,.28)); mix-blend-mode:multiply; pointer-events:none; }
.world--lod .sky { filter:brightness(.78); }
.world--lod .far--orb { filter:brightness(.88); }

/* Światło trzech kolejnych światów (ten sam kierunek: z lewej góry, cienie ku prawej i ku widzowi) */
.horizon-light--fog { background: radial-gradient(ellipse at 20% 50%, rgba(236, 240, 244, .45), rgba(190, 200, 208, .2) 35%, transparent 70%); }
.horizon-light--ember { background: radial-gradient(ellipse at 10% 55%, rgba(255, 150, 70, .42), rgba(200, 80, 30, .2) 35%, transparent 70%); }
.horizon-light--dawn { background: radial-gradient(ellipse at 14% 50%, rgba(255, 226, 160, .42), rgba(214, 200, 120, .18) 35%, transparent 70%); }
/* pochmurno: krótki, rozmyty cień */
.cast-shadow--soft { opacity: var(--shadow-alpha, .42); filter: brightness(0) blur(4px); transform: matrix(1, 0, -.6, -.4, 0, 0); }
.world--mgla::after { background: linear-gradient(90deg, rgba(236, 239, 242, .42), transparent 55%); }

/* Field notes retain contrast over detailed terrain. */
.is-film .note { padding: 14px 16px; background: rgba(6, 12, 20, .68); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.is-film .world--mgla .note { background: rgba(239, 243, 246, .88); }
[hidden] { display: none !important; }
.bar { padding-bottom: 10px; background: linear-gradient(var(--bar-bg, rgba(6,12,20,.72)), transparent); }

/* Independent depth, weather and a boot-anchored character entrance. */
.journal .btn { grid-column: 2; width: max-content; max-width: 100%; padding: 11px 18px; line-height: 1.45; white-space: normal; }
.journal strong, .journal small, .journal p { grid-column: 2; min-width: 0; }
.figure { transform-origin: 50% calc(var(--boot, .96) * 100%); }
.atmosphere { display: none; position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; opacity: .7; }
.is-film .is-near .atmosphere { display: block; }
.atmosphere::before, .atmosphere::after { content: ''; position: absolute; inset: 25% -30% 0; background: radial-gradient(ellipse at 25% 65%, var(--air-color, #c9e1ed66), transparent 44%), radial-gradient(ellipse at 75% 40%, var(--air-color, #c9e1ed66), transparent 38%); animation: air-flow 19s ease-in-out infinite alternate; }
.atmosphere::after { inset: 45% -35% -15%; opacity: .45; animation-duration: 12s; animation-direction: alternate-reverse; }
.atmosphere i { position: absolute; left: var(--px); top: var(--py); width: var(--size); height: var(--size); border-radius: 50%; background: #e2f3ff; opacity: 0; animation: wind-trace var(--duration) var(--delay) linear infinite; }
.atmosphere--1 { --air-color: #d5a16b55; }
.atmosphere--1 i { background: #efd4a3; }
.atmosphere--2 { --air-color: #e2edf399; }
.atmosphere--2 i { display: none; }
.atmosphere--3 { --air-color: #80736555; }
.atmosphere--3 i { background: #ffae67; box-shadow: 0 0 6px #ff7733; animation-name: ember-rise; }
.atmosphere--4 { --air-color: #ffe2a02b; }
.atmosphere--4 i { background: #f5e6ab; animation-duration: 18s; }
.is-film .is-near .far { animation: distant-drift 16s ease-in-out infinite alternate; }
@keyframes air-flow { from { translate: -7% 2%; scale: 1; } to { translate: 10% -4%; scale: 1.12; } }
@keyframes distant-drift { from { translate: -1% 1%; } to { translate: 2% -2%; } }
@keyframes wind-trace { 0% { transform: translate(-8vw, 2vh); opacity: 0; } 15%,75% { opacity: .55; } 100% { transform: translate(18vw,-7vh); opacity: 0; } }
@keyframes ember-rise { 0% { transform: translate(0,25vh); opacity: 0; } 20%,65% { opacity: .65; } 100% { transform: translate(8vw,-25vh); opacity: 0; } }
.motion-paused .atmosphere *, .motion-paused .atmosphere::before, .motion-paused .atmosphere::after, .motion-paused .far { animation-play-state: paused !important; }
.is-calm .atmosphere { display: none; }
@media (max-width: 600px) { .journal li { grid-template-columns: 26px minmax(0,1fr); gap: 5px 10px; } .journal .btn { font-size: 10px; letter-spacing: .08em; } .atmosphere i:nth-child(n+11) { display: none; } }
@media (prefers-reduced-motion: reduce) { .atmosphere, .atmosphere *, .far { animation: none !important; } .atmosphere::before, .atmosphere::after { animation: none !important; } }
