:root {
  --ink: #3c2154;
  --ink-soft: #72587f;
  --purple: #8248da;
  --purple-dark: #5b2aad;
  --pink: #ff6fac;
  --pink-soft: #ffb8d6;
  --cream: #fff8fd;
  --white: #fffefe;
  --card: rgba(255, 250, 255, 0.82);
  --shadow: 0 24px 70px rgba(82, 35, 123, 0.19);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 15% 18%, rgba(255,255,255,.9) 0 3%, transparent 18%),
    radial-gradient(circle at 84% 80%, rgba(255,174,219,.55), transparent 28%),
    linear-gradient(145deg, #fdf5ff 0%, #ead9ff 42%, #ffdef0 100%);
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; }

button:focus-visible {
  outline: 3px solid rgba(130, 72, 218, .35);
  outline-offset: 4px;
}

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

.aurora {
  position: fixed;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  pointer-events: none;
  animation: auroraMove 12s ease-in-out infinite alternate;
}

.aurora-one { top: -20vw; right: -10vw; background: #d69cff; }
.aurora-two { bottom: -22vw; left: -12vw; background: #ff86bd; animation-delay: -6s; }

@keyframes auroraMove { to { transform: translate(5vw, 4vw) scale(1.15); } }

.magical-rain {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
}
.magic-drop {
  position: absolute;
  top: -12vh;
  left: var(--left);
  color: var(--color);
  font-size: var(--size);
  opacity: 0;
  filter: drop-shadow(0 0 6px currentColor);
  animation: magicFall var(--duration) linear var(--delay) infinite;
  will-change: transform, opacity;
}
.magic-drop.heart-drop { filter: drop-shadow(0 3px 5px rgba(208, 61, 142, .28)); }
@keyframes magicFall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0deg) scale(.65); }
  10%, 72% { opacity: var(--opacity); }
  45% { transform: translate3d(var(--drift), 48vh, 0) rotate(160deg) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--drift-back), 112vh, 0) rotate(340deg) scale(.7); }
}

