/* LITTLE ME — «Кино» (выбор владельца 05.10.2026): взрослое приложение, детство живёт только в самом ребёнке.
   Ребёнок — большой живой кадр, вокруг спокойный тёплый интерфейс, один акцент — глубокий синий. Без курсива, тетрадок и смайликов. */
:root {
  --bg: #f6f4f1;          /* тёплый светлый фон */
  --surface: #ffffff;     /* карточки и поля */
  --soft: #efebe6;        /* вторичные плашки */
  --ink: #16130f;         /* основной текст */
  --muted: #6a645c;       /* второстепенный текст (контраст > 4.5 на фоне) */
  --line: #e5e0d8;
  --accent: #1f3a5f;      /* действие: глубокий синий */
  --accent-2: #2b4f80;
  --on-accent: #ffffff;
  --warm: #b4551d;        /* смысловой: мизинчиковое обещание, сроки */
  --ok: #2f7a4a;
  --radius: 18px;
  --radius-s: 12px;
  --sans: "Geologica", "Segoe UI", system-ui, sans-serif;
  --serif: var(--sans);   /* старые места с «голосом» теперь тем же шрифтом */
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; }

.app { max-width: 460px; min-height: 100dvh; margin: 0 auto; padding: 0 20px; }
.screen { display: none; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom)); }
.screen.is-active { display: flex; flex-direction: column; animation: fade .45s ease both; }
body.has-tabs .screen.is-active { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ── Кадр с ребёнком (вместо полароида) ───────────────────────────────── */
.print {
  position: relative; width: 100%; aspect-ratio: 4 / 5; margin: 8px 0 0; overflow: hidden;
  border-radius: 24px; background: var(--soft); box-shadow: 0 24px 50px -30px rgb(22 19 15 / .5);
}
.print--small { width: 56%; aspect-ratio: 1; align-self: center; border-radius: 50%; margin-top: 4vh; box-shadow: 0 20px 40px -26px rgb(22 19 15 / .5); }
.print__img, .print__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.print__img { animation: breathe 8s ease-in-out infinite; }
.print__video { opacity: 0; transition: opacity 1.2s ease; }
.print.is-alive .print__video { opacity: 1; }
#intro .print, #welcome .print { width: calc(100% + 40px); margin: calc(-1 * max(24px, env(safe-area-inset-top))) -20px 0; aspect-ratio: 4 / 4.6; border-radius: 0 0 28px 28px; }
#welcome .print__img[src$="photo-placeholder.svg"] { animation: none; }

/* ── Тексты ───────────────────────────────────────────────────────────── */
.lines { margin-top: 26px; display: grid; gap: 8px; min-height: 8em; }
.voice { font: 500 1.2rem/1.38 var(--sans); color: var(--ink); letter-spacing: -.005em; }
.voice--big { font-size: clamp(1.6rem, 7vw, 1.95rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
#introLines .voice { opacity: 0; transform: translateY(6px); transition: opacity .9s ease, transform .9s ease; }
#introLines .voice.is-on { opacity: 1; transform: none; }
#introLines .voice:not(.voice--big) { color: var(--muted); }
.hint { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.note, .fine { color: var(--muted); font-size: .82rem; }
.fine { text-align: center; }
.contract__kicker, .lbl { font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ── Кнопки ───────────────────────────────────────────────────────────── */
.btn {
  margin-top: auto; width: 100%; min-height: 54px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 600 1rem var(--sans); letter-spacing: .005em;
  display: grid; place-items: center; text-decoration: none;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .38; cursor: default; }
.btn--small { min-height: 44px; width: auto; padding: 0 18px; margin-top: 0; font-size: .95rem; border-radius: 12px; }
.btn--pinky, .btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--pinky:hover, .btn--ghost:hover { background: var(--soft); }
.btn--path { background: var(--ink); color: #fff; }
.link { background: none; border: 0; color: var(--muted); font: 500 .95rem var(--sans); min-height: 44px; padding: 0 12px; cursor: pointer; text-decoration: none; }
.link:hover { color: var(--ink); }
.link--quiet { font-size: .82rem; }
#introNext { animation: fade .8s ease both; }
.row { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.row .btn { margin-top: 0; }

/* ── Поля ─────────────────────────────────────────────────────────────── */
.capsule__top { display: flex; align-items: center; gap: 14px; margin-bottom: 4vh; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.dots { display: flex; gap: 5px; list-style: none; padding: 0; flex: 1; }
.dots li { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.dots li.is-done { background: var(--accent); }
.dots li.is-now { background: var(--ink); }
.answer {
  margin-top: 20px; width: 100%; padding: 14px 16px; border-radius: var(--radius-s); resize: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); font: 400 1.02rem/1.5 var(--sans);
}
.answer:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.answer::placeholder { color: #9d968c; }
.answer--line { margin-top: 0; min-height: 52px; }
.field { display: block; margin-top: 20px; }
.field span { display: block; font: 500 .9rem var(--sans); color: var(--muted); margin-bottom: 6px; }
.field--row { display: flex; align-items: center; gap: 12px; }
.field--row span { margin: 0; white-space: nowrap; }
.field--row input { color-scheme: light; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips:empty { display: none; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; min-height: 38px; font: 400 .9rem var(--sans); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--accent); }
.seg { display: flex; gap: 6px; margin-top: 14px; padding: 4px; border-radius: 14px; background: var(--soft); }
.seg button { flex: 1; min-height: 42px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: 500 .86rem/1.2 var(--sans); cursor: pointer; padding: 6px; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -4px rgb(22 19 15 / .35); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.consent a { color: var(--accent); }

/* ── Главный экран: кадр-обложка ─────────────────────────────────────── */
.film { position: relative; height: min(56vh, 460px); margin: calc(-1 * max(24px, env(safe-area-inset-top))) -20px 0; overflow: hidden; border-radius: 0 0 28px 28px; background: #2a241e; }
.film__media { position: absolute; inset: 0; overflow: hidden; }
.film__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
/* петля «дыхания» сложена «картинка | маска» — показываем только левую половину */
.film__media video { position: absolute; top: 0; left: 0; height: 100%; width: 200%; max-width: none; object-fit: cover; object-position: 0 28%; opacity: 0; transition: opacity 1s ease; }
.film__media video.is-on { opacity: 1; }
.film::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(10 9 8 / .38) 0%, rgb(10 9 8 / 0) 26%, rgb(10 9 8 / 0) 46%, rgb(10 9 8 / .8) 100%); }
.film__brand { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 20px; z-index: 1; color: #fff; font: 600 .72rem var(--sans); letter-spacing: .16em; opacity: .85; }
.film__over { position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 1; color: #fff; }
.film__date { font-size: .8rem; opacity: .8; }
.film__hello { font: 600 1.85rem/1.1 var(--sans); letter-spacing: -.025em; margin-top: 4px; }
.film .voice { color: #fff; margin-top: 10px; font-size: 1.02rem; font-weight: 400; line-height: 1.4; opacity: .95; }
.film .voice::before { content: "«"; } .film .voice::after { content: "»"; }
.film .voice:empty::before, .film .voice:empty::after { content: none; }
.film .voice.is-new { animation: fade .9s ease both; }

.lbl { display: block; margin: 22px 2px 8px; }
.card, .contract, .pinky-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.contract { margin-top: 0; }
.contract__text { font: 600 1.12rem/1.3 var(--sans); letter-spacing: -.01em; }
.contract__meta { margin-top: 4px; font-size: .85rem; color: var(--muted); }
.contract__sign { display: none; }
#contract .contract__kicker, #pinkyCard .contract__kicker { display: none; }
#checkRow { padding-top: 12px; margin-top: 0; flex-direction: row; justify-content: space-between; align-items: center; }
#checkRow .btn { width: auto; flex: 1; }
#checkRow .link { flex: none; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trust div { padding: 14px 4px; text-align: center; border-right: 1px solid var(--line); }
.trust div:last-child { border: 0; }
.trust dt { font-size: .74rem; color: var(--muted); order: 2; }
.trust div { display: flex; flex-direction: column-reverse; }
.trust dd { margin: 0; font: 600 1.4rem var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trust dd.is-lamp { color: var(--accent); }
.proofs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.proofs:empty { display: none; }
.proofs img { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 12px; }

.pinky-card { margin-top: 10px; display: grid; gap: 4px; }
.pinky-card__text { font: 600 1.05rem/1.3 var(--sans); }
.pinky-card__meta { font-size: .85rem; color: var(--warm); font-weight: 500; }
.pinky-card__actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pinky-card.is-broken .pinky-card__text { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.pinky-card.is-broken .pinky-card__meta { color: var(--muted); }
.pinky-card.is-kept .pinky-card__meta { color: var(--ok); }
.pinky-card::before { content: "Мизинчиковое обещание"; font: 600 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.mail { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer; text-align: left; background: var(--surface); font: inherit; color: var(--ink); }
.mail b { font-weight: 600; }
.mail__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--warm); }

/* «Ещё» на главном — как список настроек */
.more { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.more > .link, .more > a.link { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 16px; color: var(--ink); border-bottom: 1px solid var(--line); text-align: left; }
.more > :last-child { border-bottom: 0; }
.more > .link::after { content: "›"; color: var(--muted); font-size: 1.3rem; }
.more > .link--quiet { color: var(--muted); font-size: .9rem; }
#openTalk, #openPath { display: none; } /* теперь во вкладках снизу */
#newPromise.btn { margin-top: 16px; }

/* ── Нижнее меню ──────────────────────────────────────────────────────── */
.tabs { position: fixed; z-index: 15; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 460px); display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgb(246 244 241 / .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tab { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: 500 .7rem var(--sans); cursor: pointer; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--ink); }

/* ── Мечты (вкладка) ─────────────────────────────────────────────────── */
.page-title { font: 600 1.7rem/1.15 var(--sans); letter-spacing: -.025em; margin-top: 8px; }
.dreams { margin-top: 18px; }
.dreams__list { list-style: none; padding: 0; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dream { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dream:last-child { border-bottom: 0; }
.dream__body { flex: 1; min-width: 0; }
.dream__name { font: 600 1rem/1.3 var(--sans); }
.dream__mirror { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.dream__status { flex: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 0 12px; min-height: 34px; font: 500 .76rem var(--sans); color: var(--muted); cursor: pointer; }
.dream[data-s="done"] .dream__status { background: var(--ok); border-color: var(--ok); color: #fff; }
.dream[data-s="way"] .dream__status { border-color: var(--accent); color: var(--accent); }
.dream[data-s="not-mine"] .dream__name { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.dreams-more { margin-top: 18px; display: grid; gap: 10px; }

/* ── Ритуал мизинчикового обещания ───────────────────────────────────── */
.pinky__what { margin-top: 16px; font: 600 1.2rem/1.3 var(--sans); color: var(--warm); }
.hold { position: relative; overflow: hidden; width: 100%; min-height: 60px; border-radius: 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1rem var(--sans); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hold__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hold__text { position: relative; mix-blend-mode: difference; color: #fff; }
.hold.is-sealed { background: var(--accent); }

/* ── Открытка ─────────────────────────────────────────────────────────── */
.postcard { margin-top: 14px; padding: 24px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 50px -40px rgb(22 19 15 / .6); }
.postcard__text { font-size: 1.12rem; line-height: 1.6; white-space: pre-line; font-weight: 400; }
.postcard__text.is-wait { color: var(--muted); }
.postcard__sign { margin-top: 16px; text-align: right; font: 500 .95rem var(--sans); color: var(--muted); }
#card .contract__kicker { margin-top: 2vh; }
.month-q { margin-top: 18px; }
.month-q p { font: 500 1rem var(--sans); }
.scale { display: flex; gap: 4px; margin-top: 12px; }
.scale button { flex: 1; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 600 .9rem var(--sans); color: var(--muted); cursor: pointer; padding: 0; }
.scale button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale__ends { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* ── Окна снизу, праздник ─────────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgb(22 19 15 / .32); animation: fade .25s ease both; }
.sheet__card { width: min(100%, 460px); padding: 24px 20px max(20px, env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: up .35s cubic-bezier(.2, .8, .2, 1) both; }
.sheet__btn { margin-top: 8px; }
.party { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: var(--bg); animation: fade .3s ease both; }
.party__confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.party__card { position: relative; width: min(100%, 400px); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.party__kid { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(22 19 15 / .6); animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.party__kid video { width: 100%; height: 100%; object-fit: cover; }
.party__streak { font: 600 .9rem var(--sans); color: var(--accent); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.party__streak:empty { display: none; }
.party__proof { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; }
.party .btn { margin-top: 10px; }
.waking { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.waking__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.av-progress { margin-top: 16px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.av-progress span { display: block; height: 100%; width: var(--p, 4%); background: var(--accent); transition: width 1s ease; }

/* ── Нарушенное мизинчиковое: ребёнок теряет цвет ────────────────────── */
body.is-hurt .avatar, body.is-hurt .print__img, body.is-hurt .print__video, body.is-hurt .holo__video, body.is-hurt .film__media { filter: grayscale(1) contrast(.95) !important; transition: filter 1.5s ease; }

/* ── Разговор: ребёнок появляется в мягком свете ─────────────────────── */
.screen--talk.is-active { position: fixed; inset: 0; overflow-y: auto; background: radial-gradient(90% 60% at 50% 30%, #fbfaf8 0%, var(--bg) 70%); padding-inline: max(20px, calc((100vw - 420px) / 2)); }
.back, .sound { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); background: none; border: 0; color: var(--muted); cursor: pointer; min-height: 44px; font: 500 .85rem var(--sans); }
.screen--talk .back { left: max(14px, calc((100vw - 420px) / 2 - 6px)); font-size: 1.4rem; padding: 0 10px; }
.screen--talk .sound { right: max(20px, calc((100vw - 420px) / 2)); }
.holo { position: relative; width: min(84%, 330px); aspect-ratio: 3 / 4; margin: 7vh auto 0; animation: float 7s ease-in-out infinite; }
.holo__sun { position: absolute; left: 6%; right: 6%; top: 8%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #e8eef7 0%, #eef1f5 55%, rgb(238 241 245 / 0) 100%); transform: scale(calc(1 + var(--talk, 0) * .05)); transition: transform .12s linear; }
.holo__video { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 98%); mask-image: linear-gradient(to bottom, #000 80%, transparent 98%); filter: brightness(calc(1 + var(--talk, 0) * .06)); }
.holo__src { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.holo__scan, .holo__beam { display: none; }
.holo__base { position: absolute; left: 24%; right: 24%; bottom: -5%; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgb(22 19 15 / .18), transparent); }
.holo[data-emotion="sad"] .holo__sun, .holo[data-emotion="worried"] .holo__sun { opacity: .6; }
.talk__line { margin-top: 4vh; min-height: 3.2em; text-align: center; font-size: 1.15rem; }
.talk__line.is-wait { color: var(--muted); }
.ask { display: flex; gap: 8px; margin-top: auto; align-items: center; }
.ask__input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 1rem var(--sans); }
.ask__input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.ask__send, .mic { flex: none; width: 52px; height: 52px; border-radius: 14px; border: 0; cursor: pointer; display: grid; place-items: center; }
.ask__send { background: var(--accent); color: #fff; }
.mic { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.mic.is-on { background: #fde8e3; color: #9a2f12; border-color: #f0a08c; }
.talk { display: flex; gap: 12px; align-items: flex-start; margin-top: 3vh; }
.talk .voice { font-size: 1.1rem; }
.talk .voice.is-new { animation: fade .9s ease both; }

/* ── Наш путь ─────────────────────────────────────────────────────────── */
.screen--path.is-active { position: fixed; inset: 0; overflow-y: auto; padding: 0; background: #f2eee8; }
body.has-tabs .screen--path.is-active { padding-bottom: 90px; }
.tunnel { position: relative; min-height: 100dvh; padding: max(60px, env(safe-area-inset-top)) max(20px, calc((100vw - 420px) / 2)) 120px; overflow: hidden; }
.tunnel__sun { position: absolute; left: 50%; top: -20vh; width: 120vw; max-width: 760px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, #fffaf0, #f3dfbd 45%, rgb(243 223 189 / 0)); opacity: calc(.35 + var(--light, 0) * .65); }
.tunnel__dark { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, #15120f 0%, #26201b calc(70% - var(--light, 0) * 60%), rgb(38 32 27 / 0) calc(100% - var(--light, 0) * 60%)); opacity: calc(1 - var(--light, 0) * .85); transition: opacity 1.2s ease; }
.tunnel__head, .stations, .tunnel__note, .dirs { position: relative; }
.tunnel__head .voice { margin-top: 6px; color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.stations { list-style: none; padding: 0; margin-top: 4vh; display: flex; flex-direction: column-reverse; gap: 12px; }
.station { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; cursor: pointer; text-align: left; width: 100%; border: 1px solid rgb(255 255 255 / .14); background: rgb(22 19 15 / .5); color: #f2ebe0; font: inherit; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.station__dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem var(--sans); border: 1px solid rgb(255 255 255 / .35); }
.station__name { display: block; font: 600 1rem/1.25 var(--sans); }
.station__what { display: block; font-size: .82rem; opacity: .75; margin-top: 3px; }
.station.is-done { background: rgb(255 255 255 / .92); color: var(--ink); border-color: transparent; }
.station.is-done .station__dot { background: var(--ok); color: #fff; border-color: var(--ok); }
.station.is-now { border-color: #f1d9a8; box-shadow: 0 0 0 3px rgb(241 217 168 / .2), 0 0 40px -8px rgb(241 200 120 / .7); }
.station.is-now .station__dot { background: #fff1cf; color: var(--ink); border-color: #fff1cf; box-shadow: 0 0 20px 3px rgb(255 214 140 / .8); animation: lantern 2.4s ease-in-out infinite; }
.station:disabled { opacity: .45; cursor: default; }
.tunnel__note { margin-top: 4vh; font-size: .84rem; line-height: 1.45; color: #e2d6c4; }
.tunnel.is-bright .tunnel__note { color: var(--muted); }
.screen--path .back { left: max(14px, calc((100vw - 420px) / 2 - 6px)); font-size: 1.4rem; padding: 0 10px; }
.dirs { z-index: 1; display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 14px; background: rgb(255 255 255 / .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dirs button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: none; font: 600 .86rem var(--sans); color: var(--muted); cursor: pointer; }
.dirs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -4px rgb(22 19 15 / .4); }
.tunnel--dreams { --light: 1; background: linear-gradient(180deg, #e3ebf5 0%, #f4efe7 55%, var(--bg) 100%); }
.tunnel--dreams .tunnel__dark { display: none; }
.tunnel--dreams .station { background: rgb(255 255 255 / .9); color: var(--ink); border-color: var(--line); }
.tunnel--dreams .station__dot { border-color: var(--line); color: var(--muted); }
.tunnel--dreams .tunnel__note { color: var(--muted); }
.inner-choices { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.inner-choice { text-align: left; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; gap: 4px; font: inherit; color: var(--ink); }
.inner-choice b { font: 600 1.05rem var(--sans); }
.inner-choice span { font-size: .88rem; color: var(--muted); }
.inner-choice--deep { background: var(--ink); color: #f2ebe0; border-color: var(--ink); }
.inner-choice--deep span { color: #cfc5b6; }
#innerUnsure { align-self: center; }

/* ── Практики ─────────────────────────────────────────────────────────── */
.practice__bar { display: flex; align-items: center; gap: 6px; }
.back--inline { position: static; color: var(--ink); font-size: 1.4rem; padding: 0 8px; }
.practice__title { flex: 1; font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hard-btn { border: 1px solid #efc7b9; background: #fdf1ec; color: #9a3412; border-radius: 999px; padding: 0 14px; min-height: 38px; font: 500 .82rem var(--sans); cursor: pointer; }
.practice__kid { margin-top: 3vh; }
.practice__kid .voice { font-size: 1.15rem; }
.practice__kid .voice.is-wait { color: var(--muted); }
.practice__body { margin-top: 2vh; }
.practice__body .answer { margin-top: 12px; }
.shadow-fear { margin: 18px auto 0; width: calc(60px + var(--size, 5) * 18px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #3a332c, rgb(58 51 44 / 0)); transition: width 1.2s ease; }
.private { margin-top: 10px; font-size: .84rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.private::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ok); }
.release { display: block; margin: 24px auto 0; width: 200px; height: 120px; position: relative; }
.release__paper { position: absolute; inset: 10px 30px; background: #fff; border-radius: 6px; box-shadow: 0 10px 20px -10px rgb(22 19 15 / .5); }
.release.is-going .release__paper { animation: rise 2.6s ease-in forwards; }
.letter-out { margin-top: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font: 400 1.05rem/1.6 var(--sans); white-space: pre-line; }
.breath { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #e7eef8, #d6e2f1 60%, rgb(214 226 241 / 0) 72%); animation: breath 10s ease-in-out infinite; }
.breath img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.breath__say { font: 600 1.05rem var(--sans); color: var(--accent); min-height: 1.5em; }

/* ── Два будущих ─────────────────────────────────────────────────────── */
.fut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 3vh; }
.fut figure { margin: 0; }
.fut img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: var(--soft); filter: saturate(.85); }
.fut .is-keep img { filter: none; box-shadow: 0 0 0 2px var(--accent); }
.fut figcaption { margin-top: 6px; font-size: .84rem; color: var(--muted); text-align: center; }
.fut .is-keep figcaption { color: var(--accent); font-weight: 600; }
.fut img.is-wait { animation: pulse 1.4s ease-in-out infinite; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 50% { transform: scale(1.02); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes lantern { 50% { box-shadow: 0 0 28px 6px rgb(255 214 140 / .95); } }
@keyframes breath { 0%, 100% { transform: scale(.75); } 40% { transform: scale(1.1); } }
@keyframes rise { 30% { transform: translateY(-10px) rotate(-4deg); } 100% { transform: translateY(-160px) scale(.2) rotate(12deg); opacity: 0; filter: blur(4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #introLines .voice { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   «Вечерний свет» (выбор владельца 05.10.2026 по первому экрану лендинга):
   всё приложение — на вечернем небе: тёмно-синий верх → лиловый → розовый → золото у горизонта,
   мягкие огни и звёзды. Карточки — тёмное стекло, текст белый, главные кнопки белые.
   ════════════════════════════════════════════════════════════════════════ */
:root {
  --sky: linear-gradient(180deg, #1d2238 0%, #2c2a45 22%, #4a3f57 44%, #7d5463 62%, #b0716c 76%, #d98d69 86%, #6a4434 94%, #1a1311 100%);
  --bg: #1d2238;
  --surface: rgb(18 17 30 / .46);
  --soft: rgb(255 255 255 / .08);
  --ink: #f7f2ea;
  --muted: rgb(247 242 234 / .72);
  --line: rgb(255 255 255 / .14);
  --accent: #ffffff;        /* главная кнопка — белая, как на лендинге */
  --accent-2: #eef0f6;
  --on-accent: #1d2238;
  --warm: #f6c58e;          /* золото горизонта: сроки, мизинчиковое */
  --ok: #8fd3a8;
}
html { background: #1a1826; }
body { background: transparent; color: var(--ink); }
/* небо — неподвижный слой под всем приложением */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--sky); }
/* мягкие огни и звёзды */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60px 60px at 22% 30%, rgb(255 236 210 / .22), transparent 70%),
    radial-gradient(90px 90px at 86% 52%, rgb(255 214 170 / .18), transparent 70%),
    radial-gradient(70px 70px at 12% 66%, rgb(255 200 160 / .14), transparent 70%),
    radial-gradient(45% 22% at 55% 80%, rgb(255 205 150 / .35), transparent 75%),
    radial-gradient(1px 1px at 18% 8%, #fff 99%, transparent), radial-gradient(1px 1px at 42% 14%, rgb(255 255 255 / .8) 99%, transparent),
    radial-gradient(1.5px 1.5px at 66% 6%, #fff 99%, transparent), radial-gradient(1px 1px at 78% 18%, rgb(255 255 255 / .7) 99%, transparent),
    radial-gradient(1px 1px at 8% 22%, rgb(255 255 255 / .6) 99%, transparent), radial-gradient(1.5px 1.5px at 92% 9%, rgb(255 255 255 / .8) 99%, transparent),
    radial-gradient(1px 1px at 55% 24%, rgb(255 255 255 / .5) 99%, transparent), radial-gradient(1px 1px at 30% 34%, rgb(255 255 255 / .4) 99%, transparent);
  animation: twinkle 9s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .75; } }

/* стекло вместо белых карточек */
.card, .contract, .pinky-card, .trust, .more, .dreams__list, .mail, .postcard, .letter-out, .inner-choice, .waking, .tunnel--dreams .station {
  background: var(--surface); border-color: var(--line); color: var(--ink);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.btn { background: #fff; color: var(--on-accent); box-shadow: 0 14px 30px -18px rgb(0 0 0 / .7); }
.btn:hover { background: var(--accent-2); }
.btn--pinky, .btn--ghost { background: rgb(255 255 255 / .1); color: var(--ink); border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--pinky:hover, .btn--ghost:hover { background: rgb(255 255 255 / .16); }
.btn--path { background: rgb(246 197 142 / .16); color: var(--warm); border: 1px solid rgb(246 197 142 / .4); }
.link { color: var(--muted); }
.link:hover { color: var(--ink); }
.answer, .ask__input, .chip, .scale button, .hold, .mic, .dream__status {
  background: rgb(255 255 255 / .08); border-color: var(--line); color: var(--ink);
}
.answer::placeholder, .ask__input::placeholder { color: rgb(247 242 234 / .5); }
.answer:focus, .ask__input:focus { outline-color: var(--warm); }
.chip:hover { border-color: var(--warm); }
.seg { background: rgb(255 255 255 / .08); }
.seg button { color: var(--muted); }
.seg button[aria-checked="true"] { background: #fff; color: var(--on-accent); }
.scale button[aria-pressed="true"] { background: #fff; color: var(--on-accent); border-color: #fff; }
.dots li { background: rgb(255 255 255 / .18); }
.dots li.is-done { background: var(--warm); }
.dots li.is-now { background: #fff; }
.field--row input, input[type="date"] { color-scheme: dark; }
.consent a, .hint a { color: var(--warm); }
.consent input { accent-color: var(--warm); }
.trust dd.is-lamp, .breath__say, .party__streak, .fut .is-keep figcaption { color: var(--warm); }
.pinky-card__meta, .pinky__what { color: var(--warm); }
.contract__kicker, .lbl, .practice__title { color: var(--muted); }
.print { background: rgb(255 255 255 / .06); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.print--small { box-shadow: 0 0 0 1px rgb(255 255 255 / .18), 0 0 60px -10px rgb(246 197 142 / .45); }
.avatar { box-shadow: 0 0 0 2px rgb(255 255 255 / .25); }
.hold__fill { background: #fff; }
.hold.is-sealed { background: #fff; }
.av-progress { background: rgb(255 255 255 / .15); }
.av-progress span, .waking__dot { background: var(--warm); }
.mail__dot { background: var(--warm); }
.hard-btn { background: rgb(240 120 100 / .16); color: #ffd2c6; border-color: rgb(255 180 160 / .4); }

/* обложка главного переходит в небо без шва */
.film { background: #241f33; border-radius: 0 0 28px 28px; }
.film::after { background: linear-gradient(180deg, rgb(15 14 26 / .45) 0%, rgb(15 14 26 / 0) 26%, rgb(15 14 26 / 0) 44%, rgb(20 18 34 / .85) 100%); }
.film__media img, .film__media video { filter: saturate(.92) contrast(1.03); }

/* меню снизу и окна */
.tabs { background: rgb(20 19 33 / .72); border-top-color: var(--line); }
.tab { color: rgb(247 242 234 / .6); }
.tab[aria-current="page"] { color: #fff; }
.sheet { background: rgb(8 7 14 / .55); }
.sheet__card { background: linear-gradient(180deg, #2a2741 0%, #1d1b2c 100%); color: var(--ink); border-top: 1px solid var(--line); }
.party { background: var(--sky); }
.party__kid { box-shadow: 0 0 0 1px rgb(255 255 255 / .25), 0 0 80px -10px rgb(246 197 142 / .7); }

/* разговор: ребёнок в свете заката */
.screen--talk.is-active { background: none; }
.holo__sun { background: radial-gradient(closest-side, rgb(255 230 190 / .9) 0%, rgb(247 182 120 / .45) 45%, rgb(247 182 120 / 0) 100%); }
.holo__base { background: radial-gradient(closest-side, rgb(255 205 150 / .45), transparent); }
.screen--talk .back, .screen--talk .sound { color: var(--muted); }

/* путь: тоннель и «Вернуть мечты» на том же небе */
.screen--path.is-active { background: none; }
.tunnel__sun { background: radial-gradient(closest-side, #fff4dc, #f6c58e 40%, rgb(246 197 142 / 0)); }
.tunnel__dark { background: linear-gradient(to top, #07060b 0%, #12101b calc(70% - var(--light, 0) * 60%), rgb(18 16 27 / 0) calc(100% - var(--light, 0) * 60%)); }
.tunnel__head .voice { color: var(--ink); }
.tunnel--dreams { background: none; }
.tunnel--dreams .station__dot { border-color: var(--line); color: var(--ink); }
.tunnel--dreams .tunnel__note, .tunnel__note { color: var(--muted); }
.station { background: rgb(10 9 16 / .5); border-color: var(--line); }
.station.is-done { background: rgb(255 255 255 / .92); color: #1d2238; }
.station.is-done .station__dot { background: #2f7a4a; border-color: #2f7a4a; }
.dirs { background: rgb(255 255 255 / .1); }
.dirs button { color: var(--muted); }
.dirs button[aria-selected="true"] { background: #fff; color: var(--on-accent); }
.inner-choice--deep { background: rgb(5 5 10 / .6); border-color: var(--line); }
.shadow-fear { background: radial-gradient(closest-side, #05040a, rgb(5 4 10 / 0)); }
.private::before { background: var(--ok); }

/* мечты и два будущих */
.dream { border-bottom-color: var(--line); }
.dream[data-s="way"] .dream__status { border-color: var(--warm); color: var(--warm); }
.dream[data-s="done"] .dream__status { background: var(--ok); border-color: var(--ok); color: #10241a; }
.fut img { background: rgb(255 255 255 / .06); }
.fut .is-keep img { box-shadow: 0 0 0 2px var(--warm), 0 0 40px -10px rgb(246 197 142 / .7); }
.ask__send { background: #fff; color: var(--on-accent); }

/* «Как в кино»: кнопка «проснуться» на первой встрече и видеописьмо */
.play { position: absolute; inset: auto 16px 20px; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px solid rgb(255 255 255 / .3);
  background: rgb(15 14 26 / .45); color: #fff; font: 500 .95rem/1.3 var(--sans); text-align: left; cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.play__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; position: relative; box-shadow: 0 0 0 6px rgb(255 255 255 / .18), 0 0 40px rgb(246 197 142 / .6); animation: pulse 2s ease-in-out infinite; }
.play__icon::after { content: ""; position: absolute; left: 18px; top: 14px; border: 9px solid transparent; border-left: 14px solid #1d2238; border-right: 0; }
#intro .print.is-talking .print__video { opacity: 1; }
.postcard__video { margin-bottom: 16px; }
.postcard__video video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: rgb(0 0 0 / .3); }

/* Живой звонок */
.call-btn { display: flex; align-items: center; justify-content: center; gap: 8px; align-self: center; margin: 0 0 12px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgb(143 211 168 / .5); background: rgb(143 211 168 / .14); color: #c8f0d6; font: 600 .95rem var(--sans); cursor: pointer; }
.callbar { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font: 500 .95rem var(--sans); }
.callbar__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #8fd3a8; animation: pulse 1.4s ease-in-out infinite; }
.callbar span:nth-child(2) { flex: 1; }
.callbar__end { flex: none; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: #e5484d; color: #fff; font: 600 .9rem var(--sans); cursor: pointer; }
