/* «Неугомонное привидение» — промо. Палитра афиши: чёрный, серебро, розовый почерк Эльвиры. */
:root {
  --ink: #0b0a0d;
  --ink-2: #141218;
  --paper: #ece6dc;
  --muted: #9d97a3;
  --silver: #c6ccd6;
  --ghost: #9fd6ff;
  --pink: #ff4f8b;
  --pink-soft: #ff9fbf;
  --gold: #e2b56b;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Onest", system-ui, sans-serif;
  --hand: "Marck Script", cursive;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
/* ничего не должно расширять страницу вбок — иначе мобильный браузер «отъезжает» */
#page { overflow-x: clip; }
@supports not (overflow: clip) { #page { overflow: hidden; } }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 clamp(15px, 1.05vw, 17px)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ── depth system ── */
.scene { position: relative; isolation: isolate; }
.layer { position: absolute; inset: 0; }
.depth-0 { z-index: 0; } .depth-1 { z-index: 1; pointer-events: none; } .depth-2 { z-index: 2; pointer-events: none; }
.depth-3 { z-index: 3; } .depth-4 { z-index: 4; } .depth-5 { z-index: 5; pointer-events: none; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px; animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{background-position:0 0} 33%{background-position:-37px 21px} 66%{background-position:23px -41px} 100%{background-position:0 0} }

.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 80; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(circle, rgba(226,181,107,.16), transparent 60%);
  transition: opacity .6s;
}
@media (pointer: fine) { body.is-open .cursor-glow { opacity: 1; } }

.glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.glow--ghost { width: 60vmax; height: 60vmax; left: 50%; top: 45%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(159,214,255,.22), transparent 65%); }
.glow--warm { width: 70vmax; height: 50vmax; left: 50%; bottom: -20vmax; transform: translate(-50%, 0); background: radial-gradient(circle, rgba(226,181,107,.25), transparent 65%); }

