/* ====== WARNA & FONT: ubah di sini ====== */
:root {
  --pink: #d81b60;        /* pink agak gelap */
  --pink-soft: #ff8fb8;
  --pink-light: #ffd1e3;
  --red: #e11d48;
  --black: #0b0207;
  --card: rgba(30, 6, 18, .72);
  --script: 'Great Vibes', cursive;
  --serif: 'Playfair Display', serif;
  --sans: 'Quicksand', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--pink-light); text-align: center;
  background: var(--black); min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
}
body.locked { overflow: hidden; }
[hidden] { display: none !important; }

/* ====== LATAR BERGERAK ====== */
#bgGrad { position: fixed; inset: 0; z-index: 0; transition: background .4s linear; }
#bg, #confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#bg { z-index: 1; }
#confetti { z-index: 90; }
.orb { position: fixed; z-index: 0; border-radius: 50%; opacity: .5; pointer-events: none; will-change: transform; }   /* gradien lembut menggantikan blur (jauh lebih ringan) */
.o1 { width: 55vmax; height: 55vmax; background: radial-gradient(circle, rgba(194, 24, 91, .75) 0%, rgba(194, 24, 91, .3) 40%, rgba(194, 24, 91, 0) 70%); left: -20vmax; top: -15vmax; animation: drift1 24s ease-in-out infinite alternate; }
.o2 { width: 45vmax; height: 45vmax; background: radial-gradient(circle, rgba(179, 0, 45, .75) 0%, rgba(179, 0, 45, .3) 40%, rgba(179, 0, 45, 0) 70%); right: -18vmax; top: 30vh; animation: drift2 30s ease-in-out infinite alternate; }
.o3 { width: 40vmax; height: 40vmax; background: radial-gradient(circle, rgba(122, 15, 79, .85) 0%, rgba(122, 15, 79, .35) 40%, rgba(122, 15, 79, 0) 70%); left: 10vw; bottom: -22vmax; animation: drift3 27s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-22vw, -18vh) scale(.85); } }
@keyframes drift3 { to { transform: translate(24vw, -20vh) scale(1.25); } }

