/* ═══════════════════════════════════════════
   BLOSSOM AWAITS · FULL STYLESHEET
   Dark rose · Japanese editorial · Fireflies
════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&family=Pacifico&display=swap');

/* Tiempos fallback via Georgia italic — matches feel */
.tiempos {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --rose:       #e8547a;
  --rose-light: #f7c5d3;
  --rose-deep:  #b03060;
  --ink:        #0d0208;
  --ink-2:      #1a0510;
  --card-bg:    rgba(10, 2, 7, 0.58);
  --border:     rgba(232, 84, 122, 0.2);
  --border-h:   rgba(232, 84, 122, 0.45);
  --text-dim:   rgba(247, 197, 211, 0.45);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink);
  /* Adds a massive, faint pink glow behind the center of the screen */
  background-image: radial-gradient(circle at 50% 40%, rgba(232, 84, 122, 0.12) 0%, transparent 65%);
  color: var(--rose-light);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* ── Canvas ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Nav & Logo ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  background: linear-gradient(to bottom, rgba(13,2,8,0.85) 0%, transparent 100%);
}
.site-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.nav-links { display: flex; gap: 2rem; }
.nav-link {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 0.5px;
  background: var(--rose);
  transition: width 0.35s;
}
.nav-link:hover, .nav-link.active { color: var(--rose-light); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── Sections ── */
.section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}

/* ── Home content ── */
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

/* ── Barbie tag (Re-styled based on the image) ── */
.barbie-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) both;
}
.barbie-text {
  font-family: 'Fredoka', sans-serif;
  font-size:2rem;
  line-height:1.8;
  color:#e8dce1;
}

/* ── Card ── */
.card {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 3.5rem 3rem;
  border-radius: 2px;
  border: 0.5px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(247,197,211,0.06);
  animation: fadeUp 1.2s 0.1s cubic-bezier(0.16,1,0.3,1) both;
}
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--rose);
  border-style: solid;
  opacity: 0.4;
}
.card::before { top:-1px; left:-1px; border-width: 1px 0 0 1px; }
.card::after  { bottom:-1px; right:-1px; border-width: 0 1px 1px 0; }

@keyframes fadeUp {
  from { opacity:0; transform: translateY(22px); }
  to   { opacity:1; transform: translateY(0); }
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.7;
  margin-bottom: 1rem;
}
.title {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}
.subtitle {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose-light);
  opacity: 0.4;
  margin-bottom: 2.5rem;
}
.divider-line {
  width: 36px;
  height: 0.5px;
  background: var(--border);
  margin: 0 auto 2.5rem;
}

/* countdown grid */
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  margin-bottom: 2rem;
}
.unit {
  background: rgba(8,2,5,0.6);
  padding: 1.5rem 0.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
  transition: color 0.3s;
}
.unit:hover .num { color: var(--rose-light); }
.lbl {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.6;
}
.date-line {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--rose-light);
  opacity: 0.4;
}
.date-line span { opacity:1; color: var(--rose-light); }

/* cel */
.cel-title { font-family: 'DM Serif Display',serif; font-style:italic; font-size:2.4rem; color:#fff; }
.cel-sub { font-size:11px; letter-spacing:4px; text-transform:uppercase; color:var(--rose); opacity:0.7; }

/* scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.3s;
  animation: fadeUp 1.2s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.scroll-hint:hover { opacity: 0.7; }
.scroll-hint span { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; }
.scroll-arrow {
  font-size: 1rem;
  animation: bounce-arrow 2s ease-in-out infinite;
}
@keyframes bounce-arrow {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ══════════════════════════════════════
   MEMORIES SECTION
══════════════════════════════════════ */
.section-memories {
  gap: 3rem;
  padding-top: 7rem;
}
.mem-header { text-align: center; }
.mem-title {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  color: #fff;
  line-height: 1;
  margin: 0.5rem 0 0.6rem;
}
.mem-sub {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

/* vinyl row */
.vinyl-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0 3rem;
}

/* individual vinyl */
.vinyl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.vinyl-item.locked { cursor: default; }

.vinyl-disk {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    #3a0a22 0%, #1f0515 40%, #0d0208 70%, #1a0510 100%);
  box-shadow:
    0 0 0 2px rgba(232,84,122,0.25),
    0 8px 32px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(247,197,211,0.1);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease;
  overflow: hidden;
}
.vinyl-item.unlocked:hover .vinyl-disk {
  transform: scale(1.08) rotate(8deg);
  box-shadow:
    0 0 0 2px rgba(232,84,122,0.5),
    0 16px 48px rgba(232,84,122,0.2),
    inset 0 1px 0 rgba(247,197,211,0.15);
}
.vinyl-item.unlocked .vinyl-disk {
  animation: vinyl-spin 8s linear infinite paused;
}
.vinyl-item.unlocked:hover .vinyl-disk {
  animation-play-state: running;
}
@keyframes vinyl-spin {
  from { transform: rotate(0deg) scale(1.08); }
  to   { transform: rotate(360deg) scale(1.08); }
}

/* grooves */
.vinyl-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0px,
    transparent 6px,
    rgba(255,255,255,0.025) 6px,
    rgba(255,255,255,0.025) 7px
  );
}

