/* ==========================================================
   UNDANGAN PIXEL — Andira & Alvito
   Semua ukuran di dalam panggung memakai satuan cqw (lebar panggung)
   sehingga tampilan identik di HP maupun laptop.
   ========================================================== */
@font-face {
  font-family: "Jersey 10";
  src: url("../assets/fonts/Jersey10.woff2") format("woff2");
  font-display: swap;
}
/* DotGothic16: teks isi (huruf & angka jelas). Press Start 2P: judul pendek ala game. Keduanya OFL. */
@font-face {
  font-family: "DotGothic16";
  src: url("../assets/fonts/DotGothic16.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("../assets/fonts/PressStart2P.woff2") format("woff2");
  font-display: swap;
}

:root {
  --sky: #5aaee3;
  --cream: #fff3dc;
  --brown: #6b3f35;
  --ink: #3b2a22;
  --ribbon: #b5524e;
  --gold: #f0c15a;
  --gold-dark: #b07a2a;
  --font: "DotGothic16", ui-monospace, monospace;
  --font-head: "Press Start 2P", "DotGothic16", monospace;
  --font-sign: "Jersey 10", "DotGothic16", monospace;
  --px: 4px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #2b1d18;
  overflow: hidden;
  font-family: var(--font);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
img, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
button { font: inherit; color: inherit; }

/* ---------- Latar aula (laptop) ---------- */
#hall { position: fixed; inset: 0; display: block; z-index: 0; }

/* ---------- Panggung 9:16 ---------- */
#device {
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 9vh;
  height: 87vh;
  aspect-ratio: 9 / 16;
  transform: translateX(-50%);
  background: #1d1410;
  container-type: size;
  box-shadow:
    0 0 0 var(--px) #3b2a1a,
    0 0 0 calc(var(--px) * 2) var(--gold),
    0 0 0 calc(var(--px) * 3) var(--gold-dark),
    0 0 0 calc(var(--px) * 4) #3b2a1a,
    calc(var(--px) * 2) calc(var(--px) * 3) 0 calc(var(--px) * 4) rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
@media (max-aspect-ratio: 4/5), (max-width: 640px) {
  #hall { display: none; }
  #device {
    left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh;
    aspect-ratio: auto; transform: none; box-shadow: none;
  }
}

#scroller {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
  background: #ede3d1;
}
#scroller::-webkit-scrollbar { display: none; }

/* ---------- Halaman & layer ---------- */
.page {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1920;
  overflow: hidden;
}
.L { position: absolute; }
.L > img, .L > .hop > img { display: block; width: 100%; height: 100%; }
.hop { width: 100%; height: 100%; }

/* Sprite sheet wajah: [normal, kiri, kanan, kedip] */
.face {
  width: 100%; height: 100%;
  background-size: 400% 100%;
  background-repeat: no-repeat;
  background-position: 0% 0;
  image-rendering: pixelated;
}
.face.f-kiri  { background-position: 33.3333% 0; }
.face.f-kanan { background-position: 66.6667% 0; }
.face.f-kedip { background-position: 100% 0; }

/* ---------- Teks ---------- */
.txt { position: absolute; font-family: var(--font); text-align: center; line-height: 1.2; }

.salam {
  left: 10%; right: 10%; top: 7%; bottom: 25%;
  display: flex; flex-direction: column; justify-content: center; gap: 1cqw;
  color: var(--brown);
}
.salam { font-family: var(--font-sign); }
.salam b { font-size: 5cqw; font-weight: 400; letter-spacing: .03em; line-height: 1; }
.salam span { font-size: 3.7cqw; line-height: 1.05; letter-spacing: .02em; }

.papan {
  left: var(--bx); top: var(--by); width: var(--bw); height: var(--bh);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2cqw; padding: 0 9%;
  text-wrap: balance;
  color: var(--cream);
}
.papan { font-family: var(--font-sign); }
.papan b {
  font-size: var(--name, 5.3cqw); font-weight: 400; line-height: .95; letter-spacing: .02em;
  text-shadow: .35cqw .35cqw 0 #6e3424, -.2cqw 0 0 #6e3424;
}
.papan span { font-size: var(--sub, 3.7cqw); line-height: 1.02; letter-spacing: .02em; text-wrap: balance; }

.label-bingkai {
  left: var(--lx); top: var(--ly);
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: 3.6cqw; color: var(--brown);
  white-space: nowrap;
}

.std {
  left: 2%; top: 31%; width: 96%; height: 66%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.3cqw; color: var(--cream);
}
.std b {
  font-family: var(--font-head); font-size: 2.9cqw; white-space: nowrap;
  text-shadow: .35cqw .35cqw 0 #6e4a2c;
}
.std b::before, .std b::after { content: "♥"; font-family: var(--font); color: #f4a3b8; margin: 0 1.2cqw; font-size: 2.6cqw; }
.scratch {
  position: relative;
  padding: 1.2cqw 2.4cqw .9cqw;
  touch-action: none;
  background: rgba(70, 40, 22, .35);
  box-shadow: inset 0 .5cqw 0 rgba(0,0,0,.25), 0 0 0 .5cqw #8a5a34;
}
.scratch .date {
  font-family: var(--font-head);
  font-size: 4.1cqw; white-space: nowrap;
  text-shadow: .4cqw .4cqw 0 #6e4a2c;
  display: inline-block;
}
.scratch-cover {
  position: absolute; inset: 0;
  image-rendering: pixelated;
  cursor: grab;
  touch-action: none;
}
.scratch.revealed .date { animation: datePop .9s steps(6, jump-none) both; }
/* tanggal tidak pernah terlihat sebelum lapisan emas siap */
.scratch:not(.has-cover):not(.revealed) .date { visibility: hidden; }
.scratch-hint {
  font-family: var(--font-sign);
  font-size: 4cqw; letter-spacing: .03em; color: var(--cream);
  text-shadow: .3cqw .3cqw 0 #6e4a2c;
  animation: hintBlink 1.2s steps(2, jump-none) infinite;
}
.std.revealed .scratch-hint { visibility: hidden; }
@keyframes hintBlink { 50% { opacity: .35; } }
@keyframes datePop {
  0% { transform: scale(.6); }
  40% { transform: scale(1.25); }
  70% { transform: scale(.95); }
  100% { transform: scale(1); }
}

/* ---------- Tombol pixel ---------- */
.btn-pixel {
  position: absolute;
  display: inline-flex; align-items: center; gap: 2cqw;
  padding: 1.8cqw 3cqw;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-sign);
  font-size: 4.6cqw; line-height: .95; text-align: left; letter-spacing: .03em;
  text-decoration: none;
  box-shadow:
    0 -.6cqw 0 0 var(--ink), 0 .6cqw 0 0 var(--ink),
    -.6cqw 0 0 0 var(--ink), .6cqw 0 0 0 var(--ink),
    inset 0 -.8cqw 0 0 #e8cfa6,
    .6cqw 1.4cqw 0 0 rgba(59, 42, 34, .35);
  cursor: pointer;
}
.btn-pixel img { width: 6.5cqw; }
.btn-pixel:active { transform: translateY(.6cqw); }
#btn-kalender { left: 6%; top: 87.2%; }
#btn-kalender.nudge { animation: nudge .8s steps(4, jump-none) 3; }
@keyframes nudge { 25% { transform: translateY(-1.2cqw); } 50% { transform: translateY(0); } 75% { transform: translateY(-.6cqw); } }

