/* ==========================================================
   Harsha & Varun — stylesheet
   Palette: blush, cream, muted rose, warm off-white, deep plum
   ========================================================== */

:root {
  --cream: #fbf5ee;
  --cream-warm: #f6ede1;
  --blush: #f3d9d3;
  --blush-deep: #e8b8b0;
  --rose: #c98880;
  --rose-deep: #a45e5b;
  --plum: #4a2a34;
  --ink: #2c1a20;
  --ink-soft: #5a4249;
  --gold: #b88a5e;

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", cursive;

  --maxw: 1100px;
  --radius: 14px;
  --shadow-soft: 0 8px 30px rgba(74, 42, 52, 0.08);
  --shadow-lift: 0 14px 50px rgba(74, 42, 52, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft paper texture overlay with floating hearts and stars */
.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><g fill='%23c98880' fill-opacity='0.09'><path d='M30 40 c-3-4-7-4-9 0 c-2 3 0 7 9 14 c9-7 11-11 9-14 c-2-4-6-4-9 0z'/><path d='M160 80 c-2-3-5-3-6.5 0 c-1.5 2 0 5 6.5 10 c6.5-5 8-8 6.5-10 c-1.5-3-4.5-3-6.5 0z'/><path d='M90 160 c-2.5-3.5-6-3.5-7.5 0 c-1.5 2.5 0 5.5 7.5 11 c7.5-5.5 9-8.5 7.5-11 c-1.5-3.5-5-3.5-7.5 0z'/><path d='M185 180 c-2-2.5-4.5-2.5-5.5 0 c-1 1.8 0 4 5.5 8 c5.5-4 6.5-6.2 5.5-8 c-1-2.5-3.5-2.5-5.5 0z'/><path d='M50 190 l2 4 l4 0.5 l-3 3 l0.8 4.3 l-3.8-2 l-3.8 2 l0.8-4.3 l-3-3 l4-0.5z'/><path d='M140 30 l1.5 3 l3 0.4 l-2.2 2.2 l0.6 3.2 l-2.9-1.5 l-2.9 1.5 l0.6-3.2 l-2.2-2.2 l3-0.4z'/><path d='M200 120 l1.5 3 l3 0.4 l-2.2 2.2 l0.6 3.2 l-2.9-1.5 l-2.9 1.5 l0.6-3.2 l-2.2-2.2 l3-0.4z'/><path d='M20 110 l1.2 2.5 l2.7 0.3 l-2 2 l0.5 2.7 l-2.4-1.3 l-2.4 1.3 l0.5-2.7 l-2-2 l2.7-0.3z'/><path d='M115 115 l1.2 2.5 l2.7 0.3 l-2 2 l0.5 2.7 l-2.4-1.3 l-2.4 1.3 l0.5-2.7 l-2-2 l2.7-0.3z'/></g></svg>");
  background-repeat: repeat;
}

.paper-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      ellipse at top,
      rgba(243, 217, 211, 0.25),
      transparent 60%
    ),
    radial-gradient(
      ellipse at bottom right,
      rgba(201, 136, 128, 0.15),
      transparent 50%
    );
  mix-blend-mode: multiply;
}

/* ==========================
   Shared header styles
   ========================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.eyebrow,
.hero-eyebrow,
.letter-eyebrow,
.closing-eyebrow {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--rose);
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--plum);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ==========================
   Hero
   ========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--cream-warm) 0%,
    var(--cream) 50%,
    #f9ede6 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  animation: fadeUp 1.2s ease both;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 11vw, 7rem);
  line-height: 1;
  color: var(--plum);
  margin: 0.5rem 0 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1s ease forwards;
}

.hero-title .line:nth-child(1) {
  animation-delay: 0.3s;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.6s;
  font-style: italic;
  color: var(--rose);
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 auto 2rem;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-counter {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--rose-deep);
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--rose);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 1.3s forwards;
  transition: color 0.3s;
}

.hero-scroll:hover {
  color: var(--plum);
}

.hero-scroll .arrow {
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}

/* Floating petals */
.hero-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-petals::before,
.hero-petals::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--blush-deep);
  border-radius: 76% 24% 62% 38% / 50% 70% 30% 50%;
  opacity: 0.5;
  animation: float 18s linear infinite;
}

.hero-petals::before {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.hero-petals::after {
  top: 60%;
  right: 20%;
  width: 10px;
  height: 10px;
  animation-delay: -9s;
}

/* ==========================
   Letter
   ========================== */
.letter {
  padding: 7rem 1.5rem;
  background: var(--cream);
  position: relative;
  z-index: 2;
}

.letter-inner {
  max-width: 680px;
  margin: 0 auto;
  background: #fffaf3;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.letter-inner::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 40px;
  right: 40px;
  height: 16px;
  background: var(--blush);
  border-radius: 8px;
  opacity: 0.6;
  z-index: -1;
}

.letter-eyebrow {
  text-align: center;
  margin-bottom: 2rem;
}

.letter-body {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink);
  line-height: 1.8;
}

