/* Tema halaman PESERTA (index.html). Dimuat setelah style.css; panel HRD tidak memakainya.
   Arah visual mengikuti referensi pemilik proyek: hijau sage, judul serif, tombol pil, kartu bersudut besar.
   Tanpa font dari luar (CSP default-src 'self'): judul memakai serif bawaan perangkat. */
body[data-mode="kandidat"] {
  --h-brand: #a3b18a; --h-brand-gelap: #8fa076; --h-deep: #5b6f4a; --h-ink: #2a3324;
  --h-tint: #f1eadb; --h-tint2: #e8e0cc; --h-garis: #ded5bf; --h-redup: #6b6a59;
  --h-latar: #f8f3e8; --h-kertas: #fffdf8;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  /* variabel style.css yang dialihkan ke palet ini */
  --biru: var(--h-deep); --biru-teks: #4b5d3c; --biru-50: var(--h-tint2);
  --slate-900: var(--h-ink); --iq-a: var(--h-deep);
  --fokus: 0 0 0 3px rgb(163 177 138 / .6);
  background: var(--h-latar); color: #343a2c;
}
body[data-mode="kandidat"][data-layar="tes"] { background: linear-gradient(var(--h-tint), var(--h-latar) 460px) no-repeat var(--h-latar); }
body[data-mode="kandidat"] :is(h1, h2, h3) { color: var(--h-ink); }
body[data-mode="kandidat"] .muted { color: var(--h-redup); }

/* ---- kepala: putih, merek di kiri, tombol bergaris di kanan */
body[data-mode="kandidat"] .kepala { height: 68px; background: rgb(248 243 232 / .96); border-bottom: 1px solid #e4dcc8; box-shadow: 0 1px 2px rgb(28 42 18 / .05); }
body[data-mode="kandidat"] .merek { color: var(--h-ink); font-size: 17px; font-weight: 700; letter-spacing: -0.2px; gap: 12px; }
body[data-mode="kandidat"] .merek-ikon { width: 44px; height: 44px; border-radius: 50%; background: var(--h-tint2); border: 1px solid var(--h-garis); color: var(--h-deep); }
body[data-mode="kandidat"] .merek-ikon img { width: 30px; height: 30px; display: block; }
body[data-mode="kandidat"] .kepala .tombol-kecil { min-height: 40px; padding: 0 16px; font-size: 14px; background: var(--h-kertas); color: var(--h-ink);
  border: 1.5px solid var(--h-deep); border-radius: 12px; box-shadow: none; }
body[data-mode="kandidat"] .kepala .tombol-kecil:hover { background: var(--h-tint); }

/* ---- tombol: pil hijau, tanpa gradien */
body[data-mode="kandidat"] :is(button, .tombol) { background: var(--h-brand); color: var(--h-ink); font-weight: 700; border-radius: 999px;
  box-shadow: none; min-height: 48px; padding: 0 24px; transition: background-color .15s, border-color .15s, box-shadow .15s; }
body[data-mode="kandidat"] :is(button, .tombol):hover { background: var(--h-brand-gelap); }
body[data-mode="kandidat"] :is(button, .tombol):focus-visible { box-shadow: var(--fokus); }
body[data-mode="kandidat"] .tombol-besar { min-height: 56px; padding: 0 30px; font-size: 16px; }
body[data-mode="kandidat"] :is(button, .tombol).sekunder { background: var(--h-kertas); color: var(--h-deep); border: 1.5px solid #c3cdb0; }
body[data-mode="kandidat"] :is(button, .tombol).sekunder:hover { background: var(--h-tint); border-color: var(--h-brand); }
body[data-mode="kandidat"] button.hantu { background: transparent; color: var(--h-redup); padding: 0 14px; font-weight: 600; }
body[data-mode="kandidat"] button.hantu:hover { background: var(--h-tint2); color: var(--h-ink); }
body[data-mode="kandidat"] button.hantu:disabled:hover { background: transparent; color: var(--h-redup); }

/* ---- hero beranda: rata kiri, chip, judul serif, fakta */
body[data-mode="kandidat"] .hero { background: var(--h-tint); color: #454b3a; text-align: left; padding: 56px 16px 40px; }
body[data-mode="kandidat"] .hero-isi { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 24px; align-items: center; }
/* ---- kaki halaman beranda: catatan, nama besar yang memudar, baris hak cipta */
.kaki { display: none; }
body[data-mode="kandidat"][data-layar="beranda"] .kaki { display: block; background: var(--h-latar); border-top: 1px solid var(--h-garis); margin-top: 56px; padding: 32px 20px 20px; }
.kaki-isi { max-width: 1080px; margin: 0 auto; }
.kaki h2 { font-size: 15px; font-weight: 700; color: var(--h-ink); margin: 0 0 6px; }
.kaki-ket { margin: 0; max-width: 30em; font-size: 15px; line-height: 1.6; color: var(--h-redup); }
.kaki-baris { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--h-garis); font-size: 13px; color: var(--h-redup); }
.kaki-baris p { margin: 0; } .kaki-baris .pisah { margin: 0 8px; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  .iso .l-atas, .iso .l-tengah, .iso .apung, .iso .titik { animation: none; }
}
@media (max-width: 1040px) {
  body[data-mode="kandidat"] .hero-isi { grid-template-columns: minmax(0, 1fr); }
  .hero-gambar { max-width: 360px; margin: 8px auto 0; }
}
.hero-chip { display: inline-block; margin: 0 0 20px; padding: 8px 16px; border-radius: 999px; background: var(--h-tint2); color: var(--h-deep); font-size: 14px; font-weight: 600; }
body[data-mode="kandidat"] .hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; color: var(--h-ink); margin: 0 0 20px; max-width: 14em; text-wrap: balance; }
body[data-mode="kandidat"] .hero-sub { font-size: 18px; line-height: 1.65; color: #454b3a; max-width: 34em; margin: 0 0 28px; }
body[data-mode="kandidat"] .hero .tombol-besar { margin: 0; }
.hero-fakta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--h-garis); max-width: 640px; }
.hero-fakta div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-fakta dt { font-size: 13px; color: var(--h-redup); }
.hero-fakta dd { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--h-deep); letter-spacing: -0.01em; }

