/* =========================================================
   ❤️  Vetëm Për Ty — style
   ========================================================= */
:root {
  --bg: #16040d;
  --bg2: #2a0818;
  --rose: #ff3d7f;
  --rose2: #ff6b9d;
  --pink: #ff8fb1;
  --blush: #ffc2d4;
  --gold: #ffd27a;
  --cream: #fff7f2;
  --ink: #5a1736;
  --text: #fff0f5;
  --muted: #f0b9cc;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-b: rgba(255, 180, 210, 0.22);

  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --hand: 'Dancing Script', 'Segoe Script', cursive;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --love-grad: linear-gradient(90deg, #ffd27a 0%, #ff9fbf 45%, #ff3d7f 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(255, 61, 127, 0.28), transparent 50%),
    radial-gradient(ellipse at 88% 28%, rgba(255, 160, 110, 0.12), transparent 45%),
    radial-gradient(ellipse at 30% 70%, rgba(190, 30, 100, 0.2), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 61, 127, 0.25), transparent 60%),
    linear-gradient(180deg, #1a0510 0%, #2a0818 50%, #1a0510 100%);
  background-attachment: fixed;
}

::selection { background: var(--rose); color: #fff; }

img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

#fx, #confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#fx { z-index: 0; }
#confetti { z-index: 9000; }

/* hide the real website until unlocked */
body.locked { overflow: hidden; }
body.locked #main,
body.locked .nav,
body.locked .music-btn { display: none !important; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.btn-love {
  color: #fff;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff3d7f 50%, #d6145a 100%);
  box-shadow: 0 10px 30px rgba(255, 61, 127, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-love:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 40px rgba(255, 61, 127, 0.6); }
.btn-love:active { transform: scale(0.97); }
.btn-ghost {
  border: 1.5px solid var(--glass-b);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 61, 127, 0.18); transform: translateY(-2px); }

/* =========================================================
   LOCK SCREEN
   ========================================================= */
#lock {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 42%, rgba(255, 61, 127, 0.22), transparent 62%);
  transition: opacity 0.8s ease, visibility 0.8s;
}
#lock.gone { opacity: 0; visibility: hidden; }

.lock-card {
  position: relative;
  width: min(440px, 100%);
  padding: 40px 30px 34px;
  text-align: center;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 61, 127, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: cardIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.lock-card.shake { animation: shake 0.55s; }

.padlock {
  width: 108px;
  height: 118px;
  margin: 0 auto 10px;
  overflow: visible;
  filter: drop-shadow(0 10px 25px rgba(255, 61, 127, 0.55));
  animation: heartbeat 1.6s ease-in-out infinite;
}
.padlock .shackle {
  transform-origin: 82px 62px;
  transition: transform 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.lock-card.success .shackle { transform: translateY(-16px) rotate(28deg); }
.lock-card.success .padlock { animation: none; transform: scale(1.12); transition: transform 0.4s; }

.lock-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  line-height: 1.15;
  background: var(--love-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lock-title span { -webkit-text-fill-color: initial; color: initial; }
.lock-sub { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }

.lock-form { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.lock-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 180, 205, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: 500 1.4rem var(--sans);
  text-align: center;
  letter-spacing: 0.14em;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.lock-input::placeholder { color: rgba(255, 200, 220, 0.4); letter-spacing: 0.2em; }
.lock-input:focus { border-color: var(--rose2); box-shadow: 0 0 0 5px rgba(255, 61, 127, 0.18); }
.lock-card.wrong .lock-input { border-color: #ff4d6d; }

.lock-msg { min-height: 1.6em; margin-top: 16px; font-family: var(--hand); font-size: 1.45rem; color: var(--blush); }
.lock-msg.pop { animation: pop 0.45s; }
.lock-hint { margin-top: 4px; font-size: 0.88rem; color: var(--gold); opacity: 0; transition: opacity 0.5s; }
.lock-hint.show { opacity: 0.9; }

/* heart that zooms over the screen on unlock */
.heart-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.heart-transition svg {
  width: 120px;
  fill: var(--rose);
  transform: scale(0);
  filter: drop-shadow(0 0 40px rgba(255, 61, 127, 0.8));
}
.heart-transition.grow svg { transition: transform 1s cubic-bezier(0.6, 0, 0.4, 1); transform: scale(30); }
.heart-transition.fade { opacity: 0; transition: opacity 0.9s ease; }

/* =========================================================
   NAV + MUSIC
   ========================================================= */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 6px;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  background: rgba(30, 6, 18, 0.55);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: dropIn 0.9s 1.2s both;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; background: linear-gradient(135deg, #ff6b9d, #d6145a); box-shadow: 0 4px 14px rgba(255, 61, 127, 0.45); }

.music-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(135deg, #ff6b9d, #d6145a);
  box-shadow: 0 10px 30px rgba(255, 61, 127, 0.5);
}
.music-btn.playing { animation: spin 4s linear infinite; }
.music-btn:not(.playing) { opacity: 0.75; }

/* =========================================================
   HERO
   ========================================================= */
#main { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 90px;
}

.hero-stack { position: relative; width: 230px; height: 230px; margin-bottom: 26px; }
.polaroid {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 165px;
  padding: 9px 9px 32px;
  background: #fffaf7;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) rotate(0deg) scale(0.6);
  opacity: 0;
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid span {
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ink);
}
body.started .p1 { animation: fan1 1.2s 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards; }
body.started .p2 { animation: fan2 1.2s 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards; }
body.started .p3 { animation: fan3 1.2s 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards; }
@keyframes fan1 { to { opacity: 1; transform: translate(-92%, -46%) rotate(-14deg) scale(0.92); } }
@keyframes fan2 { to { opacity: 1; transform: translate(-8%, -46%) rotate(13deg) scale(0.92); } }
@keyframes fan3 { to { opacity: 1; transform: translate(-50%, -52%) rotate(-2deg) scale(1); } }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.hero-eyebrow, .hero-title, .hero-name, .typewriter, .scroll-hint { opacity: 0; }
body.started .hero-eyebrow { animation: fadeUp 1s 1.2s forwards; }
body.started .hero-title { animation: titleIn 1.4s 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
body.started .hero-name { animation: fadeUp 1s 1.9s forwards; }
body.started .typewriter { animation: fadeUp 1s 2.3s forwards; }
body.started .scroll-hint { animation: fadeUp 1s 2.8s forwards; }

.hero-title {
  margin-top: 8px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 8rem);
  line-height: 1.05;
  padding: 0 0.15em 0.1em;
  background: linear-gradient(100deg, #ffe0a3 0%, #ffb8cf 35%, #ff6b9d 65%, #ffd27a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 25px rgba(255, 61, 127, 0.45));
}
body.started .hero-title { animation: titleIn 1.4s 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, shimmer 6s 2.8s linear infinite; }

.hero-name {
  margin-top: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: #ffe6ee;
}
.beat { display: inline-block; animation: heartbeat 1.3s ease-in-out infinite; }

.typewriter {
  margin-top: 22px;
  min-height: 1.8em;
  max-width: 640px;
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  font-weight: 300;
  color: var(--blush);
}
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -0.15em; background: var(--rose2); animation: blink 0.9s steps(1) infinite; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.mouse { width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.mouse span { width: 4px; height: 8px; border-radius: 2px; background: var(--rose2); animation: wheel 1.6s infinite; }

/* =========================================================
   RIBBON
   ========================================================= */
.ribbon {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  transform: rotate(-2deg);
  margin: 10px -20px;
  background: linear-gradient(90deg, #d6145a, #ff3d7f, #ff8fb1, #ff3d7f, #d6145a);
  box-shadow: 0 10px 40px rgba(255, 61, 127, 0.35);
}
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon-track span {
  padding: 0 22px;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #fff;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  scroll-margin-top: 30px;
}
.section-wide { max-width: 1240px; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3rem, 10vw, 5.2rem);
  line-height: 1.15;
  padding: 0 0.2em;
  background: var(--love-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 61, 127, 0.3));
}
.section-sub { margin-top: 6px; color: var(--muted); font-weight: 300; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   ENVELOPE + LETTER
   ========================================================= */
.envelope-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; transition: max-height 0.8s ease, opacity 0.6s, margin 0.8s; max-height: 500px; }
.envelope-wrap.done { max-height: 0; opacity: 0; margin: 0; overflow: hidden; pointer-events: none; }

.envelope {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 3 / 2;
  margin-top: 70px;
  cursor: pointer;
  perspective: 1200px;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.5));
  animation: floaty 3.5s ease-in-out infinite;
  outline: none;
}
.envelope.open { animation: none; }
.env-back { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(#b5124c, #8e0c3b); }
.env-paper {
  position: absolute;
  left: 7%; right: 7%; top: 8%;
  height: 84%;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: repeating-linear-gradient(#fff7f2 0 26px, #f6dbe4 26px 27px);
  font-family: var(--hand);
  font-size: 1.8rem;
  color: var(--ink);
  transition: transform 0.9s 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.env-front {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 10px;
  background: linear-gradient(160deg, #ff7aa8, #e8336f);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
.env-flap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 62%;
  z-index: 4;
  background: linear-gradient(#ff5a92, #d61f61);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.6s ease, z-index 0s 0.3s;
}
.env-seal {
  position: absolute;
  left: 50%; top: 62%;
  z-index: 5;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #ffe0ea;
  background: radial-gradient(circle at 35% 30%, #ff5c8a, #a50d3f);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s, opacity 0.4s;
  animation: heartbeat 1.4s ease-in-out infinite;
}
.envelope.open .env-seal { transform: scale(0) rotate(90deg); opacity: 0; animation: none; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .env-paper { transform: translateY(-62%); }
.env-tap { font-family: var(--hand); font-size: 1.3rem; color: var(--blush); animation: pulse 2s infinite; }

.letter-paper {
  position: relative;
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px clamp(22px, 6vw, 70px) 60px;
  scroll-margin-top: 90px;
  border-radius: 6px;
  color: #4a1430;
  background:
    linear-gradient(90deg, transparent clamp(14px, 4vw, 48px), rgba(255, 61, 127, 0.35) clamp(14px, 4vw, 48px), rgba(255, 61, 127, 0.35) calc(clamp(14px, 4vw, 48px) + 2px), transparent calc(clamp(14px, 4vw, 48px) + 2px)),
    repeating-linear-gradient(#fff8f3 0 2.18rem, #f2d4de 2.18rem calc(2.18rem + 1px)),
    #fff8f3;
  background-position: 0 0, 0 28px, 0 0;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(255, 255, 255, 0.04);
}
.letter-paper.show { display: block; animation: paperIn 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.letter-paper::before, .letter-paper::after {
  content: '';
  position: absolute;
  top: -14px;
  width: 110px; height: 30px;
  background: rgba(255, 170, 200, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.letter-paper::before { left: 30px; transform: rotate(-6deg); }
.letter-paper::after { right: 30px; transform: rotate(5deg); }
.letter-stamp { position: absolute; top: 18px; right: 22px; font-size: 2rem; transform: rotate(10deg); }
.letter-paper p {
  font-family: var(--hand);
  font-size: clamp(1.25rem, 3.4vw, 1.55rem);
  line-height: 2.18rem;
  margin-bottom: 2.18rem;
  text-indent: 1.5em;
}
.letter-paper p:last-of-type { font-weight: 700; color: #c2185b; text-indent: 0; }
.letter-paper.show p, .letter-paper.show .letter-seal { opacity: 0; animation: inkIn 1.2s calc(var(--i) * 0.45s + 0.5s) forwards; }
.letter-seal {
  width: 60px; height: 60px;
  margin: 10px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  color: #ffe0ea;
  background: radial-gradient(circle at 35% 30%, #ff5c8a, #a50d3f);
  box-shadow: 0 6px 14px rgba(165, 13, 63, 0.4);
}

/* =========================================================
   QUOTES
   ========================================================= */
.quotes-section { padding-top: 80px; }
.quote-box {
  position: relative;
  text-align: center;
  padding: 60px 30px 40px;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 61, 127, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(6px);
}
.q-mark {
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 1;
  color: var(--rose);
  text-shadow: 0 0 30px rgba(255, 61, 127, 0.6);
}
.quote-text {
  min-height: 3.2em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 4.4vw, 2.2rem);
  line-height: 1.45;
  color: #ffeef4;
  transition: opacity 0.6s, transform 0.6s;
}
.quote-text.out { opacity: 0; transform: translateY(12px); }
.q-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.q-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 190, 210, 0.3); transition: 0.3s; }
.q-dots button.active { width: 26px; border-radius: 6px; background: var(--rose); }

/* =========================================================
   ALBUM
   ========================================================= */
.album-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 44px; flex-wrap: wrap; }
.tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--glass-b);
  background: var(--glass);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: 0.3s;
}
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ff6b9d, #d6145a); box-shadow: 0 6px 18px rgba(255, 61, 127, 0.4); }

.gallery { columns: 4 230px; column-gap: 26px; }
.g-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
  padding: 10px 10px 0;
  break-inside: avoid;
  border-radius: 5px;
  background: #fffaf7;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  text-align: center;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s, opacity 0.8s;
}
.g-item.reveal { opacity: 0; transform: translateY(40px) rotate(var(--r, 0deg)); }
.g-item.reveal.in { opacity: 1; transform: rotate(var(--r, 0deg)); }
.g-item:hover, .g-item.reveal.in:hover { transform: rotate(0deg) scale(1.05) translateY(-6px); box-shadow: 0 26px 50px rgba(255, 61, 127, 0.4); z-index: 2; }
.g-item.hidden { display: none; }
.g-item img, .g-item video { width: 100%; border-radius: 2px; background: #f3dde5; min-height: 120px; object-fit: cover; }
.g-tape {
  position: absolute;
  top: -11px; left: 50%;
  width: 84px; height: 24px;
  background: rgba(255, 175, 205, 0.78);
  transform: translateX(-50%) rotate(var(--t, -4deg));
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  z-index: 1;
}
.g-cap { padding: 10px 6px 13px; font-family: var(--hand); font-size: 1.3rem; color: var(--ink); }
.g-play {
  position: absolute;
  left: 50%; top: calc(50% - 22px);
  width: 62px; height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 61, 127, 0.85);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35), 0 10px 25px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 0.3s;
}
.g-play::after { content: ''; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.g-item:hover .g-play { transform: translate(-50%, -50%) scale(1.12); }
.g-badge { position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.5); }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px 120px;
  background: radial-gradient(circle at 50% 40%, rgba(90, 10, 45, 0.9), rgba(10, 1, 6, 0.97));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-stage img, .lb-stage video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.92);
  animation: lbIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: #000;
}
.lb-btn {
  position: absolute;
  z-index: 2;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.25s, transform 0.25s;
}
.lb-btn:hover { background: var(--rose); transform: scale(1.08); }
.lb-close { top: 16px; right: 16px; font-size: 1.3rem; }
.lb-prev { left: 12px; top: 50%; margin-top: -40px; }
.lb-next { right: 12px; top: 50%; margin-top: -40px; }
.lb-bottom { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; padding: 0 20px; }
.lb-caption { font-family: var(--hand); font-size: clamp(1.35rem, 3.6vw, 1.9rem); color: #ffe3ec; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.lb-meta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.lb-play { padding: 6px 16px; border-radius: 999px; font-size: 0.85rem; border: 1px solid var(--glass-b); background: var(--glass); }
.lb-play:hover { background: rgba(255, 61, 127, 0.3); }

/* =========================================================
   REASONS
   ========================================================= */
.reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.r-card { height: 210px; perspective: 1000px; cursor: pointer; }
.r-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.3, 1.3, 0.5, 1); }
.r-card.flipped .r-inner { transform: rotateY(180deg); }
.r-card:not(.flipped):hover .r-inner { transform: rotateY(12deg) translateY(-4px); }
.r-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  border-radius: 24px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.r-front {
  border: 1px solid var(--glass-b);
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 210, 122, 0.18), transparent 40%),
    linear-gradient(150deg, rgba(255, 61, 127, 0.26), rgba(255, 255, 255, 0.04));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.r-num { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; line-height: 1; background: var(--love-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.r-heart { font-size: 1.6rem; animation: heartbeat 1.6s infinite; }
.r-front small { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; }
.r-back {
  transform: rotateY(180deg);
  color: #fff;
  background: linear-gradient(150deg, #ff7aa8 0%, #e8336f 55%, #a50d3f 100%);
  box-shadow: 0 18px 40px rgba(255, 61, 127, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1.35;
}
.reasons-count { margin-top: 30px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.reasons-count.all { font-family: var(--hand); font-size: 1.6rem; color: var(--gold); }

/* =========================================================
   CAKE
   ========================================================= */
.cake-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.cake-glow {
  position: absolute;
  top: -40px; left: 50%;
  width: 420px; height: 420px;
  max-width: 100vw;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.3), transparent 65%);
  transition: opacity 1s;
  pointer-events: none;
  animation: glow 2.5s ease-in-out infinite;
}
.cake-glow.off { opacity: 0; }
.cake { position: relative; width: 280px; height: 260px; margin-top: 20px; }
.plate {
  position: absolute;
  bottom: 0; left: 50%;
  width: 320px; height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f6dbe4 55%, #c993a8 100%);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}
.layer { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 16px 16px 12px 12px; }
.layer-bottom {
  z-index: 2;
  bottom: 14px;
  width: 260px; height: 92px;
  background:
    radial-gradient(circle, #ffd27a 2px, transparent 2.5px) 10px 40px / 34px 26px,
    radial-gradient(circle, #ffffff 2px, transparent 2.5px) 26px 52px / 40px 30px,
    linear-gradient(#ff8fb1, #e94e86 70%, #c9306a);
}
.layer-top {
  z-index: 3;
  bottom: 100px;
  width: 196px; height: 74px;
  background:
    radial-gradient(circle, #ff3d7f 2px, transparent 2.5px) 6px 36px / 30px 22px,
    linear-gradient(#ffe0ea, #ffb3cb 75%, #ff9fbf);
}
.icing {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20px;
  border-radius: 14px 14px 0 0;
  background: #fff5f8;
}
.icing::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 16px;
  background: radial-gradient(circle at 50% 0, #fff5f8 9px, transparent 9.5px) 0 0 / 24px 16px repeat-x;
}
.cake-text { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--script); font-size: 1.9rem; color: #fff; text-shadow: 0 2px 6px rgba(120, 0, 40, 0.5); }
.candles { position: absolute; z-index: 4; bottom: 172px; left: 50%; transform: translateX(-50%); display: flex; gap: 22px; }
.candle {
  position: relative;
  width: 13px; height: 50px;
  border-radius: 4px 4px 2px 2px;
  cursor: pointer;
  background: repeating-linear-gradient(45deg, #fff 0 6px, #ff6b9d 6px 12px);
  box-shadow: inset -3px 0 4px rgba(0, 0, 0, 0.12);
}
.candle::before { content: ''; position: absolute; top: -7px; left: 50%; width: 2px; height: 8px; margin-left: -1px; background: #3a2a2a; }
.flame {
  position: absolute;
  left: 50%; bottom: calc(100% + 5px);
  width: 15px; height: 26px;
  margin-left: -7.5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 75%, #fffbe0 0%, #ffd84d 40%, #ff8a2c 75%, rgba(255, 80, 30, 0) 100%);
  box-shadow: 0 0 18px 6px rgba(255, 190, 80, 0.55), 0 0 50px 16px rgba(255, 140, 60, 0.25);
  transform-origin: 50% 90%;
  animation: flicker 0.18s ease-in-out infinite alternate;
  transition: opacity 0.3s, transform 0.3s;
}
.candle:nth-child(2) .flame { animation-duration: 0.22s; }
.candle:nth-child(3) .flame { animation-duration: 0.16s; }
.candle:nth-child(4) .flame { animation-duration: 0.24s; }
.candle.out .flame { opacity: 0; transform: scale(0.1); animation: none; }
.smoke {
  position: absolute;
  left: 50%; bottom: 100%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: rgba(220, 220, 220, 0.6);
  opacity: 0;
  filter: blur(3px);
}
.candle.out .smoke { animation: smoke 1.6s ease-out forwards; }

.wish-msg { max-width: 560px; text-align: center; opacity: 0; transform: translateY(20px) scale(0.96); transition: 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; display: none; }
.wish-msg.show { display: block; }
.wish-msg.in { opacity: 1; transform: none; pointer-events: auto; }
.wish-msg h3 { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 8vw, 3.6rem); color: var(--gold); text-shadow: 0 0 25px rgba(255, 210, 122, 0.5); }
.wish-msg p { margin-top: 10px; font-size: 1.1rem; font-weight: 300; line-height: 1.7; color: #ffe6ee; }
.link-btn { margin-top: 16px; color: var(--muted); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: #fff; }

/* =========================================================
   FINAL
   ========================================================= */
.final {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 20px 80px;
}
.big-heart { width: 150px; animation: heartbeat 1.3s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255, 61, 127, 0.7)); }
.big-heart svg { width: 100%; fill: var(--rose); transition: fill 0.3s; }
.big-heart:hover svg { fill: #ff5c93; }
.final-title {
  margin-top: 26px;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.6rem, 14vw, 7.5rem);
  line-height: 1.1;
  padding: 0 0.2em;
  background: var(--love-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 25px rgba(255, 61, 127, 0.45));
}
.final-text { max-width: 560px; margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3.6vw, 1.5rem); line-height: 1.6; color: #ffe6ee; }
.final-sign { margin: 22px 0 34px; font-family: var(--hand); font-size: 1.9rem; color: var(--blush); }
.footer { position: relative; z-index: 1; padding: 30px 20px 40px; text-align: center; color: rgba(240, 185, 204, 0.6); font-size: 0.85rem; letter-spacing: 0.1em; }
.footer .beat { color: var(--rose); }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-14px) rotate(-1deg); } 30% { transform: translateX(12px) rotate(1deg); } 45% { transform: translateX(-9px); } 60% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.12); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } 70% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(0.7); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes titleIn { from { opacity: 0; transform: translateY(30px) scale(0.92); filter: blur(12px) drop-shadow(0 0 25px rgba(255, 61, 127, 0.45)); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 25px rgba(255, 61, 127, 0.45)); } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes paperIn { from { opacity: 0; transform: translateY(60px) scale(0.95) rotate(-1deg); } to { opacity: 1; transform: none; } }
@keyframes inkIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes lbIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes flicker { from { transform: scale(1, 1) rotate(-2deg); } to { transform: scale(0.92, 1.08) rotate(2deg); } }
@keyframes smoke { 0% { opacity: 0.8; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-70px) translateX(10px) scale(4); } }
@keyframes glow { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.08); } }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 640px) {
  .section { padding: 100px 16px 40px; }
  .nav a { padding: 7px 12px; font-size: 0.8rem; }
  .gallery { columns: 2; column-gap: 14px; }
  .g-item { padding: 6px 6px 0; margin-bottom: 18px; }
  .g-cap { font-size: 1.05rem; padding: 7px 4px 9px; }
  .g-tape { width: 56px; height: 18px; top: -8px; }
  .g-play { width: 46px; height: 46px; top: calc(50% - 16px); }
  .g-play::after { border-width: 8px 0 8px 13px; }
  .lightbox { padding: 60px 10px 130px; }
  .lb-prev, .lb-next { top: auto; bottom: 86px; margin-top: 0; width: 44px; height: 44px; }
  .reasons { grid-template-columns: 1fr 1fr; gap: 12px; }
  .r-card { height: 190px; }
  .r-face { padding: 14px; border-radius: 18px; }
  .r-back { font-size: 1.15rem; }
  .r-num { font-size: 2.5rem; }
  .cake { transform: scale(0.88); }
  .music-btn { width: 48px; height: 48px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
