/* ==================== ARYA'S LITTLE UNIVERSE — LUXURY 3D STYLESHEET ==================== */
:root {
  --bg-deep: #09040d;
  --bg-mid: #17081c;
  --rose: #ff5e8e;
  --rose-soft: #ffa3be;
  --crimson: #df2960;
  --gold: #f6c7a9;
  --champagne: #ffe8d6;
  --cream: #fff6f8;
  --muted: rgba(255, 224, 236, 0.76);
  --glass: rgba(255, 226, 238, 0.068);
  --glass-hi: rgba(255, 226, 238, 0.115);
  --border: rgba(255, 190, 212, 0.22);
  --border-gold: rgba(246, 199, 169, 0.38);
  --serif: 'Didot', 'Bodoni MT', 'Baskerville', 'Palatino Linotype', 'Georgia', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 85% 52% at 50% 6%, rgba(182, 34, 96, 0.28), transparent 64%),
    radial-gradient(ellipse 60% 48% at 88% 36%, rgba(246, 168, 132, 0.14), transparent 64%),
    radial-gradient(ellipse 68% 54% at 12% 72%, rgba(185, 42, 114, 0.2), transparent 68%),
    linear-gradient(175deg, #09040d 0%, #150819 36%, #1e0a1f 70%, #0e0511 100%);
  overflow-x: hidden;
  position: relative;
  line-height: 1.56;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

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

#hugAura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 204, 178, 0.48) 0%,
    rgba(255, 94, 142, 0.28) 42%,
    rgba(120, 18, 66, 0.14) 75%,
    transparent 100%);
  transition: opacity 0.25s ease;
}

.float-word {
  position: fixed;
  pointer-events: none;
  z-index: 155;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  color: var(--champagne);
  text-shadow: 0 2px 18px rgba(255, 94, 142, 0.9), 0 0 6px rgba(255, 232, 214, 0.7);
  transform: translate(-50%, -50%);
  animation: floatWordUp 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  white-space: nowrap;
  user-select: none;
}

@keyframes floatWordUp {
  0%   { opacity: 0; transform: translate(-50%, -20%) scale(0.75); }
  18%  { opacity: 1; transform: translate(-50%, -65%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -200%) scale(0.94); }
}

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

@keyframes heartBeatCSS {
  0%, 100% { transform: scale(1); }
  14%      { transform: scale(1.24); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.16); }
  65%      { transform: scale(1); }
}

@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-11px); }
  40%      { transform: translateX(10px); }
  60%      { transform: translateX(-8px); }
  80%      { transform: translateX(7px); }
}

/* ==================== CHAPTER 0A: 0808 PASSCODE VAULT ==================== */
#lockOverlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 35%, rgba(145, 28, 82, 0.44), rgba(8, 3, 12, 0.96) 68%);
  backdrop-filter: blur(14px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.85s ease, transform 0.85s ease;
}

#lockOverlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.06);
}

.vault-card {
  width: min(410px, 100%);
  padding: 28px 24px 24px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 232, 242, 0.095), rgba(32, 10, 32, 0.84));
  border: 1px solid rgba(246, 199, 169, 0.42);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72), 0 0 55px rgba(255, 94, 142, 0.2), inset 0 1px 0 rgba(255, 242, 246, 0.16);
  text-align: center;
  position: relative;
}

.vault-card.shake {
  animation: shakeWrong 0.45s ease;
}

.padlock-wrap {
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 130, 170, 0.28), rgba(140, 22, 68, 0.3));
  border: 1px solid rgba(246, 199, 169, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(255, 94, 142, 0.32);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.padlock-wrap.open-anim {
  transform: scale(1.22) rotate(-8deg);
  box-shadow: 0 0 54px rgba(255, 215, 186, 0.85);
}

.vault-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.vault-title {
  font-family: var(--serif);
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 4px;
}

.vault-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--rose-soft);
  margin-bottom: 14px;
}

.vault-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(246, 199, 169, 0.1);
  border: 1px solid rgba(246, 199, 169, 0.3);
  font-size: 12px;
  color: var(--champagne);
  margin-bottom: 18px;
}

