/* ─────────────────────────────────────────────────────────────────
   縁 · en — palette, motion, type
   ───────────────────────────────────────────────────────────────── */

:root {
  --ink: #1a1410;
  --ink-soft: #2a221c;
  --paper: #f5ede0;
  --paper-warm: #ede2d0;
  --washi: #f8f1e4;
  --sakura: #f4d4d4;
  --sakura-deep: #e8b4b4;
  --copper: #b87333;
  --copper-soft: #d4a574;
  --indigo: #1d2951;
  --indigo-deep: #11172e;
  --ember: #f0b66a;
  --ember-warm: #e89b4c;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 60px rgba(240, 182, 106, 0.35);

  --font-ja-display: "Yuji Mai", "Shippori Mincho", serif;
  --font-ja-body: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-en-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────────
   reset & base
   ───────────────────────────────────────────────────────────────── */

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

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-ja-body);
  background:
    radial-gradient(ellipse at 50% 30%, #2a221c 0%, var(--ink) 55%, #0d0907 100%);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

main {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.ja {
  display: block;
  font-family: var(--font-ja-body);
  letter-spacing: 0.06em;
}

.en {
  display: block;
  font-family: var(--font-en-body);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  opacity: 0.55;
}

/* ─────────────────────────────────────────────────────────────────
   ambient: paper grain & sakura petals
   ───────────────────────────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  width: 14px;
  height: 14px;
  background: radial-gradient(ellipse at 30% 30%, var(--sakura) 30%, var(--sakura-deep) 90%);
  border-radius: 150% 0 150% 0;
  transform: rotate(45deg);
  opacity: 0;
  filter: blur(0.3px);
  animation: petal-fall linear infinite;
}

.petal:nth-child(1)  { left:  4%; animation-duration: 22s; animation-delay:  0s; transform: scale(0.8) rotate(45deg); }
.petal:nth-child(2)  { left: 12%; animation-duration: 28s; animation-delay:  3s; transform: scale(1.1) rotate(45deg); }
.petal:nth-child(3)  { left: 22%; animation-duration: 18s; animation-delay:  6s; transform: scale(0.7) rotate(45deg); }
.petal:nth-child(4)  { left: 31%; animation-duration: 32s; animation-delay:  1s; transform: scale(1.0) rotate(45deg); }
.petal:nth-child(5)  { left: 42%; animation-duration: 24s; animation-delay:  9s; transform: scale(0.9) rotate(45deg); }
.petal:nth-child(6)  { left: 51%; animation-duration: 30s; animation-delay:  4s; transform: scale(1.2) rotate(45deg); }
.petal:nth-child(7)  { left: 60%; animation-duration: 20s; animation-delay:  7s; transform: scale(0.8) rotate(45deg); }
.petal:nth-child(8)  { left: 69%; animation-duration: 26s; animation-delay:  2s; transform: scale(1.0) rotate(45deg); }
.petal:nth-child(9)  { left: 78%; animation-duration: 34s; animation-delay: 10s; transform: scale(0.7) rotate(45deg); }
.petal:nth-child(10) { left: 86%; animation-duration: 22s; animation-delay:  5s; transform: scale(1.1) rotate(45deg); }
.petal:nth-child(11) { left: 92%; animation-duration: 28s; animation-delay:  8s; transform: scale(0.9) rotate(45deg); }
.petal:nth-child(12) { left: 97%; animation-duration: 24s; animation-delay: 11s; transform: scale(0.8) rotate(45deg); }

@keyframes petal-fall {
  0%   { top: -6%;  opacity: 0;   transform: translateX(0)    rotate(45deg); }
  10%  {            opacity: 0.7; }
  50%  {            transform: translateX(40px) rotate(225deg); }
  90%  {            opacity: 0.7; }
  100% { top: 110%; opacity: 0;   transform: translateX(-40px) rotate(405deg); }
}

/* ─────────────────────────────────────────────────────────────────
   phase scaffolding
   ───────────────────────────────────────────────────────────────── */

.phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 2s var(--ease),
    visibility 0s linear 2s;
  z-index: 2;
}

.phase.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 2.4s var(--ease),
    visibility 0s linear;
}

