/* Манга-стрип: колонка на бумаге, как вебтун; две сцены на весь экран закреплены и проигрываются скроллом.
   Одна тема на бумаге и туши, как в самих кадрах, поэтому тёмной версии нет. */
:root {
  --paper: #ece2cf;
  --paper-deep: #dccdb2;
  --ink: #16110f;
  --ink-soft: #4a3d36;
  --crimson: #d01c1f;
  --crimson-deep: #8f1014;
  --gold: #e7b03c;
  --bubble: #fbf7ee;

  --f-sfx: "Rubik Dirt", "Impact", "Arial Black", sans-serif;
  --f-jp: "Yuji Boku", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-boom: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-nar: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --f-hand: "Neucha", "Comic Sans MS", "Marker Felt", cursive;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease-pop: cubic-bezier(.3, 1.6, .5, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ink); }

/* плавный скролл (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-nar);
  font-size: 18px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
figure { margin: 0; }
p { margin: 0; }

.defs { position: absolute; width: 0; height: 0; }

/* ---------- слои поверх страницы ---------- */

#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .15 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  bottom: 0;
  right: env(safe-area-inset-right, 0px);
  width: 4px;
  z-index: 60;
  background: rgba(22, 17, 15, .12);
}
.progress span {
  display: block;
  height: calc(var(--prog, 0) * 100%);
  background: var(--crimson);
}

/* ---------- обложка ---------- */

.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: hidden;
  padding-block: 48px 28px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  isolation: isolate;
}

.cover__sun {
  position: absolute;
  z-index: -1;
  width: min(118vw, 680px);
  aspect-ratio: 1;
  max-width: none;
  left: 50%;
  top: 44%;
  border-radius: 50%;
  background: var(--crimson);
  filter: url(#rough);
  transform: translate(-50%, -50%) scale(calc(1 + var(--p, 0) * .5));
  animation: sun-in 1.4s var(--ease-out) both;
}

@keyframes sun-in {
  from { clip-path: circle(0 at 50% 50%); }
  to { clip-path: circle(75% at 50% 50%); }
}

.cover__jp {
  position: absolute;
  right: calc(var(--gutter-r) + 6px);
  top: 40px;
  writing-mode: vertical-rl;
  font-family: var(--f-jp);
  font-size: clamp(22px, 6vw, 34px);
  letter-spacing: .25em;
  color: var(--ink);
}

.cover__body {
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
  display: grid;
  gap: 18px;
}

.cover__vol {
  font-family: var(--f-nar);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.cover__vol span {
  font-family: var(--f-jp);
  font-weight: 400;
  letter-spacing: .1em;
  font-size: 20px;
  color: var(--crimson-deep);
}

.cover__title {
  margin: 0;
  font-family: var(--f-sfx);
  font-weight: 400;
  font-size: clamp(76px, 25vw, 168px);
  line-height: .86;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.cover__title span:last-child { padding-left: .55em; }
.cover__title span {
  animation: stamp .7s var(--ease-pop) both;
}
.cover__title span:last-child { animation-delay: .25s; }

@keyframes stamp {
  from { opacity: 0; transform: scale(1.8) rotate(-4deg); }
  to { opacity: 1; transform: none; }
}

.cover__sub {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 4.8vw, 23px);
  line-height: 1.3;
  max-width: 26ch;
  text-wrap: balance;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 10px 14px;
  justify-self: start;
  animation: rise .8s var(--ease-out) .6s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.cover__scroll {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--f-nar);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.cover__scroll i {
  width: 2px;
  height: 46px;
  background: linear-gradient(var(--ink) 50%, transparent 50%) 0 0 / 2px 200%;
  animation: drip 1.6s linear infinite;
}
@keyframes drip { to { background-position: 0 -92px; } }

/* ---------- колонка комикса ---------- */

.strip {
  max-width: 560px;
  margin-inline: auto;
  padding-block: clamp(56px, 12vw, 96px);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 10vw, 72px);
}

.panel { position: relative; }

.panel__frame {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--ink);
}
.panel__frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* медленный наезд камеры по мере прокрутки */
.panel__frame--drift img {
  transform: scale(calc(1.14 - var(--p, 0) * .14)) translateY(calc((var(--p, 0) - .5) * -3%));
  transform-origin: 50% 30%;
}

/* закадровый текст */
.nar {
  font-family: var(--f-nar);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.28;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 9px 13px;
  max-width: min(78%, 24ch);
  text-wrap: pretty;
  z-index: 3;
}
.nar--tl { position: absolute; left: -8px; top: -18px; }
.nar--br { position: absolute; right: -8px; bottom: -22px; }
.nar--bl { position: absolute; left: -8px; bottom: -20px; }

/* текст между кадрами */
.say {
  font-family: var(--f-nar);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 5.6vw, 28px);
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  max-width: 24ch;
  margin-inline: auto;
}
.say span { display: inline-block; }
.say--loud {
  font-family: var(--f-sfx);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(34px, 10vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--crimson);
}