.pin-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pin-slot {
  width: 48px;
  height: 52px;
  border-radius: 15px;
  border: 1.5px solid rgba(255, 190, 212, 0.3);
  background: rgba(15, 5, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255, 190, 212, 0.32);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pin-slot.filled {
  border-color: var(--rose);
  background: rgba(255, 94, 142, 0.2);
  color: var(--champagne);
  transform: scale(1.07);
  box-shadow: 0 0 18px rgba(255, 94, 142, 0.45);
}

.pin-slot.success {
  border-color: var(--gold);
  background: rgba(246, 199, 169, 0.28);
  color: #fff;
  box-shadow: 0 0 24px rgba(246, 199, 169, 0.75);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
  margin: 0 auto 12px;
}

.key-btn {
  appearance: none;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 194, 214, 0.22);
  background: linear-gradient(155deg, rgba(255, 232, 242, 0.1), rgba(45, 14, 38, 0.52));
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.key-btn:hover {
  background: rgba(255, 94, 142, 0.24);
  border-color: rgba(255, 163, 190, 0.58);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 94, 142, 0.24);
}

.key-btn:active { transform: scale(0.93); }
.key-btn.action-key { font-family: var(--sans); font-size: 16px; color: var(--gold); }

.vault-feedback {
  min-height: 20px;
  font-size: 12.5px;
  color: var(--rose-soft);
  font-style: italic;
}

/* ==================== CHAPTER 0B: WAX-SEALED ENVELOPE OVERLAY ==================== */
#envelopeOverlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 42%, rgba(126, 26, 70, 0.46), rgba(11, 5, 14, 0.95) 68%);
  backdrop-filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s ease;
}

#envelopeOverlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.env-eyebrow { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; text-align: center; }
.env-title { font-family: var(--serif); font-size: clamp(26px, 5vw, 42px); font-weight: 400; color: var(--cream); text-align: center; margin-bottom: 6px; }
.env-title span { font-style: italic; background: linear-gradient(135deg, #ffe8d6, #ff9ebb, #ffd1b3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.env-ru-sub { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--rose-soft); margin-bottom: 28px; text-align: center; }

.envelope-stage { perspective: 1100px; cursor: pointer; user-select: none; animation: floatEnvelope 4s ease-in-out infinite; }
@keyframes floatEnvelope { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.envelope {
  width: min(350px, 86vw);
  height: min(228px, 57vw);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 42px rgba(255, 107, 149, 0.25));
}
.envelope-stage:hover .envelope { transform: rotateX(6deg) rotateY(-5deg) scale(1.03); }
.env-back { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(145deg, #4d1831, #2e0d1e); border: 1px solid rgba(246, 199, 169, 0.4); }
.env-letter {
  position: absolute; left: 7%; right: 7%; top: 10%; height: 82%; border-radius: 10px;
  background: linear-gradient(160deg, #fff9f5, #fbe7ee); color: #46172a; padding: 18px 16px;
  text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); border: 1px solid rgba(212, 140, 160, 0.45);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s; z-index: 2;
}
.env-letter-small { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #b44b6d; }
.env-letter-main { font-family: var(--serif); font-size: 20px; font-style: italic; color: #4a1228; }
.env-letter-ru { font-family: var(--serif); font-size: 13px; color: #8c3456; }
.env-pocket { position: absolute; inset: 0; border-radius: 14px; z-index: 3; pointer-events: none; overflow: hidden; }
.env-pocket::before { content: ''; position: absolute; inset: 0; background: linear-gradient(155deg, #5f1f3d 0%, #3d1228 60%, #2d0d1d 100%); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-pocket::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(246, 199, 169, 0.22), transparent 55%); clip-path: polygon(0 100%, 50% 48%, 100% 100%); }
.env-foil-trim { position: absolute; inset: 8px; border-radius: 10px; border: 1px solid rgba(246, 199, 169, 0.24); z-index: 4; pointer-events: none; }
.env-flap { position: absolute; top: 0; left: 0; right: 0; height: 58%; transform-origin: top center; transition: transform 0.75s cubic-bezier(0.32, 0.94, 0.42, 1); z-index: 5; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.32)); }
.env-flap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #712448 0%, #4f1733 100%); clip-path: polygon(0 0, 100% 0, 50% 100%); border-top-left-radius: 14px; border-top-right-radius: 14px; }
.wax-seal {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; z-index: 7;
  background: radial-gradient(circle at 32% 30%, #ff6b95 0%, #c92053 52%, #7d0d31 100%);
  box-shadow: 0 6px 22px rgba(225, 51, 100, 0.65), inset 0 2px 5px rgba(255, 220, 230, 0.55), 0 0 0 4px rgba(246, 199, 169, 0.24);
  display: flex; align-items: center; justify-content: center; font-size: 27px; color: #ffe8d6;
  animation: sealPulse 2.2s ease-in-out infinite; transition: transform 0.4s ease, opacity 0.35s ease;
}
@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.09); box-shadow: 0 8px 34px rgba(255, 107, 149, 0.92), 0 0 0 11px rgba(255, 107, 149, 0.14); }
}
.envelope.opening .wax-seal { transform: translate(-50%, -50%) scale(1.65); opacity: 0; }
.envelope.opening .env-flap { transform: rotateX(-178deg); z-index: 1; }
.envelope.opening .env-letter { transform: translateY(-68%) translateZ(20px) scale(1.04); z-index: 6; }
.env-hint { margin-top: 28px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; text-align: center; }
.env-hint .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); }

/* ==================== TOP BAR & SIDE CONSTELLATION NAV ==================== */
.top-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 20px));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.top-brand {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(18, 7, 22, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--champagne);
  text-decoration: none;
}

.pulse-heart { color: var(--rose); display: inline-block; animation: heartBeatCSS 1.5s ease-in-out infinite; }

.top-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(20, 8, 24, 0.74);
  backdrop-filter: blur(14px);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pill-btn:hover {
  background: rgba(255, 94, 142, 0.22);
  border-color: rgba(255, 163, 190, 0.58);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 94, 142, 0.24);
}

