:root {
  --paper: #EEE8DF;
  --paper-2: #E5DCD0;
  --card: #F8F4EE;
  --ink: #1E1A19;
  --ink-soft: #5E5551;
  --red: #A3232D;
  --red-deep: #73171F;
  --pink: #E7B3C6;
  --pink-soft: #F1D5DF;
  --sage: #7D8B6E;
  --display: 'Oranienbaum', 'Trirong', 'Bodoni 72', Didot, Georgia, serif;
  --script: 'Marck Script', 'Charm', 'Snell Roundhand', cursive;
  --mono: 'IBM Plex Mono', 'IBM Plex Sans Thai Looped', 'Courier New', monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* страница не должна сдвигаться вбок: всё, что вылезает за край, обрезается.
   clip, а не hidden — чтобы не ломать липкие сцены (position: sticky).
   На html/body не ставим: тогда body становится контейнером прокрутки и sticky ломается */
#site { overflow-x: clip; }
html { overscroll-behavior-x: none; }
/* бумажное зерно — фоном самой страницы, а не отдельным слоем поверх неё:
   слой с mix-blend-mode на весь экран заставлял iPhone перерисовывать всё при каждом движении */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body {
  background: var(--grain), var(--paper);
  color: var(--ink);
  font: 400 14.5px/1.8 var(--mono);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

.mono { font-family: var(--mono); }
.script { font-family: var(--script); font-weight: 400; }
.display { font-family: var(--display); font-weight: 400; }
.mono-label {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.center { text-align: center; }

/* Заголовки: прямой шрифт + слово «от руки» */
h2, .finale-line, .wl {
  font-family: var(--display); font-weight: 400;
  color: var(--red);
}
h2 { font-size: clamp(44px, 13vw, 66px); line-height: .98; margin: 14px 0 26px; }
h2 em, .finale-line em, .wl em {
  font: 1.12em/0 var(--script);
  font-style: normal;
  display: inline-block;
  transform: rotate(-4deg) translateY(.06em);
  padding: 0 .04em;
}

/* Бумажное зерно */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 75; pointer-events: none; }

/* Рисование линией: любой path с pathLength=1 внутри .draw */
.draw path, .peony path, .w-path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.draw path { transition: stroke-dashoffset 1.6s var(--ease) var(--dd, .2s); }
.in .draw path, .draw.in path, .in.draw path { stroke-dashoffset: 0; }

/* ---------- Пион ---------- */
.peony { display: block; overflow: visible; }
.peony path {
  fill: transparent; stroke: var(--red);
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset 2.4s var(--ease), fill 1.6s ease;
}
.peony .stem, .peony .leaf { stroke: var(--ink); }
.peony.drawn path { stroke-dashoffset: 0; }
.peony.drawn .petal { fill: rgba(231, 179, 198, .45); }

/* ---------- Полноэкранные экраны ---------- */
.screen {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--grain), var(--paper);
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Замок */
.lock-card { width: 100%; max-width: 340px; text-align: center; }
.lock-script { color: var(--red); font-size: 40px; line-height: 1.1; margin-top: 22px; transform: rotate(-3deg); }
.lock-q { font: 400 34px/1.08 var(--display); margin: 18px 0 34px; }
.lock-form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.lock-form input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font: 18px var(--mono); color: var(--ink); padding: 8px 2px;
}
.lock-form input::placeholder { color: rgba(94, 85, 81, .5); }
.lock-form button {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: var(--card);
  display: grid; place-items: center; transition: transform .2s;
}
.lock-form button:active { transform: scale(.92); }
.lock-msg { min-height: 1.6em; margin-top: 18px; color: var(--red); font-size: 26px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Конверт */
.env-wrap { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.env { position: relative; width: min(84vw, 340px); aspect-ratio: 1.42; perspective: 1200px; }
.env-back {
  position: absolute; inset: 0; border-radius: 4px; background: var(--red-deep);
  box-shadow: 0 34px 60px -24px rgba(115, 23, 31, .55);
}
.env-letter {
  position: absolute; left: 6%; right: 6%; top: 6%; bottom: 6%; z-index: 2;
  background: var(--card); border-radius: 2px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 16px 18px;
  transition: transform 1.2s var(--ease) .65s;
}
.env-letter-text { font-size: 12.5px; line-height: 1.6; }
.env-letter-sign { color: var(--red); font-size: 30px; text-align: right; margin-top: 6px; }
.env-front {
  position: absolute; inset: 0; z-index: 3; border-radius: 4px;
  background: linear-gradient(170deg, #B3303A, var(--red) 45%, #8E1D26);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 62%; z-index: 4;
  background: linear-gradient(#B8333D, #97202A);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform .8s var(--ease), z-index 0s linear .4s;
}
.seal {
  position: absolute; left: 50%; top: 62%; z-index: 5;
  width: 68px; height: 68px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #F5EEE4, #E6D9C8 60%, #CDBBA5);
  color: var(--red); font: 40px/1 var(--script);
  box-shadow: 0 0 0 4px rgba(245, 238, 228, .25), 0 10px 20px rgba(60, 10, 15, .45), inset 0 -4px 8px rgba(120, 90, 60, .25);
  animation: pulse 2.6s ease-in-out infinite;
  transition: transform .5s var(--ease), opacity .5s;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(245, 238, 228, .12), 0 10px 20px rgba(60, 10, 15, .45), inset 0 -4px 8px rgba(120, 90, 60, .25); } }
.env-hint { color: var(--red); font-size: 28px; transition: opacity .4s; }
.env.open .seal { transform: translate(-50%, -50%) scale(1.5); opacity: 0; pointer-events: none; animation: none; }
.env.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.env.open .env-letter { transform: translateY(-56%); }
.env.open + .env-hint { opacity: 0; }

/* ---------- Появление ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Первый экран ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px 0 44px; position: relative; overflow: hidden;
}
.hero-top { margin-bottom: 34px; }
.hero-stage { position: relative; width: 100%; padding: 26px 0; }
.marquee {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity 1.4s ease .3s;
}
.mq-row { white-space: nowrap; font: clamp(56px, 17vw, 96px)/1 var(--script); color: var(--red); }
.mq-row span { display: inline-block; animation: mq 26s linear infinite; }
.mq-row:nth-child(even) span { animation-direction: reverse; animation-duration: 32s; }
@keyframes mq { to { transform: translateX(-50%); } }
.hero-photo {
  position: relative; z-index: 2; margin: 0 auto;
  width: min(58vw, 260px);
  transform: rotate(-2.5deg) scale(.94); opacity: 0;
  transition: opacity 1.2s ease .2s, transform 1.6s var(--ease) .2s;
}
.hero-title { margin-top: 34px; padding: 0 20px; color: var(--red); }
.hero-title .display {
  display: block; font-size: clamp(40px, 12.5vw, 66px); line-height: .95;
  text-transform: uppercase; letter-spacing: .01em;
  clip-path: inset(0 0 100% 0); transform: translateY(20px);
  transition: clip-path 1.2s var(--ease) 1s, transform 1.2s var(--ease) 1s;
}
.hero-title .script {
  display: block; font-size: clamp(54px, 17vw, 92px); line-height: 1;
  margin-top: -.12em; transform: rotate(-5deg);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s cubic-bezier(.6, .1, .3, 1) 1.7s;
}
.hero-sub {
  max-width: 300px; margin: 28px auto 0; padding: 0 12px; color: var(--ink-soft); font-size: 13px;
  opacity: 0; transition: opacity 1.2s ease 3s;
}
.cue {
  margin-top: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 1s ease 3.6s;
}
.cue i { width: 1px; height: 40px; background: var(--red); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
body.started .marquee, body.started .hero-sub, body.started .cue { opacity: 1; }
body.started .hero-photo { opacity: 1; transform: rotate(-2.5deg); }
body.started .hero-title .display { clip-path: inset(0 0 -10% 0); transform: none; }
body.started .hero-title .script { clip-path: inset(-20% -10% -20% 0); }

/* ---------- Фото ---------- */
.shot { position: relative; }
.shot-img { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; background: #CFC6BA; }
.shot-img > * {
  width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none;
  filter: grayscale(1) contrast(1.08);
}
.dev .shot-img > * {
  filter: grayscale(1) brightness(2.3) contrast(.4) blur(2px);
  transform: scale(1.05);
  transition: filter 2.6s ease .3s, transform 2.6s var(--ease) .3s;
}
.dev.in .shot-img > * { filter: grayscale(1) contrast(1.08); transform: none; }
.ph {
  display: grid !important; place-items: center;
  background: linear-gradient(150deg, #D9D1C6, #BFB5A8) !important;
  font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(30, 26, 25, .45);
}
/* розовый мазок кистью */
.shot-brush {
  position: absolute; inset: -16px -14px -18px -16px; z-index: 0;
  background: var(--pink); filter: url(#rough);
  transform: scale(.9); opacity: 0;
  transition: transform 1.1s var(--ease), opacity .8s ease;
}
.shot.in .shot-brush { transform: none; opacity: 1; }
/* рамка красной ручкой */
.shot-pen { position: absolute; inset: -14px; z-index: 2; width: calc(100% + 28px); height: calc(100% + 28px); overflow: visible; pointer-events: none; }
.shot-pen path { fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fig { display: block; margin-top: 22px; font: 500 11px var(--mono); letter-spacing: .18em; color: #D58CA8; text-transform: uppercase; }

/* ---------- Главы ---------- */
.section, .chapter { max-width: 560px; margin: 0 auto; padding: 84px 22px; position: relative; }
.chapter .shot { width: min(80vw, 360px); margin: 42px auto 0; }
.chapter:nth-of-type(even) .shot { transform: rotate(1.5deg); }
.chapter:nth-of-type(odd) .shot { transform: rotate(-1.5deg); }
.chapter p.text { color: var(--ink); }
.chapter p.text + p.text { margin-top: 14px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: baseline; margin: 30px 0 26px; }
.meta dt { font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.meta dd { font: 26px/1.2 var(--script); color: var(--ink); }
.note { margin-top: 30px; font: 27px/1.5 var(--script); color: var(--ink); transform: rotate(-1.5deg); }
.note span {
  background: linear-gradient(transparent 22%, rgba(231, 179, 198, .85) 22%, rgba(231, 179, 198, .85) 88%, transparent 88%) no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .15em;
  transition: background-size 1.6s var(--ease) .5s;
}
.note.in span { background-size: 100% 100%; }
.wave { display: block; width: 70%; height: 30px; margin: 0 auto; overflow: visible; }
.wave path { fill: none; stroke: var(--red); stroke-width: 1.3; stroke-linecap: round; }

/* ---------- Два мира ---------- */
.worlds { height: 300vh; position: relative; }
.worlds-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.worlds svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-label { font: 30px var(--script); fill: var(--ink); }
.w-label--b { fill: var(--red); }
.w-path { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.w-path--a { stroke: var(--ink); }
.w-path--b { stroke: var(--red); }
.w-dot--a { fill: var(--ink); }
.w-dot--b { fill: var(--red); }
.w-meet { opacity: 0; transform-origin: 180px 534px; transform: scale(.4); transition: opacity .8s ease, transform 1s var(--ease); }
.w-meet circle { fill: rgba(231, 179, 198, .55); }
.w-meet path { fill: var(--red); }
.w-meet.on { opacity: 1; transform: scale(1); }
.worlds-lines { position: relative; z-index: 2; width: 100%; max-width: 400px; height: 220px; margin-top: -40px; }
.worlds-lines::before {
  content: ''; position: absolute; inset: -30px -10px;
  background: radial-gradient(closest-side, rgba(238, 232, 223, .96), rgba(238, 232, 223, 0));
}
.wl {
  position: absolute; left: 22px; right: 22px; top: 50%;
  text-align: center; font-size: clamp(36px, 10.5vw, 48px); line-height: 1.02;
  opacity: 0; transform: translateY(calc(-50% + 16px));
  transition: opacity .7s ease, transform .9s var(--ease);
}
.wl.on { opacity: 1; transform: translateY(-50%); }

/* ---------- Стопка фото ---------- */
.stack { position: relative; width: min(76vw, 310px); aspect-ratio: .78; margin: 40px auto 0; touch-action: pan-y; }
.card {
  position: absolute; inset: 0;
  background: var(--card); padding: 10px 10px 0;
  box-shadow: 0 22px 44px -20px rgba(30, 26, 25, .5), 0 2px 6px rgba(30, 26, 25, .08);
  cursor: grab; user-select: none; -webkit-user-select: none;
  transition: transform .55s var(--ease), opacity .4s;
  display: flex; flex-direction: column;
}
.card .shot-img { aspect-ratio: auto; flex: 1; }
.card figcaption { font: 26px/1 var(--script); color: var(--red); text-align: center; padding: 12px 6px 14px; }
.card--dark { background: #161212; }
.card--dark figcaption { color: var(--pink); }
.card.dragging { transition: none; cursor: grabbing; }
.hint { text-align: center; margin-top: 30px; }

/* ---------- Открой, когда ---------- */
.lead { color: var(--ink-soft); }
.ow-list { display: flex; flex-direction: column; gap: 26px; margin-top: 40px; }
.ow {
  position: relative; width: 86%; padding: 30px 30px 30px 80px; text-align: left;
  font: 500 12.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.ow:nth-child(even) { align-self: flex-end; }
.ow svg.pen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ow svg.pen path { fill: none; stroke: var(--red); stroke-width: 1.3; stroke-linecap: round; }
.ow b { position: absolute; left: 20px; top: 50%; transform: translateY(-58%); font: 400 40px/1 var(--script); color: var(--red); }
.ow i { display: block; font: 400 12px var(--script); letter-spacing: 0; text-transform: none; color: var(--ink-soft); font-size: 20px; margin-top: 2px; }
.ow:active { transform: scale(.97); }
.ow.read { opacity: .55; }

.modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(30, 26, 25, .4);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: relative; width: min(100%, 420px); max-height: 80vh; overflow: auto;
  background: var(--card); padding: 38px 26px 22px;
  box-shadow: 0 40px 80px -30px rgba(30, 26, 25, .6);
  transform: translateY(30px) rotate(-1deg); transition: transform .45s var(--ease);
}
.modal.open .sheet { transform: rotate(-1deg); }
.sheet h3 { font-size: 40px; line-height: 1.1; color: var(--red); margin: 6px 0 16px; }
.sheet p + p { margin-top: 12px; }
.sheet-close { display: block; margin: 26px auto 0; color: var(--red); }

/* ---------- Скретч ---------- */
.scratch {
  position: relative; width: 100%; aspect-ratio: 1.45; margin-top: 26px;
  overflow: hidden; background: var(--card);
  box-shadow: 0 22px 44px -22px rgba(30, 26, 25, .45);
}
.scratch-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 26px 30px;
  font-size: clamp(26px, 7.4vw, 34px); line-height: 1.25; color: var(--red);
}
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; transition: opacity .9s ease; }
.scratch canvas.done { opacity: 0; pointer-events: none; }

/* ---------- Календарь ---------- */
.cal { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px -6px 0; }
.cal-col { position: relative; padding: 0 4px; }
.cal-col + .cal-col { border-left: 1px solid var(--ink); }
.cal-day { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 0; }
.cal-mon { font: 11px var(--mono); color: var(--ink-soft); margin-top: 8px; }
.cal-num { font: 400 clamp(64px, 20vw, 96px)/1 var(--display); margin-top: 2px; }
.cal-col.is-date .cal-num { color: var(--red); }
.cal-col svg { position: absolute; left: -6%; right: -6%; top: 28%; width: 112%; height: 86%; overflow: visible; pointer-events: none; }
.cal-col svg path { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; }
.cal-script { font-size: 38px; color: var(--red); margin-top: 22px; transform: rotate(-3deg); }
.cal-cd { margin-top: 8px; color: var(--ink-soft); font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* ---------- Письмо ---------- */
.letter {
  position: relative; background: var(--card);
  padding: 46px 24px 34px;
  box-shadow: 0 34px 60px -32px rgba(30, 26, 25, .45);
  transform: rotate(-.8deg);
}
.letter::before {
  content: ''; position: absolute; top: -13px; left: 50%; width: 110px; height: 28px; margin-left: -55px;
  background: rgba(231, 179, 198, .8); transform: rotate(2deg);
}
.letter-hello { font-size: 44px; line-height: 1; color: var(--red); margin-bottom: 18px; }
#letterBody { line-height: 1.9; }
#letterBody p { min-height: 1.9em; }
#letterBody p + p { margin-top: 16px; }
.caret { display: inline-block; width: 7px; height: 1.1em; background: var(--red); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.letter-sign { text-align: right; font-size: 46px; line-height: 1; color: var(--red); margin-top: 24px; opacity: 0; transition: opacity 1.2s ease; min-height: 46px; }
.letter-sign.on { opacity: 1; }

/* ---------- Финал ---------- */
.finale {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 22px 120px;
}
.peony--finale { width: min(56vw, 240px); }
.peony--finale path { transition-duration: 3.4s, 2s; }
.finale-line { font-size: clamp(38px, 11vw, 54px); line-height: 1; color: var(--ink); max-width: 380px; margin-top: 34px; --d: .8s; }
.finale-sign { margin-top: 46px; position: relative; --d: 1.4s; }
.finale-sign .display { display: block; font-size: 30px; letter-spacing: .08em; text-transform: uppercase; }
.finale-sign .script { display: block; font-size: 64px; line-height: .9; color: var(--red); transform: rotate(-6deg) translateX(30px); margin-top: -6px; }
.finale-sub { margin-top: 40px; --d: 2s; }

/* ---------- Музыка ---------- */
.music {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 85;
  width: 46px; height: 46px; border-radius: 50%;
  background: #F6F1EA;
  box-shadow: 0 8px 22px -8px rgba(30, 26, 25, .45);
  display: none; align-items: center; justify-content: center; gap: 3px;
}
.music.show { display: flex; }
.music i { width: 3px; height: 8px; border-radius: 2px; background: var(--red); }
.music.playing i { animation: eq 1s ease-in-out infinite; }
.music.playing i:nth-child(2) { animation-delay: -.3s; }
.music.playing i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 50% { height: 18px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Кролики ---------- */
.hero-ps { color: var(--red); font-size: 24px; line-height: 1.3; max-width: 300px; margin: 36px auto 0; transform: rotate(-2deg); opacity: 0; transition: opacity 1.2s ease 3.4s; }
body.started .hero-ps { opacity: 1; }
.bunny {
  position: absolute; bottom: 0; z-index: 3;
  width: 72px; height: 76px; overflow: hidden;
  border-bottom: 1px solid transparent;
  transition: border-color .5s ease var(--d, .4s);
}
.bunny.in { border-color: var(--ink); }
.bunny.found, .bunny.found.in { border-color: transparent !important; transition-delay: .3s; }
.bunny--r { right: 18px; }
.bunny--l { left: 18px; }
.bunny svg { display: block; width: 72px; height: 79px; transform: translateY(100%); transition: transform 1.1s var(--ease) var(--d, .4s); }
.bunny.in svg { transform: translateY(6%); }
.bunny.found svg { transform: translateY(-30%); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1), opacity .4s ease .25s; }
.bunny .ears { transform-origin: 50px 54px; animation: ears 4.5s ease-in-out infinite; }
@keyframes ears { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-5deg); } 95% { transform: rotate(4deg); } }
.b-fill { fill: var(--card); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.b-inner { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; }
.b-cheek { fill: var(--pink); opacity: .7; }
.b-eye { fill: var(--ink); }
.b-nose { fill: #D97E9C; }
.b-line { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 88;
  background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 40px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .4s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.cal-next { margin-top: 26px; color: var(--red); }

/* ---------- Луна ---------- */
.moon { height: 260vh; position: relative; --night: 0; --rise: 0; }
.moon-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 26px;
}
.moon-sky {
  position: absolute; inset: 0; opacity: var(--night);
  background: radial-gradient(120% 70% at 50% 20%, #2A2232 0, #16131C 60%);
}
.moon-sky i {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background: #F3EBDD; animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: .25; } }
.moon-svg {
  position: relative; width: min(52vw, 220px); overflow: visible;
  transform: translateY(calc((1 - var(--rise)) * 36vh));
  opacity: var(--rise);
}
.moon-disc { fill: #F3EBDD; }
.moon-crater { fill: rgba(30, 26, 25, .06); }
.moon-text { position: relative; margin-top: 18px; max-width: 360px; }
.moon-intro { color: rgba(243, 235, 221, .72); font-size: 13px; opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s var(--ease); }
.moon-th {
  font: 700 clamp(34px, 10vw, 56px)/1.25 'Charm', var(--script); white-space: nowrap;
  color: #F3EBDD; margin-top: 44px;
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity 1.6s ease, transform 1.6s var(--ease), filter 1.6s ease;
}
.moon-tr { color: var(--pink); font-size: 28px; margin-top: 20px; opacity: 0; transition: opacity 1.2s ease .3s; }
.moon.m1 .moon-intro { opacity: 1; transform: none; }
.moon.m2 .moon-th { opacity: 1; transform: none; filter: none; text-shadow: 0 0 24px rgba(243, 235, 221, .35); }
.moon.m3 .moon-tr { opacity: 1; }
.moon-after { color: rgba(243, 235, 221, .8); font-size: 13px; margin-top: 36px; opacity: 0; transform: translateY(10px); transition: opacity 1.2s ease, transform 1.2s var(--ease); }
.moon.m4 .moon-after { opacity: 1; transform: none; }

/* финал продолжает ночь */
.finale { background: #16131C; color: #F3EBDD; }
.finale .peony path { stroke: var(--pink); }
.finale .peony .stem, .finale .peony .leaf { stroke: rgba(243, 235, 221, .8); }
.finale .peony.drawn .petal { fill: transparent; }
.finale .finale-line { color: #F3EBDD; }
.finale .finale-line em, .finale .finale-sign .script { color: var(--pink); }
.finale .mono-label { color: rgba(243, 235, 221, .6); }
.chapter .fig + p.text { margin-top: 26px; }
/* цветное фото среди чёрно-белых */
.shot.color .shot-img > *, .shot.color.dev.in .shot-img > * { filter: saturate(.9) contrast(1.03); }
.shot.color.dev .shot-img > * { filter: brightness(2.3) contrast(.4) saturate(0) blur(2px); }
.shot.color.dev.in .shot-img > * { filter: saturate(.9) contrast(1.03); transition-duration: 3.2s; }

/* ---------- Плёночная лента ---------- */
.strip {
  margin: 40px -22px 0; padding: 22px 0;
  background:
    radial-gradient(circle, var(--paper) 0 3px, transparent 3.5px) 0 7px / 18px 18px repeat-x,
    radial-gradient(circle, var(--paper) 0 3px, transparent 3.5px) 0 calc(100% - 7px) / 18px 18px repeat-x,
    #17120F;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip-track { display: flex; gap: 10px; padding: 0 22px; width: max-content; }
.strip-frame { flex: none; scroll-snap-align: center; }
.strip-frame img { display: block; height: 230px; width: auto; border-radius: 3px; }
.strip-frame figcaption { font: 500 10px var(--mono); letter-spacing: .12em; color: #E9A64A; margin-top: 6px; text-transform: uppercase; }
.strip-hint { text-align: center; margin-top: 16px; }
.w-kid-card { fill: var(--card); filter: drop-shadow(0 6px 10px rgba(30, 26, 25, .25)); }
.w-kid .w-label { font-size: 22px; }

/* ---------- Видео ---------- */
.clip {
  position: relative; width: min(64vw, 280px); margin: 40px auto 0;
  background: #161212; padding: 10px 10px 0;
  box-shadow: 0 22px 44px -20px rgba(30, 26, 25, .5);
  transform: rotate(2deg);
}
.clip.in { transform: rotate(2deg); }
.clip video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.clip figcaption {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 6px 12px; font: 24px/1 var(--script); color: var(--pink);
}
.clip figcaption::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #E0453C;
  animation: rec 1.4s steps(1) infinite;
}
@keyframes rec { 50% { opacity: 0; } }

/* облачко «нажми на меня» над первым кроликом */
.bunny-tip {
  position: absolute; right: 98px; bottom: 22px; z-index: 3;
  font: 24px/1 var(--script); color: var(--red); white-space: nowrap;
  opacity: 0; transform: translateX(-8px) rotate(-4deg);
  transition: opacity .6s ease 1.8s, transform .6s var(--ease) 1.8s;
  pointer-events: none;
}
.bunny-tip::after { content: ' →'; font-family: var(--mono); font-size: 18px; }
.bunny-tip.in { opacity: 1; transform: rotate(-4deg); animation: tip 2.4s ease-in-out 2.4s infinite; }
.bunny-tip.gone { opacity: 0 !important; animation: none; transition-delay: 0s; }
@keyframes tip { 50% { transform: translateX(6px) rotate(-4deg); } }

/* подсказка «листай дальше» в пустом начале ночной сцены, гаснет с наступлением ночи */
.moon-cue {
  position: absolute; left: 0; right: 0; top: 9%;
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 24px; text-align: center;
  opacity: calc(1 - var(--night) * 2.5); pointer-events: none;
}
.moon-cue i { width: 1px; height: 56px; background: var(--red); transform-origin: top; animation: moonCue 2.2s ease-in-out infinite; }
@keyframes moonCue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* конвертик в «Открой, когда…» */
.ow-env { position: absolute; left: 18px; top: 50%; width: 52px; height: 43px; transform: translateY(-50%) rotate(-6deg); overflow: visible; }
.ow-body { fill: var(--card); stroke: var(--red); stroke-width: 1.4; }
.ow-flap { fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linejoin: round; }
.ow-flap-open { fill: var(--pink-soft); stroke: var(--red); stroke-width: 1.4; stroke-linejoin: round; display: none; }
.ow-letter { fill: var(--card); stroke: var(--red); stroke-width: 1.2; display: none; }
.ow-seal { fill: var(--red); }
.ow-num { font: 600 9px var(--mono); fill: var(--card); }
.ow.read .ow-flap { display: none; }
.ow.read .ow-flap-open, .ow.read .ow-letter { display: inline; }
.ow.read .ow-seal { fill: var(--pink); }
.ow.read .ow-num { fill: var(--red); }

/* ---------- Тайский: шрифтам нужен воздух над и под строкой, разрядка ломает знаки ---------- */
:lang(th) body { line-height: 1.95; }
:lang(th) .mono-label, :lang(th) .ow, :lang(th) .cal-day, :lang(th) .fig, :lang(th) .strip-frame figcaption, :lang(th) .toast { letter-spacing: .02em; }
:lang(th) .mono-label { font-size: 12px; line-height: 1.7; }
:lang(th) h2 { font-weight: 300; line-height: 1.45; font-size: clamp(36px, 10.5vw, 56px); }
:lang(th) h2 em, :lang(th) .finale-line em, :lang(th) .wl em { line-height: 1.2; font-size: 1.05em; transform: rotate(-3deg); }
:lang(th) .hero-title .display { font-weight: 300; line-height: 1.4; padding-top: .1em; }
:lang(th) .hero-title .script { line-height: 1.35; margin-top: .25em; padding-bottom: .1em; }
:lang(th) .hero-sub { line-height: 1.9; font-size: 14px; }
:lang(th) .hero-ps, :lang(th) .lock-script, :lang(th) .lock-msg, :lang(th) .env-hint { line-height: 1.6; }
:lang(th) .lock-q { font-weight: 300; line-height: 1.45; }
:lang(th) .wl { font-weight: 300; line-height: 1.45; font-size: clamp(30px, 8.6vw, 42px); }
:lang(th) .note { line-height: 1.85; }
:lang(th) .meta dd, :lang(th) .card figcaption, :lang(th) .clip figcaption { line-height: 1.5; }
:lang(th) .ow { font-size: 14px; line-height: 1.6; text-transform: none; }
:lang(th) .ow i { font-size: 19px; line-height: 1.5; }
:lang(th) .sheet { line-height: 1.95; }
:lang(th) .sheet h3 { line-height: 1.5; margin-top: 22px; }
:lang(th) .scratch-text { line-height: 1.6; }
:lang(th) .cal-script, :lang(th) .letter-sign, :lang(th) .letter-hello { line-height: 1.5; }
:lang(th) #letterBody { line-height: 2; }
:lang(th) .moon-th { line-height: 1.6; }
:lang(th) .moon-intro, :lang(th) .moon-after { line-height: 1.9; font-size: 14px; }
:lang(th) .finale-line { font-weight: 300; line-height: 1.45; }
:lang(th) .finale-sign .display { font-weight: 300; letter-spacing: .02em; line-height: 1.5; }
:lang(th) .env-letter-text { line-height: 1.7; }
:lang(th) .bunny-tip { line-height: 1.5; }
:lang(th) .w-label { font-size: 22px; }
.moon-tr:empty { display: none; }

/* ---------- Три попытки ---------- */
.chapter p.after { margin-top: 26px; }
.attempts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0 6px; }
.attempt {
  position: relative; background: var(--card); padding: 12px 8px 14px; text-align: center;
  box-shadow: 0 14px 28px -18px rgba(30, 26, 25, .5);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.attempt:nth-child(1) { transform: rotate(-2deg); }
.attempt:nth-child(2) { transform: rotate(1.5deg); }
.attempt:nth-child(3) { transform: rotate(-1deg); }
.attempt { opacity: 0; translate: 0 22px; rotate: 0deg; transition: opacity 1s ease, translate 1s var(--ease); transition-delay: var(--d, 0s); }
.attempt.in { opacity: 1; translate: 0 0; }
.attempt .mono-label { font-size: 10px; letter-spacing: .12em; }
.attempt-mark { width: 46px; height: 46px; overflow: visible; }
.attempt-mark path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.attempt--ok .attempt-mark path { stroke: var(--ink); }
.attempt--heart .attempt-mark path { fill: rgba(231, 179, 198, .0); transition: stroke-dashoffset 1.6s var(--ease) var(--dd, .2s), fill .8s ease calc(var(--dd, .2s) + 1.3s); }
.attempt--heart.in .attempt-mark path { fill: rgba(231, 179, 198, .9); }
.attempt-text { font: 20px/1.15 var(--script); color: var(--ink); }
.attempt--heart .attempt-text { color: var(--red); }
.attempt--x .attempt-text { color: var(--ink-soft); }

/* ---------- Ты ---------- */
#you .shot { width: min(78vw, 340px); margin: 34px auto 30px; transform: rotate(1.5deg); }
#you p.text + p.text { margin-top: 14px; }

/* ---------- Во что я верю ---------- */
.beliefs { list-style: none; margin-top: 30px; }
.belief { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 24px 0; position: relative; }
.belief::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .1s;
}
.belief.in::before { transform: scaleX(1); }
.belief-num {
  font: 400 34px/1 var(--display); color: transparent;
  -webkit-text-stroke: 1px var(--red); padding-top: 4px;
}
.belief-text { font: 400 22px/1.4 var(--display); color: var(--ink); }
.belief-text em {
  font: 1.15em/1 var(--script); color: var(--red); font-style: normal; padding: 0 .1em;
  background: linear-gradient(transparent 35%, rgba(231, 179, 198, .8) 35%, rgba(231, 179, 198, .8) 90%, transparent 90%) no-repeat;
  background-size: 0% 100%; transition: background-size 1.2s var(--ease) .7s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.belief.in .belief-text em { background-size: 100% 100%; }

/* ---------- Одна просьба ---------- */
.honest {
  position: relative; background: var(--ink); color: var(--card);
  padding: 96px 24px 100px; margin: 40px 0; overflow: hidden;
}
.honest::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .25; mix-blend-mode: screen;
  background: radial-gradient(70% 50% at 50% 0%, rgba(231, 179, 198, .35), transparent 70%);
}
.honest-in { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; text-align: center; }
.honest-q { width: 56px; height: 42px; margin: 0 auto 22px; display: block; fill: var(--pink); opacity: .9; }
.honest .mono-label { color: rgba(248, 244, 238, .55); }
.honest-lead { font: 400 clamp(28px, 8vw, 38px)/1.2 var(--display); margin-top: 18px; --d: .1s; }
.honest-lead em, .honest-big em { font: 1.12em/1 var(--script); font-style: normal; color: var(--pink); }
.honest-text { color: rgba(248, 244, 238, .75); margin-top: 26px; --d: .2s; }
.honest-big { font: 400 clamp(26px, 7.4vw, 34px)/1.25 var(--display); color: var(--card); margin-top: 32px; --d: .3s; }
.honest-quote {
  color: var(--pink); font-size: 26px; line-height: 1.4; margin-top: 36px; transform: rotate(-2deg);
  opacity: 0; transition: opacity 1.2s ease .5s;
}
.honest-quote.in { opacity: 1; }

/* тайский: больше воздуха */
:lang(th) .belief-text { font-weight: 300; font-size: 20px; line-height: 1.75; }
:lang(th) .belief-text em { line-height: 1.5; font-size: 1.05em; }
:lang(th) .honest-lead, :lang(th) .honest-big { font-weight: 300; line-height: 1.6; }
:lang(th) .honest-text { line-height: 1.95; }
:lang(th) .honest-quote { line-height: 1.7; }
:lang(th) .attempt-text { font-size: 18px; line-height: 1.5; }
:lang(th) .attempt .mono-label { letter-spacing: .02em; font-size: 11px; }

.clip + p.text { margin-top: 34px; }

/* ---------- Дождь в главе про второе свидание ---------- */
.chapter.has-rain > * { position: relative; z-index: 1; }
.chapter.has-rain > .rain {
  position: absolute; z-index: 0; left: -22px; right: -22px; top: 0; height: 110vh;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
          mask-image: linear-gradient(#000 55%, transparent);
  opacity: 0; transition: opacity 1.6s ease;
}
.chapter.has-rain > .rain.raining { opacity: 1; }
.rain i {
  position: absolute; top: -100px; width: 1px;
  background: linear-gradient(transparent, rgba(94, 104, 122, .9));
  transform: rotate(14deg);
  animation: drop 1s linear infinite; animation-play-state: paused;
}
.rain.raining i { animation-play-state: running; }
@keyframes drop { to { translate: -28vh 125vh; } }
@media (prefers-reduced-motion: reduce) { .rain { display: none; } }

/* ---------- Написано в звёздах ---------- */
.sky { display: block; width: 100%; height: auto; margin: 28px 0 8px; overflow: visible; }
.sky-dots circle { fill: var(--ink-soft); opacity: .35; }
.sky .c-line { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.sky .c-line--b { stroke: var(--red); }
.sky .c-line { transition: stroke-dashoffset 2.5s cubic-bezier(.45, 0, .55, 1) .8s; }
.sky .c-link { fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; transition: stroke-dashoffset 1.8s var(--ease) 3.1s; }
.c-star { fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); transition: opacity .6s ease, transform .8s var(--ease); }
.c-star--big { fill: var(--red); filter: drop-shadow(0 0 4px rgba(163, 35, 45, .5)); }
.sky.in .c-star { opacity: 1; transform: none; }
.sky .c-heart { fill: var(--red); stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: opacity .5s ease 4.7s, transform .7s cubic-bezier(.3, 1.6, .5, 1) 4.7s; }
.sky.in .c-heart { opacity: 1; transform: none; }
.c-name { font: 24px var(--script); fill: var(--ink); }
.c-name--b { fill: var(--red); }

.zodiac { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.zcard { background: var(--card); padding: 18px 14px 16px; box-shadow: 0 16px 32px -20px rgba(30, 26, 25, .5); text-align: center; }
.zcard--a { transform: rotate(-1.2deg); }
.zcard--b { transform: rotate(1.2deg); }
.zsign { font: 400 52px/1 var(--display); color: var(--ink); }
.zcard--b .zsign, .zcard--b .zname { color: var(--red); }
.zname { font: 30px/1.2 var(--script); margin: 6px 0 4px; }
.zdate { white-space: pre-line; font-size: 11px; line-height: 1.6; color: var(--ink-soft); margin-top: 10px; }
.ztraits { font: 18px/1.3 var(--script); color: var(--ink); margin-top: 10px; }
.zplanets { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 2px 10px; margin-top: 12px; font: 11px/1.6 var(--mono); }
.zplanets dt { color: var(--ink-soft); text-align: right; }
.zplanets dd { text-align: left; }
.stars-between { text-align: center; margin-top: 26px; color: var(--red); }

.star-facts { list-style: none; margin-top: 26px; }
.star-fact { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 16px 0; border-top: 1px dashed rgba(30, 26, 25, .25); }
.star-fact-ico { color: var(--red); font-size: 18px; line-height: 1.6; }
.star-fact h3 { font: 26px/1.2 var(--script); color: var(--red); font-weight: 400; margin-bottom: 4px; }
.star-fact p { font-size: 13.5px; line-height: 1.75; }

.compat { margin-top: 30px; background: var(--card); padding: 20px 18px 8px; box-shadow: 0 16px 32px -22px rgba(30, 26, 25, .45); }
.compat-row { margin-bottom: 16px; }
.compat-top { display: flex; justify-content: space-between; align-items: baseline; font: 12px/1.5 var(--mono); }
.compat-top b { font: 400 22px/1 var(--display); color: var(--red); }
.compat-bar { height: 6px; background: rgba(231, 179, 198, .35); border-radius: 6px; margin-top: 6px; overflow: hidden; }
.compat-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--pink), var(--red)); transition: width 1.6s var(--ease) var(--d, .2s); }
.compat.in .compat-bar i { width: var(--v); }
.compat-note { text-align: center; margin-top: 10px; font-size: 10px; }
.stars-outro { font: 400 22px/1.4 var(--display); margin-top: 34px; text-align: center; }
.stars-final { font: 400 clamp(28px, 8vw, 36px)/1.25 var(--display); color: var(--red); margin-top: 18px; text-align: center; }
.stars-final em { font: 1.12em/1 var(--script); font-style: normal; }
.stars-foot { font-size: 11px; color: var(--ink-soft); margin-top: 26px; text-align: center; }

:lang(th) .zname, :lang(th) .ztraits, :lang(th) .star-fact h3 { line-height: 1.6; }
:lang(th) .zdate, :lang(th) .zplanets { line-height: 1.9; }
:lang(th) .star-fact p { line-height: 1.95; }
:lang(th) .compat-top { line-height: 1.9; font-size: 13px; }
:lang(th) .stars-outro { font-weight: 300; line-height: 1.75; }
:lang(th) .stars-final { font-weight: 300; line-height: 1.6; }
:lang(th) .stars-final em { line-height: 1.4; }
:lang(th) .stars-foot { line-height: 1.9; }
/* письмо: ещё не напечатанный текст уже занимает место; каретка не сдвигает переносы строк */
#letterBody .rest { visibility: hidden; }
#letterBody .caret { margin-right: -9px; }

/* ---------- Тайская типографика: аккуратные переносы и знаки без наложений ---------- */
.tph { white-space: nowrap; }
h2, .wl, .lock-q, .hero-title, .hero-sub, .hero-ps, .honest-lead, .honest-big, .stars-final, .stars-outro,
.finale-line, .moon-th, .moon-intro, .moon-after, .cal-script, .sheet h3, .scratch-text, .bunny-tip { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
/* рукописный тайский: надстрочные знаки у Charm широкие — немного воздуха между буквами и строками */
:lang(th) .script, :lang(th) h2 em, :lang(th) .wl em, :lang(th) .finale-line em, :lang(th) .honest-lead em,
:lang(th) .honest-big em, :lang(th) .stars-final em, :lang(th) .belief-text em, :lang(th) .note,
:lang(th) .attempt-text, :lang(th) .ztraits, :lang(th) .star-fact h3, :lang(th) .clip figcaption,
:lang(th) .card figcaption, :lang(th) .bunny-tip, :lang(th) .ow i, :lang(th) .lock-msg, :lang(th) .env-hint { letter-spacing: .04em; }
:lang(th) .finale-line { line-height: 1.75; }
:lang(th) h2 { line-height: 1.6; }
:lang(th) #openWhen h2 { padding-top: .3em; }
:lang(th) .cal-script { padding-top: .35em; }
:lang(th) .wl { line-height: 1.6; }
:lang(th) .note { line-height: 2; }
:lang(th) .moon-th { font-size: clamp(30px, 9vw, 46px); }
.zcard { min-width: 0; }
.attempt { min-width: 0; }
/* секретное письмо в списке — появляется после трёх кроликов */
.ow--secret { opacity: 1 !important; transform: none !important; }
.ow-secret-ico { position: absolute; left: 22px; top: 50%; width: 44px; height: 48px; transform: translateY(-50%); overflow: visible; }

/* ---------- Подписи под «одной просьбой» ---------- */
.sign { margin-top: 44px; text-align: center; }
.sign-ask { color: rgba(248, 244, 238, .6); margin-bottom: 22px; }
.sign-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sign-cell { display: flex; flex-direction: column; align-items: center; }
.sign-pad { position: relative; width: 100%; height: 92px; display: flex; align-items: flex-end; justify-content: center; }
.sign-max { padding-bottom: 0; transform: rotate(-6deg); }
.sign-svg { width: 100%; max-width: 176px; height: auto; overflow: visible; }
.sign-svg path { fill: none; stroke: var(--pink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sign-svg path { transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .6, 1); }
.sign-svg path:nth-child(1) { transition-delay: .3s; transition-duration: 1.1s; }
.sign-svg path:nth-child(2) { transition-delay: 1.3s; }
.sign-svg path:nth-child(3) { transition-delay: 2s; }
.sign-svg path:nth-child(4) { transition-delay: 2.6s; transition-duration: .6s; }
.sign-line { width: 100%; height: 1px; background: rgba(248, 244, 238, .45); }
.sign-cell .mono-label { color: rgba(248, 244, 238, .5); margin-top: 8px; }
#signCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sign-hint {
  position: absolute; left: 0; right: 0; bottom: 10px; color: rgba(231, 179, 198, .55); font-size: 22px; pointer-events: none;
  transition: opacity .3s;
}
.sign.has-ink .sign-hint, .sign.signed .sign-hint { opacity: 0; }
.sign-actions { display: flex; justify-content: center; gap: 14px; margin-top: 22px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.sign.has-ink .sign-actions { opacity: 1; pointer-events: auto; }
.sign.signed .sign-actions { display: none; }
.sign-clear { color: rgba(248, 244, 238, .55); padding: 10px 14px; }
.sign-ok {
  background: var(--pink); color: var(--ink); border-radius: 40px; padding: 11px 22px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.sign.signed #signCanvas { pointer-events: none; }
.sign-done { color: var(--pink); font-size: 26px; line-height: 1.4; margin-top: 22px; opacity: 0; transform: translateY(8px); transition: opacity .8s ease .2s, transform .8s var(--ease) .2s; }
.sign.signed .sign-done { opacity: 1; transform: none; }
:lang(th) .sign-ok { letter-spacing: .02em; font-size: 13px; }
:lang(th) .sign-hint { font-size: 20px; line-height: 1.5; }
:lang(th) .sign-done { line-height: 1.7; }