/* появление при прокрутке; без JS всё видно сразу */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s);
}
.js .on [data-reveal],
.js [data-reveal].on {
  opacity: 1;
  transform: none;
}

/* ---------- реплики ---------- */

.bubble {
  position: absolute;
  z-index: 4;
  font-family: var(--f-hand);
  font-size: clamp(18px, 4.8vw, 22px);
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
  background: var(--bubble);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  padding: 16px 22px;
  max-width: 62%;
}
/* хвостик: два треугольника, чёрный под светлым */
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  left: var(--tx, 28%);
  top: 100%;
  width: 0;
  height: 0;
  transform: skewX(var(--sk, -24deg));
}
.bubble::before {
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid var(--ink);
  margin-top: 0;
}
.bubble::after {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 15px solid var(--bubble);
  margin-left: 3px;
  margin-top: -4px;
}
.bubble--tail-up::before,
.bubble--tail-up::after {
  top: auto;
  bottom: 100%;
}
.bubble--tail-up::before {
  border-top: 0;
  border-bottom: 20px solid var(--ink);
}
.bubble--tail-up::after {
  border-top: 0;
  border-bottom: 15px solid var(--bubble);
  margin-top: 0;
  margin-bottom: -4px;
}
.bubble--tail-left::before,
.bubble--tail-left::after {
  left: auto;
  right: 100%;
  top: 46%;
  transform: none;
}
.bubble--tail-left::before {
  border: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 22px solid var(--ink);
}
.bubble--tail-left::after {
  border: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 16px solid var(--bubble);
  margin: 3px -4px 0 0;
}

.js .bubble {
  opacity: 0;
  transform: scale(.35);
  transition: transform .5s var(--ease-pop) var(--d, .15s), opacity .2s linear var(--d, .15s);
}
.js .on .bubble,
.js .bubble.on {
  opacity: 1;
  transform: none;
}

/* крик с рваным краем */
.shout {
  position: absolute;
  z-index: 4;
  left: 47%;
  top: 4%;
  filter: drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink)) drop-shadow(0 2.5px 0 var(--ink)) drop-shadow(0 -2.5px 0 var(--ink)) drop-shadow(5px 5px 0 var(--ink));
}
.shout span {
  display: block;
  font-family: var(--f-sfx);
  font-size: clamp(26px, 7.4vw, 38px);
  line-height: 1;
  color: var(--ink);
  background: var(--bubble);
  padding: 26px 30px;
  clip-path: polygon(50% 0, 60% 14%, 78% 4%, 80% 22%, 100% 20%, 90% 40%, 100% 56%, 86% 64%, 94% 86%, 72% 80%, 64% 100%, 50% 84%, 36% 100%, 30% 80%, 6% 88%, 14% 66%, 0 54%, 12% 40%, 2% 18%, 22% 20%, 26% 2%, 40% 14%);
}
.js .shout {
  opacity: 0;
  transform: scale(.3) rotate(-12deg);
  transition: transform .45s var(--ease-pop) var(--d, .2s), opacity .15s linear var(--d, .2s);
}
.js .on .shout { opacity: 1; transform: rotate(-4deg); }

/* ---------- звуки (японские SFX) ---------- */

