/* ---------------------------------------------------------
   Angel's Birthday Site — "Retro Sweetheart" theme
   Palette: cream #FFF6F2, blush #FFD9E6, hot pink #FF4F93,
            deep rose #B23A63, gold #F2B33D, ink #3A2230
--------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Baloo+2:wght@500;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root{
  --cream:#FFF6F2;
  --blush:#FFD9E6;
  --pink:#FF4F93;
  --rose:#B23A63;
  --gold:#F2B33D;
  --ink:#3A2230;
  --white:#FFFFFF;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 14px 34px rgba(178,58,99,0.16);
  --scallop-size: 16px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:'Quicksand',sans-serif;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3{
  font-family:'Baloo 2',cursive;
  margin:0 0 .4em;
  line-height:1.05;
}
.script{
  font-family:'Pacifico',cursive;
  font-weight:400;
}
.container{
  max-width:1080px;
  margin:0 auto;
  padding:0 24px;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 30px;
  background:var(--pink);
  color:var(--white);
  border:2px solid var(--ink);
  border-radius:var(--radius-pill);
  font-family:'Baloo 2',cursive;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  cursor:pointer;
  box-shadow:4px 4px 0 var(--ink);
  transition:transform .18s ease, box-shadow .18s ease;
}
.btn:hover{ transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--ink); }
.btn:active{ transform:translate(1px,1px); box-shadow:2px 2px 0 var(--ink); }
.btn-ghost{
  background:transparent;
  color:var(--rose);
}

/* scalloped edge used as a decorative border, echoing the reference photo frames */
.scallop{
  position:relative;
}
.scallop::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:var(--scallop-size);
  background-image: radial-gradient(circle at 8px 0, transparent 8px, var(--cream) 8.5px);
  background-size:16px var(--scallop-size);
  background-repeat:repeat-x;
}

/* ---------- top bar ---------- */
.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px;
  background:rgba(255,246,242,.86);
  backdrop-filter:blur(8px);
  border-bottom:2px solid var(--ink);
}
.topbar .logo{
  font-family:'Pacifico',cursive;
  font-size:26px;
  color:var(--rose);
}
.topbar .logo small{
  display:block;
  font-family:'Quicksand',sans-serif;
  font-size:11px;
  letter-spacing:.14em;
  color:var(--ink);
  text-transform:uppercase;
}
.topbar nav a{
  margin-left:20px;
  font-weight:600;
  text-decoration:none;
  font-size:14px;
}

/* ---------- floating decorative sprites (parallax on scroll) ---------- */
.sprite-field{
  position:absolute; inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:1;
}
.sprite{
  position:absolute;
  will-change:transform;
  filter:drop-shadow(0 8px 14px rgba(178,58,99,.18));
}

/* ---------- HERO / cinematic scroll-expand ---------- */
.hero-scroller{
  position:relative;
  height:100vh;
}
.hero-track{
  position:relative;
  width:100%;
}
.hero-stage{
  position:sticky;
  top:0;
  width:100%;
  height:100vh;
  overflow:hidden;
  background:linear-gradient(180deg,var(--blush),var(--cream));
}
.hero-frame{
  position:absolute;
  inset:0;
  will-change:clip-path;
  border-radius:0;
}
.hero-media{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  will-change:transform;
  transform-origin:center;
}
.hero-scrim{
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(58,34,48,.75), rgba(58,34,48,.05) 45%, rgba(58,34,48,.35));
  opacity:0;
  pointer-events:none;
}
.hero-title{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding:0 6%;
  pointer-events:none;
  will-change:opacity, transform;
}
.hero-title h1{
  font-size:clamp(2.4rem, 8vw, 5.4rem);
  color:var(--white);
  text-shadow:0 3px 18px rgba(0,0,0,.35);
  -webkit-text-stroke:2px var(--ink);
}
.hero-title p{
  margin-top:10px;
  font-size:clamp(15px,2.4vw,19px);
  color:var(--white);
  max-width:520px;
}
.hero-hint{
  position:absolute; left:0; right:0; bottom:22px;
  text-align:center;
  font-size:13px; letter-spacing:.06em;
  color:var(--ink);
  opacity:.7;
  pointer-events:none;
}
.hero-overlay{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:6%;
  color:var(--white);
  opacity:0;
  will-change:opacity, transform;
}
.hero-overlay h2{ font-size:clamp(1.6rem,4vw,2.4rem); }
.hero-overlay p{ max-width:460px; }

/* ---------- sections ---------- */
section{ position:relative; padding:96px 0; }
.section-head{ text-align:center; margin-bottom:44px; }
.section-head .eyebrow-script{
  font-family:'Pacifico',cursive;
  color:var(--pink);
  font-size:22px;
}
.section-head h2{ font-size:clamp(1.8rem,4vw,2.6rem); color:var(--rose); }