/* ---- pita judul bagian saat tes */
body[data-mode="kandidat"] .pita { background: transparent; padding: 28px 16px 0; display: flex; flex-direction: column-reverse; gap: 6px; align-items: center; }
body[data-mode="kandidat"] .pita h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; color: var(--h-ink); }
body[data-mode="kandidat"] .pita p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--h-deep); }

/* ---- beranda: daftar bagian bergaya kartu daftar */
body[data-mode="kandidat"][data-layar="beranda"] main { max-width: 800px; padding-top: 48px; }
body[data-mode="kandidat"] .judul-bagian { text-align: left; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--h-garis); }
body[data-mode="kandidat"] .judul-bagian h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -0.01em; }
body[data-mode="kandidat"] .judul-bagian p { color: var(--h-redup); }
body[data-mode="kandidat"] .alur { max-width: none; background: none; border: 0; border-radius: 0; display: grid; gap: 12px; }
body[data-mode="kandidat"] .alur-butir { background: var(--h-kertas); border: 1px solid var(--h-garis); border-radius: 16px; padding: 16px; gap: 16px; }
body[data-mode="kandidat"] .alur-butir + .alur-butir { border-top: 1px solid var(--h-garis); }
body[data-mode="kandidat"] .alur-butir.kini { border-color: var(--h-brand); box-shadow: 0 6px 18px -10px rgb(91 111 74 / .45); }
body[data-mode="kandidat"] .alur-nomor { width: 48px; height: 48px; border-radius: 16px; background: var(--h-tint2); color: var(--h-deep); font-family: var(--serif); font-size: 20px; font-weight: 600; }
body[data-mode="kandidat"] .alur-butir.kini .alur-nomor { background: var(--h-ink); color: var(--h-kertas); }
body[data-mode="kandidat"] .alur-butir.selesai .alur-nomor { background: var(--h-tint2); color: var(--h-deep); }
body[data-mode="kandidat"] .alur-isi h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
body[data-mode="kandidat"] .alur-isi p { font-size: 13px; font-weight: 600; color: var(--h-deep); }
body[data-mode="kandidat"] .alur-butir.selesai .alur-isi h3 { color: var(--h-redup); }
body[data-mode="kandidat"] .alur-status { color: var(--h-deep); font-weight: 600; }
body[data-mode="kandidat"] .alur-status.kini { color: var(--h-ink); }
body[data-mode="kandidat"] .aksi.tengah { justify-content: flex-start; margin-top: 28px; }
body[data-mode="kandidat"] .catatan-bawah { text-align: left; margin: 24px 0 0; max-width: 46em; color: var(--h-redup); }
body[data-mode="kandidat"][data-layar="tes"] .catatan-bawah { text-align: center; margin: 24px auto 0; }

