
  /* ─── Токены: ровно палитра иконки ──────────────────────────────────── */
  :root {
    --ink:      #0A0A0F;
    --white:    #F8F8F8;
    --indigo:   #3606A7;
    --violet:   #9F35FA;
    --lavender: #C381F4;
    --grey:     #8A8A94;
    --grey-d:   #2A2A33;

    --f-body:    "Inter", system-ui, sans-serif;
    --f-display: "Space Grotesk", "Golos Text", sans-serif;
    --f-mark:    "Poppins", "Inter", sans-serif;
    --f-poster:  "Bebas Neue", "Space Grotesk", sans-serif;
  }
  * { box-sizing: border-box; }
  html, body {
    height: 100%; margin: 0;
    overflow: hidden; overscroll-behavior: none; touch-action: none;
    background: var(--ink); color: var(--white);
    font-family: var(--f-body); -webkit-font-smoothing: antialiased;
  }

  /* ─── Сцена ─────────────────────────────────────────────────────────── */
  #stage { position: fixed; inset: 0; perspective: 1000px; perspective-origin: 50% 45%; background: var(--ink); }
  #cam   { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
  /* 🪤 clip-path: inset(0) — не ради обрезки (её держит overflow), а ради ГРУППИРОВКИ. #cam живёт в
     preserve-3d и наклоняется за курсором; без группирующего свойства проверка попадания в сцене
     расходилась с картинкой — в правой части экрана клик уходил мимо плиток, кадров, клипов и ссылок
     подвала. Замер мгновенным кликом (probes/clicks.mjs): v27 — 11 из 25; overflow visible/clip —
     без изменений; с clip-path — 49 из 49 и 51 из 51. */
  .scene { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0); }
  .scene[hidden] { display: none !important; }

  .layer { position: absolute; left: 50%; top: 0; transform-origin: 50% 0; will-change: transform; pointer-events: none; }
  .layer > img, .layer > canvas { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
  /* Вырезки (не cover) держат пропорцию и прижаты к низу кадра */
  .layer--cut > img { object-fit: contain; object-position: 50% 100%; }
  .layer--screen { mix-blend-mode: screen; }

  /* Экран кинотеатра: живой слот внутри слоя зала */
  .screen {
    position: absolute; overflow: hidden;
    /* Слот с нахлёстом перекрывает нарисованную белую заливку целиком: белого канта вокруг
       фильма не остаётся. Кадр заполняет экран, кроп смещён к верху — головы не срезаются. */
    background: #06050C;
    /* Свет в зал идёт ОТ КАДРА: --lc (цвет) и --lb (яркость) ставит sampleFilm() раз в 110 мс,
       поэтому свечение экрана, луч проектора и отсвет на креслах живут вместе с фильмом.
       Постоянного белого канта больше нет — он и читался как «слепящая подкладка». */
    box-shadow: 0 0 calc(64px + var(--lb, .4) * 150px) calc(10px + var(--lb, .4) * 36px)
                rgba(var(--lc, 159,53,250), calc(.09 + var(--lb, .4) * .34));
  }
  /* Кадр лежит ВНУТРИ рамы экрана: по краю мягкая тень, иначе видео выглядит наклейкой */
  .screen::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    box-shadow: inset 0 0 44px 10px rgba(6,5,12,.42), inset 0 0 0 1px rgba(10,10,15,.55); }
  .screen img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%;
    opacity: 0; transition: opacity 900ms ease;
  }
  .screen img.on { opacity: 1; }
  .screen::after {                           /* лёгкий свет проектора поверх кадра */
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.10), rgba(10,10,15,.18) 90%);
    pointer-events: none;
  }
  /* Открывающий титр: гаснет НИЖНЯЯ треть кадра, как lower third в кино, а не весь экран.
     Верх фильма виден всегда, словознак лежит на притушенном низу и светится. */
  .screen .scrim {
    position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 2;
    background:
      radial-gradient(ellipse 52% 36% at 50% 79%, rgba(159,53,250,.55), transparent 72%),
      linear-gradient(to bottom, rgba(10,10,15,0) 26%, rgba(10,10,15,.5) 58%, rgba(10,10,15,.88) 100%);
  }
  .screen img, .screen video { z-index: 0; }

  /* ─── Титульная карточка: словознак в центре экрана ─────────────────── */
  /* Словознак: в покое — огромный в центре экрана, на прокрутке усаживается в шапку и остаётся там */
  #title {
    position: fixed; left: 0; top: 0; z-index: 41;
    transform-origin: 0 0;
    font-family: var(--f-mark); font-weight: 700;
    font-size: clamp(64px, 11vw, 168px); letter-spacing: -.035em; line-height: 1;
    pointer-events: none; white-space: nowrap;
    /* Словознак горит НА ЭКРАНЕ: три слоя свечения. Сев в шапку (.docked) — гаснет. */
    text-shadow: 0 0 20px rgba(248,248,248,.32), 0 0 58px rgba(195,129,244,.55),
                 0 0 130px rgba(159,53,250,.42), 0 2px 12px rgba(10,10,15,.5);
    transition: text-shadow 520ms ease;
    will-change: transform;
  }
  #title.docked { text-shadow: 0 2px 12px rgba(10,10,15,.55); }
  body.is-light #title .in { color: var(--ink); }
  #hdr .brand b { display: none; }

  /* Лайтбокс: клик по кадру ленты, сцене, вееру */
  #lb { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(10,10,15,.88); cursor: zoom-out; }
  #lb[hidden] { display: none; }
  #lb img { max-width: 86vw; max-height: 78vh; border: 4px solid var(--white); border-radius: 6px; box-shadow: 0 40px 120px rgba(0,0,0,.7); animation: lbin 320ms cubic-bezier(.23,1,.32,1); }
  #lb p { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom,0px) + 28px); transform: translateX(-50%); margin: 0; font: 500 12px/1 var(--f-body); letter-spacing: .3em; color: var(--lavender); }
  @keyframes lbin { from { transform: scale(.92); opacity: 0; } }
  .strip figure, .sc, .fan img, .ch { pointer-events: auto; cursor: zoom-in; }
  .screen { pointer-events: auto; cursor: pointer; }
  .gen { pointer-events: auto; cursor: pointer; }
  .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; opacity: 0; transition: opacity 900ms ease; }
  .screen.has-video video { opacity: 1; }
  .screen.has-video img { opacity: 0 !important; }
  #title .in { color: var(--white); }
  #title .saga { color: var(--lavender); }

  /* ─── Шапка (как сейчас на лендинге) ────────────────────────────────── */
  #hdr {
    position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px max(20px, 4vw);
  }
  #hdr .brand { display: flex; align-items: center; gap: 9px; transition: opacity 500ms ease; }
  #hdr .brand.hide { opacity: 0; }
  #hdr .brand img { width: 28px; height: 28px; }
  #hdr .brand b { font-family: var(--f-mark); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
  #hdr .brand b .saga { color: var(--lavender); }
  #hdr nav { display: flex; align-items: center; gap: 10px; }
  #hdr button, #hdr .pill {
    font: 500 13px/1 var(--f-body); color: rgba(248,248,248,.72);
    background: transparent; border: 1px solid rgba(248,248,248,.14); border-radius: 999px;
    padding: 9px 14px; cursor: pointer;
  }
  #hdr button:hover { color: var(--white); background: rgba(248,248,248,.08); }
  #hdr button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

  /* ─── Язык страницы: кнопка с флагом и меню «флаг · самоназвание · галочка» ─────────── */
  #hdr .lang { position: relative; }
  #hdr #langPill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; }
  .flag { display: inline-block; flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
  .flag svg { display: block; width: 100%; height: 100%; }
  #langPill .flag { width: 18px; height: 18px; }
  #hdr .lang-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 232px; margin: 0; padding: 6px; list-style: none;
    background: rgba(22,21,28,.96); border: 1px solid rgba(248,248,248,.09); border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transform-origin: 100% 0; animation: langIn 160ms cubic-bezier(.23,1,.32,1); }
  @keyframes langIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
  #hdr .lang-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px 9px 9px;
    font: 500 15px/1.2 var(--f-body); color: rgba(248,248,248,.86); background: transparent; border: 0; border-radius: 9px; text-align: left; }
  #hdr .lang-menu button:hover, #hdr .lang-menu button:focus-visible { background: rgba(248,248,248,.07); color: var(--white); outline: none; }
  #hdr .lang-menu button[aria-selected="true"] { background: rgba(248,248,248,.09); color: var(--white); }
  #hdr .lang-menu .ok { margin-left: auto; width: 16px; height: 16px; opacity: 0; }
  #hdr .lang-menu button[aria-selected="true"] .ok { opacity: .9; }

  /* Японский и корейский: у Inter и Space Grotesk нет иероглифов и хангыля — латиница остаётся их,
     остальное берёт Noto (ссылка на шрифт ставится скриптом только для этих языков). Разрядка
     надзаголовков и строчная высота заголовков — под письмо, где нет прописных. */
  html:lang(ja) { --f-body: "Inter", "Noto Sans JP", system-ui, sans-serif; --f-display: "Space Grotesk", "Noto Sans JP", sans-serif; --f-poster: "Bebas Neue", "Noto Sans JP", sans-serif; }
  html:lang(ko) { --f-body: "Inter", "Noto Sans KR", system-ui, sans-serif; --f-display: "Space Grotesk", "Noto Sans KR", sans-serif; --f-poster: "Bebas Neue", "Noto Sans KR", sans-serif; }
  html:lang(ja) .h, html:lang(ko) .h { line-height: 1.16; letter-spacing: -.01em; }
  html:lang(ja) .eyebrow, html:lang(ko) .eyebrow, html:lang(ja) .out .lbl, html:lang(ko) .out .lbl { letter-spacing: .12em; }
  html:lang(ja) body { line-break: strict; }
  /* 🪤 Японский браузер вправе рвать между любыми знаками: «物語はも / う始まっています» разрывало もう.
     Заголовки рвутся только в расставленных <wbr> (между смысловыми группами); абзацы — по фразам
     (auto-phrase, Chrome 119+; в других браузерах обычный перенос). */
  html:lang(ja) :is(.h, .chapter .g, .cell-title h3) { word-break: keep-all; }
  html:lang(ja) :is(.lede, .prompt p, .cell-title p) { word-break: auto-phrase; }
  html:lang(ko) body { word-break: keep-all; }

  /* ─── Текст в сценах ────────────────────────────────────────────────── */
  .card { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; gap: 16px; padding-inline: max(28px, 6vw); pointer-events: none; }
  .eyebrow { font: 600 11px/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase; color: var(--lavender); }
  .h { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; color: var(--white); }
  .h em { font-style: normal; color: var(--lavender); }
  .lede { font-weight: 300; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; max-width: 46ch; color: rgba(248,248,248,.7); }
  .card--small .h { font-size: clamp(26px, 3.6vw, 50px); max-width: 15em; }
  .card--small .lede { max-width: 40ch; font-size: clamp(14px, 1.2vw, 16px); }
  .card--narrow .h { max-width: 11em; } .card--narrow .lede { max-width: 30ch; }
  /* Второй акт: подзаголовок шириной с поле истории под ним (правые края совпадают) — на длинных
     языках это строка меньше: немецкий 4 → 3, корейский 3 → 2 на 1440 */
  .scene[data-id="click"] .card--small .lede { max-width: calc((100vw - 2 * max(28px, 6vw)) * .38); }
  /* Читаемость текста поверх арта — только собственная тень букв: никакой заливки-«плашки» */
  .card--scrim .h    { text-shadow: 0 2px 26px rgba(10,10,15,.95), 0 1px 3px rgba(10,10,15,.8); }
  .card--scrim .lede,
  .card--scrim .eyebrow { text-shadow: 0 1px 14px rgba(10,10,15,.95), 0 1px 2px rgba(10,10,15,.85); }
  .scene--light .card--scrim .h { text-shadow: 0 2px 26px rgba(248,248,248,.95), 0 1px 3px rgba(248,248,248,.9); }
  .scene--light .card--scrim .lede,
  .scene--light .card--scrim .eyebrow { text-shadow: 0 1px 14px rgba(248,248,248,.98), 0 1px 2px rgba(248,248,248,.9); }
  .poster { font-family: var(--f-poster); font-size: clamp(40px, 6vw, 84px); letter-spacing: .02em; line-height: 1; color: var(--white); }

  .reveal { opacity: .001; transform: translate3d(0, 24px, 0); }
  .reveal.in { opacity: 1; transform: none; transition: opacity 1000ms cubic-bezier(.23,1,.32,1), transform 1300ms cubic-bezier(.23,1,.32,1); }
  .reveal.d1.in { transition-delay: 90ms; } .reveal.d2.in { transition-delay: 190ms; }

  /* CTA — та же белая кнопка, что сейчас */
  .cta {
    pointer-events: auto; align-self: flex-start;
    font: 600 16px/1 var(--f-body); color: var(--ink); background: var(--white);
    border: 0; border-radius: 16px; padding: 20px 40px; cursor: pointer;
    box-shadow: 0 10px 40px rgba(248,248,248,.12);
  }
  .cta:hover { background: #fff; }
  .cta:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

  /* ─── Лента: восемь кадров пути героя, едет по горизонтали ──────────── */
  .strip {
    position: absolute; left: 0; top: 60%;
    display: flex; gap: 22px; align-items: center;
    padding: 34px 6vw;
    transform: translate3d(0, -50%, 0);
    will-change: transform, opacity; pointer-events: none;
    background:
      repeating-linear-gradient(90deg, transparent 0 16px, rgba(248,248,248,.82) 16px 30px, transparent 30px 46px) 0 0 / 46px 14px repeat-x,
      repeating-linear-gradient(90deg, transparent 0 16px, rgba(248,248,248,.82) 16px 30px, transparent 30px 46px) 0 100% / 46px 14px repeat-x,
      linear-gradient(#111018, #111018);
    box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(248,248,248,.06);
  }
  .strip figure {
    margin: 0; position: relative; flex: none;
    width: clamp(240px, 27vw, 420px); aspect-ratio: 16/9;
    border: 1px solid rgba(195,129,244,.35);
    background: var(--grey-d); overflow: hidden;
  }
  .strip figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .strip figcaption {
    position: absolute; left: 10px; bottom: 8px;
    font: 500 11px/1 var(--f-body); letter-spacing: .22em; color: var(--lavender);
    text-shadow: 0 1px 6px rgba(0,0,0,.8); transition: color 300ms ease;
  }
  .strip figure { transition: border-color 300ms ease; }
  /* Кадр под «головкой»: головка идёт по экрану слева направо вместе с прокруткой,
     под ней ровно кадр 13·k — подпись снизу говорит именно о нём */
  .strip figure.cur { border-color: rgba(222,190,255,.95); }
  .strip figure.cur figcaption { color: #fff; }

  /* ─── Под лентой: состав и сцена, на которой стоит лента ────────────
     Заголовок обещает «тот же состав» — строка это показывает: четыре портрета-референса,
     и при каждой смене кадра их обводки по очереди вспыхивают (состав сверен). Справа —
     номер сцены, её название, таймкод и линейка из 14 делений. Едет вместе с лентой
     тем же сдвигом и гаснет тем же fade. Низ ленты считается той же формулой, что и её
     высота: кадр clamp(240px, 27vw, 420px) × 9/16 плюс поля 2×34 px. */
  .reel {
    position: absolute; left: 6vw; right: 6vw;
    top: calc(60% + (clamp(240px, 27vw, 420px) * .5625 + 68px) / 2 + 30px);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 48px;
    pointer-events: none; will-change: transform, opacity; opacity: 0;
  }
  .reel .rl { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; white-space: nowrap;
    font: 600 10.5px/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--lavender); }
  .reel .rl i { font-style: normal; font-weight: 500; font-size: 11.5px; letter-spacing: .06em; text-transform: none; color: rgba(248,248,248,.4); }
  .cast ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
  .cast li { display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-body); color: rgba(248,248,248,.8); white-space: nowrap; }
  .cast li b { width: 34px; height: 34px; border-radius: 50%; flex: none; background: #0B0A12 center / cover no-repeat;
    box-shadow: 0 0 0 1px rgba(195,129,244,.38); }
  .cast.pa li b { animation: castA 1000ms cubic-bezier(.23,1,.32,1) calc(var(--i) * 110ms) both; }
  .cast.pb li b { animation: castB 1000ms cubic-bezier(.23,1,.32,1) calc(var(--i) * 110ms) both; }
  /* две одинаковые анимации: смена имени перезапускает вспышку без принудительной раскладки */
  @keyframes castA { 0%, 100% { box-shadow: 0 0 0 1px rgba(195,129,244,.38); } 22% { box-shadow: 0 0 0 2px rgba(226,196,255,.95), 0 0 16px rgba(195,129,244,.5); } }
  @keyframes castB { 0%, 100% { box-shadow: 0 0 0 1px rgba(195,129,244,.38); } 22% { box-shadow: 0 0 0 2px rgba(226,196,255,.95), 0 0 16px rgba(195,129,244,.5); } }
  .tl { width: clamp(300px, 31vw, 470px); }
  .tl .rl b { font-weight: 600; letter-spacing: .1em; color: #fff; font-variant-numeric: tabular-nums; }
  .tl .rl .of { margin-left: -4px; letter-spacing: .1em; color: rgba(248,248,248,.4); font-variant-numeric: tabular-nums; }
  .tl .rl em { font: 500 14px/1 var(--f-body); font-style: normal; letter-spacing: .01em; text-transform: none; color: rgba(248,248,248,.92); margin-left: 6px; }
  .tl .rl .tc { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
  .ruler { position: relative; height: 13px; display: flex; justify-content: space-between; align-items: flex-end; }
  .ruler::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(248,248,248,.12); }
  .ruler i { position: relative; width: 1px; height: 6px; background: rgba(248,248,248,.3); transition: height 300ms cubic-bezier(.23,1,.32,1), background 300ms ease; }
  .ruler i.on { height: 13px; background: var(--lavender); }
  .ruler u { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lavender); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
  @media (max-width: 900px) {
    .reel { flex-direction: column; gap: 22px; }
    .cast ul { gap: 14px; } .cast li span { display: none; }
    .tl { width: 100%; }
  }

  /* ─── Прожектор над третьим актом ───────────────────────────────────── */
  #spot {
    position: fixed; top: 0; left: -100vw; width: 300vw; height: 100vh; z-index: 3; pointer-events: none;
    /* 🪤 Было .52 — плёнка съедала свет фонаря, и бумага под ним выходила серой (90,87,98)
       вместо листа. Контраст «конус против краёв» держит теперь сам светлый конус
       (#spotlight), а тень по краям только подчёркивает его. */
    background: rgba(10,10,15,.26);
    -webkit-mask-image: conic-gradient(from 180deg at 50% -6vh, transparent 0deg 30deg, rgba(0,0,0,.45) 40deg, #000 54deg, #000 306deg, rgba(0,0,0,.45) 320deg, transparent 330deg 360deg);
            mask-image: conic-gradient(from 180deg at 50% -6vh, transparent 0deg 30deg, rgba(0,0,0,.45) 40deg, #000 54deg, #000 306deg, rgba(0,0,0,.45) 320deg, transparent 330deg 360deg);
    will-change: transform;
  }
  #spot[hidden] { display: none; }

  /* ─── Второй акт: страница на столе и фонарь в руке ──────────────────── */
  /* Подложка — страница в клетку. В темноте её почти не видно; она проявляется там, куда
     светит фонарь. Окно света — div с ГОТОВОЙ радиальной маской, который ездит трансформом,
     а страница внутри едет в противоход: маска не перерисовывается ни разу за кадр. */
  .paperdim, .inkbase { position: absolute; inset: 0; pointer-events: none; }
  .paperdim { opacity: .42; }
  .inkbase  { opacity: .22; }
  .lamp {
    position: absolute; left: 0; top: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px;
    pointer-events: none; overflow: hidden; opacity: .95; will-change: transform;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 30%, rgba(0,0,0,.93) 38%, rgba(0,0,0,.26) 49%, transparent 62%);
            mask-image: radial-gradient(circle at 50% 50%, #000 0 30%, rgba(0,0,0,.93) 38%, rgba(0,0,0,.26) 49%, transparent 62%);
  }
  .lamp canvas { position: absolute; left: 0; top: 0; will-change: transform; }
  .lamp .glow { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255,226,178,.22) 0, rgba(255,210,150,.10) 14%, rgba(200,160,255,.07) 34%, transparent 60%); }
  /* Свет сверху — не только тень по краям, но и сам конус: он и есть «фонарик» */
  #spotlight { position: fixed; top: 0; left: -100vw; width: 300vw; height: 100vh; z-index: 3; pointer-events: none;
    mix-blend-mode: screen; opacity: .9;
    background: linear-gradient(to bottom, rgba(242,236,255,.22), rgba(200,164,255,.10) 38%, rgba(159,53,250,.04) 70%, transparent 88%);
    -webkit-mask-image: conic-gradient(from 180deg at 50% -6vh, #000 0deg 24deg, rgba(0,0,0,.55) 33deg, transparent 47deg, transparent 313deg, rgba(0,0,0,.55) 327deg, #000 336deg 360deg);
            mask-image: conic-gradient(from 180deg at 50% -6vh, #000 0deg 24deg, rgba(0,0,0,.55) 33deg, transparent 47deg, transparent 313deg, rgba(0,0,0,.55) 327deg, #000 336deg 360deg);
    animation: conepulse 8s ease-in-out infinite; will-change: transform; }
  @keyframes conepulse { 0%, 100% { opacity: .88; } 41% { opacity: 1; } 72% { opacity: .82; } }
  #spotlight[hidden] { display: none; }
  #lamphint { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom,0px) + 34px); transform: translateX(-50%);
    z-index: 6; pointer-events: none; opacity: 0; transition: opacity 700ms ease;
    font: 500 10px/1 var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: rgba(248,248,248,.42);
    text-shadow: 0 1px 10px rgba(10,10,15,.9); }
  /* Акценты второго акта — тёмное и белое; фиолет остаётся точкой, а не заливкой */
  .scene[data-id="click"] .h em { color: var(--white); }
  .scene[data-id="click"] .eyebrow { color: rgba(248,248,248,.62); }
  .scene[data-id="click"] .out .lbl { color: rgba(248,248,248,.78); }
  .scene[data-id="click"] .ch { box-shadow: 0 0 0 2px rgba(248,248,248,.35), 0 12px 30px rgba(0,0,0,.55); }
  .scene[data-id="click"] .prompt { background: rgba(10,9,16,.72); border-color: rgba(248,248,248,.16); backdrop-filter: blur(6px); }
  .scene[data-id="click"] .prompt p { color: rgba(248,248,248,.92); }

  /* ─── Один клик: поле → персонажи → сцены ────────────────────────────── */
  .stage3 {
    position: absolute; left: max(28px, 6vw); right: max(28px, 6vw); top: 12%;
    display: grid; grid-template-columns: minmax(300px, 38%) 1fr; gap: 3.4vw; align-items: start;
    pointer-events: none;
  }
  .stage3 .pcol { display: flex; flex-direction: column; gap: 18px; margin-top: 28vh; }
  .stage3 .out { gap: 12px; }
  .stage3 .lbl { font-size: 10px; }
  .stage3 .scenes { gap: 8px; }
  .stage3 .locs { gap: 8px; }
  .prompt {
    background: rgba(12,10,20,.74); border: 1px solid rgba(248,248,248,.12); border-radius: 20px;
    padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45); backdrop-filter: blur(8px);
  }
  /* История — главный текст акта: её видно, её читают. Высота держится, чтобы карточка
     не прыгала при смене мира. */
  .prompt p { margin: 0; font: 300 15.5px/1.72 var(--f-body); color: rgba(248,248,248,.93); min-height: 8.6em; }
  /* На широком мониторе колонка шире и та же история ложится в три-четыре строки —
     иначе под текстом остаётся пустая полоса в две строки */
  @media (min-width: 1700px) { .prompt p { min-height: 6.9em; } }
  /* Счётчик: длина истории названа цифрами, иначе «не ограничено» — пустые слова */
  .pstat { display: flex; align-items: center; gap: 10px; font: 500 11.5px/1 var(--f-body); letter-spacing: .05em; color: rgba(248,248,248,.5); }
  .pstat::before { content: ""; width: 16px; height: 1px; background: rgba(248,248,248,.3); flex: none; }
  .prompt p::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--lavender); animation: caret 1s steps(1) infinite; }
  .prompt.done p::after { display: none; }
  @keyframes caret { 50% { opacity: 0; } }
  .gen {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 9px;
    font: 600 14px/1 var(--f-body); color: #fff;
    background: linear-gradient(135deg, #A63FFF, #7A22E0 52%, #4B12B2);
    border: 0; border-radius: 6px; padding: 14px 22px 14px 18px;
    box-shadow: 0 10px 26px rgba(122,34,224,.4), inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform 220ms cubic-bezier(.23,1,.32,1), box-shadow 220ms ease, filter 220ms ease;
  }
  /* Знак Insaga вместо ✦: звёздочка-искорка — штамп «сделано ИИ». Средний штрих вырезан маской
     с зазором, как в логотипе его отделяет тень, — иначе на 16 px три штриха сливаются в пятно. */
  .gen .gmark { width: 16px; height: 16px; display: block; flex: none; }
  .gen:hover { transform: translateY(-1px); filter: saturate(1.1); box-shadow: 0 14px 32px rgba(122,34,224,.52), inset 0 1px 0 rgba(255,255,255,.3); }
  .gen:active { transform: scale(.985); }
  .gen.pulse { transform: scale(.96); box-shadow: 0 0 0 9px rgba(159,53,250,.16), inset 0 1px 0 rgba(255,255,255,.22); }
  .out { display: flex; flex-direction: column; gap: 18px; }
  .out .lbl { display: flex; align-items: center; gap: 11px; font: 600 11px/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--lavender); opacity: 0; transition: opacity 500ms ease; }
  .out .lbl.in { opacity: 1; }
  .out .lbl i { font-style: normal; letter-spacing: .08em; color: rgba(248,248,248,.3); }
  .out .lbl::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(248,248,248,.14), transparent); }
  .chars { display: flex; gap: 14px; }
  .ch { width: clamp(64px, 6.6vw, 96px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--grey-d); transform: scale(0); box-shadow: 0 0 0 2px rgba(195,129,244,.35), 0 12px 30px rgba(0,0,0,.5); }
  .ch.in { transform: scale(1); transition: transform 650ms cubic-bezier(.34,1.56,.64,1); }
  .ch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
  .scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sc { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--grey-d); opacity: 0; transform: translate3d(0, 16px, 0) scale(.96); }
  .sc.in { opacity: 1; transform: none; transition: opacity 500ms ease, transform 650ms cubic-bezier(.23,1,.32,1); }
  .sc img { width: 100%; height: 100%; object-fit: cover; display: block; }
  @media (max-width: 900px) { .stage3 { grid-template-columns: 1fr; top: 30%; } .scenes { grid-template-columns: repeat(2, 1fr); } }
  /* Низкий экран (1280×800 и ниже): левой колонке второго акта не хватало высоты — поле истории,
     поставленное под подзаголовок (fitPcol), выталкивало переключатель стилей за нижнюю кромку на
     23–50 px. Компактнее поле и зазоры; строки переключателя (38 px) не трогаем — по ним ездит метка. */
  @media (max-height: 820px) and (min-width: 901px) {
    .prompt { padding: 18px 22px 16px; gap: 12px; }
    .prompt p { font-size: 14.5px; line-height: 1.62; min-height: 7.4em; }
    .stage3 .pcol { gap: 12px; }
    .picker { gap: 8px; }
  }

  /* ─── Река: светлый акт ─────────────────────────────────────────────── */
  .scene--light .eyebrow { color: var(--violet); }
  .scene--light .h { color: var(--ink); }
  .scene--light .lede { color: #4A4655; }
  .layer--multiply { mix-blend-mode: multiply; opacity: .55; }
  /* Низ зала уходит в темноту: срез кресел растворяется, а не режется */
  .vignette { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; pointer-events: none; background: linear-gradient(rgba(10,10,15,0), rgba(10,10,15,.92) 70%, var(--ink)); }
  /* Подсветка у самого пола — как в зале, где горят лампы под крайними креслами. Идёт ПОВЕРХ
     виньетки, иначе она её съедает, и держит тёплый тон против холодного зала. */
  .footlight { position: absolute; left: 0; right: 0; bottom: 0; height: 30vh; pointer-events: none; mix-blend-mode: screen;
    background:
      radial-gradient(ellipse 26% 86% at 9% 116%, rgba(255,206,142,.20), transparent 68%),
      radial-gradient(ellipse 26% 86% at 91% 116%, rgba(255,206,142,.20), transparent 68%),
      radial-gradient(ellipse 54% 74% at 50% 124%, rgba(196,158,255,.16), transparent 70%);
    animation: footpulse 13s ease-in-out infinite; }
  @keyframes footpulse { 0%, 100% { opacity: .9; } 46% { opacity: 1; } 73% { opacity: .84; } }
  .dusk { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(rgba(10,10,15,0) 0%, rgba(10,10,15,.85) 55%, var(--ink) 100%); }
  .layer--drift > img { animation: drift 7s ease-in-out infinite alternate; }
  .layer--drift2 > img { animation: drift 9s ease-in-out infinite alternate-reverse; }
  /* Волны врозь и качка лодки */
  .layer--waveR  > img { animation: waveR 11s ease-in-out infinite alternate; }
  .layer--waveL  > img { animation: waveL 8.5s ease-in-out infinite alternate; }
  .layer--waveR2 > img { animation: waveR 7.5s ease-in-out infinite alternate-reverse; }
  .layer--rock   > img { animation: rock 3.4s ease-in-out infinite alternate; transform-origin: 43% 80%; } /* ось — центр лодки у ватерлинии: вёсла теперь во всю ширину, качка не должна водить круги на воде */
  @keyframes waveR { from { transform: translate3d(-2.2%, 0, 0); } to { transform: translate3d(2.2%, 0, 0); } }
  @keyframes waveL { from { transform: translate3d(2.6%, 4px, 0); } to { transform: translate3d(-2.6%, -4px, 0); } }
  @keyframes rock  { 0% { transform: translate3d(-3px, 1px, 0) rotate(-.75deg); } 50% { transform: translate3d(0, -5px, 0) rotate(.15deg); } 100% { transform: translate3d(3px, 2px, 0) rotate(.8deg); } }
  .layer--cloud { opacity: 0; }
  /* ─── Озвучка: карточка как в продукте ───────────────────────────────
     Тёмная плашка, белая круглая кнопка, серая волна с закруглёнными столбиками,
     справа хронометраж и скачивание. Сыгранная часть волны становится белой, по клику
     на волну можно перемотать. Звучит настоящая реплика из assets. */
  .voice { display: flex; flex-direction: column; gap: 11px; padding: 17px 19px 15px;
    background: #131318; border: 1px solid rgba(248,248,248,.085); border-radius: 20px;
    box-shadow: 0 18px 44px rgba(0,0,0,.4);
    opacity: 0; transform: translate3d(0, 12px, 0); position: relative; pointer-events: auto; }
  .voice.in { opacity: 1; transform: none; transition: opacity 500ms ease, transform 600ms cubic-bezier(.23,1,.32,1); }
  .vtop { font: 500 14px/1.2 var(--f-body); color: var(--white); letter-spacing: -.01em; }
  .vrow { display: flex; align-items: center; gap: 16px; }
  .voice .play { width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 0; flex: none;
    display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35);
    transition: transform 240ms cubic-bezier(.34,1.56,.64,1), box-shadow 240ms ease; }
  .voice .play:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(0,0,0,.45); }
  .voice .play::after { content: ""; border-left: 13px solid #16141d; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
  .voice.playing .play::after { border: 0; width: 13px; height: 14px; margin: 0;
    background: linear-gradient(90deg, #16141d 0 4.5px, transparent 4.5px 8.5px, #16141d 8.5px 13px); }
  .voice canvas { flex: 1 1 auto; height: 46px; width: 100%; min-width: 0; cursor: pointer; }
  .vtime { font: 500 13px/1 var(--f-body); color: rgba(248,248,248,.55); font-variant-numeric: tabular-nums; flex: none; }
  .vdl { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
    border: 1px solid rgba(248,248,248,.16); cursor: pointer; transition: border-color 240ms ease, background 240ms ease; }
  .vdl:hover { border-color: rgba(248,248,248,.4); background: rgba(248,248,248,.06); }
  .vdl svg { width: 16px; height: 16px; display: block; }
  .vdl svg path { stroke: rgba(248,248,248,.62); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
  .voice.lit .vdl svg path { stroke: rgba(51,41,79,.62); }
  .vfoot { font: 500 12px/1 var(--f-body); color: rgba(248,248,248,.4); letter-spacing: .01em; }
  .vfoot b { font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(248,248,248,.72); font-size: 11px; }
  /* Под фонарём плашка тоже становится бумагой */
  .voice.lit { box-shadow: 0 20px 50px rgba(30,20,60,.24); }
  .voice.lit { border-color: rgba(46,36,72,.2); }
  .voice.lit .play { background: #2A2340; box-shadow: 0 6px 18px rgba(40,28,80,.3); }
  .voice.lit .play::after { border-left-color: #EFEBF6; }
  .voice.lit.playing .play::after { background: linear-gradient(90deg, #EFEBF6 0 4.5px, transparent 4.5px 8.5px, #EFEBF6 8.5px 13px); }
  .voice.lit .vdl { border-color: rgba(51,41,79,.3); }
  /* Плашка — ПРЕДМЕТ на странице: свет ложится на неё целиком, иначе половина волны
     остаётся тёмной на светлом листе. Пятно от фонаря идёт вторым слоем — бликом. */
  .voice::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
    background: #D2CDDB; opacity: var(--lit, 0); transition: opacity 300ms ease; }
  .voice::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
    background: radial-gradient(circle 300px at var(--lx, -900px) var(--ly, -900px), rgba(255,252,246,.8), rgba(255,250,238,0) 74%);
    opacity: calc(var(--lit, 0) * .55); transition: opacity 300ms ease; mix-blend-mode: soft-light; }
  .voice > * { position: relative; z-index: 1; }

  .locs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  /* Варианты: четыре мира в стопке, виден один; смена — шторка сверху вниз со сдвигом по плиткам,
     старый кадр остаётся под ней, пока новый не закроет его целиком */
  /* Смена мира — кроссфейд с лёгким наездом. Была шторка clip-path плюс бегущая линия: дорого
     (clip-path гоняет растеризацию) и читалось странно. Здесь двигаются только opacity
     и transform, уходящий кадр лежит снизу — щели между ними нет ни на кадр. */
  .var { position: relative; --d: 0ms; }
  .var img { position: absolute; inset: 0; opacity: 0; transform: scale(1.035); will-change: opacity, transform; }
  .var img.was { opacity: 1; z-index: 1; transform: none; }
  .var img.on { opacity: 1; z-index: 2; transform: none;
    transition: opacity 320ms ease var(--d), transform 620ms cubic-bezier(.16,1,.3,1) var(--d); }
  /* Чип стиля мира в поле ввода */
  .wchip { display: inline-flex; align-items: center; gap: 9px; align-self: center; white-space: nowrap;
    font: 600 10.5px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(248,248,248,.84);
    background: rgba(248,248,248,.05); border: 1px solid rgba(248,248,248,.16); border-radius: 5px; padding: 11px 14px;
    transition: transform 320ms cubic-bezier(.34,1.56,.64,1), border-color 320ms ease, background 320ms ease, color 320ms ease; }
  .wchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lavender); box-shadow: 0 0 9px var(--lavender); flex: none; }
  .wchip.pop { transform: translateY(-1px) scale(1.03); color: #fff; border-color: rgba(195,129,244,.5); background: rgba(159,53,250,.15); }

  /* ─── Свет переворачивает буквы ──────────────────────────────────────
     Бумага лежит ПОД текстом (окно фонаря — слой сцены, текст выше), поэтому слову
     достаточно сменить цвет: белая надпись на тёмном становится чернилами на освещённой
     странице. Перекрашиваются отдельные СЛОВА, а не блоки, — свет идёт по строке, и в
     каждый момент каждое слово либо белое, либо чёрное, но никогда не серое посередине.
     Проверка попадания — расстояние до центра пятна, позиции слов сняты один раз. */
  .w { font-style: normal; }
  /* Пока слово ещё белое, а бумага под ним уже светлеет, его держит тёмный ореол —
     иначе на кромке пятна слово пропадает на полсекунды */
  .scene[data-id="click"] .w { text-shadow: 0 0 9px rgba(10,10,15,.6); transition: color 300ms cubic-bezier(.4,0,.2,1), text-shadow 300ms ease; }
  .scene[data-id="click"] .w.lit { color: #241C3C; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
  .scene[data-id="click"] .lede .w.lit { color: #453C5E; }
  .scene[data-id="click"] .eyebrow .w.lit,
  .scene[data-id="click"] .plbl .w.lit { color: #5B4A82; }
  .scene[data-id="click"] .h em .w.lit { color: #4B2088; }
  .scene[data-id="click"] .pstat .w.lit { color: #5A5270; }
  .scene[data-id="click"] .pk-rows span .w.lit { color: #4E4668; }
  .scene[data-id="click"] .out .lbl .w.lit { color: #5B3A8C; }
  .scene[data-id="click"] .out .lbl i .w.lit { color: #7C6DA4; }
  /* Карточка истории — отдельный предмет на странице: у неё своя непрозрачная подложка,
     поэтому бумага сквозь неё не светит. Лужу света кладём прямо на карточку, и она едет
     за фонарём: видно, как луч переползает по листу. */
  .prompt { position: relative; }
  /* Плашка — ПРЕДМЕТ на странице: свет ложится на неё целиком, иначе половина волны
     остаётся тёмной на светлом листе. Пятно от фонаря идёт вторым слоем — бликом. */
  .prompt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
    background: #D2CDDB; opacity: var(--lit, 0); transition: opacity 300ms ease; }
  .prompt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
    background: radial-gradient(circle 300px at var(--lx, -900px) var(--ly, -900px), rgba(255,252,246,.8), rgba(255,250,238,0) 74%);
    opacity: calc(var(--lit, 0) * .55); transition: opacity 300ms ease; mix-blend-mode: soft-light; }
  .prompt > * { position: relative; z-index: 1; }
  .prompt.lit { border-color: rgba(46,36,72,.2); box-shadow: 0 24px 60px rgba(30,20,60,.26); }
  .prompt p, .pstat, .vtop, .vfoot, .vtime, .vfoot b { transition: color 300ms ease; }
  /* 🪤 Вес: `.scene[data-id=click] .prompt p` (0,3,1) бьёт `.prompt.lit p` (0,2,1) — без
     префикса история под светом НЕ чернела, оставалась белой на светлой плашке. */
  .scene[data-id="click"] .prompt.lit p { color: #231C3A; }
  .scene[data-id="click"] .prompt.lit .pstat { color: rgba(35,28,58,.62); }
  .scene[data-id="click"] .prompt.lit .wchip { color: #33294F; border-color: rgba(51,41,79,.28); background: rgba(51,41,79,.07); }
  .scene[data-id="click"] .prompt.lit .wchip::before { background: #6C34C0; box-shadow: 0 0 8px rgba(108,52,192,.45); }
  .scene[data-id="click"] .voice.lit .vtop { color: #231C3A; }
  .scene[data-id="click"] .voice.lit .vfoot { color: rgba(35,28,58,.58); }
  .scene[data-id="click"] .voice.lit .vfoot b { color: rgba(35,28,58,.8); }
  .scene[data-id="click"] .voice.lit .vtime { color: rgba(35,28,58,.66); }
  .prompt.lit .pstat::before { background: rgba(58,47,88,.42); }
  .prompt, .prompt .wchip { transition: border-color 260ms ease, box-shadow 260ms ease, color 260ms ease, background 260ms ease; }

  /* ─── Титр жанра: на каждой смене мира, как карточка главы в фильме ───
     Живёт В КОЛОНКЕ с персонажами, локациями и сценами — там, где меняется содержимое,
     и не занимает центр страницы. Переключатель слева говорит, ГДЕ мы; титр — что мы
     ПЕРЕЕХАЛИ. Без него смена четырёх миров читалась как «картинки почему-то поменялись». */
  .out { position: relative; }
  .chapter { position: absolute; inset: 0; z-index: 7; pointer-events: none; display: flex; align-items: center; justify-content: center; }
  .chapter .ci { position: relative; text-align: center; opacity: 0; padding: 0 24px; }
  .chapter.on .ci { animation: chap 2100ms cubic-bezier(.23,1,.32,1) 1; }
  @keyframes chap {
    0%   { opacity: 0; transform: translate3d(0, 16px, 0); }
    13%  { opacity: 1; transform: none; }
    64%  { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translate3d(0, -11px, 0); }
  }
  /* Мягкое затемнение под титром: он ложится на кадры, и без него номер и эпоха тонут */
  .chapter .ci::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 190%; height: 340px; border-radius: 50%; z-index: -1;
    background: radial-gradient(ellipse at center, rgba(9,8,14,.9), rgba(9,8,14,.6) 42%, rgba(9,8,14,0) 72%); }
  .chapter .n { display: inline-flex; align-items: center; gap: 12px; font: 600 10.5px/1 var(--f-body);
    letter-spacing: .38em; color: rgba(248,248,248,.62); }
  .chapter .n::before, .chapter .n::after { content: ""; width: 22px; height: 1px; background: rgba(248,248,248,.28); }
  .chapter .g { margin-top: 14px; font-family: var(--f-display); font-weight: 700; letter-spacing: -.022em;
    font-size: clamp(24px, 2.7vw, 42px); line-height: 1.05; color: #fff;
    text-shadow: 0 2px 44px rgba(9,8,14,.95), 0 1px 4px rgba(9,8,14,.85); }
  .chapter .e { margin-top: 10px; font: 400 13px/1 var(--f-body); letter-spacing: .05em; color: rgba(248,248,248,.72);
    text-shadow: 0 1px 12px rgba(9,8,14,.9); }
  .chapter .r { width: 74px; height: 1px; margin: 18px auto 0; transform: scaleX(0); transform-origin: 50% 50%;
    background: linear-gradient(90deg, transparent, rgba(248,248,248,.55), transparent); }
  .chapter.on .r { animation: chaprule 2100ms cubic-bezier(.23,1,.32,1) 1; }
  @keyframes chaprule { 0% { transform: scaleX(0); } 26% { transform: scaleX(1); } 70% { transform: scaleX(1); } 100% { transform: scaleX(.2); opacity: 0; } }

  /* ─── Переключатель стиля и эпохи: при прокрутке видно, куда мы переезжаем ──── */
  .picker { display: flex; flex-direction: column; gap: 11px; }
  .picker .plbl { display: flex; align-items: baseline; gap: 10px; font: 600 10px/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: rgba(248,248,248,.42); }
  .picker .plbl u { text-decoration: none; letter-spacing: .12em; color: rgba(248,248,248,.8); font-variant-numeric: tabular-nums; }
  .picker .prog { height: 1px; background: rgba(248,248,248,.1); overflow: hidden; }
  .picker .prog i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(159,53,250,.45), var(--lavender)); }
  .pk-rows { position: relative; padding-left: 18px; }
  .pk-rows::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(248,248,248,.1); }
  .pk-rows .mark { position: absolute; left: -1px; top: 0; width: 3px; height: 30px; border-radius: 2px;
    background: var(--lavender); box-shadow: 0 0 14px rgba(195,129,244,.85);
    transform: translateY(4px); transition: transform 560ms cubic-bezier(.23,1,.32,1); }
  .pk-rows ol { list-style: none; margin: 0; padding: 0; }
  .pk-rows li { height: 38px; display: flex; flex-direction: column; justify-content: center; gap: 3px;
    opacity: .4; transition: opacity 420ms ease, transform 420ms cubic-bezier(.23,1,.32,1); }
  .pk-rows li b { font: 600 13px/1.1 var(--f-body); color: var(--white); letter-spacing: -.01em; transition: font-size 360ms cubic-bezier(.23,1,.32,1); }
  .pk-rows li.on b { font-size: 15.5px; }
  .pk-rows li span { font: 400 11px/1 var(--f-body); color: rgba(248,248,248,.55); }
  .pk-rows li.on { opacity: 1; transform: translateX(3px); }
  .prompt .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  /* Луч проектора: конус света от экрана вниз по рядам, живёт внутри слоя зала */
  .beam { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .85;
    background: linear-gradient(to bottom, rgba(var(--lc, 195,129,244), calc(.10 + var(--lb, .4) * .26)),
                                           rgba(var(--lc, 159,53,250), calc(.03 + var(--lb, .4) * .09)) 55%,
                                           rgba(159,53,250,0) 92%);
    filter: blur(14px); animation: beam 7s ease-in-out infinite; }
  @keyframes beam { 0%, 100% { opacity: .8; } 17% { opacity: .95; } 29% { opacity: .68; } 53% { opacity: .9; } 71% { opacity: .74; } }
  /* Свет проектора: мягкий конус от экрана на ряды, чуть мерцает как плёнка */
  .spill { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .55;
    background: radial-gradient(ellipse 40% 55% at var(--sx, 50%) var(--sy, 45%),
                rgba(var(--lc, 195,129,244), calc(.14 + var(--lb, .4) * .36)),
                rgba(var(--lc, 159,53,250), calc(.05 + var(--lb, .4) * .16)) 45%, transparent 72%);
    animation: spill 5.5s ease-in-out infinite; }
  @keyframes spill { 0%, 100% { opacity: .5; } 13% { opacity: .62; } 22% { opacity: .46; } 41% { opacity: .6; } 57% { opacity: .5; } 73% { opacity: .64; } 86% { opacity: .48; } }
  /* Дежурный свет кинозала: лампы по кромке ступеней с обеих сторон прохода. Живут в слое
     фона, поэтому ближние ряды честно их загораживают, а в проходе свет доходит до зрителя. */
  .aisle { position: absolute; left: 0; top: 0; pointer-events: none; mix-blend-mode: screen;
    animation: aisleflick 11s ease-in-out infinite; }
  @keyframes aisleflick { 0%, 100% { opacity: .94; } 37% { opacity: 1; } 68% { opacity: .88; } }

  /* Свет в зале гаснет перед уходом */
  .dim { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: var(--ink); }
  .layer--bob   > img { animation: bob 3.2s ease-in-out infinite alternate; transform-origin: 50% 100%; }
  @keyframes drift { from { transform: translate3d(-1.2%, 0, 0); } to { transform: translate3d(1.2%, 0, 0); } }
  @keyframes bob   { from { transform: translate3d(0, 0, 0) rotate(-.6deg); } to { transform: translate3d(0, -6px, 0) rotate(.6deg); } }
  body.is-light #hdr .brand b .in { color: var(--ink); }
  body.is-light #hdr button, body.is-light #hdr .pill { color: #3A3644; border-color: rgba(10,10,15,.16); }
  body.is-light #hint { color: rgba(10,10,15,.45); }
  body.is-light #sb { background: rgba(10,10,15,.14); }
  #hdr .brand b .in { transition: color 500ms ease; }

  /* Всплывающие картинки по ходу курсора (след со старой страницы, только из воды) */
  .trail { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  /* Кадр всплывает из воды: поднимается, доворачивается и мягко гаснет вверх. Узлы из пула,
     поэтому в покое их десять и все прозрачные — ни создания, ни удаления в кадре. */
  .stamp {
    position: absolute; width: clamp(200px, 19vw, 340px); aspect-ratio: 16/9;
    margin: -5.5% 0 0 -9.5%; border: 5px solid var(--white); border-radius: 4px; overflow: hidden;
    box-shadow: 0 18px 44px rgba(54,6,167,.26), 0 2px 6px rgba(10,10,15,.2);
    transform: translate3d(0, 34px, 0) scale(.84) rotate(calc(var(--rot, 0deg) * .4)); opacity: 0;
    transition: transform 760ms cubic-bezier(.16,1,.3,1), opacity 420ms ease;
    will-change: transform, opacity; backface-visibility: hidden;
  }
  .stamp.in { transform: translate3d(0, 0, 0) scale(1) rotate(var(--rot, 0deg)); opacity: 1; }
  .stamp.out { transform: translate3d(0, -20px, 0) scale(.985) rotate(var(--rot, 0deg)); opacity: 0;
    transition: transform 1100ms cubic-bezier(.4,0,.5,1), opacity 820ms cubic-bezier(.4,0,.6,1); }
  .stamp img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Мерцание экрана на выходе из зала */
  .screen.flicker { animation: flick 1100ms steps(1) 1; }
  @keyframes flick { 0% { opacity: 1; } 12% { opacity: .25; } 20% { opacity: 1; } 34% { opacity: .5; } 40% { opacity: 1; } 62% { opacity: .35; } 70% { opacity: 1; } 100% { opacity: 1; } }

  /* Звук на экране */
  .snd { position: absolute; right: 8px; bottom: 7px; z-index: 4; pointer-events: auto; cursor: pointer;
    font: 600 9px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--white);
    background: rgba(10,10,15,.55); border: 1px solid rgba(248,248,248,.25); border-radius: 999px; padding: 6px 10px; backdrop-filter: blur(6px); }
  .snd:hover { background: rgba(159,53,250,.6); }

  /* Голоса персонажей: клик по портрету — реплика; кольцо, пока звучит */
  .ch { cursor: pointer; position: relative; }
  /* Кнопка «послушать реплику» — ровно в центре портрета, приглушена в покое */
  .ch::after { content: "▶"; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
    border-radius: 50%; background: rgba(10,10,15,.55); border: 1px solid rgba(248,248,248,.45); color: #fff; font-size: 11px; line-height: 1;
    display: grid; place-items: center; padding-left: 2px; opacity: .58; backdrop-filter: blur(3px);
    transition: opacity 220ms ease, transform 260ms cubic-bezier(.34,1.56,.64,1); }
  .ch:hover::after { opacity: 1; transform: scale(1.1); background: rgba(159,53,250,.75); border-color: rgba(248,248,248,.7); }
  .ch.mute::after { display: none; }
  .ch.playing::after { opacity: 0; }
  .ch.playing { box-shadow: 0 0 0 3px var(--lavender), 0 0 30px rgba(195,129,244,.75); }

  /* Тучи темнеют */
  .cloudtint { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(rgba(42,33,64,.0), rgba(42,33,64,.75) 40%, rgba(20,15,31,.85)); mix-blend-mode: multiply; }
  .layer--cloud > img { filter: brightness(.82) saturate(.9); }
  .spray { position: absolute; inset: 0; pointer-events: none; }

  /* ─── Последняя страница: полный стек + стена видеостоков ────────────── */
  .pier-col { position: absolute; left: max(28px, 6vw); right: max(28px, 6vw); top: 0; display: flex; flex-direction: column; gap: 34px; pointer-events: none; }
  .stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stack figure { margin: 0; position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--grey-d); border: 1px solid rgba(195,129,244,.22); pointer-events: auto; cursor: zoom-in; }
  .stack img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; transition: transform 600ms cubic-bezier(.23,1,.32,1); }
  .stack figure:hover img { transform: scale(1.04); }
  .stack figcaption { position: absolute; left: 12px; bottom: 10px; font: 600 11px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,.9); }
  /* Стена клипов — «одна большая плёнка», как секция видеостоков на сайте: лента с перфорацией,
     слева титульный кадр, дальше — бегущие кадры. Две ленты, едут в разные стороны. */
  .band { position: relative; height: clamp(230px, 30vh, 300px); border-radius: 6px; overflow: hidden; pointer-events: auto;
    background: linear-gradient(180deg, #100e16, #0b0a10); box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(248,248,248,.06); }
  .band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; z-index: 2; opacity: .85; border-radius: 3px;
    background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(248,248,248,.86) 18px 30px, transparent 30px 40px); }
  .band::before { top: 9px; } .band::after { bottom: 9px; }
  .band-inner { position: absolute; top: 40px; bottom: 40px; left: 0; right: 0; display: flex; align-items: stretch; gap: 10px; }
  .cell-title { flex: 0 0 clamp(200px, 24%, 320px); margin-left: 14px; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
    border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(248,248,248,.14); background: rgba(248,248,248,.02); }
  .cell-title .eyebrow { font-size: 10px; }
  .cell-title h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.3vw, 34px); line-height: 1; letter-spacing: -.02em; color: var(--white); }
  .cell-title p { margin: 0; font: 300 12.5px/1.5 var(--f-body); color: rgba(248,248,248,.55); }
  .cell-clips { position: relative; flex: 1 1 auto; overflow: hidden; margin-right: 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
  .cliprow { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: stretch; gap: 10px; will-change: transform; }
  .clip { position: relative; flex: none; height: 100%; aspect-ratio: 16/9; margin: 0; border-radius: 4px; overflow: hidden; background: #111018; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(248,248,248,.1); }
  .clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .clip figcaption { position: absolute; left: 10px; bottom: 8px; font: 600 10px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: rgba(248,248,248,.9); text-shadow: 0 1px 6px rgba(0,0,0,.9); }
  .clip .dur { position: absolute; right: 8px; bottom: 8px; font: 600 9px/1 var(--f-body); color: #fff; background: rgba(0,0,0,.6); padding: 3px 6px; border-radius: 4px; }
  .pier-col .cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
  @media (max-width: 900px) { .stack { grid-template-columns: repeat(2, 1fr); } .cell-title { display: none; } }

  /* ─── Подвал: правила, условия, соцсети — состав и ссылки 1:1 с LandingFooter.tsx оригинала ── */
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .site-foot { pointer-events: auto; margin-top: clamp(64px, 11vh, 128px); padding: 44px 0 30px; border-top: 1px solid rgba(248,248,248,.1); }
  .site-foot .cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 40px; margin-bottom: 44px; }
  .site-foot h3 { margin: 0 0 16px; font: 600 13px/1.2 var(--f-body); letter-spacing: .01em; color: var(--white); }
  .site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .site-foot a { display: inline-flex; align-items: center; gap: 8px; font: 400 14px/1.3 var(--f-body); color: rgba(248,248,248,.5);
    text-decoration: none; transition: color 200ms ease; }
  .site-foot a:hover { color: var(--white); }
  .site-foot a:focus-visible { color: var(--white); outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
  .site-foot svg { width: 16px; height: 16px; flex: none; fill: currentColor; transition: color 200ms ease; }
  .site-foot .x svg { width: 14px; height: 14px; }
  .site-foot .dc:hover svg { color: #5865F2; } .site-foot .rd:hover svg { color: #FF4500; } .site-foot .tg:hover svg { color: #26A5E4; }
  /* иконки — ровно по центру строки: у оригинала justify-between уводил их влево при длинной правой колонке */
  .site-foot .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px 32px;
    padding-top: 28px; border-top: 1px solid rgba(248,248,248,.1); }
  .site-foot .mark { justify-self: start; }
  .site-foot .mark { gap: 12px; color: var(--white); }
  .site-foot .mark img { width: 32px; height: 32px; }
  .site-foot .mark b { font-family: var(--f-mark); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
  .site-foot .mark b .saga { color: var(--lavender); }
  .site-foot .soc { display: flex; align-items: center; gap: 16px; }
  .site-foot .soc a { color: rgba(248,248,248,.3); }
  .site-foot .soc svg { width: 20px; height: 20px; } .site-foot .soc .x svg { width: 16px; height: 16px; }
  .site-foot .soc .x:hover { color: var(--white); }
  .site-foot .legal { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; font: 400 12px/1.45 var(--f-body); color: rgba(248,248,248,.4); }
  .site-foot .legal small { font-size: 12px; color: rgba(248,248,248,.25); }
  .site-foot .legal a { font-size: 12px; color: rgba(248,248,248,.3); }
  .site-foot .legal a:hover { color: rgba(248,248,248,.55); }
  @media (max-width: 900px) {
    .site-foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-foot .bar { grid-template-columns: 1fr; justify-items: center; } .site-foot .mark { justify-self: center; } .site-foot .legal { align-items: center; text-align: center; }
  }

  /* ─── Причал: веер кадров ───────────────────────────────────────────── */
  .fan { position: absolute; right: 4vw; top: 50%; width: min(46vw, 640px); aspect-ratio: 16/9; pointer-events: none; transform: translateY(-50%); }
  .fan img {
    position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 16/9; object-fit: cover;
    border: 3px solid var(--white); border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
    transform: translate(-50%, -50%) rotate(calc((var(--i) - 3.5) * 9deg)) translateY(-62%);
    transform-origin: 50% 240%;
    animation: fanfloat 6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.75s);
  }
  @keyframes fanfloat { from { margin-top: 0; } to { margin-top: -10px; } }
  @media (max-width: 900px) { .fan { display: none; } }

  /* ─── Рюшки: три мазка логотипа, поднимаются снизу ──────────────────── */
  #ribbons { position: absolute; left: 0; right: 0; bottom: 0; height: 100vh; pointer-events: none; overflow: hidden; z-index: 5; }
  #ribbons canvas { position: absolute; left: 50%; bottom: -14%; transform: translateX(-50%); will-change: transform; }
  /* Задняя стена растворяется к нижнему краю, чтобы стык с «полом»-подложкой не читался линией */
  .layer--seam > img, .layer--seam > canvas { -webkit-mask-image: linear-gradient(#000 84%, transparent 100%); mask-image: linear-gradient(#000 84%, transparent 100%); }
  .layer--feather > img, .layer--feather > canvas { -webkit-mask-image: linear-gradient(#000 74%, transparent 97%); mask-image: linear-gradient(#000 74%, transparent 97%); }
  .layer--featherB > img { -webkit-mask-image: linear-gradient(#000 80%, transparent 98%); mask-image: linear-gradient(#000 80%, transparent 98%); }
  .layer--featherTop > img { -webkit-mask-image: linear-gradient(transparent 0, #000 18%); mask-image: linear-gradient(transparent 0, #000 18%); }

  /* ─── Скроллбар ─────────────────────────────────────────────────────── */
  #sb { position: fixed; top: calc(env(safe-area-inset-top,0px) + 18px); bottom: calc(env(safe-area-inset-bottom,0px) + 18px); right: 14px; width: 2px; background: rgba(248,248,248,.12); z-index: 30; }
  #sbThumb { position: absolute; left: -1px; width: 4px; background: var(--lavender); will-change: transform; }

  #hint { position: fixed; right: 34px; bottom: calc(env(safe-area-inset-bottom,0px) + 22px); z-index: 30; text-align: center; font: 500 10px/1 var(--f-body); letter-spacing: .28em; text-transform: uppercase; color: rgba(248,248,248,.4); transition: opacity 600ms ease; }
  #hint::after { content: ""; display: block; width: 1px; height: 22px; margin: 10px auto 0; background: rgba(248,248,248,.3); }

  /* Частицы — как на текущем лендинге, но дешёвые: один canvas */
  #dust { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .9; }

  @media (prefers-reduced-motion: reduce) { .reveal, .reveal.in { transition-duration: 1ms; } }

  @property --ha { syntax: "<number>"; inherits: false; initial-value: .5; }
  /* ═══ v31 (круги 25–26): вид зала, кнопки, новые блоки. Всё — только при look != v0 ═══════════ */
  /* Круг 32: кнопки-«билеты». Владелец: скругление 6 — «тупые углы», пилюля — «айшность», светлый градиент с бликом —
     «выглядят как нейро своп». Основное действие — билет в наш зал: полукруглые вырезы по бокам и отрывной корешок
     со стрелкой за пунктиром. Форма одна на все главные кнопки (первый экран, шапка, финал). */
  /* Круг 33 (25.09): билет НАДРЫВАЕТСЯ по пунктиру. Владелец: «при наведении должно надрываться там, где пунктир, а не
     просто стрелочка показывалась; и чтобы не дёргался резко». Половинки — два куска бумаги: у каждой свой вырез сбоку
     и половинки дырочек перфорации по линии отрыва (вместе дырочки и дают пунктир). Корешок поворачивается вокруг
     нижнего угла у перфорации: сверху открывается щель с рваным краем, снизу бумага ещё держится.
     🪤 Кнопка больше не приподнимается на 1 px и не вспыхивает белым: сдвиг перерастрировал текст — это и был «дёрг». */
  .btn-ink, html[data-look]:not([data-look="v0"]) .cta, html[data-look]:not([data-look="v0"]) #hdr .hcta { --tk: #F3EFFA; --n: 7px; --hw: 1.4px; --hh: 2.2px; --hp: 7px; --ang: 6deg;
    position: relative; display: inline-flex; align-items: stretch; height: 52px; padding: 0; border: 0; border-radius: 0; background: none;
    color: #14121A; text-decoration: none; cursor: pointer; pointer-events: auto; font: 600 15px/1 var(--f-body); letter-spacing: .01em; -webkit-tap-highlight-color: transparent; }
  /* Круг 34: дырочки перфорации в покое — мягко-серые (как прежний пунктир): они не прозрачные, а полупрозрачные прямо в маске
     (--ha = .5); при надрыве --ha уходит в 0 и край становится рваным. 🪤 Было: серость давала подложка ::before на весь билет —
     прямоугольник с острыми углами; при наведении корешок уходил раньше, чем она гасла, и белый угол «бросался» (владелец). */
  .btn-ink :is(.t, .stub), html[data-look]:not([data-look="v0"]) .cta :is(.t, .stub), html[data-look]:not([data-look="v0"]) #hdr .hcta :is(.t, .stub) { --ha: .5; display: inline-flex; align-items: center; background: var(--tk); }
  .btn-ink .t, html[data-look]:not([data-look="v0"]) .cta .t, html[data-look]:not([data-look="v0"]) #hdr .hcta .t { padding: 0 18px 0 24px; white-space: nowrap; border-radius: 3px 0 0 3px;
    -webkit-mask: radial-gradient(circle var(--n) at 0 50%, #0000 97%, #000) 0 0 / 60% 100% no-repeat, linear-gradient(#000, #000) right 2px top 0 / 60% 100% no-repeat, radial-gradient(var(--hw) var(--hh) at 100% 50%, rgb(0 0 0 / var(--ha)) 90%, #000) right 0 top 0 / 3px var(--hp) repeat-y;
            mask: radial-gradient(circle var(--n) at 0 50%, #0000 97%, #000) 0 0 / 60% 100% no-repeat, linear-gradient(#000, #000) right 2px top 0 / 60% 100% no-repeat, radial-gradient(var(--hw) var(--hh) at 100% 50%, rgb(0 0 0 / var(--ha)) 90%, #000) right 0 top 0 / 3px var(--hp) repeat-y;
    transition: --ha 240ms ease, background-color 420ms ease; }
  /* слои маски каждой половинки внахлёст на 40 %: при 51/51 их стык (~1 px) под поворотом корешка проступал волоском.
     Круг 34: плитки с дырочками — полоса 3 px у линии отрыва, остальное закрывает сплошной слой. 🪤 Было: плитка 7 px
     высотой на 70 % ширины — Firefox под поворотом рисовал стыки плиток горизонтальными полосками по корешку. */
  /* корешок заходит на 1 px под линию: без нахлёста на дробной ширине текста между половинками светился волосок */
  .btn-ink .stub, html[data-look]:not([data-look="v0"]) .cta .stub, html[data-look]:not([data-look="v0"]) #hdr .hcta .stub { justify-content: center; width: 46px; margin-left: -1px; border-radius: 0 3px 3px 0; font-size: 17px; transform-origin: 0 100%;
    -webkit-mask: radial-gradient(circle var(--n) at 100% 50%, #0000 97%, #000) 100% 0 / 60% 100% no-repeat, linear-gradient(#000, #000) left 2px top 0 / 60% 100% no-repeat, radial-gradient(var(--hw) var(--hh) at 0 50%, rgb(0 0 0 / var(--ha)) 90%, #000) 0 0 / 3px var(--hp) repeat-y;
            mask: radial-gradient(circle var(--n) at 100% 50%, #0000 97%, #000) 100% 0 / 60% 100% no-repeat, linear-gradient(#000, #000) left 2px top 0 / 60% 100% no-repeat, radial-gradient(var(--hw) var(--hh) at 0 50%, rgb(0 0 0 / var(--ha)) 90%, #000) 0 0 / 3px var(--hp) repeat-y;
    transition: transform 560ms cubic-bezier(.22,1,.36,1), --ha 240ms ease, background-color 420ms ease; }
  @media (hover: hover) {
    :is(.btn-ink, html[data-look]:not([data-look="v0"]) .cta, html[data-look]:not([data-look="v0"]) #hdr .hcta):hover { --tk: #FBF9FF; }
    :is(.btn-ink, html[data-look]:not([data-look="v0"]) .cta, html[data-look]:not([data-look="v0"]) #hdr .hcta):hover :is(.t, .stub) { --ha: 0; }
    :is(.btn-ink, html[data-look]:not([data-look="v0"]) .cta, html[data-look]:not([data-look="v0"]) #hdr .hcta):hover .stub { transform: rotate(var(--ang)); }
  }
  :is(.btn-ink, html[data-look]:not([data-look="v0"]) .cta, html[data-look]:not([data-look="v0"]) #hdr .hcta):is(:focus-visible, :active) :is(.t, .stub) { --ha: 0; }
  :is(.btn-ink, html[data-look]:not([data-look="v0"]) .cta, html[data-look]:not([data-look="v0"]) #hdr .hcta):focus-visible .stub, :is(.btn-ink, html[data-look]:not([data-look="v0"]) .cta, html[data-look]:not([data-look="v0"]) #hdr .hcta):active .stub { transform: rotate(var(--ang)); }
  @media (hover: hover) { :is(.btn-ink, html[data-look]:not([data-look="v0"]) .cta, html[data-look]:not([data-look="v0"]) #hdr .hcta):active .stub { transform: rotate(calc(var(--ang) * 1.7)); transition-duration: 200ms; } }
  @media (prefers-reduced-motion: reduce) { :is(.btn-ink, html[data-look]:not([data-look="v0"]) .cta, html[data-look]:not([data-look="v0"]) #hdr .hcta) .stub { transform: none !important; } }
  .btn-ink:focus-visible, html[data-look]:not([data-look="v0"]) .cta:focus-visible, .snd-t:focus-visible { outline: 2px solid #C9B3F2; outline-offset: 3px; }
  html[data-look]:not([data-look="v0"]) .cta { height: 56px; font-size: 16px; }
  /* Круг 33: звук — круглая кнопка с одним значком: динамик перечёркнут = звука нет, с волнами = звук идёт. Тумблер и слово
     «Звук» убраны (владелец: «круглой и понятной, без тумблера»); что сделает нажатие — подсказкой справа при наведении. */
  .snd-t { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; padding: 0; border-radius: 50%;
    cursor: pointer; pointer-events: auto; color: #F4F2F8; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.24);
    transition: background-color 260ms ease, border-color 260ms ease; }
  .snd-t .ic { width: 22px; height: 22px; flex: none; }
  .snd-t .ic .w { opacity: 0; transition: opacity 220ms ease; } .snd-t .ic .x { transition: opacity 220ms ease; }
  .snd-t.on .ic .w { opacity: 1; } .snd-t.on .ic .x { opacity: 0; }
  .snd-t.on { background: rgba(155,123,232,.26); border-color: rgba(201,179,242,.7); }
  .snd-t::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-4px, -50%); white-space: nowrap; pointer-events: none;
    font: 500 13px/1 var(--f-body); color: rgba(248,248,248,.88); text-shadow: 0 1px 10px rgba(10,10,15,.95); opacity: 0;
    transition: opacity 200ms ease, transform 320ms cubic-bezier(.22,1,.36,1); }
  @media (hover: hover) {
    .snd-t:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.42); }
    .snd-t.on:hover { background: rgba(155,123,232,.36); }
    .snd-t:hover::after { opacity: 1; transform: translate(0, -50%); }
  }
  html.novideo .snd-t { display: none; }
  html[data-look]:not([data-look="v0"]) .screen .snd { display: none; }   /* управление звуком одно — переключатель в первом экране */
  /* Текст первого экрана стоит: слой вне 3D-камеры, зал плывёт за мышью под ним (круг 32) */
  #heroFix { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: visible; clip-path: none; }

  /* Шапка: подложка цвета страницы (без blur — ради fps), кнопки со скруглением 10 */
  /* 🪤 при .86 крупные заголовки актов просвечивали под логотипом — плотнее у верха, спад ниже кромки шапки */
  /* Круг 28: подложка шапки — два слоя. Светлый проявляется ровно настолько, насколько полосу шапки закрыла
     светлая сцена (--hl ставит кадр). 🪤 Было: переключение по «светлое заняло полэкрана» — кремовая подложка
     вспыхивала поверх ещё тёмного верха, владелец: «белая полоса засвечивается, выглядит как баг». */
  html[data-look]:not([data-look="v0"]) #hdr::before, html[data-look]:not([data-look="v0"]) #hdr::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 46px); pointer-events: none; z-index: -1; }
  html[data-look]:not([data-look="v0"]) #hdr::before { background: linear-gradient(to bottom, rgba(10,10,15,1) 0, rgba(10,10,15,.98) 62%, rgba(10,10,15,0) 100%); opacity: calc(1 - var(--hl, 0)); }
  /* светлой подложки нет: кремовая была светлее неба реки и читалась засветом; над лодкой шапка лежит прямо на небе, как в v30 */
  html[data-look]:not([data-look="v0"]) #hdr::after { display: none; }
  html[data-look]:not([data-look="v0"]) #hdr button, html[data-look]:not([data-look="v0"]) #hdr .brand b, html[data-look]:not([data-look="v0"]) #title .in { transition: color 220ms ease, border-color 220ms ease; }
  html[data-look]:not([data-look="v0"]) #hdr button, html[data-look]:not([data-look="v0"]) #hdr .pill { border-radius: 10px; }
  #hdr .hcta { display: none; }
  html[data-look]:not([data-look="v0"]) #hdr .hcta { height: 38px; font-size: 13px; --n: 5px; --hw: 1.2px; --hh: 1.8px; --hp: 6px; --ang: 7deg; } html[data-look]:not([data-look="v0"]) #hdr .hcta .t { padding: 0 12px 0 16px; } html[data-look]:not([data-look="v0"]) #hdr .hcta .stub { width: 32px; font-size: 14px; }
  html[data-look]:not([data-look="v0"]) body.is-light #hdr button { color: rgba(20,18,28,.78); border-color: rgba(20,18,28,.18); }
  html[data-look]:not([data-look="v0"]) body.is-light #hdr .brand b { color: #16141C; }
  html[data-look]:not([data-look="v0"]) body.is-light #hdr .brand b .saga { color: #6B46C9; }

  /* Словознак на экране: свечение мягче, над головой путника остаётся (решение владельца 19.09) */
  html[data-look="soft"] #title:not(.docked) { text-shadow: 0 0 18px rgba(248,248,248,.26), 0 0 50px rgba(195,129,244,.36), 0 2px 12px rgba(10,10,15,.5); }
  html[data-look="prod"] #title:not(.docked) { text-shadow: 0 0 16px rgba(248,248,248,.22), 0 0 44px rgba(255,244,230,.16), 0 2px 12px rgba(10,10,9,.55); }
  html[data-look="prod"] .screen .scrim { background: linear-gradient(to bottom, rgba(10,10,9,0) 30%, rgba(10,10,9,.5) 60%, rgba(10,10,9,.86) 100%); }

  /* ─── Первый экран ─── */
  .hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; pointer-events: auto; margin-top: 4px; }
  .hero-micro { font: 500 13px/1.4 var(--f-body); color: rgba(248,248,248,.74); margin: 0; }
  .hero-models { margin: 2px 0 0; font: 500 12.5px/1.5 var(--f-body); color: rgba(248,248,248,.62); }
  .hero-models .ml { color: rgba(248,248,248,.62); }
  .hero-models b { font-weight: 600; color: rgba(248,248,248,.92); }
  .hero-models .nw { white-space: nowrap; }
  .hero-models small { display: block; font-size: 11px; color: rgba(248,248,248,.56); }
  .scene[data-id="hall"] .card--scrim .hero-micro, .scene[data-id="hall"] .card--scrim .hero-models { text-shadow: 0 1px 12px rgba(10,10,15,.95); }
  html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card { gap: 14px; }
  /* Колонка левее путника: заголовок 38vw−60, абзац 36vw−60 (голова с x≈628 на 1440, параллакс ±40 px) */
  html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card .h { font-size: clamp(30px, 2.7vw, 64px); max-width: calc(38vw - 60px); line-height: 1.06; }
  html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card .h br { display: none; }
  html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card .h em { display: block; text-wrap: balance; color: rgba(248,248,248,.62); }
  html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card :is(.lede, .hero-micro, .hero-models) { max-width: min(34em, calc(36vw - 60px)); }
  html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card .lede { font-size: clamp(15px, 1.1vw, 21px); line-height: 1.5; text-wrap: pretty; }
  html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: 0; width: 56vw; top: -90px; bottom: -30vh;
    background: linear-gradient(90deg, rgba(10,10,9,.80) 0, rgba(10,10,9,.55) 26vw, rgba(10,10,9,0) 50vw);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 110px); mask-image: linear-gradient(to bottom, transparent, #000 110px); }
  .scene[data-id="hall"] .card.tight .h { font-size: clamp(28px, 2.5vw, 48px) !important; }

  /* prod: токены нового продукта — тёплый чёрный, Onest */
  html[data-look="prod"] { --ink: #0A0A09; --lavender: #CFC3FF; --violet: #B3A2F2;
    --f-body: "Onest", "Inter", system-ui, sans-serif; --f-display: "Onest", "Inter", sans-serif; }
  html[data-look="prod"] .eyebrow { font: 600 12px/1 var(--f-body); letter-spacing: .14em; color: #B9B8B5; }
  html[data-look="prod"] .lede { font-weight: 400; color: rgba(248,248,248,.84); }
  html[data-look="prod"] #title .saga, html[data-look="prod"] #hdr .brand b .saga { color: #C9B8FF; }
  html[data-look="prod"] #sbThumb { background: #B9B8B5; }
  html[data-look="prod"] .snd { border-color: transparent; background: rgba(10,10,9,.42); color: rgba(248,248,248,.7); }
  /* soft: подписи-надзаголовки мягче, текст абзацев плотнее (Inter 300 на .7 плохо читался) */
  html[data-look="soft"] .scene:is([data-id="hall"], [data-id="formats"], [data-id="pier"]) .eyebrow { color: #C9B3F2; letter-spacing: .24em; }
  html[data-look]:not([data-look="v0"]) .scene:is([data-id="hall"], [data-id="formats"], [data-id="pier"]) .lede { font-weight: 400; color: rgba(248,248,248,.8); }

  /* ─── «Что вы снимаете?» — шесть афиш (круг 29). Владелец про сетку карточек: «пиздец странно выглядит» —
     рамки, «Начать →», разнобойные картинки. Теперь ряд высоких кадров одной серии с кадрами входа:
     раскрытая афиша идёт по прокрутке (как миры второго акта), мышь её перехватывает; свёрнутые — корешки. ─── */
  .fmt { position: absolute; left: max(28px, 6vw); right: max(28px, 6vw); display: flex; gap: 10px; pointer-events: auto; will-change: transform, opacity; }
  .fp { position: relative; flex: 1 1 0; min-width: 0; border-radius: 14px; overflow: hidden; background: #121018; color: inherit; text-decoration: none; isolation: isolate;
    transition: flex-grow 1000ms cubic-bezier(.22,1,.36,1); }
  .fp.on { flex-grow: 3.6; }
  .fp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 40%);
    transform: scale(1.06); filter: brightness(.9); transition: transform 2400ms cubic-bezier(.22,1,.36,1), filter 900ms ease; }
  /* круг 30: владелец — «всё блеклое, не бросается в глаза»: свёрнутые больше не гасим до 60 %, раскрытая — чуть сочнее */
  .fp.on img { transform: scale(1); filter: saturate(1.08) contrast(1.03); }
  .fp::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(10,10,15,.82) 0%, rgba(10,10,15,.28) 30%, rgba(10,10,15,0) 52%); }
  .fp-n { position: absolute; top: 16px; left: 16px; z-index: 2; font: 600 11px/1 var(--f-body); letter-spacing: .2em; color: rgba(248,248,248,.72); }
  .fp-v { position: absolute; left: 14px; bottom: 18px; z-index: 2; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
    max-height: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; font: 600 15px/1.2 var(--f-display); color: #F4F2F8; transition: opacity 350ms ease; }
  html:lang(ja) .fp-v, html:lang(ko) .fp-v { transform: none; top: 46px; bottom: auto; }
  .fp.on .fp-v { opacity: 0; }
  .fp-cap { position: absolute; left: 24px; bottom: 22px; z-index: 2; width: min(400px, calc(100% - 48px)); opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity 450ms ease, transform 700ms cubic-bezier(.22,1,.36,1); }
  .fp.on .fp-cap { opacity: 1; transform: none; transition-delay: 280ms; }
  .fp-cap h3 { margin: 0 0 8px; font: 700 clamp(22px, 1.9vw, 32px)/1.08 var(--f-display); letter-spacing: -.02em; color: #fff; }
  .fp-cap p { margin: 0 0 14px; font: 400 clamp(13px, .95vw, 15px)/1.5 var(--f-body); color: rgba(248,248,248,.8); }
  .fp-go { font: 600 13px/1 var(--f-body); color: #E2D6FA; }
  .fp:focus-visible { outline: 2px solid #C9B3F2; outline-offset: 3px; }

  /* ─── Второй акт ─── */
  /* Второй акт (click) и лента (strip) — v30 без правок (круг 27): их стили здесь не переопределяются */

  /* ─── Река: светлая сцена — заголовок и абзац тёмные, акцент глубоким фиолетовым ─── */
  html[data-look]:not([data-look="v0"]) .scene--light .card .h { color: #16141C; }
  html[data-look]:not([data-look="v0"]) .scene--light .card .h em { color: #5B3FA8; }
  html[data-look]:not([data-look="v0"]) .scene--light .card .lede { color: #3A3644; font-weight: 500; }
  html[data-look]:not([data-look="v0"]) .scene--light .eyebrow { color: #5B3FA8; }

  /* ─── Причал: режимы продукта — мозаика (круг 32). Владелец про сетку 3×3: «очень плохо построенные картинки,
     не стильная композиция, выглядит дёшево». Истории крупно, Шортс — высокой вертикалью, ранний доступ — своей строкой. ─── */
  .modes { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 12.5vw, 230px); gap: 14px; pointer-events: auto; }
  .mode { position: relative; display: block; margin: 0; border-radius: 14px; overflow: hidden; background: #15131C; color: inherit; text-decoration: none; isolation: isolate; }
  .mode img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--f, 50% 45%); transition: transform 1400ms cubic-bezier(.22,1,.36,1); }
  .mode:hover img { transform: scale(1.045); }
  .mode::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(10,10,15,.86) 0%, rgba(10,10,15,.34) 36%, rgba(10,10,15,0) 60%); }
  .mode .cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
  .mode b { font: 700 clamp(17px, 1.3vw, 22px)/1.15 var(--f-display); letter-spacing: -.01em; color: #fff; }
  .mode span { max-width: 36ch; font: 400 clamp(12.5px, .92vw, 14px)/1.4 var(--f-body); color: rgba(248,248,248,.82); }
  .mode:focus-visible { outline: 2px solid #C9B3F2; outline-offset: 3px; }
  .m-story { grid-column: span 2; grid-row: span 2; } .m-story b { font-size: clamp(22px, 2vw, 32px); }
  .m-shorts { grid-row: span 2; }
  .m-covers, .m-stock { grid-column: span 2; }
  .modes--early { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(140px, 11vw, 200px); }
  .modes-early-h { margin: 6px 0 -18px; display: flex; align-items: center; gap: 10px; }
  .modes-early-h::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C9B3F2; box-shadow: 0 0 10px rgba(201,179,242,.7); }
  @media (max-width: 900px) { .modes { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .m-story { grid-column: span 2; } .m-covers, .m-stock { grid-column: span 1; } }
  @media (max-width: 640px) {
    html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card::before { width: auto; right: 0; top: -56px; bottom: -24px;
      background: linear-gradient(to bottom, rgba(10,10,9,0), rgba(10,10,9,.70) 56px, rgba(10,10,9,.84)); -webkit-mask-image: none; mask-image: none; }
    html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card .h { max-width: none; font-size: 28px; }
    html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card :is(.lede, .hero-micro, .hero-models) { max-width: none; }
    html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card .lede { font-size: 14px; }
    html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card { gap: 12px; }
    html[data-look]:not([data-look="v0"]) #hdr .hcta { display: none; }
    html[data-look]:not([data-look="v0"]) #hint { display: none; }
    .btn-ink { height: 48px; font-size: 14px; } .btn-ink .t { padding: 0 14px 0 18px; } .btn-ink .stub { width: 40px; }
    .snd-t { width: 48px; height: 48px; }
    .scene[data-id="hall"] .card.tight .h { font-size: clamp(24px, 7vw, 30px) !important; }
    .fmt { flex-direction: column; gap: 8px; }
    .fp { border-radius: 12px; } .fp.on { flex-grow: 4.2; }
    /* светлые кадры (жёлтая стена, облака): подпись читается за счёт затемнения слева, а не только снизу */
    .fp::after { background: linear-gradient(90deg, rgba(10,10,15,.62) 0%, rgba(10,10,15,.22) 55%, rgba(10,10,15,0) 80%), linear-gradient(to top, rgba(10,10,15,.55), rgba(10,10,15,0) 60%); }
    .fp.on::after { background: linear-gradient(90deg, rgba(10,10,15,.8) 0%, rgba(10,10,15,.5) 50%, rgba(10,10,15,.08) 100%), linear-gradient(to top, rgba(10,10,15,.7), rgba(10,10,15,0) 70%); }
    .fp img { object-position: var(--fb, 50% 45%); }
    .fp-v, html:lang(ja) .fp-v, html:lang(ko) .fp-v { writing-mode: horizontal-tb; transform: translateY(-50%); top: 50%; bottom: auto; left: 14px; max-width: calc(100% - 70px); max-height: none; font-size: 15px; text-shadow: 0 1px 10px rgba(10,10,15,.9); }
    .fp-n { top: 50%; transform: translateY(-50%); left: auto; right: 14px; } .fp.on .fp-n { top: 14px; transform: none; }
    .fp-cap { left: 16px; bottom: 14px; width: calc(100% - 32px); } .fp-cap h3 { font-size: 20px; margin-bottom: 6px; } .fp-cap p { font-size: 13px; margin-bottom: 8px; }
    .modes { gap: 10px; grid-auto-rows: 118px; } .modes--early { grid-template-columns: 1fr; grid-auto-rows: 110px; }
    .mode b, .m-story b { font-size: 15px; } .mode span { font-size: 12px; } .mode .cap { left: 12px; right: 12px; bottom: 10px; gap: 3px; }
  }
  @media (min-width: 2000px) {
    .btn-ink { height: 58px; font-size: 17px; } .snd-t { width: 58px; height: 58px; }
    .hero-micro { font-size: 15px; } .hero-models { font-size: 14px; } .hero-models small { font-size: 12.5px; }
    html[data-look]:not([data-look="v0"]) #hdr .hcta, html[data-look]:not([data-look="v0"]) #hdr button { font-size: 15px; }
  }
  /* ═══ Круг 34: производительность (build-v31.py §14) ═══ */
  /* луч: clip-path режет ПОСЛЕ фильтра, поэтому blur(14px) на вид ничего не давал (сверено попиксельно в Chrome, WebKit,
     Firefox: ≤ 6/255 в 0,04 % точек, у изломов градиента), а считался видеокартой каждый кадр */
  .beam { filter: none; }
  canvas#spot, canvas#spotlight { left: -50vw; width: 200vw; background: none; -webkit-mask-image: none; mask-image: none; }

  /* ═══ Круг 35: шапка без полосы (build-v31.py §15) ═══ */
  html[data-look]:not([data-look="v0"]) #hdr::before { display: none; }
  html[data-look]:not([data-look="v0"]) #hdr :is(#signin, #langPill) { background: rgba(12,11,18,.56); border-color: rgba(248,248,248,.16);
    transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease; }
  html[data-look]:not([data-look="v0"]) #hdr :is(#signin, #langPill):hover { background: rgba(34,31,46,.74); }
  html[data-look]:not([data-look="v0"]) body.is-light #hdr :is(#signin, #langPill) { background: rgba(255,255,255,.6); }
  html[data-look]:not([data-look="v0"]) body.is-light #hdr :is(#signin, #langPill):hover { background: rgba(255,255,255,.78); }
  html[data-look]:not([data-look="v0"]) #title.docked { text-shadow: 0 0 34px rgba(10,10,15,.92), 0 0 80px rgba(10,10,15,.72), 0 4px 22px rgba(10,10,15,.85); }
  html[data-look]:not([data-look="v0"]) body.is-light #title.docked { text-shadow: none; }   /* на светлой реке надпись тёмная — ореол не нужен */
  /* мягкая тень-овал под надписью в шапке (не полоса): текст плашек и картинки под ней гаснут, а не сталкиваются с буквами.
     Живёт в самой шапке ПОД значком (у #title z-index выше — пятно на надписи легло бы поверх значка и сделало его серым);
     центр — на надписи (≈ 9 + 30 px правее значка), включается, когда надпись села в шапку (.brand.docked, ставит кадр) */
  html[data-look]:not([data-look="v0"]) #hdr .brand { position: relative; }
  html[data-look]:not([data-look="v0"]) #hdr .brand::before { content: ""; position: absolute; z-index: -1; left: -22px; top: -16px; width: 190px; height: 60px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(10,10,15,.9), rgba(10,10,15,.76) 45%, rgba(10,10,15,.36) 75%, rgba(10,10,15,0)); opacity: 0; transition: opacity 420ms ease; }
  html[data-look]:not([data-look="v0"]) #hdr .brand.docked::before { opacity: 1; }
  html[data-look]:not([data-look="v0"]) body.is-light #hdr .brand::before { opacity: 0; }

  /* ═══ Круг 37: «Апскейл» — крупная карточка со шторкой до/после (build-v31.py §18) ═══ */
  @property --x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
  .modes--early .m-upscale { grid-column: span 2; grid-row: span 2; }
  /* круг 38: владелец — «сделай больше, выше немного, чтоб полное лицо было»: строки раннего доступа выше (не на телефоне —
     там карточка во всю ширину и лицо видно целиком); на 1440 карточка 840×446 вместо 840×331 — видно 80 % высоты кадра */
  @media (min-width: 641px) { html[data-look]:not([data-look="v0"]) .modes--early { grid-auto-rows: clamp(170px, 15vw, 290px); } }
  .m-upscale { --x: 50%; cursor: ew-resize; }
  .m-upscale:hover img { transform: none; }   /* шторка — сама взаимодействие; зум сдвигал бы половины относительно линии */
  .m-upscale .lo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--f, 50% 45%);
    clip-path: inset(0 calc(100% - var(--x)) 0 0); will-change: clip-path; }
  /* круг 39: линия толще и ровнее (4 px, скруглённая, с тонкой обводкой — читается и на светлом окне); ручка — наш значок Insaga,
     строго по центру линии (translate -50%, а не отступы: у прежнего кружка рамка сдвигала центр на 1,5 px — «кривая палочка») */
  .m-upscale .rule { position: absolute; top: 0; bottom: 0; left: var(--x); z-index: 2; width: 4px; margin-left: -2px; border-radius: 2px; pointer-events: none;
    background: rgba(248,248,248,.96); box-shadow: 0 0 0 1px rgba(10,10,15,.14), 0 0 16px rgba(10,10,15,.32); }
  /* владелец: «значок Insaga в кружке приятном» — светлый круг с мягкой тенью и полупрозрачным ободком, внутри знак без подложки (insaga-mark.svg) */
  .m-upscale .knob { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; transform: translate(-50%, -50%); border-radius: 50%;
    display: grid; place-items: center; background: #F8F8F8; box-shadow: 0 8px 22px rgba(10,10,15,.38), 0 0 0 5px rgba(248,248,248,.22);
    transition: transform 320ms cubic-bezier(.22,1,.36,1); }
  /* 🪤 общее `.mode img` (absolute, inset 0, 100%×100%, object-position) цепляло и знак — он уезжал в левый верхний угол кружка */
  .m-upscale .knob img { position: static; inset: auto; display: block; width: 60%; height: auto; object-fit: contain; transform: none; transition: none; }
  @media (hover: hover) { .m-upscale:hover .knob { transform: translate(-50%, -50%) scale(1.06); } }
  .m-upscale .tag { position: absolute; top: 14px; z-index: 2; pointer-events: none; padding: 6px 9px; border-radius: 8px;
    font: 600 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: rgba(248,248,248,.88); background: rgba(12,11,18,.52); }
  .m-upscale .tag.l { left: 14px; } .m-upscale .tag.r { right: 14px; }
  .m-upscale .cap { z-index: 3; }
  .m-upscale.settle { transition: --x 700ms cubic-bezier(.22,1,.36,1); }
  .m-upscale.sweep { animation: upsweep 2600ms cubic-bezier(.45,0,.3,1) 1; }
  @keyframes upsweep { 0% { --x: 50%; } 30% { --x: 82%; } 68% { --x: 20%; } 100% { --x: 50%; } }
  @media (max-width: 640px) { .modes--early .m-upscale { grid-column: auto; grid-row: span 2; } .m-upscale .tag { top: 10px; } .m-upscale .tag.l { left: 10px; } .m-upscale .tag.r { right: 10px; } .m-upscale .knob { width: 44px; height: 44px; } }
  @media (prefers-reduced-motion: reduce) { .m-upscale.sweep { animation: none; } .m-upscale.settle { transition: none; } }

  /* ═══ Круг 41: безлимит — плоская мятная плашка «∞ БЕЗЛИМИТ», рядом тариф, ниже модели (build-v31.py §20) ═══ */
  .hero-unl { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 6px 0 0; font: 500 12.5px/1.45 var(--f-body); }
  .hero-unl .row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
  /* плашка — тон мяты без обводки и теней, капс с разрядкой (третий заход: «без толстой обводки, просто корректная плашка») */
  .hero-unl .tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 9px 0 7px; border-radius: 999px;
    background: rgba(52,211,153,.13); color: #7CE8BD; font: 600 10.5px/1 var(--f-body); letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
  .hero-unl svg { width: 13px; height: 13px; flex: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; }
  .hero-unl .plan { color: rgba(248,248,248,.56); }
  .hero-unl .m { color: rgba(248,248,248,.80); }
  .hero-unl .nw { white-space: nowrap; }
  .scene[data-id="hall"] .card--scrim .hero-unl :is(.plan, .m) { text-shadow: 0 1px 12px rgba(10,10,15,.95); }
  html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card .hero-unl { max-width: min(40em, calc(36vw - 60px)); }
  @media (max-width: 640px) { html[data-look]:not([data-look="v0"]) .scene[data-id="hall"] .card .hero-unl { max-width: none; } .hero-unl { font-size: 13px; } }
  @media (min-width: 2000px) { .hero-unl { font-size: 14px; } .hero-unl .tag { height: 24px; padding: 0 11px 0 9px; font-size: 12px; } .hero-unl svg { width: 15px; height: 15px; } }

  /* ═══ Круг 42: заставка — знак → «Insaga» → всё на свои места (build-v31.py §21) ═══ */
  #lpIntro { position: fixed; inset: 0; z-index: 1000; animation: lpiFailsafe 1ms linear 12s forwards; }
  @keyframes lpiFailsafe { to { opacity: 0; visibility: hidden; } }
  #lpIntro .lpi-bg { position: absolute; inset: 0; background: #0A0A0F; }
  #lpIntro .lpi-lock { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; transform: translate(-50%, -50%); }
  #lpIntro .lpi-icon { display: block; width: auto; height: clamp(56px, 6.2vw, 92px); max-width: none; animation: lpiIcon 720ms cubic-bezier(.2,.75,.25,1) both; }
  @keyframes lpiIcon { from { opacity: 0; transform: scale(.82); } }
  /* надпись — как большая «Insaga» на экране зала (Poppins 700, −.035em, та же подсветка в долях кегля) */
  #lpIntro .lpi-word { display: block; max-width: 0; margin-left: 0; white-space: nowrap; clip-path: inset(-.4em 0 -.4em 0);
    font: 700 clamp(42px, 4.7vw, 68px)/1 var(--f-mark); letter-spacing: -.035em;
    text-shadow: 0 0 .114em rgba(248,248,248,.26), 0 0 .316em rgba(195,129,244,.36), 0 .013em .076em rgba(10,10,15,.5); }
  #lpIntro .lpi-word .t { display: inline-block; opacity: 0; transform: translateX(-.4em); }
  #lpIntro .lpi-word .in { color: var(--white); } #lpIntro .lpi-word .saga { color: var(--lavender); }
  #lpIntro.go .lpi-word { max-width: calc(var(--ww, 3.9em) + .12em); margin-left: .3em; transition: max-width 900ms cubic-bezier(.65,0,.25,1), margin-left 900ms cubic-bezier(.65,0,.25,1); }
  #lpIntro.go .lpi-word .t { opacity: 1; transform: none; transition: opacity 650ms ease 120ms, transform 900ms cubic-bezier(.65,0,.25,1); }
  /* полоса хода — прелоадер: видна вместе с надписью, заливку ведёт скрипт покадрово */
  #lpIntro .lpi-bar { position: absolute; left: 50%; top: calc(50% + clamp(56px, 6.2vw, 92px) / 2 + 30px); width: 132px; height: 2px; margin-left: -66px;
    border-radius: 2px; background: rgba(248,248,248,.10); overflow: hidden; opacity: 0; transition: opacity 400ms ease; }
  #lpIntro .lpi-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, rgba(195,129,244,.55), var(--lavender)); }
  #lpIntro.go .lpi-bar { opacity: 1; transition: opacity 500ms ease 250ms; }
  /* пока заставка непрозрачна — зал и пыль не рисуются; настоящие знак шапки и «Insaga» зала скрыты до посадки копий */
  #lpIntro:not(.warm) ~ #stage, #lpIntro:not(.warm) ~ #dust { visibility: hidden; }
  #lpIntro ~ #hdr #brand > img, #lpIntro ~ #title { opacity: 0; }
  #lpIntro.land ~ #hdr #brand > img, #lpIntro.land ~ #title { opacity: 1; transition: opacity 280ms ease; }
  /* уход: чёрное растворяется, копии летят на свои места */
  #lpIntro.out { pointer-events: none; }
  #lpIntro.out .lpi-bg { opacity: 0; transition: opacity 900ms cubic-bezier(.4,0,.2,1) 80ms; }
  #lpIntro.out .lpi-bar { opacity: 0; transition: opacity 200ms ease; }
  /* полёт — покадрово из скрипта; здесь только растворение копий при посадке (🪤 специфичность выше, чем у раскрытия надписи) */
  #lpIntro.out .fly { transition: opacity 280ms ease; }
  #lpIntro.go.done .lpi-word { max-width: none; clip-path: none; transition: none; }
  #lpIntro.land .fly { opacity: 0; }
  #lpIntro.out.plain .lpi-lock { opacity: 0; transition: opacity 500ms ease; }
  @media (prefers-reduced-motion: reduce) {
    #lpIntro .lpi-icon { animation: none; }
    #lpIntro .lpi-word { max-width: none; margin-left: .3em; } #lpIntro .lpi-word .t { opacity: 1; transform: none; }
    #lpIntro.out .lpi-bg { transition-duration: 400ms; }
  }

  /* ═══ круг 43 (26.09): телефон ═══════════════════════════════════════════════════════════════ */
  @media (max-width: 640px) {
    /* ползунок: без дорожки, тонкий бегунок; появляется, пока листают (#sb.mv), и гаснет через 0,7 с */
    #sb, body.is-light #sb { top: calc(env(safe-area-inset-top,0px) + 78px); bottom: calc(env(safe-area-inset-bottom,0px) + 14px); right: 3px; width: 3px; background: none; pointer-events: none; }
    #sbThumb, html[data-look="prod"] #sbThumb { left: 0; width: 3px; border-radius: 3px; background: rgba(236,230,250,.5); opacity: 0; transition: opacity 450ms ease 700ms; }
    body.is-light #sbThumb { background: rgba(30,22,48,.36); }
    #sb.mv #sbThumb { opacity: 1; transition: opacity 120ms ease; }
    /* второй акт: подзаголовок во всю ширину; список миров спрятан (смену называет титр главы); поле истории ровной
       высоты — иначе на смене мира доска под ним прыгала бы */
    .scene[data-id="click"] .card--small .lede { max-width: none; font-size: 14.5px; line-height: 1.55; }
    /* переключатель: из списка четырёх миров — одна строка текущего («Аниме · город на облаках») */
    .scene[data-id="click"] .pk-rows { padding-left: 0; }
    .scene[data-id="click"] .pk-rows::before, .scene[data-id="click"] .pk-rows .mark, .scene[data-id="click"] .pk-rows li:not(.on) { display: none; }
    .scene[data-id="click"] .pk-rows li.on { height: auto; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 10px; transform: none; min-width: 0; }
    .scene[data-id="click"] .pk-rows li.on b { font-size: 15px; white-space: nowrap; flex: none; }
    .scene[data-id="click"] .pk-rows li.on span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .scene[data-id="click"] .picker { gap: 10px; }
    .scene[data-id="click"] .prompt { padding: 18px 18px 16px; gap: 13px; border-radius: 16px; }
    .scene[data-id="click"] .prompt p { font-size: 14px; line-height: 1.6; min-height: 0; height: 11.2em; overflow: hidden; }
    html:lang(de) .scene[data-id="click"] .prompt p { height: 12.8em; }   /* немецкий на 360 px — ровно 7 строк, запас на шрифт */
    .scene[data-id="click"] .out { gap: 10px; }
    .scene[data-id="click"] .scenes, .scene[data-id="click"] .locs { gap: 8px; }
    .scene[data-id="click"] .ch { width: 62px; }
    .scene[data-id="click"] .chars { gap: 12px; }
    /* фонарь: пятно света ~ 320 px вместо 760 и тише — не заливает белым полэкрана и подзаголовок */
    .lamp { opacity: .8;
      -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 12%, rgba(0,0,0,.88) 17%, rgba(0,0,0,.22) 23%, transparent 30%);
              mask-image: radial-gradient(circle at 50% 50%, #000 0 12%, rgba(0,0,0,.88) 17%, rgba(0,0,0,.22) 23%, transparent 30%); }
    .lamp .glow { background: radial-gradient(circle at 50% 50%, rgba(255,226,178,.2) 0, rgba(255,210,150,.09) 7%, rgba(200,160,255,.06) 17%, transparent 30%); }
    /* первый экран: верх вписанного зала растушёван в тёмное — без резкой кромки потолка под шапкой */
    .layer--phTop { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px); mask-image: linear-gradient(to bottom, transparent 0, #000 56px); }
    /* шапка: растушёвка сверху, пока листают дальше первого экрана (--hs ставит кадр); над светлой рекой гаснет (--hl) */
    html[data-look]:not([data-look="v0"]) #hdr::before { display: block; height: calc(100% + 30px);
      background: linear-gradient(to bottom, rgba(10,10,15,.88) 0, rgba(10,10,15,.66) 52%, rgba(10,10,15,0) 100%);
      opacity: calc(var(--hs, 0) * (1 - var(--hl, 0))); }
  }
  /* короткий телефон (iPhone SE, 667 px): доска в две колонки выше экрана, и каст уходил под шапку — сцены в три колонки */
  @media (max-width: 640px) and (max-height: 720px) {
    .scene[data-id="click"] .scenes { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  }