/* message card */
.message-card{
  position:relative;
  max-width:640px; margin:0 auto;
  background:var(--white);
  border:2px solid var(--ink);
  border-radius:var(--radius-lg);
  padding:38px 32px 46px;
  box-shadow:var(--shadow-soft);
  text-align:center;
}
.message-card p{ font-size:17px; line-height:1.7; }

/* ---------- slider (morph-style crossfade carousel) ---------- */
.slider-wrap{
  position:relative;
  max-width:760px; margin:0 auto;
  border:2px solid var(--ink);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  background:var(--ink);
}
.slider-stage{
  position:relative;
  aspect-ratio:4/3;
  width:100%;
}
.slide{
  position:absolute; inset:0;
  opacity:0;
  transform:scale(1.06);
  filter:blur(6px);
  transition:opacity .9s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.22,1,.36,1), filter .9s ease;
}
.slide img{ width:100%; height:100%; object-fit:cover; }
.slide.is-active{ opacity:1; transform:scale(1); filter:blur(0); z-index:2; }
.slide-caption{
  position:absolute; left:18px; bottom:18px; z-index:3;
  padding:8px 16px;
  background:rgba(58,34,48,.55);
  backdrop-filter:blur(6px);
  color:var(--white);
  border-radius:var(--radius-pill);
  font-weight:600; font-size:14px;
  opacity:0; transform:translateY(10px);
  transition:opacity .5s ease, transform .5s ease;
}
.slide.is-active .slide-caption{ opacity:1; transform:translateY(0); }
.slider-controls{
  position:absolute; inset:0; z-index:4;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 12px;
  pointer-events:none;
}
.slider-btn{
  pointer-events:auto;
  width:40px; height:40px;
  border-radius:50%;
  border:2px solid var(--ink);
  background:var(--white);
  color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  box-shadow:3px 3px 0 var(--ink);
}
.slider-dots{
  position:absolute; left:0; right:0; bottom:14px; z-index:4;
  display:flex; gap:8px; justify-content:center;
}
.slider-dot{
  width:8px; height:8px; border-radius:999px; border:none;
  background:rgba(255,255,255,.5); cursor:pointer;
  transition:width .3s ease, background .3s ease;
}
.slider-dot.is-active{ width:22px; background:var(--white); }

/* ---------- footer ---------- */
footer{
  position:relative;
  background:var(--rose);
  color:var(--cream);
  padding:56px 0 30px;
  margin-top:40px;
  border-top:2px solid var(--ink);
}
.footer-inner{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:20px;
}
.footer-brand{ font-family:'Pacifico',cursive; font-size:24px; }
.social-row{ display:flex; gap:12px; flex-wrap:wrap; }
.social-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px;
  background:rgba(255,255,255,.12);
  border:1.5px solid rgba(255,255,255,.4);
  border-radius:var(--radius-pill);
  text-decoration:none;
  color:var(--cream);
  font-weight:600; font-size:13.5px;
  transition:background .2s ease, transform .2s ease;
}
.social-pill:hover{ background:rgba(255,255,255,.22); transform:translateY(-2px); }
.footer-note{
  width:100%;
  text-align:center;
  font-size:12.5px;
  opacity:.7;
  margin-top:28px;
}

/* ---------- music toggle ---------- */
.music-toggle{
  width:56px; height:56px; border-radius:50%;
  background:var(--pink);
  border:2px solid var(--ink);
  box-shadow:3px 3px 0 var(--ink);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  color:var(--white);
}
.music-toggle svg{ width:22px; height:22px; }
.music-toggle.is-playing .bar{ animation:eq 1s ease-in-out infinite; }
.music-toggle .bar:nth-child(2){ animation-delay:.15s; }
.music-toggle .bar:nth-child(3){ animation-delay:.3s; }
@keyframes eq{
  0%,100%{ transform:scaleY(.4); }
  50%{ transform:scaleY(1); }
}