/* ==========================================================
   REVEAL saat di-scroll (.page.in) — gerak patah-patah ala game
   ========================================================== */
.rv { opacity: 0; }
.page.in .rv { opacity: 1; }

.page.in .drop-in    { animation: dropIn .6s var(--d, 0s) steps(6, jump-none) both; }
.page.in .pop-in     { animation: popIn .45s var(--d, 0s) steps(5, jump-none) both; }
.page.in .fade-in    { animation: fadeIn .3s var(--d, 0s) steps(3, jump-none) both; }
.page.in .swing-drop { transform-origin: var(--ox, 50%) 5%; animation: swingDrop 1.1s var(--d, 0s) steps(11, jump-none) both, idleSwing 4s calc(var(--d, 0s) + 1.1s) steps(8, jump-none) infinite; }
.page.in .fly-in-r   { animation: flyInR .9s var(--d, 0s) steps(9, jump-none) both; }
.page.in .fly-in-l   { animation: flyInL .9s var(--d, 0s) steps(9, jump-none) both; }
.page.in .float-heart { animation: popIn .4s var(--d, 0s) steps(4, jump-none) both, floaty 2.4s calc(var(--d, 0s) + .4s) steps(4, jump-none) infinite; }
.page.in .grow-vine  { animation: growVine 1.1s var(--d, 0s) steps(8, jump-none) both; }
.page.in .rope-drop  { transform-origin: 50% 0; animation: ropeDrop 1s var(--d, 0s) steps(10, jump-none) both, idleSwing 6s calc(var(--d, 0s) + 1s) steps(10, jump-none) infinite; }
.page.in .face.breathe, .couple.breathe { animation: breathe 2.6s var(--breathe-delay, 0s) steps(1) infinite; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes swingDrop {
  0% { transform: translateY(-40%) rotate(-24deg); opacity: 0; }
  15% { opacity: 1; }
  32% { transform: translateY(0) rotate(16deg); }
  50% { transform: rotate(-9deg); }
  68% { transform: rotate(5deg); }
  84% { transform: rotate(-2deg); }
  100% { transform: rotate(0); opacity: 1; }
}
@keyframes dropIn {
  0% { transform: translateY(-160%); opacity: 1; }
  60% { transform: translateY(8%); }
  80% { transform: translateY(-4%); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes popIn {
  0% { transform: scale(.3); opacity: 0; }
  50% { transform: scale(1.12); opacity: 1; }
  75% { transform: scale(.95); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes swingInR {
  0% { transform: translateX(110%) rotate(-30deg); opacity: 1; }
  35% { transform: translateX(0) rotate(14deg); }
  55% { transform: rotate(-8deg); }
  72% { transform: rotate(4deg); }
  86% { transform: rotate(-2deg); }
  100% { transform: rotate(0); opacity: 1; }
}
@keyframes swingInL {
  0% { transform: translateX(-110%) rotate(30deg); opacity: 1; }
  35% { transform: translateX(0) rotate(-14deg); }
  55% { transform: rotate(8deg); }
  72% { transform: rotate(-4deg); }
  86% { transform: rotate(2deg); }
  100% { transform: rotate(0); opacity: 1; }
}
@keyframes idleSwing {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(1.2deg); }
  75% { transform: rotate(-1.2deg); }
}
@keyframes flyInR {
  0% { transform: translate(180%, -120%) rotate(-12deg); opacity: 1; }
  20% { transform: translate(140%, -80%) rotate(8deg); }
  40% { transform: translate(95%, -95%) rotate(-10deg); }
  60% { transform: translate(50%, -45%) rotate(8deg); }
  80% { transform: translate(10%, -20%) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(0); opacity: 1; }
}
@keyframes flyInL {
  0% { transform: translate(-180%, -120%) rotate(12deg); opacity: 1; }
  20% { transform: translate(-140%, -80%) rotate(-8deg); }
  40% { transform: translate(-95%, -95%) rotate(10deg); }
  60% { transform: translate(-50%, -45%) rotate(-8deg); }
  80% { transform: translate(-10%, -20%) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0); opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18%) scale(1.08); }
}
@keyframes growVine {
  0% { clip-path: inset(0 0 0 100%); opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes ropeDrop {
  0% { transform: translateY(-220%); opacity: 1; }
  55% { transform: translateY(6%) rotate(0); }
  70% { transform: translateY(-3%) rotate(3deg); }
  85% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}
/* burung: lompat (dipicu JS) + kepak sayap dari sprite bersama */
.hop.jump { animation: jump .5s steps(5, jump-none); }
@keyframes jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14%); } 70% { transform: translateY(-6%); } }
.bird {
  width: 100%; height: 100%;
  background: url("../assets/umum/burung.png") 0 0 / 300% 100% no-repeat;
  image-rendering: pixelated;
}
.bird.f1 { background-position: 50% 0; }
.bird.f2 { background-position: 100% 0; }
.bird.flip { transform: scaleX(-1); }

/* potret diperbesar di dalam jendela */
.clip { overflow: hidden; }
.zoom { position: absolute; transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--zoom, 1)); transform-origin: 50% var(--zy, 80%); }
.kayu { position: absolute; inset: 0; }
.kayu > img { display: block; width: 100%; height: 100%; }
canvas.couple, canvas.wind { display: block; width: 100%; height: 100%; }
canvas.wind { position: absolute; inset: 0; }
/* burung melayang di langit: kepak terus + naik turun */
.hop.hover { animation: hover 1.4s steps(4, jump-none) infinite alternate; }
@keyframes hover { from { transform: translateY(-5%); } to { transform: translateY(7%); } }