.pill-btn.active { background: rgba(255, 94, 142, 0.28); border-color: var(--rose-soft); color: #fff; }

/* Side Constellation Dot Rail (Desktop) */
.side-rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 52;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 7px;
  border-radius: 999px;
  background: rgba(18, 7, 22, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 190, 212, 0.16);
}

.rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 190, 212, 0.34);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.rail-dot:hover, .rail-dot.active {
  background: var(--rose);
  transform: scale(1.42);
  box-shadow: 0 0 12px var(--rose);
}

/* ==================== FLOATING YOUTUBE EVA MUSIC DOCK ==================== */
.music-dock {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.yt-frame-wrap {
  width: 248px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #120614;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.yt-frame-wrap.collapsed {
  position: fixed;
  right: 16px;
  bottom: 14px;
  opacity: 0.01;
  pointer-events: none;
  transform: scale(0.85) translateY(10px);
}

.music-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px 7px 9px;
  border-radius: 999px;
  background: rgba(22, 8, 26, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.52), 0 0 22px rgba(255, 94, 142, 0.18);
  position: relative;
  z-index: 2;
}

.music-play-circle {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #ff5e8e, #d92662); color: #fff; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(225, 51, 100, 0.55); transition: transform 0.2s ease;
}
.music-play-circle:hover { transform: scale(1.08); }
.music-info { display: flex; flex-direction: column; line-height: 1.2; }
.music-song { font-size: 12.5px; font-weight: 600; color: var(--champagne); }
.music-status { font-size: 10.5px; color: var(--rose-soft); }
.eq-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; width: 14px; }
.eq-bars span { display: block; width: 3px; height: 4px; border-radius: 2px; background: var(--gold); }
.music-pill.playing .eq-bars span:nth-child(1) { animation: eqBounce 0.72s ease-in-out infinite; }
.music-pill.playing .eq-bars span:nth-child(2) { animation: eqBounce 0.55s ease-in-out 0.14s infinite; }
.music-pill.playing .eq-bars span:nth-child(3) { animation: eqBounce 0.84s ease-in-out 0.28s infinite; }
@keyframes eqBounce { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.music-expand-btn {
  appearance: none; border: 1px solid rgba(255, 190, 210, 0.24); background: rgba(255, 255, 255, 0.06);
  color: var(--muted); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* ==================== MAIN DENSE LAYOUT (ZERO EMPTY VOIDS) ==================== */
main {
  position: relative;
  z-index: 10;
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 72px 18px 104px;
}

section {
  margin-bottom: 46px;
  scroll-margin-top: 74px;
}

.section-head {
  text-align: center;
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 5px;
}

.section-ru {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 2vw, 16.5px);
  color: var(--rose-soft);
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 240, 246, 0.11);
  position: relative;
}

/* 3D Mouse-Tracking Tilt Glint */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.primary-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff5e8e 0%, #d92662 55%, #f08a7c 100%);
  box-shadow: 0 10px 26px rgba(225, 51, 100, 0.44), inset 0 1px 1px rgba(255, 255, 255, 0.38);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, filter 0.25s ease;
}

.primary-btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.07); box-shadow: 0 14px 34px rgba(255, 94, 142, 0.56); }
.primary-btn:active { transform: scale(0.97); }

/* ==================== CHAPTER 1: COMPACT LUXURY 3D HERO BENTO ==================== */
.hero-bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.hero-left {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 94, 142, 0.16), transparent 55%),
    linear-gradient(155deg, rgba(255, 230, 240, 0.085), rgba(38, 12, 34, 0.5));
}

.hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 94, 142, 0.16);
  border: 1px solid rgba(255, 163, 190, 0.38);
  color: var(--champagne);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-heading {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 400;
  line-height: 1.04;
  color: var(--cream);
}

.hero-heading .partner-name {
  font-style: italic;
  background: linear-gradient(125deg, #fff2e8 0%, #ffb3c6 45%, #ff5e8e 82%, #ffd7ba 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 94, 142, 0.42));
}

.hero-trilingual {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
}

.hero-sub { font-size: 14.5px; color: var(--muted); }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* Right side of Hero: Live 3D Crystal Heart Stage */
.hero-3d-stage {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 330px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 94, 142, 0.2), rgba(14, 5, 18, 0.72) 72%);
  border: 1px solid var(--border-gold);
}

.stage-top-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.stage-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rose-soft);
}
.stage-live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
  animation: heartBeatCSS 1.4s infinite;
}

#heart3dCanvas {
  width: 100%;
  height: 245px;
  display: block;
  cursor: grab;
}
#heart3dCanvas:active { cursor: grabbing; }

.stage-bottom-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

/* Precision Relationship Counter Strip */
.counter-strip {
  margin-top: 16px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: center;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.counter-box {
  background: rgba(255, 232, 240, 0.06);
  border: 1px solid rgba(255, 190, 212, 0.18);
  border-radius: 16px;
  padding: 12px 6px;
  text-align: center;
}

.counter-num {
  font-family: var(--serif);
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.05;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(255, 94, 142, 0.35);
}

.counter-unit {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-soft);
  margin-top: 3px;
}

.milestones-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-stat {
  padding: 9px 11px;
  border-radius: 13px;
  background: rgba(255, 232, 240, 0.05);
  border: 1px solid rgba(246, 199, 169, 0.22);
}

.mini-stat-val {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--champagne);
  line-height: 1.1;
}

.mini-stat-lbl { font-size: 11px; color: var(--muted); }

.anniv-bar-wrap {
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 94, 142, 0.09);
  border: 1px solid rgba(255, 163, 190, 0.24);
}

.anniv-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--champagne);
  margin-bottom: 6px;
}

.anniv-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.anniv-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5e8e, #ffd7ba);
  box-shadow: 0 0 12px rgba(255, 94, 142, 0.7);
  width: 50%;
}

/* ==================== CHAPTER 2: TIMELINE + TRILINGUAL STUDIO BENTO ==================== */
.story-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.timeline-card, .lang-card {
  padding: 24px;
}

.sub-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--champagne);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 18px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--rose), rgba(255, 94, 142, 0.2));
}

.tl-item {
  position: relative;
  padding: 10px 13px;
  border-radius: 14px;
  background: rgba(255, 232, 240, 0.055);
  border: 1px solid rgba(255, 190, 212, 0.16);
}

.tl-item::before {
  content: '♥';
  position: absolute;
  left: -20px;
  top: 11px;
  font-size: 11px;
  color: var(--rose);
  background: #1a091e;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
}

.tl-date { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.tl-head { font-family: var(--serif); font-size: 16.5px; color: var(--cream); }
.tl-desc { font-size: 12.5px; color: var(--muted); }

.lang-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.lang-box {
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 228, 238, 0.058);
  border: 1px solid rgba(255, 190, 212, 0.18);
}

.lang-tag { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.lang-quote { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--cream); }
.lang-tr { font-size: 12.5px; color: var(--muted); }

.compliment-gen {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 94, 142, 0.16), rgba(246, 199, 169, 0.09));
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.compliment-out {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--champagne);
  min-height: 28px;
}

/* ==================== CHAPTER 3: 3D PHOTO CAROUSEL + 15-PHOTO WALL ==================== */
.carousel-3d-card {
  padding: 22px 18px 20px;
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 45% at 50% 60%, rgba(255, 94, 142, 0.16), transparent 72%),
    var(--glass);
}