/* ---------- Wish Notes folder-float (simplified, no physics dependency) ---------- */
.wish-folder{
  position:fixed;
  left:20px; bottom:20px; z-index:49;
  font-family:'Quicksand',sans-serif;
}
.wish-folder__trigger{
  width:64px; height:52px;
  border-radius:14px 14px 6px 6px;
  background:var(--gold);
  border:2px solid var(--ink);
  box-shadow:3px 3px 0 var(--ink);
  cursor:pointer;
  position:relative;
  display:flex; align-items:flex-end; justify-content:center;
  padding-bottom:6px;
  font-size:11px; font-weight:700; color:var(--ink);
}
.wish-folder__trigger::before{
  content:"";
  position:absolute; top:-8px; left:8px;
  width:26px; height:10px;
  background:inherit;
  border:2px solid var(--ink);
  border-bottom:none;
  border-radius:6px 6px 0 0;
}
.wish-folder__items{
  position:absolute;
  bottom:64px; left:0;
  display:flex; flex-direction:column; gap:8px;
  width:max-content;
  max-width:260px;
}
.wish-folder__note{
  background:var(--white);
  border:2px solid var(--ink);
  border-radius:16px;
  padding:10px 16px;
  font-size:13px; font-weight:600;
  box-shadow:3px 3px 0 var(--ink);
  opacity:0; transform:translateY(14px) scale(.85);
  transition:opacity .35s cubic-bezier(.34,1.56,.64,1), transform .35s cubic-bezier(.34,1.56,.64,1);
}
.wish-folder.is-open .wish-folder__note{ opacity:1; transform:translateY(0) scale(1); }
.wish-folder__note:nth-child(1){ transition-delay:0s; }
.wish-folder__note:nth-child(2){ transition-delay:.06s; }
.wish-folder__note:nth-child(3){ transition-delay:.12s; }
.wish-folder__note:nth-child(4){ transition-delay:.18s; }

/* ---------- floating-label text fields ---------- */
/* Originally based on a Uiverse.io snippet (by VijinV) that floated the
   label using `input:valid ~ span`. That breaks for any optional field:
   an empty, non-required input has no constraint to violate, so it
   matches :valid too — meaning every blank optional field showed its
   label already floated up, permanently, looking broken. Rebuilt using
   `:placeholder-shown` instead (each input carries placeholder=" "),
   which correctly distinguishes "has a value" from "focused" from
   "empty" regardless of whether the field is required — and restyled
   as a proper bordered box to match the site's card language instead
   of a bare underline floating on the page background. */
.inputbox{
  position:relative;
  width:100%;
}
.inputbox input{
  position:relative;
  width:100%;
  padding:15px 14px;
  background:var(--cream);
  outline:none;
  box-shadow:none;
  border:2px solid var(--ink);
  border-radius:14px;
  color:var(--ink);
  font-family:'Quicksand',sans-serif;
  font-weight:600;
  font-size:15px;
  letter-spacing:.02em;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.inputbox input:focus{
  border-color:var(--pink);
  box-shadow:0 0 0 4px rgba(255,79,147,.16);
}
.inputbox span{
  position:absolute;
  left:15px;
  top:15px;
  font-size:15px;
  font-weight:600;
  color:#9c7f8a;
  transition:transform .18s ease, font-size .18s ease, color .18s ease;
  transform-origin:left top;
  pointer-events:none;
}
.inputbox input:focus ~ span,
.inputbox input:not(:placeholder-shown) ~ span{
  transform:translateY(-28px);
  font-size:11px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--rose);
}
.inputbox input:focus ~ span{ color:var(--pink); }
.inputbox i{ display:none; }


/* ---------- music cluster + lyrics ---------- */
.music-cluster{
  position:fixed; right:20px; bottom:20px; z-index:50;
  display:flex; flex-direction:column; align-items:flex-end; gap:10px;
}
.lyrics-toggle{
  padding:9px 16px;
  background:var(--white);
  border:2px solid var(--ink);
  border-radius:var(--radius-pill);
  box-shadow:3px 3px 0 var(--ink);
  font-family:'Baloo 2',cursive;
  font-weight:700; font-size:13px;
  color:var(--rose);
  cursor:pointer;
}
.lyrics-card{
  max-width:420px; width:90vw; max-height:76vh;
  display:flex; flex-direction:column;
  position:relative;
  padding:30px 6px 26px;
}
.lyrics-card__title{
  font-family:'Baloo 2',cursive;
  color:var(--rose);
  font-size:19px;
  text-align:center;
  margin-bottom:14px;
  padding:0 30px;
}
.lyrics-card__lines{
  overflow-y:auto;
  scroll-behavior:smooth;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:20vh 26px;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  scrollbar-width:none;
}
.lyrics-card__lines::-webkit-scrollbar{ display:none; }
.lyrics-card__lines .line{
  text-align:center;
  font-family:'Quicksand',sans-serif;
  font-size:15px;
  font-weight:600;
  line-height:1.4;
  color:var(--ink);
  opacity:.32;
  transform:scale(.94);
  transition:opacity .25s ease, transform .25s ease, color .25s ease, font-weight .25s ease;
}
.lyrics-card__lines .line.is-active{
  opacity:1;
  color:var(--rose);
  font-weight:800;
  font-size:19px;
  transform:scale(1);
}