.sfx {
  position: absolute;
  z-index: 3;
  font-family: var(--f-boom);
  color: var(--crimson);
  line-height: .9;
  white-space: nowrap;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
  pointer-events: none;
}
.js .sfx {
  opacity: 0;
  transform: scale(2.2) rotate(var(--r, 0deg));
  transition: transform .35s var(--ease-pop) var(--d, .1s), opacity .12s linear var(--d, .1s);
}
.js .on .sfx,
.js .sfx.hit {
  opacity: 1;
  transform: rotate(var(--r, 0deg));
}

.sfx--pik {
  --r: 8deg;
  top: 6%;
  right: 5%;
  font-size: clamp(44px, 13vw, 76px);
}

.bang {
  position: absolute;
  z-index: 3;
  left: 72%;
  top: 22%;
  font-family: var(--f-sfx);
  font-size: clamp(54px, 15vw, 84px);
  line-height: 1;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--crimson);
}
.js .bang { opacity: 0; transform: translateY(20px) scale(.4); transition: transform .4s var(--ease-pop) .25s, opacity .1s .25s; }
.js .on .bang { opacity: 1; transform: none; }

/* кадр с кошкой вздрагивает один раз */
.on .panel__frame--twitch { animation: twitch .45s steps(2) .2s 1; }
@keyframes twitch {
  0%, 100% { transform: none; }
  25% { transform: translate(-4px, 2px); }
  50% { transform: translate(4px, -2px); }
  75% { transform: translate(-2px, -1px); }
}

/* ---------- закреплённые сцены ---------- */

.pin {
  position: relative;
  height: var(--len, 300vh);
  background: var(--ink);
}
.pin__view {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--ink);
}
.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
}
.stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
.pin__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 45%, rgba(22, 17, 15, .55) 100%);
}

.nar--pin-top,
.nar--pin-bottom {
  position: absolute;
  max-width: min(84%, 26ch);
}
.nar--pin-top {
  top: calc(env(safe-area-inset-top, 0px) + 22px);
  left: var(--gutter-l);
  opacity: min(clamp(0, (var(--p, 0) - .02) * 10, 1), clamp(0, (.5 - var(--p, 0)) * 8, 1));
}
.nar--pin-bottom {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  right: var(--gutter-r);
  opacity: clamp(0, (var(--p, 0) - .56) * 8, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p, 0) - .56) * 8, 1)) * 16px));
}

.gogo {
  position: absolute;
  top: 14%;
  right: calc(var(--gutter-r) + 4px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--f-boom);
  font-size: clamp(56px, 15vw, 104px);
  line-height: .95;
  color: var(--crimson);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
}
.gogo span {
  --show: clamp(0, (var(--p, 0) - .14 - var(--i) * .1) * 10, 1);
  opacity: var(--show);
  transform: translateX(calc(var(--i) * -14%)) scale(calc(1.6 - var(--show) * .6));
}

/* удар по свечам */
.streak {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.streak path {
  fill: none;
  stroke: #fff4e0;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--cut, 0));
  filter: drop-shadow(0 0 6px var(--crimson)) drop-shadow(0 0 16px var(--crimson));
  opacity: calc(var(--cut, 0) * 1.4 - var(--fade, 0));
}

.flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #fffaf0;
  opacity: 0;
}
.flash--pin { opacity: var(--flash, 0); }
.on .panel--katana .flash,
.panel--katana.on .flash { animation: flash .6s ease-out .1s 1 both; }
@keyframes flash {
  0% { opacity: 0; }
  12% { opacity: .95; }
  100% { opacity: 0; }
}

.sfx--zuba {
  --r: -10deg;
  left: var(--gutter-l);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 9%);
  font-size: clamp(64px, 19vw, 132px);
  z-index: 6;
}

/* ---------- кадр с глазами: моргание-шторки ---------- */

.panel--eyes .panel__frame::before,
.panel--eyes .panel__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: calc((1 - clamp(0, (var(--p, 0) - .18) * 3.2, 1)) * 50%);
  background: var(--ink);
}
.panel--eyes .panel__frame::before { top: 0; }
.panel--eyes .panel__frame::after { bottom: 0; }
.panel--eyes .panel__frame img {
  transform: scale(calc(1.25 - clamp(0, (var(--p, 0) - .18) * 3.2, 1) * .25));
}

/* ---------- катана: кадр раскрывается по диагонали ---------- */

