/* Bioskop — ucapan ulang tahun berupa film premiere: tiket disobek, lampu teater meredup, tirai terbuka, hitung mundur 3-2-1, lalu video ucapan tayang di layar. */
@font-face { font-family: "Special Elite"; src: url("fonts/special-elite.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 800; src: url("fonts/playfair-display.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 800; src: url("fonts/playfair-display-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

/* --bg = ruang teater gelap; --velvet = kursi & tirai; --gold = ornamen art deco; --cream = kertas tiket. */
:root { --bg: #120a0a; --bg2: #1d0f0f; --velvet: #8c1626; --velvet-d: #4e0b14; --gold: #e0b062; --gold-d: #a8772f; --cream: #f4e7c9; --ink: #2a1712; --soft: #b9a48b; --line: #4a2a22; --mono: "Special Elite", "Courier New", monospace; --serif: "Playfair Display", Georgia, serif; --deco: "Cinzel", "Playfair Display", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--cream); font: 400 15px/1.55 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
p, h1, h2, dl, dd, figure { margin: 0; }
em { font-style: italic; color: var(--gold); }
main { width: 100%; max-width: 480px; margin: 0 auto; overflow-x: clip; }
.orn { pointer-events: none; user-select: none; }
.kicker, .lbl { font: 400 12px/1.4 var(--deco); letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }

/* ---------- Sampul: tiket VIP yang disobek ---------- */
.cover { position: relative; display: none; min-height: 100svh; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 20px; text-align: center; overflow: hidden; background: radial-gradient(ellipse 80% 55% at 50% 42%, #3a1414 0%, var(--bg) 70%); }
.cover-sorot { position: absolute; inset: -10% 10% auto; height: 70%; background: conic-gradient(from 168deg at 50% 0%, transparent 0deg, rgb(255 226 170 / .14) 10deg, rgb(255 226 170 / .05) 22deg, transparent 26deg); pointer-events: none; }
.cover::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: repeating-linear-gradient(90deg, var(--velvet-d) 0 22px, #3a0810 22px 26px); -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%); opacity: .55; pointer-events: none; }
.cover > * { position: relative; z-index: 1; }
.cover .kicker b { color: var(--gold); font-weight: 700; }
.cover h1 { font: 500 34px/1.1 var(--serif); }
.tiket { display: flex; width: min(100%, 350px); min-height: 156px; filter: drop-shadow(0 22px 30px rgb(0 0 0 / .55)); transform: rotate(-3deg); }
.tk-badan, .tk-sobek { position: relative; color: var(--ink); background: var(--cream); }
.tk-badan { flex: 1 1 auto; padding: 16px 16px 14px 20px; border-radius: 10px 0 0 10px; text-align: left; background: radial-gradient(circle at 0 50%, transparent 11px, var(--cream) 12px); }
.tk-badan::before { content: ""; position: absolute; inset: 7px 7px 7px 16px; border: 1px solid color-mix(in srgb, var(--velvet) 55%, transparent); border-radius: 6px; pointer-events: none; }
.tk-studio { font: 400 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--velvet); }
.tk-film { margin: 6px 0 4px; font: 700 20px/1.12 var(--deco); letter-spacing: .02em; overflow-wrap: anywhere; }
.tk-tag { font: italic 400 13px/1.35 var(--serif); opacity: .75; }
.tk-tgl { margin-top: 8px; font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tk-sobek { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 0 10px 10px 0; background: radial-gradient(circle at 100% 50%, transparent 11px, var(--velvet) 12px); color: var(--cream); border-left: 2px dashed color-mix(in srgb, var(--cream) 70%, transparent); transform-origin: 0 100%; transition: transform .7s cubic-bezier(.5, 0, .7, .4), opacity .7s ease; }
.tk-sobek span { writing-mode: vertical-rl; transform: rotate(180deg); font: 400 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.tk-sobek b { font: 700 22px/1 var(--deco); color: var(--gold); }
.opening .tk-sobek { transform: translate(40px, 160px) rotate(38deg); opacity: 0; }
.opening .tiket { transition: transform .5s ease; transform: rotate(0) scale(1.04); }
.open { min-height: 50px; padding: 0 30px; border: 1px solid var(--gold); border-radius: 999px; background: linear-gradient(180deg, var(--velvet), var(--velvet-d)); color: var(--cream); font: 600 14px/1 var(--deco); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 0 4px rgb(224 176 98 / .14), 0 10px 24px rgb(0 0 0 / .45); }
.open.memuat { opacity: .55; pointer-events: none; }

/* ---------- Teater: lukisan diam, tirai & layar digerakkan kode. Semua posisi = persen lukisan 940×1684. ---------- */
.teater-sec { position: relative; }
.teater { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; contain: paint; }
.stage { position: absolute; left: 50%; top: 50%; width: max(100%, calc(max(100svh, 560px) * .5582)); aspect-ratio: 940 / 1684; transform: translate(-50%, -51%); transform-origin: 50% 51%; }
.stage > * { position: absolute; }
.teater-img { inset: 0; width: 100%; height: 100%; }
.layar { left: 24.74%; top: 41.28%; width: 50.52%; height: 19.51%; overflow: hidden; background: #0b0b0d; box-shadow: 0 0 22px rgb(255 240 210 / .18); }
.layar > * { position: absolute; inset: 0; }
.film { width: 100%; height: 100%; object-fit: contain; background: #000; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.slide img:first-child, .slide img.on { opacity: 1; }
.slide.jalan img:not(.on) { opacity: 0; }
.slide.jalan img.on { animation: kenburns 4.2s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.judul-layar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; padding: 4% 6%; text-align: center; background: radial-gradient(ellipse at 50% 45%, #2b1a12, #0a0706 75%); transition: opacity .9s ease; }
.layar:has(.film, .slide) .judul-layar { opacity: 0; pointer-events: none; }
.jl-kecil { font: 400 clamp(7px, 2.2vw, 10px)/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.jl-film { font: 700 clamp(13px, 4.6vw, 21px)/1.1 var(--deco); color: var(--gold); text-shadow: 0 0 12px rgb(224 176 98 / .45); overflow-wrap: anywhere; }
.jl-tag { font: italic 400 clamp(8px, 2.6vw, 12px)/1.25 var(--serif); color: var(--cream); opacity: .8; }
/* Leader film 3-2-1: lingkaran, silang, jarum menyapu. Disembunyikan kecuali saat .hitung. */
.leader { display: grid; place-items: center; opacity: 0; background: radial-gradient(circle, transparent 31%, #ddd 31.5% 32.5%, transparent 33% 41%, #ddd 41.5% 42.5%, transparent 43%), #6d6d6d; overflow: hidden; pointer-events: none; }
.leader .silang { position: absolute; inset: 0; background: linear-gradient(#ddd, #ddd) 50% 0 / 1px 100% no-repeat, linear-gradient(#ddd, #ddd) 0 50% / 100% 1px no-repeat; }
@property --sapu { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.leader .sapu { position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); background: conic-gradient(rgb(0 0 0 / .45) var(--sapu), transparent 0); }
.leader b { grid-area: 1 / 1; font: 700 clamp(30px, 11vw, 54px)/1 var(--deco); color: #111; opacity: 0; }
.sorot { left: 0; top: 0; width: 100%; height: 61%; clip-path: polygon(43% 0, 57% 0, 75.3% 41.3%, 75.3% 100%, 24.7% 100%, 24.7% 41.3%); background: linear-gradient(180deg, rgb(255 240 205 / .22), rgb(255 240 205 / .07) 60%, transparent); mix-blend-mode: screen; opacity: .9; pointer-events: none; }
.debu { left: 30%; top: 4%; width: 40%; height: 50%; pointer-events: none; }
.debu i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgb(255 240 210 / .7); opacity: 0; }
.debu i:nth-child(1) { left: 12%; top: 20%; } .debu i:nth-child(2) { left: 36%; top: 8%; } .debu i:nth-child(3) { left: 58%; top: 30%; } .debu i:nth-child(4) { left: 80%; top: 52%; } .debu i:nth-child(5) { left: 24%; top: 62%; }
.debu i:nth-child(6) { left: 46%; top: 46%; } .debu i:nth-child(7) { left: 66%; top: 72%; } .debu i:nth-child(8) { left: 8%; top: 84%; } .debu i:nth-child(9) { left: 90%; top: 86%; } .debu i:nth-child(10) { left: 52%; top: 92%; }
/* Tirai: dua panel di dalam bukaan panggung; keadaan dasar = tersibak ke tepi. */
.bukaan { left: 19.6%; top: 31%; width: 60.8%; height: 33.6%; overflow: hidden; pointer-events: none; }
.tirai { position: absolute; top: 0; width: 56%; height: 100%; object-fit: fill; transition: transform 2.6s cubic-bezier(.62, 0, .28, 1); }
.tirai.l { left: 0; transform: translateX(-41.5%) scaleX(.17); }
.tirai.r { right: 0; transform: translateX(41.5%) scaleX(-.17); }
.valance { left: 19%; top: 29%; width: 62%; pointer-events: none; }
/* Lampu teater meredup: lapisan gelap berlubang lembut di posisi layar. */
.redup { inset: 0; background: rgb(6 2 2 / .55); --m: linear-gradient(90deg, #000 23.2%, transparent 25.8% 74.2%, #000 76.8%), linear-gradient(180deg, #000 39.8%, transparent 42.2% 59.9%, #000 62.3%); -webkit-mask: var(--m); mask: var(--m); pointer-events: none; transition: opacity 1.6s ease; }
.lampu { inset: 0; pointer-events: none; }
.lampu i { position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; background: radial-gradient(circle, rgb(255 214 140 / .85), rgb(255 170 80 / .25) 40%, transparent 70%); mix-blend-mode: screen; opacity: .55; }
.lampu i:nth-child(1) { left: 5%; top: 47.5%; } .lampu i:nth-child(2) { left: 12.5%; top: 52.6%; } .lampu i:nth-child(3) { left: 87.5%; top: 52.6%; } .lampu i:nth-child(4) { left: 95%; top: 47.5%; }
.teater::after { content: ""; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
/* Hiasan depan di atas kursi penonton. */
.pop-depan { position: absolute; left: -4%; bottom: -3%; width: 34%; max-width: 160px; transform: rotate(-8deg); }
.kacamata-depan { position: absolute; right: 3%; bottom: 6%; width: 30%; max-width: 140px; transform: rotate(12deg); }
.hujan-pop { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hujan-pop i { position: absolute; left: var(--x); top: -40px; width: var(--s, 26px); aspect-ratio: 220 / 181; background: url("img/popcorn-butir.webp") center / contain no-repeat; opacity: 0; }
.hujan-pop i:nth-child(1) { --x: 6%; --s: 30px; --d: 0s; --r: 220deg; } .hujan-pop i:nth-child(2) { --x: 18%; --s: 22px; --d: .25s; --r: -180deg; } .hujan-pop i:nth-child(3) { --x: 29%; --s: 34px; --d: .1s; --r: 260deg; }
.hujan-pop i:nth-child(4) { --x: 41%; --s: 20px; --d: .45s; --r: -240deg; } .hujan-pop i:nth-child(5) { --x: 52%; --s: 28px; --d: .2s; --r: 200deg; } .hujan-pop i:nth-child(6) { --x: 63%; --s: 24px; --d: .55s; --r: -200deg; }
.hujan-pop i:nth-child(7) { --x: 74%; --s: 32px; --d: .05s; --r: 300deg; } .hujan-pop i:nth-child(8) { --x: 86%; --s: 22px; --d: .35s; --r: -260deg; } .hujan-pop i:nth-child(9) { --x: 12%; --s: 18px; --d: .7s; --r: 180deg; }
.hujan-pop i:nth-child(10) { --x: 47%; --s: 30px; --d: .8s; --r: -220deg; } .hujan-pop i:nth-child(11) { --x: 80%; --s: 20px; --d: .65s; --r: 240deg; } .hujan-pop i:nth-child(12) { --x: 93%; --s: 26px; --d: .15s; --r: -300deg; }
.suara { position: absolute; left: 50%; bottom: 13%; z-index: 3; translate: -50% 0; min-height: 42px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 999px; background: rgb(18 10 10 / .82); color: var(--cream); font: 400 13px/1 var(--mono); letter-spacing: .06em; white-space: nowrap; cursor: pointer; box-shadow: 0 8px 20px rgb(0 0 0 / .5); }
.suara[aria-pressed="true"] { display: none; }
.gulir { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 400 11px/1 var(--deco); letter-spacing: .3em; text-transform: uppercase; color: var(--soft); pointer-events: none; }
.gulir::after { content: ""; display: block; width: 1px; height: 22px; margin: 8px auto 0; background: linear-gradient(var(--gold), transparent); }

/* ---------- Credits: daftar pemeran bergaya penutup film + naskah ucapan ---------- */
.credits { position: relative; padding: 76px 24px 60px; text-align: center; background: linear-gradient(180deg, #000, var(--bg) 40%); }
.credits::before, .credits::after { content: ""; position: absolute; top: 22px; width: 92px; aspect-ratio: 240 / 260; background: url("img/sudut.webp") center / contain no-repeat; opacity: .8; pointer-events: none; }
.credits::before { left: 14px; transform: scaleX(-1); }
.credits::after { right: 14px; }
.cr-proyektor { width: 96px; margin: 0 auto 18px; }
.cr-kecil { font: 400 12px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.cr-judul { margin: 12px 0 10px; font: 700 clamp(30px, 9vw, 40px)/1.08 var(--deco); color: var(--gold); text-shadow: 0 0 22px rgb(224 176 98 / .3); overflow-wrap: anywhere; }
.cr-tag { font: italic 400 17px/1.4 var(--serif); color: var(--cream); opacity: .85; }
.cr-daftar { display: grid; gap: 18px; margin: 40px 0 34px; }
.cr-daftar > div { display: grid; gap: 2px; }
.cr-daftar dt { font: 400 11px/1.3 var(--deco); letter-spacing: .3em; text-transform: uppercase; color: var(--soft); }
.cr-daftar dd { font: 500 23px/1.2 var(--serif); color: var(--cream); overflow-wrap: anywhere; }
.cr-daftar > div:first-child dd { font: 700 30px/1.15 var(--deco); color: var(--gold); }
.cr-clapper { width: 104px; margin: 0 -10px -34px auto; position: relative; z-index: 1; transform: rotate(12deg); }
.pesan { position: relative; padding: 48px 22px 26px; border-radius: 4px; background: var(--cream); color: var(--ink); font: 400 15px/1.7 var(--mono); text-align: left; white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 22px 40px rgb(0 0 0 / .5); background-image: linear-gradient(90deg, transparent 30px, rgb(140 22 38 / .25) 30px 31px, transparent 31px); }
.pesan::before { content: "ADEGAN 1 — INT. HATI — MALAM"; position: absolute; top: 18px; left: 22px; right: 22px; font-size: 12px; letter-spacing: .08em; color: var(--velvet); border-bottom: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); padding-bottom: 6px; }
.tamat { margin-top: 26px; font: italic 400 15px/1.4 var(--serif); color: var(--soft); }

/* ---------- Behind the scenes: pita seluloid digeser ---------- */
.bts { position: relative; padding: 46px 0 40px; text-align: center; }
.bts-reel { position: absolute; right: -18px; top: 6px; width: 96px; }
.bts .lbl { padding: 0 24px; margin-bottom: 18px; color: var(--gold); }
.pita { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 24px; transform: rotate(-2deg); }
.pita::-webkit-scrollbar { display: none; }
.pita-isi { display: flex; gap: 0; width: max-content; padding: 22px 6px; background: #0d0d0d; box-shadow: 0 16px 30px rgb(0 0 0 / .5); position: relative; }
.pita-isi::before, .pita-isi::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 7px, #e7dcc4 7px 17px, transparent 17px 24px); border-radius: 2px; }
.pita-isi::before { top: 6px; } .pita-isi::after { bottom: 6px; }
.pita figure { flex: none; width: 210px; padding: 0 6px; scroll-snap-align: center; }
.pita img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; filter: sepia(.25) contrast(1.05); }
.geser { margin-top: 12px; font: 400 12px/1 var(--mono); color: var(--soft); letter-spacing: .1em; }

/* ---------- Ulasan penonton (balasan) ---------- */
.ulasan { position: relative; margin: 26px 20px 30px; padding: 70px 20px 26px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, #2a1213, #1a0c0c); border: 1px solid var(--line); box-shadow: inset 0 0 0 5px rgb(224 176 98 / .08); }
.ul-piala { position: absolute; left: 50%; top: -58px; width: 70px; translate: -50% 0; }
.ulasan h2 { margin-bottom: 8px; font: 500 28px/1.15 var(--serif); }
.bintang { margin-bottom: 18px; font-size: 22px; letter-spacing: .2em; color: var(--gold); }
.ulasan form { display: grid; gap: 12px; text-align: left; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.hint { font-size: 13px; color: var(--soft); }
.btn { min-height: 50px; padding: 0 22px; border: 1px solid var(--gold); border-radius: 999px; background: linear-gradient(180deg, var(--velvet), var(--velvet-d)); color: var(--cream); font: 600 13px/1.2 var(--deco); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.btn.ghost { min-height: 42px; padding: 8px 14px; border: 1px dashed var(--gold-d); background: transparent; color: var(--cream); font: 400 13px/1.3 var(--mono); letter-spacing: 0; text-transform: none; text-align: left; border-radius: 10px; }
textarea { width: 100%; min-height: 96px; padding: 14px 16px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--cream); font: 400 14px/1.5 var(--mono); }
textarea::placeholder { color: var(--soft); }
.ul-tali { width: 150px; margin: 22px auto 0; opacity: .9; }

.music-toggle { position: fixed; top: 14px; right: 14px; z-index: 20; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-d); background: rgb(18 10 10 / .8); color: var(--gold); display: grid; place-items: center; cursor: pointer; }
.music-toggle svg { width: 20px; height: 20px; }
.music-toggle[aria-pressed="true"] { background: var(--velvet); border-color: var(--gold); color: var(--cream); }
.foot { padding: 8px 22px 34px; text-align: center; font-size: 12px; color: var(--soft); }
.foot a { color: var(--gold); }

/* ---------- Urutan dengan JS. Tanpa JS semua tampil di keadaan akhir. ---------- */
.js body[data-opener="amplop"]:not(.opened) .cover { display: flex; }
.js body[data-opener="amplop"]:not(.opened) main > section:not(.cover),
.js body[data-opener="amplop"]:not(.opened) .foot,
.js body[data-opener="amplop"]:not(.opened) .music-toggle { display: none; }
.js .suara:not(.tampil) { display: none; }
.js body:not(.putar) .gulir { opacity: 0; }
.gulir { transition: opacity .8s ease; }

/* Sebelum tayang: lampu menyala, tirai tertutup, proyektor mati. */
.js body:not(.redup-on) .redup { opacity: 0; }
.js body:not(.redup-on) .lampu i { opacity: 1; }
.js body:not(.tirai-buka) .tirai.l { transform: translateX(0) scaleX(1); }
.js body:not(.tirai-buka) .tirai.r { transform: translateX(0) scaleX(-1); }
.js body:not(.sorot-on) .sorot { opacity: 0; }
.sorot { transition: opacity 1s ease; }
.lampu i { transition: opacity 1.6s ease; }
.js body.hitung .leader { opacity: 1; }
.js body.hitung .judul-layar { opacity: 0; }
.js body.judul .judul-layar { opacity: 1; }
.js body.judul .film, .js body.judul .slide { opacity: 0; }
.film, .slide { transition: opacity .8s ease; }
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .hitung .leader .sapu { animation: sapu .8s linear 3 both; }
  .hitung .leader b:nth-of-type(1) { animation: angka .8s steps(1) 0s both; }
  .hitung .leader b:nth-of-type(2) { animation: angka .8s steps(1) .8s both; }
  .hitung .leader b:nth-of-type(3) { animation: angka .8s steps(1) 1.6s both; }
  .hitung .leader { animation: kedip .12s steps(2) infinite; }
  .tirai-buka .hujan-pop i { animation: jatuhPop 2.6s cubic-bezier(.35, 0, .7, 1) var(--d) both; }
  .sorot-on .debu i { animation: debu 7s ease-in-out infinite; }
  .debu i:nth-child(2n) { animation-delay: -2s !important; animation-duration: 9s !important; }
  .debu i:nth-child(3n) { animation-delay: -4.5s !important; animation-duration: 6s !important; }
  .sorot-on .sorot { animation: sorotK 3.2s ease-in-out infinite; }
  .lampu i { animation: lampuK 4s ease-in-out infinite; }
  .lampu i:nth-child(2n) { animation-delay: -1.7s; }
  .cover-sorot { animation: sorotK 3s ease-in-out infinite; }
  .tiket { animation: ayunTiket 4.5s ease-in-out infinite; }
  .opening .tiket { animation: none; }
  .bts-reel { animation: putarReel 9s linear infinite; }
  .bintang { animation: kilau 2.4s ease-in-out infinite; }
  .ul-piala { animation: piala 3.6s ease-in-out infinite; }
  .pop-depan { animation: popA 5s ease-in-out infinite; }
}
@keyframes sapu { from { --sapu: 0deg; } to { --sapu: 360deg; } }
@keyframes angka { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes kedip { 50% { filter: brightness(1.08); } }
@keyframes jatuhPop { 0% { opacity: 0; transform: translateY(0) rotate(0); } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(105svh) rotate(var(--r)); } }
@keyframes debu { 0%, 100% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .9; } 50% { transform: translate(10px, -16px); } 70% { opacity: .5; } }
@keyframes sorotK { 0%, 100% { opacity: .9; } 50% { opacity: .7; } 70% { opacity: .95; } }
@keyframes lampuK { 0%, 100% { scale: 1; } 45% { scale: .92; } 60% { scale: 1.05; } }
@keyframes ayunTiket { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-6px); } }
@keyframes putarReel { to { transform: rotate(360deg); } }
@keyframes kilau { 50% { text-shadow: 0 0 14px rgb(224 176 98 / .8); } }
@keyframes piala { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -6px; } }
@keyframes popA { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-5deg) translateY(-4px); } }

/* Perjalanan gulir: kamera mendekat ke layar lalu gelap menjelang credits. */
.ready .stage { transform: translate(-50%, -51%) scale(calc(1 + var(--p, 0) * .55)); }
.ready .teater::after { opacity: calc(var(--p, 0) * .85); }

/* Bagian muncul saat digulir. */
.anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .credits .cr-daftar > div { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 160ms + 300ms); }
.anim .credits.in .cr-daftar > div { opacity: 1; transform: none; }
.anim .cr-clapper { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) 1s; transform: rotate(-4deg) translateY(-10px); }
.anim .credits.in .cr-clapper { transform: rotate(12deg); }
