/* Tema SCRAPBOOK — kertas bertitik, polaroid berselotip, catatan tempel, stiker yang bergoyang. */
.tema-scrapbook {
  --latar-dasar: #f5efe4; --kertas: #fffdf8; --teks: #3b302a; --teks-lembut: #7d6f66; --aksen: #e4572e; --aksen-muda: #ffe3d6; --garis: #e7dccb;
  --huruf-badan: "DM Sans", system-ui, sans-serif; --huruf-label: "Gochi Hand", "Caveat", cursive; --kuning: #fff1a8; --pink: #ff8fb1; --mint: #7fd8be;
  font-size: 16px;
}
.tema-scrapbook .bingkai { background-color: var(--latar-dasar); background-image: radial-gradient(#d8cbb5 1px, transparent 1.3px); background-size: 18px 18px; }
.tema-scrapbook .label { font-size: 19px; letter-spacing: .04em; text-transform: none; color: var(--aksen); }
.tema-scrapbook .judul, .tema-scrapbook .judul-bagian, .tema-scrapbook .nama-panggilan, .tema-scrapbook .kartu-acara h3, .tema-scrapbook .dan { font-family: "Caveat", var(--huruf-judul), cursive; font-weight: 700; color: var(--teks); font-style: normal; }

/* Stiker */
.stiker { position: absolute; z-index: 3; width: 38px; height: 38px; filter: drop-shadow(2px 3px 0 rgba(59, 48, 42, .18)); animation: goyang-stiker 3s ease-in-out infinite; }
.stiker path { stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.stiker.s1 { top: 9%; left: 8%; fill: var(--pink); transform: rotate(-14deg); }
.stiker.s2 { top: 14%; right: 9%; fill: #ffc93c; width: 46px; height: 46px; animation-delay: .6s; }
.stiker.s3 { bottom: 16%; left: 9%; fill: var(--mint); animation-delay: 1.1s; }
.stiker.s4 { bottom: 11%; right: 12%; fill: var(--aksen); width: 30px; height: 30px; animation-delay: 1.6s; }
@keyframes goyang-stiker { 0%, 100% { rotate: -8deg; scale: 1; } 50% { rotate: 10deg; scale: 1.12; } }

/* Sampul */
.tema-scrapbook .sampul { background-color: var(--latar-dasar); background-image: radial-gradient(#d8cbb5 1px, transparent 1.3px); background-size: 18px 18px; }
.tema-scrapbook .sampul-isi { padding-top: 10px; }
.tumpukan { position: relative; width: 236px; height: 196px; margin: 12px auto 4px; }
.polaroid { position: absolute; margin: 0; width: 132px; padding: 9px 9px 30px; background: #fff; box-shadow: 0 10px 22px rgba(59, 48, 42, .22); animation: jatuh .9s cubic-bezier(.2, 1.4, .4, 1) both; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: rgba(255, 228, 140, .78); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tema-scrapbook .kotak-tamu .maaf { font-size: 11.5px; }
.polaroid.p0 { left: 0; top: 34px; --r: -10deg; transform: rotate(-10deg); animation-delay: .1s; }
.polaroid.p1 { right: 0; top: 40px; --r: 9deg; transform: rotate(9deg); animation-delay: .3s; }
.polaroid.p2 { left: 50px; top: 0; --r: -2deg; transform: rotate(-2deg); animation-delay: .5s; z-index: 2; }
.polaroid.p1::before { background: rgba(255, 143, 177, .7); }
@keyframes jatuh { from { opacity: 0; transform: translateY(-70vh) rotate(calc(var(--r) * -3)); } }
.tema-scrapbook .sampul .judul { font-size: 62px; line-height: 1; margin: 2px 0 0; position: relative; display: inline-block; }
.coretan { position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; height: 18px; overflow: visible; }
.coretan path { fill: none; stroke: var(--aksen); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: gores 1.2s ease-out 1s forwards; }
@keyframes gores { to { stroke-dashoffset: 0; } }
.tema-scrapbook .tgl-sampul { font: 22px "Gochi Hand", cursive; margin-top: 6px; }
.catatan-tempel { width: min(300px, 86%); margin: 14px auto 18px; padding: 14px 16px 16px; background: var(--kuning); transform: rotate(-2deg); box-shadow: 0 12px 20px -8px rgba(59, 48, 42, .35); position: relative; }
.catatan-tempel::before { content: ""; position: absolute; top: -11px; left: 50%; width: 90px; height: 22px; margin-left: -45px; background: rgba(127, 216, 190, .75); transform: rotate(3deg); }
.catatan-tempel .kotak-tamu { margin: 0 auto; }
.tema-scrapbook .nama-tamu { font: 700 30px "Caveat", cursive; }
.tema-scrapbook .info-tamu span { background: #fff; border: 2px dashed #e0c64d; color: var(--teks); border-radius: 10px; }
.tema-scrapbook .tombol-buka { background: var(--aksen); color: #fff; border: 3px solid #fff; box-shadow: 0 6px 0 #b8401e, 0 12px 20px rgba(0, 0, 0, .15); font: 700 22px "Caveat", cursive; text-transform: none; letter-spacing: .02em; padding: 8px 26px; animation: tombol-goyang 2.4s ease-in-out infinite; }
@keyframes tombol-goyang { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) scale(1.04); } }

/* Isi */
.tema-scrapbook .hero { background: transparent; flex-direction: column; }
.tema-scrapbook .hero[style] .hero-isi::before { content: ""; display: block; width: 240px; height: 280px; margin: 0 auto 18px; border: 12px solid #fff; border-bottom-width: 46px;
  background: var(--foto) center/cover; box-shadow: 0 14px 30px rgba(59, 48, 42, .25); transform: rotate(3deg); }
.tema-scrapbook .hero .judul { font-size: 64px; }
.tema-scrapbook .hitung div { background: #fff; border: 2px solid var(--teks); border-radius: 12px; box-shadow: 3px 3px 0 var(--teks); color: var(--teks); }
.tema-scrapbook .hitung div:nth-child(2) { background: var(--kuning); } .tema-scrapbook .hitung div:nth-child(3) { background: #ffd6e3; } .tema-scrapbook .hitung div:nth-child(4) { background: #d4f5ea; }
.tema-scrapbook .judul-bagian { font-size: 58px; display: inline; background: linear-gradient(transparent 58%, #ffe066 58%, #ffe066 88%, transparent 88%); padding: 0 6px; }
.tema-scrapbook .kutipan { background: transparent; }
.tema-scrapbook .kutipan > div { background: #fff; padding: 26px 22px; transform: rotate(-1.5deg); box-shadow: 0 10px 24px rgba(59, 48, 42, .12);
  background-image: repeating-linear-gradient(transparent 0 27px, #dbe8f5 27px 28px); position: relative; }
.tema-scrapbook .kutipan .isi-kutipan { font: 500 22px/1.25 "Caveat", cursive; }
.tema-scrapbook .nama-panggilan { font-size: 56px; }
.tema-scrapbook .foto-orang { width: 190px; height: 230px; border: 10px solid #fff; border-bottom-width: 34px; box-shadow: 0 10px 22px rgba(59, 48, 42, .2); transform: rotate(-4deg); }
.tema-scrapbook .dan { font-size: 60px; color: var(--aksen); }
.tema-scrapbook .kartu-acara, .tema-scrapbook .form-rsvp, .tema-scrapbook .kartu-bank { background: #fff; border: 0; border-radius: 4px; box-shadow: 0 12px 24px rgba(59, 48, 42, .12); position: relative; }
.tema-scrapbook .kartu-acara::before, .tema-scrapbook .kartu-bank::before, .tema-scrapbook .form-rsvp::before { content: ""; position: absolute; top: -10px; left: 50%; width: 96px; height: 22px; margin-left: -48px; background: rgba(255, 143, 177, .6); transform: rotate(-3deg); }
.tema-scrapbook .kartu-acara:nth-of-type(odd) { transform: rotate(-1.2deg); } .tema-scrapbook .kartu-acara:nth-of-type(even) { transform: rotate(1.2deg); }
.tema-scrapbook .kartu-acara h3 { font-size: 44px; color: var(--aksen); }
.tema-scrapbook .tanggal-besar b { color: var(--teks); }
.tema-scrapbook .tombol { border-radius: 999px; box-shadow: 0 4px 0 #b8401e; }
.tema-scrapbook .tombol.garis { box-shadow: none; }
.tema-scrapbook .linimasa::before { background: repeating-linear-gradient(var(--aksen) 0 6px, transparent 6px 12px); width: 2px; }
.tema-scrapbook .linimasa li::before { background: #ffc93c; border: 2px solid var(--teks); }
.tema-scrapbook .linimasa img { border: 8px solid #fff; border-bottom-width: 28px; border-radius: 0; box-shadow: 0 8px 18px rgba(59, 48, 42, .18); transform: rotate(-2deg); height: 200px; }
.tema-scrapbook .linimasa h3 { font: 700 28px "Caveat", cursive; }
.tema-scrapbook .linimasa .waktu { font: 19px "Gochi Hand", cursive; text-transform: none; letter-spacing: 0; }

/* Galeri polaroid */
.tema-scrapbook .kisi { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.tema-scrapbook .foto-galeri, .tema-scrapbook .foto-galeri:nth-child(5n + 1) { aspect-ratio: auto; grid-column: auto; background: #fff; padding: 8px 8px 30px; border-radius: 0; box-shadow: 0 10px 20px rgba(59, 48, 42, .18); overflow: visible; transition: transform .3s; }
.tema-scrapbook .foto-galeri img { aspect-ratio: 1; }
.tema-scrapbook .foto-galeri:nth-child(odd) { transform: rotate(-3deg); } .tema-scrapbook .foto-galeri:nth-child(even) { transform: rotate(3deg) translateY(10px); }
.tema-scrapbook .foto-galeri:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.tema-scrapbook .foto-galeri:hover img { transform: none; }

.tema-scrapbook .ucapan li { background: var(--kuning); border: 0; border-radius: 2px; box-shadow: 0 8px 14px -6px rgba(59, 48, 42, .3); }
.tema-scrapbook .ucapan li:nth-child(3n + 2) { background: #ffd6e3; transform: rotate(.8deg); } .tema-scrapbook .ucapan li:nth-child(3n) { background: #d4f5ea; transform: rotate(-.8deg); }
.tema-scrapbook .pilihan-hadir span { border-radius: 999px; border: 2px solid var(--teks); }
.tema-scrapbook .pilihan-hadir input:checked + span { background: var(--teks); border-color: var(--teks); }
.tema-scrapbook .kartu-bank .nomor { font-family: "DM Mono", monospace; font-size: 22px; }
.tema-scrapbook .penutup { background: transparent; }
.tema-scrapbook .nav-bawah { background: #fff; border: 2px solid var(--teks); box-shadow: 4px 4px 0 var(--teks); color: var(--teks); }
.tema-scrapbook .nav-bawah a.aktif { background: var(--aksen); color: #fff; }
.tema-scrapbook .tombol-musik { background: #ffc93c; color: var(--teks); border: 2px solid var(--teks); }
.js .tema-scrapbook .muncul { transform: translateY(40px) rotate(-4deg) scale(.92); transition: opacity .7s, transform .8s cubic-bezier(.2, 1.5, .4, 1); }
.js .tema-scrapbook .muncul.tampak { transform: none; }
.js .tema-scrapbook .foto-galeri.muncul.tampak:nth-child(odd) { transform: rotate(-3deg); } .js .tema-scrapbook .foto-galeri.muncul.tampak:nth-child(even) { transform: rotate(3deg) translateY(10px); }
.js .tema-scrapbook .kartu-acara.muncul.tampak:nth-of-type(odd) { transform: rotate(-1.2deg); } .js .tema-scrapbook .kartu-acara.muncul.tampak:nth-of-type(even) { transform: rotate(1.2deg); }
