/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple-deep:  #2d0a4e;
  --purple-mid:   #6b21a8;
  --purple-light: #c084fc;
  --silver:       #e2e8f0;
  --silver-shine: #f8fafc;
  --gold:         #d4af6a;
  --text-light:   #f1e9ff;
}

html { scroll-behavior: smooth; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple-light), var(--gold));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a855f7, var(--gold)); }
* { scrollbar-width: thin; scrollbar-color: var(--purple-light) transparent; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--purple-deep);
  color: var(--text-light);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Canvases ── */
#star-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ── Screens ── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, rgba(59,7,100,0.88) 0%, rgba(45,10,78,0.72) 70%);
  z-index: 1;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Screen 1: Ready ── */
.ready-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 700px;
  width: 100%;
}

.ready-sub {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0.6;
  margin-bottom: 1.2rem;
}

.ready-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  background: linear-gradient(135deg, var(--silver-shine), var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  min-height: 2.5em;
}

.hero-portrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  border: 2px solid rgba(192,132,252,0.5);
  box-shadow: 0 0 20px rgba(192,132,252,0.35);
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.cursor {
  display: inline-block;
  -webkit-text-fill-color: var(--purple-light);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Countdown ── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1.2rem;
  flex-wrap: wrap;
}

.cd-unit {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(192,132,252,0.25);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  min-width: 58px;
}
.cd-unit span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--silver-shine);
  line-height: 1;
}
.cd-unit p {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  opacity: 0.7;
  margin-top: 0.3rem;
}
.cd-sep {
  font-size: 1.4rem;
  color: var(--purple-light);
  opacity: 0.45;
  margin-bottom: 1rem;
}

.birthday-msg {
  display: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0.8rem 0 1rem;
  animation: glow 1.5s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 8px rgba(212,175,106,0.4); }
  to   { text-shadow: 0 0 20px rgba(212,175,106,0.9); }
}

.angry-msg {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: #f87171;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.ready-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-yes {
  padding: 0.85rem 2.6rem;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(192,132,252,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-yes:hover { transform: scale(1.06); box-shadow: 0 0 36px rgba(192,132,252,0.7); }
.btn-yes.pulse { animation: pulse 0.6s infinite alternate; }
@keyframes pulse {
  from { box-shadow: 0 0 20px rgba(192,132,252,0.5); }
  to   { box-shadow: 0 0 50px rgba(192,132,252,1); transform: scale(1.08); }
}

.btn-no {
  padding: 0.85rem 2.2rem;
  font-size: 1.1rem;
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(226,232,240,0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-no:hover { color: #f87171; border-color: #f87171; }

/* ── Screen 2: Surprises ── */
.surprises-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 900px;
  width: 100%;
}
.surprises-sub {
  font-size: 0.88rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-light);
  opacity: 0.8;
  margin-bottom: 0.8rem;
}
.surprises-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: var(--silver-shine);
  margin-bottom: 2.5rem;
}

.gift-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Gift Box ── */
.gift-box {
  cursor: pointer;
  text-align: center;
  position: relative;
  width: 130px;
  animation: float 3s ease-in-out infinite;
}
.gift-box:nth-child(2) { animation-delay: 0.4s; }
.gift-box:nth-child(3) { animation-delay: 0.8s; }

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

.gift-icon-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.gift-box:hover .gift-icon-wrap { transform: scale(1.12) rotate(-4deg); }

.gift-emoji {
  font-size: 4rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(192,132,252,0.5));
}

.gift-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,132,252,0.25) 0%, transparent 70%);
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.2); opacity: 1; }
}

/* Stars burst */
.gift-stars { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); pointer-events: none; display: none; }
.gift-stars span { position: absolute; color: var(--gold); font-size: 1rem; opacity: 0; }

.gift-box.opened .gift-emoji { filter: drop-shadow(0 0 16px rgba(192,132,252,0.9)) grayscale(0.3); }
.gift-box.opened .gift-stars { display: block; }
.gift-box.opened .gift-stars span { animation: starBurst 0.7s ease forwards; }
.gift-box.opened .gift-stars span:nth-child(1) { animation-delay: 0.00s; --tx: -44px; --ty: -52px; }
.gift-box.opened .gift-stars span:nth-child(2) { animation-delay: 0.08s; --tx:  44px; --ty: -56px; }
.gift-box.opened .gift-stars span:nth-child(3) { animation-delay: 0.04s; --tx:   0px; --ty: -68px; }
.gift-box.opened .gift-stars span:nth-child(4) { animation-delay: 0.12s; --tx: -58px; --ty: -32px; }
.gift-box.opened .gift-stars span:nth-child(5) { animation-delay: 0.08s; --tx:  58px; --ty: -32px; }
@keyframes starBurst {
  0%   { opacity: 1; transform: translate(0,0) scale(0.5); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.5); }
}
.gift-box.opened .gift-hint { color: var(--gold); opacity: 1; }