/* ─────────────────────────────────────────────────────────────────
   buttons
   ───────────────────────────────────────────────────────────────── */

.btn-soft,
.btn-ghost {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  padding: 1.1em 2.4em;
  border: 1px solid rgba(245, 237, 224, 0.25);
  border-radius: 999px;
  background: rgba(245, 237, 224, 0.03);
  color: var(--paper);
  cursor: pointer;
  transition: all 0.6s var(--ease);
  backdrop-filter: blur(6px);
}

.btn-soft .ja,
.btn-ghost .ja {
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.btn-soft .en,
.btn-ghost .en {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
}

.btn-soft:hover,
.btn-ghost:hover {
  border-color: var(--ember);
  background: rgba(240, 182, 106, 0.08);
  box-shadow: 0 0 30px rgba(240, 182, 106, 0.18);
  transform: translateY(-1px);
}

.btn-soft:active,
.btn-ghost:active {
  transform: translateY(0) scale(0.98);
}

/* ─────────────────────────────────────────────────────────────────
   phase 0 — enter
   ───────────────────────────────────────────────────────────────── */

.enter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.enter__kanji {
  font-family: var(--font-ja-display);
  font-size: clamp(6rem, 18vw, 12rem);
  color: var(--paper);
  opacity: 0.85;
  text-shadow: 0 0 60px rgba(240, 182, 106, 0.15);
  animation: gentle-breath 6s ease-in-out infinite;
}

.enter__hint .ja {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.enter__hint .en {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  opacity: 0.4;
}

@keyframes gentle-breath {
  0%, 100% { opacity: 0.85; transform: scale(1);    }
  50%      { opacity: 1;    transform: scale(1.02); }
}

/* ─────────────────────────────────────────────────────────────────
   phase 1 — opening kanji 縁
   ───────────────────────────────────────────────────────────────── */

.kanji-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.big-kanji {
  font-family: var(--font-ja-display);
  font-weight: 400;
  font-size: clamp(9rem, 26vw, 18rem);
  line-height: 1;
  color: var(--paper);
  text-shadow:
    0 0 40px rgba(240, 182, 106, 0.25),
    0 0 80px rgba(240, 182, 106, 0.1);
  margin-bottom: 0.5rem;
}

.opening-line {
  max-width: 30ch;
  margin: 0 auto;
}

.opening-line .ja {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.18em;
  line-height: 2;
  font-weight: 400;
  color: var(--washi);
}

.opening-line .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.12em;
  text-transform: none;
  margin-top: 0.6rem;
  opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────────────
   phase 2 — three lanterns
   ───────────────────────────────────────────────────────────────── */

.phase--lanterns {
  flex-direction: column;
  gap: 3rem;
}

.phase-intro {
  text-align: center;
  max-width: 36ch;
}

.phase-intro .ja {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.phase-intro .en {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  opacity: 0.4;
}

.lanterns-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 5vw, 4rem);
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
}

.lantern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: clamp(160px, 22vw, 220px);
  position: relative;
}

.lantern__rope {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(245, 237, 224, 0.4));
}

.lantern__body {
  position: relative;
  width: 110px;
  height: 130px;
  border-radius: 50% / 45%;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 240, 200, 0.04) 0,
      rgba(255, 240, 200, 0.04) 10px,
      transparent 10px,
      transparent 11px
    ),
    radial-gradient(circle at 50% 45%, #5a3a26 0%, #3a2418 70%, #1d130b 100%);
  border: 1px solid rgba(245, 237, 224, 0.18);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 1.4s var(--ease);
  animation: lantern-bob 5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lantern:nth-child(2) .lantern__body { animation-delay: -1.6s; }
.lantern:nth-child(3) .lantern__body { animation-delay: -3.2s; }

.lantern__body::before,
.lantern__body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to bottom, #2a1a10, #1d130b);
  border: 1px solid rgba(245, 237, 224, 0.15);
}