/* label center */
.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #e8547a 0%, #a02048 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(232,84,122,0.5);
}
.vl-num  { font-size: 9px; font-weight: 700; color: #fff; line-height:1; }
.vl-name { font-size: 5px; letter-spacing: 1px; color: rgba(255,255,255,0.75); text-align:center; }

/* locked disk */
.locked-disk {
  filter: saturate(0) brightness(0.4);
}
.lock-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 1.4rem;
  opacity: 0.5;
}

/* vinyl shine */
.vinyl-shine {
  position: absolute;
  top: 8px; left: 12px;
  width: 30px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transform: rotate(-30deg);
  pointer-events: none;
}

.vinyl-caption {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.vinyl-unlock-badge {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
  border: 0.5px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
}
.vinyl-item.unlocked:hover .vinyl-unlock-badge {
  background: var(--rose);
  color: #fff;
}
.locked-badge {
  color: var(--text-dim);
  border-color: rgba(247,197,211,0.1);
}

/* ══════════════════════════════════════
   MEMORY MODAL
══════════════════════════════════════ */
.memory-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,1,4,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, background 0.5s ease;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.memory-overlay.open {
  opacity: 1;
  pointer-events: all;
  background: rgba(5,1,4,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.memory-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(12,3,8,0.88);
  border: 0.5px solid var(--border-h);
  border-radius: 2px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(232,84,122,0.1);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.memory-overlay.open .memory-modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: 0.5px solid var(--border);
  color: var(--text-dim);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  display: flex; align-items:center; justify-content:center;
  transition: border-color 0.3s, color 0.3s;
}
.modal-close:hover { border-color: var(--rose); color: var(--rose-light); }

/* photo frame */
.modal-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1px;
}
.modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: photo-reveal 0.8s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes photo-reveal {
  from { transform: scale(1.06); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
/* corner marks on photo */
.photo-corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: #fff;
  border-style: solid;
  opacity: 0.5;
}
.photo-corner.tl { top:8px;    left:8px;    border-width: 1px 0 0 1px; }
.photo-corner.tr { top:8px;    right:8px;   border-width: 1px 1px 0 0; }
.photo-corner.bl { bottom:8px; left:8px;    border-width: 0 0 1px 1px; }
.photo-corner.br { bottom:8px; right:8px;   border-width: 0 1px 1px 0; }

/* modal text */
.modal-text { text-align: left; }
.modal-eyebrow {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.7;
  margin-bottom: 0.4rem;
}
.modal-title {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.modal-caption {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* music bar */
.modal-music {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(232,84,122,0.06);
  border: 0.5px solid var(--border);
  border-radius: 1px;
}
.music-info { display: flex; align-items: center; gap: 0.5rem; }
.music-note { font-size: 0.9rem; color: var(--rose); }
.music-name { font-size: 10px; letter-spacing: 2px; color: var(--text-dim); }
.music-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.mb {
  width: 3px;
  border-radius: 2px;
  background: var(--rose);
  opacity: 0.6;
}
/* animated only when modal is open */
.memory-overlay.open .mb:nth-child(1) { animation: eq 0.6s 0.0s ease-in-out infinite alternate; }
.memory-overlay.open .mb:nth-child(2) { animation: eq 0.8s 0.1s ease-in-out infinite alternate; }
.memory-overlay.open .mb:nth-child(3) { animation: eq 0.5s 0.05s ease-in-out infinite alternate; }
.memory-overlay.open .mb:nth-child(4) { animation: eq 0.9s 0.15s ease-in-out infinite alternate; }
.memory-overlay.open .mb:nth-child(5) { animation: eq 0.65s 0.08s ease-in-out infinite alternate; }
@keyframes eq {
  from { height: 3px; }
  to   { height: 13px; }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .card { padding: 2.5rem 1.4rem; }
  .unit { padding: 1.1rem 0.3rem 0.9rem; }
  .vinyl-row { gap: 1.2rem; }
  .vinyl-disk { width: 105px; height: 105px; }
  .nav { padding: 1rem 1.2rem; }
  .memory-modal { padding: 2rem 1.2rem 1.5rem; }
}

/* Modern minimal refinements */
:root{
 --card-bg:rgba(16,10,15,.45);
}
.card,.memory-modal,.game-card{
 border-radius:20px;
 border:1px solid rgba(255,255,255,.08);
 backdrop-filter:blur(24px);
}
/* ═══════════════════════════════════════
   THINGS I LOVE ABOUT YOU SECTION
════════════════════════════════════════ */
.section-love {
  gap: 3rem;
  padding-top: 7rem;
  overflow: hidden;
}

.love-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.love-track-outer {
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
}

.love-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.love-card {
  flex: 0 0 calc(50% - 0.75rem);
  min-height: 260px;
  padding: 2.4rem 2rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.love-card:hover {
  border-color: rgba(232,84,122,0.3);
  box-shadow: 0 12px 40px rgba(232,84,122,0.12);
}
.love-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,84,122,0.4), transparent);
}

.love-num {
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.6;
  font-family: 'DM Sans', sans-serif;
}

.love-icon {
  font-size: 2rem;
  line-height: 1;
}

.love-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--rose-light);
  opacity: 0.8;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.2px;
  flex: 1;
}