.kicker { font: 500 12px/1.3 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hand { font-family: var(--hand); color: var(--pink); text-shadow: 0 0 24px rgba(255,79,139,.45); }

/* masked line reveal */
.mask-line { display: block; overflow: hidden; padding-bottom: .08em; }
.mask-line > span { display: inline-block; will-change: transform; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--pink { background: var(--pink); color: #1a0710; box-shadow: 0 10px 40px -10px rgba(255,79,139,.7); }
.btn--pink:hover { box-shadow: 0 16px 50px -10px rgba(255,79,139,.9); }
.btn--line { border-color: rgba(236,230,220,.35); color: var(--paper); background: rgba(255,255,255,.03); }
.btn--line:hover { border-color: var(--paper); }
.btn--ghost { border-color: var(--ghost); color: var(--ghost); background: rgba(159,214,255,.06); }

/* candle (CSS flame) */
.candle { position: relative; display: block; width: 14px; height: 44px; border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, #cfc6b6, #f4eee2 45%, #b9b0a0); }
.candle::before { /* flame */
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 12px; height: 22px; margin-left: -6px;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 18%, #ffd27a 35%, #ff8a3d 65%, transparent 72%);
  transform-origin: 50% 100%; opacity: 0; scale: .2;
  transition: opacity .5s, scale .5s var(--ease);
}
.candle::after { /* halo */
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 120px; height: 120px; margin: 0 0 -50px -60px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,190,100,.35), transparent 65%); opacity: 0; transition: opacity .8s;
}
.is-lit .candle::before, .candle.is-lit::before { opacity: 1; scale: 1; animation: flicker 2.4s ease-in-out infinite; }
.is-lit .candle::after, .candle.is-lit::after { opacity: 1; }
@keyframes flicker { 0%,100%{transform:rotate(-2deg) scaleY(1)} 25%{transform:rotate(3deg) scaleY(1.08)} 50%{transform:rotate(-1deg) scaleY(.94)} 75%{transform:rotate(2deg) scaleY(1.05)} }

/* sound button */
.sound-btn { position: fixed; right: 16px; top: 16px; z-index: 70; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236,230,220,.25); background: rgba(11,10,13,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; }
.sound-btn__bars { display: flex; gap: 3px; align-items: flex-end; height: 14px; }
.sound-btn__bars i { width: 3px; height: 4px; background: var(--paper); border-radius: 2px; }
.sound-btn[aria-pressed="true"] .sound-btn__bars i { animation: bars 1s ease-in-out infinite; }
.sound-btn__bars i:nth-child(2) { animation-delay: -.3s !important; } .sound-btn__bars i:nth-child(3) { animation-delay: -.6s !important; }
@keyframes bars { 0%,100%{height:4px} 50%{height:14px} }

.demo-flag { position: fixed; left: 12px; bottom: 10px; z-index: 70; font-size: 11px; letter-spacing: .08em; color: var(--muted); opacity: .7; pointer-events: none; }

/* ── runner (Эдит) ── */
.runner { position: fixed; left: 0; bottom: 6svh; z-index: 60; pointer-events: none; transform: translateX(-40vw); }
.runner img { width: clamp(110px, 16vw, 200px); filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.runner__note { position: absolute; left: 100%; top: 10%; white-space: nowrap; font: 22px var(--hand); color: var(--pink); opacity: 0; }

/* ═════════ 0 · GATE ═════════ */
.gate { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; background: var(--ink); text-align: center; padding: var(--gutter); }
.gate__smoke {
  background:
    radial-gradient(40% 30% at 30% 70%, rgba(159,214,255,.10), transparent 70%),
    radial-gradient(35% 25% at 70% 30%, rgba(198,204,214,.08), transparent 70%);
  animation: smoke 14s ease-in-out infinite alternate;
}
@keyframes smoke { to { transform: translate(3%, -4%) scale(1.15); } }
.gate__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 560px; }
.gate__from { font: 500 13px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gate__title { font: 400 clamp(44px, 9vw, 96px)/1 var(--serif); letter-spacing: -.01em; }
.gate__name { display: block; font: 400 .5em/1.2 var(--hand); color: var(--pink); }
.gate__name:empty { display: none; }
.gate__ask { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.gate__input { width: min(280px, 80vw); padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(236,230,220,.25); background: rgba(255,255,255,.04); color: var(--paper); text-align: center; font: 16px var(--sans); }
.gate__input:focus { outline: none; border-color: var(--pink); }
.hold { position: relative; width: 168px; height: 168px; border-radius: 50%; border: 0; background: radial-gradient(circle, rgba(255,79,139,.12), rgba(255,255,255,.02) 70%); display: grid; place-content: center; gap: 4px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .3s var(--ease); }
.hold:active { transform: scale(.96); }
.hold__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.hold__ring circle { fill: none; stroke: rgba(236,230,220,.18); stroke-width: 2; }
.hold__ring .hold__prog { stroke: var(--pink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 352; stroke-dashoffset: 352; filter: drop-shadow(0 0 6px var(--pink)); }
.hold__pinkies { display: grid; justify-items: center; padding-top: 18px; }
.hold__pinkies .candle { width: 8px; height: 22px; }
.hold__pinkies .candle::before { width: 9px; height: 16px; margin-left: -4.5px; }
.hold__pinkies .candle::after { width: 80px; height: 80px; margin: 0 0 -34px -40px; }
.hold.is-holding .candle::before, .hold.is-holding .candle::after { opacity: 1; scale: 1; animation: flicker 1.2s ease-in-out infinite; }
.hold__label { font: 600 13px/1.2 var(--sans); letter-spacing: .06em; max-width: 110px; }
.gate__hint { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.gate__arcati { font: italic 400 clamp(20px, 3vw, 28px)/1.3 var(--serif); color: var(--gold); min-height: 1.3em; }

/* ═════════ 1 · FOG ═════════ */
.fog { height: 100svh; min-height: 560px; overflow: hidden; }
.fog__room { position: absolute; inset: -5%; background: url("assets/parlor.webp") center/cover; filter: blur(10px) brightness(.28) saturate(.7); transform: scale(1.1); }
.fog__stage { display: grid; place-items: center; padding: 6svh var(--gutter) 30svh; }
.mirror {
  position: relative; width: min(64svh, 86vw, 520px); aspect-ratio: 4 / 5;
  border-radius: 50% 50% 14px 14px / 34% 34% 14px 14px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(226,181,107,.55), 0 0 0 10px rgba(20,16,12,.9), 0 0 0 12px rgba(226,181,107,.35), 0 40px 120px -20px rgba(0,0,0,.9), 0 0 120px -20px rgba(159,214,255,.25);
  background: #050507;
}
.mirror__push { position: absolute; inset: 0; transform-origin: 50% 38%; }
.mirror__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mirror__img--up { opacity: 0; }
/* призрак: тёмный фон видео «уходит» в режиме screen — сквозь Эльвиру видна гостиная */
.mirror__room { position: absolute; inset: -6%; background: url("assets/parlor.webp") 40% 60%/cover; filter: blur(6px) brightness(.32) saturate(.8); }
.mirror__vid, .mirror__img--up { mix-blend-mode: screen; }
.mirror__push.is-ghost { animation: ghostflick 5.5s steps(1, end) infinite; }
@keyframes ghostflick { 0%{opacity:.94} 12%{opacity:.78} 14%{opacity:.95} 46%{opacity:.86} 48%{opacity:.72} 50%{opacity:.92} 78%{opacity:.82} 100%{opacity:.94} }
.sparkle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.mirror__fog { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.mirror__fog:active { cursor: grabbing; }
.mirror__hint { position: absolute; left: 50%; bottom: 14%; transform: translate(-50%, 0); font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: #1d2430; pointer-events: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.fog__talk { top: auto; bottom: 0; height: auto; padding: 0 var(--gutter) max(28px, 5svh); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.hand--hello { font-size: clamp(48px, 8vw, 92px); line-height: 1; opacity: 0; }
.hand__name:not(:empty)::before { content: ", "; }
.hand--q { font-size: clamp(26px, 3.6vw, 40px); opacity: 0; }
.fog__rule { font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: 0; }
.fog__answers { display: flex; gap: 14px; opacity: 0; visibility: hidden; }
.knock-btn { min-width: 112px; min-height: 52px; border-radius: 999px; border: 1px solid rgba(236,230,220,.35); background: rgba(11,10,13,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 600 16px var(--sans); letter-spacing: .04em; transition: background .3s, border-color .3s; }
.knock-btn:hover { border-color: var(--pink); background: rgba(255,79,139,.12); }
.fog__reply { font: italic 400 18px/1.4 var(--serif); color: var(--gold); min-height: 1.4em; }
.fog__skip { position: absolute; z-index: 6; right: 76px; top: 26px; border: 0; background: none; font-size: 12px; letter-spacing: .1em; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.fog.is-done .fog__skip { display: none; }
.candles--fog { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 0); display: flex; gap: 46vw; opacity: .9; }
.candles--fog .candle { height: 70px; width: 18px; }
@media (max-width: 700px) {
  .candles--fog { gap: 80vw; } .candles--fog .candle:nth-child(2) { display: none; }
  .candles--fog .candle { height: 44px; width: 12px; }
  /* телефон: зеркало сверху, текст и кнопки под ним — без наложений */
  .fog__stage { place-items: start center; padding: max(56px, 7svh) var(--gutter) 0; }
  .mirror { width: min(76vw, 40svh); }
  .fog__talk { gap: 8px; padding-bottom: max(24px, 4svh); }
  .hand--hello { font-size: clamp(32px, 9.5vw, 46px); }
  .hand--q { font-size: clamp(20px, 6vw, 26px); }
  .fog__rule { font-size: 10px; letter-spacing: .14em; }
  .fog__skip { right: 68px; top: 24px; }
  .scroll-cue { display: none; }
  .runner { bottom: 3svh; }
  .runner img { width: 84px; }
  .runner__note { font-size: 17px; }
}

.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 0); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); opacity: 0; pointer-events: none; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--paper), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%{scale:1 0} 50%{scale:1 1} 100%{scale:1 0; transform-origin: bottom} }

/* shake when table knocks */
.knock { animation: knock .32s cubic-bezier(.36,.07,.19,.97); }
@keyframes knock { 20%{transform:translate(-6px,3px)} 40%{transform:translate(6px,-4px)} 60%{transform:translate(-4px,2px)} 80%{transform:translate(3px,-1px)} }

/* ═════════ 2 · TITLE ═════════ */
.title__pin { position: relative; height: 100svh; overflow: hidden; perspective: 1200px; }
.title__room { position: absolute; inset: -8%; background: url("assets/parlor.webp") center/cover; transform-origin: 50% 58%;  will-change: transform; }
.title__dim { position: absolute; inset: 0; background: #000; opacity: .65; will-change: opacity; }
.title__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(11,10,13,.25), rgba(11,10,13,.92) 75%), linear-gradient(rgba(11,10,13,.9), transparent 30%, transparent 70%, var(--ink)); }
.glow--warm { opacity: .9; }
.title__pin .glow--warm { animation: candle 3.4s steps(1, end) infinite; }
@keyframes candle { 0%{opacity:.85} 18%{opacity:1} 31%{opacity:.78} 47%{opacity:.95} 63%{opacity:.82} 80%{opacity:1} }
.mist { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 50%; background: radial-gradient(50% 60% at 30% 70%, rgba(198,204,214,.16), transparent 70%), radial-gradient(40% 50% at 75% 80%, rgba(159,214,255,.12), transparent 70%); animation: smoke 18s ease-in-out infinite alternate; }
.title__type { will-change: transform, opacity; display: grid; place-content: center; text-align: center; padding: 0 var(--gutter); }
.title__theatre { font: 500 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--silver); margin-bottom: 2vh; }
.title__logo { position: relative; display: grid; justify-items: center; line-height: .9; }
.title__script { font: 400 clamp(46px, 9vw, 130px)/1 var(--hand); color: var(--pink); text-shadow: 0 0 40px rgba(255,79,139,.55); transform: rotate(-6deg); margin-bottom: -.25em; position: relative; z-index: 2; }
.title__big { position: relative; font: 900 clamp(36px, 11.6vw, 210px)/.9 var(--serif); letter-spacing: -.02em; color: var(--paper); text-shadow: 0 10px 60px rgba(0,0,0,.8); }
.title__big::after { content: attr(data-ghost); position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 1px rgba(159,214,255,.55); transform: translate(.04em, -.05em); filter: blur(1px); opacity: .7; animation: ghostshift 6s ease-in-out infinite alternate; }
@keyframes ghostshift { to { transform: translate(-.05em, .04em); opacity: .35; } }
.title__sub { margin-top: 3vh; font: 400 clamp(15px, 1.4vw, 19px)/1.5 var(--sans); color: var(--silver); letter-spacing: .04em; }
.title__sub em { font-style: normal; color: var(--pink); }
.title__party { display: grid; place-content: center; text-align: center; padding: 0 var(--gutter); opacity: 0; }
.party__line { font: 400 clamp(40px, 8vw, 120px)/1.02 var(--serif); }
.party__line .w-r { font-style: italic; color: var(--gold); }
.split > span { display: inline-block; }
.party__note { margin: 4vh auto 0; max-width: 34ch; color: var(--silver); font-size: clamp(16px, 1.3vw, 19px); }
.dust { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,230,190,.7), transparent), radial-gradient(1px 1px at 70% 60%, rgba(255,230,190,.6), transparent), radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,230,190,.5), transparent), radial-gradient(1px 1px at 85% 20%, rgba(255,230,190,.6), transparent), radial-gradient(1px 1px at 55% 45%, rgba(255,230,190,.5), transparent); background-size: 420px 420px; animation: dust 30s linear infinite; opacity: .8; }
.dust--sparse { opacity: .4; }
@keyframes dust { to { background-position: 120px -420px; } }