.lantern__body::before { top: -3px;    border-radius: 50% / 100% 100% 0 0; }
.lantern__body::after  { bottom: -3px; border-radius: 50% / 0 0 100% 100%; }

.lantern__kanji {
  font-family: var(--font-ja-display);
  font-size: 2.2rem;
  color: rgba(245, 237, 224, 0.4);
  z-index: 2;
  transition: all 0.8s var(--ease);
  text-shadow: 0 0 0 transparent;
}

.lantern__glow {
  position: absolute;
  inset: 4px;
  border-radius: 50% / 45%;
  background: radial-gradient(circle at 50% 50%, var(--ember) 0%, var(--ember-warm) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 2s var(--ease);
  filter: blur(2px);
  z-index: 1;
}

.lantern__caption {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 1.6s var(--ease) 0.8s;
  max-width: 220px;
}

.lantern__caption .ja {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  line-height: 1.9;
  color: var(--washi);
}

.lantern__caption .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: none;
  margin-top: 0.4rem;
  opacity: 0.45;
}

.lantern__body:hover {
  border-color: rgba(240, 182, 106, 0.4);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(240, 182, 106, 0.15);
}

.lantern.is-lit .lantern__body {
  border-color: rgba(240, 182, 106, 0.6);
  box-shadow:
    inset 0 0 50px rgba(240, 182, 106, 0.4),
    0 0 60px rgba(240, 182, 106, 0.4),
    0 0 120px rgba(240, 182, 106, 0.25);
}

.lantern.is-lit .lantern__glow {
  opacity: 0.85;
  animation: lantern-flicker 4s ease-in-out infinite;
}

.lantern.is-lit .lantern__kanji {
  color: rgba(26, 20, 16, 0.85);
  text-shadow: 0 0 8px rgba(255, 220, 160, 0.4);
}

.lantern.is-lit .lantern__caption {
  opacity: 1;
  transform: translateY(0);
}

@keyframes lantern-bob {
  0%, 100% { transform: translateY(0)    rotate(-0.5deg); }
  50%      { transform: translateY(-6px) rotate(0.5deg);  }
}

@keyframes lantern-flicker {
  0%, 100% { opacity: 0.85; }
  45%      { opacity: 0.92; }
  50%      { opacity: 0.7;  }
  55%      { opacity: 0.9;  }
}

/* ─────────────────────────────────────────────────────────────────
   phase 3 — scroll unfurls
   ───────────────────────────────────────────────────────────────── */

.phase--scroll {
  flex-direction: column;
  gap: 2.5rem;
}

.scroll {
  position: relative;
  width: clamp(280px, 60vw, 540px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.scroll__rod {
  height: 16px;
  background:
    linear-gradient(to bottom,
      #6b4a2c 0%,
      #8a5d36 30%,
      #5a3d24 60%,
      #2c1d11 100%
    );
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 3;
}

.scroll__rod::before,
.scroll__rod::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 22px;
  height: 24px;
  background: radial-gradient(ellipse at 30% 30%, var(--copper-soft), var(--copper) 80%);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.scroll__rod::before { left: -10px; }
.scroll__rod::after  { right: -10px; }

.scroll__paper {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.18), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.18), transparent 50%),
    linear-gradient(to bottom, var(--washi) 0%, var(--paper-warm) 100%);
  color: var(--ink);
  max-height: 0;
  overflow: hidden;
  transition: max-height 2.6s var(--ease);
  box-shadow:
    inset 6px 0 12px rgba(0,0,0,0.06),
    inset -6px 0 12px rgba(0,0,0,0.06);
  position: relative;
}

.scroll__paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.scroll.is-open .scroll__paper {
  max-height: 600px;
}