.love-nav {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(232,84,122,0.25);
  background: rgba(10,2,7,0.5);
  color: var(--rose-light);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
  z-index: 2;
}
.love-nav:hover {
  border-color: var(--rose);
  background: rgba(232,84,122,0.15);
}
.love-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.love-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.love-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(247,197,211,0.25);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.love-dot.active {
  background: var(--rose);
  transform: scale(1.4);
}

@media (max-width: 600px) {
  .love-card {
    flex: 0 0 100%;
    min-height: 220px;
  }
  .love-carousel-wrap { gap: 0.3rem; }
  .love-nav { width: 34px; height: 34px; font-size: 1.1rem; }
}

/* ═══════════════════════════════════════
   GAMES SECTION
══════════════════════════════════════ */

.section-games{
  gap:3rem;
}

.game-card{
  width:100%;
  max-width:700px;
  padding:2rem;
  border-radius:24px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(20px);
}

.sakura-board{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.memory-card{
  aspect-ratio:1;
  perspective:1000px;
  cursor:pointer;
}

.memory-card-inner{
  width:100%;
  height:100%;
  position:relative;
  transform-style:preserve-3d;
  transition:transform .7s cubic-bezier(.22,1,.36,1);
}

.memory-card.flipped .memory-card-inner{
  transform:rotateY(180deg);
}

.memory-card-front,
.memory-card-back{
  position:absolute;
  inset:0;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:20px;

  backface-visibility:hidden;

  font-size:2.4rem;

  background:rgba(255,255,255,.04);

  border:1px solid rgba(255,255,255,.08);

  backdrop-filter:blur(20px);
}

.memory-card-front{
  color:var(--rose-light);
}

.memory-card-back{
  transform:rotateY(180deg);

  background:linear-gradient(
    135deg,
    rgba(232,84,122,.25),
    rgba(255,255,255,.03)
  );

  box-shadow:0 10px 30px rgba(232,84,122,.15);
}

.memory-card:hover{
  transform:translateY(-4px);
}

.memory-card.matched{
  opacity:.7;
}

.memory-card.matched .memory-card-back{
  box-shadow:
    0 0 25px rgba(232,84,122,.4);
}

.game-actions{
  display:flex;
  justify-content:center;
  margin-top:1.5rem;
}

.game-actions button{
  background:rgba(232,84,122,.15);
  color:white;
  border:1px solid rgba(232,84,122,.3);
  padding:.85rem 1.4rem;
  border-radius:999px;
  cursor:pointer;
  transition:.3s;
}

.game-actions button:hover{
  background:rgba(232,84,122,.3);
}


/* ═══════════════════════════════════════
   TIME CAPSULE SECTION
════════════════════════════════════════ */
.section-capsule {
  gap: 2rem;
  padding-top: 7rem;
}
.capsule-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.envelope-wrapper:hover {
  transform: scale(1.05);
}
.envelope {
  position: relative;
  width: 180px;
  height: 120px;
  background: rgba(232, 84, 122, 0.15);
  border: 1px solid var(--border-h);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 15px rgba(232,84,122,0.1);
}
/* Envelope flap illusion */
.envelope::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  clip-path: polygon(0 0, 50% 50%, 100% 0);
  background: rgba(247, 197, 211, 0.05);
}
.envelope-lock {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(232,84,122,0.8));
  z-index: 2;
}
.envelope-hint {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: pulse-hint 2s infinite;
}
@keyframes pulse-hint {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; color: var(--rose-light); }
}