/* bintang jatuh */
.sky-fx { position: absolute; overflow: hidden; pointer-events: none; }
.shoot {
  position: absolute; width: 15cqw;
  animation: shoot 1s steps(10, jump-none) forwards;
}
@keyframes shoot {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(-45cqw, 22cqw); opacity: 0; }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(.45%); }
}

/* ---------- animasi idle umum ---------- */
.drift-slow { animation: driftSlow 14s steps(14, jump-none) infinite alternate; }
@keyframes driftSlow { from { transform: translateX(-1.5%); } to { transform: translateX(1.5%); } }
.twinkle { animation: twinkle 1.8s steps(1) infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 33% { transform: scale(.7) rotate(45deg); opacity: .8; } 66% { transform: scale(1.15); opacity: 1; } }

/* ==========================================================
   COVER
   ========================================================== */
#cover {
  position: absolute; inset: 0; z-index: 5;
  overflow: hidden;
  background: #5aaee3;
}
.cover-art {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, calc(100cqh * 9 / 16));
  aspect-ratio: 9 / 16;
  transform: translate(-50%, -50%);
  container-type: inline-size;
}
.pan-sky { animation: panSky 16s steps(16, jump-none) infinite alternate; }
@keyframes panSky { from { transform: scale(1.05) translateX(-1.2%); } to { transform: scale(1.05) translateX(1.2%); } }
.drift-front { animation: driftFront 7s steps(14, jump-none) infinite alternate; }
@keyframes driftFront { from { transform: translateX(-2.5%); } to { transform: translateX(2.5%); } }
.sway-bow { transform-origin: 50% 25%; animation: swayBow 3s steps(6, jump-none) infinite alternate; }
@keyframes swayBow { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.peek-cats { animation: peekCats 5s steps(1) infinite; }
@keyframes peekCats {
  0%, 55% { transform: translateY(0); }
  58% { transform: translateY(30%); }
  61%, 72% { transform: translateY(70%); }
  75% { transform: translateY(30%); }
  78%, 100% { transform: translateY(0); }
}
#btn-open {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  animation: pulseBtn 1.4s steps(1) infinite;
}
#btn-open > img { pointer-events: none; }
@keyframes pulseBtn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
#btn-open:active, #btn-open.pressed { animation: none; transform: scale(.94) translateY(2%); }
.open-label {
  position: absolute; left: 0; right: 0; top: 36%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 2.2cqw; color: #6b4a2a; white-space: nowrap;
  pointer-events: none;
}
.title-shine { animation: titleIn 1.4s steps(7, jump-none) both, titleFloat 3s 1.4s steps(2, jump-none) infinite; }
@keyframes titleIn { from { transform: translateY(-20%) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes titleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2.5%); } }

.petals, .sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -4%;
  animation: petalFall var(--dur, 9s) var(--delay, 0s) linear infinite;
}
@keyframes petalFall {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(var(--sx), 50cqw) rotate(90deg); }
  50% { transform: translate(0, 100cqw) rotate(180deg); }
  75% { transform: translate(var(--sx), 150cqw) rotate(270deg); }
  100% { transform: translate(0, 200cqw) rotate(360deg); }
}
.spark {
  position: absolute; width: 3.2cqw;
  animation: spark 2.4s var(--delay, 0s) steps(1) infinite;
  opacity: 0;
}
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(.5); } 10% { opacity: 1; transform: scale(1); } 20% { opacity: 1; transform: scale(.6) rotate(45deg); } 30% { opacity: 0; } }

/* Hati kecil saat mempelai saling lirik */
.love-pop {
  position: absolute; width: 4.5cqw; pointer-events: none; z-index: 3;
  animation: lovePop 1.6s steps(8, jump-none) forwards;
}
@keyframes lovePop {
  0% { transform: translateY(0) scale(.4); opacity: 0; }
  20% { transform: translateY(-20%) scale(1.2); opacity: 1; }
  100% { transform: translateY(-260%) scale(1); opacity: 0; }
}

/* ---------- Transisi buka undangan ---------- */
#cover.opening .cover-art {
  transform-origin: 50% 54%;
  animation: zoomArch 1.1s steps(11, jump-none) forwards;
}
@keyframes zoomArch {
  to { transform: translate(-50%, -50%) scale(2.8); filter: brightness(1.5); }
}
#cover.gone { display: none; }
#wipe {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  display: none; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(16, 1fr);
}
#wipe.in, #wipe.out { display: grid; }
#wipe .blk { transform: scale(0); background: var(--c, #fff3dc); }
#wipe.in .blk { animation: blkIn .3s var(--delay) steps(3, jump-none) forwards; }
#wipe.out .blk { transform: scale(1.02); animation: blkOut .3s var(--delay) steps(3, jump-none) forwards; }
@keyframes blkIn { to { transform: scale(1.02); } }
@keyframes blkOut { from { transform: scale(1.02); } to { transform: scale(0); } }

/* ---------- Konfeti ---------- */
.burst-bit {
  position: absolute; z-index: 9; pointer-events: none;
  transform: translate(-50%, -50%);
  animation: burst 1.6s steps(12, jump-none) forwards;
}
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  45% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + var(--fall))) scale(.8) rotate(180deg); opacity: 0; }
}