.scroll__paper-inner {
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  opacity: 0;
  transition: opacity 1.6s var(--ease) 1.8s;
}

.scroll.is-open .scroll__paper-inner {
  opacity: 1;
}

.scroll__text .ja {
  font-family: var(--font-ja-body);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.18em;
  line-height: 2.3;
  color: var(--ink);
  font-weight: 500;
}

.scroll__text .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(26, 20, 16, 0.55);
  margin-top: 1.2rem;
  line-height: 1.7;
  opacity: 1;
}

.scroll__continue {
  opacity: 0;
  transition: opacity 1.8s var(--ease) 3.2s;
}

.scroll.is-open ~ .scroll__continue,
.scroll.is-open + .scroll__continue {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────
   phase 4 — the question (night sky)
   ───────────────────────────────────────────────────────────────── */

.phase--question {
  padding: 0;
}

.night {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 30%, var(--indigo) 0%, var(--indigo-deep) 60%, #06080f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 28% 65%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 45% 22%, #fff 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 62% 48%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 76% 12%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 88% 38%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 18% 80%, #fff 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 88%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 82% 72%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 35% 42%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 8% 50%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 95% 60%, #fff 50%, transparent 100%);
  opacity: 0.7;
  animation: star-twinkle 8s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1;   }
}

.moon {
  position: absolute;
  top: 12%;
  right: 10%;
  width: clamp(60px, 8vw, 90px);
  height: clamp(60px, 8vw, 90px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--washi) 0%, #d8c9a8 70%, #9a8b6a 100%);
  box-shadow:
    0 0 40px rgba(248, 241, 228, 0.3),
    0 0 80px rgba(248, 241, 228, 0.15);
  z-index: 1;
}

/* distant mountain ridge & Mt. Fuji silhouette */
.mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(140px, 26vh, 240px);
  pointer-events: none;
  z-index: 1;
}

.mountains__far  { fill: rgba(13, 16, 33, 0.85); }
.mountains__fuji { fill: rgba(8, 10, 22, 0.95); }
.mountains__snow { fill: rgba(248, 241, 228, 0.18); }
.mountains__near { fill: rgba(4, 6, 14, 1); }

/* distant torii silhouette */
.torii {
  position: absolute;
  bottom: 8%;
  left: 6%;
  width: clamp(70px, 9vw, 110px);
  height: auto;
  pointer-events: none;
  z-index: 1;
  fill: rgba(8, 10, 22, 0.96);
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.5));
  opacity: 0.9;
}

.question-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 42ch);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.question-decision,
.question {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.question-decision {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.6rem;
}

.question-decision.is-hidden,
.question.is-hidden {
  display: none !important;
}

.question-decision__text .ja {
  font-family: var(--font-ja-body);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  letter-spacing: 0.14em;
  line-height: 2.1;
  color: var(--washi);
  text-align: center;
  text-shadow: 0 0 30px rgba(248, 241, 228, 0.15);
}

.question-decision__text .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  letter-spacing: 0.1em;
  text-transform: none;
  margin-top: 1rem;
  line-height: 1.7;
  text-align: center;
  opacity: 0.5;
}

.question {
  max-width: 32ch;
}

.question__lead {
  margin-bottom: 1.6rem;
}

.question__lead .ja {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  opacity: 0.7;
}

.question__lead .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: none;
  margin-top: 0.3rem;
  opacity: 0.4;
}

.question__main {
  font-weight: 500;
  margin-bottom: 3rem;
}

.question__main .ja {
  font-family: var(--font-ja-body);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: 0.14em;
  line-height: 2.1;
  color: var(--washi);
  text-shadow: 0 0 30px rgba(248, 241, 228, 0.15);
}

.question__main .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  letter-spacing: 0.1em;
  text-transform: none;
  margin-top: 1rem;
  opacity: 0.5;
}

.answers {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  position: relative;
  min-height: 80px;
}