.carousel-stage {
  height: 300px;
  perspective: 1350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.carousel-stage:active { cursor: grabbing; }

.carousel-ring {
  position: relative;
  width: 158px;
  height: 208px;
  transform-style: preserve-3d;
}

.c3d-slide {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(246, 199, 169, 0.5);
  background: #17081c;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 94, 142, 0.18);
  backface-visibility: visible;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.c3d-slide:hover {
  border-color: #fff;
  box-shadow: 0 18px 42px rgba(255, 94, 142, 0.45);
}

.c3d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  pointer-events: none;
  display: block;
}

.c3d-badge {
  position: absolute;
  bottom: 7px;
  left: 7px;
  right: 7px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(14, 5, 18, 0.72);
  backdrop-filter: blur(6px);
  font-family: var(--serif);
  font-size: 11px;
  color: var(--champagne);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.masonry-gallery {
  columns: 4 220px;
  column-gap: 14px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 236, 242, 0.088), rgba(42, 13, 33, 0.56));
  border: 1px solid rgba(255, 198, 215, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  position: relative;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
}

.photo-card:hover { transform: translateY(-4px) scale(1.012); border-color: var(--border-gold); }
.photo-frame { position: relative; overflow: hidden; background: #18091b; }
.photo-frame img { display: block; width: 100%; height: auto; transition: transform 0.6s ease; }
.photo-card:hover .photo-frame img { transform: scale(1.045); }
.photo-num-badge {
  position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px;
  background: rgba(16, 6, 19, 0.68); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 210, 224, 0.24); font-size: 10.5px; color: var(--champagne);
}
.photo-like-btn {
  position: absolute; top: 8px; right: 8px; width: 31px; height: 31px; border-radius: 50%;
  border: 1px solid rgba(255, 210, 224, 0.3); background: rgba(18, 7, 22, 0.64);
  color: rgba(255, 220, 232, 0.85); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.photo-like-btn.liked { background: rgba(225, 51, 100, 0.9); border-color: var(--champagne); color: #fff; box-shadow: 0 0 14px rgba(255, 94, 142, 0.72); }
.photo-caption { padding: 10px 12px 12px; }
.photo-cap-tr { font-family: var(--serif); font-size: 14px; color: var(--cream); line-height: 1.3; margin-bottom: 2px; }
.photo-cap-ru { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--gold); }

/* ==================== CHAPTER 4: LOVE ARCADE (4 FUN LOVE GAMES) ==================== */
.arcade-card {
  padding: 24px;
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(255, 94, 142, 0.16), transparent 62%),
    var(--glass);
  border: 1px solid var(--border-gold);
}

.arcade-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.arcade-tab {
  appearance: none;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 190, 212, 0.22);
  background: rgba(255, 228, 238, 0.05);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.arcade-tab span.tab-icon { font-size: 20px; }
.arcade-tab small { font-size: 10.5px; font-weight: 400; opacity: 0.78; }
.arcade-tab:hover { background: rgba(255, 94, 142, 0.14); color: var(--cream); transform: translateY(-2px); }
.arcade-tab.active {
  background: linear-gradient(145deg, rgba(255, 94, 142, 0.28), rgba(246, 199, 169, 0.14));
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 94, 142, 0.25);
}

.game-panel { display: none; animation: gentleFadeIn 0.38s ease; }
.game-panel.active { display: block; }

/* Game 1: Catch Hearts Canvas */
.catch-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  align-items: center;
}

.catch-canvas-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: radial-gradient(circle at 50% 25%, #2a0d2e, #120516 78%);
}

#catchCanvas {
  width: 100%;
  height: 360px;
  display: block;
  touch-action: none;
  cursor: ew-resize;
}

.catch-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-size: 13px;
  font-weight: 600;
}

.hud-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(14, 5, 18, 0.75);
  border: 1px solid rgba(246, 199, 169, 0.35);
  color: var(--champagne);
}

.catch-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 4, 16, 0.76);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
}

.catch-overlay.hidden { display: none; }

.game-sidebar {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 228, 238, 0.05);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.game-sidebar h4 { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--champagne); }
.legend-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.legend-list li { display: flex; justify-content: space-between; padding: 5px 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }

/* Game 2: Photo Memory Match (16 Cards = 8 Real Photo Pairs!) */
.mem-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.mem-stats { display: flex; gap: 10px; flex-wrap: wrap; }

.mem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.mem-card {
  aspect-ratio: 1 / 1;
  perspective: 900px;
  cursor: pointer;
  user-select: none;
}

.mem-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.mem-card.flipped .mem-inner,
.mem-card.matched .mem-inner { transform: rotateY(180deg); }

.mem-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 1.5px solid rgba(246, 199, 169, 0.34);
}

.mem-back {
  background: radial-gradient(circle at 35% 30%, rgba(255, 94, 142, 0.32), rgba(38, 12, 36, 0.92));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 26px;
  color: var(--champagne);
}

.mem-back small { font-size: 10px; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }

.mem-front {
  transform: rotateY(180deg);
  background: #140618;
}