.btn-continue {
  margin-top: 2.5rem;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.5s ease, box-shadow 0.2s;
  padding: 0.75rem 2.2rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(192,132,252,0.4);
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-continue.unlocked {
  opacity: 1;
  pointer-events: all;
}
.btn-continue:hover {
  background: rgba(192,132,252,0.12);
  color: var(--silver-shine);
  box-shadow: 0 0 18px rgba(192,132,252,0.3);
}

.cake-screen-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
}

.gift-label { margin-top: 0.8rem; font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--silver-shine); }
.gift-hint  { font-size: 0.72rem; color: var(--purple-light); opacity: 0.7; margin-top: 0.3rem; letter-spacing: 0.1em; transition: color 0.3s; }

/* ── Modals ── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15,3,30,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
  overflow-y: auto;
}
.modal.open { opacity: 1; pointer-events: all; }

.modal-inner {
  background: linear-gradient(160deg, #1e0638, #2d0a4e);
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 820px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none;
  color: var(--purple-light); font-size: 1.3rem;
  cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  text-align: center;
  color: var(--silver-shine);
  margin-bottom: 0.4rem;
}
.modal-title::after {
  content: '';
  display: block;
  width: 50px; height: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--gold));
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
.modal-subtitle {
  text-align: center;
  font-size: 0.82rem;
  color: var(--purple-light);
  opacity: 0.7;
  margin-bottom: 1.8rem;
  letter-spacing: 0.1em;
}

/* ── Photos ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}
.photo-card {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(192,132,252,0.2);
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform 0.3s, box-shadow 0.3s;
}
.photo-card:hover { transform: scale(1.03); box-shadow: 0 8px 28px rgba(107,33,168,0.6); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out; padding: 2rem;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 0 60px rgba(192,132,252,0.3); }

/* ── Envelope ── */
.letter-modal-inner { text-align: center; }
.envelope-wrap { display: flex; justify-content: center; margin: 1rem 0 2rem; }
.envelope { width: 220px; cursor: pointer; transition: transform 0.3s; }
.envelope:hover { transform: scale(1.05); }
.envelope-flap {
  width: 220px; height: 80px;
  background: linear-gradient(160deg, var(--purple-mid), #4c1d95);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  border-radius: 4px 4px 0 0;
  transition: transform 0.5s ease;
  transform-origin: top center;
}
.envelope.opened .envelope-flap { transform: rotateX(180deg); }
.envelope-body {
  width: 220px; height: 140px;
  background: linear-gradient(160deg, #3b0764, var(--purple-mid));
  border-radius: 0 0 10px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(192,132,252,0.3); border-top: none;
}
.envelope-heart { font-size: 2.5rem; }
.envelope-cta { font-size: 0.78rem; color: var(--purple-light); opacity: 0.7; letter-spacing: 0.1em; margin-top: 0.5rem; }

.letter-card {
  display: none;
  text-align: left;
  max-width: 580px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(192,132,252,0.15);
  border-radius: 14px;
  padding: 2.5rem 3rem;
  line-height: 1.9;
  font-size: 1.02rem;
  color: var(--silver);
  animation: fadeInUp 0.6s ease;
}
.letter-card.visible { display: block; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.letter-card p { margin-bottom: 1.3rem; }
.letter-date { font-size: 0.82rem; letter-spacing: 0.15em; color: var(--purple-light); margin-bottom: 1.6rem !important; }
.letter-sign { margin-top: 1.5rem; font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--purple-light); }

/* ── Flip Cards ── */
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.reason-card { height: 150px; perspective: 800px; cursor: pointer; }
.card-inner { width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; position: relative; }
.reason-card.flipped .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute; inset: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backface-visibility: hidden;
}
.card-front { background: linear-gradient(135deg, #3b0764, var(--purple-mid)); border: 1px solid rgba(192,132,252,0.3); font-size: 2rem; }
.card-back  { background: linear-gradient(135deg, var(--purple-mid), #6b21a8); border: 1px solid rgba(212,175,106,0.3); transform: rotateY(180deg); font-size: 0.88rem; color: var(--silver-shine); text-align: center; line-height: 1.5; }

/* ── Timeline ── */
.timeline { position: relative; padding: 0.5rem 0; margin-top: 0.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-light), var(--gold));
  border-radius: 2px;
}
.tl-item { display: flex; gap: 1.4rem; margin-bottom: 2rem; }
.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--purple-light);
  border: 2px solid #1e0638;
  flex-shrink: 0;
  margin-top: 3px;
  box-shadow: 0 0 8px rgba(192,132,252,0.6);
}
.tl-dot-gold { background: var(--gold); box-shadow: 0 0 10px rgba(212,175,106,0.7); }
.tl-content { flex: 1; }
.tl-date  { font-size: 0.76rem; letter-spacing: 0.12em; color: var(--purple-light); margin-bottom: 0.25rem; }
.tl-title { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--silver-shine); margin-bottom: 0.35rem; }
.tl-text  { font-size: 0.88rem; color: var(--silver); opacity: 0.8; line-height: 1.6; }
.tl-item:last-child .tl-text { font-style: italic; color: var(--gold); opacity: 0.9; }

