/* АйЗбука — «серия, которую смотрят прокруткой». Концепция: research/redesign-art-direction.md + redesign-motion.md */
:root {
  --paper: #FFF7EC; --paper-2: #FCEBDD; --ink: #2A1F3D; --ink-2: #4E4366; --mute: #8A7FA0;
  --berry: #B01F73; --sky: #2C8FD6; --cyan: #22B8DD; --coral: #F5475C; --orange: #FF7A3D;
  --mint: #DDF1E8; --mint-2: #A9DCC7; --butter: #FFE9B0; --lilac: #E9E0F7; --peach: #F9D9C4; --night: #2A1F3D;
  --grad: linear-gradient(100deg, #B01F73 0%, #2C8FD6 38%, #22B8DD 55%, #F5475C 80%, #FF7A3D 100%);
  --sh-1: 0 2px 4px rgba(122,52,40,.06), 0 10px 24px -8px rgba(122,52,40,.18);
  --sh-2: 0 4px 10px rgba(122,52,40,.08), 0 28px 60px -18px rgba(122,52,40,.30);
  --e-out: cubic-bezier(.22,1,.36,1); --e-in: cubic-bezier(.55,0,1,.45); --e-inout: cubic-bezier(.65,0,.35,1);
  --e-back: cubic-bezier(.34,1.56,.64,1); --e-anticip: cubic-bezier(.36,0,.66,-.56);
  --t-tap: 90ms; --t-micro: 200ms; --t-ui: 360ms; --t-enter: 650ms; --t-act: 900ms; --stagger: 70ms;
  --display: 'Playpen Sans', 'Comic Sans MS', system-ui, sans-serif;
  --hand: 'Shantell Sans', 'Comic Sans MS', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --fs-h1: clamp(46px, 7vw, 108px); --fs-h2: clamp(34px, 4.8vw, 70px); --fs-h3: clamp(22px, 2.1vw, 30px);
  --fs-lead: clamp(18px, 1.4vw, 21px); --fs-note: clamp(19px, 1.6vw, 24px);
  --gut: clamp(16px, 4vw, 48px); --wrap: 1240px;
  --day: #FFF7EC;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Lenis (С273): его собственная плавность — родную отключаем, иначе двойное сглаживание */
html.lenis, html.lenis body { height: auto; } .lenis.lenis-smooth { scroll-behavior: auto !important; } .lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--day); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: clip; }  /* С273: без transition — цвет плавно ведёт сама прокрутка (dayFrame), transition перезапускался каждый кадр */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); position: relative; }
.sc { position: relative; }

/* свет из окна — два пятна поверх всей страницы, без blur */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60vmax 45vmax at 8% 10%, rgba(255,200,140,.28), transparent 70%),
              radial-gradient(55vmax 40vmax at 95% 95%, rgba(120,200,230,.14), transparent 70%); }
main, footer, .remote { position: relative; z-index: 1; }
body::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .05; mix-blend-mode: multiply; background: url(/img/site/grain-v1.webp); }

