
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --pink: #ff6b9d;
    --orange: #ff8c69;
    --yellow: #ffd166;
    --purple: #7c3aed;
    --white: #ffffff;
  }

  html, body {
    height: 100%;
    overflow: hidden;
    background: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
  }

  /* ── SLIDES ─────────────────────────────────── */
  #app {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
  }

  .slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.55s cubic-bezier(.77,0,.18,1), transform 0.55s cubic-bezier(.77,0,.18,1);
    pointer-events: none;
  }
  .slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
  }
  .slide.exit {
    opacity: 0;
    transform: translateX(-100%);
  }

  /* ── BACKGROUNDS ─────────────────────────────── */
  .s0 { background: radial-gradient(ellipse at 20% 20%, #3b0033 0%, #0a0a0a 60%),
                    radial-gradient(ellipse at 80% 80%, #1a003a 0%, transparent 60%); }
  .s1 { background: radial-gradient(ellipse at 80% 10%, #1e003e 0%, #0a0a0a 60%); }
  .s2 { background: radial-gradient(ellipse at 10% 90%, #002918 0%, #0a0a0a 60%); }
  .s3 { background: radial-gradient(ellipse at 90% 20%, #2a1500 0%, #0a0a0a 60%); }
  .s4 { background: radial-gradient(ellipse at 50% 50%, #200030 0%, #0a0a0a 70%); }
  .s5 { background: radial-gradient(ellipse at 20% 80%, #3b0033 0%, #0a0a0a 50%),
                    radial-gradient(ellipse at 80% 20%, #1a003a 0%, transparent 50%); }

  /* ── FLOATING BLOBS ──────────────────────────── */
  .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s;
  }
  .slide.active .blob { opacity: 0.22; }

  /* ── PARTICLES ───────────────────────────────── */
  .particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .particle {
    position: absolute;
    animation: floatUp linear infinite;
    opacity: 0;
  }
  @keyframes floatUp {
    0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
    8%   { opacity: 0.75; }
    90%  { opacity: 0.45; }
    100% { transform: translateY(-12vh) rotate(400deg); opacity: 0; }
  }

  /* ── TYPOGRAPHY ──────────────────────────────── */
  .eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.8rem;
  }

  .display {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 50%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scalePulse 2.2s ease-in-out infinite;
  }
  @keyframes scalePulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.04);} }

  .headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0.5rem 0 1rem;
  }

  .body-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.58);
    max-width: 340px;
    line-height: 1.65;
  }

  /* ── HEART ───────────────────────────────────── */
  .heart-hero {
    font-size: clamp(4rem, 15vw, 7rem);
    animation: heartbeat 1.3s ease-in-out infinite;
  }
  @keyframes heartbeat {
    0%,100%{transform:scale(1);}
    14%{transform:scale(1.28);}
    28%{transform:scale(1);}
    42%{transform:scale(1.16);}
    70%{transform:scale(1);}
  }

  /* ── STAT CARDS ──────────────────────────────── */
  .stat-row {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.2rem 0;
  }
  .stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    min-width: 110px;
  }
  .stat-card .num {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
  }
  .stat-card .lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.35rem;
  }

  /* ── PILLS ───────────────────────────────────── */
  .pills { margin: 1.2rem 0; }
  .pill {
    display: inline-block;
    background: rgba(255,107,157,0.13);
    border: 1px solid rgba(255,107,157,0.32);
    border-radius: 999px;
    padding: 0.38rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pink);
    margin: 0.3rem;
  }

  /* ── SONG CARDS ──────────────────────────────── */
  .song-list { margin: 1rem 0; }
  .song-card {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.45rem auto;
    max-width: 340px;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
  }
  .song-card:hover { background: rgba(255,107,157,0.1); border-color: rgba(255,107,157,0.3); }
  .song-num { font-size: 1.4rem; font-weight: 900; color: rgba(255,255,255,0.12); min-width: 26px; }
  .song-info .name { font-weight: 700; font-size: 0.92rem; }
  .song-info .tag  { font-size: 0.76rem; color: rgba(255,255,255,0.44); margin-top: 2px; }

  /* ── QUOTE ───────────────────────────────────── */
  .quote-block {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 4vw, 1.85rem);
    font-style: italic;
    line-height: 1.55;
    max-width: 380px;
    color: rgba(255,255,255,0.93);
  }
  .quote-attr {
    margin-top: 1.4rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.38);
  }

  /* ── FINAL ───────────────────────────────────── */
  .final-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 3.6rem);
    font-style: italic;
    background: linear-gradient(135deg, var(--pink), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.6rem 0;
  }

  /* ── BUTTONS ─────────────────────────────────── */
  .btn-next {
    margin-top: 2.2rem;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 2.4rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 28px rgba(255,107,157,0.42);
    transition: transform 0.14s, box-shadow 0.14s;
  }
  .btn-next:hover { transform: scale(1.06); box-shadow: 0 6px 36px rgba(255,107,157,0.62); }
  .btn-next:active { transform: scale(0.97); }

  /* ── PROGRESS DOTS ───────────────────────────── */
  #dots {
    position: fixed;
    top: 50%;
    right: 1.2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 100;
  }
  .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.77,0,.18,1);
  }
  .dot.active { background: var(--pink); height: 22px; border-radius: 4px; }

  /* ── CONFETTI ────────────────────────────────── */
  .confetti-piece {
    position: fixed;
    width: 9px; height: 9px;
    border-radius: 2px;
    animation: cfFall linear forwards;
    pointer-events: none;
    z-index: 9999;
  }
  @keyframes cfFall {
    0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh)  rotate(720deg); opacity: 0; }
  }

  /* ── EDIT OVERLAY ────────────────────────────── */
  #editOverlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
  }
  #editOverlay.open { display: flex; }

  .edit-box {
    background: #161616;
    border: 1px solid rgba(255,107,157,0.25);
    border-radius: 24px;
    padding: 2rem 1.8rem;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: auto;
  }
  .edit-box h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 0.2rem;
  }
  .edit-box label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.15rem;
    display: block;
  }
  .edit-box input,
  .edit-box textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,107,157,0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0.72rem 1rem;
    outline: none;
    transition: border-color 0.2s;
  }
  .edit-box input:focus,
  .edit-box textarea:focus { border-color: var(--pink); }
  .edit-box textarea { resize: vertical; min-height: 90px; }

  .edit-box .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .edit-box .btn-row { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
  .btn-save {
    flex: 1;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: #fff; border: none; border-radius: 999px;
    padding: 0.8rem; font-size: 0.95rem; font-weight: 700;
    font-family: inherit; cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,107,157,0.35);
    transition: transform 0.14s;
  }
  .btn-save:hover { transform: scale(1.04); }
  .btn-cancel {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px; color: #fff;
    padding: 0.8rem 1.4rem; font-size: 0.95rem; font-weight: 600;
    font-family: inherit; cursor: pointer;
    transition: background 0.2s;
  }
  .btn-cancel:hover { background: rgba(255,255,255,0.12); }

  /* ── EDIT HINT BUTTON ────────────────────────── */
  #editHint {
    position: fixed;
    bottom: 1.3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 999px;
    padding: 0.48rem 1.2rem;
    font-size: 0.75rem;
    font-family: inherit;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    z-index: 50;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }
  #editHint:hover { background: rgba(255,107,157,0.15); color: var(--pink); }

  /* ── MOBILE ──────────────────────────────────── */
  @media (max-width: 480px) {
    .stat-card { min-width: 90px; padding: 0.9rem 1rem; }
    .song-card  { padding: 0.85rem 1rem; }
    .headline   { font-size: 1.5rem; }
    .btn-next   { padding: 0.8rem 2rem; }
  }

  @media (prefers-reduced-motion: reduce) {
    .particle, .blob { display: none !important; }
    .heart-hero { animation: none !important; }
    .display     { animation: none !important; }
    .slide       { transition: none !important; }
  }
