/* v3 — tampilan sementara (garis besar, tanpa warna). Desain menyusul. */
.v3 { --garis-v3: #C9CDD8; }
.v3 .kartu { box-shadow: none; }
dialog.dialog { border: 2px solid #222; border-radius: 16px; padding: 0; width: min(560px, 94vw); max-height: 92vh; }
dialog.dialog::backdrop { background: rgba(0,0,0,.45); }
dialog.dialog.lebar { width: min(980px, 96vw); }
.dialog-isi { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dialog-kepala { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-kepala h2 { font-size: 20px; margin: 0; }

.langkah { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.langkah li { border: 2px solid #999; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; color: #666; background: #fff; }
.langkah li[aria-current="step"] { border-color: #111; color: #111; background: #EEE; }
.langkah li.selesai { color: #111; }

.garis { border: 2px solid #222; border-radius: 12px; background: #fff; }
.ubin-sumber { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ubin-pilih { border: 2px solid #222; border-radius: 14px; background: #fff; padding: 18px 12px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-height: 110px; justify-content: center; }
.ubin-pilih:hover, .ubin-pilih[aria-pressed="true"] { background: #EEE; }
.ubin-pilih .redup { font-weight: 600; font-size: 13px; }
.cara-besar { border: 2px solid #222; border-radius: 14px; background: #fff; padding: 18px; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.cara-besar:hover, .cara-besar[aria-pressed="true"] { background: #EEE; }
.cara-besar b { font-size: 19px; }

.label-jenis { display: inline-block; border: 1.5px solid #222; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 900; background: #fff; white-space: nowrap; }
.peringatan { border: 2px dashed #555; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.kartu-soal { border: 2px solid #222; border-radius: 12px; background: #fff; padding: 12px; display: flex; gap: 10px; align-items: flex-start; }
.kartu-soal.diseret { box-shadow: 0 10px 30px rgba(0,0,0,.25); position: relative; z-index: 5; }
.kartu-soal .pegangan { border: none; background: none; cursor: grab; padding: 4px; touch-action: none; }
.kartu-soal .badan { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kartu-soal .judul-soal { font-weight: 800; overflow-wrap: anywhere; }
.kartu-soal .kunci { color: #555; font-size: 14px; overflow-wrap: anywhere; }
.kartu-soal .aksi { display: flex; flex-wrap: wrap; gap: 6px; }
.kartu-soal .aksi .tbl { min-height: 34px; font-size: 14px; padding: 4px 10px; }
.kartu-soal .gambar-kecil { width: 72px; height: 54px; border: 2px dashed #888; border-radius: 8px; background: #fafafa center/cover no-repeat; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.kartu-soal.kurang { border-style: dashed; }
body.kunci-tersembunyi .kartu-soal .kunci { filter: blur(6px); }

.penghitung { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.penghitung .angka { display: flex; align-items: center; gap: 6px; }
.penghitung .angka input { width: 60px; text-align: center; }
.pilihan-baris { display: flex; flex-wrap: wrap; gap: 8px; }
.pilihan-baris button { border: 2px solid #222; background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.pilihan-baris button[aria-pressed="true"] { background: #222; color: #fff; }

.kartu-main { border: 2px solid #222; border-radius: 14px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; cursor: pointer; }
.kartu-main:hover, .kartu-main[aria-pressed="true"] { background: #EEE; }
.kartu-main[disabled] { opacity: .45; cursor: not-allowed; }
.kartu-main .nama { font-size: 19px; font-weight: 900; }
.grid-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

.peta-wadah { position: relative; border: 2px solid #222; border-radius: 12px; overflow: hidden; background: #fff; touch-action: none; }
.peta-wadah canvas { display: block; width: 100%; height: 100%; }
.peta-alat { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.peta-alat button { width: 40px; height: 40px; border: 2px solid #222; border-radius: 10px; background: #fff; font-size: 22px; font-weight: 900; cursor: pointer; }
.peta-info { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.9); border: 1.5px solid #222; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; }

/* kartu melayang pilih permainan */
.grid-pilih-permainan { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pilihan-permainan { border: 2px solid #E3E6EE; border-radius: 14px; background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; cursor: pointer; transition: transform .12s, border-color .12s; }
.pilihan-permainan:hover:not([disabled]) { border-color: #3366E0; transform: translateY(-2px); }
.pilihan-permainan[aria-current="true"] { border-color: #3366E0; background: #EEF3FF; }
.pilihan-permainan[disabled] { opacity: .4; cursor: not-allowed; }
.pilihan-permainan b { font-size: 17px; }
.pilihan-permainan .gambar-mini { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.pilihan-permainan .gambar-mini svg { width: 100%; height: 100%; display: block; }
.permainan-terkunci { display: flex; align-items: center; gap: 10px; border: 2px solid #E3E6EE; border-radius: 12px; padding: 8px 12px; background: #fff; }
.permainan-terkunci .gambar-mini { width: 72px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; flex: none; }
.permainan-terkunci .gambar-mini svg { width: 100%; height: 100%; display: block; }
.ubin-pilih[aria-pressed="true"], .cara-besar[aria-pressed="true"], .kartu-main[aria-pressed="true"] { border-color: #3366E0; background: #EEF3FF; box-shadow: 0 0 0 2px #3366E0 inset; }

/* Kuis Saya: kartu sederhana, klik untuk detail */
.grid-kuis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.kartu-kuis { border: 2px solid #E3E6EE; border-radius: 16px; background: #fff; padding: 0; overflow: hidden; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s, border-color .12s; }
.kartu-kuis:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31,36,48,.12); border-color: #C9D3F2; }
.kartu-kuis .sampul { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: #F1F1F1; position: relative; }
.kartu-kuis .sampul svg { width: 100%; height: 100%; display: block; }
.kartu-kuis .lencana-sampul { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 900; color: #1F2430; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.kartu-kuis .peringatan-sampul { position: absolute; right: 10px; top: 10px; background: #FFF4D6; color: #7A4E00; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 900; }
.kartu-kuis .badan { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.kartu-kuis .judul-kuis { font-weight: 900; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.detail-kepala { display: flex; gap: 16px; align-items: center; }
.detail-kepala .sampul { width: 180px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; flex: none; background: #F1F1F1; display: flex; align-items: center; justify-content: center; }
.detail-kepala .sampul svg { width: 100%; height: 100%; display: block; }
.detail-bagian { border-top: 1.5px solid #E3E6EE; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.detail-bagian h3 { font-size: 15px; margin: 0; color: #5B6275; text-transform: uppercase; letter-spacing: .5px; }
.kartu-buat { display: flex; flex-direction: column; }
.kartu-buat .kartu-permainan { flex: 1; }
@media (max-width: 560px) { .detail-kepala { flex-direction: column; align-items: stretch; } .detail-kepala .sampul { width: 100%; } }
@media (max-width: 560px) {
  .grid-kuis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kartu-kuis .badan { padding: 8px 10px 10px; }
  .kartu-kuis .judul-kuis { font-size: 15px; }
  .kartu-kuis .lencana-sampul, .kartu-kuis .peringatan-sampul { font-size: 10px; padding: 2px 7px; left: 6px; top: 6px; }
  .kartu-kuis .peringatan-sampul { left: auto; right: 6px; top: auto; bottom: 6px; }
}

/* Folder (Premium) */
.tbl-kecil { padding: 6px 12px; font-size: 14px; min-height: 0; }
.ikon-folder-kecil { display: inline-flex; width: 22px; height: 20px; align-items: center; justify-content: center; font-weight: 900; flex: none; }
.ikon-folder-kecil svg, .ikon-folder svg { width: 100%; height: 100%; display: block; }
.lencana-pro { background: #FFC93C; color: #3A2A00; font-size: 10px; font-weight: 900; letter-spacing: .5px; border-radius: 999px; padding: 2px 7px; margin-left: 2px; }
.grid-folder { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.grid-folder:empty { display: none; }
.ubin-folder { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid #E3E6EE; border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: transform .12s, border-color .12s, box-shadow .12s; }
.ubin-folder:hover { transform: translateY(-2px); border-color: #F2C14E; box-shadow: 0 8px 18px rgba(31,36,48,.1); }
.ubin-folder .ikon-folder { width: 44px; height: 37px; flex: none; }
.nama-folder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.jalur-folder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #FFF8E1; border: 2px solid #F5DC8A; border-radius: 14px; padding: 10px 12px; margin-bottom: 16px; }
.jalur-folder .nama-folder { font-size: 18px; }
.pilih-folder { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid #E3E6EE; border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.pilih-folder:hover:not(:disabled) { border-color: #3B63E0; }
.pilih-folder[aria-current="true"] { border-color: #3B63E0; background: #EEF3FF; }
.pilih-folder:disabled { opacity: .5; cursor: not-allowed; }
.pilih-folder .redup { margin-left: auto; }
.pilih-folder.baru { border-style: dashed; }
.kotak-premium { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px 4px; }
.kotak-premium h2 { margin: 0; font-size: 22px; }
.kotak-premium p { margin: 0; }
.ikon-premium { width: 64px; height: 64px; border-radius: 50%; background: #FFC93C; border: 2.5px solid #222; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #222; }
.kepala-halaman { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 560px) {
  .grid-folder { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ubin-folder { padding: 10px; gap: 8px; }
  .ubin-folder .ikon-folder { width: 32px; height: 27px; }
  .nama-folder { font-size: 14px; }
}

/* Kuis Saya: kartu kuis kecil seukuran ubin folder (banyak muat satu layar) */
.grid-isi:empty { display: grid; }
.kartu-kuis-kecil { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid #E3E6EE; border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; min-width: 0; min-height: 68px; transition: transform .12s, border-color .12s, box-shadow .12s; }
.kartu-kuis-kecil:hover { transform: translateY(-2px); border-color: #C9D3F2; box-shadow: 0 8px 18px rgba(31,36,48,.1); }
.kartu-kuis-kecil .sampul-kecil { width: 64px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; background: #F1F1F1; display: flex; align-items: center; justify-content: center; }
.kartu-kuis-kecil .sampul-kecil svg { width: 100%; height: 100%; display: block; }
.kartu-kuis-kecil .judul-kuis { font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.kartu-kuis-kecil .ket-kuis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tanda-kurang { font-size: 11px; font-weight: 900; color: #7A4E00; }
.ubin-buat { border-style: dashed; border-color: #D9C27A; background: #FFFCF0; justify-content: center; gap: 10px; }
.ubin-buat b { font-size: 16px; }
.ubin-buat:hover { border-color: #F2C14E; }
@media (max-width: 560px) {
  .kartu-kuis-kecil { padding: 8px; gap: 8px; }
  .kartu-kuis-kecil .sampul-kecil { width: 44px; height: 32px; }
  .kartu-kuis-kecil .judul-kuis { font-size: 13px; }
  .ubin-buat { flex-direction: column; gap: 2px; }
  .ubin-buat b { font-size: 14px; }
}

.kartu-kuis-kecil .judul-kuis { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ubin-buat { position: relative; }
.ubin-buat .lencana-pro { position: absolute; top: -9px; right: 10px; margin: 0; }
.ubin-buat b { white-space: nowrap; }
/* Ukuran tengah (revisi: sedikit lebih besar, tidak sebesar kartu awal) */
.grid-folder { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ubin-folder { padding: 16px 18px; gap: 14px; min-height: 92px; border-radius: 16px; }
.ubin-folder .ikon-folder { width: 60px; height: 50px; }
.nama-folder { font-size: 18px; }
.ubin-folder .redup.kecil { font-size: 14px; }
.ubin-buat b { font-size: 18px; }
.kartu-kuis-kecil { padding: 12px 14px; gap: 14px; min-height: 92px; border-radius: 16px; }
.kartu-kuis-kecil .sampul-kecil { width: 104px; height: 66px; border-radius: 10px; }
.kartu-kuis-kecil .judul-kuis { font-size: 17px; }
.kartu-kuis-kecil .ket-kuis { font-size: 14px; }
.tanda-kurang { font-size: 12px; }
@media (max-width: 560px) {
  .grid-folder { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ubin-folder { padding: 12px; gap: 10px; min-height: 76px; }
  .ubin-folder .ikon-folder { width: 40px; height: 34px; }
  .nama-folder, .ubin-buat b { font-size: 15px; }
  .kartu-kuis-kecil { flex-direction: column; align-items: stretch; padding: 8px; gap: 6px; min-height: 0; }
  .kartu-kuis-kecil .sampul-kecil { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .kartu-kuis-kecil .judul-kuis { font-size: 15px; }
  .kartu-kuis-kecil .ket-kuis { font-size: 12px; }
}
@media (min-width: 561px) { .kartu-kuis-kecil .sampul-kecil { width: 84px; height: 56px; } .kartu-kuis-kecil { gap: 12px; } }

/* memilih beberapa naskah */
.kartu-naskah-pilih { position: relative; padding-left: 52px; }
.kartu-naskah-pilih .nomor-pilih { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; border: 2px solid #9AA1B4; background: #fff; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.kartu-naskah-pilih[aria-pressed="true"] { background: #EEF3FF; border-color: #3B63E0; }
.kartu-naskah-pilih[aria-pressed="true"] .nomor-pilih { background: #3B63E0; border-color: #3B63E0; }

/* Bank Naskah: centang & bilah pilihan */
.kartu-naskah { position: relative; }
.kartu-naskah.terpilih { border-color: #3B63E0; background: #F5F8FF; }
.centang-naskah { position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; cursor: pointer; }
.centang-naskah input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.centang-naskah .nomor-pilih { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #9AA1B4; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: #fff; pointer-events: none; }
.centang-naskah input:checked + .nomor-pilih { background: #3B63E0; border-color: #3B63E0; }
.centang-naskah input:focus-visible + .nomor-pilih { outline: 3px solid #9DB4FF; }
.bilah-pilih { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(1100px, 94vw); background: #fff; border: 2px solid #3B63E0; border-radius: 16px; box-shadow: 0 12px 30px rgba(31,36,48,.2); padding: 12px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; z-index: 50; }
.bilah-pilih[hidden] { display: none; }
.bilah-pilih #urutan-pilih { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.daftar-urutan { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
@media (max-width: 560px) { .bilah-pilih #urutan-pilih { display: none; } .bilah-pilih .tbl { flex: 1 1 auto; } }

.kosong-gambar-pin { width: 100%; height: 100%; border: 3px dashed #C9CEDB; border-radius: 12px; background: #F7F8FB; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; cursor: pointer; }
.kosong-gambar-pin b { font-size: 20px; }
.kosong-gambar-pin:hover { border-color: #3B63E0; }
.pin-tengah-info { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(17,17,17,.75); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; }

/* selfie kamera depan */
.dialog-selfie .dialog-isi { max-width: 420px; }
.bingkai-selfie { width: min(78vw, 340px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid #222; background: #111; }
.video-selfie { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }

/* pilihan jumlah kotak penutup (form Tebak Gambar) */
.pilih-kotak-tebak { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pilih-kotak-tebak button { border: 2px solid #D5D9E3; border-radius: 12px; background: #fff; padding: 8px 4px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pilih-kotak-tebak button[aria-pressed="true"] { border-color: #3366E0; background: #EEF3FF; box-shadow: 0 0 0 2px #3366E0 inset; }
.pilih-kotak-tebak .mini-grid { display: grid; width: 54px; height: 40px; gap: 1px; }
.pilih-kotak-tebak .mini-grid i { background: #6B7489; border-radius: 1px; }
@media (max-width: 560px) { .pilih-kotak-tebak { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* tombol kunci ruang */
.tbl-terkunci { background: #222 !important; color: #fff !important; border-color: #222 !important; }
.tbl-terkunci svg { stroke: #fff; }
.pita-terkunci { background: #222; color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 900; display: inline-flex; align-items: center; gap: 6px; }

/* Kuis Saya: baris memanjang (seperti Bank Naskah) */
.daftar-baris { display: flex; flex-direction: column; gap: 10px; }
.baris-kuis { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 16px; border: 2px solid #E3E6EE; border-radius: 16px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.baris-kuis:hover { border-color: #C9D3F2; box-shadow: 0 6px 16px rgba(31,36,48,.08); }
.baris-kuis .sampul-baris { width: 112px; height: 70px; border-radius: 10px; overflow: hidden; flex: none; background: #F1F1F1; display: flex; align-items: center; justify-content: center; }
.baris-kuis .sampul-baris svg { width: 100%; height: 100%; display: block; }
.baris-kuis .judul-kuis { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.baris-kuis .ket-kuis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.baris-kuis .kanan-baris { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.baris-kuis .panah-baris { font-size: 30px; font-weight: 900; color: #9AA1B4; flex: none; line-height: 1; }
@media (max-width: 560px) {
  .baris-kuis { gap: 10px; padding: 10px; }
  .baris-kuis .sampul-baris { width: 72px; height: 48px; }
  .baris-kuis .judul-kuis { font-size: 15px; }
  .baris-kuis .kanan-baris { display: none; }
}

/* Preview = main sendiri */
body.solo .hp { max-width: 760px; }
.bilah-solo { display: flex; align-items: center; gap: 10px; background: #1E2340; color: #fff; border-radius: 14px; padding: 8px 10px 8px 12px; position: sticky; top: 6px; z-index: 5; }
.bilah-solo .label-preview { background: #FFC93C; color: #3A2A00; font-weight: 900; font-size: 12px; letter-spacing: .08em; border-radius: 999px; padding: 3px 10px; }
.bilah-solo .ket { flex: 1; font-weight: 800; font-size: 14px; }
.bilah-solo .tbl { background: #fff; }
.gambar-solo { width: 100%; display: flex; justify-content: center; }

.kotak-izin { align-items: flex-start; gap: 12px; padding: 14px; border: 2px solid #E3E6EE; border-radius: 14px; background: #F7F9FF; }
.kotak-izin input { width: 22px; height: 22px; margin-top: 2px; flex: none; }

/* hitung mundur 3-2-1 */
.hitung-mundur { flex: 1; min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.hitung-mundur .ket-hitung { font-weight: 900; font-size: 22px; color: var(--sedang, #5B6275); letter-spacing: .04em; }
.hitung-mundur .angka-hitung { width: 180px; height: 180px; border-radius: 50%; background: #3461E0; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 110px; font-weight: 900; box-shadow: 0 10px 0 #2446A8; }
.hitung-mundur.besar .ket-hitung { font-size: clamp(24px, 2.4vw, 36px); }
.hitung-mundur.besar .angka-hitung { width: clamp(200px, 22vw, 320px); height: clamp(200px, 22vw, 320px); font-size: clamp(120px, 13vw, 200px); }
.angka-hitung.denyut { animation: denyutHitung .9s ease-out; }
@keyframes denyutHitung { 0% { transform: scale(.4); opacity: 0; } 25% { transform: scale(1.12); opacity: 1; } 45% { transform: scale(1); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .angka-hitung.denyut { animation: none; } }


/* ================= v3.4: menu Pesan & bantuan, foto profil, profil guru, pesan, FAQ, admin ================= */
/* angka merah di menu */
.ikon-menu { position: relative; display: inline-flex; }
.lencana-angka { position: absolute; top: -7px; right: -10px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #E5482F; color: #fff; font-size: 11px; font-weight: 900; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.lencana-angka[hidden] { display: none; }
.lencana-angka.statis, .tab-admin .lencana-angka { position: static; box-shadow: none; display: inline-block; }
/* menu kecil di bilah kiri paling bawah: Instal, FAQ, Hubungi Kami, Admin */
.samping-kecil { display: flex; flex-direction: column; gap: 2px; }
.menu-kecil { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.92); text-decoration: none; font: inherit; font-weight: 800; font-size: 14px; background: transparent; border: 0; cursor: pointer; border-radius: 12px; text-align: left; }
.menu-kecil:hover { color: #fff; background: rgba(255,255,255,.12); }
.menu-kecil[aria-current="page"] { background: rgba(255,255,255,.22); color: #fff; }
.menu-kecil[hidden] { display: none; }
@media (min-width: 900px) {
  .samping-kecil { border-top: 2px solid rgba(255,255,255,.14); padding-top: 10px; }
  .menu-kecil { padding: 7px 12px; }
  .samping .tbl-instal { background: rgba(255,255,255,.14); }
}
@media (max-width: 899px) {
  .samping-kecil { align-items: center; gap: 2px; border-top: 2px solid rgba(255,255,255,.14); padding-top: 8px; width: 100%; }
  .menu-kecil { flex-direction: column; gap: 2px; width: 64px; padding: 6px 2px; font-size: 9.5px; line-height: 1.1; text-align: center; justify-content: center; }
}
/* avatar guru (foto bulat atau huruf depan) */
.avatar-guru { overflow: hidden; }
.avatar-guru.berfoto { background: #DDE3F0; }
.avatar-guru img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-guru[role="button"] { cursor: zoom-in; }
.avatar-guru[role="button"]:focus-visible { outline: 3px solid #3461E0; outline-offset: 2px; }
.dialog-foto { border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); width: 100%; }
.dialog-foto::backdrop { background: rgba(12, 14, 28, .82); }
.isi-foto { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.isi-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,.4); background: #fff; }
.isi-foto b { color: #fff; font-size: 20px; text-align: center; }
.isi-foto .tutup-foto { position: absolute; top: 0; right: 0; background: #fff; }
.langkah-instal { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
/* pemotong foto profil */
.wadah-potong { display: flex; justify-content: center; }
.wadah-potong canvas { width: min(100%, 320px); aspect-ratio: 1; border-radius: 16px; background: #1E2340; touch-action: none; cursor: grab; }
.wadah-potong canvas:active { cursor: grabbing; }
/* Kuis Saya: privasi & pembuat asli */
.label-privasi { font-size: 12px; font-weight: 800; color: #5B6275; background: #F1F2F6; border-radius: 999px; padding: 3px 10px; }
.label-privasi.publik { color: #17733F; background: #E6F6EC; }
.penanda-asal { color: #8A4BF0; font-weight: 800; text-decoration: none; }
a.penanda-asal:hover { text-decoration: underline; }
.pilih-privasi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pilihan-privasi { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px 14px; border: 2px solid #E3E6EE; border-radius: 14px; background: #fff; font: inherit; cursor: pointer; }
.pilihan-privasi[aria-pressed="true"] { border-color: #3366E0; background: #EEF3FF; box-shadow: 0 0 0 2px #3366E0 inset; }
.judul-baris-tes { font-size: 15px; color: #5B6275; margin-top: 6px; }
.kepala-halaman.baris { margin-bottom: 16px; }
/* Bank Naskah: pilihan sumber */
.ikon-sumber { font-size: 30px; line-height: 1; }
#dlg-sumber .ubin-sumber { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
/* profil guru */
.profil-kepala { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.profil-kepala > .avatar-guru { border: 4px solid #fff; box-shadow: 0 0 0 3px #5B3FD8, 0 8px 20px rgba(58,47,176,.25); }
.potong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; min-width: 0; }
.tebal { font-weight: 800; color: var(--teks); }
/* lihat isi kuis publik */
.daftar-soal-lihat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.soal-lihat { border: 2px solid #E3E6EE; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.label-jenis-lihat { font-size: 12px; font-weight: 900; color: #5B6275; text-transform: uppercase; letter-spacing: .04em; }
.pilihan-lihat { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 2px; }
.pilihan-lihat li.benar { color: #17733F; font-weight: 800; }
.pilihan-lihat li.benar::after { content: '  ✓'; }
.kunci-lihat { color: #17733F; font-weight: 800; }
.gambar-lihat { max-width: 180px; max-height: 120px; border-radius: 8px; border: 2px solid #E3E6EE; object-fit: cover; }
.pemilik-lihat { gap: 8px; text-decoration: none; color: var(--teks); font-weight: 700; font-size: 14px; flex-wrap: nowrap; }
/* ---------- halaman Pesan ---------- */
.isi-pesan { padding-top: 12px; padding-bottom: 12px; }
.ruang-pesan { display: grid; grid-template-columns: 340px 1fr; gap: 14px; height: calc(100vh - 136px); height: calc(100dvh - 136px); min-height: 420px; }
.kolom-daftar, .kolom-obrolan { background: #fff; border: 2px solid var(--garis); border-radius: 20px; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.kepala-daftar { padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 2px solid var(--garis); }
.daftar-obrolan { overflow-y: auto; padding: 8px; gap: 4px; flex: 1; }
.item-obrolan { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 14px; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.item-obrolan:hover { background: #F4F6FB; }
.item-obrolan.aktif { background: #EEF3FF; }
.item-obrolan.hasil { cursor: default; }
.obrolan-kosong { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; }
.obrolan-kosong .ikon-besar { font-size: 54px; }
.obrolan { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.obrolan[hidden], .obrolan-kosong[hidden] { display: none; }
.kepala-obrolan { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 2px solid var(--garis); }
.nama-obrolan { flex: 1; min-width: 0; gap: 0; text-decoration: none; color: var(--teks); }
.kembali-obrolan, .menu-obrolan { display: none; }
.menu-kecil .lencana-angka { top: -6px; right: -9px; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; }
.isi-obrolan { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: #F7F8FC; }
.pemisah-hari { text-align: center; margin: 8px 0; }
.pemisah-hari span { background: #E7EAF3; color: #5B6275; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 12px; }
.gelembung { max-width: min(78%, 520px); padding: 8px 12px 6px; border-radius: 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(31,36,48,.08); }
.gelembung.saya { align-self: flex-end; background: #3461E0; color: #fff; border-bottom-right-radius: 4px; }
.gelembung.dia { align-self: flex-start; background: #fff; border: 1px solid #E3E6EE; border-bottom-left-radius: 4px; }
.teks-gelembung { white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; line-height: 1.4; }
.waktu-gelembung { font-size: 11px; font-weight: 700; opacity: .7; align-self: flex-end; }
.catatan-obrolan { padding: 12px 14px; background: #FFF4D6; color: #7A4E00; font-weight: 800; font-size: 14px; text-align: center; border-top: 2px solid var(--garis); }
.tulis-pesan { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 2px solid var(--garis); }
.tulis-pesan[hidden] { display: none; }
.tulis-pesan textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; }
.pilih-alasan { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid #E3E6EE; border-radius: 12px; cursor: pointer; font-weight: 700; }
.pilih-alasan:has(input:checked) { border-color: #E5482F; background: #FFF1EE; }
@media (max-width: 899px) {
  .isi-pesan { padding-top: 8px; padding-bottom: 8px; }
  .ruang-pesan { grid-template-columns: 1fr; height: calc(100vh - 76px); height: calc(100dvh - 76px); }
  .ruang-pesan .kolom-obrolan { display: none; }
  .ruang-pesan.buka-obrolan .kolom-daftar { display: none; }
  .ruang-pesan.buka-obrolan .kolom-obrolan { display: flex; }
  .kembali-obrolan, .menu-obrolan { display: inline-flex; }
  .aksi-obrolan { display: none !important; }
  .kepala-obrolan { gap: 8px; padding: 8px; }
  .menu-obrolan { font-size: 22px; }
  .gelembung { max-width: 86%; }
}
/* Hubungi Kami */
.pil-pilih { border: 2px solid #E3E6EE; background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.pil-pilih[aria-pressed="true"] { border-color: #3366E0; background: #EEF3FF; color: #1F3FA8; }
.teks-pra { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.status-kontak { font-size: 12px; font-weight: 900; border-radius: 999px; padding: 3px 10px; background: #FFF4D6; color: #7A4E00; }
.status-kontak.dibalas, .status-kontak.selesai { background: #E6F6EC; color: #17733F; }
.balasan-admin { border-left: 4px solid #5B3FD8; background: #F4F1FE; border-radius: 0 12px 12px 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
/* FAQ */
.judul-faq { font-size: 20px; margin-top: 4px; }
details.faq { background: #fff; border: 2px solid var(--garis); border-radius: 14px; padding: 0 16px; }
details.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: #5B3FD8; flex: none; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 0 0 14px; color: var(--sedang); font-weight: 600; line-height: 1.55; }
/* Admin */
.ringkas-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kotak-ringkas { background: #fff; border: 2px solid var(--garis); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kotak-ringkas b { font-size: 26px; line-height: 1.1; }
.tab-admin { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--garis); }
.tab-admin button { border: 0; background: transparent; font: inherit; font-weight: 800; padding: 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--redup); display: inline-flex; gap: 6px; align-items: center; }
.tab-admin button[aria-selected="true"] { color: #3A2FB0; border-bottom-color: #5B3FD8; }
.kartu-admin { padding: 16px 18px; }
.kartu-admin.baru { border-color: #FFC9BD; box-shadow: 0 0 0 2px #FFE3DC inset; }
.pil-merah { background: #FFE3DC; color: #9A2C16; }
.orang-admin { gap: 8px; text-decoration: none; color: var(--teks); flex-wrap: nowrap; min-width: 0; max-width: 340px; }
details.bukti summary { cursor: pointer; font-weight: 800; color: #3461E0; }
details.bukti .gelembung { max-width: 90%; }
.baris-admin-guru { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: #fff; border: 2px solid var(--garis); border-radius: 14px; padding: 10px 12px; }
.baris-admin-guru.nonaktif { opacity: .7; background: #FAFAFC; }
.ket-guru-admin { flex: 1 1 200px; }
.peringatan-sandi { border-color: #E5482F; background: #FFF1EE; color: #9A2C16; }
.kotak-sandi { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 800; letter-spacing: .04em; text-align: center; padding: 14px; border: 3px dashed #5B3FD8; border-radius: 14px; background: #F4F1FE; user-select: all; }

/* v3.5: pilihan Mode kelas / Mode latihan mandiri di kartu "Siap main?" */
.pilih-mode-main { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid #E3E6EE; border-radius: 14px; cursor: pointer; background: #fff; }
.pilih-mode-main input { margin-top: 4px; width: 18px; height: 18px; accent-color: #3366E0; flex: none; }
.pilih-mode-main:has(input:checked) { border-color: #3366E0; background: #EEF3FF; }
.pilih-mode-main.mati { opacity: .55; cursor: not-allowed; background: #F6F7FA; }

/* v3.5: Mode latihan mandiri — layar nilai */
.catatan-latihan { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #E6F6EC; color: #17573A; border: 2px solid #BDE5CB; font-weight: 700; font-size: clamp(15px,1.3vw,19px); }
.lingkar-nilai { --ukuran: clamp(180px, 26vh, 280px); width: var(--ukuran); height: var(--ukuran); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--warna) calc(var(--persen) * 1%), #E7EAF3 0); }
.lingkar-nilai.kecil { --ukuran: 150px; }
.angka-nilai { font-size: calc(var(--ukuran) * .36); font-weight: 900; line-height: 1; color: var(--warna); }
.skala-nilai { font-weight: 800; color: var(--redup); font-size: calc(var(--ukuran) * .075); }
.daftar-ulang { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; flex: 1; }
.item-ulang { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #F7F9FF; border: 2px solid var(--garis); }
.kunci-ulang { color: #17733F; font-weight: 700; }

/* v3.5: kartu "Siap main?" — dua langkah bernomor */
.dialog-siap { width: min(640px, 94vw); }
.dialog-siap .dialog-isi { gap: 18px; }
.langkah-siap { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 2px dashed #E3E6EE; }
.judul-langkah { display: flex; align-items: center; gap: 10px; }
.judul-langkah h3 { margin: 0; font-size: 18px; }
.nomor-langkah { width: 30px; height: 30px; border-radius: 50%; background: #3461E0; color: #fff; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.grid-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kartu-mode { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; border: 3px solid #E3E6EE; border-radius: 18px; background: #fff; font: inherit; cursor: pointer; color: inherit; transition: border-color .15s, background .15s; }
.kartu-mode:hover:not(:disabled) { border-color: #A9BEF5; }
.kartu-mode[aria-checked="true"] { border-color: #3461E0; background: #EEF3FF; box-shadow: 0 4px 0 #C9D6FA; }
.kartu-mode b { font-size: 18px; }
.ikon-mode { font-size: 34px; line-height: 1; }
.ket-mode { font-size: 13.5px; font-weight: 600; color: var(--sedang); line-height: 1.4; }
.centang-mode { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #D5D9E2; color: transparent; font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.kartu-mode[aria-checked="true"] .centang-mode { background: #3461E0; border-color: #3461E0; color: #fff; }
.kartu-mode.mati { background: #F6F7FA; cursor: not-allowed; opacity: .7; }
.kartu-mode.mati .ikon-mode { filter: grayscale(1); }
.baris-selfie { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid #E3E6EE; border-radius: 16px; background: #F7F9FF; }
.saklar-geser { position: relative; width: 56px; height: 32px; border-radius: 999px; border: 0; background: #C9CEDA; cursor: pointer; flex: none; transition: background .15s; padding: 0; }
.saklar-geser .bulatan { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.saklar-geser[aria-checked="true"] { background: #1F8F4E; }
.saklar-geser[aria-checked="true"] .bulatan { left: 28px; }
.saklar-geser:focus-visible, .kartu-mode:focus-visible { outline: 3px solid #3461E0; outline-offset: 2px; }
.status-selfie { font-size: 14px; color: var(--redup); min-width: 46px; text-align: right; }
.status-selfie.aktif { color: #1F8F4E; }
/* ringkasan & tombol satu baris: tombol Batal & Lanjut TETAP di kanan; bila tempat kurang, teks ringkasan yang turun ke baris berikutnya */
.kaki-siap { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; padding-top: 14px; border-top: 2px solid #E3E6EE; }
.kaki-siap > .baris { flex: none; flex-wrap: nowrap; }
.ringkas-siap { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 800; color: var(--sedang); line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .grid-mode { grid-template-columns: 1fr; }
  .kartu-mode { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; }
  .kartu-mode .ikon-mode { grid-row: span 2; font-size: 30px; align-self: center; }
}
/* kaki kartu "Siap main?" menempel di bawah (tombol selalu terlihat walau isi kartu digulir) */
.dialog-siap .kaki-siap { position: sticky; bottom: 0; background: #fff; padding-bottom: 4px; z-index: 1; }
@media (max-width: 560px) {
  .ringkas-siap { font-size: 12.5px; }
  .kaki-siap .tbl { padding-left: 14px; padding-right: 14px; }
  .baris-selfie { gap: 10px; }
}
/* v3.5.3: halaman soal — kosong dengan satu tombol "+ Tambah pertanyaan" (seperti Blooket) */
.tbl-ungu { background: #7A3FD0; color: #fff; border-color: #7A3FD0; box-shadow: 0 4px 0 #5A2BA3; }
.tbl-ungu:hover { background: #6A33BD; color: #fff; }
.soal-kosong { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 260px; border: 3px dashed #E3E6EE; border-radius: 18px; text-align: center; padding: 24px; }
.soal-kosong .tbl { font-size: 20px; padding: 14px 28px; }

/* tombol Tampilkan / Sembunyikan jawaban (jawaban tersembunyi secara bawaan) */
.tbl-jawaban { gap: 8px; }
.tbl-jawaban[aria-pressed="true"] { background: #EEF3FF; border-color: #3461E0; color: #1F3FA8; }

/* nama kuis di atas daftar soal */
.kepala-soal { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid #E3E6EE; }
.judul-kuis-D { font-size: 22px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.judul-kuis-D.kosong-judul { color: var(--redup); font-style: italic; }
#ubah-judul { width: 34px; height: 34px; min-height: 34px; font-size: 15px; flex: none; }

/* v3.7: jatah main akun Standar di kartu Beranda */
.kartu-permainan { position: relative; }
.pita-kuota { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(255,255,255,.95); border: 1.5px solid var(--garis); border-radius: 999px; font-size: 12px; font-weight: 800; padding: 3px 10px; color: var(--sedang); }
.pita-kuota.habis { background: #3A3F55; color: #fff; border-color: #3A3F55; }
.kartu-permainan.terkunci .gambar { filter: grayscale(1); opacity: .65; }
.tautan-buka { text-align: center; font-size: 13px; font-weight: 800; color: #B87A06; text-decoration: none; margin-top: 2px; }
.tautan-buka:hover { text-decoration: underline; }

/* v3.7: Paket akun & Kredit AI di halaman Akun */
.pilih-premium { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opsi-premium { border: 2px solid var(--garis); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.opsi-premium .tbl { margin-top: 8px; }
.harga-opsi { font-size: 26px; font-weight: 900; }
.pil-hemat { font-size: 11px; background: #FFC93C; color: #3A2A00; border-radius: 999px; padding: 2px 7px; }
.saldo-besar { font-size: 24px; font-weight: 900; color: #5B3FD8; }
.baris-poin { display: flex; gap: 12px; flex-wrap: wrap; }
.baris-poin .paket-poin { display: flex; flex-direction: column; gap: 2px; border: 2px solid #C9BDF5; background: #F5F2FF; border-radius: 14px; padding: 12px 16px; min-width: 140px; }
.baris-poin .paket-poin b { font-size: 18px; } .baris-poin .paket-poin > span { font-weight: 800; color: #5B3FD8; }
.baris-poin .paket-poin em { font-style: normal; font-size: 11px; font-weight: 900; color: #3A2A00; background: #FFC93C; border-radius: 999px; padding: 1px 8px; align-self: flex-start; margin-top: 3px; }
.baris-poin .paket-poin .tbl { margin-top: 8px; }
.tbl-kecil { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.riwayat-lipat summary { cursor: pointer; font-weight: 800; }
.riwayat-lipat > div { margin-top: 8px; }
.baris-riwayat { padding: 6px 0; border-bottom: 1px solid var(--garis); gap: 10px; }
.baris-riwayat .plus { color: var(--hijau); } .baris-riwayat .minus { color: var(--merah); }
#info-bayar.info-ok { background: var(--hijau-muda); color: var(--hijau-tua); border-radius: 14px; padding: 12px 16px; font-weight: 800; }
@media (max-width: 600px) { .pilih-premium { grid-template-columns: 1fr; } }
.baris-poin .paket-poin { flex: 1 1 140px; max-width: 240px; }
.bar-kuota { height: 10px; background: #EDE8FF; border-radius: 999px; overflow: hidden; }
.bar-kuota span { display: block; height: 100%; background: #5B3FD8; border-radius: 999px; }

/* v3.8: tautan Ganti kata sandi / Ganti email di halaman Akun */
.tautan-akun { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 2px 6px; }
.tautan-akun .tbl-teks { font-size: 15px; font-weight: 800; color: #3461E0; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.tautan-akun .tbl-teks:hover, .tautan-akun .tbl-teks[aria-expanded="true"] { text-decoration: underline; }

/* ===== v3.9: gambar soal (opsional) & Polling ===== */
.gambar-soal { display: block; max-width: 100%; max-height: clamp(140px, 30vh, 380px); margin: 0 auto clamp(8px, 1.2vh, 14px); border-radius: 16px; object-fit: contain; box-shadow: 0 4px 0 rgba(0,0,0,.08); background: #fff; }
.gambar-soal.kecil { max-height: clamp(100px, 18vh, 220px); }
.ada-gambar { display: flex; flex-direction: column; align-items: center; width: 100%; }
.gambar-soal-hp { display: block; width: 100%; max-height: 32vh; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--garis, #E3E6EF); }
.grafik-poll { flex: 1; display: flex; align-items: stretch; justify-content: center; gap: clamp(14px, 3vw, 56px); padding: clamp(14px, 2vw, 28px); min-height: 280px; }
.kolom-poll { flex: 0 1 220px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wadah-batang { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; min-height: 160px; border-bottom: 4px solid #E3E6EF; }
.angka-poll { text-align: center; font-size: clamp(16px, 1.7vw, 26px); }
.batang-poll { width: 100%; height: var(--tinggi); min-height: 6px; border-radius: 14px 14px 0 0; box-shadow: none !important; transform-origin: bottom; animation: naik-poll .7s cubic-bezier(.2,.9,.3,1.2) both; }
.batang-poll.terbanyak { outline: 5px solid #FFE38A; outline-offset: 2px; }
@keyframes naik-poll { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.label-poll { display: flex; gap: 8px; align-items: flex-start; font-weight: 800; font-size: clamp(15px, 1.5vw, 24px); overflow-wrap: anywhere; }
.label-poll .huruf { flex: none; width: 1.7em; height: 1.7em; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: none !important; }
.bar-poll { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #F1F3F8; overflow: hidden; font-weight: 700; }
.bar-poll .isi-bar { position: absolute; left: 0; top: 0; bottom: 0; opacity: .22; box-shadow: none !important; }
.bar-poll .teks-bar { position: relative; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bar-poll b { position: relative; white-space: nowrap; }
.bar-poll.pilihanku { outline: 3px solid var(--biru); }

/* ===== v3.9: editor — draf, durasi, gambar soal ===== */
.pil-draf { flex: none; background: #FFF1C2; color: #7A4E00; border: 2px solid #F2C94C; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.bilah-simpan { flex-wrap: wrap; }
.alasan-simpan { margin: -4px 0 0; text-align: right; font-weight: 700; font-size: 14px; color: #8A5A00; }
.tombol-durasi { display: inline-flex; align-items: center; gap: 4px; border: 2px solid #E3E6EE; border-radius: 12px; padding: 0 4px 0 10px; background: #fff; font-weight: 800; }
.tombol-durasi.diatur { border-color: #9DB4F5; background: #EEF3FF; }
.tombol-durasi select, .pilih-durasi { min-height: 34px; width: auto; font-size: 14px; padding: 2px 6px; border: none; background: transparent; font-weight: 800; }
#f-durasi, #pin-durasi { border: 2px solid #E3E6EE; background: #fff; border-radius: 10px; }
.atur-soal { gap: 12px; border-top: 2px dashed #E3E6EE; padding-top: 12px; margin-top: 2px; }
.gambar-form { flex: none; width: 96px; height: 72px; border-radius: 10px; border: 2px dashed #C9CFDD; background: #F7F8FB center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.gambar-form.ada { border-style: solid; border-color: #222; }
.sampul-baris { position: relative; }
.pita-draf { position: absolute; left: 6px; top: 6px; background: #FFF1C2; color: #7A4E00; border: 2px solid #222; border-radius: 6px; padding: 0 6px; font-size: 11px; font-weight: 900; letter-spacing: .06em; z-index: 1; }
.kepala-bagian-kuis { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin: 10px 0 2px; }
.kepala-bagian-kuis h2 { font-size: 20px; margin: 0; }
.kepala-bagian-kuis:first-child { margin-top: 0; }

.gambar-samping { display: flex; width: 100%; flex-direction: row; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.gambar-samping .gambar-soal { margin: 0; max-height: clamp(90px, 20vh, 200px); max-width: 38%; }
.gambar-samping .teks-soal { text-align: left; }
@media (max-width: 600px) {
  #kepala-D { flex-wrap: wrap; }
  #kepala-D > .tumpuk { flex: 1 1 100% !important; }
  .judul-kuis-D { white-space: normal; overflow-wrap: anywhere; font-size: 20px; }
  .bilah-simpan > .baris { margin-left: 0 !important; width: 100%; }
  .bilah-simpan > .baris > .tbl { flex: 1 1 auto; }
  .alasan-simpan { text-align: left; }
}
.tombol-durasi select { max-width: 190px; }

.gambar-soal.gambar-tertutup { max-height: none; background: none; box-shadow: none; display: flex; justify-content: center; }
.gambar-samping .gambar-soal.gambar-tertutup { max-width: 44%; }
.gambar-di-kelas { border: 2px dashed #C9CFDD; border-radius: 12px; padding: 10px; text-align: center; font-weight: 800; color: var(--redup, #5B6178); background: #F7F8FB; }
.pita-ganti { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; justify-content: space-between; background: #FFF6D6; border: 2px solid #F2C94C; border-radius: 14px; padding: 10px 14px; font-weight: 700; }

/* v3.9.8: editor potong gambar landscape */
dialog.dialog.dialog-potong { width: min(94vw, 720px); max-width: 720px; }
.potong-bingkai { border: 3px solid #222; border-radius: 12px; overflow: hidden; background: #fff; line-height: 0; }
.potong-kanvas { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; cursor: grab; touch-action: none; }
.potong-kanvas:active { cursor: grabbing; }
.potong-kendali { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.potong-zoom { flex: 1 1 140px; min-width: 120px; }

/* v3.10: HP murid di kelas = pad jawaban; kartu soal diganti kartu pendek */
.kartu-pendek { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border: 2px solid var(--garis); border-radius: 16px; padding: 10px 14px; }
.kartu-pendek b { font-weight: 900; font-size: 15px; }

/* v3.10: Preview/main sendiri di layar lebar — satu layar penuh */
body.solo-layar { overflow: hidden; height: 100vh; }
body.solo-layar .hp { max-width: 760px; min-height: 0; height: calc(100vh - 68px); overflow: hidden; padding-bottom: 8px; }
body.solo-layar .hp.fokus { max-width: none; padding: clamp(8px, 1.6vh, 18px) clamp(16px, 3.4vw, 52px) 8px; }
.kerangka-kelas { position: fixed; left: 0; top: 0; width: 100%; height: calc(100vh - 68px); border: 0; background: var(--latar, #F4F6FB); visibility: hidden; z-index: 2; }
.kerangka-kelas.tampil { visibility: visible; }
.bilah-bawah-solo { position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #1E2340; color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 clamp(14px, 2vw, 32px); z-index: 5; }
.bilah-bawah-solo .label-preview { background: #FFC93C; color: #3A2A00; font-weight: 900; font-size: 12px; letter-spacing: .08em; border-radius: 999px; padding: 3px 10px; }
.bilah-bawah-solo .ket { flex: 1; font-weight: 800; font-size: 15px; }
.bilah-bawah-solo .tbl { min-height: 42px; background: #fff; }
.bilah-bawah-solo .tbl-hijau { background: var(--hijau); color: #fff; }
.solo-fokus { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 14px); }
.solo-kepala { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.solo-info { font-weight: 900; font-size: clamp(15px, 1.4vw, 22px); color: var(--sedang); }
.solo-tanya { flex: none; padding: clamp(8px, 1.4vh, 16px) clamp(14px, 1.6vw, 24px); text-align: center; }
.solo-tanya .teks-soal { margin: 0; font-size: clamp(19px, 2.1vw, 34px); line-height: 1.2; }
.solo-baris-gambar { flex: 1; min-height: 0; position: relative; display: flex; }
.solo-kolom-waktu { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; z-index: 1; }
.solo-area-gambar { flex: 1; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.solo-waktu-tengah { flex: 1; display: flex; align-items: center; justify-content: center; }
.solo-waktu { font-size: clamp(22px, 3vh, 34px); padding: 10px 22px; }
.solo-tombol { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vh, 14px) clamp(10px, 1.2vw, 18px); }
.solo-tombol .tombol-jawab { min-height: clamp(52px, 10vh, 96px); padding: 8px 18px; font-size: clamp(20px, 2.2vw, 34px); }
.solo-tombol .tombol-jawab .teks { font-size: clamp(18px, 2vw, 30px); }
.solo-tombol.dua .tombol-jawab { min-height: clamp(64px, 16vh, 140px); justify-content: center; }
.solo-tanya.besar { flex: 1; display: flex; align-items: center; justify-content: center; }
.solo-tanya.besar .teks-soal { font-size: clamp(24px, 3.2vw, 52px); }
.bilah-bawah-solo .petunjuk-berikut { min-height: 48px; padding: 2px 16px 2px 10px; }
.bilah-bawah-solo .petunjuk-berikut .ikon-berikut { font-size: 22px; }
.bilah-bawah-solo .petunjuk-berikut b { font-size: 16px; }