/* ====== TEKS UMUM ====== */
.script { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 11vw, 4.2rem); color: var(--pink-soft); line-height: 1.1; text-shadow: 0 0 22px rgba(255, 60, 130, .55); }
.script.big { font-size: clamp(3.4rem, 15vw, 7rem); }
.title { font-family: var(--serif); font-size: clamp(1.4rem, 5.5vw, 2rem); color: #fff; margin-bottom: 10px; text-shadow: 0 0 18px rgba(255, 60, 130, .5); }
.sub { max-width: 440px; margin: 0 auto 18px; line-height: 1.7; opacity: .9; font-size: .98rem; }
.eyebrow { letter-spacing: 5px; font-size: .72rem; color: var(--pink-soft); font-weight: 700; }
.msg { min-height: 1.6em; margin-top: 12px; font-weight: 600; }
.btn {
  display: inline-block; padding: 14px 30px; border: 0; border-radius: 40px; cursor: pointer;
  font: 700 .95rem var(--sans); color: #fff; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--pink), var(--red)); box-shadow: 0 6px 28px rgba(225, 29, 72, .5);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 34px rgba(255, 40, 100, .65); }
.btn:active { transform: scale(.97); }
.link { background: none; border: 0; color: var(--pink-soft); font: 600 .9rem var(--sans); cursor: pointer; text-decoration: underline; margin-top: 14px; }

/* ====== TAHAPAN (stage) ====== */
.stage {
  position: fixed; inset: 0; z-index: 10; display: none; flex-direction: column;
  align-items: center; justify-content: flex-start; padding: 20px 18px; overflow-y: auto; gap: 4px;
}
.stage > * { flex: none; }
.stage::before, .stage::after { content: ''; flex: 1 0 0; }   /* pemisah supaya isi di tengah, tapi tetap bisa di-scroll di layar pendek */
.stage.active { display: flex; animation: stageIn .7s ease both; }
.stage.leave { animation: stageOut .5s ease both; }
@keyframes stageIn { from { opacity: 0; transform: scale(.96) translateY(14px); } }
@keyframes stageOut { to { opacity: 0; transform: scale(1.04); } }

/* ====== COVER: KADO 3D (BIRU) ====== */
#coverTitle { margin-bottom: 4px; }
.cover-line { font-size: 1.04rem; font-weight: 600; line-height: 1.55; max-width: 320px; text-shadow: 0 0 14px rgba(255, 60, 130, .5); }
.gift3d { position: relative; width: 220px; height: 230px; margin: 8px 0 2px; background: none; border: 0; cursor: pointer; }
.gift-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(70, 150, 255, .5), transparent 65%); animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow { 50% { transform: scale(1.2); opacity: .7; } }
.gscene { position: absolute; inset: 0; perspective: 800px; display: grid; place-items: center; animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.gcube { position: relative; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(30deg); animation: gspin 11s linear infinite; }
@keyframes gspin { to { transform: rotateX(-24deg) rotateY(390deg); } }
.gbase, .glid { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.gbase { --w: 104px; --d: 104px; --h: 84px; transform: translateY(24px); }
.glid { --w: 116px; --d: 116px; --h: 30px; transform: translateY(-34px); transition: transform .9s cubic-bezier(.3, 1.5, .5, 1), opacity .9s; }
.gf { position: absolute; left: 50%; top: 50%; display: block; backface-visibility: hidden; }
.gf.front, .gf.back { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }
.gf.left, .gf.right { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); }
.gf.top, .gf.bottom { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); }
.gf.front { transform: translateZ(calc(var(--d) / 2)); }
.gf.back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.gf.right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.gf.left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.gf.top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.gf.bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
/* warna biru + pita terang; tiap sisi punya tingkat terang berbeda supaya terlihat 3D */
.gf.front { background: linear-gradient(90deg, transparent calc(50% - 12px), rgba(232, 243, 255, .96) calc(50% - 12px), rgba(205, 226, 255, .96) calc(50% + 12px), transparent calc(50% + 12px)), linear-gradient(165deg, #5aa2ff, #2563eb); }
.gf.back { background: linear-gradient(90deg, transparent calc(50% - 12px), rgba(210, 230, 255, .9) calc(50% - 12px), rgba(190, 215, 255, .9) calc(50% + 12px), transparent calc(50% + 12px)), linear-gradient(165deg, #2a5fd0, #1741a8); }
.gf.right { background: linear-gradient(90deg, transparent calc(50% - 12px), rgba(190, 215, 255, .95) calc(50% - 12px), rgba(160, 195, 250, .95) calc(50% + 12px), transparent calc(50% + 12px)), linear-gradient(165deg, #2f6df0, #1b4bc2); }
.gf.left { background: linear-gradient(90deg, transparent calc(50% - 12px), rgba(220, 236, 255, .95) calc(50% - 12px), rgba(200, 222, 255, .95) calc(50% + 12px), transparent calc(50% + 12px)), linear-gradient(165deg, #4d93ff, #2a63dc); }
.gf.top { background: linear-gradient(90deg, transparent calc(50% - 12px), #eaf4ff calc(50% - 12px), #d3e6ff calc(50% + 12px), transparent calc(50% + 12px)), linear-gradient(0deg, transparent calc(50% - 12px), #eaf4ff calc(50% - 12px), #d3e6ff calc(50% + 12px), transparent calc(50% + 12px)), linear-gradient(135deg, #8cc0ff, #4a8dff); }
.gf.bottom { background: #1a3f9a; }
/* pita (bow) di atas tutup */
.bow { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translateY(calc(var(--h) / -2)); }
.bow i { position: absolute; width: 46px; height: 30px; left: -23px; top: -28px; border: 8px solid #eaf4ff; border-radius: 50%; box-sizing: border-box; box-shadow: 0 0 10px rgba(150, 200, 255, .6); }
.bow .l1 { transform: translateX(-17px) rotateZ(-28deg); }
.bow .l2 { transform: translateX(17px) rotateZ(28deg); }
.bow .l3 { transform: rotateY(90deg) translateX(-17px) rotateZ(-28deg); }
.bow .l4 { transform: rotateY(90deg) translateX(17px) rotateZ(28deg); }
.bow b { position: absolute; left: -11px; top: -17px; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #f4f9ff, #bcd7ff); transform: translateZ(0); }
.gift3d.open .glid { transform: translateY(-150px) rotateZ(-22deg) rotateX(24deg); opacity: 0; }
.gift3d.open .gscene { animation: none; transform: scale(1.1); transition: transform .6s; }
.tap { margin-top: 12px; font-size: .98rem; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ====== SANDI (ANGKA) ====== */
.lock { font-size: 3.6rem; filter: drop-shadow(0 0 18px rgba(255, 60, 130, .8)); animation: bobS 3s ease-in-out infinite; }
@keyframes bobS { 50% { transform: translateY(-8px); } }
.lock.shake { animation: shake .5s; }
.lock.unlock { animation: none; transform: scale(1.3) rotate(12deg); transition: .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-12px); } 40%, 80% { transform: translateX(12px); } }
.pin-dots { display: flex; gap: 14px; margin: 6px 0 16px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--pink-soft); transition: .2s; }
.pin-dots i.on { background: #fff; box-shadow: 0 0 12px #ff3d86; transform: scale(1.15); }
.pin-dots.shake { animation: shake .5s; }
.keypad { display: grid; grid-template-columns: repeat(3, 70px); gap: 12px; margin-bottom: 4px; }
.key { width: 70px; height: 62px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .28); cursor: pointer; font: 700 1.5rem var(--serif); color: #fff;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); transition: transform .12s, background .2s; }
.key:hover { background: rgba(255, 60, 130, .35); }
.key:active, .key.press { transform: scale(.9); background: rgba(255, 60, 130, .55); }
.key.fn { font-size: 1.2rem; }
.key.ghost { visibility: hidden; }
input {
  padding: 15px 18px; border-radius: 16px; border: 1px solid rgba(255, 143, 184, .45); outline: none;
  background: rgba(255, 255, 255, .08); color: #fff; font: 600 1rem var(--sans); text-align: center;
}
input:focus { border-color: var(--pink-soft); box-shadow: 0 0 0 4px rgba(255, 60, 130, .25); }

/* ====== PUZZLE GESER (ada satu kotak kosong) ====== */
.board {
  --p: 4px; --g: 4px; --size: min(82vw, 42vh, 400px);
  position: relative; width: var(--size); height: var(--size); flex: none; border-radius: 14px; touch-action: none;
  background: rgba(255, 143, 184, .25); box-shadow: 0 0 40px rgba(255, 60, 130, .35); transition: --g .6s;
}
.board.complete { --p: 0px; --g: 0px; }
.tile {
  --c: 0; --r: 0; --tw: calc((100% - 2 * var(--p) - 2 * var(--g)) / 3);
  position: absolute; width: var(--tw); height: var(--tw); border-radius: 6px; background-size: 300% 300%; cursor: pointer;
  left: calc(var(--p) + var(--c) * (var(--tw) + var(--g))); top: calc(var(--p) + var(--r) * (var(--tw) + var(--g)));
  transition: left .22s ease, top .22s ease, border-radius .6s, opacity .7s;
}
.board.complete .tile { border-radius: 0; }
.tile.ghost { opacity: 0; pointer-events: none; }
.tile.ghost.show { opacity: 1; }
.skip { margin-top: 10px; animation: popIn .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } }

/* ====== MASKOT ====== */
.mascot-wrap { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin-top: 4px; min-height: 96px; flex: none; }
.mascot { width: 76px; height: 96px; overflow: visible; flex: none; }
.bubble {
  position: relative; max-width: min(215px, 58vw); padding: 8px 12px; border-radius: 14px; font-size: .8rem; font-weight: 600;
  line-height: 1.35; text-align: left; background: #fff; color: #4a0a25; margin-bottom: 28px; order: 2;
}
.bubble::before { content: ''; position: absolute; left: -8px; bottom: 14px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.bubble.pop { animation: popIn .4s cubic-bezier(.3, 1.6, .5, 1); }
.m-torso, .m-ear { fill: #ff8fb8; }
.m-all { transform-origin: 60px 140px; animation: hop .7s ease-in-out infinite; }
.m-pupils { animation: look 2.6s ease-in-out infinite; }
.m-lid { transform: translateY(-14px); transition: transform .5s; }
.m-sweat { opacity: 0; }
.m-arm { transform-origin: 60px 90px; }
.m-arm.l { animation: wave 1s ease-in-out infinite; transform-origin: 26px 90px; }
.m-arm.r { animation: wave 1s ease-in-out .5s infinite reverse; transform-origin: 94px 90px; }
.m-foot.r { transform-origin: 74px 130px; }
@keyframes hop { 50% { transform: translateY(-9px) scaleY(1.03); } }
@keyframes look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px) translateY(-2px); } 70% { transform: translateX(4px); } }
@keyframes wave { 50% { transform: rotate(-22deg); } }
@keyframes tap { 50% { transform: rotate(-14deg) translateY(-4px); } }
@keyframes sag { 50% { transform: translateY(3px) scaleY(.97); } }
@keyframes sweatDrop { 0% { opacity: 0; transform: translateY(-6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes shrug { 50% { transform: translateX(6px) rotate(6deg); } }
/* suasana bosan: hop pelan, ketuk kaki, tengok kanan-kiri */
[data-mood="bored"] .m-all { animation: hop 1.5s ease-in-out infinite; }
[data-mood="bored"] .m-foot.r { animation: tap .5s ease-in-out infinite; }
[data-mood="bored"] .m-arm.l, [data-mood="bored"] .m-arm.r { animation-duration: 2s; }
[data-mood="bored"] .m-pupils { animation-duration: 1.6s; }
[data-mood="bored"] .m-lid { transform: translateY(-9px); }
[data-mood="bored"] .m-sweat { animation: sweatDrop 1.8s infinite; }
/* suasana capek: ngantuk, lemas */
[data-mood="tired"] .m-all { animation: sag 2.4s ease-in-out infinite; }
[data-mood="tired"] .m-foot.r { animation: tap .35s ease-in-out infinite; }
[data-mood="tired"] .m-arm.l, [data-mood="tired"] .m-arm.r { animation: none; }
[data-mood="tired"] .m-lid { transform: translateY(-4px); }
[data-mood="tired"] .m-sweat { animation: sweatDrop 1.1s infinite; }
/* suasana menyerah */
[data-mood="giveup"] .m-all { animation: sag 1.8s ease-in-out infinite; transform: translateY(6px); }
[data-mood="giveup"] .m-lid { transform: translateY(-1px); }
[data-mood="giveup"] .m-arm.l, [data-mood="giveup"] .m-arm.r { animation: shrug 1.2s ease-in-out infinite; }
[data-mood="giveup"] .m-pupils { animation: none; transform: translateY(2px); }
[data-mood="happy"] .m-all { animation: hop .4s ease-in-out infinite; }

/* ====== OVERLAY / KARTU ====== */
.overlay { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 0, 4, .78); backdrop-filter: blur(6px); animation: stageIn .4s ease both; }
.card { max-width: 420px; width: 100%; padding: 28px 22px; border-radius: 24px; background: var(--card); border: 1px solid rgba(255, 143, 184, .4); box-shadow: 0 0 50px rgba(255, 60, 130, .4); }
.card h3 { font-family: var(--serif); color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.card p { line-height: 1.7; margin-bottom: 20px; }
.card p.tiny { font-size: .8rem; opacity: .85; margin-bottom: 8px; }

/* ====== TIC TAC TOE ====== */
.talk { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 4px auto 14px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .09); text-align: left; font-weight: 600; font-size: .92rem; line-height: 1.45; min-height: 58px; }
.who { flex: none; padding: 4px 10px; border-radius: 20px; background: var(--pink); color: #fff; font-size: .78rem; }
.ttt { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 8px; width: min(78vw, 40vh, 340px); height: min(78vw, 40vh, 340px); }
.cell { border: 0; border-radius: 16px; cursor: pointer; font-size: clamp(2rem, 11vw, 3.4rem); background: rgba(255, 255, 255, .09); color: #fff; transition: .2s; box-shadow: inset 0 0 0 1px rgba(255, 143, 184, .3); }
.cell:hover:not(:disabled) { background: rgba(255, 60, 130, .3); transform: scale(1.04); }
.cell:disabled { cursor: default; }
.cell.x { color: #ff5a8e; text-shadow: 0 0 18px #ff2e73; }
.cell.o { position: relative; }
.cell.o::after { content: ''; position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: clamp(6px, 1.7vw, 9px) solid #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .85), inset 0 0 10px rgba(255, 255, 255, .5); }
.cell.mark { animation: popIn .35s cubic-bezier(.3, 1.6, .5, 1); }
.cell.win { background: rgba(225, 29, 72, .55); animation: pulseWin .6s ease-in-out infinite alternate; }
@keyframes pulseWin { to { transform: scale(1.08); } }

/* ====== HALAMAN UTAMA ====== */
main { position: relative; z-index: 5; }
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 520px; }
/* kotak galaksi = tinggi layar + tambahan (--ext) di bawahnya; bagian tambahan memudar halus ke transparan */
/* kabut besar di belakang galaksi (elips pipih; statis, jadi ringan) */
.galaxy-haze { position: absolute; left: 50%; top: calc((100% - var(--ext, 0px)) / 2); width: var(--hw, 800px); height: var(--hh, 400px); transform: translate(-50%, -50%); z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 60, 130, .34), rgba(255, 60, 130, .14) 50%, rgba(255, 60, 130, 0) 100%); }
.hero-fx { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + var(--ext, 0px)); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--ext, 0px) * .8), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--ext, 0px) * .8), transparent 100%); }
#galaxy { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.orbit { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orbit .orbit-card { pointer-events: auto; }
#orbitBack { z-index: 1; }
/* cahaya yang keluar dari love (dikerjakan GPU supaya ringan) */
.heart-glow { position: absolute; left: 50%; top: calc((100% - var(--ext, 0px)) / 2); z-index: 0; pointer-events: none; border-radius: 50%; will-change: transform;
  transform: translate(-50%, -50%); width: var(--gs, 400px); height: var(--gs, 400px);
  background: radial-gradient(circle, rgba(255, 40, 100, .95) 0%, rgba(255, 28, 90, .5) 30%, rgba(255, 28, 90, 0) 68%); }
.heart-glow.far { opacity: .8; }
#orbitFront { z-index: 3; }
.hero-text { position: absolute; top: 5.5vh; left: 0; right: 0; z-index: 400; pointer-events: none; }
.hero-text .eyebrow { margin-bottom: 2px; text-shadow: 0 0 12px #000; }
.hero-text .script { text-shadow: 0 0 24px rgba(255, 40, 120, .9), 0 2px 10px #000; }
.scroll-hint { position: absolute; bottom: 3vh; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92vw; padding: 7px 16px; border-radius: 30px; background: rgba(0, 0, 0, .45); z-index: 400; font-size: .9rem; font-weight: 600; pointer-events: none; animation: bounceHint 1.8s ease-in-out infinite; text-shadow: 0 0 10px #000; }
@keyframes bounceHint { 50% { transform: translate(-50%, -8px); } }
/* kartu kecil yang mengitari love (ketuk untuk membaca isinya) */
.orbit-card {
  position: absolute; left: 0; top: 0; border: 0; cursor: pointer; padding: 2px; border-radius: 4px;
  background: rgba(255, 255, 255, .95); outline: 1.5px solid rgba(255, 120, 170, .75); will-change: transform;
  transform-origin: center; display: flex; line-height: 1;
}
.orbit-card::after { content: ''; position: absolute; inset: -10px; }   /* area ketuk lebih lebar untuk jari */
.orbit-card .pic { flex: 1; border-radius: 3px; background: linear-gradient(135deg, #ff4d88, #8e0a3c) center/cover; display: flex; align-items: center; justify-content: center; font-size: 1em; }
.orbit-card.note { background: linear-gradient(145deg, #ff6b9d, #c2185b); justify-content: center; align-items: center; outline-color: rgba(255, 80, 140, .9); }
.orbit-card.note::before { content: '💌'; font-size: 1em; }
.modal-card .modal-pic { height: min(46vh, 300px); border-radius: 16px; margin-bottom: 18px; background: linear-gradient(135deg, #ff4d88, #8e0a3c) center/cover; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.modal-card.note-mode .modal-pic { display: none; }
.modal-card #modalText { font-family: var(--serif); font-size: 1.15rem; color: #fff; }

.block { position: relative; padding: 80px 20px; max-width: 760px; margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(50px); transition: 1s cubic-bezier(.2, .8, .2, 1); }
.reveal.show { opacity: 1; transform: none; }
.glass { background: rgba(255, 255, 255, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 10px 40px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; }

/* ====== PEMUTAR MUSIK ====== */
.player { border-radius: 24px; padding: 18px; text-align: left; }
.now { display: flex; align-items: center; gap: 14px; }
.disc { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: conic-gradient(from 0deg, #ff4d88, #7a0f3f, #ff8fb8, #e11d48, #ff4d88); box-shadow: 0 0 22px rgba(255, 60, 130, .6); }
.disc.spin { animation: spinM 4s linear infinite; }
.now-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.now-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-text small { opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 1.1rem; background: linear-gradient(135deg, var(--pink), var(--red)); box-shadow: 0 4px 18px rgba(225, 29, 72, .6); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 16px 0 4px; padding: 0; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .25); box-shadow: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #ff3d86; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.times { display: flex; justify-content: space-between; font-size: .75rem; opacity: .7; }
.tracks { display: grid; gap: 10px; margin-top: 14px; }
.track { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; cursor: pointer; font: inherit; text-align: left; transition: .25s; }
.track:hover { transform: translateX(4px); background: rgba(255, 255, 255, .16); }
.track.active { background: rgba(255, 60, 130, .3); border-color: rgba(255, 170, 200, .8); }
.tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tt small { opacity: .75; }
.go { opacity: .7; }
.eq { display: flex; align-items: flex-end; gap: 3px; width: 18px; height: 18px; }
.eq i { flex: 1; height: 30%; background: #ffd1e3; border-radius: 2px; }
.track.active.playing .eq i { animation: eq .8s ease-in-out infinite alternate; }
.track.active.playing .eq i:nth-child(2) { animation-delay: .25s; }
.track.active.playing .eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { to { height: 100%; } }

/* ====== KARTU UCAPAN ====== */
.letter { border-radius: 28px; padding: 34px 24px 28px; text-align: left; }
.letter .title { text-align: center; margin-bottom: 20px; }
.letter p { line-height: 1.9; margin-bottom: 14px; color: #fff; }
.mini { margin: 26px auto 22px; padding: 18px 20px; max-width: 86%; border-radius: 20px; text-align: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(10px); box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 28px rgba(255, 60, 130, .35); }
.mini p { margin: 0; font-weight: 700; font-size: .95rem; }
.sign { text-align: right; font-family: var(--script); font-size: 1.9rem; color: var(--pink-light) !important; margin: 4px 6px 0 !important; }

/* ====== FOTO POLAROID ====== */
.polaroids { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 14px; padding: 20px 0 10px; }   /* HP: 2 foto per baris */
@media (min-width: 800px) { .polaroids { grid-template-columns: repeat(3, 1fr); gap: 34px 22px; } }   /* laptop: 3 foto per baris */
.polaroid { background: #fff; padding: 8px 8px 0; border-radius: 4px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(255, 60, 130, .3); transform: rotate(var(--r, 0deg)); opacity: 0; translate: 0 60px; transition: 1s cubic-bezier(.2, .8, .2, 1), rotate .3s; cursor: pointer; border: 0; text-align: center; }
.polaroid.show { opacity: 1; translate: 0 0; }
.polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 3; }
.polaroid .ph { aspect-ratio: 1; background: linear-gradient(135deg, #ff4d88, #8e0a3c) center/cover; display: grid; place-items: center; font-size: 2.6rem; }
.polaroid .cap { display: flex; align-items: center; justify-content: center; min-height: 78px; padding: 10px 4px 12px; color: #4a0a25; font-family: var(--script); font-size: 1.05rem; line-height: 1.2; }
@media (min-width: 800px) { .polaroid .ph { font-size: 3.6rem; } .polaroid .cap { min-height: 96px; font-size: 1.3rem; } }
.thanks { max-width: 520px; margin: 50px auto 0; line-height: 1.9; font-size: 1.05rem; color: #fff; text-shadow: 0 0 18px rgba(255, 60, 130, .6); }

/* ====== OUR JOURNEY ====== */
.journey { position: relative; padding-left: 58px; margin-top: 24px; text-align: left; }
.jline { position: absolute; left: 20px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); }
.jfill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 4px; background: linear-gradient(180deg, #ff8fb8, #ff2e73, #ff8fb8, #ff2e73); background-size: 100% 300%; animation: flow 2.4s linear infinite; box-shadow: 0 0 14px 2px rgba(255, 46, 115, .85); }
.jfill::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px rgba(255, 60, 130, .95); }
@keyframes flow { to { background-position: 0 -300%; } }
.step { position: relative; margin-bottom: 34px; padding: 18px 20px; border-radius: 20px; opacity: 0; transform: translateX(46px); transition: .9s cubic-bezier(.2, .8, .2, 1); }
.step.show { opacity: 1; transform: none; }
.step::before { content: '♥'; position: absolute; left: -49px; top: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #2a0614; color: rgba(255, 255, 255, .35); border: 2px solid rgba(255, 255, 255, .25); font-size: .9rem; transition: .5s; }
.step.lit::before { color: #fff; background: #e11d48; border-color: #ff8fb8; box-shadow: 0 0 18px rgba(255, 46, 115, .95); transform: scale(1.15); }
.step small { color: var(--pink-soft); font-weight: 700; letter-spacing: 1px; font-size: .75rem; text-transform: uppercase; }
.step h3 { font-family: var(--serif); margin: 4px 0 6px; font-size: 1.15rem; }
.step p { line-height: 1.7; opacity: .92; font-size: .95rem; }

/* ====== POT BUNGA ====== */
.pot { width: min(380px, 94%); height: auto; overflow: visible; margin-top: 4px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45)); }
.sway { animation: sway 4s ease-in-out infinite alternate; cursor: pointer; transform-box: view-box; }
@keyframes sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
.head { transform-box: fill-box; transform-origin: center; transition: filter .25s; }
.sway:hover .head { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, .8)); }
.head.pop { animation: flowerPop .6s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes flowerPop { 40% { transform: scale(1.5) rotate(25deg); } }
.flower-msg { min-height: 3.4em; margin-top: 14px; font-weight: 700; line-height: 1.6; color: #fff; text-shadow: 0 0 16px rgba(255, 60, 130, .7); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 85; pointer-events: none; }
#tint { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; }
#tint.flash { animation: tintFlash 2.6s ease-out; }
@keyframes tintFlash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
#toast { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 99; max-width: 88vw; padding: 12px 18px; border-radius: 30px; background: rgba(20, 2, 10, .92); border: 1px solid var(--pink-soft); color: #fff; font-weight: 600; font-size: .88rem; text-align: center; }

/* ====== PENUTUP ====== */
.end { padding: 120px 20px 170px; }
.end .script { text-shadow: 0 0 30px rgba(255, 40, 120, .95), 0 0 60px rgba(255, 40, 120, .5); }
.closing-body { max-width: 520px; margin: 34px auto 0; }
.closing-body p { margin-bottom: 20px; line-height: 2; font-size: 1.08rem; color: #fff; text-shadow: 0 0 18px rgba(255, 60, 130, .6), 0 2px 8px rgba(0, 0, 0, .5); }
.closing-sign { margin-top: 28px; font-family: var(--script); font-size: 2rem; color: var(--pink-soft); text-shadow: 0 0 18px rgba(255, 60, 130, .8); }

/* ====== LAYAR PEMBUKA "ORBIT TERBUKA!" ====== */
.orbit-intro { position: fixed; inset: 0; z-index: 92; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(40, 4, 24, .22), rgba(14, 1, 9, .5));     /* tipis & transparan; kaburnya dari galaksi yang diburamkan sekali */
  animation: oiFade var(--dur, 5s) ease both; }
/* kabur = foto galaksi kecil yang diperbesar (lihat Galaxy.snapshotBlur), bukan backdrop-filter yang berat */
.hero-text, .scroll-hint { transition: opacity .6s ease; }
.hero.intro .hero-text, .hero.intro .scroll-hint { opacity: 0; }       /* judul disembunyikan sementara; muncul lagi setelah pembuka */
body.intro-on .orb { animation-play-state: paused; }                    /* animasi latar diam selama pembuka (hemat tenaga) */
@keyframes oiFade { 0% { opacity: 0; } 16% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.oi-title { font-family: var(--script); font-size: clamp(3.2rem, 16vw, 6.4rem); line-height: 1.05; color: #fff;
  text-shadow: 0 0 22px rgba(255, 60, 130, .95), 0 0 60px rgba(255, 40, 120, .6); animation: oiPop 1.1s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes oiPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.oi-sub { font-family: var(--serif); letter-spacing: 3px; color: var(--pink-light); font-size: clamp(.95rem, 4vw, 1.3rem); text-shadow: 0 0 14px rgba(255, 60, 130, .7); animation: oiSub .9s ease .5s both; }
@keyframes oiSub { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ====== TOMBOL MUSIK ====== */
#musicBtn { position: fixed; right: 14px; bottom: 14px; z-index: 95; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--pink-soft); background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.2rem; cursor: pointer; }
#musicBtn.spin { animation: spinM 4s linear infinite; }
@keyframes spinM { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .orb, .gift, .lock, .scroll-hint { animation: none; }
}

/* bunga: hilangkan bingkai fokus saat diketuk, tetap ada untuk pengguna keyboard */
.sway:focus { outline: none; }
.sway:focus-visible .head { filter: drop-shadow(0 0 8px #fff); }
.board.instant .tile { transition: none; }
.card .btn { white-space: nowrap; padding: 14px 20px; max-width: 100%; }

/* cegah halaman bergeser ke samping (mis. kartu yang masih menunggu muncul dari sisi kanan) */
html, body { overflow-x: hidden; }
main { overflow-x: clip; }