@media (max-width:640px){
  section{ padding:64px 0; }
  .topbar nav{ display:none; }
  .message-card{ padding:28px 20px 34px; }
  .wish-folder__items{ max-width:70vw; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}

/* ---------- upload page ---------- */
.upload-card{
  background:var(--white);
  border:2px solid var(--ink);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
  padding:30px 26px 40px;
}
.upload-card label{ display:block; font-weight:700; font-size:13px; margin:16px 0 6px; }
.upload-card input[type=text], .upload-card input[type=email]{
  width:100%; padding:12px 14px; border:2px solid var(--ink); border-radius:14px;
  font-family:'Quicksand',sans-serif; font-size:15px; background:var(--cream);
}
.field-hint{ font-size:12px; opacity:.65; margin:4px 0 0; }

.dropzone{
  margin-top:8px;
  border:2.5px dashed var(--rose);
  border-radius:20px;
  background:var(--blush);
  padding:32px 18px;
  text-align:center;
  cursor:pointer;
  transition:background .2s ease, transform .15s ease, border-color .2s ease;
}
.dropzone:hover{ background:#ffcfe1; }
.dropzone.is-dragging{ border-color:var(--pink); background:#ffc2dc; transform:scale(1.01); }
.dropzone__icon{ font-size:34px; margin-bottom:6px; }
.dropzone p{ margin:4px 0; font-weight:600; }

.file-list{ margin-top:14px; display:flex; flex-direction:column; gap:10px; }
.file-row{
  display:flex; align-items:center; gap:12px;
  background:var(--cream);
  border:2px solid var(--ink);
  border-radius:14px;
  padding:8px 12px;
}
.file-row__thumb{
  width:44px; height:44px; border-radius:10px; background:var(--blush) center/cover no-repeat;
  border:1.5px solid var(--ink); flex-shrink:0;
}
.file-row__body{ flex:1; min-width:0; }
.file-row__name{ font-size:12.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.file-row__track{ height:8px; background:var(--blush); border-radius:999px; margin-top:6px; overflow:hidden; }
.file-row__bar{ height:100%; width:0%; background:var(--pink); border-radius:999px; transition:width .2s ease; }
.file-row__status{ font-size:11.5px; font-weight:700; color:var(--rose); flex-shrink:0; min-width:54px; text-align:right; }
.file-row.is-done .file-row__status{ color:#146b34; }
.file-row.is-error .file-row__bar{ background:#c0304f; }
.file-row.is-error .file-row__status{ color:#c0304f; }

/* ---------- toast ---------- */
.toast{
  position:fixed; left:50%; bottom:26px; z-index:80;
  transform:translate(-50%,18px);
  background:var(--ink);
  color:var(--cream);
  padding:12px 22px;
  border-radius:var(--radius-pill);
  font-weight:700; font-size:14px;
  opacity:0; pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}
.toast.is-visible{ opacity:1; transform:translate(-50%,0); }
.toast--error{ background:#8a1f3a; }
.toast--success{ background:#146b34; }

/* ---------- modal ---------- */
.modal-backdrop{
  position:fixed; inset:0; z-index:90;
  background:rgba(58,34,48,.55);
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  opacity:1;
  transition:opacity .2s ease;
}
/* the [hidden] attribute normally sets display:none via the browser's
   default stylesheet, but that default loses to ANY author rule that
   sets display on the same element (regardless of specificity) — so
   this has to be spelled out explicitly, or [hidden] silently does
   nothing and the modal shows up on page load. */
.modal-backdrop[hidden]{
  display:none;
}
.modal-card{
  background:var(--white);
  border:2px solid var(--ink);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
  padding:34px 28px 30px;
  max-width:340px;
  text-align:center;
}
.modal-card__icon{ font-size:40px; }
.modal-card h3{ color:var(--rose); }
.modal-card__close{
  position:absolute; top:14px; right:14px;
  width:28px; height:28px;
  border-radius:50%;
  background:var(--blush);
  border:2px solid var(--ink);
  font-size:13px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--ink);
}

/* ---------- text loop ribbon ---------- */
.textloop-wrap{
  width:100%;
  overflow:hidden;
  padding:20px 0 6px;
  background:var(--blush);
}
.textloop{ display:block; width:100%; height:auto; }
.textloop-text{
  font-family:'Baloo 2',cursive;
  font-weight:800;
  font-size:34px;
  letter-spacing:2px;
  fill:var(--rose);
  user-select:none;
}

/* ---------- infinite spiral ---------- */
.spiral{
  position:relative;
  width:100%;
  height:420px;
  overflow:hidden;
  perspective:1000px;
  isolation:isolate;
}
.spiral__stage{ position:absolute; inset:0; transform-style:preserve-3d; }
.spiral__item{
  position:absolute; top:50%; left:50%;
  width:110px; height:110px;
  border-radius:14px;
  overflow:hidden;
  border:2px solid var(--ink);
  box-shadow:0 10px 22px rgba(178,58,99,.22);
  will-change:transform, opacity, filter;
}
.spiral__item img{ width:100%; height:100%; object-fit:cover; }
@media (max-width:640px){
  .spiral{ height:320px; }
  .spiral__item{ width:78px; height:78px; }
}