/* ── Birthday Cake ── */
.cake-modal-inner { text-align: center; }
.cake-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 1.5rem; }

.candles-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.candle:hover { transform: scale(1.08); transition: transform 0.2s; }

.candle-body {
  width: 13px; height: 52px;
  border-radius: 3px;
  position: relative;
}
.c1 { background: linear-gradient(180deg, #f8fafc, #c084fc); }
.c2 { background: linear-gradient(180deg, #fde68a, #d4af6a); }
.c3 { background: linear-gradient(180deg, #f8fafc, #a855f7); }
.c4 { background: linear-gradient(180deg, #fde68a, #c084fc); }
.c5 { background: linear-gradient(180deg, #f8fafc, #d4af6a); }

.flame {
  width: 16px; height: 26px;
  position: relative;
  margin-bottom: -3px;
}
.flame::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 14px; height: 24px;
  background: radial-gradient(ellipse at 50% 80%, #fef08a 0%, #fb923c 50%, #ef4444 90%);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  animation: flicker 0.7s ease-in-out infinite alternate;
}
.flame-inner {
  position: absolute;
  bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 10px;
  background: rgba(255,255,220,0.85);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  z-index: 1;
}
@keyframes flicker {
  0%   { transform: translateX(-50%) scaleX(1)   scaleY(1)    rotate(-3deg); opacity: 1; }
  100% { transform: translateX(-50%) scaleX(0.88) scaleY(1.07) rotate(3deg); opacity: 0.9; }
}

.smoke {
  position: absolute;
  top: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 0;
  background: rgba(200,200,220,0.5);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}
.candle.out .flame { display: none; }
.candle.out .smoke { animation: smokeRise 1.8s ease-out forwards; }
@keyframes smokeRise {
  0%   { opacity: 0.7; height: 16px; transform: translateX(-50%) scaleX(1) translateY(0); }
  60%  { opacity: 0.4; height: 28px; transform: translateX(-50%) scaleX(2) translateY(-15px); }
  100% { opacity: 0;   height: 32px; transform: translateX(-50%) scaleX(3) translateY(-30px); }
}

.cake { display: flex; flex-direction: column; align-items: center; position: relative; }

/* Cake alive state */
.cake.alive {
  animation: cakeBounce 0.6s ease forwards;
}
@keyframes cakeBounce {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.06) translateY(-6px); }
  50%  { transform: scale(0.97) translateY(2px); }
  75%  { transform: scale(1.03) translateY(-3px); }
  100% { transform: scale(1) translateY(0); }
}

.cake.alive .cake-top {
  background: linear-gradient(135deg, #9333ea, #c084fc);
  box-shadow: 0 0 24px rgba(192,132,252,0.8);
  animation: layerGlow 1.5s ease-in-out infinite alternate;
}
.cake.alive .cake-mid {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 0 20px rgba(168,85,247,0.7);
  animation: layerGlow 1.5s ease-in-out infinite alternate 0.2s;
}
.cake.alive .cake-bot {
  background: linear-gradient(135deg, #6b21a8, #9333ea);
  box-shadow: 0 0 20px rgba(147,51,234,0.7);
  animation: layerGlow 1.5s ease-in-out infinite alternate 0.4s;
}
@keyframes layerGlow {
  from { filter: brightness(1); }
  to   { filter: brightness(1.3); }
}

/* Sparkle stars around cake */
.cake-sparkles {
  position: absolute;
  inset: -30px;
  pointer-events: none;
  display: none;
}
.cake.alive .cake-sparkles { display: block; }

.cake-sparkles span {
  position: absolute;
  font-size: 1.1rem;
  opacity: 0;
  animation: sparkleFloat 1.8s ease-out infinite;
}
.cake-sparkles span:nth-child(1)  { left: 10%;  top: 20%; animation-delay: 0.0s; }
.cake-sparkles span:nth-child(2)  { left: 85%;  top: 15%; animation-delay: 0.3s; }
.cake-sparkles span:nth-child(3)  { left: 5%;   top: 60%; animation-delay: 0.6s; }
.cake-sparkles span:nth-child(4)  { left: 90%;  top: 55%; animation-delay: 0.2s; }
.cake-sparkles span:nth-child(5)  { left: 50%;  top: 5%;  animation-delay: 0.5s; }
.cake-sparkles span:nth-child(6)  { left: 20%;  top: 85%; animation-delay: 0.8s; }
.cake-sparkles span:nth-child(7)  { left: 75%;  top: 80%; animation-delay: 0.4s; }
.cake-sparkles span:nth-child(8)  { left: 40%;  top: 90%; animation-delay: 0.9s; }

@keyframes sparkleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px) scale(1.2); }
}

.cake-top {
  width: 130px; height: 52px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 4px 0 rgba(255,255,255,0.12);
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 10px 10px;
}
.cake-mid {
  width: 170px; height: 52px;
  background: linear-gradient(135deg, #6b21a8, #8b5cf6);
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.1);
  background-image: radial-gradient(circle, rgba(212,175,106,0.25) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}
.cake-bot {
  width: 200px; height: 60px;
  background: linear-gradient(135deg, #4c1d95, #6b21a8);
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.08);
  background-image: radial-gradient(circle, rgba(192,132,252,0.2) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}
.cake-plate {
  width: 240px; height: 16px;
  background: linear-gradient(90deg, rgba(226,232,240,0.3), rgba(248,250,252,0.6), rgba(226,232,240,0.3));
  border-radius: 50%;
  margin-top: 6px;
}

.cake-msg {
  margin-top: 1.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  min-height: 2rem;
}
.cake-msg.visible { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 600px) {

  /* Ready screen */
  .ready-content { padding: 1.5rem 1rem; }
  .ready-title { font-size: 2rem; min-height: 3em; }
  .ready-sub { font-size: 0.78rem; }
  .hero-portrait { width: 80px; height: 80px; margin-bottom: 1rem; }
  .ready-buttons { flex-direction: column; align-items: center; gap: 0.9rem; margin-top: 1rem; }
  .btn-yes { width: 72vw; max-width: 260px; }

  /* Countdown */
  .countdown { gap: 0.3rem; }
  .cd-unit { min-width: 44px; padding: 0.4rem 0.4rem; }
  .cd-unit span { font-size: 1.3rem; }
  .cd-unit p { font-size: 0.55rem; }
  .cd-sep { font-size: 1.1rem; }

  /* Surprises screen */
  .surprises-content { padding: 1.5rem 1rem; }
  .surprises-title { font-size: 1.6rem; margin-bottom: 1.8rem; }
  .gift-row { flex-direction: row; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
  .gift-box { width: 110px; }
  .gift-emoji { font-size: 3.2rem; }
  .gift-icon-wrap { width: 80px; height: 80px; }
  .btn-continue { margin-top: 1.8rem; font-size: 0.92rem; padding: 0.65rem 1.6rem; }

  /* Cake screen */
  .cake-screen-content { padding: 1.5rem 1rem; }
  .candles-row { gap: 18px; }
  .cake-top { width: 100px; height: 42px; }
  .cake-mid { width: 130px; height: 42px; }
  .cake-bot { width: 158px; height: 50px; }
  .cake-plate { width: 185px; }
  .cake-sparkles { inset: -16px; }
  .cake-msg { font-size: 1.1rem; }

  /* Modals — slide up from bottom */
  .modal { padding: 0; align-items: flex-end; }
  .modal-inner { padding: 1.8rem 1.1rem 2rem; border-radius: 18px 18px 0 0; max-height: 88vh; }
  .modal-title { font-size: 1.3rem; }

  /* Letter */
  .letter-card { padding: 1.4rem 1.1rem; font-size: 0.94rem; line-height: 1.8; }
  .envelope, .envelope-flap, .envelope-body { width: 170px; }
  .envelope-body { height: 110px; }

  /* Reasons */
  .reasons-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .reason-card { height: 120px; }
  .card-back { font-size: 0.8rem; padding: 0.7rem; }

  /* Timeline */
  .timeline::before { left: 6px; }
  .tl-dot { width: 13px; height: 13px; }
  .tl-item { gap: 1rem; margin-bottom: 1.5rem; }
  .tl-content { margin-left: 0.5rem; }
  .tl-title { font-size: 0.92rem; }
  .tl-text { font-size: 0.82rem; }
  .tl-date { font-size: 0.7rem; }
}
