  /* ============================================================
     CARA EDIT CEPAT
     1. Ganti semua teks di dalam elemen yang bertanda [EDIT: ...]
     2. PIN masuk: cari "const PIN_CODE" di bagian <script> paling
        bawah, ganti dengan 6 digit angka spesial kalian.
     3. Musik: cari komentar [EDIT MUSIK] di HTML & ganti src lagu,
        judul, dan nama artis.
     4. Foto: cari .gallery-item, ganti div placeholder jadi
        <img src="foto-kamu.jpg" alt="...">
     5. Surat: edit isi #letter-body
     6. Wishes: tambah/kurangi <li> di #wishes-list
     ============================================================ */

  :root{
    --bg-deep: #06040f;
    --bg-mid: #140b2e;
    --bg-purple: #241246;
    --ink: #eae6f5;
    --ink-dim: #b8b0d1;
    --gold: #e8c574;
    --gold-soft: #f3dfa3;
    --accent-1: #8b5cf6;
    --accent-2: #d946a8;
    --line: rgba(232, 197, 116, 0.25);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
  }

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

  html{ scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
  html.gate-active, html.gate-active body{ overflow: hidden; height: 100%; }

  body{
    background: var(--bg-deep);
    color: var(--ink);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  /* ---------- Ambient starfield ---------- */
  /* z-index dinaikkan ke atas <section> (yang z-index:2 & punya
     background solid/gradient) supaya bintangnya kelap-kelip di atas
     semua section, bukan ketutup di belakang layar. */
  #stars{
    position: fixed; inset: 0;
    z-index: 5; pointer-events: none;
  }
  #stars span{
    position: absolute;
    width: 2px; height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle 4s ease-in-out infinite;
  }
  @keyframes twinkle{
    0%, 100%{ opacity: 0.15; }
    50%{ opacity: 0.9; }
  }

  /* ---------- Parallax background blobs ---------- */
  .blob{
    position: fixed;
    width: 60vmax; height: 60vmax;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
  }
  .blob-a{ background: radial-gradient(circle, var(--accent-1), transparent 70%); top: -25%; left: -25%; }
  .blob-b{ background: radial-gradient(circle, var(--accent-2), transparent 70%); bottom: -25%; right: -25%; }

  /* ---------- Bubbles ---------- */
  .bubble{
    position: fixed;
    bottom: -50px;
    border-radius: 50%;
    border: 1px solid rgba(232,197,116,0.25);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
    animation: rise linear infinite;
    z-index: 1;
    pointer-events: none;
  }
  @keyframes rise{
    0%{ transform: translateY(0) translateX(0); opacity: 0; }
    10%{ opacity: 0.7; }
    100%{ transform: translateY(-110vh) translateX(20px); opacity: 0; }
  }

  /* ================= PIN GATE ================= */
  #pin-gate{
    position: fixed; inset: 0;
    z-index: 999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 22px;
    padding: 24px;
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,0.25), transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 90%, rgba(217,70,168,0.18), transparent 60%),
      linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
    transition: opacity 0.7s ease, visibility 0.7s ease;
  }
  #pin-gate.unlocked{ opacity: 0; visibility: hidden; pointer-events: none; }

  .pin-lock-icon{
    font-size: 1.8rem;
    opacity: 0.85;
  }
  .pin-title{
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    color: var(--gold-soft);
    text-align: center;
  }
  .pin-sub{
    color: var(--ink-dim);
    font-size: 0.82rem;
    font-weight: 300;
    text-align: center;
    max-width: 280px;
    line-height: 1.6;
    margin-top: -10px;
  }
  .pin-dots{
    display: flex; gap: 14px;
    margin: 10px 0 6px;
  }
  .pin-dots .dot{
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  }
  .pin-dots .dot.filled{
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.15);
  }
  .pin-dots.shake{ animation: shake 0.4s ease; }
  @keyframes shake{
    0%,100%{ transform: translateX(0); }
    20%{ transform: translateX(-10px); }
    40%{ transform: translateX(10px); }
    60%{ transform: translateX(-8px); }
    80%{ transform: translateX(8px); }
  }
  .pin-feedback{
    height: 18px;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: var(--ink-dim);
  }
  .pin-feedback.error{ color: #e6716b; }
  .pin-feedback.success{ color: var(--gold-soft); }

  .pin-keypad{
    display: grid;
    grid-template-columns: repeat(3, 64px);
    gap: 14px;
    margin-top: 6px;
  }
  .pin-key{
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  }
  .pin-key:active{ transform: scale(0.92); background: rgba(232,197,116,0.12); border-color: var(--gold); }
  .pin-key.ghost{ visibility: hidden; }
  .pin-key.pin-del{ font-size: 0.95rem; color: var(--ink-dim); }

  @media (max-width: 380px){
    .pin-keypad{ grid-template-columns: repeat(3, 56px); gap: 10px; }
    .pin-key{ width: 56px; height: 56px; font-size: 1.05rem; }
  }

  /* ---------- Nav ---------- */
  nav{
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    gap: clamp(14px, 3vw, 40px);
    padding: 18px 20px;
    background: linear-gradient(to bottom, rgba(6,4,15,0.9), transparent);
    backdrop-filter: blur(4px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  nav::-webkit-scrollbar{ display: none; }
  nav a{
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    white-space: nowrap;
  }
  nav a::after{
    content:'';
    position: absolute; left: 0; bottom: 0;
    width: 0%; height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
  }
  nav a:hover, nav a.active{ color: var(--gold-soft); }
  nav a:hover::after, nav a.active::after{ width: 100%; }

  /* ---------- Depth Gauge ---------- */
  #depth-gauge{
    position: fixed;
    right: clamp(10px, 3vw, 28px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex; flex-direction: column; align-items: center;
    gap: 10px;
    height: min(50vh, 420px);
  }
  #depth-gauge .track{
    position: relative;
    width: 2px;
    flex: 1;
    background: rgba(232,197,116,0.15);
    border-radius: 2px;
  }
  #depth-gauge .fill{
    position: absolute;
    top: 0; left: 0; width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--gold), var(--accent-2));
    border-radius: 2px;
    transition: height 0.15s linear;
  }
  #depth-gauge .marker{
    position: absolute;
    right: 10px;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    color: var(--ink-dim);
    white-space: nowrap;
    display: flex; align-items: center; gap: 6px;
  }
  #depth-gauge .marker .dot{
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(232,197,116,0.4);
  }
  #depth-gauge .marker.active{ color: var(--gold-soft); }
  #depth-gauge .marker.active .dot{ background: var(--gold); box-shadow: 0 0 8px var(--gold); }
  #depth-readout{
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-soft);
    font-size: 0.95rem;
  }

  @media (max-width: 720px){
    #depth-gauge{ display: none; }
  }

  /* ---------- Sections generic ---------- */
  section{
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 140px 24px 100px;
    z-index: 2;
  }

  .eyebrow{
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    opacity: 0.85;
  }

  /* ---------- Reveal on scroll ---------- */
  .reveal{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in-view{
    opacity: 1;
    transform: translateY(0);
  }

  /* ---------- Hero ---------- */
  #surface{
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,0.25), transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 90%, rgba(217,70,168,0.15), transparent 60%),
      linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  }
  .hero-inner{
    max-width: 720px;
    text-align: center;
  }
  .hero-title{
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    color: var(--ink);
  }
  .hero-title em{
    display: block;
    font-style: italic;
    font-weight: 500;
    color: var(--gold-soft);
    margin-top: 6px;
  }
  .hero-desc{
    margin-top: 26px;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--ink-dim);
    font-weight: 300;
  }
  .hero-desc .you{
    color: var(--gold-soft);
    font-weight: 500;
  }
  .hero-actions{
    margin-top: 40px;
    display: flex; flex-wrap: wrap;
    gap: 16px; justify-content: center;
  }
  .btn{
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    padding: 14px 30px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-primary{
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    border: none;
    box-shadow: 0 8px 30px rgba(139,92,246,0.35);
  }
  .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 34px rgba(139,92,246,0.5); }
  .btn-outline{
    background: transparent;
    border: 1px solid var(--line);
    color: var(--gold-soft);
  }
  .btn-outline:hover{ border-color: var(--gold); background: rgba(232,197,116,0.06); }

  .scroll-hint{
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-dim);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
  }
  .scroll-hint .line{
    width: 1px; height: 34px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: pulse-line 2s ease-in-out infinite;
  }
  @keyframes pulse-line{
    0%,100%{ opacity: 0.3; } 50%{ opacity: 1; }
  }

  /* ---------- Memories ---------- */
  #memories{ background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-purple) 100%); }
  .section-title{
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
  }
  .section-sub{
    color: var(--ink-dim);
    text-align: center;
    max-width: 520px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 60px;
  }
  .timeline{
    width: 100%; max-width: 640px;
    display: flex; flex-direction: column;
    gap: 6px;
  }
  .memory{
    display: grid;
    grid-template-columns: 90px 1px 1fr;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid rgba(232,197,116,0.1);
  }
  .memory:last-child{ border-bottom: none; }
  .memory-date{
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-soft);
    font-size: 0.9rem;
    text-align: right;
    padding-top: 2px;
  }
  .memory-rule{ background: var(--line); }
  .memory-title{
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--ink);
  }
  .memory-text{
    color: var(--ink-dim);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.8;
  }

  /* ---------- Gallery ---------- */
  #gallery{ background: var(--bg-purple); }
  .gallery-grid{
    width: 100%; max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .gallery-item{
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px dashed rgba(232,197,116,0.3);
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(217,70,168,0.06));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px;
    color: var(--ink-dim);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 12px;
    overflow: hidden;
  }
  .gallery-item span.plus{
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    opacity: 0.7;
  }
  .gallery-item:nth-child(2){ grid-row: span 2; aspect-ratio: auto; }
  .gallery-item img{ width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

  @media (max-width: 620px){
    .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
    .memory{ grid-template-columns: 60px 1px 1fr; gap: 14px; }
  }

  /* ---------- Video ---------- */
  #video{ background: var(--bg-purple); }
  .video-card{
    width: 100%; max-width: 700px;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(217,70,168,0.08));
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  }
  .video-card video{
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #000;
    object-fit: cover;
  }
  .video-caption{
    margin-top: 22px;
    max-width: 560px;
    text-align: center;
    color: var(--ink-dim);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.8;
  }

  /* ---------- YouTube ---------- */
  #youtube{ background: var(--bg-purple); }
  .youtube-card{
    margin-top: 8px;
    display: flex;
    justify-content: center;
  }
  .youtube-link{
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  /* ---------- Top 5 Songs ---------- */
  #songs{ background: linear-gradient(180deg, var(--bg-purple) 0%, #180a30 100%); }
  .song-list{
    width: 100%; max-width: 620px;
    display: flex; flex-direction: column;
    gap: 12px;
  }
  .song-item{
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px 14px 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    transition: border-color 0.3s ease, transform 0.3s ease;
  }
  .song-item:hover{ border-color: var(--gold); transform: translateX(4px); }
  .song-item.playing{ border-color: var(--gold); background: rgba(232,197,116,0.05); }
  .song-rank{
    flex-shrink: 0;
    width: 26px;
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold);
    opacity: 0.75;
  }
  .song-cover{
    flex-shrink: 0;
    width: 58px; height: 58px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(217,70,168,0.1));
    border: 1px solid var(--line);
  }
  .song-cover img{
    width: 100%; height: 100%; object-fit: cover; display: block;
    animation: spin 8s linear infinite;
    animation-play-state: paused;
  }
  .song-item.playing .song-cover img{ animation-play-state: running; }
  .song-info{ min-width: 0; flex: 1; }
  .song-title{
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .song-artist{
    margin-top: 3px;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--ink-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .song-progress{
    margin-top: 8px;
    height: 3px; width: 100%;
    background: rgba(232,197,116,0.15);
    border-radius: 3px; overflow: hidden;
  }
  .song-progress-fill{
    height: 100%; width: 0%;
    background: linear-gradient(to right, var(--gold), var(--accent-2));
    transition: width 0.1s linear;
  }
  .song-play{
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--gold-soft);
    font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  }
  .song-play:hover{ border-color: var(--gold); }
  .song-play:active{ transform: scale(0.9); }
  .song-item.playing .song-play{ background: rgba(232,197,116,0.12); border-color: var(--gold); }

  @media (max-width: 480px){
    .song-item{ padding: 12px 12px 12px 4px; gap: 10px; }
    .song-cover{ width: 48px; height: 48px; border-radius: 10px; }
    .song-title{ font-size: 0.92rem; }
    .song-artist{ font-size: 0.74rem; }
    .song-play{ width: 34px; height: 34px; }
  }

  /* ---------- Letter ---------- */
  #letter{
    background: linear-gradient(180deg, var(--bg-purple) 0%, #180a30 100%);
  }
  .letter-card{
    max-width: 620px;
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(28px, 5vw, 56px);
    position: relative;
  }
  .letter-card::before{
    content: '✦';
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--bg-deep);
    color: var(--gold);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    border: 1px solid var(--line);
  }
  #letter-body{
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 2;
    color: var(--ink);
    white-space: pre-line;
  }
  .letter-sign{
    margin-top: 30px;
    text-align: right;
    color: var(--gold-soft);
    font-family: var(--font-display);
    font-size: 1rem;
  }

  /* ---------- Wishes ---------- */
  #wishes{
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(139,92,246,0.2), transparent 70%), #0c0620;
  }
  /* ---------- Blooming flower ---------- */
  .flower-block{
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 48px;
  }
  .flower-wrap{
    position: relative;
    width: 140px; height: 180px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .flower-stem{
    position: absolute;
    left: 50%; bottom: 0;
    width: 3px; height: 78px;
    margin-left: -1.5px;
    border-radius: 3px;
    background: linear-gradient(to top, #3f7d4e, #5fa06e);
  }
  .flower-leaf{
    position: absolute;
    bottom: 26px;
    width: 26px; height: 14px;
    background: linear-gradient(135deg, #5fa06e, #3f7d4e);
    border-radius: 0 100% 0 100%;
  }
  .leaf-l{ left: calc(50% - 24px); transform: rotate(10deg); }
  .leaf-r{ left: calc(50% - 2px); transform: rotate(-100deg) scaleX(-1); }
  .flower{
    position: absolute;
    left: 50%; bottom: 68px;
    width: 1px; height: 1px;
  }
  .petal{
    position: absolute;
    top: 0; left: 50%;
    width: 15px; height: 32px;
    margin-left: -7.5px;
    border-radius: 50%;
    transform-origin: 50% 100%;
    background: linear-gradient(180deg, var(--gold-soft), var(--accent-2));
    opacity: 0.92;
    transition: transform 1.1s cubic-bezier(.34,1.56,.64,1), opacity 0.7s ease;
    box-shadow: 0 0 10px rgba(217,70,168,0.25);
  }
  .petal-1{ transform: rotate(0deg) scaleY(0.22); }
  .petal-2{ transform: rotate(45deg) scaleY(0.22); }
  .petal-3{ transform: rotate(90deg) scaleY(0.22); }
  .petal-4{ transform: rotate(135deg) scaleY(0.22); }
  .petal-5{ transform: rotate(180deg) scaleY(0.22); }
  .petal-6{ transform: rotate(225deg) scaleY(0.22); }
  .petal-7{ transform: rotate(270deg) scaleY(0.22); }
  .petal-8{ transform: rotate(315deg) scaleY(0.22); }
  .flower-wrap.bloomed .petal-1{ transform: rotate(0deg) scaleY(1); }
  .flower-wrap.bloomed .petal-2{ transform: rotate(45deg) scaleY(1); }
  .flower-wrap.bloomed .petal-3{ transform: rotate(90deg) scaleY(1); }
  .flower-wrap.bloomed .petal-4{ transform: rotate(135deg) scaleY(1); }
  .flower-wrap.bloomed .petal-5{ transform: rotate(180deg) scaleY(1); }
  .flower-wrap.bloomed .petal-6{ transform: rotate(225deg) scaleY(1); }
  .flower-wrap.bloomed .petal-7{ transform: rotate(270deg) scaleY(1); }
  .flower-wrap.bloomed .petal-8{ transform: rotate(315deg) scaleY(1); }
  .flower-center{
    position: absolute;
    top: -6px; left: -6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold));
    box-shadow: 0 0 12px rgba(232,197,116,0.6);
    transform: scale(0.8);
    transition: transform 1.1s cubic-bezier(.34,1.56,.64,1);
  }
  .flower-wrap.bloomed .flower-center{ transform: scale(1.15); }
  .flower-wrap:active .flower{ filter: brightness(1.1); }

  .flower-sparkles{
    position: absolute; inset: -30px;
    pointer-events: none;
  }
  .flower-sparkles span{
    position: absolute;
    top: 30%; left: 50%;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--gold-soft);
    opacity: 0;
  }
  .flower-wrap.bloomed .flower-sparkles span{
    animation: sparkle-burst 0.9s ease-out forwards;
  }
  @keyframes sparkle-burst{
    0%{ opacity: 0; transform: translate(0,0) scale(0.4); }
    15%{ opacity: 1; }
    100%{ opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1); }
  }

  .flower-hint{
    margin-top: 14px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
    transition: opacity 0.4s ease;
  }
  .flower-wrap.bloomed ~ .flower-hint{ opacity: 0; }
  .flower-caption{
    margin-top: 10px;
    max-width: 420px;
    text-align: center;
    color: var(--ink-dim);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.8;
  }

  @media (prefers-reduced-motion: reduce){
    .petal, .flower-center, .flower-sparkles span{ transition: none !important; animation: none !important; }
  }

  #wishes-list{
    list-style: none;
    width: 100%; max-width: 560px;
    display: flex; flex-direction: column;
    gap: 14px;
  }
  #wishes-list li{
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    color: var(--ink-dim);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.7;
    transition: border-color 0.3s ease, transform 0.3s ease, opacity 0.7s ease;
  }
  #wishes-list li:hover{ border-color: var(--gold); transform: translateX(4px); }
  #wishes-list li .icon{ color: var(--gold); flex-shrink: 0; }

  .footer-note{
    margin-top: 60px;
    text-align: center;
    color: var(--ink-dim);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
  }
  .footer-note .heart{ color: var(--gold-soft); }

  /* ================= MUSIC PLAYER ================= */
  #music-player{
    position: fixed;
    left: 18px; bottom: 18px;
    z-index: 80;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px 10px 10px;
    background: rgba(10, 6, 24, 0.65);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    max-width: min(320px, calc(100vw - 36px));
  }
  #music-player.show{ opacity: 1; transform: translateY(0); pointer-events: auto; }

  .mp-art{
    width: 40px; height: 40px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--gold), var(--accent-1));
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    animation: spin 6s linear infinite;
    animation-play-state: paused;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.35) inset;
  }
  .mp-art.playing{ animation-play-state: running; }
  @keyframes spin{ to{ transform: rotate(360deg); } }

  .mp-info{ min-width: 0; flex: 1; }
  .mp-title{
    font-size: 0.78rem; font-weight: 500;
    color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mp-artist{
    font-size: 0.68rem; color: var(--ink-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 5px;
  }
  .mp-progress{
    height: 3px; width: 100%;
    background: rgba(232,197,116,0.15);
    border-radius: 3px; overflow: hidden;
  }
  .mp-progress-fill{
    height: 100%; width: 0%;
    background: linear-gradient(to right, var(--gold), var(--accent-2));
  }
  .mp-toggle{
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--gold-soft);
    font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .mp-toggle:active{ transform: scale(0.9); }

  @media (max-width: 480px){
    nav{
      justify-content: flex-start;
      gap: 20px;
      padding: 14px 20px;
      mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
    }
    nav a{ font-size: 0.66rem; letter-spacing: 0.08em; }
    section{ padding: 110px 18px 80px; }
    .hero-actions{ flex-direction: column; width: 100%; }
    .btn{ width: 100%; justify-content: center; }
    .memory{ grid-template-columns: 52px 1px 1fr; gap: 12px; }
    .gallery-grid{ gap: 10px; }
    .letter-card{ border-radius: 18px; }
    #music-player{ left: 12px; right: 12px; bottom: 12px; max-width: none; }

    /* fix: "Langsung ke Surat" button overlapping "Gulir untuk menyelam" on short mobile screens */
    #surface{ padding-bottom: 140px; }
    .scroll-hint{
      position: static;
      transform: none;
      margin-top: 36px;
    }
  }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    #stars span, .bubble, .scroll-hint .line, .mp-art{ animation: none !important; }
    .reveal{ transition: none; opacity: 1; transform: none; }
  }