.mem-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.mem-card.matched .mem-front {
  border-color: #ffd7ba;
  box-shadow: 0 0 22px rgba(255, 163, 190, 0.65);
}

/* Game 3: Spin Wheel of Love */
.wheel-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: center;
}

.wheel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--champagne);
  filter: drop-shadow(0 4px 10px rgba(255, 94, 142, 0.85));
  z-index: 4;
}

#wheelCanvas {
  width: 330px;
  height: 330px;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.wheel-result-box {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 228, 238, 0.06);
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wheel-prize {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--champagne);
  min-height: 38px;
}

/* Game 4: Love Quiz */
.quiz-box {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 228, 238, 0.055);
  border: 1px solid var(--border);
}

.quiz-prog { font-size: 12px; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }
.quiz-q { font-family: var(--serif); font-size: clamp(20px, 3vw, 26px); color: var(--cream); margin-bottom: 6px; }
.quiz-q-ru { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--rose-soft); margin-bottom: 16px; }

.quiz-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-opt {
  appearance: none;
  text-align: left;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 190, 212, 0.24);
  background: rgba(255, 232, 240, 0.06);
  color: var(--cream);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease;
}

.quiz-opt:hover { background: rgba(255, 94, 142, 0.2); border-color: var(--rose-soft); transform: translateY(-2px); }
.quiz-opt.correct { background: rgba(255, 94, 142, 0.36); border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 94, 142, 0.35); }

/* ==================== CHAPTER 5: LOVE JAR + 3D FLIP CARDS ==================== */
.jar-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  margin-bottom: 18px;
}

.jar-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.jar-btn { background: none; border: none; cursor: pointer; padding: 4px; position: relative; transition: transform 0.3s ease; }
.jar-btn:hover { transform: translateY(-4px) scale(1.03); }
.jar-btn.shaking { animation: jarWiggle 0.55s ease-in-out; }
@keyframes jarWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-5deg); } }
.jar-progress { font-size: 11.5px; color: var(--gold); background: rgba(246, 199, 169, 0.1); border: 1px solid var(--border-gold); padding: 4px 12px; border-radius: 999px; }

.note-stage { display: flex; flex-direction: column; gap: 14px; }
.note-slip {
  position: relative;
  min-height: 164px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 245, 248, 0.12), rgba(255, 190, 210, 0.055));
  border: 1px solid rgba(255, 200, 218, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.note-slip.pop { animation: noteUnfold 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes noteUnfold { 0% { opacity: 0.2; transform: translateY(12px) scale(0.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.note-meta { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.note-text { font-family: var(--serif); font-size: clamp(18px, 2.5vw, 22px); font-style: italic; color: var(--cream); }
.note-ru { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--rose-soft); padding-top: 6px; border-top: 1px solid rgba(255, 190, 210, 0.16); }

.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flip-card { perspective: 1000px; height: 210px; cursor: pointer; user-select: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 20px; padding: 18px 16px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 7px; border: 1px solid var(--border);
}
.flip-front { background: linear-gradient(155deg, rgba(255, 224, 236, 0.085), rgba(140, 30, 75, 0.13)); backdrop-filter: blur(14px); }
.flip-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 94, 142, 0.16); border: 1px solid rgba(246, 199, 169, 0.36); display: flex; align-items: center; justify-content: center; color: var(--champagne); }
.flip-front h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--cream); }
.flip-front .ru-mini { font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--rose-soft); }
.flip-front small { font-size: 10.5px; color: var(--gold); letter-spacing: 0.08em; }
.flip-back { transform: rotateY(180deg); background: linear-gradient(155deg, rgba(225, 51, 100, 0.28), rgba(75, 18, 46, 0.78)); border-color: rgba(246, 199, 169, 0.45); }
.flip-back p { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--cream); line-height: 1.45; }
.flip-back .back-ru { font-size: 12.5px; color: var(--gold); margin-top: 3px; }

/* ==================== CHAPTER 6: HOLD-TO-HUG + LOVE COUPONS BENTO ==================== */
.hug-coupons-bento {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}