.js .panel--katana .panel__frame img {
  clip-path: polygon(0 100%, 0 100%, 100% 0, 100% 0);
  transition: clip-path .7s cubic-bezier(.7, 0, .2, 1) .25s;
}
.js .panel--katana.on .panel__frame img {
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
}
.cut {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.cut line {
  stroke: var(--crimson);
  vector-effect: non-scaling-stroke;
  stroke-width: 6px;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 5px var(--crimson));
}
.panel--katana.on .cut line { animation: cut .9s ease-out .05s 1 both; }
@keyframes cut {
  0% { stroke-dashoffset: 1; opacity: 1; }
  35% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.sfx--shakin {
  --r: -8deg;
  --d: .4s;
  right: 2%;
  bottom: 4%;
  font-size: clamp(42px, 12vw, 70px);
}
.bubble--cat {
  left: -10px;
  top: 4%;
  --tx: 46%;
  --sk: 18deg;
  padding: 12px 18px;
}
.bubble--zaika {
  right: -10px;
  top: 15%;
  max-width: 48%;
  font-size: clamp(16px, 4.4vw, 20px);
  padding: 13px 18px;
  --tx: 34%;
  --sk: -10deg;
}

/* ---------- удар-пауза ---------- */

.impact {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .8;
  border: 3px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}
.impact::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: repeating-conic-gradient(from 0deg, var(--ink) 0deg 1.3deg, transparent 1.3deg 5deg);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 46%);
  mask: radial-gradient(circle, transparent 18%, #000 46%);
  transform: rotate(calc(var(--p, 0) * 40deg)) scale(calc(.9 + var(--p, 0) * .3));
}
.impact__txt {
  position: relative;
  font-family: var(--f-boom);
  font-size: clamp(84px, 27vw, 160px);
  line-height: 1;
  color: var(--crimson);
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
}
.js .impact__txt { opacity: 0; transform: scale(3); transition: transform .35s var(--ease-pop) .1s, opacity .1s .1s; }
.js .impact.on .impact__txt { opacity: 1; transform: rotate(-6deg); }
.impact.on { animation: twitch .4s steps(2) .2s 1; }

/* ---------- торт ---------- */

.glow {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 7%;
  aspect-ratio: 1;
  translate: -50% -55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, .95) 0, rgba(255, 150, 60, .45) 38%, transparent 70%);
  mix-blend-mode: screen;
  animation: flicker 1.1s ease-in-out var(--dl, 0s) infinite alternate;
  pointer-events: none;
}
@keyframes flicker {
  0% { opacity: .55; scale: .85 1; }
  40% { opacity: 1; scale: 1.05 1.15; }
  70% { opacity: .7; scale: .95 1; }
  100% { opacity: .95; scale: 1.1 1.2; }
}

.twinkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 7%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: #fff8e8;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  animation: twinkle 1.8s ease-in-out var(--dl, 0s) infinite;
  pointer-events: none;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; scale: .3; rotate: 0deg; }
  50% { opacity: 1; scale: 1; rotate: 45deg; }
}

.bubble--crowd {
  right: -10px;
  top: 21%;
  max-width: 46%;
  font-size: clamp(16px, 4.2vw, 19px);
  padding: 12px 16px;
  --tx: 30%;
}
.bubble--ceo {
  position: relative;
  align-self: flex-end;
  margin-top: calc(clamp(44px, 10vw, 72px) * -1 + 14px);
  margin-right: 8%;
  max-width: 70%;
  --tx: 60%;
  --sk: 20deg;
}

/* ---------- финальный кадр: дымок ---------- */

.smoke {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3%;
  height: 16%;
  translate: -50% -100%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(250, 244, 232, .7), transparent 70%);
  filter: blur(3px);
  transform-origin: 50% 100%;
  animation: smoke 3.2s ease-out var(--dl, 0s) infinite;
}
@keyframes smoke {
  0% { opacity: 0; transform: translateY(0) scaleX(.6) skewX(0deg); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-40%) scaleX(1.8) skewX(18deg); }
}

/* ---------- финал ---------- */