.answer {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  padding: 1em 2.6em;
  border-radius: 999px;
  border: 1px solid rgba(245, 237, 224, 0.3);
  background: rgba(245, 237, 224, 0.04);
  cursor: pointer;
  transition: all 0.5s var(--ease);
  backdrop-filter: blur(8px);
  position: relative;
}

.answer .ja {
  font-size: 1rem;
  letter-spacing: 0.22em;
  font-weight: 500;
}

.answer .en {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
}

.answer--yes {
  border-color: rgba(240, 182, 106, 0.5);
  background: linear-gradient(135deg, rgba(240, 182, 106, 0.18), rgba(232, 155, 76, 0.08));
  box-shadow: 0 0 20px rgba(240, 182, 106, 0.18);
  animation: yes-glow 3s ease-in-out infinite;
}

@keyframes yes-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(240, 182, 106, 0.18); }
  50%      { box-shadow: 0 0 40px rgba(240, 182, 106, 0.35); }
}

.answer--yes:hover {
  background: linear-gradient(135deg, rgba(240, 182, 106, 0.3), rgba(232, 155, 76, 0.18));
  box-shadow: 0 0 50px rgba(240, 182, 106, 0.45);
  transform: translateY(-2px) scale(1.04);
}

.answer--no {
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}

.answer--no.is-shy {
  pointer-events: auto;
}

/* ─────────────────────────────────────────────────────────────────
   phase 5 — yes / thank you
   ───────────────────────────────────────────────────────────────── */

.phase--yes {
  background: radial-gradient(ellipse at 50% 30%, #2a1f18 0%, var(--ink) 60%, #0d0907 100%);
}

.yes-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  max-width: 38ch;
}

.yes-kanji {
  font-family: var(--font-ja-display);
  font-size: clamp(7rem, 22vw, 14rem);
  line-height: 1;
  color: var(--ember);
  text-shadow:
    0 0 40px rgba(240, 182, 106, 0.4),
    0 0 100px rgba(240, 182, 106, 0.2);
  animation: gentle-breath 5s ease-in-out infinite;
  margin-bottom: 0.5rem;
}

.yes-title .ja {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--washi);
}

.yes-title .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: none;
  margin-top: 0.4rem;
  opacity: 0.55;
}

.yes-line {
  margin-top: 1rem;
}

.yes-line .ja {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.16em;
  line-height: 2;
  color: var(--washi);
}

.yes-line .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.1em;
  text-transform: none;
  margin-top: 0.5rem;
  opacity: 0.45;
}

.yes-personal {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 237, 224, 0.15);
}

.yes-personal .ja {
  font-size: 0.95rem;
  opacity: 0.5;
  font-style: italic;
}

.yes-personal .en {
  font-size: 0.7rem;
  opacity: 0.3;
}

/* yes-phase continue button */
.yes-to-family {
  opacity: 0;
  pointer-events: none;
  margin-top: 2.4rem;
  transition: opacity 1.6s var(--ease) 4s;
}

.phase--yes.is-active .yes-to-family {
  opacity: 1;
  pointer-events: auto;
}

/* ─────────────────────────────────────────────────────────────────
   phase 6 — family bridge
   ───────────────────────────────────────────────────────────────── */

.phase--family {
  background: radial-gradient(ellipse at 50% 30%, #2a2018 0%, var(--ink) 60%, #0d0907 100%);
}

.family-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  max-width: 38ch;
}

.family-intro .ja {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.16em;
  line-height: 2;
  color: var(--washi);
  font-weight: 400;
}

.family-intro .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.1em;
  text-transform: none;
  margin-top: 0.5rem;
  opacity: 0.45;
}

.family-request {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  max-width: 340px;
  width: 100%;
  opacity: 1;
  transition: opacity 1.2s var(--ease);
}

.family-request--message {
  max-width: 44ch;
}

.family-message .ja {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.14em;
  line-height: 2.1;
  color: var(--washi);
}

