:root {
  --night: #161A33;
  --night-2: #232A55;
  --moon: #F3E9CF;
  --paper: #E9DDBF;
  --paper-2: #D6C59C;
  --ink: #251F1A;
  --ink-soft: #6A5C4C;
  --chakra: #FF7A1A;
  --chakra-deep: #C4540A;
  --rasen: #6FD0FF;
  --seal: #C2302A;
  --haori: #4E7A4B;
  --mist: #A9AED0;
  --text: #EEF0FA;

  --display: "Rubik Dirt", "Rubik", system-ui, sans-serif;
  --ui: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --kanji: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--night);
  color: var(--text);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, .seal:focus-visible { outline: 3px solid var(--rasen); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ---------- ночное небо ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 130% 55% at 50% -12%, #303A7A 0%, rgba(48,58,122,0) 62%),
    linear-gradient(#161A33, #10132A); }
.stars { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%; }
.moon { position: absolute; right: -44px; top: -36px; width: 140px; height: 140px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at 40% 40%, #FFF7E2, var(--moon) 55%, #D9CBA5);
  box-shadow: 0 0 80px 20px rgba(243,233,207,.14); opacity: .9; }

#app { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; }
.scene { min-height: 100vh; min-height: 100dvh; padding: 20px 16px 56px; display: flex; flex-direction: column; gap: 22px; position: relative; }

/* ---------- типографика ---------- */
.display { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: .005em; }
.pre { font-family: var(--serif); font-style: italic; color: var(--mist); margin: 0; font-size: 18px; }
.lead { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: #D9DCEE; margin: 0; }
.kanji { font-family: var(--kanji); font-weight: 400; line-height: 1; }

/* ---------- кнопки ---------- */
.btn { align-self: stretch; border: 0; border-radius: 14px; padding: 17px 22px; font-family: var(--ui); font-weight: 700; font-size: 18px;
  background: var(--chakra); color: #1B1205; box-shadow: inset 0 -4px 0 var(--chakra-deep), 0 10px 24px rgba(255,122,26,.25);
  transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--chakra-deep), 0 6px 14px rgba(255,122,26,.2); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgba(169,174,208,.45); }
.btn.small { padding: 13px 18px; font-size: 16px; margin-top: 14px; width: 100%; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 6px 0; color: var(--mist); font-family: var(--serif); font-style: italic; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(169,174,208,.4); }
.appear { animation: appear .55s cubic-bezier(.2,.7,.3,1) both; }
@keyframes appear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- бумага ---------- */
.paper { background: var(--paper); color: var(--ink); border-radius: 4px; padding: 22px 20px;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(120,90,40,.07), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(120,90,40,.08), transparent 45%),
    repeating-linear-gradient(97deg, rgba(90,70,40,.035) 0 2px, transparent 2px 7px);
  box-shadow: 0 18px 40px rgba(0,0,0,.4); }

/* голос: текст на бумажной полоске */
.slip { position: relative; font-family: var(--serif); font-size: 19px; line-height: 1.58; cursor: pointer; transform: rotate(-.6deg);
  clip-path: polygon(0 3px, 6% 0, 14% 4px, 27% 1px, 41% 4px, 55% 0, 68% 3px, 82% 0, 93% 4px, 100% 1px, 100% calc(100% - 3px), 91% 100%, 78% calc(100% - 4px), 63% 100%, 47% calc(100% - 3px), 33% 100%, 19% calc(100% - 4px), 7% 100%, 0 calc(100% - 2px)); }
.slip .w { opacity: .26; transition: opacity .28s ease; }
.slip .w.on { opacity: 1; }
.slip::after { content: ""; position: absolute; right: 14px; bottom: 12px; width: 18px; height: 12px; opacity: 0;
  background: linear-gradient(var(--ink-soft), var(--ink-soft)) 0 100%/3px 40% no-repeat, linear-gradient(var(--ink-soft), var(--ink-soft)) 7px 100%/3px 90% no-repeat, linear-gradient(var(--ink-soft), var(--ink-soft)) 14px 100%/3px 60% no-repeat; }
.slip.speaking::after { opacity: .7; animation: bars .9s steps(3) infinite; }
@keyframes bars { 50% { transform: scaleY(.55); } }
.replay-row { margin-top: -10px; display: flex; justify-content: flex-end; }

/* ---------- офуда (печать-талисман) ---------- */
.ofuda { position: relative; width: 92px; height: 240px; border-radius: 3px; border: 0; padding: 0;
  background: linear-gradient(#F1E7CB, #E0D0A8); box-shadow: 0 12px 30px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--seal); }
.ofuda::before { content: ""; position: absolute; inset: 7px; border: 2px solid var(--seal); border-radius: 2px; opacity: .85; pointer-events: none; }
.ofuda::after { content: ""; position: absolute; left: 50%; top: 22px; bottom: 22px; width: 2px; margin-left: -1px; background: repeating-linear-gradient(var(--ink) 0 9px, transparent 9px 16px); opacity: .25; }
.ofuda .kanji { font-size: 60px; position: relative; z-index: 1; background: #EADDB9; padding: 6px 0; }
.ofuda small { position: relative; z-index: 1; font-family: var(--ui); font-weight: 700; font-size: 13px; color: var(--ink); background: #EADDB9; padding: 2px 4px; writing-mode: vertical-rl; }
.ofuda.hit { animation: hit .16s ease; }
@keyframes hit { 50% { transform: translateX(4px) rotate(1.5deg); } }
.ofuda.burn { animation: burn 1s ease-in forwards; }
@keyframes burn {
  0% { clip-path: inset(0 0 0 0); filter: none; }
  25% { filter: sepia(.5) brightness(1.1); box-shadow: 0 0 30px 6px rgba(255,122,26,.7); }
  100% { clip-path: inset(0 0 100% 0); filter: sepia(1) saturate(3) brightness(1.4); box-shadow: 0 0 40px 10px rgba(255,122,26,0); }
}
.ember { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #FFB25E; box-shadow: 0 0 8px 2px #FF7A1A; pointer-events: none; z-index: 5; }

/* ---------- сюрикен ---------- */
.shuriken { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.shuriken svg { width: 100%; height: 100%; display: block; }

/* ---------- дым ---------- */
#poof { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#poof .puff { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(236,238,248,.95) 0%, rgba(200,204,226,.85) 45%, rgba(200,204,226,0) 70%);
  animation: puff .75s ease-out forwards; }
@keyframes puff { 0% { transform: scale(.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- замок ---------- */
.lock { justify-content: center; align-items: center; text-align: center; gap: 26px; }
.lock .moon { top: 40px; }
.lock .ofuda { transform: rotate(-4deg); }
.lock h1 { font-size: 40px; }
.count { display: flex; gap: 10px; justify-content: center; }
.count div { min-width: 68px; padding: 12px 6px 10px; border-radius: 12px; background: rgba(35,42,85,.7); box-shadow: inset 0 0 0 1px rgba(169,174,208,.18); }
.count b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--chakra); line-height: 1; font-variant-numeric: tabular-nums; }
.count span { display: block; margin-top: 6px; font-size: 13px; color: var(--mist); }
.lock .lead { max-width: 30ch; }

/* ---------- наушники ---------- */
.phones { justify-content: center; gap: 24px; }
.phones-ico { width: 120px; color: var(--chakra); }
.phones h1 { font-size: 46px; }

/* ---------- вступление ---------- */
.intro { justify-content: flex-start; padding-top: 40px; }
.intro-stage { position: relative; height: 290px; display: flex; align-items: center; justify-content: center; }
.intro-title { text-align: left; }
.intro-title .pre { font-size: 22px; }
.intro-title { width: 100%; }
.intro-title h1 { white-space: nowrap; font-size: 60px; color: var(--chakra); text-shadow: 0 4px 0 rgba(0,0,0,.35); }
.intro-title.reveal { animation: titleIn .9s cubic-bezier(.15,.8,.25,1) both; }
@keyframes titleIn { from { opacity: 0; transform: scale(1.25); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- путь (карта) ---------- */
.map-head h1 { font-size: 42px; margin-top: 4px; }
.path { list-style: none; margin: 8px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 30px; }
.path::before { content: ""; position: absolute; left: 50%; top: 30px; bottom: 30px; width: 3px; margin-left: -1.5px;
  background: repeating-linear-gradient(rgba(169,174,208,.5) 0 10px, transparent 10px 20px); }
.node { display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; gap: 14px; position: relative; }
.node .label { grid-column: 3; text-align: left; }
.node:nth-child(even) .label { grid-column: 1; grid-row: 1; text-align: right; }
.node .seal { grid-column: 2; grid-row: 1; }
.node .label .n { display: block; font-size: 14px; color: var(--mist); margin-bottom: 3px; }
.node .label b { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.25; }
.seal { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #D8453D, var(--seal) 60%, #8E1F1A); color: #F6E9D0; box-shadow: 0 8px 20px rgba(0,0,0,.45), inset 0 0 0 4px rgba(246,233,208,.25); }
.seal .kanji { font-size: 44px; }
.node.locked .seal { background: #2B3160; color: rgba(169,174,208,.5); box-shadow: inset 0 0 0 2px rgba(169,174,208,.25); cursor: default; }
.node.locked .label { opacity: .5; }
.node.current .seal { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,122,26,.55), 0 8px 20px rgba(0,0,0,.45); } 50% { box-shadow: 0 0 0 14px rgba(255,122,26,0), 0 8px 20px rgba(0,0,0,.45); } }
.node.done .seal::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--chakra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231B1205' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.node.final .seal { width: 104px; height: 104px; background: radial-gradient(circle at 35% 30%, #FFA75E, var(--chakra) 55%, var(--chakra-deep)); color: #1B1205; }
.node.final.locked .seal { background: #2B3160; color: rgba(169,174,208,.5); }
.node.final { grid-template-columns: 1fr 104px 1fr; }
.avatar { position: absolute; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; left: -10px; top: -10px; z-index: 2;
  box-shadow: 0 0 0 3px var(--chakra), 0 6px 14px rgba(0,0,0,.5); background: #333 center/cover; }

/* ---------- глава ---------- */
.top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--mist); }
.top .back { background: none; border: 0; padding: 8px 0; color: var(--mist); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.top .back svg { width: 16px; height: 16px; }
.ch-head { position: relative; padding: 26px 0 6px; min-height: 150px; display: flex; align-items: flex-end; }
.ch-head .kanji { position: absolute; right: -6px; top: -14px; font-size: 190px; color: rgba(255,122,26,.13); pointer-events: none; }
.ch-head h1 { font-size: 46px; position: relative; max-width: 11ch; }

.mission { display: flex; flex-direction: column; gap: 16px; }
.hint { font-family: var(--serif); font-style: italic; color: var(--mist); margin: 0; font-size: 17px; text-align: center; }

/* экзамен */
.exam-h { font-family: var(--ui); font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.exam h3 { font-family: var(--serif); font-size: 23px; line-height: 1.3; margin: 0 0 18px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { border: 2px solid rgba(37,31,26,.25); background: rgba(255,255,255,.35); border-radius: 10px; padding: 14px 8px; font-weight: 700; font-size: 17px; color: var(--ink); }
.opt.right { background: var(--haori); border-color: var(--haori); color: #F2F6EC; }
.opt.wrong { background: var(--seal); border-color: var(--seal); color: #FBEDE6; }
.opt[disabled] { cursor: default; }
.opt[disabled]:not(.right):not(.wrong) { opacity: .45; }
.verdict { font-family: var(--serif); font-size: 18px; line-height: 1.45; margin: 16px 0 0; min-height: 1px; }
.verdict:empty { display: none; }
.result { text-align: center; }
.score { font-family: var(--ui); font-weight: 700; font-size: 15px; color: var(--ink-soft); margin: 0 0 8px; }
.result p { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0; }
.headband { margin: 18px auto 0; width: 100%; max-width: 320px; }
.headband.drop { animation: drop .8s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes drop { from { transform: translateY(-120px) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* команда */
.summon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 10px; }
.summon { grid-column: span 2; aspect-ratio: 3/4; border: 0; padding: 0; border-radius: 12px; position: relative; overflow: hidden;
  background: radial-gradient(circle, rgba(255,122,26,.18), transparent 70%), #222956; box-shadow: inset 0 0 0 2px rgba(255,122,26,.35); }
.summon:nth-child(4) { grid-column: 2 / span 2; }
.summon .circle { position: absolute; left: 18%; top: 50%; width: 64%; aspect-ratio: 1; margin-top: -32%; border-radius: 50%; border: 2px dashed rgba(255,122,26,.7); animation: spin 9s linear infinite; }
.summon .circle::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px solid rgba(255,122,26,.5); }
@keyframes spin { to { transform: rotate(360deg); } }
.summon .who { position: absolute; inset: 0; background: #333 center/cover; opacity: 0; }
.summon .who .initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 46px; color: var(--chakra); background: #2A2F5C; }
.summon .nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 8px; font-weight: 700; font-size: 15px; color: #fff; opacity: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.summon.open { box-shadow: inset 0 0 0 2px var(--chakra); cursor: default; }
.summon.open .circle { display: none; }
.summon.open .who, .summon.open .nm { opacity: 1; transition: opacity .35s ease .15s; }
.after-line { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0; }

/* 10-й вопрос */
.rule { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0 0 18px; }
.ten-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.ten-btns .btn { padding: 15px 10px; }
.ten-btns .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 2px rgba(37,31,26,.35); position: relative; overflow: visible; }
.ten-btns .btn.pinned { opacity: .5; transform: rotate(-4deg); }
.exam { position: relative; overflow: hidden; }
.stamp { position: absolute; right: 16px; top: 18px; width: 116px; height: 116px; border-radius: 50%; border: 5px solid var(--seal); color: var(--seal);
  display: grid; place-items: center; font-family: var(--kanji); font-size: 40px; transform: rotate(-14deg); opacity: .88; mix-blend-mode: multiply; }
.stamp.slam { animation: slam .35s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes slam { from { transform: scale(2.4) rotate(-14deg); opacity: 0; } to { transform: rotate(-14deg); opacity: .88; } }
.quote { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; margin: 0; padding-left: 16px; border-left: 3px solid var(--chakra); color: #F4F1E6; }
.fact { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0; color: #D9DCEE; }

/* расенган */
.rasen-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.day { font-family: var(--display); font-size: 30px; color: var(--rasen); margin: 0; }
#rc { width: 290px; height: 290px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; border-radius: 50%; }
.meter { width: 220px; height: 8px; border-radius: 4px; background: rgba(111,208,255,.15); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--rasen); border-radius: 4px; }
.necklace { width: 150px; margin: 4px auto 0; }
.necklace.drop { animation: drop .9s cubic-bezier(.3,1.5,.5,1) both; }
.shake { animation: shake .4s ease; }
@keyframes shake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -2px); } }

/* толпа */
.stage { position: relative; height: 340px; border-radius: 16px; overflow: hidden; background: #0C0F22; box-shadow: inset 0 0 0 1px rgba(169,174,208,.15); }
.stage .beam { position: absolute; top: -20px; width: 120px; height: 420px; transform-origin: 50% 0; opacity: 0;
  background: linear-gradient(rgba(255,214,150,.55), rgba(255,214,150,0)); filter: blur(6px); transition: opacity .8s ease; }
.stage .beam.l { left: 10%; transform: rotate(-18deg); }
.stage .beam.r { right: 10%; transform: rotate(18deg); }
.stage.lit .beam { opacity: 1; }
.stage .crowd { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; color: #05070F; }
.stage .crowd svg { width: 100%; height: 100%; display: block; }
.stage .shout { position: absolute; font-family: var(--display); color: var(--chakra); white-space: nowrap; text-shadow: 0 3px 0 rgba(0,0,0,.4);
  animation: shout 1.6s cubic-bezier(.2,.9,.3,1) forwards; }
.stage .shout.big { color: #FFF3DF; }
@keyframes shout { 0% { opacity: 0; transform: var(--r) scale(.3); } 15% { opacity: 1; transform: var(--r) scale(1.08); } 30% { transform: var(--r) scale(1); } 80% { opacity: 1; } 100% { opacity: .0; transform: var(--r) scale(1.05); } }
.stage .shout.stay { animation: shoutStay .8s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes shoutStay { 0% { opacity: 0; transform: var(--r) scale(.3); } 60% { opacity: 1; transform: var(--r) scale(1.08); } 100% { opacity: 1; transform: var(--r) scale(1); } }

/* ---------- награда ---------- */
.reward { display: flex; flex-direction: column; gap: 16px; }
.reward-lead { font-family: var(--serif); font-size: 21px; margin: 0; }
.vframe { position: relative; border-radius: 14px; overflow: hidden; background: #070914; aspect-ratio: 9/16; max-height: 74vh; margin: 0 auto; width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(169,174,208,.15); }
.vframe video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.vframe .veil { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, #252B57, #0B0E20); transition: opacity .5s ease; }
.vframe.open .veil { opacity: 0; pointer-events: none; }
.vframe .vph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; font-family: var(--serif); font-style: italic; color: var(--mist); font-size: 18px; line-height: 1.5;
  background: repeating-linear-gradient(135deg, #101430 0 14px, #13183A 14px 28px); }
.vframe .vph b { display: block; font-family: var(--display); font-style: normal; font-weight: 400; font-size: 30px; color: var(--chakra); margin-bottom: 8px; }

.photos { display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x mandatory; margin: 0 -16px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.photos::-webkit-scrollbar { display: none; }
.pol { flex: 0 0 62%; scroll-snap-align: center; margin: 0; background: #F6F0E2; padding: 10px 10px 34px; border-radius: 3px; box-shadow: 0 12px 28px rgba(0,0,0,.45); position: relative; }
.pol:nth-child(odd) { transform: rotate(-2deg); }
.pol:nth-child(even) { transform: rotate(1.6deg); }
.pol img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.pol::before { content: ""; position: absolute; left: 50%; top: -9px; width: 70px; height: 20px; margin-left: -35px; background: rgba(233,221,191,.75); transform: rotate(-3deg); }
.pol.ph .ph-in { aspect-ratio: 4/5; display: grid; place-items: center; text-align: center; padding: 10px; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 15px;
  background: repeating-linear-gradient(135deg, #E9E1CC 0 10px, #E2D8BF 10px 20px); }

/* ---------- финал ---------- */
.poster { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3/4; background: #0B0D1E; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.poster .ph { position: absolute; inset: 0; background: center 30%/cover; filter: grayscale(1) contrast(1.15) brightness(.9); }
.poster .tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,26,51,.15) 0%, rgba(22,26,51,.1) 40%, rgba(22,26,51,.95) 82%), linear-gradient(120deg, rgba(255,122,26,.55), rgba(111,208,255,.35)); mix-blend-mode: normal; }
.poster .tint2 { position: absolute; inset: 0; background: linear-gradient(120deg, #FF7A1A, #3A2A8A); mix-blend-mode: color; opacity: .75; }
.poster .pt { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.poster .pt .k { font-family: var(--serif); font-style: italic; font-size: 19px; color: #FFE2C4; margin: 0 0 2px; }
.poster .pt .nm { white-space: nowrap; font-family: var(--display); font-size: 60px; line-height: .95; color: #FFF6E8; margin: 0; letter-spacing: .01em; }
.poster .pt .v { font-family: var(--ui); font-weight: 700; font-size: 16px; color: #FFD7B0; margin: 8px 0 0; }
.poster .sold { position: absolute; right: 14px; top: 16px; padding: 8px 12px; border: 3px solid var(--seal); color: #FF6A5E; font-family: var(--ui); font-weight: 700; font-size: 15px;
  transform: rotate(8deg); border-radius: 6px; background: rgba(12,14,30,.55); }
.poster.reveal { animation: posterIn 1.4s cubic-bezier(.15,.8,.25,1) both; }
@keyframes posterIn { 0% { opacity: 0; transform: scale(.94); filter: brightness(3) blur(8px); } 100% { opacity: 1; transform: none; filter: none; } }
.poster .sweep { position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); transform: translateX(-100%); }
.poster.reveal .sweep { animation: sweep 1.8s ease .5s forwards; }
@keyframes sweep { to { transform: translateX(100%); } }

.tickets { display: flex; flex-direction: column; gap: 10px; }
.ticket { display: grid; grid-template-columns: 1fr auto; align-items: center; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 14px 16px; position: relative;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) , radial-gradient(circle 9px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; animation: appear .5s cubic-bezier(.2,.7,.3,1) both; }
.ticket b { font-family: var(--serif); font-size: 19px; }
.ticket span { font-size: 14px; color: var(--ink-soft); text-align: right; line-height: 1.3; }
.ticket span strong { display: block; color: var(--seal); font-size: 16px; }

.closing { text-align: center; padding: 24px 0 10px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.closing h2 { font-size: 40px; color: var(--chakra); }
.closing p { font-family: var(--serif); font-size: 21px; margin: 0; }
.closing .team-line { font-size: 16px; color: var(--mist); font-style: italic; }
.leaf { position: fixed; top: -30px; width: 22px; height: 22px; z-index: 40; pointer-events: none; color: #6E9E55; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

/* ---------- превью-панель ---------- */
.dev { position: fixed; left: 8px; bottom: 8px; z-index: 60; display: flex; gap: 6px; flex-wrap: wrap; max-width: 300px; }
.dev button { background: rgba(12,14,30,.85); border: 1px solid rgba(169,174,208,.35); color: var(--mist); border-radius: 8px; padding: 6px 9px; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ===== v2: персонажи, клон, кастинги, сцена ===== */
.slip .say { display: inline; }
.slip .host { position: relative; float: right; width: 104px; margin: 2px 0 10px 14px; transform: rotate(3deg); background: #F6F0E2; padding: 6px 6px 4px; box-shadow: 0 6px 14px rgba(0,0,0,.25); cursor: default; }
.slip .host .host-img { aspect-ratio: 4/5; background: #CFC4A8 center 20%/cover; }
.slip .host figcaption { font-family: var(--ui); font-weight: 700; font-size: 12px; text-align: center; padding-top: 5px; color: var(--ink); }
.slip .host.ph .host-img { background: repeating-linear-gradient(135deg, #E9E1CC 0 8px, #E2D8BF 8px 16px); }
.slip .host.ph figcaption::after { content: ", нужна картинка"; font-weight: 500; color: var(--ink-soft); }

.hero-art { width: 132px; height: 132px; border-radius: 50%; margin: 0 0 14px; background: #2A2F5C center 20%/cover; box-shadow: 0 0 0 4px var(--chakra), 0 14px 30px rgba(0,0,0,.5); }

.ten-after { display: flex; flex-direction: column; gap: 16px; }

/* практика: печати клона */
.seal-order { display: flex; justify-content: center; gap: 22px; margin: 0 0 16px; font-family: var(--ui); font-size: 14px; color: var(--ink-soft); }
.seal-order span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.seal-order b { font-size: 26px; color: var(--ink); font-weight: 400; }
.hand-seals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hseal { aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 35% 30%, #34407A, #1F2550); color: #F2E6CC; box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,122,26,.35); }
.hseal .kanji { font-size: 40px; }
.hseal small { font-family: var(--ui); font-weight: 700; font-size: 12px; opacity: .8; }
.hseal.on { background: radial-gradient(circle at 35% 30%, #FFA75E, var(--chakra) 60%, var(--chakra-deep)); color: #1B1205; }
.clone-zone { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 26px; padding: 10px 0 6px; min-height: 190px; }
.clone-zone figure { margin: 0; text-align: center; }
.clone-zone .cl-img { width: 110px; height: 138px; border-radius: 10px; background: #2A2F5C center 20%/cover; box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.clone-zone figcaption { font-family: var(--ui); font-weight: 700; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.clone-zone .copy .cl-img { filter: grayscale(1) brightness(1.45) contrast(.7); opacity: .6; transform: rotate(78deg) translate(34px, 8px) scaleY(.82); }
.clone-zone .copy figcaption { transform: translateY(-30px); }
.stamp.red { font-family: var(--display); font-size: 22px; width: auto; height: auto; padding: 8px 14px; border-radius: 8px; right: 6px; top: 6px; opacity: 0; }
.stamp.red.slam { opacity: .9; }

/* кастинги */
.mic-ask p { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0 0 16px; }
.mic-ask .two { display: flex; flex-direction: column; gap: 10px; }
.mic-ask .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 2px rgba(37,31,26,.35); }
.audition { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 16px 20px; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,214,150,.18), transparent 60%), #10142E; box-shadow: inset 0 0 0 1px rgba(169,174,208,.15); }
.aud-n { margin: 0; font-size: 14px; color: var(--mist); }
.judge { margin: 0; text-align: center; transform: rotate(-2deg); background: #F6F0E2; padding: 8px 8px 6px; box-shadow: 0 12px 26px rgba(0,0,0,.5); }
.judge-img { width: 150px; height: 180px; background: #2A2F5C center 18%/cover; display: grid; place-items: center; }
.judge-img .initial { font-family: var(--display); font-size: 64px; color: var(--chakra); }
.judge figcaption { font-family: var(--ui); font-weight: 700; font-size: 15px; color: var(--ink); padding-top: 6px; }
.wave { width: 100%; max-width: 320px; height: 75px; }
.mic-btn { width: 96px; height: 96px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #1B1205; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: radial-gradient(circle at 35% 30%, #FFA75E, var(--chakra) 60%, var(--chakra-deep)); box-shadow: 0 10px 26px rgba(255,122,26,.35); transition: transform .12s ease; }
.mic-btn svg { width: 42px; height: 42px; }
.mic-btn.on { transform: scale(.93); animation: pulse 1s ease-in-out infinite; }
.audition .hint { max-width: 30ch; }
.verdict-box { position: relative; width: 100%; text-align: center; padding-top: 6px; }
.vstamp { display: inline-block; font-family: var(--display); font-size: 46px; color: #FF5A4E; border: 5px solid #FF5A4E; border-radius: 10px; padding: 4px 18px; transform: rotate(-8deg); }
.vstamp.yes { color: #7BE3A0; border-color: #7BE3A0; }
.vstamp.slam { animation: slamV .35s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes slamV { from { transform: scale(2.4) rotate(-8deg); opacity: 0; } to { transform: rotate(-8deg); opacity: 1; } }
.vline { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; margin: 16px 0 6px; color: #F4F1E6; }
.vnote { font-family: var(--serif); font-size: 17px; line-height: 1.5; margin: 0; color: var(--mist); }
.tally { margin: 0; font-family: var(--ui); font-weight: 700; font-size: 14px; color: #FF8A7E; }
.audition .btn { margin-top: 4px; }

/* сцена в Конохе */
.stage { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stage.lit { cursor: pointer; }
.stage .bg { position: absolute; inset: 0; background: center/cover; filter: brightness(.35) saturate(.8); transition: filter 1.2s ease; }
.stage.lit .bg { filter: brightness(calc(.62 + var(--e, 0) * .5)) saturate(1.1); }
.stage .bg.ph { display: grid; place-items: center; font-family: var(--serif); font-style: italic; color: var(--mist); font-size: 17px; filter: none;
  background: repeating-linear-gradient(135deg, #101430 0 14px, #13183A 14px 28px); }
.stage .dim { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(5,7,15,.8)); pointer-events: none; }
.stage .spark { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #FFD08A; box-shadow: 0 0 14px 4px rgba(255,170,80,.8); pointer-events: none; animation: spark .9s ease-out forwards; }
@keyframes spark { to { transform: translateY(-90px) scale(.3); opacity: 0; } }
.energy { width: 100%; height: 10px; }
.energy i { background: linear-gradient(90deg, var(--chakra), #FFD08A); }

/* афиша со сгенерированной картинкой: без тонировки */
.poster.art .ph { filter: none; }
.poster.art .tint2 { display: none; }
.poster.art .tint { background: linear-gradient(180deg, rgba(22,26,51,0) 45%, rgba(22,26,51,.92) 85%); }

/* ===== v3: логотип и сюрикены-картинки ===== */
.logo { display: block; width: 200px; max-width: 60%; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.intro .logo { margin-bottom: -10px; }
.shuriken img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 1.5px rgba(255,255,255,.75)) drop-shadow(0 4px 6px rgba(0,0,0,.5)); }

.summon .who { background-position: 50% 0%; }

/* ===== v4: главы карточками ===== */
.scene.decked { gap: 14px; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: rgba(169,174,208,.22); transition: background .3s ease; }
.steps i.done { background: rgba(255,122,26,.5); }
.steps i.on { background: var(--chakra); }
.deck { position: relative; }
.card { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; animation: cardIn .42s cubic-bezier(.2,.8,.3,1) both; }
.card.leave { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; animation: cardOut .32s ease-in forwards; }
@keyframes cardIn { from { opacity: 0; transform: translateX(48px) rotate(.8deg); } to { opacity: 1; transform: none; } }
@keyframes cardOut { to { opacity: 0; transform: translateX(-48px) rotate(-.8deg); } }
.card > .btn { margin-top: 4px; }
.card .ch-head { min-height: 120px; padding-top: 10px; }
.rc { width: 290px; height: 290px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; border-radius: 50%; }
.intro-stage.done { height: auto; padding: 12px 0; }
.map-hint { margin: 6px 0 0; }
.card .vframe { max-height: 66vh; }
.card .photos { margin-top: 10px; }

.card .closing { min-height: 64vh; justify-content: center; }