.floating-decor { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.float-item { position: absolute; color: rgba(139, 67, 202, .33); filter: drop-shadow(0 0 8px rgba(255,255,255,.8)); animation: floaty 6s ease-in-out infinite; }
.f1 { top: 13%; left: 9%; font-size: 28px; }
.f2 { top: 23%; right: 8%; font-size: 34px; animation-delay: -2s; }
.f3 { bottom: 14%; left: 13%; font-size: 24px; animation-delay: -4s; }
.f4 { top: 55%; right: 6%; font-size: 32px; animation-delay: -1s; }
.f5 { bottom: 10%; right: 22%; font-size: 21px; animation-delay: -3s; }
.f6 { top: 8%; left: 31%; font-size: 18px; animation-delay: -5s; }
.f7 { top: 38%; left: 4%; color: rgba(255, 87, 163, .35); font-size: 25px; animation-delay: -1.5s; }
.f8 { bottom: 30%; left: 30%; font-size: 19px; animation-delay: -4.5s; }
.f9 { top: 73%; right: 5%; color: rgba(255, 87, 163, .3); font-size: 27px; animation-delay: -2.7s; }
.f10 { top: 31%; left: 74%; font-size: 18px; animation-delay: -.5s; }
@keyframes floaty { 50% { transform: translateY(-18px) rotate(12deg); opacity: .6; } }

.sound-toggle {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  color: var(--purple);
  background: rgba(255,255,255,.65);
  box-shadow: 0 8px 25px rgba(75, 33, 111, .12);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: .25s ease;
}
.sound-toggle:hover { transform: translateY(-2px) scale(1.04); background: #fff; }
.sound-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.sound-toggle .sound-on { display: none; }
.sound-toggle.playing .sound-on { display: block; }
.sound-toggle.playing .sound-off { display: none; }

.journey-header {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 40;
  width: min(480px, calc(100% - 150px));
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 8px 30px rgba(66, 27, 106, .1);
  backdrop-filter: blur(14px);
  transform: translate(-50%, -120px);
  opacity: 0;
  transition: .6s cubic-bezier(.2,.8,.2,1);
}
.journey-header.visible { transform: translate(-50%, 0); opacity: 1; }
.header-copy { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.mini-heart { color: var(--pink); animation: pulse 1.4s infinite; }
.progress-track { height: 4px; overflow: hidden; border-radius: 5px; background: #eadcf3; direction: ltr; }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--purple)); transition: width .7s ease; }
.progress-dots { display: flex; justify-content: space-between; direction: ltr; margin-top: -7px; }
.progress-dots i { width: 10px; height: 10px; border: 2px solid #dfc9ee; border-radius: 50%; background: #fff; transition: .4s; }
.progress-dots i.active { border-color: var(--purple); background: var(--purple); box-shadow: 0 0 0 4px rgba(130,72,218,.12); }

#app { position: relative; z-index: 2; width: 100%; height: 100vh; }

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 28px;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(18px) scale(.985);
  pointer-events: none;
  transition: opacity .55s ease, transform .55s ease, visibility .55s;
}
.scene.active { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.scene.leaving { opacity: 0; transform: translateY(-15px) scale(.99); }

.intro-scene { padding-top: 30px; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.88), transparent 40%); }
.intro-stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.intro-stars i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 3px rgba(194,111,232,.55), 0 0 20px 7px rgba(255,137,195,.22); animation: introStar 2.2s ease-in-out infinite; }
.intro-stars i::before, .intro-stars i::after { content: ""; position: absolute; top: 2px; left: -5px; width: 15px; height: 1px; background: rgba(255,255,255,.8); }
.intro-stars i::after { transform: rotate(90deg); }
.intro-stars i:nth-child(1) { top: 16%; left: 18%; }
.intro-stars i:nth-child(2) { top: 28%; right: 17%; animation-delay: -.8s; transform: scale(.7); }
.intro-stars i:nth-child(3) { bottom: 23%; left: 23%; animation-delay: -1.4s; }
.intro-stars i:nth-child(4) { bottom: 16%; right: 19%; animation-delay: -.4s; transform: scale(.55); }
.intro-stars i:nth-child(5) { top: 9%; right: 42%; animation-delay: -1.8s; transform: scale(.65); }
@keyframes introStar { 50% { opacity: .18; transform: scale(.45) rotate(45deg); } }
.intro-content { position: relative; z-index: 3; width: min(820px, 100%); text-align: center; animation: introIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes introIn { from { opacity: 0; transform: translateY(30px); } }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px; border: 1px solid rgba(133, 73, 180, .12); border-radius: 99px; color: #7a558d; background: rgba(255,255,255,.55); font-size: 12px; font-weight: 600; }
.eyebrow span { color: var(--pink); }

.couple-wrap { position: relative; width: 620px; height: 410px; margin: 9px auto 1px; display: grid; place-items: center; }
.couple-halo { position: absolute; inset: 15px 12px 4px; border-radius: 44% 56% 50% 48%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(252,218,245,.58) 58%, transparent 73%); box-shadow: 0 0 65px 22px rgba(210,160,255,.35); animation: halo 3s ease-in-out infinite; }
.couple-photo-frame { position: relative; z-index: 2; width: 590px; height: 380px; overflow: hidden; border: 6px solid rgba(255,255,255,.9); border-radius: 42px 42px 54px 54px; background: #f5dcec; box-shadow: 0 22px 45px rgba(104,45,133,.24), 0 0 0 1px rgba(200,103,175,.2); animation: coupleFloat 4s ease-in-out infinite; transform: rotate(-1deg); }
.couple-photo-frame::before { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(128deg, rgba(255,255,255,.26), transparent 38%, rgba(242,135,191,.1)); }
.couple-photo-frame::after { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 30px rgba(130,54,126,.2), inset 0 -20px 35px rgba(244,136,190,.16); }
.couple-photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 50%; filter: saturate(1.06) contrast(1.03) brightness(1.025); }
.photo-rose-wash { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 42%, transparent 36%, rgba(241,132,188,.17) 100%); mix-blend-mode: soft-light; }
@keyframes coupleFloat { 50% { transform: translateY(-5px) rotate(-1deg); } }
.photo-kiss { position: absolute; z-index: 4; top: 15px; left: 50%; width: 55px; height: 45px; display: flex; align-items: center; justify-content: center; transform: translateX(-50%); filter: drop-shadow(0 3px 7px rgba(166,45,114,.32)); }
.photo-kiss span { color: #ff5d9d; font-size: 31px; line-height: 1; text-shadow: 0 0 10px #fff, 0 0 17px #ffabd0; animation: kissHeartBeat 1.35s ease-in-out infinite; }
.photo-kiss i { position: absolute; top: 5px; width: 8px; height: 2px; border-radius: 99px; background: #fff; box-shadow: 0 0 5px #fff; }
.photo-kiss i:first-child { left: 2px; transform: rotate(32deg); }
.photo-kiss i:last-child { right: 2px; transform: rotate(-32deg); }
@keyframes kissHeartBeat { 50% { transform: scale(1.18) translateY(-3px); filter: drop-shadow(0 0 7px #ff91be); } }
.photo-spark { position: absolute; z-index: 4; color: #fff; text-shadow: 0 0 7px #d36db0; animation: twinkle 1.8s ease-in-out infinite; }
.ps1 { top: 40px; left: 2px; font-size: 22px; }
.ps2 { top: 83px; right: -2px; color: #ffbfdd; font-size: 18px; animation-delay: -.7s; }
.ps3 { bottom: 48px; left: 6px; color: #c487e7; font-size: 14px; animation-delay: -1.2s; }
.couple-names { position: absolute; z-index: 5; bottom: 0; left: 50%; min-width: 175px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 6px 16px; border: 1px solid rgba(255,255,255,.9); border-radius: 99px; color: #71477f; background: rgba(255,255,255,.72); box-shadow: 0 8px 20px rgba(98,41,126,.12); backdrop-filter: blur(8px); font-size: 12px; font-weight: 800; transform: translateX(-50%); }
.couple-names b { color: #f45299; font-size: 20px; animation: pulse 1.2s infinite; }
.couple-names span:first-child { color: #7440b6; }
.couple-names span:last-child { color: #d43d8d; }
@keyframes halo { 50% { transform: scale(1.08); opacity: .65; } }
.orbit-heart, .orbit-star { position: absolute; z-index: 3; color: var(--pink); filter: drop-shadow(0 3px 4px rgba(150,56,113,.2)); }
.oh1 { top: 35px; right: 5px; font-size: 22px; animation: orbitOne 5s ease-in-out infinite; }
.oh2 { bottom: 35px; left: 1px; font-size: 17px; animation: orbitOne 4s ease-in-out -2s infinite reverse; }
.os1 { top: 55px; left: 8px; color: #9c60dc; font-size: 25px; animation: twinkle 1.8s infinite; }
@keyframes orbitOne { 50% { transform: translate(8px,-14px) rotate(15deg); } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.65) rotate(30deg); } }
.to-label { margin: 3px 0 -7px; color: #9a7aa8; font-size: 12px; }
.intro-content h1 { margin: 0; color: transparent; font-family: "Lalezar", "Vazirmatn", sans-serif; font-size: clamp(52px, 8vw, 82px); font-weight: 400; line-height: 1.25; letter-spacing: -2px; background: linear-gradient(110deg, #642bae, #c13ca0 58%, #ff73ab); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 8px 20px rgba(134,52,170,.16)); }
.intro-text { margin: 1px 0 24px; color: #70507f; font-size: clamp(14px, 2vw, 17px); }

.primary-button {
  position: relative;
  min-height: 52px;
  padding: 0 27px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(115deg, #9250df, #c449b4 58%, #ff6da6);
  box-shadow: 0 12px 28px rgba(137, 58, 177, .3), inset 0 1px rgba(255,255,255,.3);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, opacity .3s;
}
.primary-button::after { content: "✦  ·  ♡  ·  ✦"; position: absolute; top: 2px; right: 12px; color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: 5px; pointer-events: none; animation: buttonGlitter 2s ease-in-out infinite; }
@keyframes buttonGlitter { 50% { opacity: .2; transform: translateX(-9px); } }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 17px 34px rgba(137,58,177,.38); }
.primary-button:active { transform: translateY(0) scale(.97); }
.glow-button { display: inline-flex; align-items: center; gap: 15px; position: relative; overflow: hidden; font-weight: 700; }
.glow-button::before { content: ""; position: absolute; width: 35px; height: 130px; top: -40px; left: -50px; background: rgba(255,255,255,.35); transform: rotate(25deg); animation: buttonShine 3s 1.5s infinite; }
@keyframes buttonShine { 60%, 100% { left: calc(100% + 30px); } }
.button-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-size: 18px; }
.tiny-note { margin: 13px 0 0; color: #a68aad; font-size: 10px; }
.cloud { position: absolute; width: 230px; height: 55px; bottom: 6%; border-radius: 50%; background: rgba(255,255,255,.34); filter: blur(1px); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 90px; height: 90px; bottom: 0; left: 45px; }
.cloud::after { width: 120px; height: 120px; bottom: -15px; right: 8px; }
.cloud-left { left: -60px; }
.cloud-right { right: -80px; transform: scale(.8); }

.scene-card {
  position: relative;
  width: min(700px, 100%);
  padding: 30px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 32px;
  text-align: center;
  background: var(--card);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.9), 0 0 0 5px rgba(255,255,255,.14);
  backdrop-filter: blur(18px);
}
.scene-card::after { content: "✦"; position: absolute; top: 16px; left: 20px; color: #ef9ccc; font-size: 17px; text-shadow: 30px 12px 0 rgba(145,80,207,.28), -8px 38px 0 rgba(255,107,173,.2); pointer-events: none; animation: cardSparkle 1.9s ease-in-out infinite; }
.scene.active .scene-card { animation: cardFairyGlow 3.2s ease-in-out infinite; }
@keyframes cardSparkle { 50% { opacity: .25; transform: rotate(35deg) scale(.65); } }
@keyframes cardFairyGlow { 50% { box-shadow: 0 28px 80px rgba(112,42,155,.22), inset 0 1px rgba(255,255,255,.95), 0 0 0 6px rgba(255,178,220,.14), 0 0 35px rgba(214,126,255,.16); } }
.wide-card { width: min(780px, 100%); }
.chapter-pill { display: inline-flex; align-items: center; min-height: 27px; padding: 0 14px; border-radius: 99px; color: #8d52ba; background: #f2e6fa; font-size: 11px; font-weight: 700; }
.scene-card h2 { margin: 9px 0 4px; color: var(--ink); font-size: clamp(25px, 4vw, 36px); font-weight: 800; letter-spacing: -.8px; }
.scene-card h2 span { display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { transform: scale(1.18); } }
.scene-subtitle { max-width: 570px; margin: 0 auto 16px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.heart-hud { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 8px; }
.heart-counter { display: flex; align-items: center; justify-content: center; gap: 7px; color: #866294; font-size: 12px; }
.heart-counter strong { color: var(--purple); font-size: 20px; }
.counter-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--pink); background: #fff; box-shadow: 0 5px 15px rgba(114,57,145,.1); font-size: 20px; }
.heart-timer { min-width: 90px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 11px; border-radius: 13px; color: #71517e; background: rgba(255,255,255,.72); box-shadow: 0 5px 15px rgba(114,57,145,.08); font-size: 10px; transition: .25s; }
.heart-timer strong { color: #9a43b8; font-size: 17px; }
.heart-timer.danger { color: #be286d; background: #fff0f6; animation: timerPanic .55s ease-in-out infinite alternate; }
.heart-timer.danger strong { color: #e12c7d; }
@keyframes timerPanic { to { transform: scale(1.06) rotate(-1deg); box-shadow: 0 5px 17px rgba(225,44,125,.2); } }
.timer-track { width: min(390px, 82%); height: 5px; margin: 0 auto 10px; overflow: hidden; border-radius: 99px; background: rgba(159,111,185,.16); direction: ltr; }
.timer-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff5e9e, #a04cdc); }

.heart-arena {
  position: relative;
  height: min(42vh, 330px);
  min-height: 260px;
  overflow: hidden;
  border: 1px dashed rgba(130,72,218,.22);
  border-radius: 25px;
  background:
    radial-gradient(circle at 20% 24%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 17%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    linear-gradient(180deg, #eadcff 0%, #fce9f4 70%, #e0c7ee 100%);
}
.arena-message { position: absolute; z-index: 5; top: 50%; left: 50%; width: min(390px, 86%); display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 17px; color: #775484; background: rgba(255,255,255,.72); box-shadow: 0 9px 25px rgba(88,45,116,.1); pointer-events: none; transform: translate(-50%,-50%); transition: opacity .4s; }
.arena-message span { font-weight: 700; }
.arena-message small { color: #a889b0; font-size: 10px; }
.arena-message.fade { opacity: 0; }
.garden-floor { position: absolute; right: 0; bottom: 0; left: 0; height: 52px; background: linear-gradient(transparent, rgba(130,80,155,.12)); }
.flower { position: absolute; bottom: 10px; color: #ff85bb; font-style: normal; }
.fl1 { left: 8%; font-size: 22px; }.fl2 { left: 77%; font-size: 18px; color: #9a65d2; }.fl3 { left: 48%; font-size: 14px; }
.grass { position: absolute; bottom: 0; width: 20px; height: 25px; border-left: 2px solid rgba(110,74,139,.25); border-radius: 50%; }
.g1 { left: 25%; transform: rotate(-20deg); }.g2 { left: 65%; transform: rotate(15deg); }.g3 { left: 90%; }
.catch-heart { position: absolute; z-index: 3; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 28%, #fff 0 4%, #ff91c1 19%, #ef4e9d 70%); box-shadow: 0 8px 22px rgba(216,55,135,.35), 0 0 0 7px rgba(255,255,255,.22); cursor: pointer; font-size: 27px; transition: left .36s cubic-bezier(.2,.8,.2,1), top .36s cubic-bezier(.2,.8,.2,1); animation: heartBob .82s ease-in-out infinite alternate, heartAppear .25s ease-out both; touch-action: manipulation; }
.catch-heart::after { content: "✦"; position: absolute; top: -8px; right: -5px; color: #fff; font-size: 13px; animation: twinkle 1s infinite; }
.catch-heart:nth-of-type(even) { animation-duration: 1s, .25s; }
.catch-heart.hopping { filter: brightness(1.1) drop-shadow(0 5px 7px rgba(210,44,126,.25)); }
@keyframes heartBob { to { transform: translateY(-12px) rotate(8deg); } }
@keyframes heartAppear { from { opacity: 0; scale: .35; } }
.catch-heart.caught { pointer-events: none; animation: heartCaught .55s ease forwards; }
@keyframes heartCaught { 55% { scale: 1.35; } 100% { opacity: 0; scale: .2; transform: translateY(-60px); } }
.decoy-target { position: absolute; z-index: 2; width: 49px; height: 49px; display: grid; place-items: center; border: 2px dashed rgba(130,72,218,.22); border-radius: 16px; background: rgba(255,255,255,.74); box-shadow: 0 7px 18px rgba(79,41,102,.13); cursor: pointer; font-size: 25px; animation: decoySneakIn .4s cubic-bezier(.2,.9,.25,1.25) both, decoyWiggle .8s .4s ease-in-out infinite alternate; touch-action: manipulation; }
@keyframes decoySneakIn { from { opacity: 0; transform: translateY(25px) scale(.5) rotate(-18deg); } }
@keyframes decoyWiggle { to { transform: translateY(-7px) rotate(9deg); } }
.decoy-target.fooled { pointer-events: none; animation: decoyCaught .5s ease forwards; }
@keyframes decoyCaught { 35% { transform: scale(1.25) rotate(-12deg); } 100% { opacity: 0; transform: translateX(70px) rotate(40deg) scale(.4); } }
.pop-heart { position: fixed; z-index: 100; pointer-events: none; color: var(--pink); font-size: 20px; animation: popFly .8s ease-out forwards; }
@keyframes popFly { to { opacity: 0; transform: translate(var(--x), -90px) rotate(40deg) scale(.4); } }
.next-button { display: inline-flex; align-items: center; gap: 13px; margin-top: 15px; font-size: 13px; font-weight: 700; }
.hidden { display: none !important; }
.reveal-button { animation: revealButton .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes revealButton { from { opacity: 0; transform: translateY(12px) scale(.9); } }

.stars-card { overflow: hidden; }
.stars-card::before { content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none; background-image: radial-gradient(circle, #a779cb 1px, transparent 1.4px); background-size: 38px 38px; }
.stars-card > * { position: relative; z-index: 1; }
.constellation { --star-progress: 0; position: relative; height: min(39vh, 330px); min-height: 270px; margin: 8px 0; overflow: hidden; border-radius: 24px; background: radial-gradient(circle at 50% 35%, rgba(190,115,211,.2), transparent 35%), linear-gradient(145deg, #281b48, #533270 55%, #87528c); box-shadow: inset 0 0 50px rgba(21,10,45,.35); }
.constellation::before { content: ""; position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px), radial-gradient(circle, #f8cbed 0 1px, transparent 1.5px); background-position: 12px 15px, 29px 42px; background-size: 61px 61px, 83px 83px; }
.constellation::after { content: ""; position: absolute; inset: -30%; pointer-events: none; opacity: calc(var(--star-progress) * .5); background: conic-gradient(from 0deg, transparent, rgba(255,166,220,.22), transparent 24%); animation: skyTurn 12s linear infinite; transition: opacity .5s; }
@keyframes skyTurn { to { transform: rotate(1turn); } }
.star-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.star-lines line { fill: none; vector-effect: non-scaling-stroke; }
.h-guide line { stroke: rgba(255,229,252,.2); stroke-width: 2; stroke-dasharray: 7 8; }
.h-drawn line { stroke: #fff1a8; stroke-width: 4; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 7px #ff9fd2); stroke-dasharray: 1; stroke-dashoffset: 1; transition: opacity .2s; }
.h-drawn line.connected { opacity: 1; animation: drawStarLine .65s ease forwards; }
@keyframes drawStarLine { to { stroke-dashoffset: 0; } }
.constellation.complete .h-drawn line { stroke: #fff8c7; filter: drop-shadow(0 0 9px #ff8fc9); }
.shooting-stars { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.shooting-stars i { position: absolute; top: 12%; left: -20%; width: 75px; height: 1px; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9)); transform: rotate(-18deg); animation: shootingStar 6s 1s linear infinite; }
.shooting-stars i:nth-child(2) { top: 34%; width: 50px; animation-delay: 3.4s; animation-duration: 7s; }
.shooting-stars i:nth-child(3) { top: 22%; width: 90px; animation-delay: 5.6s; animation-duration: 8s; }
@keyframes shootingStar { 0%, 72% { left: -20%; opacity: 0; } 75% { opacity: 1; } 88%, 100% { left: 115%; opacity: 0; } }
.magic-star { position: absolute; z-index: 3; width: 54px; height: 54px; border: 0; border-radius: 50%; color: #c2aecf; background: transparent; cursor: pointer; transition: .4s; touch-action: manipulation; }
.magic-star::before, .magic-star::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,222,248,.25); border-radius: 50%; opacity: 0; transform: scale(.5); }
.magic-star span { display: block; font-size: 32px; filter: grayscale(1); animation: starSleeping 2.3s ease-in-out infinite; }
@keyframes starSleeping { 50% { opacity: .45; transform: scale(.82); } }
.magic-star:hover span { transform: scale(1.25); }
.magic-star.lit { color: #fff1a8; text-shadow: 0 0 8px #fff, 0 0 22px #ff9ad1; }
.magic-star.lit span { filter: none; animation: starLit .6s ease both; }
.magic-star.lit::before { opacity: .75; animation: starOrbit 3.5s linear infinite; }
.magic-star.selected-star { color: #fff; text-shadow: 0 0 8px #fff, 0 0 24px #ff8cc8; }
.magic-star.selected-star span { filter: none; animation: selectedStarPulse .7s ease-in-out infinite alternate; }
.magic-star.selected-star::after { opacity: 1; animation: starRipple 1.25s ease-out infinite; }
.magic-star.wrong-star { color: #ff8da7; }
.magic-star.wrong-star span { filter: none; animation: wrongStar .42s ease; }
@keyframes starLit { 50% { transform: scale(1.7) rotate(28deg); } }
@keyframes starOrbit { to { transform: scale(1.25) rotate(1turn); border-style: dashed; } }
@keyframes starRipple { to { opacity: 0; transform: scale(2.1); } }
@keyframes selectedStarPulse { to { transform: scale(1.35) rotate(12deg); } }
@keyframes wrongStar { 25% { transform: translateX(-7px) rotate(-12deg); } 65% { transform: translateX(7px) rotate(12deg); } }
.constellation.awakening { animation: skyAwaken .55s ease; }
@keyframes skyAwaken { 50% { box-shadow: inset 0 0 65px rgba(238,152,226,.34), 0 0 0 3px rgba(232,151,220,.12); } }
.constellation.wrong-connection { animation: wrongSky .45s ease; }
@keyframes wrongSky { 35% { transform: translateX(-5px); } 70% { transform: translateX(5px); } }
.s1, .s2, .s3 { left: calc(30% - 27px); }
.s4, .s5, .s6 { left: calc(70% - 27px); }
.s1, .s4 { top: calc(16.666% - 27px); }
.s2, .s5 { top: calc(40.277% - 27px); }
.s3, .s6 { top: calc(63.888% - 27px); }
.h-reveal { position: absolute; z-index: 2; top: 18%; left: 50%; display: flex; flex-direction: column; align-items: center; color: rgba(255,255,255,0); pointer-events: none; transform: translateX(-50%) scale(.5); transition: .7s cubic-bezier(.2,.9,.25,1.3); }
.h-reveal strong { font-family: Georgia, serif; font-size: 44px; line-height: .9; }
.h-reveal small { margin-top: 4px; font: 700 9px Georgia, serif; letter-spacing: 2px; }
.constellation.complete .h-reveal { color: #fff4bd; text-shadow: 0 0 9px #fff, 0 0 22px #ff8fc9; transform: translateX(-50%) scale(1); }
.star-message { position: absolute; z-index: 4; left: 50%; bottom: 9px; width: min(420px, 78%); min-height: 57px; display: flex; align-items: center; justify-content: center; padding: 10px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; color: #fff; background: rgba(28,13,54,.55); backdrop-filter: blur(8px); transform: translateX(-50%); }
.star-message-copy { display: flex; flex-direction: column; gap: 2px; }
.star-message small { color: #ffc7e6; font-size: 9px; font-weight: 800; }
.star-message p { margin: 0; font-size: 12px; line-height: 1.6; }
.star-message.flash .star-message-copy { animation: messageIn .4s ease; }
@keyframes messageIn { from { opacity: 0; transform: translateY(8px); } }
.quote-mark { position: absolute; top: -5px; right: 10px; color: rgba(255,255,255,.25); font-family: serif; font-size: 40px; }
.discovery-count { color: #80618b; font-size: 11px; }
.discovery-count span { color: var(--purple); font-size: 16px; font-weight: 800; }

.potion-card { width: min(760px, 100%); }
.potion-layout { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 24px; margin: 10px 0; direction: ltr; }
.cauldron-wrap { position: relative; height: 260px; display: flex; align-items: center; justify-content: center; }
.potion-bottle { position: relative; width: 134px; height: 166px; margin-top: 55px; overflow: hidden; border: 5px solid rgba(105,48,140,.35); border-top: 0; border-radius: 16px 16px 57px 57px; background: rgba(255,255,255,.32); box-shadow: inset 10px 0 rgba(255,255,255,.22), 0 18px 30px rgba(96,42,132,.2); }
.bottle-neck { position: absolute; z-index: 2; top: 27px; width: 70px; height: 50px; border: 5px solid rgba(105,48,140,.35); border-bottom: 0; border-radius: 8px 8px 0 0; background: rgba(255,255,255,.3); }
.bottle-neck::before { content: ""; position: absolute; top: -9px; left: -11px; width: 82px; height: 12px; border: 4px solid rgba(105,48,140,.42); border-radius: 8px; background: #e9d4f5; }
.potion-liquid { position: absolute; right: 0; bottom: 0; left: 0; height: 20%; background: linear-gradient(180deg, #ff83c3, #ae4dd5); box-shadow: 0 -7px 15px rgba(255,102,184,.25); transition: height .8s cubic-bezier(.2,.8,.2,1), filter .3s; }
.potion-liquid::before { content: ""; position: absolute; top: -7px; left: -5%; width: 110%; height: 15px; border-radius: 50%; background: #ff9bc9; animation: liquidWave 2s ease-in-out infinite; }
@keyframes liquidWave { 50% { transform: skewY(3deg) translateY(3px); } }
.bottle-gloss { position: absolute; z-index: 2; top: 20px; left: 18px; width: 10px; height: 75px; border-radius: 99px; background: rgba(255,255,255,.45); }
.bottle-heart { position: absolute; z-index: 3; top: 70px; left: 50%; color: rgba(255,255,255,.8); font-size: 32px; transform: translateX(-50%); animation: pulse 1.4s infinite; }
.bottle-label { position: absolute; z-index: 5; bottom: 25px; padding: 4px 13px; border-radius: 5px; color: #87508f; background: #fff4d5; box-shadow: 0 4px 7px rgba(89,44,113,.16); font: 700 11px Georgia, serif; transform: rotate(-5deg); }
.potion-bubbles { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.potion-bubbles i { position: absolute; bottom: 145px; left: 50%; width: var(--size); height: var(--size); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(255,135,198,.45); font-style: normal; font-size: 13px; animation: bubbleUp 2s ease-out forwards; }
@keyframes bubbleUp { to { opacity: 0; transform: translate(var(--drift), -120px) scale(.5) rotate(25deg); } }
.ingredients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; direction: rtl; }
.ingredients button { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid #ead8f3; border-radius: 17px; color: #664873; background: rgba(255,255,255,.68); box-shadow: 0 6px 15px rgba(83,35,112,.07); cursor: pointer; transition: .25s; }
.ingredients button span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #f9eafb; font-size: 18px; }
.ingredients button:hover { transform: translateY(-2px); border-color: #c99ee3; background: #fff; }
.ingredients button.selected { border-color: var(--pink); color: #a52a71; background: #fff1f8; box-shadow: 0 8px 20px rgba(221,68,147,.13); }
.ingredients button.selected::after { content: "✓"; margin-right: auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--pink); font-size: 11px; }
.ingredients button:disabled:not(.selected) { opacity: .42; cursor: default; }
.potion-result { min-height: 49px; padding: 8px 15px; border-radius: 15px; background: rgba(244,232,250,.65); }
.potion-result span { color: var(--purple); font-size: 11px; font-weight: 800; }
.potion-result p { margin: 1px 0; color: #755581; font-size: 12px; }
.potion-result.complete p { color: #a33675; font-weight: 700; animation: messageIn .5s ease; }

.letter-card-wrap { width: min(710px, 100%); }
.scratch-wrap { position: relative; width: min(570px, 100%); aspect-ratio: 1.65; margin: 12px auto 8px; overflow: hidden; border-radius: 10px; box-shadow: 0 17px 40px rgba(75,37,89,.2); touch-action: none; }
.love-letter { position: absolute; inset: 0; overflow: auto; padding: 28px 40px; color: #54394e; text-align: right; background: #fffaf0; background-image: linear-gradient(rgba(177,107,145,.08) 1px, transparent 1px); background-size: 100% 28px; }
.love-letter::before { content: ""; position: absolute; inset: 9px; pointer-events: none; border: 1px solid #e8c8d6; }
.letter-pin { position: absolute; top: 13px; left: 18px; color: #cf6b97; font-size: 24px; }
.love-letter p { position: relative; margin: 0 0 8px; font-size: 12px; line-height: 1.9; }
.love-letter .letter-to { color: #9d396c; font-size: 15px; font-weight: 800; }
.letter-ending { color: #9d396c; font-weight: 800; text-align: center; }
.signature { color: #8b6680; font-family: "Lalezar", "Vazirmatn", sans-serif; font-size: 16px !important; text-align: left; }
.signature strong { color: #803ca7; font-weight: 400; }
#scratchCanvas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .8s; }
#scratchCanvas:active { cursor: grabbing; }
#scratchCanvas.cleared { opacity: 0; pointer-events: none; }
.scratch-hint { position: absolute; z-index: 4; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 12px; pointer-events: none; text-shadow: 0 2px 7px rgba(76,27,103,.4); transform: translate(-50%,-50%); transition: opacity .4s; }
.scratch-hint.hide { opacity: 0; }
.finger { font-size: 30px; animation: scratchHand 1.5s ease-in-out infinite; }
@keyframes scratchHand { 50% { transform: translateX(-35px) rotate(-10deg); } }
.scratch-progress { color: #866991; font-size: 10px; }
.scratch-progress span { color: var(--purple); font-weight: 800; }

.finale-scene { padding-top: 25px; background: radial-gradient(circle at center, rgba(255,255,255,.93), rgba(243,218,255,.7) 48%, rgba(245,190,223,.65)); }
#confettiCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.finale-content { position: relative; z-index: 2; width: min(680px,100%); text-align: center; }
.finale-crown { color: #d79839; font-size: 42px; filter: drop-shadow(0 6px 8px rgba(160,105,27,.2)); animation: crownIn .8s .2s both; }
@keyframes crownIn { from { opacity: 0; transform: translateY(-25px) rotate(-15deg); } }
.finale-kicker { margin: 0; color: #916c9d; font-size: 12px; }
.finale-content h2 { margin: 5px 0 2px; color: #49245d; font-family: "Lalezar", "Vazirmatn", sans-serif; font-size: clamp(40px, 7vw, 68px); font-weight: 400; line-height: 1.25; }
.finale-content h2 span { color: transparent; background: linear-gradient(100deg,#7132b5,#d23b9b,#ff699f); -webkit-background-clip: text; background-clip: text; }
.infinity-heart { position: relative; width: 95px; height: 95px; display: grid; place-items: center; margin: 2px auto; }
.infinity-heart > span { position: relative; z-index: 2; color: var(--pink); white-space: nowrap; font-family: "Lalezar", "Vazirmatn", sans-serif; font-size: 27px; animation: finalHeart 1.5s ease-in-out infinite; filter: drop-shadow(0 7px 12px rgba(210,61,139,.26)); }
@keyframes finalHeart { 50% { transform: scale(1.12); } }
.infinity-heart i { position: absolute; inset: 5px; border: 1px solid rgba(191,85,194,.25); border-radius: 50%; animation: ripple 2s ease-out infinite; }
.infinity-heart .ring-two { animation-delay: 1s; }
@keyframes ripple { to { opacity: 0; transform: scale(1.55); } }
.forever-names { display: flex; align-items: center; justify-content: center; gap: 9px; margin: -12px 0 7px; color: #70457d; font-size: 12px; }
.forever-names strong:first-child { color: #7240b2; }
.forever-names strong:nth-of-type(2) { color: #d5418e; }
.forever-names > span { color: #ff5c9e; font-size: 19px; animation: pulse 1.3s infinite; }
.forever-names small { display: block; margin-right: 3px; color: #a488ad; font-size: 8px; }
.finale-text { max-width: 520px; margin: 4px auto 14px; color: #6b4e77; font-size: 13px; line-height: 1.8; }
.love-coupon { position: relative; width: min(430px, 100%); min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 auto; padding: 14px 22px; overflow: hidden; border: 2px dashed rgba(177,73,151,.34); border-radius: 16px; color: #714479; background: linear-gradient(110deg,#fffaf1,#fff0f8); box-shadow: 0 12px 28px rgba(101,48,122,.12); cursor: pointer; transition: .35s; }
.love-coupon::before, .love-coupon::after { content: ""; position: absolute; left: 24%; width: 18px; height: 18px; border-radius: 50%; background: #f2d9fa; }
.love-coupon::before { top: -10px; }.love-coupon::after { bottom: -10px; }
.love-coupon:hover { transform: rotate(-1deg) translateY(-3px); box-shadow: 0 16px 35px rgba(101,48,122,.18); }
.love-coupon.activated { border-style: solid; border-color: #e37bac; animation: couponActivate .6s ease; }
@keyframes couponActivate { 40% { transform: scale(1.06) rotate(1deg); } }
.coupon-side { display: flex; flex-direction: column; align-items: flex-start; text-align: right; }
.coupon-side small { color: #b57a9d; font-size: 9px; }
.coupon-side strong { color: #9d396f; font-size: 18px; }
.coupon-side em { color: #9a819f; font-size: 9px; font-style: normal; }
.coupon-stamp { width: 65px; height: 65px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid #da74a2; border-radius: 50%; color: #c84e86; font-size: 9px; font-weight: 800; line-height: 1.5; transform: rotate(-12deg); }
.coupon-message { margin-top: 8px; color: #b33978; font-size: 12px; font-weight: 700; animation: messageIn .5s ease; }
.replay-button { margin-top: 12px; border: 0; color: #7c6088; background: transparent; cursor: pointer; font-size: 11px; }
.replay-button:hover { color: var(--purple); }
.made-with { margin-top: 11px; color: #aa91b1; font-size: 9px; }
.made-with span { color: var(--pink); }

.toast { position: fixed; z-index: 200; right: 50%; bottom: 25px; padding: 10px 17px; border-radius: 13px; color: #fff; background: rgba(63,29,80,.86); box-shadow: 0 10px 25px rgba(48,20,62,.22); backdrop-filter: blur(8px); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(50%,15px); transition: .35s; }
.toast.show { opacity: 1; transform: translate(50%,0); }
.spark { position: fixed; z-index: 90; pointer-events: none; color: var(--pink); filter: drop-shadow(0 0 5px currentColor); animation: sparkOut .9s ease-out forwards; }
@keyframes sparkOut { 45% { opacity: 1; transform: translate(var(--sx-mid), var(--sy-mid)) scale(1.35) rotate(45deg); } 100% { opacity: 0; transform: translate(var(--sx),var(--sy)) scale(0) rotate(120deg); } }

.click-glitter { position: fixed; z-index: 95; pointer-events: none; color: #fff; font-size: 10px; text-shadow: 0 0 7px #ff6eaf, 0 0 12px #954de1; animation: clickGlitterOut .8s ease-out forwards; }
@keyframes clickGlitterOut { to { opacity: 0; transform: translate(var(--gx), var(--gy)) rotate(120deg) scale(.25); } }

@media (max-width: 680px) {
  .sound-toggle { top: 14px; left: 14px; width: 41px; height: 41px; }
  .journey-header { top: 14px; width: calc(100% - 125px); padding: 8px 14px; }
  .scene { align-items: flex-start; padding: 76px 12px 18px; }
  .intro-scene { align-items: center; padding: 20px 16px; }
  .eyebrow { padding: 7px 12px; font-size: 10px; }
  .couple-wrap { width: min(358px, calc(100vw - 32px)); height: 260px; margin-top: 4px; }
  .couple-photo-frame { width: calc(100% - 14px); height: 235px; border-width: 4px; border-radius: 30px 30px 40px 40px; }
  .photo-kiss { top: 9px; transform: translateX(-50%) scale(.86); }
  .couple-names { bottom: -1px; min-width: 160px; padding: 4px 13px; font-size: 11px; }
  .scene-card { padding: 23px 14px 18px; border-radius: 25px; }
  .scene-subtitle { margin-bottom: 12px; font-size: 11px; }
  .heart-hud { gap: 13px; }
  .heart-timer { min-width: 82px; padding: 5px 8px; }
  .timer-track { width: 88%; margin-bottom: 8px; }
  .heart-arena { min-height: 285px; height: 42vh; }
  .catch-heart { width: 48px; height: 48px; }
  .decoy-target { width: 46px; height: 46px; font-size: 23px; }
  .constellation { min-height: 315px; height: 47vh; }
  .star-message { width: 88%; padding: 9px 14px; }
  .potion-layout { grid-template-columns: 120px 1fr; gap: 8px; }
  .cauldron-wrap { height: 250px; transform: scale(.82); margin: 0 -18px; }
  .ingredients { gap: 7px; }
  .ingredients button { min-height: 54px; padding: 7px 8px; font-size: 10px; }
  .ingredients button span { width: 29px; height: 29px; font-size: 15px; }
  .ingredients button.selected::after { display: none; }
  .scratch-wrap { aspect-ratio: 1.05; }
  .love-letter { padding: 25px 26px; }
  .love-letter p { font-size: 10.5px; line-height: 1.75; }
  .finale-scene { align-items: center; padding-top: 14px; }
  .finale-content h2 { font-size: 44px; }
  .infinity-heart { width: 76px; height: 76px; }
  .infinity-heart > span { font-size: 23px; }
  .forever-names { margin-top: -10px; }
  .finale-text { font-size: 11px; }
  .love-coupon { min-height: 82px; padding: 12px 16px; }
}

@media (max-height: 700px) and (min-width: 681px) {
  .scene { padding-top: 76px; }
  .intro-scene { padding-top: 12px; }
  .couple-wrap { width: 470px; height: 310px; }
  .couple-photo-frame { width: 450px; height: 290px; }
  .scene-card { padding-top: 20px; padding-bottom: 18px; }
  .heart-arena, .constellation { height: 290px; min-height: 240px; }
  .potion-layout { margin: 0; }
  .cauldron-wrap { height: 225px; transform: scale(.88); }
  .scratch-wrap { max-height: 330px; width: 530px; }
  .finale-content h2 { font-size: 50px; }
  .infinity-heart { width: 75px; height: 75px; }
  .infinity-heart > span { font-size: 24px; }
}

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