/* ═════════ 3 · CAST ═════════ */
.cast__pin { position: relative; height: 100svh; overflow: hidden; }
.cast__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, #1d1720, var(--ink) 65%); }
.glow--cast { width: 50vmax; height: 50vmax; left: 20%; top: 30%; background: radial-gradient(circle, rgba(255,79,139,.12), transparent 65%); }
.cast__head { position: absolute; inset: auto auto auto 0; top: 8svh; padding: 0 var(--gutter); }
.cast__head h2 { font: 400 clamp(32px, 4.6vw, 64px)/1.05 var(--serif); }
.cast__track { position: absolute; inset: auto; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding: 22svh var(--gutter) 6svh calc(var(--gutter) + 2vw); width: max-content; }
.card { position: relative; flex: none; width: min(78vw, 820px); height: min(64svh, 560px); display: grid; grid-template-columns: 1fr 1.05fr; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #1b171e, #0f0d12); border: 1px solid rgba(236,230,220,.08); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.card__photo { position: relative; overflow: hidden; }
.card__media { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform-origin: 50% 20%; }
.card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #17141a); }
.card__body { padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.card__role { font: 500 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.card h3 { font: 700 clamp(34px, 4vw, 60px)/1 var(--serif); }
.card blockquote { margin: 0; font: italic 400 clamp(18px, 1.7vw, 24px)/1.35 var(--serif); color: var(--paper); }
.card__text { color: var(--muted); font-size: 15px; }
.card__actor { margin-top: auto; font-size: 13px; color: var(--silver); }
.card__actor::before { content: "Играет · "; color: var(--muted); }
.card--ghost { background: linear-gradient(160deg, #18202a, #0e1116); border-color: rgba(159,214,255,.25); box-shadow: 0 0 80px -20px rgba(159,214,255,.35), 0 40px 80px -30px rgba(0,0,0,.8); }
.card--ghost h3 { color: var(--ghost); text-shadow: 0 0 30px rgba(159,214,255,.6); }
.card--ghost .card__media { mix-blend-mode: screen; filter: saturate(.7) brightness(1.08); animation: ghostcard 5s ease-in-out infinite; }
.card--ghost .card__photo { background: radial-gradient(ellipse at 50% 40%, #223044, #0e1116 70%); }
.card--ghost .card__photo::after { background: linear-gradient(90deg, transparent 60%, #141a22); }
@keyframes ghostcard { 50% { opacity: .72; filter: saturate(.5) brightness(1.2) blur(.5px); } }
.cast__progress { inset: auto var(--gutter) 4svh; height: 1px; background: rgba(236,230,220,.15); }
.cast__progress i { display: block; height: 100%; width: 100%; background: var(--pink); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .card { grid-template-columns: 1fr; grid-template-rows: 48% 1fr; width: 84vw; height: min(70svh, 600px); }
  .card__body { padding: 18px 20px 20px; }
  .card h3 { font-size: clamp(28px, 8.5vw, 38px); }
  .card blockquote { font-size: 16px; }
  .card__text { font-size: 13px; line-height: 1.45; }
  .card__role { font-size: 10px; letter-spacing: .16em; }
  .card__photo::after { background: linear-gradient(transparent 55%, #17141a); }
  .card--ghost .card__photo::after { background: linear-gradient(transparent 55%, #141a22); }
  .card__body { gap: 8px; justify-content: flex-start; }
  .card__text { font-size: 14px; }
  .cast__track { padding-top: 20svh; }
}

/* ═════════ 4 · PLOT ═════════ */
.plot { padding: 22svh 0; }
.plot__bg { position: absolute; inset: 0; background: linear-gradient(var(--ink), #0e1016 50%, var(--ink)); }
.glow--plot { opacity: .6; }
.plot__inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.lit { font: 400 clamp(30px, 4.4vw, 64px)/1.18 var(--serif); }
.lit .w { opacity: .14; transition: none; }
.plot__count { list-style: none; margin: 12svh 0 0; padding: 0; font: 900 clamp(40px, 8vw, 120px)/1 var(--serif); letter-spacing: -.02em; }
.plot__count li:nth-child(2) { padding-left: 10vw; }
.plot__count li:nth-child(3) { padding-left: 20vw; color: var(--pink); }
.plot__bleed { position: relative; margin: 14svh 0 0; font: italic 400 clamp(30px, 5.6vw, 84px)/1.1 var(--serif); color: var(--ghost); text-shadow: 0 0 40px rgba(159,214,255,.45); }
.plot__bleed::after { content: attr(data-ghost); position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 1px rgba(159,214,255,.4); transform: translate(10px, -8px); filter: blur(2px); opacity: .5; }
.plot__tag { margin-top: 8svh; font: 500 12px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ═════════ 5 · POLTERGEIST ═════════ */
.pg__pin { position: relative; height: 100svh; overflow: hidden; }
.pg__wall { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink), #26262b 28%, #1d1d21); }
.pg__wall::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 120px, rgba(255,255,255,.025) 120px 122px); }
.pg__paint { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg__flicker { position: absolute; inset: 0; background: #fff; opacity: 0; mix-blend-mode: overlay; }
.pg__sheet { display: grid; place-content: center; padding: 0 var(--gutter); }
.pg__kicker { color: var(--silver); }
.pg__h { font: 400 clamp(34px, 5vw, 72px)/1.1 var(--serif); margin-bottom: 5svh; position: relative; }
.pg__strike { position: relative; display: inline-block; }
/* след помады: восковой штрих + блик, тюбик едет по траектории */
.lip { opacity: 0; position: absolute; left: -5%; top: 18%; width: 110%; height: 70%; overflow: visible; pointer-events: none; }
.lip__path, .lip__sheen { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lip__path { stroke: #c2185b; stroke-width: 13; filter: url(#wax); opacity: .92; }
.lip__sheen { stroke: #ff7eb0; stroke-width: 3; opacity: .7; }
.lip__tube { position: absolute; left: 0; top: 0; width: clamp(60px, 7vw, 100px); margin: calc(clamp(60px, 7vw, 100px) * -.9) 0 0 calc(clamp(60px, 7vw, 100px) * -.12); opacity: 0; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.hand--pg { display: block; font-size: .9em; opacity: 0; color: #b5124f; text-shadow: 0 1px 0 rgba(255,190,215,.5), 0 2px 6px rgba(120,0,40,.35); transform: rotate(-4deg); margin-top: .1em; }
.pg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 14px; }
.pg__item { padding: 18px 20px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 4px; will-change: transform; }
.pg__item b { font: 500 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pg__item span { font: 400 20px/1.2 var(--serif); }
@media (max-width: 700px) { .pg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pg__item span { font-size: 17px; } }
.prop { position: absolute; left: var(--x); top: var(--y); width: clamp(70px, 10vw, 150px); filter: drop-shadow(0 0 16px rgba(159,214,255,.55)) drop-shadow(0 24px 30px rgba(0,0,0,.55)); opacity: 0; }
.hand--note { position: absolute; font-size: clamp(26px, 3.6vw, 48px); opacity: 0; }
.n1 { left: 6%; top: 10%; transform: rotate(-8deg); }
.n2 { right: 8%; bottom: 12%; transform: rotate(6deg); color: #b5124f; text-shadow: 0 1px 0 rgba(255,190,215,.5); }

/* ═════════ 6 · DATES ═════════ */
.dates { padding: 18svh 0 16svh; }
.dates__bg { position: absolute; inset: 0; background: linear-gradient(#c84a77 0, #2a1420 14svh, var(--ink) 40svh); }
.glow--dates { bottom: auto; top: 30%; opacity: .5; }
.dates__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.dates__inner h2 { font: 400 clamp(38px, 6vw, 88px)/1 var(--serif); margin-bottom: 6svh; }
.countdown { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; padding: 26px 0; border-top: 1px solid rgba(236,230,220,.15); border-bottom: 1px solid rgba(236,230,220,.15); margin-bottom: 5svh; }
.countdown__label { color: var(--silver); }
.countdown__label b { color: var(--paper); font-weight: 600; }
.countdown__nums { display: flex; gap: clamp(16px, 3vw, 40px); }
.countdown__nums span { display: grid; justify-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.countdown__nums b { font: 400 clamp(34px, 4.6vw, 62px)/1 var(--serif); color: var(--paper); font-variant-numeric: tabular-nums; }
.shows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.show { position: relative; border-radius: 16px; padding: 22px 22px 20px; background: rgba(255,255,255,.035); border: 1px solid rgba(236,230,220,.12); display: grid; gap: 4px; transition: border-color .3s, transform .4s var(--ease), background .3s; }
.show:not(.is-sold):hover { border-color: var(--pink); transform: translateY(-4px); background: rgba(255,79,139,.06); }
.show__date { font: 400 30px/1.1 var(--serif); }
.show__meta { color: var(--muted); font-size: 14px; }
.show__buy { margin-top: 14px; justify-self: start; min-height: 44px; padding: 0 20px; font-size: 14px; }
.show.is-next { border-color: rgba(255,79,139,.6); box-shadow: 0 0 60px -20px rgba(255,79,139,.6); }
.show.is-next::before { content: "Ближайший"; position: absolute; top: -10px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--pink); color: #1a0710; font: 600 11px/1.4 var(--sans); letter-spacing: .08em; }
.show.is-sold { opacity: .55; }
.show.is-sold .show__date { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.show__sold { margin-top: 14px; font: 22px/1.2 var(--hand); color: var(--pink); }
.dates__note { margin-top: 5svh; color: var(--muted); max-width: 52ch; }

/* ═════════ 7 · QUIZ ═════════ */
.quiz { padding: 16svh 0; }
.quiz__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, #161b24, var(--ink) 60%); }
.glow--quiz { top: 60%; opacity: .5; }
.quiz__inner { position: relative; max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.quiz__inner h2 { font: 400 clamp(36px, 5.4vw, 80px)/1.02 var(--serif); margin-bottom: 5svh; }
.quiz__box { position: relative; min-height: 420px; border-radius: 24px; padding: clamp(24px, 4vw, 52px); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(236,230,220,.1); perspective: 1400px; }
.quiz__start { display: grid; gap: 28px; justify-items: start; font: italic 400 clamp(20px, 2vw, 26px)/1.4 var(--serif); color: var(--silver); max-width: 40ch; }
.quiz__step { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.quiz__text { font: 400 clamp(24px, 2.8vw, 38px)/1.2 var(--serif); margin-bottom: 26px; }
.quiz__opts { display: grid; gap: 10px; }
.opt { text-align: left; padding: 15px 20px; border-radius: 14px; border: 1px solid rgba(236,230,220,.14); background: rgba(11,10,13,.4); font: 400 16px/1.4 var(--sans); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.opt:hover { border-color: var(--ghost); background: rgba(159,214,255,.07); transform: translateX(6px); }
.quiz__res { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.res__photo { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.res__photo img { width: 100%; height: 100%; object-fit: cover; }
.res__kicker { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.res__name { font: 700 clamp(40px, 5vw, 72px)/1 var(--serif); margin: 10px 0 16px; }
.res__text { color: var(--silver); margin-bottom: 18px; }
.res__bring { font: 400 clamp(22px, 2.2vw, 30px)/1.25 var(--hand); color: var(--pink); margin-bottom: 26px; }
.res__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) { .quiz__res { grid-template-columns: 1fr; } .res__photo { max-width: 260px; } }

/* ═════════ 8 · CIRCLE ═════════ */
.circle { padding: 16svh 0; text-align: center; }
.circle__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, #1c1612, var(--ink) 60%); }
.glow--circle { bottom: auto; top: 40%; }
.circle__inner { position: relative; max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); display: grid; justify-items: center; }
.circle__h { font: 400 clamp(34px, 5.6vw, 84px)/1.05 var(--serif); }
.circle__h .w-r { font-style: italic; color: var(--gold); }
.circle__lead { margin: 3svh auto 0; max-width: 52ch; color: var(--silver); }
.circle__lead b { color: var(--paper); }
.table { position: relative; width: min(440px, 80vw); aspect-ratio: 1; margin: 7svh auto 4svh; }
.table__top { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a2a1e, #1c130d 70%); box-shadow: inset 0 0 40px rgba(0,0,0,.8), 0 30px 60px -10px rgba(0,0,0,.9), 0 0 0 6px #2a1d14; }
.seat { position: absolute; display: grid; justify-items: center; gap: 8px; transform: translate(-50%, -50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seat .candle { height: 54px; }
.seat.is-lit span { color: var(--paper); }
.seat[data-seat="0"] { left: 50%; top: 88%; } .seat[data-seat="1"] { left: 10%; top: 50%; } .seat[data-seat="2"] { left: 50%; top: 10%; } .seat[data-seat="3"] { left: 90%; top: 50%; }
.table__count { position: absolute; inset: 0; display: grid; place-content: center; font: 400 18px var(--serif); color: var(--silver); }
.table__count b { font-size: 56px; line-height: 1; color: var(--gold); }
.circle__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.circle__copied { min-height: 1.5em; margin-top: 12px; font-size: 14px; color: var(--gold); }
.reward { margin-top: 4svh; padding: 34px clamp(24px, 5vw, 60px); border-radius: 24px; background: radial-gradient(circle at 50% 0%, rgba(255,79,139,.25), rgba(255,79,139,.05) 70%); border: 1px solid rgba(255,79,139,.5); clip-path: circle(0% at 50% 50%); }
.reward__k { font: 32px/1.2 var(--hand); color: var(--pink); }
.reward__code { margin: 8px 0; font: 700 clamp(30px, 5vw, 52px)/1.1 var(--serif); letter-spacing: .06em; user-select: all; }
.reward__t { color: var(--silver); font-size: 14px; }

/* ═════════ 9 · FINAL ═════════ */
.final { padding: 20svh 0 14svh; overflow: hidden; text-align: center; }
.final__bg { position: absolute; inset: 0; background: linear-gradient(var(--ink), #0d0f15); }
.final__inner { position: relative; z-index: 4; padding: 0 var(--gutter); display: grid; justify-items: center; gap: 4svh; }
.hand--final { font-size: clamp(30px, 4vw, 52px); transform: rotate(-4deg); }
.final__h { font: 400 clamp(34px, 5.6vw, 84px)/1.08 var(--serif); }
.final__ghost { color: var(--ghost); font-style: italic; text-shadow: 0 0 40px rgba(159,214,255,.5); }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final__addr { font-style: normal; color: var(--muted); font-size: 14px; line-height: 1.7; }
.final__big { position: absolute; left: 50%; bottom: -.18em; z-index: 1; font: 900 22vw/1 var(--serif); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(159,214,255,.12); white-space: nowrap; pointer-events: none; }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .runner { display: none; }
}

/* низкие экраны телефонов: убираем второстепенный текст в карточках героев */
@media (max-width: 700px) and (max-height: 700px) {
  .card__text { display: none; }
  .card { grid-template-rows: 52% 1fr; }
}
.mirror__hint { white-space: nowrap; }

/* телефон: подсказка прокрутки дублирует ответ Эльвиры и налезает на него */
@media (max-width: 700px) {
  .scroll-cue { display: none !important; }
  /* даты: компактная карточка — дата слева, кнопка справа */
  .shows { gap: 10px; }
  .show { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 16px 18px; }
  .show__date { font-size: 24px; }
  .show__meta { grid-column: 1; font-size: 13px; }
  .show__buy, .show__sold { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .show__buy { padding: 0 16px; min-height: 42px; font-size: 13px; }
  .show__sold { font-size: 17px; max-width: 9em; text-align: right; line-height: 1.1; }
  .countdown__nums b { font-size: 30px; }
}

/* телефон: убираем дорогие размытия в титуле — они дают рывки при прокрутке */
@media (max-width: 700px), (pointer: coarse) {
  .title__big::after { filter: none; animation: none; }
  .title__big { text-shadow: 0 6px 24px rgba(0,0,0,.8); }
  .title__script { text-shadow: 0 0 18px rgba(255,79,139,.5); }
}

/* логотип театра «Миссис ЛО» (белые линии на прозрачном) */
.gate__logo { width: clamp(100px, 11vw, 140px); height: auto; opacity: .92; filter: drop-shadow(0 0 18px rgba(236,230,220,.18)); }
.title__theatre { display: grid; justify-items: center; gap: 1.2vh; }
.title__brand { width: clamp(110px, 11vw, 160px); height: auto; filter: drop-shadow(0 0 24px rgba(0,0,0,.8)) drop-shadow(0 0 14px rgba(236,230,220,.15)); }
.final__logo { width: clamp(110px, 10vw, 140px); height: auto; opacity: .85; }
@media (max-height: 700px) { .gate__logo { width: 84px; } .title__brand { width: 96px; } }
