:root {
  --bg-0: #140a1f;
  --bg-1: #260f2c;
  --bg-2: #1a0b22;
  --rose: #ff8fb8;
  --rose-soft: #f5b8d0;
  --violet: #c79bff;
  --gold: #f3d9a6;
  --text: #f5edf3;
  --text-dim: #c9b7c6;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-2: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ============ AMBIENCE ============ */
.bg-mesh {
  position: fixed;
  inset: -25%;
  z-index: -3;
  background:
    radial-gradient(38% 44% at 18% 22%, rgba(255, 122, 173, 0.50), transparent 70%),
    radial-gradient(42% 46% at 82% 16%, rgba(199, 155, 255, 0.45), transparent 70%),
    radial-gradient(46% 50% at 70% 82%, rgba(243, 217, 166, 0.28), transparent 72%),
    radial-gradient(50% 55% at 30% 78%, rgba(176, 106, 200, 0.40), transparent 72%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2));
  filter: saturate(1.15);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.06) rotate(1deg); }
  100% { transform: translate3d(-2%, -4%, 0) scale(1.1) rotate(-1deg); }
}

/* mouse-reactive glow */
.bg-glow {
  position: fixed;
  width: 60vmax; height: 60vmax;
  left: 50%; top: 50%;
  z-index: -2;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 143, 184, 0.16), transparent 60%);
  pointer-events: none;
  transition: transform 0.25s ease-out;
}

/* glowing particles */
.particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.particles span {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0));
  box-shadow: 0 0 14px 2px rgba(255, 200, 230, 0.7);
  animation: rise-glow linear forwards;
}
@keyframes rise-glow {
  to { transform: translateY(-112vh) translateX(var(--drift, 0)); opacity: 0; }
}

.confetti-canvas { position: fixed; inset: 0; z-index: 900; pointer-events: none; }

/* ============ NIGHT SKY (moon + stars) ============ */
.night { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.moon {
  position: absolute;
  top: 7%; right: 8%;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fff8ec, #f3d9a6 58%, #e7c585);
  box-shadow: 0 0 70px 24px rgba(243, 217, 166, 0.32), inset -12px -10px 0 rgba(0, 0, 0, 0.05);
  opacity: 0.9;
  animation: moon-glow 6s ease-in-out infinite;
}
.stars span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.4;
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.95; } }
@keyframes moon-glow {
  0%, 100% { box-shadow: 0 0 70px 24px rgba(243, 217, 166, 0.30); }
  50%      { box-shadow: 0 0 90px 30px rgba(243, 217, 166, 0.45); }
}

/* shooting stars */
.shooting-star {
  position: fixed;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.85);
  z-index: -2;
  pointer-events: none;
}
.shooting-star::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 90px; height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), transparent);
  transform-origin: left center;
  transform: translateY(-50%) rotate(calc(var(--angle, 200deg) + 180deg));
}

/* ============ FROSTED GLASS ============ */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
/* soft inner top highlight for realism */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%);
  pointer-events: none;
}