.hug-card {
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hug-ring-wrap { position: relative; width: 158px; height: 158px; display: flex; align-items: center; justify-content: center; user-select: none; touch-action: none; }
.hug-svg { position: absolute; inset: 0; transform: rotate(-90deg); pointer-events: none; }
.hug-track { fill: none; stroke: rgba(255, 190, 210, 0.18); stroke-width: 5; }
.hug-progress { fill: none; stroke: url(#hugGrad); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 427.26; stroke-dashoffset: 427.26; filter: drop-shadow(0 0 10px rgba(255, 120, 160, 0.85)); }
.hug-btn {
  width: 122px; height: 122px; border-radius: 50%; border: 1px solid rgba(255, 224, 232, 0.45);
  background: radial-gradient(circle at 35% 30%, #ff82a9 0%, #d92862 62%, #85123b 100%);
  color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  box-shadow: 0 14px 36px rgba(225, 51, 100, 0.48); transition: transform 0.2s ease; user-select: none; -webkit-user-select: none;
}
.hug-btn.holding { transform: scale(0.94); box-shadow: 0 0 50px rgba(255, 130, 170, 0.92); }
.hug-btn .big-heart { font-size: 34px; line-height: 1; animation: heartBeatCSS 1.6s infinite; }
.hug-btn span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.hug-message { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--champagne); min-height: 44px; }
.hug-stats { font-size: 12px; color: var(--muted); background: rgba(255, 232, 240, 0.06); border: 1px solid var(--border); padding: 5px 14px; border-radius: 999px; }

.coupons-panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.coupon {
  position: relative;
  padding: 15px 18px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(255, 230, 238, 0.085), rgba(246, 199, 169, 0.055));
  border: 1.5px dashed rgba(246, 199, 169, 0.42);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.coupon:hover { transform: translateY(-2px); border-color: var(--rose-soft); background: linear-gradient(135deg, rgba(255, 94, 142, 0.16), rgba(246, 199, 169, 0.09)); }
.coupon-emoji { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: rgba(255, 94, 142, 0.16); border: 1px solid rgba(255, 190, 210, 0.25); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.coupon-body { flex: 1; }
.coupon-tag { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.coupon-body h3 { font-family: var(--serif); font-size: 17.5px; font-weight: 400; color: var(--cream); }
.coupon-body p { font-size: 12.5px; color: var(--muted); }
.coupon-stamp {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(-12deg) scale(1.6);
  padding: 5px 11px; border-radius: 9px; border: 2px solid var(--gold); color: var(--gold);
  background: rgba(28, 7, 22, 0.9); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  opacity: 0; pointer-events: none; transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.coupon.used { border-style: solid; border-color: rgba(246, 199, 169, 0.6); }
.coupon.used .coupon-stamp { opacity: 1; transform: translateY(-50%) rotate(-12deg) scale(1); }

/* ==================== CHAPTER 7: LETTER + IMPOSSIBLE PROPOSAL FINALE ==================== */
.letter-card {
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(155deg, rgba(255, 240, 244, 0.095), rgba(85, 20, 48, 0.18));
  border: 1px solid rgba(246, 199, 169, 0.36);
  margin-bottom: 20px;
}

.letter-salutation { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3.4vw, 30px); color: var(--champagne); margin-bottom: 14px; }
.letter-body { font-family: var(--serif); font-size: clamp(16px, 2.1vw, 18.5px); line-height: 1.82; color: rgba(255, 244, 247, 0.93); white-space: pre-line; margin-bottom: 20px; }
.letter-ru-postscript { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--rose-soft); padding: 12px 16px; border-left: 2px solid var(--gold); background: rgba(255, 94, 142, 0.08); border-radius: 0 14px 14px 0; margin-bottom: 18px; }
.letter-sign { text-align: right; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--gold); }

.proposal-card {
  padding: clamp(28px, 4.5vw, 46px) 22px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 15%, rgba(255, 94, 142, 0.24), transparent 65%),
    linear-gradient(160deg, rgba(255, 232, 240, 0.1), rgba(55, 14, 38, 0.6));
  border: 1.5px solid rgba(246, 199, 169, 0.5);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 0 60px rgba(255, 94, 142, 0.18);
}

.ring-emblem {
  width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 232, 214, 0.28), rgba(225, 51, 100, 0.2));
  border: 1px solid rgba(246, 199, 169, 0.58);
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  box-shadow: 0 0 38px rgba(246, 199, 169, 0.4);
  animation: ringFloat 3s ease-in-out infinite;
}
@keyframes ringFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.06); } }

.proposal-q { font-family: var(--serif); font-size: clamp(28px, 5vw, 46px); font-weight: 400; color: var(--cream); margin-bottom: 8px; }
.proposal-q-multi { font-family: var(--serif); font-style: italic; font-size: clamp(14.5px, 2.2vw, 18px); color: var(--gold); margin-bottom: 8px; }
.proposal-tease { color: var(--rose-soft); font-size: 14px; min-height: 22px; margin-bottom: 14px; font-style: italic; }