/* ---- kartu dan isian */
body[data-mode="kandidat"] .card { border: 1px solid #e4dcc8; border-radius: 28px; padding: 32px; box-shadow: 0 24px 60px -28px rgb(28 42 18 / .28); }
body[data-mode="kandidat"] .kartu-kaki { margin: 28px -32px -32px; padding: 14px 20px; background: var(--h-tint); border-top: 1px solid #e4dcc8; border-radius: 0 0 28px 28px; color: var(--h-redup); }
body[data-mode="kandidat"] .progress { height: 8px; background: #ebe4d3; }
body[data-mode="kandidat"] .progress > div { background: var(--h-deep); }
body[data-mode="kandidat"] :is(input[type=text], input[type=email], select) { border-radius: 12px; border-color: #cfd6bd; }
body[data-mode="kandidat"] :is(input[type=text], input[type=email], select):focus { border-color: var(--h-deep); }
body[data-mode="kandidat"] .info-peserta { background: var(--h-tint); border-color: var(--h-garis); border-radius: 16px; }
body[data-mode="kandidat"] .pertanyaan { font-weight: 700; letter-spacing: -0.01em; }
body[data-mode="kandidat"] .skala button, body[data-mode="kandidat"] .skala2 button { background: var(--h-kertas); color: var(--h-ink); border: 2px solid #e4dcc8; border-radius: 16px; padding: 12px 4px; font-weight: 600; }
body[data-mode="kandidat"] .skala button:hover, body[data-mode="kandidat"] .skala2 button:hover { background: var(--h-tint); border-color: var(--h-brand); }
body[data-mode="kandidat"] .skala button.dipilih { background: var(--h-tint2); border-color: var(--h-deep); color: var(--h-ink); box-shadow: none; }

/* ---- tes penalaran */
body[data-mode="kandidat"] .iq-fakta { border-color: var(--h-garis); }
body[data-mode="kandidat"] .iq-fakta-butir + .iq-fakta-butir { border-left-color: var(--h-garis); }
body[data-mode="kandidat"] .iq-fakta dd { font-family: var(--serif); font-weight: 600; color: var(--h-deep); }
body[data-mode="kandidat"] .iq-mulai h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; }
body[data-mode="kandidat"] .iq-aturan strong { font-weight: 700; }
body[data-mode="kandidat"] .iq-kepala { margin: -4px 0 18px; }
body[data-mode="kandidat"] .iq-nomor { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #8b9684; }
body[data-mode="kandidat"] .iq-waktu { background: #ebe4d3; border: 0; color: #4d5a43; font-size: 13px; font-weight: 700; padding: 5px 12px; }
body[data-mode="kandidat"] .iq-waktu.hampir { background: var(--merah-50); color: var(--merah); }
.iq-kategori { display: table; margin: 0 auto 14px; padding: 5px 12px; border-radius: 999px; background: var(--h-tint2, #eef4e2); color: var(--h-deep, #5a7a2e);
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
body[data-mode="kandidat"] .iq-soal { text-align: center; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin: 0 auto 28px; max-width: 24em; text-wrap: balance; }
body[data-mode="kandidat"] .iq-soal .nomor-soal { display: none; }
body[data-mode="kandidat"] .iq-sel { background: var(--h-tint); border-color: var(--h-garis); border-radius: 14px; }
body[data-mode="kandidat"] .iq-sel-kosong { background: var(--h-kertas); border-color: #c3cdb0; color: #9aa88a; }
body[data-mode="kandidat"] .iq-opsi { background: var(--h-kertas); color: #2f3a27; font-weight: 500; border: 2px solid #e4dcc8; border-radius: 16px; min-height: 60px; padding: 24px 10px 12px; }
body[data-mode="kandidat"] .iq-opsi:hover { background: var(--h-kertas); border-color: var(--h-brand); box-shadow: none; }
body[data-mode="kandidat"] .iq-opsi.dipilih { background: var(--h-tint); border-color: var(--h-deep); box-shadow: none; }
body[data-mode="kandidat"] .iq-pilihan-gambar .iq-opsi { padding: 6px; }
body[data-mode="kandidat"] .iq-pilihan-gambar .iq-opsi .iq-svg { background: var(--h-tint); border-radius: 10px; }
body[data-mode="kandidat"] .iq-pilihan-teks { gap: 12px; }
body[data-mode="kandidat"] .iq-pilihan-teks .iq-opsi { border-radius: 20px; border-width: 2px; border-color: #e4dcc8; padding: 14px 16px; min-height: 60px; }
body[data-mode="kandidat"] .iq-pilihan-teks .iq-opsi:hover { border-color: var(--h-brand); background: var(--h-kertas); }
body[data-mode="kandidat"] .iq-pilihan-teks .iq-opsi.dipilih { border-color: var(--h-deep); background: var(--h-tint); box-shadow: none; }
body[data-mode="kandidat"] .iq-pilihan-teks .iq-huruf { width: 32px; height: 32px; border-radius: 10px; background: var(--h-tint2); color: var(--h-deep); font-weight: 700; }
body[data-mode="kandidat"] .iq-pilihan-teks .iq-opsi.dipilih .iq-huruf { background: var(--h-deep); color: var(--h-kertas); }
body[data-mode="kandidat"] .iq-bawah { border-top-color: var(--h-garis); }
body[data-mode="kandidat"] .iq-peta-butir { background: var(--h-kertas); color: #56624c; border: 1px solid #cfd6bd; border-radius: 10px; padding: 0; min-height: 34px; font-weight: 600; }
body[data-mode="kandidat"] .iq-peta-butir:hover { background: var(--h-tint2); border-color: var(--h-brand); }
body[data-mode="kandidat"] .iq-peta-butir.terjawab { background: var(--h-deep); border-color: var(--h-deep); color: var(--h-kertas); }
body[data-mode="kandidat"] .iq-peta-butir.kini { box-shadow: 0 0 0 2px var(--h-kertas), 0 0 0 4px var(--h-brand); }
body[data-mode="kandidat"] .iq-selesai { min-height: 44px; }

/* ---- layar akhir */
body[data-mode="kandidat"] .kartu-hasil h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; }
body[data-mode="kandidat"] .kartu-hasil .ikon-ok, body[data-mode="kandidat"] .ikon-ok { background: var(--h-tint2); color: var(--h-deep); }
body[data-mode="kandidat"] .bukti { border-color: var(--h-garis); border-radius: 16px; background: var(--h-tint); }
body[data-mode="kandidat"] .bukti > div + div { border-color: var(--h-garis); }

@media (max-width: 640px) {
  body[data-mode="kandidat"] .kepala { height: 60px; }
  body[data-mode="kandidat"] .hero { padding: 36px 20px 28px; }
  body[data-mode="kandidat"] .hero-sub { font-size: 16px; }
  .hero-fakta dd { font-size: 22px; }
  body[data-mode="kandidat"] .card { padding: 22px 18px; border-radius: 22px; }
  body[data-mode="kandidat"] .kartu-kaki { margin: 22px -18px -22px; border-radius: 0 0 22px 22px; }
  body[data-mode="kandidat"] .iq-soal { font-size: 20px; margin-bottom: 20px; }
  body[data-mode="kandidat"] .iq-peta-butir { min-height: 44px; }
  body[data-mode="kandidat"] .alur-nomor { width: 44px; height: 44px; }
  body[data-mode="kandidat"] .aksi.tengah :is(button, .tombol) { width: 100%; }
}
@media (max-width: 640px) { body[data-mode="kandidat"].mode-soal .pita { display: none; } }

/* Dropdown: panah bawaan browser diganti segitiga sendiri agar jarak dan posisinya sama di semua kolom. */
body[data-mode="kandidat"] select {
  -webkit-appearance: none; appearance: none; padding: 10px 44px 10px 16px; line-height: 1.4; text-overflow: ellipsis; cursor: pointer;
  background-color: var(--h-kertas);
  background-image: linear-gradient(45deg, transparent 50%, var(--h-deep) 50%), linear-gradient(135deg, var(--h-deep) 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  background-position: right 22px top 50%, right 16px top 50%;
}
body[data-mode="kandidat"] select:invalid, body[data-mode="kandidat"] select.kosong { color: var(--h-redup); }
body[data-mode="kandidat"] .tgl-lahir-isi { grid-template-columns: 1fr 1.5fr 1.1fr; gap: 12px; }
body[data-mode="kandidat"] .form-identitas .kolom { margin-bottom: 20px; }
@media (max-width: 400px) { body[data-mode="kandidat"] .tgl-lahir-isi { grid-template-columns: 1fr 1fr; } }
body[data-mode="kandidat"] .siap { margin: 0; padding-left: 22px; color: var(--h-ink); font-size: 15px; }
body[data-mode="kandidat"] .siap li { margin-bottom: 10px; padding-left: 4px; }
body[data-mode="kandidat"] .siap li::marker { color: var(--h-deep); font-weight: 700; }
body[data-mode="kandidat"] .kemajuan { height: 6px; max-width: 320px; margin: 12px auto 0; background: var(--h-tint2); border-radius: 999px; overflow: hidden; }
body[data-mode="kandidat"] .kemajuan > div { height: 100%; background: var(--h-brand); border-radius: 999px; transition: width .3s; }
body[data-mode="kandidat"] .lewati-kreatif { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--h-garis); align-items: center; gap: 12px; }

/* ================= kerapian beranda: satu lebar, satu tepi kiri-kanan untuk kepala, hero, isi, dan kaki ================= */
body[data-mode="kandidat"] { --lebar: 1080px; --tepi: 24px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body[data-mode="kandidat"] > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
body[data-mode="kandidat"] > :is(.kepala, .hero, .pita, .kaki) { flex: none; }
body[data-mode="kandidat"] :is(.kepala-isi, .hero-isi, .kaki-isi),
body[data-mode="kandidat"][data-layar="beranda"] > main { max-width: calc(var(--lebar) + 2 * var(--tepi)); margin-inline: auto; padding-inline: var(--tepi); box-sizing: border-box; width: 100%; }

body[data-mode="kandidat"] .hero { padding: 64px 0 56px; }
body[data-mode="kandidat"] .hero-isi { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; }
body[data-mode="kandidat"] .hero h1 { margin-bottom: 16px; }
body[data-mode="kandidat"] .hero-sub { margin-bottom: 32px; }
.hero-fakta { display: flex; flex-wrap: wrap; gap: 12px 48px; max-width: none; margin-top: 40px; padding-top: 24px; }
.hero-fakta dd { white-space: nowrap; line-height: 1.2; }
.hero-gambar { justify-self: end; width: 100%; }

body[data-mode="kandidat"][data-layar="beranda"] > main { padding-top: 64px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 56px; row-gap: 24px; align-items: start; align-content: start; }
body[data-mode="kandidat"][data-layar="beranda"] > main > * { grid-column: 2; margin: 0; }
body[data-mode="kandidat"][data-layar="beranda"] > main > .judul-bagian { grid-column: 1; grid-row: 1 / span 3; border-bottom: 0; padding-bottom: 0; }
body[data-mode="kandidat"][data-layar="beranda"] > main > .judul-bagian:only-child { grid-column: 1 / -1; }
body[data-mode="kandidat"][data-layar="beranda"] .judul-bagian h2 { margin: 0 0 10px; line-height: 1.15; }
body[data-mode="kandidat"][data-layar="beranda"] .judul-bagian p { margin: 0; font-size: 15px; line-height: 1.6; }
body[data-mode="kandidat"] .siap li { line-height: 1.6; margin-bottom: 12px; }
body[data-mode="kandidat"] .siap li:last-child { margin-bottom: 0; }

body[data-mode="kandidat"][data-layar="beranda"] .kaki { margin-top: 0; padding: 40px 0 24px; }
.kaki-ket { max-width: 34em; }
.kaki-besar { display: block; width: 100%; height: auto; margin: 40px 0 0; font-size: 72px; font-weight: 800; letter-spacing: -0.02em; user-select: none; }
.kaki-besar text { font-family: inherit; }
.kaki-baris { margin-top: 24px; padding-top: 16px; align-items: baseline; }

@media (max-width: 1040px) {
  body[data-mode="kandidat"] .hero-isi { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-gambar { justify-self: center; max-width: 380px; margin: 0; }
  body[data-mode="kandidat"][data-layar="beranda"] > main { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 56px; }
  body[data-mode="kandidat"][data-layar="beranda"] > main > *, body[data-mode="kandidat"][data-layar="beranda"] > main > .judul-bagian { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  body[data-mode="kandidat"] { --tepi: 20px; }
  body[data-mode="kandidat"] .hero { padding: 40px 0 36px; }
  .hero-fakta { gap: 12px 28px; margin-top: 32px; }
  body[data-mode="kandidat"][data-layar="beranda"] .kaki { padding: 32px 0 20px; }
  .kaki-besar { margin-top: 28px; }
  .kaki-baris { margin-top: 16px; }
}

/* ================= panggung beranda: bingkai gelap membulat, objek partikel bercahaya, ubin kaca =================
   Warna tetap dari keluarga sage dan beige: sage sangat gelap untuk panggung, beige untuk cahaya dan teks. */
body[data-mode="kandidat"] { position: relative; }
body[data-mode="kandidat"] .hero { background: transparent; padding: 16px; overflow: visible; isolation: auto; }
.panggung { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; color: #f3ecdc; max-width: 1480px; margin: 0 auto;
  background: radial-gradient(120% 95% at 72% 38%, #2f3b27 0%, #1f271a 45%, #12170f 100%); box-shadow: 0 30px 70px -40px rgb(21 27 18 / .7); }
.panggung::before, .panggung::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.panggung::before { width: 46%; aspect-ratio: 1; left: -12%; bottom: -30%; background: #b9a36f; opacity: .28; animation: bokeh 18s ease-in-out infinite alternate; }
.panggung::after { width: 38%; aspect-ratio: 1; right: -8%; top: -24%; background: #a3b18a; opacity: .22; animation: bokeh 24s ease-in-out infinite alternate-reverse; }
@keyframes bokeh { from { transform: translate(0, 0) scale(1); } to { transform: translate(6%, -8%) scale(1.15); } }
.panggung-kanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.panggung-isi { position: relative; z-index: 1; box-sizing: border-box; width: 100%; max-width: calc(var(--lebar) + 2 * var(--tepi)); margin: 0 auto;
  padding: 104px var(--tepi) 56px; min-height: min(760px, calc(100vh - 32px)); min-height: min(760px, calc(100dvh - 32px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 24px 48px; }
.panggung-kiri { grid-row: 1 / span 2; align-self: center; }
.panggung-fokus { min-height: 260px; }
body[data-mode="kandidat"] .panggung h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.02em; color: #fffdf8; margin: 0 0 16px; max-width: 12em; text-wrap: balance; }
body[data-mode="kandidat"] .panggung .hero-sub { font-size: 17px; line-height: 1.65; color: #d3ccb7; max-width: 30em; margin: 0 0 28px; }
.panggung-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
body[data-mode="kandidat"] .panggung .tombol-besar { background: #c9d4b3; color: #1c2416; margin: 0; }
body[data-mode="kandidat"] .panggung .tombol-besar:hover { background: #e2e9d2; }
body[data-mode="kandidat"] .panggung .tombol-besar:focus-visible { box-shadow: 0 0 0 3px rgb(243 236 220 / .6); }
.pil { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #e8e0cc; background: rgb(243 236 220 / .1); border: 1px solid rgb(243 236 220 / .22); }
.ubin { list-style: none; margin: 0; padding: 0; justify-self: end; align-self: end; width: 100%; max-width: 400px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ubin li { box-sizing: border-box; min-height: 104px; padding: 16px; border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.ubin li:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgb(0 0 0 / .7); }
.ubin h2 { margin: 0; font-size: 15px; line-height: 1.25; font-weight: 700; }
.ubin p { margin: 0; font-size: 13px; line-height: 1.45; }
body[data-mode="kandidat"] .ubin-kaca h2 { color: #fffdf8; } .ubin-kaca p { color: #cfc8b3; }
.ubin-kaca { background: rgb(24 30 20 / .62); border: 1px solid rgb(243 236 220 / .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ubin-kaca:hover { background: rgb(36 44 30 / .78); }
body[data-mode="kandidat"] .ubin :is(.ubin-warna-a, .ubin-warna-b) h2, .ubin-warna-a h2, .ubin-warna-b h2 { color: #1c2416; }
.ubin-warna-a p, .ubin-warna-b p { color: #2f3a27; }
.ubin-warna-a { background: linear-gradient(135deg, #e9dcc0, #b9c6a2 70%, #9fb088); }
.ubin-warna-b { background: linear-gradient(135deg, #a9b892, #d8cfae 60%, #f0e6cf); }
.penggaris { position: absolute; z-index: 1; left: 0; right: 0; bottom: 18px; height: 12px; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, rgb(243 236 220 / .55) 0 1px, transparent 1px 12px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 55%, transparent 80%); mask: linear-gradient(90deg, transparent, #000 12%, #000 55%, transparent 80%); }

/* kepala menumpang di atas panggung saat di beranda */
body[data-mode="kandidat"][data-layar="beranda"] .kepala { position: absolute; top: 28px; left: 16px; right: 16px; z-index: 5; height: 56px; background: transparent; border: 0; box-shadow: none; }
body[data-mode="kandidat"][data-layar="beranda"] .merek { color: #fffdf8; }
body[data-mode="kandidat"][data-layar="beranda"] .merek-ikon { background: #f1eadb; border-color: transparent; }

@media (prefers-reduced-motion: reduce) { .panggung::before, .panggung::after { animation: none; } .ubin li { transition: none; } }
@media (max-width: 900px) {
  .panggung-isi { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding: 92px var(--tepi) 52px; gap: 28px; }
  .panggung-fokus { order: -1; min-height: 0; height: clamp(200px, 52vw, 320px); }
  .panggung-kiri { grid-row: auto; }
  .ubin { justify-self: stretch; max-width: none; }
}
@media (max-width: 640px) {
  body[data-mode="kandidat"] .hero { padding: 10px; }
  .panggung { border-radius: 22px; }
  body[data-mode="kandidat"][data-layar="beranda"] .kepala { top: 18px; left: 10px; right: 10px; }
  .panggung-isi { padding: 84px var(--tepi) 48px; }
  body[data-mode="kandidat"] .panggung .tombol-besar { width: 100%; }
  .ubin li { min-height: 96px; padding: 14px; }
}

/* ---- panggung tanpa bingkai: selebar layar, tanpa sudut bulat, tanpa jarak tepi, tanpa bayangan */
body[data-mode="kandidat"] .hero { padding: 0; }
.panggung { border-radius: 0; max-width: none; box-shadow: none; }
.panggung-isi { padding-top: 120px; min-height: min(720px, 100vh); min-height: min(720px, 100dvh); }
body[data-mode="kandidat"][data-layar="beranda"] .kepala { top: 20px; left: 0; right: 0; }
@media (max-width: 900px) { .panggung-isi { min-height: 0; padding-top: 88px; } }
@media (max-width: 640px) {
  body[data-mode="kandidat"] .hero { padding: 0; }
  .panggung { border-radius: 0; }
  body[data-mode="kandidat"][data-layar="beranda"] .kepala { top: 12px; left: 0; right: 0; }
  .panggung-isi { padding-top: 80px; }
}

/* ================= beranda menyatu: satu latar gelap dari atas sampai bawah, siluet serigala memenuhi layar =================
   Kanvas dan cahaya latar menempel di layar (fixed); hero, isi, dan kaki tidak lagi punya latar sendiri. */
body[data-mode="kandidat"][data-layar="beranda"] { background: #12170f; color: #e8e0cc; }
body[data-mode="kandidat"][data-layar="beranda"]::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 50% at 0% 100%, rgb(185 163 111 / .26), transparent 72%),
              radial-gradient(36% 46% at 100% 0%, rgb(163 177 138 / .20), transparent 72%),
              radial-gradient(120% 95% at 70% 30%, #2f3b27 0%, #1f271a 45%, #12170f 100%); }
.latar-kanvas { display: none; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body[data-layar="beranda"] .latar-kanvas { display: block; }
body[data-mode="kandidat"][data-layar="beranda"] > :is(.hero, main, .kaki) { position: relative; z-index: 1; }
.panggung { background: none; overflow: visible; isolation: auto; }
.panggung::before, .panggung::after { display: none; }
.panggung-isi { grid-template-rows: auto; align-items: end; padding-bottom: 40px; min-height: min(640px, 92vh); min-height: min(640px, 92dvh); }
.panggung-kiri { grid-row: auto; align-self: end; }
.ubin { grid-column: 2; }
body[data-mode="kandidat"][data-layar="beranda"] > main { padding-top: 40px; }
body[data-mode="kandidat"][data-layar="beranda"] .judul-bagian h2 { color: #fffdf8; }
body[data-mode="kandidat"][data-layar="beranda"] .judul-bagian p { color: #cfc8b3; }
body[data-mode="kandidat"][data-layar="beranda"] main .card { background: rgb(24 30 20 / .62); border-color: rgb(243 236 220 / .14); box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body[data-mode="kandidat"][data-layar="beranda"] .siap { color: #e8e0cc; }
body[data-mode="kandidat"][data-layar="beranda"] .siap li::marker { color: #c9d4b3; }
body[data-mode="kandidat"][data-layar="beranda"] .kaki { background: none; border-top-color: rgb(243 236 220 / .14); }
body[data-mode="kandidat"][data-layar="beranda"] .kaki h2 { color: #fffdf8; }
body[data-mode="kandidat"][data-layar="beranda"] :is(.kaki-ket, .kaki-baris) { color: #b9b39f; }
body[data-mode="kandidat"][data-layar="beranda"] .kaki-baris { border-top-color: rgb(243 236 220 / .14); }
.kaki-besar { opacity: .5; }
@media (max-width: 900px) {
  .panggung-isi { min-height: 0; padding-top: 120px; padding-bottom: 28px; }
  .ubin { grid-column: auto; }
}
@media (max-width: 640px) { .panggung-isi { padding-top: 104px; } }

/* ---- kaki beranda tanpa garis pemisah di atasnya */
body[data-mode="kandidat"][data-layar="beranda"] .kaki { border-top: 0; }

/* ---- tombol mulai selebar kolom teks, ubin selebar kolom kanan: dua kolom hero terisi sama lebar */
.panggung-aksi { display: block; }
body[data-mode="kandidat"] .panggung .tombol-besar { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 30em; font-size: 17px; }
.ubin { max-width: none; }
@media (max-width: 900px) { body[data-mode="kandidat"] .panggung .tombol-besar { max-width: none; } }

/* ---- beranda tanpa kotak dan tanpa bayangan: ubin dan panduan tampil sebagai teks langsung di atas latar */
.ubin { gap: 28px 40px; }
.ubin li, .ubin li:hover { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; border-radius: 0; transform: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; justify-content: flex-start; gap: 6px; }
body[data-mode="kandidat"] .ubin li:is(.ubin-kaca, .ubin-warna-a, .ubin-warna-b) h2 { color: #fffdf8; font-size: 16px; }
.ubin li p { color: #cfc8b3; font-size: 14px; line-height: 1.5; }
body[data-mode="kandidat"][data-layar="beranda"] main .card { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-mode="kandidat"][data-layar="beranda"] .siap { font-size: 16px; }
body[data-mode="kandidat"][data-layar="beranda"] .siap li { margin-bottom: 14px; }
@media (max-width: 640px) { .ubin { gap: 22px 20px; } .ubin li { min-height: 0; padding: 0; } }

/* ---- "Sebelum mulai" satu kolom: judul, satu kalimat pengantar, lalu daftar bernomor langsung di bawahnya */
body[data-mode="kandidat"][data-layar="beranda"] > main { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
body[data-mode="kandidat"][data-layar="beranda"] > main > *,
body[data-mode="kandidat"][data-layar="beranda"] > main > .judul-bagian { grid-column: 1; grid-row: auto; }
body[data-mode="kandidat"][data-layar="beranda"] .siap { max-width: 62em; }

/* ================= mode fokus: formulir data dan semua layar soal =================
   Yang tampil hanya yang perlu: logo kecil, kemajuan tipis di tengah atas, dan satu kartu di tengah layar.
   Tidak ada bayangan kepala atau latar bergradasi; catatan kaki dikecilkan. Warna tidak diubah. */
body[data-mode="kandidat"][data-layar="tes"] { background: var(--h-latar); }
body[data-mode="kandidat"][data-layar="tes"] .kepala { position: static; height: 56px; background: transparent; border: 0; box-shadow: none; }
body[data-mode="kandidat"][data-layar="tes"] .kepala-isi { max-width: none; padding: 0 20px; }
body[data-mode="kandidat"][data-layar="tes"] .merek { pointer-events: none; font-size: 14px; font-weight: 600; gap: 10px; color: var(--h-redup); }
body[data-mode="kandidat"][data-layar="tes"] .merek-ikon { width: 32px; height: 32px; }
body[data-mode="kandidat"][data-layar="tes"] .merek-ikon img { width: 22px; height: 22px; }
body[data-mode="kandidat"][data-layar="tes"] .pita { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 56px; padding: 0;
  flex-direction: row; align-items: center; gap: 12px; white-space: nowrap; }
body[data-mode="kandidat"][data-layar="tes"] .pita h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
body[data-mode="kandidat"][data-layar="tes"] .pita p { order: 1; font-size: 11px; letter-spacing: .12em; color: var(--h-redup); }
body[data-mode="kandidat"][data-layar="tes"] .kemajuan { order: 2; width: 120px; max-width: none; height: 4px; margin: 0; }
body[data-mode="kandidat"][data-layar="tes"] > main { display: flex; flex-direction: column; justify-content: center; padding-top: 16px; padding-bottom: 72px; }
body[data-mode="kandidat"][data-layar="tes"] .catatan-bawah { font-size: 12px; margin-top: 20px; opacity: .85; }
body[data-mode="kandidat"][data-layar="tes"] .card { box-shadow: 0 18px 50px -34px rgb(28 42 18 / .35); }
@media (max-width: 640px) {
  body[data-mode="kandidat"][data-layar="tes"] .kepala-isi { padding: 0 16px; }
  body[data-mode="kandidat"][data-layar="tes"] .merek > span:last-child { display: none; }
  body[data-mode="kandidat"][data-layar="tes"] .pita { left: auto; right: 16px; transform: none; }
  body[data-mode="kandidat"][data-layar="tes"] .kemajuan { width: 72px; }
  body[data-mode="kandidat"][data-layar="tes"] > main { justify-content: flex-start; padding-top: 8px; padding-bottom: 40px; }
}
/* saat soal tampil: cukup penghitung soal dan waktu milik soal itu sendiri */
body[data-mode="kandidat"][data-layar="tes"].mode-soal .pita { display: none; }
body[data-mode="kandidat"][data-layar="tes"].mode-soal > main { padding-top: 0; padding-bottom: 24px; }

/* ---- Tes Koran: pita angka besar di tengah, dua angka yang dijumlahkan disorot, tombol angka di bawahnya */
.koran-contoh { display: grid; grid-template-columns: auto auto; gap: 6px 18px; justify-content: start; align-items: center; margin: 4px 0 16px; padding: 14px 18px;
  background: var(--h-tint); border: 1px solid var(--h-garis); border-radius: 14px; font-size: 16px; }
.koran-contoh b { color: var(--h-deep); }
.koran-mundur { font-family: var(--serif); font-size: 64px; font-weight: 600; color: var(--h-deep); line-height: 1; }
.koran-kepala { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.koran-waktu { height: 6px; border-radius: 999px; background: #ebe4d3; overflow: hidden; margin-bottom: 28px; }
.koran-waktu > div { height: 100%; background: var(--h-deep); border-radius: 999px; transition: width .1s linear; }
.koran-pita { display: flex; justify-content: center; gap: 10px; margin: 0 0 18px; font: 600 40px/1 var(--mono, ui-monospace, Menlo, monospace); font-variant-numeric: tabular-nums; }
.koran-pita span { width: 56px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 14px; color: #b9b39f; }
.koran-pita span.lewat { color: #d8d1bd; }
.koran-pita span.kini { background: var(--h-tint2); color: var(--h-ink); box-shadow: inset 0 0 0 2px var(--h-deep); }
.koran-petunjuk { text-align: center; margin: 0 0 20px; font-size: 14px; }
.koran-tombol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
body[data-mode="kandidat"] .koran-tombol button { min-height: 56px; padding: 0; font-size: 20px; border-radius: 14px; }
@media (max-width: 640px) {
  .koran-pita { gap: 4px; font-size: 28px; }
  .koran-pita span { width: 36px; height: 56px; border-radius: 10px; }
  .koran-pita span:first-child, .koran-pita span:last-child { display: none; }
  .koran-tombol { gap: 8px; }
}

/* ---- soal susunan gambar: empat gambar bernomor dalam satu baris */
.iq-urut { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(100%, 440px); margin: 0 auto 24px; }
.iq-urut-butir { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.iq-urut-butir .iq-sel { width: 100%; box-sizing: border-box; }
.iq-urut-nomor { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--h-deep); color: var(--h-kertas); font-size: 14px; font-weight: 700; }
@media (max-width: 640px) { .iq-urut { gap: 6px; } .iq-urut-butir .iq-sel { padding: 6px; } }