.family-message .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: none;
  margin-top: 1rem;
  opacity: 0.45;
}

.family-request.is-hidden {
  display: none;
}

.family-request__text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.family-request__para .ja {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.12em;
  line-height: 2.1;
  color: var(--washi);
  opacity: 0.92;
}

.family-request__para .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  letter-spacing: 0.1em;
  text-transform: none;
  margin-top: 0.4rem;
  opacity: 0.38;
}

.family-request__para--soft .ja {
  opacity: 0.7;
}

.family-request__para--soft .en {
  opacity: 0.28;
}

.family-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.family-form__field {
  width: 100%;
}

.family-form__label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
}

.family-form__label .ja {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--washi);
  opacity: 0.8;
}

.family-form__label .en {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  opacity: 0.3;
}

.family-form__input {
  width: 100%;
  padding: 0.9em 1.2em;
  border: 1px solid rgba(245, 237, 224, 0.2);
  border-radius: 12px;
  background: rgba(26, 20, 16, 0.5);
  color: var(--washi);
  font-family: var(--font-en-body);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-align: center;
  outline: none;
  transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
  caret-color: var(--ember);
}

.family-form__input:focus {
  border-color: var(--ember);
  box-shadow: 0 0 20px rgba(240, 182, 106, 0.12);
}

.family-form__input::placeholder {
  color: rgba(245, 237, 224, 0.2);
}

.family-form__submit {
  padding: 1em 2.8em;
}

.family-thanks {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 340px;
  width: 100%;
  opacity: 1;
  transition: opacity 1.4s var(--ease);
}

.family-thanks.is-hidden {
  display: none;
}

.family-thanks__main .ja {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--washi);
}

.family-thanks__main .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: none;
  margin-top: 0.4rem;
  opacity: 0.55;
}

.family-thanks__sub .ja {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.14em;
  line-height: 2;
  color: var(--washi);
  opacity: 0.85;
}

.family-thanks__sub .en {
  font-family: var(--font-en-display);
  font-style: italic;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  letter-spacing: 0.1em;
  text-transform: none;
  margin-top: 0.4rem;
  opacity: 0.4;
}

/* ─────────────────────────────────────────────────────────────────
   volume control
   ───────────────────────────────────────────────────────────────── */

.volume {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  background: rgba(26, 20, 16, 0.6);
  border: 1px solid rgba(245, 237, 224, 0.12);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease);
}

.volume.is-visible {
  opacity: 0.9;
  pointer-events: auto;
}

.volume:hover {
  opacity: 1;
}

.volume__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--washi);
  opacity: 0.8;
  transition: opacity 0.3s var(--ease);
}

.volume__icon:hover { opacity: 1; }

.volume.is-muted .volume__wave { opacity: 0.2; }

.volume__slider {
  width: 80px;
  height: 2px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(245, 237, 224, 0.2);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.volume__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(240, 182, 106, 0.5);
  cursor: pointer;
  border: none;
}

.volume__slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(240, 182, 106, 0.5);
  cursor: pointer;
  border: none;
}

/* ─────────────────────────────────────────────────────────────────
   responsive
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .lanterns-row {
    gap: 1.2rem;
  }

  .lantern {
    width: 45%;
  }

  .lantern:nth-child(3) {
    width: 60%;
    margin-top: 1rem;
  }

  .lantern__body {
    width: 88px;
    height: 105px;
  }

  .lantern__kanji { font-size: 1.7rem; }

  .lantern__caption {
    max-width: 180px;
  }

  .lantern__caption .ja { font-size: 0.82rem; }
  .lantern__caption .en { font-size: 0.7rem;  }

  .answers {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  .volume {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-height: 640px) {
  .phase {
    padding: 1rem;
  }

  .phase--lanterns {
    gap: 1.4rem;
  }
}

/* respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.3s !important;
  }

  .petal { display: none; }
}