/* ---------- Tombol musik & petunjuk gulir ---------- */
.hud {
  position: absolute; z-index: 7; left: 2.6cqw; top: 3cqw;
  display: flex; flex-direction: column; gap: 2.6cqw;
}
.hud[hidden] { display: none; }
.hud-btn {
  width: 8.8cqw; height: 8.8cqw; padding: 0; border: 0; cursor: pointer;
  background: var(--cream);
  display: grid; place-items: center;
  box-shadow:
    0 -.6cqw 0 0 var(--ink), 0 .6cqw 0 0 var(--ink),
    -.6cqw 0 0 0 var(--ink), .6cqw 0 0 0 var(--ink),
    inset 0 -.8cqw 0 0 #e8cfa6;
}
.hud-btn:active { transform: translateY(.5cqw); }
.hud-btn img { width: 5.2cqw; }
#btn-music.on img { animation: noteBop .9s steps(2, jump-none) infinite; }
@keyframes noteBop { 50% { transform: translateY(-12%) rotate(-8deg); } }
.btn-inline { position: relative; margin-top: 6cqw; }

.scroll-hint {
  position: absolute; z-index: 6; left: 50%; bottom: 3cqw;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6cqw;
  font-size: 3.1cqw; color: var(--cream);
  background: rgba(59, 42, 34, .82);
  padding: 1.2cqw 3cqw .8cqw;
  pointer-events: none;
}
.scroll-hint img { width: 5.5cqw; animation: bounceDown 1s steps(2, jump-none) infinite; }
.scroll-hint.hide { display: none; }
@keyframes bounceDown { 50% { transform: translateY(40%); } }