/* ============ SHIMMERING NAME ============ */
.shimmer {
  background: linear-gradient(100deg, #fff 0%, var(--rose-soft) 28%, var(--gold) 50%, var(--violet) 72%, #fff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

/* ============ CINEMATIC INTRO ============ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  transition: opacity 1s ease, visibility 1s ease;
}
.intro.hidden { opacity: 0; visibility: hidden; }
.intro-inner {
  padding: clamp(2.5rem, 7vw, 4.5rem);
  max-width: 600px;
  animation: fadeUp 1.2s ease both;
}
.intro-kicker {
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--rose-soft);
  margin-bottom: 1rem;
}
.intro-name {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(3rem, 11vw, 5.5rem);
  line-height: 1;
  margin-bottom: 2.4rem;
}
.seal {
  --size: 120px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, rgba(255, 143, 184, 0.9), rgba(176, 106, 200, 0.85));
  color: #fff;
  box-shadow: 0 0 40px rgba(255, 143, 184, 0.5), inset 0 2px 8px rgba(255, 255, 255, 0.3);
  display: grid; place-items: center; gap: 3px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2.6s ease-in-out infinite;
}
.seal:hover { transform: scale(1.07); box-shadow: 0 0 60px rgba(255, 143, 184, 0.8); }
.seal:active { transform: scale(0.96); }
.seal-heart { font-size: 1.9rem; line-height: 1; }
.seal-text { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* password lock */
.lock { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.lock-input {
  width: min(280px, 80vw);
  text-align: center;
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.lock-input::placeholder { color: var(--text-dim); letter-spacing: 0.12em; opacity: 0.7; }
.lock-input:focus { border-color: var(--rose); background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 4px rgba(255, 143, 184, 0.18); }
.lock.error .lock-input { border-color: #ff7a7a; box-shadow: 0 0 0 4px rgba(255, 122, 122, 0.18); animation: shake 0.4s ease; }
.lock-hint {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: color 0.25s;
}
.lock-hint.wrong { color: #ff9a9a; }

/* ============ MUSIC TOGGLE ============ */
.music-toggle {
  position: fixed; top: 18px; right: 18px;
  z-index: 950;
  width: 48px; height: 48px;
  border-radius: 50% !important;
  color: var(--rose-soft);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.25s, color 0.25s;
}
.music-toggle:hover { transform: scale(1.08); }
.music-toggle.playing { color: var(--gold); }
.music-toggle.playing .music-icon { animation: spin 3s linear infinite; display: inline-block; }

/* ============ SITE ============ */
.site { position: relative; z-index: 2; opacity: 0; transition: opacity 1s ease 0.15s; }
body.opened .site { opacity: 1; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}
.kicker {
  letter-spacing: 0.4em; text-transform: uppercase;
  font-size: 0.72rem; color: var(--rose-soft); margin-bottom: 1.2rem;
}
.greeting {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.hero-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.6rem, 14vw, 8.5rem);
  line-height: 0.98; letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  color: var(--text-dim);
  max-width: 28ch; margin-bottom: 3rem;
}

/* live counter */
.counter {
  display: flex;
  gap: clamp(0.6rem, 3vw, 1.6rem);
  padding: 1.4rem clamp(1rem, 4vw, 2.4rem);
  margin-bottom: 1.1rem;
}
.counter-block { display: flex; flex-direction: column; align-items: center; min-width: 58px; position: relative; z-index: 1; }
.counter-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.counter-label {
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 0.5rem;
}
.counter-caption { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--text-dim); margin-bottom: 1rem; }
.milestone {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  margin-bottom: 3rem;
}
.milestone.party { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 18px rgba(243, 217, 166, 0.4); }
.scroll-cue {
  text-decoration: none; color: var(--rose-soft);
  font-size: 1.5rem; width: 48px; height: 48px;
  border: 1px solid var(--glass-border); border-radius: 50%;
  display: grid; place-items: center;
  animation: bob 2s ease-in-out infinite;
  transition: background 0.25s, color 0.25s;
}
.scroll-cue:hover { background: rgba(255, 255, 255, 0.1); }

/* ============ SECTIONS ============ */
.section { max-width: 1040px; margin: 0 auto; padding: 7rem 1.5rem; text-align: center; }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--rose-soft); margin-bottom: 0.2rem; }
.section-title {
  font-family: var(--serif);
  font-weight: 500; font-style: italic;
  font-size: clamp(2.3rem, 7vw, 4rem);
  margin-bottom: 3rem; letter-spacing: 0.5px;
}
.section-hint { color: var(--text-dim); margin-top: -2rem; margin-bottom: 2.6rem; font-size: 0.85rem; }
.section-hint code { background: rgba(255, 255, 255, 0.1); padding: 0.1em 0.45em; border-radius: 6px; }

/* ============ BENTO ============ */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; text-align: left; }
.bento-item {
  padding: 2.2rem;
  display: flex; flex-direction: column; gap: 1rem;
  font-size: 1.1rem; color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.bento-item.wide { grid-column: span 2; }
.bento-item:hover { transform: translateY(-6px); border-color: var(--rose); box-shadow: 0 18px 50px rgba(255, 143, 184, 0.2); }
.bento-item p { position: relative; z-index: 1; color: var(--text-dim); }
.num { font-family: var(--serif); font-size: 2rem; color: var(--rose-soft); opacity: 0.85; position: relative; z-index: 1; }

/* ============ TIMELINE ============ */
.timeline { display: flex; flex-direction: column; gap: 1.4rem; max-width: 680px; margin: 0 auto; text-align: left; }
.timeline-item { position: relative; padding: 1.8rem 2rem 1.8rem 2.6rem; }
.timeline-dot {
  position: absolute; left: -8px; top: 2rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 18px 3px rgba(255, 143, 184, 0.85);
}
.tl-date { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold); position: relative; z-index: 1; }
.timeline-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin: 0.2rem 0 0.5rem; position: relative; z-index: 1; }
.timeline-item p { color: var(--text-dim); position: relative; z-index: 1; }
.firsts { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.9rem; position: relative; z-index: 1; }
.firsts li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.firsts li::before {
  content: "♥";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--rose);
  font-size: 0.9rem;
}
.firsts strong { color: var(--text); font-weight: 500; }

