/* public/css/game.css — Pembaruan 41: Game Kelas. Layar game selalu gelap & kontras tinggi (proyektor kelas). */

/* ---------- pengaturan (dasbor) ---------- */
.gm-jenis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gm-jenis-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--bg-elevated); transition: border-color .15s, box-shadow .15s; }
.gm-jenis-item input { display: none; }
.gm-jenis-item.aktif { border-color: var(--accent-blue); box-shadow: 0 0 0 3px var(--accent-blue-soft); }
.gm-jenis-item small { color: var(--text-muted); line-height: 1.4; }
.gm-ikon { font-size: 28px; line-height: 1; }
.gm-sisa { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--warning-soft); color: var(--warning); }
.gm-sisa.habis { background: var(--danger-soft); color: var(--danger); }
.gm-nama-tim { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-tim-input { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elevated); }
.gm-tim-input i { width: 12px; height: 12px; border-radius: 50%; background: var(--warna); flex: none; }
.gm-tim-input input { border: 0; outline: 0; background: transparent; color: var(--text); width: 150px; font: inherit; padding: 4px 0; }
.gm-riwayat { display: flex; flex-direction: column; }
.gm-riwayat-baris { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.gm-riwayat-baris small { color: var(--text-muted); }
.gm-riwayat-kanan { text-align: right; white-space: nowrap; margin-left: auto; }
.gm-riwayat-baris { align-items: center; }
.gm-riwayat-atas { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.gm-hapus { flex: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-elevated); cursor: pointer; font-size: 15px; }
.gm-hapus:hover { background: var(--danger-soft); border-color: var(--danger); }
.gm-hapus-semua { border: 0; background: none; color: var(--danger); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }

/* ---------- layar game ---------- */
body.gm-terkunci { overflow: hidden; }
.gm-layar {
  --g-bg: #0B1020; --g-panel: #151C33; --g-panel-2: #1D2645; --g-teks: #F8FAFC; --g-redup: #94A3B8;
  --g-benar: #22C55E; --g-salah: #EF4444; --g-aksen: #FACC15;
  position: fixed; inset: 0; z-index: 9999; background: radial-gradient(ellipse at top, #1B2550 0%, var(--g-bg) 60%);
  color: var(--g-teks); display: flex; flex-direction: column; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  padding: clamp(10px, 1.6vw, 24px); gap: clamp(8px, 1.2vw, 16px); overflow: hidden;
}
.gm-memuat { margin: auto; font-size: 24px; color: var(--g-redup); }
.gm-atas { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gm-judul { display: flex; flex-direction: column; min-width: 0; }
.gm-judul b { font-size: clamp(16px, 1.6vw, 22px); }
.gm-judul span { color: var(--g-redup); font-size: clamp(12px, 1.1vw, 15px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-atas-kanan { display: flex; align-items: center; gap: 8px; flex: none; }
.gm-progres { font-weight: 700; color: var(--g-aksen); margin-right: 6px; font-size: clamp(14px, 1.3vw, 18px); }
.gm-tombol-kecil { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #2B365E; background: var(--g-panel); color: var(--g-teks); font-size: 18px; cursor: pointer; }
.gm-tombol-kecil:hover { background: var(--g-panel-2); }

.gm-panggung { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); position: relative; }
.gm-soal-kartu { background: var(--g-panel); border: 1px solid #26305A; border-radius: 18px; padding: clamp(14px, 2vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.gm-soal-meta { display: flex; justify-content: space-between; color: var(--g-redup); font-weight: 600; font-size: clamp(13px, 1.1vw, 16px); text-transform: uppercase; letter-spacing: .04em; }
.gm-soal-teks { font-size: clamp(20px, 2.6vw, 40px); font-weight: 700; line-height: 1.3; }
.gm-arab { font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif; font-size: clamp(26px, 3.2vw, 48px); line-height: 1.9; text-align: right; }
.gm-waktu { position: relative; height: 12px; background: #0E1430; border-radius: 999px; overflow: hidden; }
.gm-waktu-isi { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #22C55E, #FACC15); border-radius: 999px; transition: width 1s linear; }
.gm-waktu-isi.kritis { background: var(--g-salah); }
.gm-waktu span { position: absolute; right: 8px; top: -2px; font-size: 11px; font-weight: 700; }
.gm-info { font-size: clamp(15px, 1.5vw, 22px); color: var(--g-redup); min-height: 1.4em; }
.gm-info.benar { color: var(--g-benar); }
.gm-info.salah { color: #FCA5A5; }
.gm-info.peringatan { color: var(--g-aksen); }
.gm-info b { color: inherit; }
.gm-pembahasan { margin-top: 6px; color: var(--g-teks); font-size: clamp(14px, 1.3vw, 19px); opacity: .9; }

.gm-opsi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 16px); }
.gm-opsi.bs { grid-template-columns: 1fr 1fr; }
.gm-opsi-btn { display: flex; align-items: center; gap: 14px; text-align: left; padding: clamp(12px, 1.6vw, 22px); border-radius: 16px; border: 2px solid #2B365E; background: var(--g-panel-2); color: var(--g-teks); font: inherit; font-size: clamp(16px, 1.9vw, 28px); font-weight: 600; cursor: pointer; transition: transform .1s, background .2s, border-color .2s; }
.gm-opsi-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: #4F5FA8; }
.gm-opsi-latin { font-size: 0.7em; color: var(--g-redup); font-weight: 600; }
.gm-opsi-arab { font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif; font-size: 1.25em; line-height: 1.7; }
.gm-huruf { flex: none; width: clamp(34px, 3vw, 48px); height: clamp(34px, 3vw, 48px); border-radius: 12px; display: grid; place-items: center; background: #0E1430; font-weight: 800; }
.gm-opsi-btn.benar { background: #14532D; border-color: var(--g-benar); animation: gm-denyut .5s; }
.gm-opsi-btn.salah { background: #4C1D1D; border-color: var(--g-salah); animation: gm-goyang .4s; }
.gm-opsi-btn.redup { opacity: .45; }
.gm-opsi-btn:disabled { cursor: default; }
.gm-bawah { display: flex; justify-content: center; min-height: 52px; }
.gm-tombol { padding: 12px 28px; border-radius: 14px; border: 0; background: var(--g-aksen); color: #1A1A1A; font: inherit; font-weight: 800; font-size: clamp(16px, 1.5vw, 22px); cursor: pointer; }
.gm-tombol:hover:not(:disabled) { filter: brightness(1.08); }
.gm-tombol:disabled { opacity: .5; cursor: default; }
.gm-tombol.sekunder { background: transparent; color: var(--g-teks); border: 2px solid #3A4675; }
.gm-tombol.besar { font-size: clamp(20px, 2vw, 28px); padding: 14px 40px; }

.gm-skor { display: flex; gap: clamp(6px, 1vw, 12px); justify-content: center; flex-wrap: wrap; }
.gm-skor.goyang { animation: gm-goyang .4s; }
.gm-tim { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 2px solid transparent; background: var(--g-panel); color: var(--g-teks); font: inherit; cursor: pointer; min-width: 160px; }
.gm-tim:disabled { cursor: default; }
.gm-tim .gm-tim-no { width: 32px; height: 32px; border-radius: 10px; background: var(--warna); display: grid; place-items: center; font-weight: 800; }
.gm-tim .gm-tim-nama { flex: 1; text-align: left; font-weight: 600; font-size: clamp(13px, 1.2vw, 17px); }
.gm-tim .gm-tim-poin { font-weight: 800; font-size: clamp(18px, 1.8vw, 26px); color: var(--g-aksen); }
.gm-tim.aktif { border-color: var(--warna); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warna) 35%, transparent); transform: translateY(-3px); }
.gm-tim.terkunci { opacity: .4; }

/* Roda Putar */
.gm-roda-wadah { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.gm-giliran { font-size: clamp(20px, 2.4vw, 34px); padding: 6px 20px; border-radius: 999px; background: color-mix(in srgb, var(--warna) 25%, transparent); border: 2px solid var(--warna); }
.gm-roda { position: relative; width: min(46vh, 80vw); aspect-ratio: 1; pointer-events: none; flex: none; }
.gm-roda-putar { width: 100%; height: 100%; border-radius: 50%; }
.gm-roda-svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 30px rgba(0,0,0,.5)); }
.gm-roda-no { fill: #fff; font-weight: 800; font-size: 22px; font-family: inherit; }
.gm-jarum { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--g-aksen); z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.gm-petunjuk { color: var(--g-redup); font-size: 14px; }

/* Podium */
.gm-podium { margin: auto; width: min(720px, 100%); display: flex; flex-direction: column; gap: 18px; align-items: center; z-index: 1; }
.gm-podium-judul { font-size: clamp(30px, 4vw, 56px); font-weight: 800; color: var(--g-aksen); text-align: center; }
.gm-podium-daftar { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.gm-podium-baris { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 14px; background: var(--g-panel); border-left: 8px solid var(--warna); font-size: clamp(18px, 2vw, 28px); animation: gm-masuk .5s both; animation-delay: var(--d); }
.gm-podium-rank { font-weight: 800; width: 32px; }
.gm-podium-nama { flex: 1; font-weight: 700; }
.gm-podium-poin { font-weight: 800; color: var(--g-aksen); }
.gm-konfeti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gm-konfeti i { position: absolute; top: -20px; left: var(--x); width: 10px; height: 16px; background: var(--w); border-radius: 2px; animation: gm-jatuh 3s linear var(--d) infinite; }

@keyframes gm-denyut { 50% { transform: scale(1.04); } }
@keyframes gm-goyang { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes gm-masuk { from { opacity: 0; transform: translateY(16px); } }
@keyframes gm-jatuh { to { transform: translateY(110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .gm-konfeti { display: none; } .gm-opsi-btn, .gm-podium-baris { animation: none !important; } }
@media (max-width: 700px) { .gm-opsi { grid-template-columns: 1fr; } .gm-tim { min-width: 0; } }

/* ---------- Pembaruan 46: game tambahan ---------- */
.gm-antara { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 24px); width: 100%; }
.gm-antara-judul { font-size: clamp(22px, 2.8vw, 40px); font-weight: 800; color: var(--g-aksen); text-align: center; }
.gm-usul { font-size: clamp(20px, 2.4vw, 34px); font-weight: 800; padding: 10px 18px; border-radius: 14px; background: #0E1430; border: 2px dashed var(--g-aksen); color: var(--g-aksen); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gm-nyawa { margin-left: 6px; font-size: .85em; letter-spacing: 1px; white-space: nowrap; }

/* Papan Soal Berhadiah */
.gm-papan { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(90px, 10vw, 150px), 1fr)); gap: clamp(8px, 1vw, 14px); width: min(1100px, 100%); }
.gm-papan-kotak { aspect-ratio: 4 / 3; border-radius: 16px; border: 2px solid #2B365E; background: var(--g-panel-2); color: var(--g-teks); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .12s; }
.gm-papan-kotak small { color: var(--g-redup); font-weight: 600; }
.gm-papan-kotak b { font-size: clamp(26px, 3vw, 44px); color: var(--g-aksen); }
.gm-papan-kotak.n20 { background: #1E2A55; } .gm-papan-kotak.n30 { background: #2A2560; }
.gm-papan-kotak:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--g-aksen); }
.gm-papan-kotak:disabled { opacity: .3; cursor: default; }

/* Balap Kelompok */
.gm-lintasan { width: min(1100px, 100%); display: flex; flex-direction: column; gap: 10px; }
.gm-jalur { display: grid; grid-template-columns: minmax(90px, 18%) 1fr 56px; align-items: center; gap: 12px; font-size: clamp(14px, 1.4vw, 20px); }
.gm-jalur-nama { font-weight: 700; color: var(--warna); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-jalur-trek { position: relative; height: clamp(44px, 6vh, 64px); border-radius: 12px; background: repeating-linear-gradient(90deg, #1D2645 0 40px, #18203C 40px 80px); border: 2px solid var(--warna); }
.gm-mobil { position: absolute; top: 50%; transform: translateY(-50%) scaleX(-1); font-size: clamp(28px, 3.4vw, 44px); transition: left .9s cubic-bezier(.3,1.4,.5,1); }
.gm-mobil.maju { filter: drop-shadow(0 0 10px var(--g-aksen)); }
.gm-finis { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: clamp(22px, 2.6vw, 34px); }
.gm-jalur > b { text-align: right; color: var(--g-aksen); }

/* Tarik Tambang */
.gm-tambang { width: min(1100px, 100%); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.gm-tambang-sisi { font-weight: 800; font-size: clamp(16px, 1.8vw, 26px); color: var(--warna); max-width: 18vw; text-align: center; }
.gm-tambang-arena { position: relative; height: clamp(90px, 14vh, 140px); border-radius: 16px; background: #13203A; overflow: hidden; }
.gm-tambang-garis { position: absolute; top: 0; bottom: 0; width: 3px; background: #3A4675; }
.gm-tambang-garis.kiri { left: 12%; background: var(--g-salah); } .gm-tambang-garis.kanan { right: 12%; background: var(--g-salah); } .gm-tambang-garis.tengah { left: 50%; }
.gm-tali { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform 1s cubic-bezier(.3,1.5,.5,1); }
.gm-tali i { flex: 0 0 22%; height: 8px; background: repeating-linear-gradient(45deg, #C08A4B 0 8px, #8B5E2E 8px 16px); border-radius: 4px; }
.gm-simpul { font-size: 22px; margin: 0 -4px; z-index: 1; }
.gm-tim-tarik { font-size: clamp(22px, 2.6vw, 36px); filter: drop-shadow(0 0 6px var(--warna)); }

/* Kotak Misteri */
.gm-kotak-grid { display: grid; grid-template-columns: repeat(3, min(13vw, 15vh, 170px)); gap: clamp(8px, 1.2vh, 16px); }
@media (max-width: 700px) { .gm-kotak-grid { grid-template-columns: repeat(3, min(26vw, 13vh)); } }
.gm-kotak { aspect-ratio: 1; border-radius: 18px; border: 2px solid #2B365E; background: linear-gradient(160deg, #2A2F6B, #1B2148); font-size: min(5vw, 8vh, 64px); cursor: pointer; color: var(--g-teks); transition: transform .15s; }
.gm-kotak:hover:not(:disabled) { transform: scale(1.05) rotate(-2deg); border-color: var(--g-aksen); }
.gm-kotak.buka { background: #0E1430; font-size: clamp(14px, 1.5vw, 20px); font-weight: 800; color: var(--g-redup); }
.gm-kotak.baru { color: var(--g-aksen); border-color: var(--g-aksen); animation: gm-denyut .6s; }
.gm-kotak:disabled { cursor: default; }
@media (max-width: 700px) { .gm-jalur { grid-template-columns: 70px 1fr 40px; } .gm-tambang-sisi { font-size: 13px; } }

/* ---------- Pembaruan 47 ---------- */
/* semua kelompok menjawab */
.gm-opsi-btn.pasif { opacity: 1 !important; cursor: default; }
.gm-bawah.gm-bawah-semua { flex-direction: column; align-items: center; gap: 10px; }
.gm-semua { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 8px; width: 100%; }
.gm-semua-baris { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--g-panel); border-left: 6px solid var(--warna); flex-wrap: wrap; }
.gm-semua-nama { font-weight: 700; flex: 1 1 90px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-semua-huruf, .gm-semua-taruh { display: flex; gap: 4px; }
.gm-semua button { min-width: 38px; height: 36px; border-radius: 9px; border: 2px solid #2B365E; background: var(--g-panel-2); color: var(--g-teks); font: inherit; font-weight: 800; cursor: pointer; padding: 0 6px; }
.gm-semua-taruh button { font-size: 13px; }
.gm-semua button.aktif { background: var(--warna); border-color: var(--warna); color: #fff; }
.gm-semua-baris.benar { background: #14532D; } .gm-semua-baris.salah { background: #3B1A1A; }
.gm-semua-hasil { margin-left: auto; color: var(--g-aksen); font-size: 18px; }
/* ular tangga */
.gm-papan-tangga { display: grid; grid-template-columns: repeat(var(--kol), 1fr); gap: 4px; width: min(1000px, 100%, calc((100vh - 330px) * var(--kol) / 4)); }
.gm-petak { position: relative; aspect-ratio: 1.3; border-radius: 8px; background: var(--g-panel-2); border: 1px solid #2B365E; padding: 3px 5px; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.gm-petak:nth-child(odd) { background: #1A2242; }
.gm-petak.kosong { visibility: hidden; }
.gm-petak.finis { background: #3A3210; border-color: var(--g-aksen); }
.gm-petak small { color: var(--g-redup); font-weight: 700; font-size: clamp(10px, 1vw, 14px); }
.gm-petak-tanda { position: absolute; right: 4px; top: 2px; font-size: clamp(10px, 1vw, 14px); font-weight: 800; }
.gm-petak-tanda.naik { color: var(--g-benar); } .gm-petak-tanda.turun { color: #FCA5A5; }
.gm-bidak { display: flex; flex-wrap: wrap; gap: 2px; }
.gm-bidak i { width: clamp(14px, 1.6vw, 22px); height: clamp(14px, 1.6vw, 22px); border-radius: 50%; background: var(--warna); font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.gm-dadu { font-size: clamp(90px, 16vh, 160px); line-height: 1; color: #fff; }
.gm-dadu.gm-dadu-henti { animation: gm-denyut .5s; color: var(--g-aksen); }
/* bom waktu */
.gm-bom { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.gm-sumbu { flex: 1; height: 10px; background: #0E1430; border-radius: 999px; overflow: hidden; }
.gm-sumbu-isi { height: 100%; background: linear-gradient(90deg, #92400E, #F59E0B); transition: width 1s linear; }
.gm-sumbu-isi.kritis { background: var(--g-salah); animation: gm-kedip .5s infinite; }
.gm-ledak { font-size: clamp(26px, 3vw, 44px); font-weight: 800; color: #FCA5A5; text-align: center; animation: gm-denyut .4s 3; }
@keyframes gm-kedip { 50% { opacity: .4; } }
/* menara balok */
.gm-menara-wadah { display: flex; gap: clamp(10px, 3vw, 40px); align-items: flex-end; justify-content: center; width: 100%; }
.gm-menara { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; flex: 0 1 140px; }
.gm-menara-tumpuk { display: flex; flex-direction: column-reverse; gap: 3px; height: calc(var(--tinggi) * min(4.2vh, 30px)); width: 100%; max-width: 110px; justify-content: flex-start; border-bottom: 4px solid #3A4675; }
.gm-menara-tumpuk i { height: min(3.6vh, 26px); flex: none; border-radius: 6px; background: var(--warna); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.gm-menara-tumpuk i.baru { animation: gm-masuk .6s; outline: 3px solid var(--g-aksen); }
.gm-menara b { font-size: clamp(20px, 2vw, 28px); color: var(--g-aksen); }
.gm-menara span { font-weight: 700; color: var(--warna); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* dadu, kata, duel */
.gm-nilai-soal { color: var(--g-aksen); }
.gm-kata { display: flex; gap: clamp(4px, .6vw, 10px); flex-wrap: wrap; justify-content: center; }
.gm-kata span { width: clamp(34px, 4.4vw, 64px); height: clamp(44px, 5.6vw, 80px); border-radius: 10px; background: var(--g-panel-2); border-bottom: 4px solid var(--g-aksen); display: grid; place-items: center; font-size: clamp(22px, 3vw, 44px); font-weight: 800; }
.gm-kata span.buka { background: #3A3210; color: var(--g-aksen); }
.gm-kata-kecil { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--g-redup); font-weight: 600; }
.gm-kata-kecil .gm-kata span { width: 28px; height: 34px; font-size: 18px; border-bottom-width: 3px; }
.gm-duel { display: flex; align-items: center; gap: clamp(12px, 3vw, 40px); font-size: clamp(22px, 3vw, 44px); font-weight: 800; flex-wrap: wrap; justify-content: center; }
.gm-duel span { padding: 10px 24px; border-radius: 16px; border: 3px solid var(--warna); color: var(--warna); background: color-mix(in srgb, var(--warna) 15%, transparent); }
.gm-duel b { color: var(--g-aksen); }
.gm-panggung:has(.gm-semua) { overflow-y: auto; gap: 8px; }
.gm-panggung:has(.gm-semua) .gm-soal-kartu { padding: 12px 18px; gap: 6px; }
.gm-panggung:has(.gm-semua) .gm-soal-teks { font-size: clamp(18px, 2.1vw, 32px); }
.gm-panggung:has(.gm-semua) .gm-opsi { gap: 8px; }
.gm-panggung:has(.gm-semua) .gm-opsi-btn { padding: 8px 14px; font-size: clamp(15px, 1.5vw, 22px); }
.gm-panggung:has(.gm-semua) .gm-huruf { width: 32px; height: 32px; }

/* Pembaruan 56: pilihan "utamakan soal pendek" */
.gm-cek { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.gm-cek input { width: 18px; height: 18px; margin: 0; }

/* ---------- Pembaruan 57: Game TK/RA (cerah, gambar besar, ramah anak) ---------- */
.gp-pengantar { padding: 12px 14px; border-radius: var(--radius); background: var(--accent-mint-soft, #ECFDF5); color: var(--text); margin-bottom: 14px; line-height: 1.5; }
.gp-ikon-arab { font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif; font-size: 30px; font-weight: 700; color: var(--accent-blue); }
.gm-layar.gp-layar {
  --g-bg: #E0F2FE; --g-panel: #FFFFFF; --g-panel-2: #F1F5F9; --g-teks: #1E293B; --g-redup: #475569; --g-aksen: #FACC15;
  background: linear-gradient(180deg, #BAE6FD 0%, #E0F2FE 45%, #FEF9C3 100%);
}
.gp-layar .gm-tombol-kecil { border-color: #CBD5E1; box-shadow: 0 2px 0 #CBD5E1; }
.gp-layar .gm-progres { color: var(--g-redup); font-weight: 700; }
.gp-bintang-total { font-weight: 800; font-size: clamp(18px, 2vw, 28px); background: #FFFFFF; border-radius: 999px; padding: 4px 16px; box-shadow: 0 2px 0 #FDE68A; }
.gp-panggung { align-items: center; justify-content: center; text-align: center; gap: clamp(8px, 1.6vh, 20px); }
.gp-tanya { font-size: clamp(24px, 3.4vw, 54px); font-weight: 800; line-height: 1.25; max-width: 92%; color: #1E3A8A; animation: gm-masuk .35s ease both; }
.gp-gambar-soal { display: flex; align-items: center; justify-content: center; gap: 2vw; background: #FFFFFFB3; border-radius: 28px; padding: clamp(8px, 1.5vh, 18px) clamp(16px, 3vw, 40px); }
.gp-gambar-soal .gp-gbr { --u: clamp(70px, 15vh, 170px); }
.gp-gbr { --u: clamp(80px, 22vh, 230px); display: inline-flex; align-items: center; justify-content: center; width: calc(var(--u) * var(--s, 1)); height: calc(var(--u) * var(--s, 1)); }
.gp-emoji { font-size: calc(var(--u) * var(--s, 1) * .82); line-height: 1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.gp-svg { width: 100%; height: 100%; }
.gp-kumpulan { display: grid; grid-template-columns: repeat(5, auto); gap: .4vw; justify-content: center; }
.gp-kumpulan .gp-gbr { --u: clamp(46px, 11vh, 110px); }
.gp-kumpulan.sedang .gp-gbr { --u: clamp(40px, 9vh, 90px); }
.gp-kumpulan.banyak .gp-gbr { --u: clamp(34px, 7.5vh, 74px); }
.gp-item { animation: gp-pop .35s ease both; animation-delay: calc(var(--i) * 70ms); }
.gp-opsi { display: grid; gap: clamp(10px, 2vw, 28px); width: min(96%, 1400px); }
.gp-opsi.n2 { grid-template-columns: repeat(2, 1fr); width: min(70%, 900px); }
.gp-opsi.n3 { grid-template-columns: repeat(3, 1fr); }
.gp-opsi.n4 { grid-template-columns: repeat(4, 1fr); }
.gp-kartu { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: clamp(150px, 34vh, 360px);
  background: #FFFFFF; border: 4px solid #FFFFFF; border-radius: 28px; box-shadow: 0 8px 0 #93C5FD; cursor: pointer; padding: 12px; font: inherit; color: inherit;
  transition: transform .15s, box-shadow .15s, opacity .3s; animation: gp-pop .35s ease both; animation-delay: var(--d); }
.gp-opsi.ringkas .gp-kartu { min-height: clamp(120px, 24vh, 260px); }
.gp-opsi.ringkas .gp-gbr { --u: clamp(70px, 16vh, 170px); }
.gp-kartu:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 12px 0 #93C5FD; }
.gp-kartu .gp-no { position: absolute; top: 10px; left: 14px; font-size: 15px; font-weight: 800; color: #94A3B8; }
.gp-kartu .gp-nama { font-size: clamp(16px, 1.8vw, 28px); font-weight: 800; color: #166534; min-height: 1.2em; visibility: hidden; }
.gp-kartu.benar { border-color: #22C55E; box-shadow: 0 8px 0 #16A34A; animation: gp-lompat .6s ease; }
.gp-kartu.benar .gp-nama { visibility: visible; }
.gp-kartu.salah { opacity: .35; animation: gm-goyang .4s; cursor: default; }
.gp-kartu.redup { opacity: .35; }
.gp-kartu:disabled { cursor: default; }
.gp-angka { font-size: clamp(70px, 16vh, 180px); font-weight: 900; line-height: 1; color: #2563EB; }
.gp-titik { font-size: clamp(14px, 2.2vh, 26px); color: #F59E0B; letter-spacing: 4px; }
.gp-huruf { font-size: clamp(90px, 20vh, 220px); line-height: 1.1; font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', 'Noto Naskh Arabic', serif; color: #0F766E; }
.gp-doa { background: #FFFFFF; border-radius: 24px; padding: clamp(10px, 1.6vh, 20px) clamp(16px, 2.5vw, 36px); max-width: 92%; box-shadow: 0 6px 0 #A7F3D0; }
.gp-doa-arab { font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', 'Noto Naskh Arabic', serif; font-size: clamp(26px, 4vw, 56px); line-height: 1.7; color: #0F766E; }
.gp-doa-latin { font-style: italic; font-size: clamp(15px, 1.6vw, 24px); color: #334155; }
.gp-doa-arti { font-size: clamp(13px, 1.2vw, 18px); color: #64748B; margin-top: 4px; }
.gp-gerak { display: flex; flex-direction: column; align-items: center; gap: 2vh; }
.gp-gerak-gbr { background: #FFFFFF; border-radius: 50%; padding: 3vh; box-shadow: 0 10px 0 #FDE68A; animation: gp-goyang-ria 1.6s ease-in-out infinite; }
.gp-tanya-gerak { font-size: clamp(26px, 3.8vw, 60px); }
.gp-bawah { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.gp-puji { font-size: clamp(20px, 2.4vw, 36px); font-weight: 800; color: #15803D; animation: gm-masuk .3s ease both; }
.gp-tombol-besar { font-size: clamp(20px, 2.2vw, 32px); padding: 14px 40px; border-radius: 999px; box-shadow: 0 6px 0 #CA8A04; }
.gp-layar .gm-tombol.sekunder { color: #334155; border-color: #94A3B8; background: #FFFFFFAA; }
.gp-bintang-terbang { position: absolute; left: 50%; top: 45%; font-size: 120px; pointer-events: none; animation: gp-terbang 1.1s ease-in forwards; }
.gp-akhir { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 2vh; }
.gp-akhir-bintang { font-size: clamp(40px, 7vh, 80px); letter-spacing: 6px; animation: gm-denyut 1.2s infinite; }
.gp-akhir-judul { font-size: clamp(32px, 5vw, 76px); font-weight: 900; color: #1E3A8A; }
.gp-akhir-sub { font-size: clamp(20px, 2.4vw, 36px); color: #475569; }
@keyframes gp-pop { from { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } }
@keyframes gp-lompat { 30% { transform: translateY(-18px) scale(1.05); } 60% { transform: translateY(0) scale(1); } }
@keyframes gp-terbang { 0% { transform: translate(-50%, 0) scale(.6); opacity: 1; } 100% { transform: translate(35vw, -45vh) scale(.3); opacity: 0; } }
@keyframes gp-goyang-ria { 50% { transform: rotate(-6deg) scale(1.04); } }
@media (max-width: 700px) { .gp-opsi.n4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pembaruan 68: lanjut otomatis + tampilan HP ---------- */
.gm-oto { flex-basis: 100%; height: 6px; border-radius: 999px; background: #CBD5E166; overflow: hidden; max-width: 420px; margin: 0 auto; }
.gm-oto i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #22C55E, #FACC15); transform-origin: left; animation: gm-oto linear forwards; }
@keyframes gm-oto { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gm-bawah { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }

@media (max-width: 600px), (max-height: 500px) {
  .gm-layar { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
  .gm-atas { gap: 6px; }
  .gm-judul { flex: 1; }
  .gm-judul b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gm-judul span { font-size: 11px; }
  .gm-atas-kanan { gap: 4px; }
  .gm-tombol-kecil { width: 34px; height: 34px; font-size: 15px; border-radius: 8px; }
  .gm-progres { margin-right: 2px; font-size: 13px; }
  #gmPenuh { display: none; }
  .gp-bintang-total { font-size: 15px; padding: 2px 10px; }

  /* TK/RA: panggung boleh digulir agar tidak ada yang terpotong; ukuran gambar mengikuti lebar layar */
  .gp-panggung { justify-content: flex-start; overflow-y: auto; overflow-x: hidden; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
  .gp-tanya { font-size: clamp(19px, 5.6vw, 26px); max-width: 100%; }
  .gp-tanya-gerak { font-size: clamp(20px, 6vw, 28px); }
  .gp-gambar-soal { padding: 6px 12px; border-radius: 18px; max-width: 100%; flex-wrap: wrap; }
  .gp-gambar-soal .gp-gbr { --u: min(26vw, 15vh); }
  .gp-gambar-soal .gp-kumpulan .gp-gbr { --u: min(13vw, 8vh); }
  .gp-gambar-soal .gp-kumpulan.sedang .gp-gbr { --u: min(12vw, 7.5vh); }
  .gp-gambar-soal .gp-kumpulan.banyak .gp-gbr { --u: min(11vw, 6.5vh); }
  .gp-gerak-gbr .gp-gbr { --u: min(30vw, 20vh); }
  .gp-opsi { width: 100%; gap: 8px; }
  .gp-opsi.n2 { width: 100%; }
  .gp-opsi.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp-opsi.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-kartu { min-width: 0; min-height: 0; padding: 22px 4px 6px; border-radius: 18px; overflow: hidden; }
  .gp-opsi.ringkas .gp-kartu { min-height: 0; }
  .gp-kartu .gp-no { top: 4px; left: 9px; font-size: 12px; }
  .gp-kartu .gp-nama { font-size: 13px; line-height: 1.2; }
  .gp-gbr { --u: min(24vw, 17vh); }
  .gp-opsi.n3 .gp-gbr { --u: min(19vw, 15vh); }
  .gp-opsi.ringkas .gp-gbr { --u: min(19vw, 11vh); }
  .gp-opsi.n3.ringkas .gp-gbr { --u: min(17vw, 11vh); }
  /* opsi berisi kumpulan gambar (banyak–sedikit): satu kolom agar setiap kelompok terlihat utuh */
  .gp-opsi:has(.gp-kumpulan) { grid-template-columns: 1fr; }
  .gp-opsi .gp-kumpulan .gp-gbr, .gp-opsi .gp-kumpulan.sedang .gp-gbr, .gp-opsi .gp-kumpulan.banyak .gp-gbr { --u: min(11vw, 6vh); }
  .gp-angka { font-size: min(16vw, 11vh); }
  .gp-titik { font-size: 12px; letter-spacing: 2px; }
  .gp-huruf { font-size: min(20vw, 13vh); }
  .gp-doa { padding: 8px 12px; max-width: 100%; border-radius: 16px; }
  .gp-doa-arab { font-size: clamp(19px, 5.4vw, 26px); line-height: 1.6; }
  .gp-doa-latin { font-size: 13px; }
  .gp-doa-arti { font-size: 12px; }
  .gp-bawah { min-height: 44px; gap: 8px; }
  .gp-puji { font-size: 17px; flex-basis: 100%; }
  .gp-tombol-besar { font-size: 17px; padding: 10px 26px; }
  .gp-bintang-terbang { font-size: 70px; }
  .gp-akhir-judul { font-size: clamp(24px, 7vw, 34px); }
}