/* ---------- типографика ---------- */
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.025em; position: relative; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 18px; position: relative; }
.h3 { font-size: var(--fs-h3); line-height: 1.12; font-weight: 800; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.tc { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.tc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(245,71,92,.15); animation: blinkdot 1.6s steps(2) infinite; }
.tc-light { color: rgba(255,255,255,.85); } .tc-light .tc-dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
@keyframes blinkdot { 50% { opacity: .35; } }

/* слово-наклейка: одна на заголовок */
.sticker { display: inline-block; padding: 0 .2em .04em; border-radius: .28em; rotate: -2.5deg; color: #fff;
  box-shadow: 0 .07em 0 rgba(42,31,61,.18), inset 0 .05em 0 rgba(255,255,255,.35); line-height: 1.02; padding: .02em .22em .08em; margin-top: .12em; position: relative; z-index: 0; }
.st-coral { background: var(--coral); } .st-sky { background: var(--sky); } .st-mint { background: #2FB88D; }
.st-butter { background: #FFC53D; color: var(--ink); } .st-berry { background: var(--berry); }
.js .sticker { transform-origin: 50% 70%; }
.motion .in .sticker, .motion .sticker.in { animation: slap 560ms var(--e-back) both; animation-delay: 280ms; }
@keyframes slap { 0% { scale: 1.35; opacity: 0; } 45% { scale: .92; opacity: 1; } 70% { scale: 1.04; } 100% { scale: 1; } }

.wrong { color: var(--berry); text-decoration: none; position: relative; display: inline-block; }
.wrong::after { content: ""; position: absolute; left: -12%; right: -12%; top: 52%; height: .09em; min-height: 3px; border-radius: 3px; background: var(--berry); rotate: -14deg; }
.right { font-family: var(--display); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- шарики и рамка десяти (главный знак) ---------- */
.b-coral { --c: #F5475C; --cd: #C42B45; } .b-mint { --c: #34C39A; --cd: #1E9677; } .b-sky { --c: #2C8FD6; --cd: #1B69A8; }
.b-butter { --c: #FFC53D; --cd: #E09A12; } .b-berry { --c: #B01F73; --cd: #851455; } .b-orange { --c: #FF9A3D; --cd: #E0701A; }
.ball, .tenframe i.b-coral, .tenframe i.b-mint, .tenframe i.fill, .ball-ico {
  background: radial-gradient(circle at 32% 28%, #fff 0 7%, var(--c) 34%, var(--cd) 100%);
  box-shadow: 0 3px 0 rgba(42,31,61,.18), inset 0 -3px 6px rgba(0,0,0,.12); border-radius: 50%; }
.tenframe { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--tf-gap, 3px); }
.tenframe i { display: block; aspect-ratio: 1; border-radius: 30%; background: rgba(255,255,255,.55); outline: 1.5px dashed rgba(42,31,61,.2); outline-offset: -1.5px; }
.tenframe i.b-coral, .tenframe i.b-mint, .tenframe i.fill { border-radius: 50%; outline: none; }
.tf-mini { --tf-gap: 4px; width: 92px; }
.tf-mini i.fill { --c: #F5475C; --cd: #C42B45; animation: drop-in 520ms var(--e-back) both; }
.tf-mini i.fill:nth-child(2n) { --c: #FFC53D; --cd: #E09A12; } .tf-mini i.fill:nth-child(3n) { --c: #34C39A; --cd: #1E9677; }
.tf-mini i.fill:nth-child(5n) { --c: #2C8FD6; --cd: #1B69A8; }
.tf-mini i.cur { outline: 2px solid var(--coral); outline-offset: 1px; }
@keyframes drop-in { 0% { translate: 0 -14px; scale: .6; opacity: 0; } 60% { translate: 0 0; scale: 1.15 .85; opacity: 1; } 100% { scale: 1; } }

/* ---------- кнопки ---------- */
.btn-go { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 30px 0 16px; border-radius: 999px;
  font: 700 18px/1 var(--body); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.14); white-space: nowrap; transform-origin: 50% 100%;
  background: linear-gradient(180deg, #FF6A5B 0%, #F5475C 55%, #E8364F 100%);
  box-shadow: 0 6px 0 #B92641, inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,0,0,.08), 0 14px 28px -8px rgba(245,71,92,.55);
  transition: translate var(--t-micro) var(--e-out), box-shadow var(--t-micro) var(--e-out); overflow: hidden; }
.btn-go::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); translate: -140% 0; }
.btn-go:hover { translate: 0 -2px; box-shadow: 0 8px 0 #B92641, inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,0,0,.08), 0 18px 32px -8px rgba(245,71,92,.6); }
.btn-go:hover::after { translate: 340% 0; transition: translate 800ms var(--e-inout); }
.btn-go:active { translate: 0 5px; scale: 1.03 .95; box-shadow: 0 1px 0 #B92641, inset 0 2px 0 rgba(255,255,255,.45), 0 6px 14px -8px rgba(245,71,92,.5); transition-duration: var(--t-tap); }
.btn-go.boing { animation: boing 480ms var(--e-out); }
@keyframes boing { 0% { scale: 1.05 .9; } 35% { scale: .96 1.06; } 65% { scale: 1.02 .98; } 100% { scale: 1; } }
.ball-ico { --c: #FFC53D; --cd: #E09A12; position: relative; width: 30px; height: 30px; flex: none; transition: rotate 600ms var(--e-back); }
.ball-ico::after { content: ""; position: absolute; left: 11px; top: 8px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.btn-go:hover .ball-ico { rotate: 360deg; }
.btn-go-s { height: 46px; padding: 0 20px 0 10px; font-size: 15px; box-shadow: 0 4px 0 #B92641, inset 0 2px 0 rgba(255,255,255,.55), 0 10px 20px -8px rgba(245,71,92,.5); }
.btn-go-s .ball-ico { width: 24px; height: 24px; } .btn-go-s .ball-ico::after { left: 9px; top: 6px; border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.btn-go-l { height: 72px; font-size: 20px; padding: 0 36px 0 18px; } .btn-go-l .ball-ico { width: 36px; height: 36px; } .btn-go-l .ball-ico::after { left: 14px; top: 10px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }

.btn-paper { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 17px/1 var(--body); box-shadow: 0 4px 0 #E9D9C8, inset 0 2px 0 rgba(255,255,255,.9), var(--sh-1); transition: translate var(--t-micro) var(--e-out); }
.btn-paper:hover { translate: 0 -2px; } .btn-paper:active { translate: 0 3px; box-shadow: 0 1px 0 #E9D9C8; }
.btn-paper-dark { background: #3A2E52; color: #fff; box-shadow: 0 4px 0 #1C142B, inset 0 2px 0 rgba(255,255,255,.12); }
.eq { display: inline-flex; gap: 3px; align-items: center; height: 20px; }
.eq i { width: 4px; height: 40%; border-radius: 3px; background: var(--coral); }
.eq i:nth-child(2) { background: var(--sky); height: 80%; } .eq i:nth-child(3) { background: #FFC53D; height: 60%; } .eq i:nth-child(4) { background: #34C39A; height: 90%; }
.playing .eq i { animation: eqb .5s ease-in-out infinite alternate; } .playing .eq i:nth-child(2) { animation-delay: -.2s; } .playing .eq i:nth-child(3) { animation-delay: -.35s; } .playing .eq i:nth-child(4) { animation-delay: -.1s; }
@keyframes eqb { to { height: 25%; } }
.voice { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff;
  font: 700 15px/1 var(--body); box-shadow: 0 3px 0 #E9D9C8, var(--sh-1); transition: translate var(--t-micro) var(--e-out); }
.voice:hover { translate: 0 -2px; } .voice:active { translate: 0 2px; }
.voice-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 11px; padding-left: 2px;
  background: radial-gradient(circle at 32% 28%, #fff 0 7%, #2C8FD6 34%, #1B69A8 100%); }
.voice.playing .voice-ico { animation: pulse .7s ease-in-out infinite alternate; }
@keyframes pulse { to { scale: 1.15; } }

/* ---------- «Пульт серии» ---------- */
.remote { position: fixed; z-index: 50; top: calc(20px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; width: min(1180px, calc(100% - 32px));
  height: 66px; padding: 0 10px 0 18px; display: flex; align-items: center; gap: 18px; border-radius: 999px; background: rgba(255,247,236,.95);
  box-shadow: inset 0 0 0 1.5px rgba(42,31,61,.08), var(--sh-1); }
.rm-logo { display: flex; align-items: center; gap: 10px; margin-left: 22px; }
/* ⭐С273 новый логотип Михаила: сова вылезает из плашки меню вверх (как на его макете) */
.rm-mark { width: auto; height: 76px; margin: -22px 0 -6px; filter: drop-shadow(0 4px 6px rgba(80,40,30,.18)); transition: scale var(--t-micro) var(--e-back); }
.rm-logo:hover .rm-mark { animation: hopmark 520ms var(--e-out); }
@keyframes hopmark { 30% { translate: 0 -6px; scale: .92 1.1; } 60% { translate: 0 0; scale: 1.1 .9; } 100% { scale: 1; } }
.rm-word { width: auto; height: 30px; }
.rm-reel { display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 8px 14px 8px 10px; border-radius: 999px; transition: background var(--t-micro); }
.rm-reel:hover { background: rgba(42,31,61,.05); }
.rm-scene { display: grid; text-align: left; line-height: 1.15; min-width: 150px; }
.rm-code { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--mute); }
.rm-name { font: 650 16px/1.2 var(--hand); font-variation-settings: 'INFM' 80; }
.rm-name.swap { animation: swap 360ms var(--e-out); } @keyframes swap { from { opacity: 0; translate: 0 8px; } }
.rm-sound { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px 0 10px; border-radius: 999px; color: var(--mute); font: 600 14px/1 var(--body); }
.rm-sound svg { width: 22px; height: 22px; } .rm-sound .wv { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .35; }
.rm-sound[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 2px 0 #E9D9C8; }
.rm-sound[aria-pressed="true"] .wv { opacity: 1; animation: wvp 1s ease-in-out infinite alternate; } .rm-sound[aria-pressed="true"] .w2 { animation-delay: -.5s; }
@keyframes wvp { to { opacity: .3; } }

/* раскадровка */
.board { position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow: auto; padding: calc(24px + env(safe-area-inset-top, 0px)) var(--gut) 40px; }
.board[hidden] { display: none; }
.board-in { max-width: 1180px; margin: 0 auto; }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.board-x { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 #E9D9C8, var(--sh-1); font-size: 20px; }
.board-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.board-grid li { animation: e-pop 520ms var(--e-back) both; animation-delay: calc(var(--i) * 35ms); }
.board-grid a { display: block; border-radius: 22px; padding: 8px; background: #fff; box-shadow: var(--sh-1); outline: 2px dashed transparent; transition: translate var(--t-micro) var(--e-out); }
.board-grid a:hover { translate: 0 -4px; }
.board-grid .cur a { outline-color: var(--coral); outline-offset: 3px; }
.board-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; background: var(--paper-2); }
.board-grid .bt { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 4px; }
.board-grid .bt b { font: 700 15px/1.2 var(--display); } .board-grid .bt span { font: 500 10px/1 var(--mono); letter-spacing: .12em; color: var(--mute); }
.board-grid .seen .bt b::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 6px; border-radius: 50%; --c: #34C39A; --cd: #1E9677; background: radial-gradient(circle at 32% 28%, #fff 0 7%, var(--c) 34%, var(--cd) 100%); }
.board-foot { margin-top: 26px; text-align: center; font: 600 17px/1.4 var(--hand); color: var(--mute); }

/* ---------- кадр (контейнер иллюстрации) ---------- */
.frame { position: relative; border-radius: 32px; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 4px #fff, 0 10px 0 rgba(42,31,61,.12), 0 30px 60px -20px rgba(122,52,40,.35); isolation: isolate; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1.5px rgba(42,31,61,.08), inset 0 -90px 120px -70px rgba(42,31,61,.28); }
.frame > img, .frame picture img { width: 100%; height: 100%; object-fit: cover; }
.frame-tc { position: absolute; z-index: 3; left: 16px; top: 16px; padding: 7px 12px; border-radius: 999px; background: var(--paper); font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--ink-2); }

/* ---------- субтитры ---------- */
.subs { position: absolute; z-index: 4; left: 50%; bottom: 24px; translate: -50% 0; width: min(760px, calc(100% - 32px)); text-align: center; pointer-events: none; }
.sub-line { display: inline-block; padding: 12px 20px 14px; border-radius: 16px; background: rgba(42,31,61,.88); color: #fff;
  font: 600 clamp(17px, 1.5vw, 22px)/1.35 var(--hand); font-variation-settings: 'INFM' 60, 'BNCE' 0; animation: e-pop 420ms var(--e-back) both; }
.sub-line.talk { animation: e-pop 420ms var(--e-back) both, bnce 1s ease-in-out infinite alternate; }
@keyframes bnce { to { font-variation-settings: 'INFM' 60, 'BNCE' 40; } }
.sub-who { display: block; margin-bottom: 4px; font: 700 12px/1 var(--hand); letter-spacing: .1em; text-transform: uppercase; }
.who-a { color: #7FC8FF; } .who-b { color: #FFB08A; } .who-c { color: #FFD36B; } .who-t { color: #C9B8FF; }
.sub-line .w { opacity: .5; transition: opacity 120ms; } .sub-line .w.on { opacity: 1; }

/* ---------- пометки карандашом Айзы ---------- */
.pencil { position: absolute; z-index: 5; display: flex; gap: 6px; align-items: flex-start; color: var(--berry);
  font: 650 var(--fs-note)/1.15 var(--hand); font-variation-settings: 'INFM' 100; rotate: -3deg; pointer-events: none; }
.pencil svg { width: 84px; height: 50px; flex: none; overflow: visible; }
.pencil path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 0; }
.motion [data-enter="draw"].armed:not(.in) path { stroke-dashoffset: 260; }
.motion [data-enter="draw"].armed:not(.in) span { opacity: 0; }
.motion [data-enter="draw"].in path { animation: draw 700ms var(--e-out) both; }
.motion [data-enter="draw"].in span { animation: fadein 300ms 600ms both; }
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* ---------- входы элементов (только после первого действия пользователя) ---------- */
.motion [data-enter].armed:not(.in):not(.done) { opacity: 0; }
.motion [data-enter="draw"].armed:not(.in):not(.done) { opacity: 1; }
.motion [data-enter="pop"].in { animation: e-pop var(--t-enter) var(--e-back) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
.motion [data-enter="drop"].in { animation: e-drop var(--t-act) linear both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
.motion [data-enter="rise"].in { animation: e-rise var(--t-enter) var(--e-out) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
.motion [data-enter].done { opacity: 1 !important; }
@keyframes e-pop { 0% { opacity: 0; scale: .6; } 60% { opacity: 1; scale: 1.06 .96; } 100% { scale: 1; } }
@keyframes e-drop { 0% { opacity: 0; translate: 0 -60px; scale: .94 1.08; animation-timing-function: var(--e-in); }
  45% { opacity: 1; translate: 0 0; scale: 1.08 .9; animation-timing-function: var(--e-out); }
  70% { translate: 0 -10px; scale: .98 1.03; animation-timing-function: var(--e-in); } 100% { translate: 0 0; scale: 1; } }
@keyframes e-rise { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }

/* ═════════ СЦЕНА 01 · Заставка ═════════ */
.sc-hero .stick { position: relative; height: 100svh; min-height: 640px; overflow: clip; }
.motion-ok .sc-hero { height: 150lvh; }
.sc-hero .stick::after { content: ""; position: absolute; inset: auto 0 0; height: 18vh; z-index: 6; pointer-events: none; background: linear-gradient(rgba(255,247,236,0), var(--day)); } .motion-ok .sc-hero .stick { position: sticky; top: 0; }
.dio { position: absolute; inset: 0; }
.ly { position: absolute; inset: 0; }
.ly-bg { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform-origin: 70% 60%; }
.ly-glow { background: linear-gradient(90deg, rgba(255,247,236,.94) 0%, rgba(255,247,236,.72) 34%, rgba(255,247,236,.15) 56%, transparent 66%); }
.ly-heroes { transform-origin: 72% 100%; }
.hero-cut { position: absolute; bottom: 3%; height: 74%; aspect-ratio: .64; transform-origin: 50% 100%; }
.hero-cut img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 18px rgba(80,40,30,.22)); }
.cut-aiza { left: 50%; } .cut-buka { left: 69%; height: 77%; }
.hero-cut::after, .re-buka::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -8px; height: 18px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(80,40,30,.28), transparent); }
.road-end { position: relative; }
.re-buka { position: relative; display: block; }
.hero-cut { animation: breathe 3.2s ease-in-out infinite; } .cut-buka { animation-delay: -1.6s; }
@keyframes breathe { 50% { scale: 1 1.012; } }
.hero-cut:hover { animation: hop 700ms var(--e-out); }
.hero-cut.say { animation: hop 700ms var(--e-out); }
@keyframes hop { 0% { translate: 0 0; scale: 1; } 15% { translate: 0 2%; scale: 1.06 .92; } 45% { translate: 0 -8%; scale: .96 1.05; } 75% { translate: 0 0; scale: 1.05 .94; } 100% { scale: 1; } }
.ly-fg { pointer-events: none; transform-origin: 70% 100%; }
.prop { position: absolute; filter: drop-shadow(0 10px 12px rgba(80,40,30,.18)); }
.p-balloon { right: 3%; top: 7%; width: clamp(80px, 9vw, 150px); animation: floaty 5s ease-in-out infinite; }
.p-cube { left: 47%; bottom: 1%; width: clamp(56px, 5vw, 84px); rotate: -10deg; }
.p-cake { right: 2%; bottom: 3%; width: clamp(80px, 8vw, 140px); }
@keyframes floaty { 50% { translate: 0 -14px; rotate: 3deg; } }
.comic { position: absolute; z-index: 6; left: 67%; top: 14%; max-width: 280px; padding: 14px 18px 16px; border-radius: 22px; background: #fff; box-shadow: var(--sh-2);
  font: 650 clamp(17px, 1.4vw, 21px)/1.3 var(--hand); font-variation-settings: 'INFM' 70; rotate: 2deg; }
.comic::after { content: ""; position: absolute; left: 44%; bottom: -16px; border-top: 18px solid #fff; border-right: 18px solid transparent; }
.comic-who { display: block; font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }
.pn-hero { left: 50%; top: 15%; flex-direction: row-reverse; }
.pn-hero svg { display: none; }
.pn-hero span { background: rgba(255,247,236,.88); padding: 2px 10px 4px; border-radius: 12px; }
.hero-copy { position: absolute; z-index: 7; left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); width: min(560px, 44vw);
  /* ⭐С273: центр по свободной высоте ПОД пультом — в низком окне (или при увеличении масштаба) пульт закрывал «Тренажёр счёта» */
  top: calc(100px + env(safe-area-inset-top, 0px)); bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; justify-content: safe center; }
.hero-copy .h1 { margin: 18px 0 22px; font-size: min(var(--fs-h1), 12vh); }
.hero-act { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 15px/1.3 var(--body); color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; --c: #F5475C; --cd: #C42B45; background: radial-gradient(circle at 32% 28%, #fff 0 7%, var(--c) 34%, var(--cd) 100%); }
.facts li:nth-child(2)::before { --c: #FFC53D; --cd: #E09A12; } .facts li:nth-child(3)::before { --c: #34C39A; --cd: #1E9677; } .facts li:nth-child(4)::before { --c: #2C8FD6; --cd: #1B69A8; }
#heroSubs { bottom: 110px; z-index: 8; }
.next { position: absolute; z-index: 7; left: 50%; bottom: 14px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.next .tc { color: var(--ink-2); background: rgba(255,247,236,.85); padding: 6px 10px; border-radius: 999px; }
.next-ring { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; outline: 2px dashed rgba(42,31,61,.25); background: rgba(255,247,236,.7); }
.next-ball { width: 18px; height: 18px; border-radius: 50%; --c: #F5475C; --cd: #C42B45; background: radial-gradient(circle at 32% 28%, #fff 0 7%, var(--c) 34%, var(--cd) 100%); animation: bounceball 3s var(--e-out) infinite; }
@keyframes bounceball { 0%, 70%, 100% { translate: 0 0; scale: 1; } 78% { translate: 0 -12px; scale: .9 1.1; } 88% { translate: 0 0; scale: 1.15 .85; } 94% { scale: .96 1.04; } }

/* intro: занавес-ирис при загрузке (один раз за сеанс) */
.iris-intro { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: var(--paper);
  -webkit-mask: radial-gradient(circle at 70% 55%, transparent 0 var(--r, 0%), #000 calc(var(--r, 0%) + .5%)); mask: radial-gradient(circle at 70% 55%, transparent 0 var(--r, 0%), #000 calc(var(--r, 0%) + .5%)); }

/* ═════════ СЦЕНА 02 · В ролях ═════════ */
.sc-cast { padding: clamp(40px, 5vw, 72px) 0 clamp(60px, 8vw, 110px); }
.cast { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); margin-top: 40px; }
.actor { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: end; gap: 10px; }
.actor::before { content: ""; position: absolute; left: 4%; width: 40%; bottom: -8px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(122,52,40,.22), transparent); }
.actor-cut { position: relative; align-self: end; transform-origin: 50% 100%; }
.actor-cut img { width: 100%; max-height: 560px; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 16px 16px rgba(80,40,30,.18)); }
.actor-cut:hover { animation: hop 700ms var(--e-out); }
.role { padding-bottom: 150px; }
.role-name { display: block; font: 800 clamp(40px, 4.4vw, 64px)/1 var(--display); letter-spacing: -.02em; }
.role-name.role-sm { font-size: 24px; margin-bottom: 6px; }
.role-hand { display: block; margin: 8px 0 14px; font: 650 22px/1.2 var(--hand); color: var(--berry); rotate: -2deg; transform-origin: 0 50%; font-variation-settings: 'INFM' 100; }
.actor-aiza .role-name { color: #1d6fa8; } .actor-buka .role-name { color: #C42B45; }
.role p { color: var(--ink-2); font-size: 16px; }

.pn-a2 { left: 30%; top: 26%; font-size: 19px; max-width: 200px; flex-direction: column-reverse; } .pn-a2 svg { width: 70px; }
.pn-a1, .pn-b1 { left: 46%; top: 0; font-size: 19px; flex-direction: row; align-items: center; max-width: 240px; }
.pn-a1 svg, .pn-b1 svg { width: 64px; margin: 0; scale: -1 1; }
.pn-b1 svg { scale: 1 1; }
.pn-a2, .pn-b2 { display: none !important; }
.pn-b2 { left: 34%; top: 30%; font-size: 19px; max-width: 200px; flex-direction: column-reverse; } .pn-b2 svg { width: 70px; margin-left: 20px; }
.cast-extra { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 30px; }
.extra { position: relative; display: flex; gap: 18px; align-items: center; padding: 22px 26px; border-radius: 28px; background: #fff; box-shadow: var(--sh-1); overflow: hidden; }
.extra p { color: var(--ink-2); font-size: 16px; }
.cat-peek { width: 230px; margin: -8px 0 -22px -12px; align-self: flex-end; transition: translate 400ms var(--e-back); }
.extra-cat:hover .cat-peek { translate: 0 -10px; }
/* ⭐С273 ведущая (персонаж Михаила) выглядывает снизу карточки, как кот */
.host-peek { width: auto; height: 170px; flex: none; margin: -10px 0 -22px -6px; align-self: flex-end; transition: translate 400ms var(--e-back); }
.extra-voice:hover .host-peek { translate: 0 -8px; }
.mic { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--lilac); }
.mic svg { width: 34px; height: 34px; fill: none; stroke: #6A4FB0; stroke-width: 2; stroke-linecap: round; }

/* ═════════ СЦЕНА 03 · Титульная карточка ═════════ */
.titlecard { position: relative; overflow: hidden; min-height: 72svh; display: grid; place-items: center; background: var(--coral); color: #fff; text-align: center; }
.rays { position: absolute; left: 50%; top: 60%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax;
  background: repeating-conic-gradient(from 0deg, #F5475C 0 7.5deg, #FF6070 7.5deg 15deg); animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.garland { position: absolute; left: 0; top: 0; width: 100%; height: clamp(70px, 10vw, 130px); }
.garland .flags { transform-origin: 50% 0; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 50% { rotate: .6deg; } }
.tc-prop { position: absolute; z-index: 1; width: clamp(70px, 8vw, 130px); animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 12px 12px rgba(120,20,40,.3)); }
.tp1 { left: 6%; top: 24%; } .tp2 { right: 7%; top: 20%; animation-delay: -1.5s; } .tp3 { left: 3%; bottom: 10%; animation-delay: -3s; rotate: -8deg; } .tp4 { right: 12%; bottom: 12%; animation-delay: -2.2s; } .tp5 { left: 44%; bottom: 4%; width: clamp(50px, 5vw, 80px); animation-delay: -.7s; }
@media (max-width: 700px) { .tp3, .tp5 { display: none; } .tc-prop { width: 64px; } .tp1 { top: 14%; } .tp2 { top: 12%; } }
.titlecard::after, .finale::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255,255,255,.18), transparent 55%, rgba(90,20,30,.28) 100%); }
.titlecard-in, .finale-in { position: relative; z-index: 1; }
.titlecard-in { position: relative; padding: 110px var(--gut) 70px; max-width: 1100px; }
.h-title { font-size: clamp(48px, 8vw, 128px); line-height: 1.02; letter-spacing: -.025em; margin: 18px 0 32px; text-shadow: 0 6px 0 #B92641, 0 14px 30px rgba(120,20,40,.35); }
.hand-light { font: 650 clamp(20px, 2vw, 26px)/1.3 var(--hand); font-variation-settings: 'INFM' 90; }
.check { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; padding-block: clamp(64px, 8vw, 110px); }
.check-frame { aspect-ratio: 16/10; position: sticky; top: 110px; }
.check-play { position: relative; }
.check-play .h3 { font-size: clamp(26px, 2.6vw, 38px); }
.check-help { margin: 14px 0 22px; color: var(--ink-2); }
.tf-big { --tf-gap: 10px; width: min(460px, 100%); padding: 16px; border-radius: 26px; background: #fff; box-shadow: var(--sh-1); }
.tf-big i { outline-width: 2px; }
.tf-big i.b-mint.new { animation: land 520ms var(--e-back); }
@keyframes land { 0% { scale: .5 1.4; } 55% { scale: 1.15 .85; } 100% { scale: 1; } }
.floor { display: flex; gap: 14px; min-height: 64px; margin: 18px 0 8px; padding-left: 16px; }
.floor .ball { width: 52px; height: 52px; touch-action: manipulation; transition: translate var(--t-micro) var(--e-back); animation: idle 2.4s steps(6) infinite; }
.floor .ball:nth-child(2) { animation-delay: -.8s; } .floor .ball:nth-child(3) { animation-delay: -1.6s; }
.floor .ball:hover { translate: 0 -6px; }
@keyframes idle { 50% { translate: 0 -3px; } }
.flying { position: fixed; z-index: 80; pointer-events: none; width: 52px; height: 52px; }
.eq-big { font: 800 clamp(32px, 3.4vw, 50px)/1 var(--display); margin: 10px 0 20px; min-height: 1.1em; }
.js .eq-big .eq-ans .right { opacity: 0; } .js .eq-big .eq-ans .wrong::after { scale: 0 1; }
.js .eq-big.solved .eq-ans .right { opacity: 1; animation: e-pop 520ms var(--e-back) both; animation-delay: 420ms; }
.js .eq-big.solved .eq-ans .wrong::after { scale: 1; transition: scale 300ms var(--e-out) 150ms; }
.check-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.link-again { font: 700 15px/1 var(--body); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.pn-check { position: relative; margin-top: 26px; max-width: 460px; font-size: 20px; rotate: -1.5deg; }
.pn-check svg { width: 70px; height: 44px; }

/* ═════════ СЦЕНЫ 04–07 · Кинопоказ ═════════ */
.sc-cinema { padding-top: clamp(64px, 7vw, 100px); }
.cinema-head { margin-bottom: 0; }
.cinema-stick { display: none; }
.cin-list { list-style: none; margin: 0 auto; padding: 30px var(--gut) clamp(40px, 5vw, 70px); max-width: var(--wrap); display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
.cin-item { position: relative; display: flex; flex-direction: column; gap: 10px; }
.cin-pic { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; box-shadow: 0 0 0 4px #fff, 0 10px 0 rgba(42,31,61,.12), 0 30px 60px -20px rgba(122,52,40,.35); margin-bottom: 8px; }
.cin-sub { font: 600 19px/1.35 var(--hand); font-variation-settings: 'INFM' 60; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; }
.cin-sub b { display: block; font: 700 11px/1 var(--hand); letter-spacing: .1em; text-transform: uppercase; color: #FFB08A; margin-bottom: 6px; }
.cin-note { font-size: 16px; color: var(--ink-2); padding: 16px 18px; border-radius: 6px 18px 6px 6px; background: #FFFDF8; box-shadow: var(--sh-1); rotate: .6deg; }
.cin-note b { color: var(--berry); font-family: var(--hand); }

.cine .cin-list { display: none; }
.cine .cinema { height: 420lvh; }
.cine .cinema-stick { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: clip; padding: 96px var(--gut) 30px; }
.cin-stage { position: relative; width: min(980px, 60vw); aspect-ratio: 16/10; flex: none; }
.cin-stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 40%; z-index: 3; pointer-events: none; background: linear-gradient(rgba(42,31,61,.55), rgba(42,31,61,0)); }
.cin-stage.flash::after { content: ""; position: absolute; inset: 0; z-index: 7; background: #fff; border-radius: inherit; animation: flash 200ms ease-out both; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.cin-shot { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms var(--e-out), translate 800ms var(--e-inout), rotate 800ms var(--e-inout), scale 800ms var(--e-out); }
.cin-shot img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--focus, 50% 50%); }
.cin-shot.on { opacity: 1; z-index: 1; }
.cin-shot.out-left { opacity: 0; translate: -40% 0; rotate: -4deg; transition-duration: 700ms; }
.cin-shot.in-right { translate: 40% 0; rotate: 4deg; opacity: 1; transition: none; }
.cin-shot.flip-out { opacity: 0; scale: .7; rotate: 8deg; }
.cin-shot.circle { opacity: 1; z-index: 2; clip-path: circle(0% at var(--ox, 72%) var(--oy, 48%)); transition: clip-path 900ms var(--e-out); }
.cin-shot.circle.open { clip-path: circle(150% at var(--ox, 72%) var(--oy, 48%)); }
.rings { position: absolute; z-index: 3; left: 72%; top: 44%; pointer-events: none; }
.rings i { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; border: 3px solid #fff; opacity: 0; }
.rings.go i { animation: ring 1.2s var(--e-out) both; } .rings.go i:nth-child(2) { animation-delay: .15s; } .rings.go i:nth-child(3) { animation-delay: .3s; }
@keyframes ring { 0% { scale: .2; opacity: 1; } 100% { scale: 4; opacity: 0; } }
.cin-stage.shake { animation: shake 280ms steps(7, end); }
@keyframes shake { 0% { translate: 0 0; } 15% { translate: -1.2% .6%; } 30% { translate: 1% -.8%; } 45% { translate: -.7% .4%; } 60% { translate: .5% -.3%; } 75% { translate: -.2% .2%; } 100% { translate: 0 0; } }
.oops { position: absolute; z-index: 5; left: 7%; top: 38%; transition: scale 250ms var(--e-in); padding: 6px 18px 10px; border-radius: 18px; background: #FFC53D; color: var(--ink);
  font: 800 clamp(30px, 3vw, 46px)/1 var(--display); box-shadow: 0 5px 0 #E09A12; scale: 0; rotate: -8deg; }
.oops.on { animation: oops 520ms var(--e-back) both; }
@keyframes oops { 0% { scale: 0; rotate: 12deg; } 30% { scale: .8 1.2; } 60% { scale: 1.1 .92; rotate: -10deg; } 100% { scale: 1; rotate: -8deg; } }
.cin-h { position: absolute; z-index: 4; left: 22px; top: 58px; max-width: 70%; font: 800 clamp(26px, 2.6vw, 40px)/1.05 var(--display); color: #fff; text-shadow: 0 3px 18px rgba(42,31,61,.45); }
.cin-h.swap { animation: e-rise 520ms var(--e-out) both; }
#cinSubs { bottom: 20px; }
.cin-dots { position: static; margin-right: 28px; display: grid; gap: 12px; }
.cin-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(42,31,61,.14); transition: scale var(--t-ui) var(--e-back), background var(--t-ui); }
.cin-dots i.on { scale: 1.5; --c: #F5475C; --cd: #C42B45; background: radial-gradient(circle at 32% 28%, #fff 0 7%, var(--c) 34%, var(--cd) 100%); }
.cin-dots i.seen { background: rgba(42,31,61,.35); }
.note { position: relative; z-index: 6; align-self: flex-end; margin: 0 0 9vh -56px; flex: none; width: 290px; padding: 30px 24px 22px;
  border-radius: 6px 22px 6px 6px; background: #FFFDF8; box-shadow: var(--sh-2); rotate: 2deg; }
.note.swap { animation: stick-on 620ms var(--e-back) both; }
@keyframes stick-on { 0% { opacity: 0; translate: 40px -30px; rotate: 12deg; } 100% { opacity: 1; translate: 0 0; rotate: 2deg; } }
.note-h { display: block; font: 700 22px/1.1 var(--hand); color: var(--berry); margin-bottom: 8px; font-variation-settings: 'INFM' 100; }
.note p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.magnet { position: absolute; left: 50%; top: -12px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; --c: #F5475C; --cd: #C42B45;
  background: radial-gradient(circle at 32% 28%, #fff 0 7%, var(--c) 34%, var(--cd) 100%); box-shadow: 0 4px 0 rgba(42,31,61,.18); }
.big55 { display: none; margin-top: 10px; font: 800 72px/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big55 small { display: block; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; -webkit-text-fill-color: var(--mute); margin-top: 6px; }
.big55.on { display: block; animation: e-pop 620ms var(--e-back) both; }

/* ═════════ СЦЕНА 08 · Отчёт ═════════ */
.sc-report { padding-block: clamp(56px, 7vw, 96px); }
.report-scene { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; margin-top: 40px; }
.report-frame { aspect-ratio: 16/10; }
.report-card { position: relative; z-index: 2; margin-left: -80px; padding: 30px 30px 26px; border-radius: 24px; background: #fff; box-shadow: var(--sh-2); rotate: 1.5deg; }
.rc-stars { font-size: 30px; letter-spacing: 4px; color: #FFC53D; text-shadow: 0 2px 0 #E09A12; }
.rc-h { font: 800 26px/1.1 var(--display); margin: 8px 0 14px; }
.report-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; } .report-card p b { color: var(--ink); }
.rc-adv { padding: 12px 14px; border-radius: 14px; background: var(--butter); }
.rc-ex { position: absolute; right: 20px; top: 22px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pn-report { position: absolute; left: auto; right: 24px; bottom: -72px; max-width: 280px; flex-direction: row; font-size: 20px; rotate: -3deg; }
.pn-report svg { width: 60px; height: 40px; scale: 1 -1; }

/* ═════════ СЦЕНА 09 · Дорога ═════════ */
.sc-map { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 60px; }
.road { position: relative; max-width: 1100px; margin: 20px auto 0; padding: 20px var(--gut) 40px; }
.road-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.road-base { fill: none; stroke: rgba(42,31,61,.22); stroke-width: 4; stroke-dasharray: 2 14; stroke-linecap: round; }
.road-done { fill: none; stroke: url(#gRoad); stroke-width: 6; stroke-linecap: round; }
.road-ball { position: absolute; left: 0; top: 0; z-index: 1; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: none;
  --c: #F5475C; --cd: #C42B45; background: radial-gradient(circle at 32% 28%, #fff 0 7%, var(--c) 34%, var(--cd) 100%); box-shadow: 0 6px 0 rgba(42,31,61,.15); }
.js .road-ball { display: block; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; position: relative; z-index: 2; }
.stop { display: flex; align-items: center; gap: 24px; width: min(620px, 100%); }
.stop:nth-child(even) { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.stop img { width: clamp(160px, 22vw, 290px); flex: none; filter: drop-shadow(0 16px 16px rgba(80,40,30,.18)); transition: translate 400ms var(--e-back); }
.stop img { animation: islefloat 6s ease-in-out infinite; }
.stop:nth-child(2) img { animation-delay: -1.5s; } .stop:nth-child(3) img { animation-delay: -3s; } .stop:nth-child(4) img { animation-delay: -4.5s; } .stop:nth-child(5) img { animation-delay: -2.2s; }
@keyframes islefloat { 50% { translate: 0 -8px; rotate: .8deg; } }
.stop.reached img { animation: land 620ms var(--e-back), islefloat 6s 620ms ease-in-out infinite; }
.stop-t { padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--sh-1); }
.stop-n { display: inline-flex; gap: 4px; } .stop:nth-child(even) .stop-n { justify-content: flex-end; }
.stop-n i { width: 12px; height: 12px; border-radius: 50%; --c: #F5475C; --cd: #C42B45; background: radial-gradient(circle at 32% 28%, #fff 0 7%, var(--c) 34%, var(--cd) 100%); }
.stop h3 { font-size: 24px; margin: 8px 0 8px; }
.stop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.stop-c { display: inline-block; margin-top: 10px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.road-end { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin-top: 30px; position: relative; z-index: 2; }
.road-end img { width: 150px; filter: drop-shadow(0 14px 10px rgba(80,40,30,.2)); }
.pn-end { position: static; font-size: 21px; rotate: -4deg; margin-bottom: 120px; }

/* ═════════ СЦЕНА 10 · Родителям + финал ═════════ */
.sc-parents { padding-top: clamp(56px, 7vw, 96px); }
.fridge { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; padding: 44px 32px 36px; border-radius: 32px;
  background: linear-gradient(90deg, transparent 0 70%, rgba(255,255,255,.55) 72%, transparent 76%), #F4F1EC; box-shadow: inset 0 0 0 1.5px rgba(42,31,61,.06), var(--sh-1); }
.memo { position: relative; padding: 30px 20px 22px; border-radius: 6px 18px 6px 6px; box-shadow: 0 2px 0 rgba(42,31,61,.06), 0 14px 26px -12px rgba(122,52,40,.3); transition: rotate var(--t-micro) var(--e-out), translate var(--t-micro) var(--e-out); }
.memo b { display: block; font: 800 19px/1.15 var(--display); margin-bottom: 8px; }
.memo p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.m1 { background: var(--butter); rotate: -3deg; } .m2 { background: var(--mint); rotate: 2deg; } .m3 { background: var(--lilac); rotate: -1.5deg; } .m4 { background: var(--peach); rotate: 3deg; }
.memo:hover { rotate: 0deg; translate: 0 -6px; }
.memo .magnet { top: -12px; }
.mg-sky { --c: #2C8FD6; --cd: #1B69A8; } .mg-butter { --c: #FFC53D; --cd: #E09A12; } .mg-berry { --c: #B01F73; --cd: #851455; }
.zero { position: relative; display: inline-block; font: 800 28px/1 var(--display); color: var(--ink); margin-right: 14px; }
.zero svg { position: absolute; left: -9px; top: -12px; width: 46px; height: 46px; fill: none; stroke: var(--berry); stroke-width: 2.4; stroke-linecap: round; }

.finale { position: relative; margin-top: clamp(80px, 10vw, 130px); padding-block: clamp(80px, 9vw, 130px); overflow: hidden; background: #FF7A3D; color: #fff; }
.finale-rays { position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; background: repeating-conic-gradient(from 0deg, #FF7A3D 0 7.5deg, #FF8F55 7.5deg 15deg); animation: spin 90s linear infinite reverse; }
.finale-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.finale-frame { aspect-ratio: 16/10; box-shadow: 0 30px 60px -20px rgba(120,40,10,.5); }
.h2-light { color: #fff; text-shadow: 0 5px 0 rgba(160,50,10,.45); }
.finale-p { font-size: var(--fs-lead); margin-bottom: 30px; opacity: .92; }
.finale-copy .tc { display: flex; margin-top: 18px; }

/* ═════════ Титры ═════════ */
.credits { position: relative; background: var(--night); color: #F6EFE6; padding: 110px var(--gut) calc(70px + env(safe-area-inset-bottom, 0px)); text-align: center; overflow: hidden; }
.cr-roll { max-width: 640px; margin: 0 auto; display: grid; gap: 22px; justify-items: center; }
.cr-logo img { width: auto; height: 84px; }
.cr-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #9C91B5; }
.cr-h { margin-top: 30px; font: 500 12px/1 var(--mono); letter-spacing: .2em; color: #9C91B5; }
.cr-cast { margin: 0; display: grid; gap: 12px; width: 100%; }
.cr-cast div { display: flex; align-items: baseline; gap: 10px; }
.cr-cast dt { font: 800 24px/1 var(--display); }
.cr-cast dd { margin: 0; flex: 1; text-align: right; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9C91B5; }
.cr-cast div::after { content: none; }
.cr-cast dt::after { content: ""; display: inline-block; width: 0; }
.cr-star { margin-top: 26px; font: 800 clamp(28px, 3.4vw, 44px)/1.1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.3); }
.cr-facts { font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #9C91B5; }
.cr-end { margin-top: 36px; font: 650 24px/1.2 var(--hand); font-variation-settings: 'INFM' 80; }
.cr-copy { margin-top: 30px; font-size: 13px; color: #9C91B5; }
.cr-buka { position: absolute; right: 6vw; bottom: 0; width: 170px; translate: 0 105%; transition: translate 700ms var(--e-back); }
.cr-buka.peek { translate: 0 18%; }

/* ═════════ адаптив ═════════ */
@media (max-width: 1100px) {
  .comic { left: 60%; } .cut-aiza { left: 44%; } .cut-buka { left: 64%; }
  .fridge { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .check-frame { position: relative; top: auto; }
  .rm-logo { transition: opacity 250ms, translate 350ms var(--e-out); }
  .scrolled .rm-logo { opacity: 0; translate: 0 -140%; pointer-events: none; }
  .subs-in { bottom: 8px; width: calc(100% - 16px); }
  .subs-in .sub-line { font-size: 14px; padding: 7px 12px 8px; border-radius: 12px; }
  .subs-in .sub-who { font-size: 10px; margin-bottom: 2px; }
  .cr-buka { width: 120px; right: 12px; bottom: 80px; }
  .cr-buka.peek { translate: 0 0; }
  .p-balloon { display: none !important; } .p-cake { bottom: 86px !important; }
  .remote { left: 16px; right: 16px; width: auto; translate: none; }
  .rm-logo { z-index: 50; }
  .hero-copy .h1 { font-size: 44px; margin: 12px 0 12px; }
  .hero-copy .lead { font-size: 15px; line-height: 1.45; }
  .facts, .comic { display: none; }
  .next { display: none; }
  .remote { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); height: 64px; padding: 0 8px 0 10px; gap: 8px; box-shadow: inset 0 0 0 1.5px rgba(42,31,61,.08), var(--sh-2); }
  .rm-logo { margin-left: 0; position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(255,247,236,.92); box-shadow: var(--sh-1); }
  .rm-word { width: auto; height: 24px; } .rm-mark { height: 58px; margin: -16px 0 -6px; }
  .rm-reel { margin-left: 0; padding: 6px; } .rm-scene { display: none; }
  .rm-sound-t { display: none; } .rm-sound { padding: 0 10px; }
  .remote .btn-go-s { margin-left: auto; flex: 1; justify-content: center; height: 48px; }
  .sc-hero .stick { min-height: 0; }
  .motion-ok .sc-hero { height: 140lvh; }
  .ly-bg { object-position: 64% 50%; }
  .ly-glow { background: linear-gradient(180deg, rgba(255,247,236,.97) 0 48%, rgba(255,247,236,0) 60%); }
  .hero-copy { left: 16px; right: 16px; width: auto; top: calc(78px + env(safe-area-inset-top, 0px)); translate: none; bottom: auto; justify-content: flex-start; }
  .hero-copy .lead { font-size: 16px; }
  .hero-cut { height: 37%; bottom: 20px; } .cut-aiza { left: 6%; } .cut-buka { left: 46%; height: 39%; }
  .comic { left: auto; right: 12px; top: auto; bottom: calc(96px + 42%); max-width: 190px; font-size: 15px; padding: 10px 14px; }
  .pn-hero, .p-cube, .next { display: none; }
  .p-balloon { width: 70px; top: auto; bottom: 44%; right: 4%; } .p-cake { width: 70px; bottom: 16px; right: 2%; }
  .hero-act { margin-top: 20px; } .hero-act .btn-go { flex: 1; justify-content: center; } .hero-act .btn-paper { display: none; }
  .facts { margin-top: 16px; font-size: 13px; gap: 6px 12px; }
  #heroSubs { bottom: 100px; }
  .cast { grid-template-columns: 1fr; gap: 50px; }
  .actor { grid-template-columns: .9fr 1fr; }
  .role { padding-bottom: 20px; } .actor::before { bottom: 12px; }
  .pn-a1, .pn-a2, .pn-b1, .pn-b2 { display: none; }
  .cast-extra { grid-template-columns: 1fr; }
  .check, .report-scene, .finale-in { grid-template-columns: 1fr; }
  .report-card { margin: -40px 12px 0; } .pn-report { position: relative; left: 0; bottom: 0; margin-top: 18px; }
  .cin-list { grid-template-columns: 1fr; }
  .stop, .stop:nth-child(even) { width: 100%; flex-direction: column; text-align: left; align-items: flex-start; margin-left: 0; }
  .stop:nth-child(even) { align-items: flex-end; text-align: right; } .stop:nth-child(even) .stop-n { justify-content: flex-end; }
  .stop img { width: 160px; }
  .credits { padding-bottom: calc(250px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cr-copy { max-width: 250px; margin-inline: 0 auto; text-align: left; }
  .extra-cat { flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .extra-cat .cat-peek { order: 2; width: 190px; margin: 4px auto -2px; }
  .cat-peek { width: 140px; } .host-peek { height: 130px; margin-bottom: -18px; }
  .role-name.role-sm { font-size: 22px; } .extra { padding: 18px; gap: 12px; } .mic { width: 52px; height: 52px; }
  .fridge { grid-template-columns: 1fr; padding: 34px 18px 24px; } .memo { rotate: 0deg !important; }
  .board-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .h-title { font-size: 44px; }
  .actor { grid-template-columns: 1fr 1.1fr; }
  .role-name { font-size: 36px; } .role-hand { font-size: 18px; }
  .tf-big { --tf-gap: 8px; padding: 12px; } .floor .ball { width: 50px; height: 50px; }
  .cr-cast dt { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rays, .finale-rays { animation: none; }
}

/* ⭐С274: подсказка, пока браузер не разрешил звук */
.voice-hint { position: fixed; z-index: 60; left: 50%; top: calc(96px + env(safe-area-inset-top, 0px)); translate: -50% 0;
  padding: 10px 18px; border: 0; border-radius: 999px; background: #2b2140; color: #fff; font: 600 15px/1.2 inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; animation: vhint 1.6s ease-in-out infinite; }
.voice-hint[hidden] { display: none; }
@keyframes vhint { 50% { scale: 1.05; } }
@media (prefers-reduced-motion: reduce) { .voice-hint { animation: none; } }