/* ============ GALLERY ============ */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.photo { overflow: hidden; padding: 0; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.photo:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(255, 143, 184, 0.22); }
.photo img { width: 100%; height: 290px; object-fit: cover; display: block; position: relative; z-index: 1; }
.photo figcaption { padding: 1rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--text-dim); position: relative; z-index: 1; }
.photo.empty { min-height: 290px; display: grid; place-items: center; }
.photo.empty img { display: none; }
.photo.empty::before { content: "♡ add a photo"; color: var(--text-dim); font-family: var(--serif); font-style: italic; font-size: 1.3rem; position: relative; z-index: 1; }

/* ============ ENVELOPE LETTER ============ */
.envelope { --w: 360px; --h: 230px; position: relative; width: var(--w); height: var(--h); margin: 1rem auto 0; cursor: pointer; transition: transform 0.3s ease; }
.envelope:hover { transform: translateY(-4px); }
.env-back { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(135deg, rgba(255,143,184,0.4), rgba(176,106,200,0.4)); border: 1px solid var(--glass-border); }
.env-letter {
  position: absolute; left: 7%; right: 7%; bottom: 12px;
  padding: 1.6rem 1.4rem; text-align: center;
  transition: transform 0.85s cubic-bezier(.2,.8,.2,1), max-height 0.85s ease, opacity 0.5s ease;
  transform: translateY(0); z-index: 2; max-height: 84%; overflow: hidden;
  opacity: 0;
}
.letter-text { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; line-height: 1.75; white-space: pre-line; color: var(--text); position: relative; z-index: 1; }
.letter-text.typing::after {
  content: "▋";
  margin-left: 1px;
  color: var(--rose-soft);
  animation: caret-blink 0.8s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.letter-sign { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--rose-soft); margin-top: 1rem; position: relative; z-index: 1; }
.env-front {
  position: absolute; inset: 0; border-radius: 10px; z-index: 3;
  background: linear-gradient(135deg, #d98ab5, #a86fc4);
  clip-path: polygon(0 38%, 50% 100%, 100% 38%, 100% 100%, 0 100%);
}
.env-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 62%;
  background: linear-gradient(135deg, #e6a3c6, #b681d6);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transition: transform 0.6s ease, z-index 0.6s;
  z-index: 4; border-radius: 10px 10px 0 0;
}
.envelope.open { height: 480px; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .env-letter { transform: translateY(-58%); max-height: none; height: auto; z-index: 5; opacity: 1; transition-delay: 0s, 0s, 0.3s; }

/* ============ GIFT BOX ============ */
.giftbox { --s: 160px; position: relative; width: var(--s); height: var(--s); margin: 0 auto; cursor: pointer; }
.gift-glow {
  position: absolute; inset: -30%;
  background: radial-gradient(circle, rgba(243,217,166,0.5), transparent 65%);
  opacity: 0; transition: opacity 0.6s ease;
}
.giftbox.open .gift-glow { opacity: 1; }
.gift-body { position: absolute; bottom: 0; left: 8%; width: 84%; height: 68%; border-radius: 8px; background: linear-gradient(135deg, rgba(255,143,184,0.85), rgba(176,106,200,0.85)); border: 1px solid var(--glass-border); }
.gift-lid { position: absolute; top: 14%; left: 0; width: 100%; height: 26%; border-radius: 8px; background: linear-gradient(135deg, rgba(255,160,196,0.95), rgba(199,155,255,0.9)); z-index: 3; transition: transform 0.5s ease, opacity 0.5s ease; }
.gift-ribbon { position: absolute; top: 14%; left: 44%; width: 12%; height: 86%; background: var(--gold); z-index: 4; box-shadow: 0 0 14px rgba(243,217,166,0.7); transition: opacity 0.5s ease; }
.giftbox:hover { animation: jiggle 0.5s ease; }
.giftbox.open .gift-lid { transform: translateY(-70px) rotate(-12deg); opacity: 0; }
.giftbox.open .gift-ribbon { opacity: 0; }
.gift-reveal {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--rose-soft); max-width: 24ch; margin: 2.4rem auto 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.gift-reveal.show { opacity: 1; transform: none; }

/* ============ FOOTER ============ */
.footer { text-align: center; padding: 5rem 1.5rem 4rem; color: var(--text-dim); }
.footer-mark { color: var(--rose); font-size: 1.6rem; margin-bottom: 0.6rem; }
.footer p:last-child { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; }

/* ============ SIDE NAV DOTS ============ */
.dots {
  position: fixed;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: 940;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
body.opened .dots { opacity: 1; pointer-events: auto; }
.dot {
  position: relative;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--glass-border);
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.dot:hover { transform: scale(1.3); background: var(--rose-soft); }
.dot.active {
  background: var(--rose);
  box-shadow: 0 0 12px 2px rgba(255, 143, 184, 0.7);
}
.dot::after {
  content: attr(data-label);
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(20, 10, 31, 0.7);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.dot:hover::after { opacity: 1; }

/* ============ REPLAY (lock again) BUTTON ============ */
.replay {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.replay:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); transform: translateY(-2px); }

/* ============ CLICK HEARTS ============ */
.click-heart {
  position: fixed;
  z-index: 930;
  pointer-events: none;
  font-size: 1.2rem;
  transform: translate(-50%, -50%);
  animation: float-heart 1.1s ease-out forwards;
}
@keyframes float-heart {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -180%) scale(1.3); }
}

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ KEYFRAMES ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 40px rgba(255,143,184,0.5), inset 0 2px 8px rgba(255,255,255,0.3); } 50% { box-shadow: 0 0 64px rgba(255,143,184,0.85), inset 0 2px 8px rgba(255,255,255,0.3); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes jiggle { 0%,100%{transform:rotate(0);} 25%{transform:rotate(-5deg);} 75%{transform:rotate(5deg);} }
@keyframes shake { 0%,100%{transform:translateX(0);} 20%{transform:translateX(-9px);} 40%{transform:translateX(8px);} 60%{transform:translateX(-6px);} 80%{transform:translateX(4px);} }

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item.wide { grid-column: span 1; }
  .counter { gap: 0.5rem; }
  .envelope { --w: 300px; }
  .dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .shimmer { -webkit-text-fill-color: var(--rose-soft); }
}

