:root {
  --krem: #fffaf2; --tinta: #3b2f2a; --emas: #c8922a; --biru: #3f6fa3; --mawar: #c4566b; --muted: #7a6a60; --garis: #ead9c0;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f6efe4; color: var(--tinta); font-family: 'Nunito', system-ui, sans-serif; }
.hidden { display: none !important; }
.top { background: var(--biru); color: #fff; padding: 12px 16px; font-family: 'Fredoka', sans-serif; font-weight: 600; }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 2px 10px #0001; }
h1 { font-family: 'Fredoka', sans-serif; font-size: 22px; margin: 0 0 8px; }
label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: 15px; }
label small { font-weight: 400; color: var(--muted); }
input { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1.5px solid var(--garis); border-radius: 10px; background: #fffdf9; }
.btn { display: block; width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 12px; background: var(--mawar); color: #fff; font: 700 17px 'Nunito', sans-serif; cursor: pointer; }
.btn:disabled { opacity: .6; }
.btn2 { background: #fff; color: var(--biru); border: 2px solid var(--biru); }
.aksi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aksi .btn { margin-top: 0; }
.err { color: #b3261e; font-weight: 700; min-height: 1em; }
.muted { color: var(--muted); } .kecil { font-size: 13px; } .tengah { text-align: center; }
.hasil { display: grid; gap: 8px; margin-top: 8px; }
.opsi { display: flex; gap: 10px; align-items: center; text-align: left; background: #fffdf9; border: 1.5px solid var(--garis); border-radius: 12px; padding: 8px; font: inherit; cursor: pointer; }
.opsi img, .opsi .ph { width: 44px; height: 58px; object-fit: cover; border-radius: 8px; flex: none; background: #f3e6cf; display: grid; place-items: center; color: var(--emas); }
.opsi b { display: block; } .opsi small { color: var(--muted); }
.pilihan { margin-top: 8px; background: #eef5ec; border-radius: 10px; padding: 10px; }
.link { background: none; border: 0; color: var(--biru); text-decoration: underline; font: inherit; cursor: pointer; }

/* ---------- halaman buku ---------- */
.buku { display: grid; gap: 16px; margin-top: 12px; }
.page { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 148 / 209; overflow: hidden;
  background: var(--krem); border-radius: 6px; box-shadow: 0 2px 12px #0002; padding: 7cqw 8cqw; font-size: 3.6cqw; line-height: 1.5; }
.render { position: fixed; left: -10000px; top: 0; width: 148mm; }
.rk { width: 148mm; }
.rk .page { width: 148mm; height: 209mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.page h2 { font-family: 'Fredoka', sans-serif; color: var(--biru); font-size: 6.4cqw; margin: 0 0 3cqw; line-height: 1.2; }
.page h3 { font-family: 'Fredoka', sans-serif; color: var(--mawar); font-size: 4.6cqw; margin: 0 0 2cqw; }
.page p { margin: 0 0 3cqw; }
.nm { color: var(--mawar); }
.no { position: absolute; bottom: 3.5cqw; left: 0; right: 0; text-align: center; font-size: 2.8cqw; color: var(--muted); }
.emb { display: grid; place-items: center; background: radial-gradient(circle, #fff3d6, #f0d9a8); color: var(--emas); font-size: 18cqw; }

.sampul { text-align: center; padding: 8cqw 6cqw; background: linear-gradient(#fff8ea, #fbe9d0); border: 2.2cqw solid #fff; outline: .6cqw solid var(--emas); outline-offset: -3.4cqw; }
.s-atas { font-family: 'Fredoka', sans-serif; color: var(--biru); font-size: 6cqw; font-weight: 600; margin-top: 2cqw; }
.s-nama { font-family: 'Fredoka', sans-serif; color: var(--mawar); font-size: 12cqw; font-weight: 700; line-height: 1.1; margin: 1cqw 0 3cqw; word-break: break-word; }
.s-img { display: block; width: 66cqw; height: 88cqw; object-fit: cover; margin: 0 auto; border-radius: 4cqw; box-shadow: 0 1cqw 3cqw #0002; }
.s-santo { font-family: 'Fredoka', sans-serif; font-size: 5.2cqw; font-weight: 600; margin-top: 4cqw; }
.s-pesta { font-size: 3.4cqw; color: var(--muted); }

.ded { text-align: center; font-size: 4.6cqw; padding: 4cqw 0 5cqw; border-bottom: .4cqw dashed var(--garis); margin-bottom: 5cqw; }
.kenal { background: #fff; border-radius: 3cqw; padding: 4cqw 5cqw; border: .4cqw solid var(--garis); }
.kenal dl { display: grid; grid-template-columns: 22cqw 1fr; gap: 1.5cqw 3cqw; margin: 0; }
.kenal dt { font-weight: 800; color: var(--biru); } .kenal dd { margin: 0; }
.hai { margin-top: 5cqw !important; font-size: 3.9cqw; }

.kisah p { font-size: 4.35cqw; line-height: 1.55; }
.k-img { display: block; width: 100%; height: 62cqw; object-fit: cover; border-radius: 3cqw; margin: 0 0 4cqw; }
.k-img.k0 { object-position: 50% 22%; } .k-img.k1 { object-position: 50% 55%; height: 70cqw; } .k-img.k2 { object-position: 50% 88%; }
.kisah h2 + .k-img { height: 54cqw; }

.pesan { background: #fff3d6; border-radius: 3cqw; padding: 5cqw; font-size: 4.6cqw; font-weight: 700; margin-bottom: 6cqw; }
.doa-h { margin-top: 2cqw; }
.doa { font-style: italic; font-size: 4.3cqw; background: #fff; border-left: 1.2cqw solid var(--emas); padding: 4cqw; border-radius: 0 3cqw 3cqw 0; margin-bottom: 4cqw; }

.misi { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.6cqw; counter-reset: m; }
.misi li { counter-increment: m; display: flex; gap: 3cqw; align-items: flex-start; background: #fff; border-radius: 2.5cqw; padding: 2.6cqw 3cqw; font-size: 3.8cqw; }
.misi li::before { content: 'Hari ' counter(m); flex: none; font-weight: 800; color: var(--biru); width: 13cqw; }
.kotak { order: 3; margin-left: auto; flex: none; width: 5.5cqw; height: 5.5cqw; border: .5cqw solid var(--emas); border-radius: 1cqw; }

.serti { padding: 5cqw; }
.bingkai { height: 100%; border: 1.2cqw double var(--emas); border-radius: 3cqw; text-align: center; padding: 5cqw 5cqw; background: #fffdf7; display: flex; flex-direction: column; align-items: center; }
.se-atas { font-size: 3.4cqw; letter-spacing: .8cqw; text-transform: uppercase; color: var(--muted); }
.se-judul { font-family: 'Fredoka', sans-serif; font-size: 7.4cqw; color: var(--biru); font-weight: 700; margin-bottom: 3cqw; }
.se-img { width: 30cqw; height: 30cqw; object-fit: cover; object-position: top; border-radius: 50%; border: 1cqw solid #f3dfb3; margin-bottom: 3cqw; }
.se-nama { font-family: 'Fredoka', sans-serif; font-size: 10cqw; color: var(--mawar); font-weight: 700; line-height: 1.1; margin: 1cqw 0 3cqw; word-break: break-word; }
.serti p { font-size: 3.9cqw; margin-bottom: 2.5cqw; }
.ttd { margin-top: auto; display: flex; justify-content: space-around; width: 100%; }
.ttd span { border-top: .4cqw solid var(--tinta); padding-top: 1cqw; width: 30cqw; font-size: 3.2cqw; }

.ortu ul { padding-left: 5cqw; margin: 0 0 4cqw; } .ortu li { margin-bottom: 2cqw; }
.catatan { background: #fff; border-radius: 3cqw; padding: 4cqw; font-size: 3.3cqw; margin-bottom: 3cqw; border: .4cqw solid var(--garis); }
.page .kecil { font-size: 3.1cqw; }
.audio { margin-top: 12px; }
.audio summary { font-weight: 800; cursor: pointer; }
.audio audio { width: 100%; margin-top: 12px; }
a.btn { text-align: center; text-decoration: none; }