/* Shake Animation for premature clicks */
.shake {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}

/* Toast Message */
.capsule-toast {
  position: absolute;
  top: -45px;
  background: var(--rose);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 5px 15px rgba(232,84,122,0.4);
  z-index: 10;
}
.capsule-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* The Revealed Letter */
.capsule-letter {
  background: rgba(10, 2, 7, 0.7);
  border: 0.5px solid var(--border-h);
  padding: 3rem 2.5rem;
  border-radius: 2px;
  text-align: left;
  animation: fadeUp 1s ease both;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  max-width: 100%;
}
.capsule-letter h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.letter-text {
  color: var(--rose-light);
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.8;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.5px;
}


/* ── Floating Smile Button ── */
#smile-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(30, 10, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(212, 83, 126, 0.4), 0 0 0 0 rgba(212,83,126,0.3);
  font-size: 1.5rem;
  cursor: pointer;
  animation: btn-pulse 2.8s ease-in-out infinite;
  transition: transform 0.2s ease;
}
#smile-btn:hover { transform: scale(1.12); }

@keyframes btn-pulse {
  0%,100% { box-shadow: 0 4px 24px rgba(212,83,126,0.4), 0 0 0 0 rgba(212,83,126,0.25); }
  50%      { box-shadow: 0 4px 32px rgba(212,83,126,0.6), 0 0 0 12px rgba(212,83,126,0); }
}

/* ── Full-screen dramatic overlay ── */
.fw-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 4, 14, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
  align-items: center;
  justify-content: center;
}
.fw-overlay.active {
  display: flex;
  background: rgba(10, 4, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fw-bg-in 0.5s ease forwards;
}
@keyframes fw-bg-in {
  from { background: rgba(10,4,14,0); backdrop-filter: blur(0px); }
  to   { background: rgba(10,4,14,0.72); backdrop-filter: blur(12px); }
}

/* ── Fireworks canvas sits behind the message ── */
#fw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Message card ── */
.fw-message {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 3.5rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 60px rgba(212, 83, 126, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);

  opacity: 0;
  transform: translateY(18px) scale(0.95);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1) 0.3s,
              transform 0.65s cubic-bezier(.22,1,.36,1) 0.3s;
}
.fw-overlay.active .fw-message {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fw-message-eyebrow {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 197, 211, 0.65);
  margin-bottom: 1.1rem;
}

.fw-message-main {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(212, 83, 126, 0.5);
  margin-bottom: 0.5rem;
}

.fw-message-hearts {
  display: block;
  font-size: 1.5rem;
  margin-top: 1.2rem;
  animation: hearts-float 2s ease-in-out infinite;
}
@keyframes hearts-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* ── Dismiss hint ── */
.fw-dismiss {
  display: block;
  margin-top: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
/* ═══════════════════════════════════════
   BIRTHDAY VERSION ADDITIONS
   ═══════════════════════════════════════ */

.bday-hearts {
  font-size: 1.8rem;
  letter-spacing: 0.5rem;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cel-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--rose-dark, #c0446e);
  text-align: center;
}

.cel-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--text-soft, #a0607e);
  text-align: center;
}

/* Capsule open state */
.capsule-letter.capsule-open {
  display: block !important;
  animation: fadeInUp 0.8s ease forwards;
}

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

/* Birthday video */
.bday-video-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bday-video {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  border: 2px solid rgba(224, 84, 142, 0.25);
  box-shadow: 0 8px 32px rgba(224, 84, 142, 0.15);
  background: #000;
}

.bday-play-btn {
  background: linear-gradient(135deg, #e0548e, #c0446e);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.65rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bday-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 84, 142, 0.35);
}