/* ============ WARP BUTTON ============ */
.warp-btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--rose), var(--violet));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 1rem 2.4rem;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 143, 184, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: pulse 2.6s ease-in-out infinite;
}
.warp-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 50px rgba(255, 143, 184, 0.7); }
.warp-btn:active { transform: scale(0.97); }

/* ============ COSMOS OVERLAY ============ */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #05020c;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.cosmos.show { opacity: 1; visibility: visible; }
.cosmos canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.cosmos-ui {
  position: absolute;
  left: 0; right: 0; top: 7%;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 0.3s;
  padding: 0 1.5rem;
}
.cosmos.arrived .cosmos-ui { opacity: 1; }
.cosmos-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  background: linear-gradient(100deg, #fff, var(--rose-soft) 50%, var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cosmos-sub { font-family: var(--serif); font-size: clamp(1rem, 3vw, 1.4rem); color: var(--text-dim); margin-top: 0.6rem; }

/* floating word bubbles */
.orbits { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease 0.5s; }
.cosmos.arrived .orbits { opacity: 1; }
.orb {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 200, 230, 0.30), rgba(199, 155, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(255, 143, 184, 0.30);
  animation: orb-float ease-in-out infinite alternate;
}
@keyframes orb-float {
  from { transform: translate(-50%, -50%); }
  to   { transform: translate(-50%, calc(-50% - 16px)); }
}

.cosmos-back {
  position: absolute;
  left: 50%; bottom: 6%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease 0.6s, background 0.25s, transform 0.25s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cosmos.arrived .cosmos-back { opacity: 1; }
.cosmos-back:hover { background: rgba(255, 255, 255, 0.18); }

/* ============ COSMOS 3D POLISH ============ */
.cosmos canvas { z-index: 0; cursor: grab; touch-action: none; }
.cosmos canvas:active { cursor: grabbing; }
.cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 52%, transparent 52%, rgba(0, 0, 0, 0.55) 100%);
}
.cosmos-ui, .cosmos-hint, .cosmos-back { z-index: 3; }

.cosmos-hint {
  position: absolute;
  left: 50%; bottom: 15%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-soft);
  opacity: 0;
  text-shadow: 0 0 12px rgba(255, 143, 184, 0.6);
  pointer-events: none;
}
.cosmos.arrived .cosmos-hint { animation: hint-pulse 2.4s ease-in-out infinite; }
.cosmos.arrived .cosmos-hint.gone { animation: none; opacity: 0; transition: opacity 0.6s ease; }
@keyframes hint-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.95; } }