.proposal-arena {
  position: relative;
  width: 100%;
  min-height: 240px;
  border-radius: 20px;
  background: rgba(14, 5, 18, 0.34);
  border: 1px dashed rgba(255, 190, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  overflow: hidden;
}

.dodge-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  color: rgba(246, 199, 169, 0.72);
  pointer-events: none;
}

.yes-btn { font-size: 17px; padding: 15px 38px; z-index: 4; position: relative; transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1); }

.no-btn {
  appearance: none;
  border: 1px solid rgba(255, 190, 212, 0.38);
  background: rgba(34, 12, 36, 0.86);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: not-allowed;
  z-index: 3;
  white-space: nowrap;
  user-select: none;
  transition: left 0.19s cubic-bezier(0.22, 1, 0.36, 1), top 0.19s cubic-bezier(0.22, 1, 0.36, 1), transform 0.19s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.proposal-celebration { display: none; flex-direction: column; align-items: center; gap: 13px; padding: 10px 0; animation: gentleFadeIn 0.7s ease both; }
.proposal-celebration.show { display: flex; }
.proposal-celebration h3 { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 4.8vw, 42px); background: linear-gradient(125deg, #fff4ea, #ff9ebb, #ffd7ba); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cert-pill { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border-gold); background: rgba(246, 199, 169, 0.14); color: var(--champagne); font-family: var(--serif); font-style: italic; font-size: 16.5px; }

footer { text-align: center; color: rgba(255, 220, 232, 0.56); font-size: 13px; padding-top: 8px; }
footer .footer-heart { color: var(--rose); cursor: pointer; display: inline-block; padding: 0 4px; }

/* ==================== LIGHTBOX & MODAL & TOAST ==================== */
.lightbox {
  position: fixed; inset: 0; z-index: 180; background: rgba(8, 3, 12, 0.94); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-top { position: absolute; top: 16px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.lb-counter { font-size: 13px; letter-spacing: 0.14em; color: var(--gold); background: rgba(255, 232, 240, 0.08); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; }
.lb-controls { display: flex; gap: 8px; align-items: center; }
.lb-stage { width: min(920px, 100%); max-height: 74vh; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 72vh; border-radius: 18px; border: 1px solid rgba(246, 199, 169, 0.34); box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78); object-fit: contain; transition: opacity 0.3s ease; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-gold); background: rgba(22, 9, 25, 0.78); color: var(--champagne); font-size: 22px; cursor: pointer; z-index: 6; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-caption { margin-top: 14px; text-align: center; }
.lb-caption h4 { font-family: var(--serif); font-size: clamp(18px, 3vw, 24px); font-weight: 400; color: var(--cream); }
.lb-caption p { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); }

.modal-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(8, 3, 12, 0.8); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-panel { width: min(540px, 100%); max-height: 88vh; overflow-y: auto; background: linear-gradient(160deg, #210c24, #140717); border: 1px solid var(--border-gold); border-radius: 24px; padding: 24px; color: var(--cream); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-family: var(--serif); font-size: 23px; font-weight: 400; color: var(--champagne); }
.close-x { appearance: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); color: var(--cream); font-size: 18px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--gold); }
.field input, .field textarea { width: 100%; border-radius: 12px; border: 1px solid rgba(255, 190, 210, 0.24); background: rgba(255, 240, 246, 0.06); color: var(--cream); font-family: var(--sans); font-size: 14px; padding: 9px 12px; outline: none; }
.field textarea { resize: vertical; min-height: 86px; }

.toast {
  position: fixed; bottom: 82px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(34, 12, 34, 0.94); border: 1px solid var(--border-gold); color: var(--champagne);
  padding: 10px 20px; border-radius: 999px; font-size: 13px; z-index: 210; opacity: 0;
  pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; text-align: center; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 940px) {
  .hero-bento, .counter-strip, .story-bento, .hug-coupons-bento, .catch-wrap, .wheel-layout { grid-template-columns: 1fr; }
  .side-rail { display: none; }
  .arcade-tabs { grid-template-columns: repeat(2, 1fr); }
  .jar-layout { grid-template-columns: 1fr; }
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .top-brand .brand-text { display: none; }
}

@media (max-width: 560px) {
  .flip-grid, .quiz-opts, .form-grid { grid-template-columns: 1fr; }
  .masonry-gallery { columns: 2 140px; column-gap: 10px; }
  .carousel-stage { height: 245px; }
  .carousel-ring { width: 126px; height: 168px; }
  .mem-grid { gap: 8px; }
  .music-dock { right: 10px; bottom: 10px; }
  .top-actions .hide-sm { display: none; }
}