#toast {
  position: absolute; z-index: 10; left: 50%; bottom: 8cqw;
  transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  font-size: 3.2cqw; padding: 2cqw 4cqw;
  opacity: 0; pointer-events: none; white-space: nowrap;
}
#toast.show { animation: toast 2.2s steps(1) forwards; }
@keyframes toast { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* ==========================================================
   HAL 3 — Gulungan Ar-Rum + hitung mundur
   ========================================================== */
.page.in .unroll    { animation: unroll 1.3s var(--d, 0s) steps(13, jump-none) both; }
.page.in .grow-down { animation: growDown 1.2s var(--d, 0s) steps(10, jump-none) both; }
@keyframes unroll { from { clip-path: inset(0 0 100% 0); opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes growDown { from { clip-path: inset(0 0 100% 0); opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.ayat { display: flex; flex-direction: column; gap: 2.6cqw; color: #4a2e1f; padding-right: 1cqw; }
.ayat-judul {
  margin: 0; text-align: center;
  font-family: var(--font-head); font-weight: 400; font-size: 3.6cqw; color: #5b3320;
}
.ayat-isi {
  margin: 0; font-family: var(--font-sign); font-size: 4.85cqw; line-height: 1.1;
  letter-spacing: .02em; text-align: left;
}
.ayat-isi .w { opacity: 0; }
.page.in .ayat-isi .w { animation: wordIn .25s calc(var(--d, 0s) + var(--i) * 30ms) steps(2, jump-none) forwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
.tw { position: absolute; width: 3cqw; animation: tw 1.3s steps(4, jump-none) forwards; }
@keyframes tw { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); } 60% { opacity: .9; transform: scale(.7) rotate(45deg); } 100% { opacity: 0; transform: scale(.3); } }

.hitung {
  left: 9%; right: 9%; top: 15%; height: 62%;
  display: flex; align-items: center; justify-content: center; gap: 1.6cqw;
  color: var(--cream);
}
.cd-cell { display: flex; flex-direction: column; align-items: center; gap: 1cqw; min-width: 12cqw; }
.cd-cell b {
  font-family: var(--font-head); font-weight: 400; font-size: 5.4cqw;
  text-shadow: .45cqw .45cqw 0 #6e3424; display: inline-block;
}
.cd-cell b.tick { animation: tickPop .35s steps(3, jump-none); }
@keyframes tickPop { 0% { transform: translateY(-25%); opacity: .4; } 100% { transform: none; opacity: 1; } }
.cd-cell span { font-family: var(--font-sign); font-size: 3.8cqw; letter-spacing: .03em; }
.hitung i { font-style: normal; font-family: var(--font-head); font-size: 4.4cqw; margin-bottom: 5cqw; animation: hintBlink 1s steps(2, jump-none) infinite; }
.cd-done { font-family: var(--font-sign); font-size: 5.5cqw; }

/* ==========================================================
   HAL 4 — Akad, Resepsi, Lokasi
   ========================================================== */
.page.in .unfold { transform-origin: 50% 50%; animation: unfold .7s var(--d, 0s) steps(7, jump-none) both; }
@keyframes unfold { 0% { transform: scale(1, .04); opacity: 1; } 60% { transform: scale(1, 1.04); } 100% { transform: scale(1, 1); opacity: 1; } }
.shadowed > img { filter: drop-shadow(1.4cqw 1.6cqw 0 rgba(45, 25, 12, .45)); }
.lamp-glow {
  position: absolute; left: 15.7%; top: 51.6%; width: 34cqw; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 244, 200, .55) 0 22%, rgba(255, 230, 160, .32) 22% 38%, rgba(255, 215, 130, .16) 38% 55%, transparent 55%);
  mix-blend-mode: screen; pointer-events: none;
  animation: lamp 3.2s steps(1) infinite;
}
@keyframes lamp { 0%, 100% { opacity: 1; } 30% { opacity: .82; } 34% { opacity: 1; } 62% { opacity: .9; } 66% { opacity: 1; } }
.acara {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8cqw; padding: 12% 17% 15%;
  text-align: center; color: #5b3a1e;
}
.acara-blok h3 {
  margin: 0 0 2cqw; font-family: var(--font-head); font-weight: 400; font-size: 6cqw; color: #5b3320;
  text-shadow: .45cqw .45cqw 0 rgba(255, 240, 210, .9);
}
.acara-blok p { margin: 0; font-family: var(--font-sign); font-size: 5cqw; line-height: 1.05; letter-spacing: .02em; }
.btn-maps { margin-top: 3cqw; font-size: 4.2cqw; }
.acara-blok .kota { font-size: 4.2cqw; }
.acara-blok { display: flex; flex-direction: column; align-items: center; }
.acara-blok h3 { margin-bottom: 1.2cqw; }
/* ornamen pemisah: garis emas + belah ketupat */
.hias { display: block; position: relative; width: 30cqw; height: 2.4cqw; margin: 0 auto 2cqw; background: linear-gradient(#b07a2a, #b07a2a) center / 100% .6cqw no-repeat; }
.hias::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1.8cqw; height: 1.8cqw; background: #f0c15a; box-shadow: 0 0 0 .5cqw #5b3a1e; transform: translate(-50%, -50%) rotate(45deg); }
.hias::after { content: ""; position: absolute; left: -1.2cqw; right: -1.2cqw; top: 50%; height: 1.2cqw; transform: translateY(-50%); background: linear-gradient(90deg, #b07a2a 0 1.2cqw, transparent 1.2cqw calc(100% - 1.2cqw), #b07a2a 0); }
.page.in .grow-x { animation: growX .45s var(--d, 0s) steps(6, jump-none) both; }
@keyframes growX { from { transform: scaleX(0); opacity: 1; } to { transform: scaleX(1); opacity: 1; } }

/* ajakan ketuk untuk musik lobby */
.tap-music {
  position: absolute; z-index: 6; left: 50%; top: 3cqw; transform: translateX(-50%);
  font-family: var(--font-sign); font-size: 3.8cqw; letter-spacing: .03em; color: var(--cream);
  background: rgba(59, 42, 34, .7); padding: 1cqw 3cqw .6cqw; white-space: nowrap;
  pointer-events: none; animation: hintBlink 1.4s steps(2, jump-none) infinite;
}
.tap-music.hide { display: none; }

/* ==========================================================
   TRANSISI ANTARHALAMAN
   ========================================================== */
.page.crop { aspect-ratio: 1080 / var(--crop); }
.page.crop > .inner { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% * 1920 / var(--crop)); }
.seam { position: relative; height: 0; z-index: 4; pointer-events: none; }
.seam canvas { position: absolute; left: 0; top: 0; width: 100%; transform: translateY(-45%); image-rendering: pixelated; }
.scene { aspect-ratio: 112 / 165; background: #eae1d5; }
.gerbang-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.plakat {
  position: absolute; left: 6.25%; top: 3.6%; width: 87.5%; aspect-ratio: 98 / 42;
  background-size: 100% 100%; image-rendering: pixelated;
}
.plakat-isi {
  position: absolute; left: 7%; right: 7%; top: 30%; bottom: 10%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw;
}
.plakat-judul { margin: 0; font-family: var(--font-sign); font-size: 4.4cqw; letter-spacing: .04em; color: var(--gold); text-shadow: .3cqw .3cqw 0 #2b170f; }
.plakat .hitung { position: static; inset: auto; height: auto; gap: 1.4cqw; }
.plakat .cd-cell b { font-size: 5cqw; text-shadow: .45cqw .45cqw 0 #2b170f; }
.plakat .cd-cell span { color: #f4d9b0; }
.plakat .hitung i { color: var(--gold); }

/* ==========================================================
   HAL 5 — Gift (meja surat)
   ========================================================== */
.page.ext { --extb: 0; }
.page.ext > .inner {
  position: absolute; left: 0; width: 100%;
  top: calc(100% * var(--ext) / (1920 + var(--ext) + var(--extb)));
  height: calc(100% * 1920 / (1920 + var(--ext) + var(--extb)));
}
.ext-bg { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% * var(--ext) / (1920 + var(--ext) + var(--extb))); overflow: hidden; }
.ext-bg img { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(100% * 1920 / var(--ext)); transform: scaleY(-1); }
.kurir { position: absolute; z-index: 3; left: -26%; top: 6%; width: 18%; pointer-events: none; }
.kurir-bird { width: 100%; aspect-ratio: 20 / 17; }
.kurir-bird .bird { transform: scaleX(-1); }
.kurir-surat { position: absolute; width: 38%; left: 52%; top: 78%; transform: rotate(8deg); }
/* amplop QRIS di bawah rekening (miring seperti kertas), tutup di bawah → terbuka ke bawah */
.amplop-qr { position: absolute; z-index: 2; left: 3%; top: 67.54%; width: 52.5%; aspect-ratio: 60 / 43; transform: rotate(-7deg); }
.page.in .amplop-qr.slide-in-l { animation: slideInLR .6s var(--d, 0s) steps(6, jump-none) both; }
@keyframes slideInLR { 0% { transform: translateX(-70%) rotate(-17deg); } 70% { transform: translateX(4%) rotate(-6deg); } 100% { transform: rotate(-7deg); } }
.amp-badan, .amp-tutup { position: absolute; left: 0; width: 100%; image-rendering: pixelated; }
.amp-badan { z-index: 3; top: 11.63%; height: 88.37%; filter: drop-shadow(1cqw 1.3cqw 0 rgba(45, 25, 12, .4)); }
.amp-tutup { z-index: 1; top: 0; height: 11.63%; }
.amp-segel { position: absolute; z-index: 4; left: 40%; width: 20%; top: 50.3%; image-rendering: pixelated; }
.amplop-qr.goyang .amp-badan, .amplop-qr.goyang .amp-segel { animation: ampGoyang .5s steps(5, jump-none) 1; }
@keyframes ampGoyang { 20% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
.amplop-qr .amp-segel.lepas { animation: segelLepas .6s steps(6, jump-none) forwards; }
@keyframes segelLepas { 0% { transform: none; opacity: 1; } 40% { transform: translate(30%, -60%) rotate(25deg) scale(1.2); opacity: 1; } 100% { transform: translate(110%, -40%) rotate(70deg) scale(.6); opacity: 0; } }
/* kartu yang mengintip keluar dari mulut amplop */
.qr-intip {
  position: absolute; z-index: 4; left: 9%; width: 82%; top: -5%; height: 33%; overflow: hidden; pointer-events: none;
  /* hanya terlihat di atas amplop + di mulut amplop yang terbuka (bentuk V) → kertas keluar ke DEPAN */
  clip-path: polygon(0 0, 100% 0, 100% 59%, 50% 100%, 0 59%);
}
.qr-intip i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fffaf0; box-shadow: inset 0 0 0 1.4cqw #f0c15a, inset 0 0 0 2cqw #fffaf0, inset 0 .6cqw 0 0 #32180e; transform: translateY(100%); transition: transform .45s steps(5, jump-none); }
.amplop-qr.intip .qr-intip i { transform: translateY(12%); }
.amplop-qr.keluar .qr-intip { visibility: hidden; }
/* kartu QRIS: melompat keluar ke depan amplop */
.qr-kartu {
  position: absolute; z-index: 6; left: 7%; top: 66.2%; width: 43%; margin: 0; border: 0; cursor: zoom-in;
  padding: 2.2cqw 2.2cqw 1.6cqw; background: #fffaf0; text-align: center; color: #4a2e1f;
  display: flex; flex-direction: column; align-items: center; gap: .8cqw;
  box-shadow: 0 0 0 .6cqw #32180e, inset 0 0 0 .9cqw #f0c15a, inset 0 0 0 1.4cqw #fffaf0, 1.2cqw 1.6cqw 0 .6cqw rgba(45, 25, 12, .35);
  opacity: 0; visibility: hidden; transform: translateY(18%) scale(.55) rotate(-7deg);
}
.qr-kartu.tampil { visibility: visible; animation: qrMuncul .7s steps(7, jump-none) forwards; }
@keyframes qrMuncul { 0% { opacity: 1; transform: translateY(18%) scale(.55) rotate(-7deg); } 60% { transform: translateY(-3%) scale(1.05) rotate(-2deg); } 100% { opacity: 1; transform: rotate(-3deg); } }
.qr-judul { font-family: var(--font-head); font-size: 3cqw; color: var(--ribbon); margin-top: .4cqw; }
.qr-gambar { display: block; width: 100%; height: auto; background: #fff; }
.qr-kartu small { font-family: var(--font-sign); font-size: 3.1cqw; line-height: 1; letter-spacing: .02em; }
.qr-kartu.tampil small { animation: hintBlink 1.2s steps(2, jump-none) 1s infinite; }
/* QRIS diperbesar */
.qr-zoom { position: absolute; inset: 0; z-index: 60; background: rgba(30, 15, 10, .8); display: grid; place-items: center; padding: 5cqw; }
.qr-zoom[hidden] { display: none; }
.qr-zoom-isi { width: 86cqw; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4cqw; animation: popIn .35s steps(4, jump-none) both; }
.qr-zoom-gambar { width: 100%; max-height: 72vh; object-fit: contain; background: #fff; box-shadow: 0 0 0 .8cqw #32180e, 0 0 0 1.6cqw #f0c15a; }
.qr-zoom-aksi { display: flex; gap: 3cqw; flex-wrap: wrap; justify-content: center; }
.qr-zoom-aksi .btn-inline { font-size: 4.2cqw; }

.meja-atas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; }
/* merpati menukik dari ruang Hal-4 ke meja, lalu terbang lagi */
.page.in .kurir { animation: kurir 9s .6s steps(90) infinite; }
@keyframes kurir {
  0% { transform: translate(0, -8cqw); }
  22% { transform: translate(36cqw, 16cqw); }
  38% { transform: translate(62cqw, 30cqw); }
  52% { transform: translate(86cqw, 22cqw); }
  70% { transform: translate(128cqw, -4cqw); }
  71%, 100% { transform: translate(150cqw, -20cqw); }
}
.tilt { transform: rotate(-6.5deg); }
.teks-doa { display: flex; align-items: center; justify-content: center; }
.teks-doa p { margin: 0; font-family: var(--font-sign); font-size: 4cqw; line-height: 1.1; letter-spacing: .02em; text-align: center; color: #5b3a1e; }
.teks-doa .w { opacity: 0; }
.page.in .teks-doa .w { animation: wordIn .25s calc(var(--d, 0s) + var(--i) * 35ms) steps(2, jump-none) forwards; }
.mult > img { mix-blend-mode: multiply; }
.akun { display: grid; grid-template-columns: 46% 1fr auto; align-items: center; gap: 1.4cqw; padding: 0 2% 0 0; z-index: 4; }
.akun .info { display: flex; flex-direction: column; gap: .6cqw; min-width: 0; color: #4a2e1f; }
.akun .info b { font-family: var(--font-sign); font-weight: 400; font-size: 4.6cqw; letter-spacing: .05em; line-height: 1; white-space: nowrap; }
.akun .info small { font-family: var(--font-sign); font-size: 3.1cqw; line-height: 1.02; letter-spacing: .02em; overflow-wrap: anywhere; }
.akun .salin {
  font-family: var(--font-sign); font-size: 3.5cqw; letter-spacing: .03em; color: var(--brown);
  display: flex; flex-direction: column; align-items: center; gap: .4cqw;
  background: var(--cream); border: 0; padding: 1.2cqw 1.6cqw; cursor: pointer;
  box-shadow: 0 -.5cqw 0 0 var(--ink), 0 .5cqw 0 0 var(--ink), -.5cqw 0 0 0 var(--ink), .5cqw 0 0 0 var(--ink), inset 0 -.7cqw 0 0 #e8cfa6;
}
.akun .salin img { width: 4.2cqw; }
.akun .salin:active { transform: translateY(.5cqw); }
.akun .salin.ok { background: #d8f0c8; }
.page.in .place-paper { animation: placePaper .7s var(--d, 0s) steps(7, jump-none) both; }
@keyframes placePaper { 0% { transform: translateY(22%) rotate(6deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.page.in .write-on { animation: writeOn .9s var(--d, 0s) steps(12, jump-none) both; }
@keyframes writeOn { from { clip-path: inset(0 100% 0 0); opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.page.in .slide-in-l { animation: slideInL .6s var(--d, 0s) steps(6, jump-none) both; }
@keyframes slideInL { 0% { transform: translateX(-70%) rotate(-10deg); opacity: 1; } 70% { transform: translateX(4%) rotate(1deg); } 100% { transform: none; opacity: 1; } }
.page.in .stamp { animation: stamp .45s var(--d, 0s) steps(5, jump-none) both; }
@keyframes stamp { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(.88); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.quill > img { transform-origin: 8% 96%; }
.page.in .quill > img { animation: tulis 1.8s 1.2s steps(6, jump-none) infinite; }
@keyframes tulis { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-3deg) translateX(-1%); } 40% { transform: rotate(2deg); } 60% { transform: rotate(-2deg) translateX(1%); } 80% { transform: rotate(1deg); } }

/* ==========================================================
   HAL 6 — Buku Tamu (RSVP + Ucapan & Doa)
   ========================================================== */
.page.flow { aspect-ratio: auto; }
#bukutamu {
  background: #8a5a3c url("../assets/hal6/meja_ubin.png") top center / 100% auto repeat-y;
  padding: 16cqw 6cqw 22cqw;
}
.lilin { position: absolute; top: 2cqw; left: 3cqw; width: 9cqw; aspect-ratio: 10 / 26; }
.lilin.kanan { left: auto; right: 3cqw; }
.lilin-cv { width: 100%; height: 100%; image-rendering: pixelated; }
.buku {
  position: relative; background: #f6e3c5; color: #4a2e1f;
  padding: 13cqw 6.5cqw 9cqw;
  box-shadow:
    0 0 0 .8cqw #b88a52, 0 0 0 1.6cqw #f0c15a, 0 0 0 2.2cqw #8a5a2a, 0 0 0 3cqw #3b2a22,
    1.6cqw 2.4cqw 0 3cqw rgba(30, 15, 8, .45),
    inset 0 0 0 1cqw #efd4ad;
}
.buku::before, .buku::after {
  content: ""; position: absolute; width: 6cqw; height: 6cqw; top: -3cqw;
  background: conic-gradient(from 45deg, #f0c15a 0 25%, #b07a2a 0 50%, #f0c15a 0 75%, #ffe39a 0);
  box-shadow: 0 0 0 .6cqw #3b2a22;
}
.buku::before { left: -3cqw; } .buku::after { right: -3cqw; }
.page.in .rise-in { animation: riseIn .7s var(--d, 0s) steps(7, jump-none) both; }
@keyframes riseIn { from { transform: translateY(12%); opacity: 0; } to { transform: none; opacity: 1; } }
.pita-judul {
  position: absolute; left: 50%; top: -6cqw; transform: translateX(-50%);
  width: 84%; height: 12cqw;
  background: var(--ribbon);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
  display: grid; place-items: center;
  box-shadow: inset 0 -1.4cqw 0 #7e2e2d, inset 0 1cqw 0 #d9726a;
}
.pita-judul span { font-family: var(--font-head); font-size: 3.4cqw; color: var(--cream); text-shadow: .35cqw .35cqw 0 #5a1f1e; white-space: nowrap; }
.bagian { display: flex; flex-direction: column; gap: 3cqw; margin: 0; }
.bagian h3 { margin: 0; text-align: center; font-family: var(--font-head); font-weight: 400; font-size: 3.8cqw; color: #5b3320; }
.ket { margin: -1cqw 0 0; text-align: center; font-family: var(--font-sign); font-size: 4.1cqw; line-height: 1.1; }
.field { display: flex; flex-direction: column; gap: 1.2cqw; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span { font-family: var(--font-sign); font-size: 4.3cqw; letter-spacing: .03em; }
.field input, .field textarea {
  font-family: var(--font-sign); font-size: max(16px, 4.6cqw); letter-spacing: .02em; color: #3b2a22;
  background: #fffaf0; border: 0; border-radius: 0; padding: 2.2cqw 3cqw; width: 100%; outline: none;
  box-shadow: 0 0 0 .6cqw #5b3a1e, inset 0 .8cqw 0 #ead7b8;
}
.field textarea { resize: vertical; min-height: 26cqw; line-height: 1.12; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 .6cqw var(--ribbon), inset 0 .8cqw 0 #ead7b8; }
.field ::placeholder { color: #b49b7e; }
.hitung-huruf { align-self: flex-end; font-family: var(--font-sign); font-size: 3.4cqw; opacity: .75; }
.opsi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.opsi label { position: relative; cursor: pointer; }
.opsi input { position: absolute; opacity: 0; pointer-events: none; }
.opsi b {
  display: flex; align-items: center; justify-content: center; text-align: center; height: 100%;
  font-family: var(--font-sign); font-weight: 400; font-size: 3.9cqw; line-height: 1; letter-spacing: .02em;
  padding: 2.2cqw 1cqw; background: #fffaf0; color: #5b3a1e;
  box-shadow: 0 0 0 .5cqw #5b3a1e, inset 0 -.8cqw 0 #ead7b8;
}
.opsi input:checked + b { background: var(--ribbon); color: var(--cream); box-shadow: 0 0 0 .5cqw #5a1f1e, inset 0 -.8cqw 0 #7e2e2d; }
.opsi input:focus-visible + b { outline: .5cqw dashed var(--gold); outline-offset: .8cqw; }
.jumlah-wrap { flex-direction: row; align-items: center; justify-content: space-between; }
.jumlah-wrap.mati { opacity: .4; pointer-events: none; }
.stepper { display: flex; align-items: center; gap: 2.4cqw; }
.stepper button {
  width: max(40px, 9cqw); height: max(40px, 9cqw); border: 0; cursor: pointer; font-family: var(--font-head); font-size: 4cqw; color: var(--cream);
  background: #8a5a34; box-shadow: 0 0 0 .5cqw #3b2a22, inset 0 -.8cqw 0 #5e3422;
}
.stepper button:active { transform: translateY(.4cqw); }
.stepper output { font-family: var(--font-head); font-size: 4.6cqw; min-width: 6cqw; text-align: center; }
.toggle { display: flex; align-items: center; gap: 2.4cqw; cursor: pointer; font-family: var(--font-sign); font-size: 4.2cqw; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { width: 6cqw; height: 6cqw; flex: none; background: #fffaf0; box-shadow: 0 0 0 .5cqw #5b3a1e; display: grid; place-items: center; }
.toggle input:checked + i { background: var(--ribbon); }
.toggle input:checked + i::after { content: "✔"; color: var(--cream); font-size: 4cqw; font-family: var(--font); }
.toggle input:focus-visible + i { outline: .5cqw dashed var(--gold); outline-offset: .6cqw; }
.btn-kirim { position: relative; align-self: center; margin-top: 1cqw; font-size: 4.6cqw; }
.btn-kirim[disabled] { opacity: .6; cursor: progress; }
.status { margin: 0; min-height: 4cqw; text-align: center; font-family: var(--font-sign); font-size: 4.2cqw; line-height: 1.1; }
.status.ok { color: #2f6b2a; } .status.galat { color: #9c2b2b; }
.pemisah { height: 6cqw; margin: 7cqw 0; background: repeating-linear-gradient(90deg, #c99a5a 0 3cqw, transparent 3cqw 4.5cqw) center / 100% .8cqw no-repeat; position: relative; }
.pemisah::after { content: "♥"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); background: #f6e3c5; padding: 0 2cqw; color: var(--ribbon); font-size: 5cqw; font-family: var(--font); }
.daftar-ucapan { margin-top: 7cqw; display: flex; flex-direction: column; gap: 4cqw; }
.kosong { text-align: center; font-family: var(--font-sign); font-size: 4.2cqw; opacity: .75; margin: 2cqw 0; }
.catatan {
  position: relative; background: #fffaf0; padding: 3.2cqw 4cqw 3.6cqw;
  box-shadow: 0 0 0 .5cqw #5b3a1e, .8cqw 1.2cqw 0 .5cqw rgba(91, 58, 30, .25);
  animation: catatanIn .4s steps(4, jump-none) both;
}
.catatan::before { content: ""; position: absolute; top: -1.6cqw; left: 50%; width: 3cqw; height: 3cqw; transform: translateX(-50%); background: var(--ribbon); box-shadow: 0 0 0 .4cqw #5a1f1e; }
.catatan header { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; margin-bottom: 1.4cqw; }
.catatan b { font-family: var(--font-sign); font-weight: 400; font-size: 4.6cqw; color: var(--ribbon); letter-spacing: .02em; overflow-wrap: anywhere; min-width: 0; }
.catatan time { font-family: var(--font-sign); font-size: 3.2cqw; opacity: .7; white-space: nowrap; flex: none; }
.catatan p { margin: 0; font-family: var(--font-sign); font-size: 4.3cqw; line-height: 1.12; letter-spacing: .02em; white-space: pre-line; overflow-wrap: anywhere; }
@keyframes catatanIn { from { transform: translateY(20%); opacity: 0; } to { transform: none; opacity: 1; } }
.btn-muat { align-self: center; display: flex; margin: 5cqw auto 0; font-size: 4.2cqw; }
.btn-muat[hidden] { display: none; }
.mode-uji { margin: 5cqw 0 0; text-align: center; font-family: var(--font-sign); font-size: 3.4cqw; opacity: .7; }

/* ==========================================================
   PENUTUP — Aula Singgasana + gulungan kredit
   ========================================================== */
.penutup { position: relative; }
.aula { aspect-ratio: 112 / 190; background: #eae1d5; }
.aula-cv { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.aula-belakang { z-index: 1; }
.aula-pasangan { position: absolute; z-index: 2; left: 23%; width: 54%; bottom: 6%; aspect-ratio: 646 / 836; }
.aula-depan { z-index: 3; pointer-events: none; }
.aula-judul {
  position: absolute; z-index: 4; left: 50%; top: 6.2%; width: 74%; margin-left: -37%; height: 12cqw;
  background: var(--ribbon);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
  display: grid; place-items: center;
  box-shadow: inset 0 -1.4cqw 0 #7e2e2d, inset 0 1cqw 0 #d9726a;
  --ox: 50%;
}
.aula-judul span { font-family: var(--font-head); font-size: 5cqw; color: var(--cream); text-shadow: .45cqw .45cqw 0 #5a1f1e; white-space: nowrap; }
.kredit {
  position: relative; background: #d2c6b5 top center / 100% auto repeat-y; image-rendering: pixelated;
  padding: 9cqw 5cqw 30cqw; text-align: center; color: #4a2e1f;
  display: flex; flex-direction: column; align-items: center;
}
.gulungan { position: relative; width: 92%; padding: 4.6cqw 0; filter: drop-shadow(1.2cqw 1.8cqw 0 rgba(45, 25, 12, .35)); }
.gulungan::before, .gulungan::after {
  content: ""; position: absolute; left: 0; width: 100%; aspect-ratio: 104 / 9;
  background: var(--gulung) center / 100% 100% no-repeat; image-rendering: pixelated; z-index: 1;
}
.gulungan::before { top: 0; } .gulungan::after { bottom: 0; }
.gulungan-isi {
  margin: 0 5.8%; padding: 8cqw 4.5cqw 8cqw; background: #f6e3c5; image-rendering: auto;
  box-shadow: inset 1cqw 0 0 #e2c69c, inset -1cqw 0 0 #e2c69c, inset 1.6cqw 0 0 #efd4ad, inset -1.6cqw 0 0 #efd4ad, -.5cqw 0 0 #8a5a2a, .5cqw 0 0 #8a5a2a;
  display: flex; flex-direction: column; align-items: center; gap: 3cqw;
}
.lambang { width: 13cqw; image-rendering: pixelated; }
.gulungan-isi p { margin: 0; font-family: var(--font-sign); font-size: 4.6cqw; line-height: 1.12; letter-spacing: .02em; }
.gulungan-isi .salam-akhir { font-size: 5cqw; color: var(--ribbon); }
.gulungan-isi .kecil { font-size: 4.2cqw; }
.gulungan-isi h3 { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 4cqw; color: var(--ribbon); text-shadow: .4cqw .4cqw 0 #f4d9b0; white-space: nowrap; }
.gulungan-isi .keluarga { font-size: 3.9cqw; }
.gulungan-isi .hias { margin: 1cqw auto; }
.gulungan-isi .btn-inline { margin-top: 1cqw; }
.kredit .lilin { top: auto; bottom: 7cqw; left: 6cqw; }
.kredit .lilin.kanan { left: auto; right: 6cqw; }
.kredit .tamat {
  position: absolute; left: 50%; bottom: 11cqw; transform: translateX(-50%); margin: 0; white-space: nowrap;
  font-family: var(--font-head); font-size: 3.2cqw; color: var(--cream); text-shadow: .4cqw .4cqw 0 #5a1f1e;
}

/* ---------- Penutup sementara ---------- */
.soon {
  background: #3b2a22; color: var(--cream);
  text-align: center; padding: 10cqw 6cqw 14cqw;
}
.soon-crown { width: 16cqw; }
.soon-title { font-family: var(--font-head); font-size: 4.4cqw; margin: 3cqw 0 2cqw; color: var(--gold); }
.soon-list { font-size: 3.4cqw; line-height: 1.5; margin: 0; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* area sentuh tombol HUD sedikit lebih luas dari gambarnya (nyaman di HP) */
.hud-btn { position: relative; }
.hud-btn::after { content: ""; position: absolute; inset: -1.3cqw; }
