﻿/* Tambahan gaya untuk gim (Fase 1): panggung, panel, pengembang, layar main, peta, hasil. */
#stage { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; background: var(--malam); }
#scene-root { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; }
#cover { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: #121C5C; opacity: 0; pointer-events: none; z-index: 50; }
#rotate { position: fixed; left: 0; top: 0; right: 0; bottom: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: #121C5C; color: #FCE6BA; font: 700 24px var(--isi); z-index: 99; text-align: center; padding: 20px; }
#rotate svg { width: 120px; height: 120px; }
.tombol.kedua { --isi: var(--krem); }
.tombol.ikon { width: 72px; height: 72px; }
.tombol.mati .badan { filter: grayscale(.6); opacity: .8; }
body.kibor .tombol:focus-visible .badan, body.kibor .ketuk:focus-visible { outline: 5px solid var(--cahaya); outline-offset: 4px; }
.tombol:focus { outline: none; }
#stage.hp .tombol.ikon { width: 96px; height: 96px; }
.pojok { position: absolute; right: 12px; top: 10px; display: flex; gap: 10px; z-index: 5; }
.pojok .tombol { position: relative; }
#stage.hp .pojok { gap: 8px; top: 6px; right: 8px; }

/* overlay dan panel */
.overlay { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(18, 28, 92, .72); z-index: 40; display: flex; align-items: center; justify-content: center; }
.panel-besar { position: relative; width: 1000px; height: 660px; padding: 20px 34px 22px; display: flex; flex-direction: column; }
.overlay.kecil .panel-besar { width: 580px; height: 500px; }
.panel-judul { font: 700 40px var(--judul); text-align: center; height: 62px; line-height: 62px; flex: none; }
.panel-isi { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.panel-besar .tutup { position: absolute; right: 16px; top: 14px; }
.tab-baris { display: flex; gap: 12px; justify-content: center; margin: 4px 0 12px; flex: none; }
.tombol.tab { position: relative; height: 68px; min-width: 196px; }
.tombol.tab .label-tombol { font-size: 25px; padding: 0 16px; }
.tombol.tab.aktif { --isi: var(--jingga); --alas: #9A4E05; color: #fff; }
.tab-isi { flex: 1; overflow: hidden; font-size: 26px; line-height: 1.35; }
.pengantar { font: 700 30px var(--judul); text-align: center; margin: 18px 0; }
.kotak-tujuan { margin: 10px 40px; padding: 26px 32px; background: #fff; border: 5px solid var(--garis); border-radius: 26px; font-size: 30px; font-weight: 700; line-height: 1.4; box-shadow: 0 0 0 8px rgba(251, 242, 121, .6); }
.langkah { list-style: none; padding: 0 40px; margin: 20px 0; }
.langkah li { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; font-size: 30px; font-weight: 700; }
.langkah b { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--jingga); color: #fff; border: 4px solid var(--garis); display: flex; align-items: center; justify-content: center; font: 700 30px var(--judul); }
.daftar { margin: 6px 0; padding-left: 36px; font-size: 25px; }
.daftar li { margin-bottom: 12px; }
.tubuh-gambar { display: flex; justify-content: center; }
.tubuh-label { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 23px; }
.tubuh-label b { color: #3C3EA8; }
.tubuh-aturan { margin-top: 12px; text-align: center; font-size: 25px; font-weight: 700; line-height: 1.45; }
.sakelar-daftar { display: flex; flex-direction: column; gap: 6px; padding: 0 70px; }
.sakelar-baris { display: flex; align-items: center; justify-content: space-between; height: 80px; font-size: 27px; font-weight: 700; }
.tombol.sakelar { position: relative; width: 150px; height: 72px; --isi: #CFC8E0; }
.tombol.sakelar.nyala { --isi: var(--hijau-tua); --alas: #1C5A26; color: #fff; }
.tombol.sakelar .label-tombol { font-size: 25px; }
.tombol.hapus { position: relative; height: 76px; margin-top: 8px; }
.tombol.hapus .label-tombol { font-size: 24px; }
.jeda-daftar { display: flex; flex-direction: column; gap: 18px; padding: 16px 60px; }
.jeda-daftar .tombol { position: relative; height: 88px; }
.toast { position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); background: var(--garis); color: #fff; font-size: 24px; font-weight: 700; padding: 12px 24px; border-radius: 18px; z-index: 60; transition: opacity .4s; }
.toast.pergi { opacity: 0; }

/* kartu pengembang (isi disamakan dengan Mata Kilat 450) */
.kartu-dev { flex: 1; display: flex; gap: 40px; align-items: flex-start; padding: 6px 16px 0; min-height: 0; }
.dev-foto { flex: none; width: 230px; height: 230px; margin: 22px 0 0 14px; border-radius: 50%; border: 6px solid var(--garis); box-shadow: 0 0 0 10px var(--cahaya), 0 0 0 15px var(--garis), 0 10px 30px rgba(249, 141, 14, .6); overflow: hidden; }
.dev-foto img { width: 100%; height: 100%; display: block; }
.dev-teks { flex: 1; min-width: 0; }
.dev-nama { font: 700 38px var(--judul); line-height: 1.15; margin-bottom: 8px; }
.dev-baris { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; overflow-wrap: anywhere; }
.dev-ig { display: flex; align-items: center; gap: 10px; }
.dev-ig img { width: 36px; height: 36px; }
.dev-djudul { font: 700 24px var(--judul); margin-top: 8px; color: #3C3EA8; }
.dev-daftar { margin: 2px 0 0; padding-left: 26px; font-size: 21px; line-height: 1.28; }
.dev-tahun { font-weight: 400; margin-top: 8px; }
.dev-nav { flex: none; height: 100px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.dev-nav .tombol { position: relative; width: 88px; height: 88px; }
.dev-hal { font-size: 26px; font-weight: 700; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.titik-hal { display: flex; gap: 14px; }
.titik-hal i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--garis); background: #fff; }
.titik-hal i.aktif { background: var(--jingga); }

/* layar main */
.lapis-seni { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; pointer-events: none; }
.lapis-seni svg { display: block; }
.tangan { position: absolute; width: 110px; z-index: 30; pointer-events: none; display: none; animation: tunjuk 1s ease-in-out infinite; }
@keyframes tunjuk { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, -10px); } }
.partikel { position: absolute; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: radial-gradient(#FFFDE0, #FBF279 55%, rgba(251, 242, 121, 0)); pointer-events: none; z-index: 25; }
.ketuk { position: absolute; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 30px; }
.tanda-baki { position: absolute; display: flex; gap: 16px; padding: 14px 18px; background: var(--krem); border: 5px solid var(--garis); border-radius: 26px; box-shadow: 0 8px 0 rgba(36, 16, 66, .4); z-index: 20; align-items: center; }
.tanda-baki .judul-baki { font-size: 22px; font-weight: 700; margin-right: 6px; width: 160px; line-height: 1.15; }
.tanda-baki .tombol { position: relative; width: 92px; height: 92px; }
.tanda-baki .label-tombol { font-family: var(--isi); font-size: 60px; line-height: 1; margin-top: -14px; }
.antre { position: absolute; display: flex; gap: 4px; align-items: center; }
#stage.hp .gelembung { font-size: 32px; }
#stage.hp .lencana { font-size: 30px; }
.bintang-hasil { display: flex; gap: 26px; justify-content: center; margin: 4px 0 8px; height: 110px; }
.hasil-isi { font-size: 25px; line-height: 1.35; padding: 0 30px; }
.hasil-isi h3 { font: 700 27px var(--judul); margin: 6px 0 4px; }
.hasil-isi ul { margin: 0; padding-left: 30px; }
.catatan-guru { margin-top: 12px; padding: 10px 18px; border: 4px dashed rgba(36, 16, 66, .45); border-radius: 18px; font-size: 22px; background: rgba(255, 255, 255, .55); }
.catatan-guru b { font-family: var(--judul); }
.hasil-tombol { display: flex; gap: 20px; justify-content: center; margin-top: auto; }
.hasil-tombol .tombol { position: relative; width: 260px; height: 88px; }
.stop { position: absolute; width: 168px; height: 100px; margin: -50px 0 0 -84px; }
.stop .badan { border-radius: 50px; flex-direction: column; gap: 0; }
.stop .nama-stop { font: 700 22px var(--judul); line-height: 1.1; position: relative; }
.stop .bintang-stop { font-size: 21px; font-weight: 700; position: relative; }
.stop.terkunci .badan { filter: grayscale(.85); opacity: .75; }
#stage.hp .stop { width: 200px; height: 118px; margin: -59px 0 0 -100px; }
#stage.hp .stop .nama-stop { font-size: 26px; }
.judul-layar { position: absolute; left: 180px; top: 14px; height: 64px; padding: 0 26px; font-size: 30px; }
.video-lapis { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; background: #121C5C; }
.video-lapis video { width: 1280px; height: 720px; display: block; }
.video-lapis .tombol { position: absolute; right: 24px; bottom: 24px; width: 200px; height: 80px; }
.hasil-tombol .tombol { font-size: 30px; }
#stage.hp .tombol.tab { height: 96px; min-width: 210px; }
#stage.hp .tombol.tab .label-tombol { font-size: 28px; }
#stage.hp .tombol.sakelar { height: 88px; width: 170px; }
#stage.hp .sakelar-baris { height: 90px; font-size: 30px; }
#stage.hp .sakelar-daftar { gap: 0; }
#stage.hp .tombol.hapus { height: 88px; margin-top: 2px; }
#stage.hp .hasil-tombol .tombol { height: 100px; }
/* perakit kunang (L2, L3, L6, Kebun) */
.strip-baki { left: 0; top: 590px; width: 1280px; height: 130px; background: rgba(252, 230, 186, .95); border-top: 5px solid var(--garis); }
.baki { left: 16px; top: 608px; right: 16px; justify-content: center; flex-wrap: nowrap; }
.baki.dengan-tab { left: 236px; justify-content: flex-start; }
.baki-tab { position: absolute; left: 10px; top: 598px; width: 214px; display: flex; flex-direction: column; gap: 4px; }
.baki-tab .tombol.tab { min-width: 0; width: 214px; height: 38px; }
.baki-tab .tombol.tab .badan { bottom: 4px; border-width: 3px; border-radius: 14px; box-shadow: 0 4px 0 var(--alas); }
.baki-tab .label-tombol { font-size: 21px; }
#stage.hp .baki-tab .tombol.tab { height: 38px; }
#stage.hp .baki.dengan-tab .kartu { height: 104px; }
.kartu.denyut { animation: denyut 1s ease-in-out infinite; box-shadow: 0 0 0 6px var(--cahaya), 0 6px 0 rgba(36, 16, 66, .45); }
@keyframes denyut { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.chip-info { position: absolute; padding: 6px 14px; background: var(--krem); border: 4px solid var(--garis); border-radius: 16px; font-size: 22px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 0 rgba(36, 16, 66, .35); }
.meter-bagian { position: absolute; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.meter-bagian span { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; background: var(--krem); border: 4px solid var(--garis); border-radius: 20px; font-size: 21px; font-weight: 700; }
.meter-bagian i { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--garis); background: #6A6386; }
.meter-bagian span.on i { background: var(--cahaya); box-shadow: 0 0 12px var(--cahaya); }
/* L5 Sungai Lampion */
.sg-kolom { position: absolute; display: flex; flex-direction: column; gap: 8px; }
.tombol.sg-chip { position: relative; height: 66px; width: 100%; }
.tombol.sg-chip .badan { justify-content: flex-start; padding: 0 12px; gap: 8px; }
.sg-teks { position: relative; font-size: 25px; font-weight: 700; white-space: nowrap; }
.sg-judul-tali { position: absolute; font: 700 26px var(--judul); color: #fff; text-shadow: 0 2px 0 var(--garis); }
.sg-baris { display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 10px; background: rgba(252, 230, 186, .9); border: 4px dashed rgba(36, 16, 66, .5); border-radius: 20px; box-sizing: border-box; }
.sg-baris.sorot { border: 5px solid var(--cahaya); box-shadow: 0 0 18px var(--cahaya); }
.sg-no { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--jingga); color: #fff; font: 700 22px var(--judul); display: flex; align-items: center; justify-content: center; border: 3px solid var(--garis); }
.tombol.sg-subjek { position: relative; height: 56px; min-width: 120px; --isi: var(--kepala); }
.tombol.sg-subjek .label-tombol { font-family: var(--isi); font-size: 25px; padding: 0 12px; }
.tombol.sg-lepas { position: relative; width: 52px; height: 52px; margin-left: auto; flex: none; }
#stage.hp .tombol.sg-lepas { width: 92px; height: 60px; }
#stage.hp .tombol.sg-subjek { height: 60px; }
#stage.hp .sg-baris { height: 70px; }
#stage.hp .tombol.sg-chip { height: 68px; }
.baki .kartu { padding: 0 15px; min-width: 84px; }
.baki .kartu .kata { font-size: 28px; }
.baki { gap: 8px; }
#stage.hp .baki .kartu { padding: 0 12px; min-width: 92px; }
#stage.hp .baki .kartu .kata { font-size: 30px; }
/* baki tinggi bertab (L6, Kebun): tab mendatar di atas, kartu di bawah */
.strip-baki.tinggi { top: 516px; height: 204px; }
.baki-tab.tinggi { left: 16px; top: 526px; width: auto; flex-direction: row; gap: 10px; }
.baki-tab.tinggi .tombol.tab { width: 200px; height: 80px; }
.baki-tab.tinggi .tombol.tab .badan { bottom: 7px; border-width: 4px; border-radius: 20px; }
.baki-tab.tinggi .label-tombol { font-size: 26px; }
#stage.hp .baki-tab.tinggi .tombol.tab { height: 92px; width: 220px; }
.baki.dengan-tab.tinggi { left: 16px; top: 618px; justify-content: flex-start; }
#stage.hp .baki.dengan-tab.tinggi { top: 622px; }
#stage.hp .baki.dengan-tab.tinggi .kartu { height: 92px; }
.baki .tombol.lagi { position: relative; flex: none; width: 110px; height: 88px; }
.baki .tombol.lagi .label-tombol { font-size: 26px; }
#stage.hp .baki .tombol.lagi { height: 96px; }
/* L6 rancang lampion */
.fs-panel { left: 460px; top: 270px; width: 800px; height: 300px; padding: 16px 22px; box-sizing: border-box; }
.fs-tanya { font: 700 30px var(--judul); text-align: center; }
.fs-titik { display: flex; gap: 10px; justify-content: center; margin: 8px 0 14px; }
.fs-titik i { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--garis); background: #fff; }
.fs-titik i.lewat { background: var(--cahaya); } .fs-titik i.aktif { background: var(--jingga); }
.fs-pilihan { display: flex; gap: 10px; justify-content: center; flex-wrap: nowrap; }
.tombol.fs-opsi { position: relative; height: 96px; min-width: 88px; flex: 1 1 0; max-width: 220px; }
.tombol.fs-opsi .badan { flex-direction: column; gap: 4px; padding: 0 6px; }
.tombol.fs-opsi .label-tombol { font-family: var(--isi); font-size: 22px; white-space: normal; text-align: center; line-height: 1.05; }
.tombol.fs-opsi.aktif { --isi: var(--cahaya); }
.fs-swatch { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--garis); }
.fs-nama { width: 360px; height: 88px; box-sizing: border-box; border: 5px solid var(--garis); border-radius: 22px; font: 700 40px var(--isi); padding: 0 18px; color: var(--garis); background: #fff; }
.fs-nama:focus { outline: 5px solid var(--cahaya); }
.tombol.fs-siap { position: relative; width: 300px; height: 92px; }
.tombol.fs-siap .label-tombol { font-size: 26px; }
.fs-petunjuk { text-align: center; font-size: 22px; margin-top: 8px; }
.tombol.fs-kembali { position: absolute; left: 16px; top: 12px; width: 150px; height: 56px; }
.tombol.fs-kembali .label-tombol { font-size: 22px; }
.fs-panel .fs-tanya { margin-left: 150px; margin-right: 10px; }
#stage.hp .tombol.fs-kembali { height: 92px; width: 170px; top: 4px; }
#stage.hp .fs-panel { top: 250px; height: 330px; }
/* Toples */
.tp-daftar { position: absolute; left: 30px; top: 120px; width: 1100px; height: 450px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-content: start; }
.tp-chip .sg-teks { font-size: 24px; }
.tp-kosong { grid-column: 1 / 3; text-align: center; font-size: 28px; font-weight: 700; margin-top: 120px; }
/* L5 di HP: kartu besar dua kolom, teks boleh dua baris */
#stage.hp #sg-kolam { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 560px !important; }
#stage.hp #sg-kolam .tombol.sg-chip { height: 92px; }
#stage.hp #sg-kolam .sg-chip svg { display: none; }
#stage.hp #sg-kolam .sg-teks { white-space: normal; font-size: 24px; line-height: 1.05; }
#stage.hp #sg-tali { top: 120px !important; gap: 4px; }
#stage.hp .sg-baris { height: 94px; }
#stage.hp .tombol.sg-subjek { height: 88px; }
#stage.hp .tombol.sg-lepas { height: 88px; width: 92px; }
.tombol.kebun-peta { position: absolute; }
#stage.hp .tp-chip.tombol { height: 92px; }
/* Fase 3: Buku Kunang, Hasil Belajarku, Tahukah Kamu, penopang netral */
.overlay.kecil .panel-besar { height: 580px; }
.kamus { height: 100%; overflow-y: auto; padding-right: 8px; touch-action: pan-y; }
.kamus-petunjuk { font-size: 22px; margin-bottom: 6px; }
.kamus-grup { font: 700 24px var(--judul); color: #3C3EA8; margin: 10px 0 6px; }
.kamus-baris { display: flex; flex-wrap: wrap; gap: 8px; }
.tombol.kamus-kata { position: relative; height: 76px; min-width: 120px; padding: 0; }
.tombol.kamus-kata .badan { flex-direction: column; gap: 0; padding: 0 14px; }
.kamus-en { position: relative; font-size: 24px; font-weight: 700; }
.kamus-id { position: relative; font-size: 20px; opacity: .8; }
.kamus-warna { position: absolute; left: 8px; top: 8px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--garis); }
#stage.hp .tombol.kamus-kata { height: 92px; }
.resep { padding: 6px 30px; }
.resep-baris { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 12px 18px; background: #fff; border: 4px solid var(--garis); border-radius: 22px; }
.resep-baris b { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--jingga); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 26px var(--judul); border: 3px solid var(--garis); }
.resep-judul { flex: none; width: 200px; font-weight: 700; font-size: 25px; }
.resep-en { font-size: 28px; font-weight: 700; color: #3C3EA8; }
.resep-catatan { font-size: 25px; font-weight: 700; text-align: center; }
.panel.tahu { left: 12px; top: 110px; width: 178px; padding: 12px; box-sizing: border-box; font-size: 21px; line-height: 1.25; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.panel.tahu b { font: 700 22px var(--judul); color: #3C3EA8; }
.rapor-isi { padding: 0 6px; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.rapor-atas { display: flex; gap: 16px; }
.rapor-kolom { flex: 1; border: 4px solid var(--garis); border-radius: 20px; padding: 6px 14px; height: 280px; box-sizing: border-box; overflow-y: auto; background: #fff; font-size: 22px; }
.rapor-kolom h3 { font: 700 25px var(--judul); margin: 4px 0; }
.rapor-kolom ul { margin: 0; padding-left: 22px; line-height: 1.3; }
.rapor-kolom.hijau { box-shadow: inset 0 0 0 6px #BDE6AE; } .rapor-kolom.kuning { box-shadow: inset 0 0 0 6px #FFE58A; } .rapor-kolom.abu { box-shadow: inset 0 0 0 6px #DDD6EA; }
.rapor-guru { font-size: 22px; }
.rapor-pre { position: absolute; left: 20px; right: 20px; top: 400px; height: 170px; overflow: auto; background: #fff; border: 3px solid var(--garis); border-radius: 12px; font: 400 20px var(--isi); padding: 8px; white-space: pre-wrap; }
.baki.netral .kartu { --warna: #B9AFCF; }
.tombol.kamus-kata .badan { position: relative; left: auto; top: auto; right: auto; bottom: auto; height: 69px; white-space: nowrap; }
#stage.hp .tombol.kamus-kata .badan { height: 85px; }
#stage.hp .tab-baris .tombol.tab { min-width: 240px; }

/* Fase 4 QA: kolom nama L6 bisa diketik di Safari iOS (body memakai user-select:none); kartu mengecil saat ditekan (CLAUDE.md bagian 4) */
.fs-nama { -webkit-user-select: text; user-select: text; }
.kartu { cursor: pointer; }
.kartu:active:not(.terpakai):not(.dipegang) { transform: scale(.95); }
.hasil-isi.padat { font-size: 24px; line-height: 1.2; }
.hasil-isi.padat h3 { margin: 2px 0; }