.letter-body p {
  margin: 0 0 1.3rem;
}

.letter-body em {
  color: var(--rose-deep);
  font-style: italic;
}

.letter-signoff {
  font-family: var(--hand);
  font-size: 1.8rem;
  color: var(--rose-deep);
  margin-top: 2rem !important;
}

/* ==========================
   Timeline
   ========================== */
.timeline {
  padding: 7rem 1.5rem;
  background: linear-gradient(180deg, var(--cream) 0%, #f8ece3 100%);
  position: relative;
  z-index: 2;
}

.timeline-track {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--blush-deep) 10%,
    var(--blush-deep) 90%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 2rem;
  width: 14px;
  height: 14px;
  background: var(--rose);
  border: 3px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--rose);
  z-index: 2;
}

.timeline-item:nth-child(odd)::before {
  right: -7px;
}

.timeline-item:nth-child(even)::before {
  left: -7px;
}

.timeline-card {
  background: #fffaf3;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.timeline-date {
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--rose-deep);
  margin: 0 0 0.3rem;
}

.timeline-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--plum);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

.timeline-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--rose-deep);
  border-left: 2px solid var(--blush-deep);
  padding-left: 0.9rem;
  margin: 0.5rem 0 0;
  text-align: left;
}

.timeline-item:nth-child(odd) .timeline-quote {
  text-align: right;
  border-left: none;
  border-right: 2px solid var(--blush-deep);
  padding-left: 0;
  padding-right: 0.9rem;
}

.timeline-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 10px;
  margin-top: 0.75rem;
  background: var(--blush);
}

.timeline-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.timeline-photo.double {
  height: 180px;
  margin-top: 0;
}

/* ==========================
   Chat replay — WhatsApp style
   ========================== */
.chat-replay {
  padding: 7rem 1.5rem;
  background: var(--cream);
  position: relative;
  z-index: 2;
}

.chat-window {
  max-width: 520px;
  margin: 0 auto;
  /* WhatsApp light-mode beige with subtle doodle pattern */
  background-color: #efe7dd;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='%23d9cfc2' fill-opacity='0.35'><circle cx='20' cy='20' r='1.5'/><circle cx='70' cy='40' r='1.2'/><circle cx='110' cy='25' r='1.4'/><circle cx='40' cy='80' r='1.3'/><circle cx='100' cy='95' r='1.5'/><circle cx='25' cy='120' r='1.2'/><circle cx='85' cy='130' r='1.3'/><path d='M60 60 q3 -4 6 0 q3 -4 6 0 q-3 5 -6 5 q-3 0 -6 -5z'/><path d='M10 95 q2.5 -3 5 0 q2.5 -3 5 0 q-2.5 4 -5 4 q-2.5 0 -5 -4z'/><path d='M115 70 q2.5 -3 5 0 q2.5 -3 5 0 q-2.5 4 -5 4 q-2.5 0 -5 -4z'/></g></svg>");
  background-repeat: repeat;
  border-radius: 22px;
  padding: 1.5rem 1.2rem;
  box-shadow: var(--shadow-soft);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chat-bubble {
  max-width: 78%;
  padding: 0.55rem 0.85rem 0.7rem;
  border-radius: 7.5px;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  word-wrap: break-word;
}

.chat-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Her bubbles — WhatsApp incoming (white) */
.chat-bubble.her {
  align-self: flex-start;
  background: #ffffff;
  color: #111b21;
  border-top-left-radius: 0;
}

.chat-bubble.her::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 10px 0;
  border-color: transparent #ffffff transparent transparent;
}

/* His bubbles — WhatsApp outgoing (green) */
.chat-bubble.him {
  align-self: flex-end;
  background: #d9fdd3;
  color: #111b21;
  border-top-right-radius: 0;
}

.chat-bubble.him::before {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 8px;
  border-color: transparent transparent transparent #d9fdd3;
}

.chat-meta {
  align-self: center;
  background: rgba(225, 245, 254, 0.85);
  color: #54656f;
  font-family: var(--sans);
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  margin: 0.8rem 0 0.3rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.5s, transform 0.5s;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1);
}

.chat-meta:first-child {
  margin-top: 0;
}

.chat-meta.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   Gallery
   ========================== */
.gallery {
  padding: 7rem 1.5rem;
  background: linear-gradient(180deg, var(--cream) 0%, #f6ede1 100%);
  position: relative;
  z-index: 2;
}

.gallery-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--blush);
  aspect-ratio: 3/4;
  transition: transform 0.4s, box-shadow 0.4s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
}