.finale {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-block: 72px 32px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.finale__sun {
  position: absolute;
  z-index: -1;
  width: min(130vw, 760px);
  aspect-ratio: 1;
  max-width: none;
  left: 50%;
  top: 40%;
  border-radius: 50%;
  background: var(--crimson);
  filter: url(#rough);
  transform: translate(-50%, -50%) scale(.2);
  opacity: .0;
  transition: transform 1.2s var(--ease-out), opacity .4s;
}
.finale.on .finale__sun,
html:not(.js) .finale__sun { transform: translate(-50%, -50%); opacity: 1; }

.finale__jp {
  position: absolute;
  left: calc(var(--gutter-l) + 2px);
  top: 36px;
  writing-mode: vertical-rl;
  font-family: var(--f-jp);
  font-size: clamp(24px, 6.4vw, 38px);
  letter-spacing: .18em;
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--crimson-deep);
}

.finale__body {
  align-self: center;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 26px;
  text-align: center;
  min-width: 0;
  padding-left: 36px;
}

.finale__title {
  margin: 0;
  font-family: var(--f-sfx);
  font-weight: 400;
  font-size: clamp(36px, 11.2vw, 104px);
  line-height: .92;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 4px 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.finale__title .w { display: block; white-space: nowrap; }
.finale__title b {
  display: inline-block;
  font-weight: 400;
}
.js .finale__title b {
  opacity: 0;
  transform: scale(2.4) rotate(-8deg);
  transition: transform .4s var(--ease-pop), opacity .12s linear;
  transition-delay: calc(.5s + var(--i, 0) * .07s);
}
.js .finale.on .finale__title b { opacity: 1; transform: none; }

.finale__wish {
  font-family: var(--f-nar);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(19px, 4.8vw, 23px);
  line-height: 1.35;
  max-width: 30ch;
  text-wrap: pretty;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 18px;
}
.js .finale__wish { opacity: 0; transform: translateY(18px); transition: opacity .7s 1.6s, transform .8s var(--ease-out) 1.6s; }
.js .finale.on .finale__wish { opacity: 1; transform: none; }

.hanko {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 4px solid var(--paper);
  border-radius: 10px;
  background: var(--crimson);
  color: var(--paper);
  font-family: var(--f-jp);
  font-size: 56px;
  line-height: 1;
  cursor: pointer;
  filter: url(#rough);
  transform: rotate(-6deg);
  box-shadow: 0 0 0 4px var(--crimson);
  transition: transform .2s;
}
.hanko:hover { transform: rotate(-2deg) scale(1.05); }
.hanko:focus-visible { outline: 3px solid var(--gold); outline-offset: 8px; }
.hanko.stamped { animation: hanko .5s var(--ease-pop) 1 both; }
@keyframes hanko {
  0% { transform: scale(1.6) rotate(-16deg); }
  60% { transform: scale(.92) rotate(-4deg); }
  100% { transform: scale(1) rotate(-6deg); }
}
.js .hanko { opacity: 0; transition: opacity .5s 2.3s, transform .2s; }
.js .finale.on .hanko { opacity: 1; }

.finale__hint {
  font-family: var(--f-hand);
  font-size: 18px;
  color: var(--paper);
  min-height: 1.4em;
  text-wrap: balance;
}
.js .finale__hint { opacity: 0; transition: opacity .5s 2.5s; }
.js .finale.on .finale__hint { opacity: .85; }

.finale__end {
  justify-self: center;
  text-align: center;
  font-family: var(--f-nar);
  font-style: italic;
  font-size: 16px;
  color: var(--paper-deep);
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 40px;
}
.finale__end span {
  font-family: var(--f-jp);
  font-style: normal;
  font-size: 26px;
  color: var(--crimson);
}

/* ---------- десктоп ---------- */

@media (min-width: 900px) {
  body {
    background:
      radial-gradient(circle at 50% 0, rgba(208, 28, 31, .06), transparent 60%),
      var(--paper);
  }
  .nar--tl { left: -40px; }
  .nar--br { right: -40px; }
  .nar--bl { left: -40px; }
  .bubble--cat { left: -48px; }
  .bubble--zaika, .bubble--crowd { right: -60px; }
  .finale__body { padding-left: 0; }
}

/* ---------- без лишнего движения ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .panel__frame--drift img { transform: none; }
  .glow, .twinkle, .smoke { animation: none !important; }
}