.gallery-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s, transform 0.8s;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card .placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--rose-deep);
  font-family: var(--hand);
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--blush), var(--blush-deep));
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.25rem 1.1rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(74, 42, 52, 0.75) 100%
  );
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-card:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-caption .cap-date {
  display: block;
  font-family: var(--hand);
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* ==========================
   Stats
   ========================== */
.stats {
  padding: 7rem 1.5rem;
  background: #f6ede1;
  position: relative;
  z-index: 2;
}

.stats-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: #fffaf3;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s, transform 0.8s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--rose-deep);
  line-height: 1;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* ==========================
   Closing
   ========================== */
.closing {
  padding: 8rem 1.5rem;
  background: linear-gradient(180deg, #f6ede1 0%, var(--cream-warm) 100%);
  text-align: center;
  position: relative;
  z-index: 2;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--plum);
  margin: 0.5rem 0 1.5rem;
}

.closing-body {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.closing-sign {
  font-family: var(--hand);
  font-size: 2rem;
  color: var(--rose-deep);
  margin-top: 2rem;
}

/* ==========================
   Footer
   ========================== */
.site-footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--cream-warm);
  color: var(--ink-soft);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-date {
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--rose);
}

/* ==========================
   Reveal animations
   ========================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg);
    opacity: 0;
  }
}

/* ==========================
   Mobile
   ========================== */
@media (max-width: 720px) {
  .timeline-track::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    left: 13px;
    right: auto;
  }

  .timeline-item:nth-child(odd) .timeline-quote {
    text-align: left;
    border-left: 2px solid var(--blush-deep);
    border-right: none;
    padding-left: 0.9rem;
    padding-right: 0;
  }

  .letter-inner {
    padding: 2rem 1.5rem;
  }

  .letter {
    padding: 5rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}


/* ==========================
   Password Gate — heart lock
   ========================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    var(--cream-warm) 0%,
    #f5dcd3 50%,
    var(--blush) 100%
  );
  padding: 2rem 1.5rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.gate.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-inner {
  text-align: center;
  max-width: 440px;
  width: 100%;
  animation: fadeUp 1s ease both;
}

.gate-lock {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
  animation: heartbeat 2.5s ease-in-out infinite;
}

.gate-heart {
  width: 100%;
  height: 100%;
  fill: var(--rose);
  filter: drop-shadow(0 8px 24px rgba(164, 94, 91, 0.35));
  transition: fill 0.4s;
}

.gate-keyhole {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 24px;
  background: var(--cream);
  border-radius: 50% 50% 10% 10% / 60% 60% 40% 40%;
}

.gate-keyhole::after {
  content: "";
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  background: var(--cream);
}

.gate.shake .gate-lock {
  animation: shake 0.5s;
}

.gate.correct .gate-heart {
  fill: var(--rose-deep);
  animation: burst 0.8s ease forwards;
}

.gate-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--plum);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.gate-sub {
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--rose-deep);
  margin: 0 0 2rem;
}

.gate-form {
  display: flex;
  gap: 0.5rem;
  max-width: 360px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.gate-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 2px solid var(--blush-deep);
  border-radius: 10px;
  background: #fffaf3;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--plum);
  transition: border 0.3s, box-shadow 0.3s;
}

.gate-input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 136, 128, 0.2);
}

.gate-btn {
  padding: 0.85rem 1.5rem;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.gate-btn:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
}

.gate-error {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--rose-deep);
  margin: 1rem 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.gate-error.show {
  opacity: 1;
}

.gate-hint {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--rose-deep);
  opacity: 0.7;
  margin: 1.5rem 0 0;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.08);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.08);
  }
  70% {
    transform: scale(1);
  }
}

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

@keyframes burst {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.25);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1.1);
    opacity: 0.85;
  }
}


/* ==========================
   Music toggle
   ========================== */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--rose);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 6px 20px rgba(164, 94, 91, 0.3);
  transition: transform 0.3s, background 0.3s, opacity 0.4s;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: musicPulse 3s ease-in-out infinite;
}

.music-toggle.ready {
  opacity: 0.85;
}

.music-toggle:hover {
  transform: scale(1.08);
  background: var(--rose-deep);
  opacity: 1;
}

.music-toggle.muted {
  background: var(--ink-soft);
  animation: none;
}

.music-toggle.muted .music-icon::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 2px;
  background: #fff;
  transform: rotate(-45deg);
  border-radius: 1px;
}

.music-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

@keyframes musicPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(164, 94, 91, 0.3);
  }
  50% {
    box-shadow: 0 6px 28px rgba(164, 94, 91, 0.5);
  }
}
