/* ============================================================
   Ketik Cepat · v2 — gaya "Kebun Oki": langit ungu muda, bukit hijau,
   tombol tebal ala mainan. Basis dari Hitung Cepat 1 baru + bagian khusus mengetik.
   Urutan: 1 dasar · 2 tombol · 4 menu · 5 sheet · 6 main/HUD · 9 overlay · 10 akhir · 11 animasi
           12 maskot Oki · 13 papan ketik · 14 target · 15 mode (latih, hujan, balap, ingat)
   ============================================================ */
/* ---------- 1. DASAR ---------- */
:root {
  --hijau: #28b99a; --hijau-tua: #1a8f76; --kuning: #ffbe1b; --kuning-tua: #e09a00;
  --merah: #ff5c6c; --biru: #4c9dff; --ungu: #a066ff; --pink: #ff5c8a; --oranye: #ff8a4c;
  --teks: #17324d; --teks-2: #4d6680; --putih: #fff; --krem: #fffaf0;
  --bayang: 0 6px 0 rgba(23, 50, 77, .14), 0 12px 24px rgba(23, 50, 77, .10);
  --r: 22px;
  --w: var(--hijau);
  --font: "Nunito", "Baloo 2", "Quicksand", ui-rounded, "Segoe UI Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
html { overflow-x: hidden; }
body {
  font-family: var(--font); color: var(--teks); font-weight: 700;
  background: linear-gradient(180deg, #b7a6ff 0%, #d9d0ff 42%, #f4f1ff 100%);
  overflow-x: hidden; -webkit-user-select: none; user-select: none;
  overscroll-behavior: none;
}
input { -webkit-user-select: text; user-select: text; }
button { font-family: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
b, strong { font-weight: 900; }

/* latar dekoratif */
.latar { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.awan { position: absolute; width: 140px; height: 44px; background: #fff; border-radius: 40px; opacity: .85; animation: awan 38s linear infinite; }
.awan::before, .awan::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.awan::before { width: 60px; height: 60px; left: 22px; top: -28px; }
.awan::after { width: 46px; height: 46px; left: 70px; top: -18px; }
.awan.a1 { top: 9%; left: -160px; }
.awan.a2 { top: 22%; left: -160px; animation-delay: -14s; transform: scale(.7); animation-duration: 50s; }
.awan.a3 { top: 4%; left: -160px; animation-delay: -27s; transform: scale(.55); animation-duration: 44s; }
@keyframes awan { to { translate: calc(100vw + 340px) 0; } }
.bukit { position: absolute; bottom: -60px; border-radius: 50%; }
.bukit.b1 { left: -20vw; width: 90vw; height: 200px; background: #7fdcb0; }
.bukit.b2 { right: -25vw; width: 100vw; height: 230px; background: #5ccf9f; }

.layar { display: none; position: relative; overflow-x: clip; z-index: 1; min-height: 100vh; min-height: 100dvh; max-width: 560px; margin: 0 auto; padding: 12px 14px 28px; }
.layar.aktif { display: block; animation: masukLayar .35s ease-out; }
@keyframes masukLayar { from { opacity: 0; transform: translateY(12px); } }

/* sembunyikan badge taman-anak saat bermain (supaya tidak menutupi tombol) */
body.sedang-main > div[title="Klik untuk ganti anak"] { display: none !important; }

/* ---------- 2. TOMBOL ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 10px 18px; border-radius: 18px; font-size: 18px; font-weight: 900;
  background: #fff; color: var(--teks); text-decoration: none;
  box-shadow: 0 5px 0 #c9d6e2; transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #c9d6e2; }
.btn.utama { background: var(--hijau); color: #fff; box-shadow: 0 5px 0 var(--hijau-tua); }
.btn.utama:active { box-shadow: 0 1px 0 var(--hijau-tua); }
.btn.kuning { background: var(--kuning); color: #5a3a00; box-shadow: 0 5px 0 var(--kuning-tua); }
.btn.besar { min-height: 60px; font-size: 21px; padding: 12px 24px; }
.btn:disabled { opacity: .7; }
.btn-bulat {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; font-size: 22px; text-decoration: none; color: var(--teks);
  box-shadow: 0 4px 0 #c9d6e2; flex: none;
}
.btn-bulat:active { transform: translateY(3px); box-shadow: 0 1px 0 #c9d6e2; }
.btn-bulat.kecil { width: 44px; height: 44px; font-size: 18px; }

.gelembung-kata {
  position: absolute; background: #fff; border-radius: 16px; padding: 8px 12px; font-size: 15px; line-height: 1.25;
  box-shadow: var(--bayang); z-index: 3;
}
.gelembung-kata.kecil { opacity: 0; transform: scale(.6); transition: .18s; pointer-events: none; white-space: nowrap; }
.gelembung-kata.kecil.tampil { opacity: 1; transform: scale(1); }

/* ---------- 4. MENU ---------- */
.bar-atas { display: flex; align-items: center; gap: 10px; }
.bar-judul { flex: 1; text-align: center; font-size: 15px; color: var(--teks-2); letter-spacing: .5px; text-transform: uppercase; }
.hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 12px 0 6px; }
.hero-maskot { width: 116px; height: 108px; flex: none; cursor: pointer; animation: ayun 3s ease-in-out infinite; }
@keyframes ayun { 50% { transform: translateY(-5px); } }
.hero-teks h1 { margin: 0; font-size: clamp(34px, 9.5vw, 46px); line-height: .95; font-weight: 900; color: #fff;
  -webkit-text-stroke: 2px var(--teks); paint-order: stroke fill; text-shadow: 0 5px 0 var(--teks); letter-spacing: .5px; }
.hero-teks h1 span { color: var(--kuning); }
.hero-teks p { margin: 10px 0 0; font-size: 16px; color: var(--teks-2); }
.hero .gelembung-kata { position: relative; order: -1; width: calc(100% - 70px); margin-left: 70px; font-size: 15px; animation: munculKata .4s .3s both cubic-bezier(.3, 1.5, .5, 1); }
.hero .gelembung-kata::before { content: ""; position: absolute; left: 18px; bottom: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.hero-teks { flex: 1; min-width: 0; }
@keyframes munculKata { from { opacity: 0; transform: scale(.5); } }

.ringkas { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.chip { background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 6px 12px; font-size: 14px; box-shadow: 0 3px 0 rgba(23, 50, 77, .1); }
.judul-bagian { font-size: 20px; margin: 18px 4px 6px; }
.judul-bagian.kecil { font-size: 18px; margin: 20px 0 8px; }
.catatan { text-align: center; font-size: 14px; color: var(--teks-2); margin: 10px 0 0; }

.peta { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 8px 0; }
.peta-jalan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.peta-jalan path { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 2 16; stroke-linecap: round; opacity: .95; }
.lv-node {
  position: relative; display: flex; align-items: center; gap: 12px; width: 84%; padding: 10px 14px 10px 10px;
  background: #fff; border-radius: 26px; box-shadow: var(--bayang); text-align: left; z-index: 1;
  transition: transform .12s;
}
.lv-node.kanan { align-self: flex-end; flex-direction: row-reverse; text-align: right; padding: 10px 10px 10px 14px; }
.lv-node:active { transform: scale(.97); }
.lv-bulat {
  position: relative; width: 70px; height: 70px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--w); color: #fff; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .16), 0 0 0 5px #fff, 0 0 0 8px var(--w);
}
.lv-bulat b { font-size: 30px; line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.lv-ikon { color: var(--teks); position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.lv-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-info b { font-size: 18px; }
.lv-info small { font-size: 13px; color: var(--teks-2); font-weight: 700; }
.lv-node.terkunci { filter: grayscale(1); opacity: .65; }
.lv-node.berikut .lv-bulat { animation: denyut 1.4s ease-in-out infinite; }
@keyframes denyut { 50% { transform: scale(1.08); } }
.lv-tanda { position: absolute; top: -12px; background: var(--kuning); color: #5a3a00; border-radius: 999px; padding: 3px 12px; font-size: 14px; box-shadow: 0 3px 0 var(--kuning-tua); animation: lompatKecil 1s ease-in-out infinite; }
.lv-node.kiri .lv-tanda { right: 14px; } .lv-node.kanan .lv-tanda { left: 14px; }
@keyframes lompatKecil { 50% { transform: translateY(-4px); } }
.bintang-baris { display: inline-flex; gap: 1px; font-size: 22px; line-height: 1; }
.bintang-baris i { font-style: normal; color: #dfe6ee; }
.bintang-baris i.isi { color: var(--kuning); text-shadow: 0 2px 0 var(--kuning-tua); }
.bintang-baris.kecil { font-size: 17px; }

/* ---------- 5. SHEET PILIH MODE ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-latar { position: absolute; inset: 0; background: rgba(23, 50, 77, .45); opacity: 0; transition: opacity .25s; }
.sheet-isi {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 92vh; overflow-y: auto;
  background: var(--krem); border-radius: 28px 28px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2, 1.1, .4, 1);
}
.sheet.buka { pointer-events: auto; }
.sheet.buka .sheet-latar { opacity: 1; }
.sheet.buka .sheet-isi { transform: none; }
.sheet-pegangan { width: 48px; height: 6px; background: #d9e1ea; border-radius: 9px; margin: 2px auto 10px; }
.sheet-kepala { display: flex; align-items: center; gap: 12px; }
.sheet-kepala > div { flex: 1; min-width: 0; }
.sheet-kepala h2 { margin: 0; font-size: 20px; }
.sheet-kepala p { margin: 2px 0 0; font-size: 13px; color: var(--teks-2); }
.sheet-ikon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; flex: none; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.sheet-tanya { font-size: 18px; margin: 14px 2px 10px; }
.grid-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-kartu {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; min-height: 132px;
  background: #fff; border-radius: 20px; text-align: left; box-shadow: 0 5px 0 color-mix(in srgb, var(--w) 70%, #000 0%), 0 0 0 3px color-mix(in srgb, var(--w) 25%, #fff);
  transition: transform .1s;
}
.mode-kartu:active { transform: translateY(3px); }
.mode-kartu.terakhir::after { content: "terakhir"; position: absolute; top: 10px; right: 10px; font-size: 11px; background: var(--w); color: #fff; padding: 2px 8px; border-radius: 99px; }
.mode-ikon { width: 46px; height: 46px; border-radius: 14px; background: var(--w); display: grid; place-items: center; font-size: 26px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); margin-bottom: 4px; }
.mode-kartu b { font-size: 17px; line-height: 1.1; }
.mode-kartu small { font-size: 12.5px; color: var(--teks-2); line-height: 1.2; flex: 1; }

/* ---------- 6. LAYAR MAIN ---------- */
#layar-main.aktif { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
.hud { display: flex; align-items: center; gap: 10px; flex: none; }
.hud-waktu { position: relative; flex: 1; height: 30px; background: rgba(255, 255, 255, .8); border-radius: 99px; overflow: hidden; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .08); }
.hud-waktu-isi { position: absolute; inset: 0; background: linear-gradient(90deg, var(--hijau), #6be0b4); transform-origin: left; border-radius: 99px; transition: transform .1s linear; }
.hud-waktu span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; font-size: 17px; font-weight: 900; color: var(--teks); }
.hud-waktu span::before { content: "⏱"; font-size: 15px; }
.hud-waktu.genting .hud-waktu-isi { background: linear-gradient(90deg, var(--oranye), var(--kuning)); }
.hud-waktu.genting span { animation: denyut .5s infinite; }
.hud-poin { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 99px; padding: 4px 12px 4px 6px; min-width: 92px; justify-content: flex-end; box-shadow: 0 3px 0 rgba(23, 50, 77, .12); }
.hud-poin b { font-size: 20px; }
.hud-poin b::before { content: "⭐"; font-size: 16px; margin-right: 3px; }
.combo { font-size: 13px; padding: 2px 6px; border-radius: 99px; color: var(--hijau-tua); }
.combo:empty { display: none; }
.combo.api { background: linear-gradient(90deg, #ff8a4c, #ff5c6c); color: #fff; animation: denyut .7s infinite; }

.jejak-target { position: relative; height: 12px; margin: 4px 22px 10px; background: rgba(255, 255, 255, .7); border-radius: 99px; flex: none; }
.jejak-isi { position: absolute; inset: 0; background: linear-gradient(90deg, var(--kuning), #ffd866); border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.jejak-bintang { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.jejak-bintang i { font-style: normal; font-size: 26px; color: #dfe6ee; text-shadow: 0 2px 0 rgba(0, 0, 0, .12); line-height: 1; transition: .2s; }
.jejak-bintang small { position: absolute; top: 15px; font-size: 10px; color: var(--teks-2); }
.jejak-bintang.nyala i { color: var(--kuning); animation: popBintang .5s cubic-bezier(.3, 1.8, .5, 1); text-shadow: 0 2px 0 var(--kuning-tua); }
@keyframes popBintang { 0% { transform: scale(.3); } 60% { transform: scale(1.5) rotate(20deg); } }

.kartu-soal {
  position: relative; display: flex; align-items: center; gap: 8px; flex: none; min-height: 84px;
  background: #fff; border-radius: var(--r); padding: 8px 10px 8px 6px; box-shadow: var(--bayang); transition: background .2s;
}
.kartu-soal.benar { background: #e2fbef; }
.kartu-soal.salah { background: #fff0f0; }
.soal-maskot { width: 68px; height: 64px; flex: none; }
.soal-teks { flex: 1; min-width: 0; overflow: hidden; text-align: center; font-size: clamp(34px, 10vw, 50px); font-weight: 900; line-height: 1; white-space: nowrap; letter-spacing: -.5px; }
.soal-teks.masuk { animation: masukSoal .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes masukSoal { from { opacity: 0; transform: scale(.6) translateY(10px); } }
.soal-teks .op.tambah { color: var(--hijau); } .soal-teks .op.kurang { color: var(--oranye); }
.soal-teks .sama { color: var(--teks-2); }
.soal-teks .isi { display: inline-block; min-width: 1.3em; padding: 0 .12em; border-radius: 14px; background: #fff3cf; color: var(--kuning-tua); box-shadow: inset 0 -4px 0 #ffe39a; }
.soal-teks .isi.ketikan { color: var(--teks); background: #e9f3ff; box-shadow: inset 0 -4px 0 #c7defc; }
.kartu-soal.benar .isi { background: var(--hijau); color: #fff; box-shadow: inset 0 -4px 0 var(--hijau-tua); animation: popBintang .4s; }
.soal-teks .siap { font-size: .56em; color: var(--teks-2); }
.btn-baca { width: 42px; height: 42px; border-radius: 50%; background: #eef6ff; font-size: 20px; flex: none; }
.kartu-soal .gelembung-kata { top: -14px; left: 58px; }

.arena { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.panel { flex: none; }
.petunjuk-panel { margin: 0; text-align: center; font-size: 17px; background: rgba(255, 255, 255, .85); border-radius: 16px; padding: 10px 12px; line-height: 1.4; }
.panel-judul { margin: 0 0 8px; text-align: center; font-size: 18px; }
.hitungan { display: inline-block; background: var(--w); color: #fff; border-radius: 99px; padding: 1px 10px; margin-left: 4px; }

/* gelembung jawaban */
.gelembung-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gelembung-grid.n3 { grid-template-columns: 1fr 1fr 1fr; }
.gelembung {
  position: relative; height: 84px; border-radius: 30px; font-size: 40px; font-weight: 900; color: #fff;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .16), 0 6px 14px rgba(23, 50, 77, .15);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .18); animation: apung 2.6s ease-in-out infinite;
  transition: transform .1s;
}
.gelembung::after { content: ""; position: absolute; top: 12px; left: 18px; width: 18px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-20deg); }
.gelembung.g0 { background: var(--biru); } .gelembung.g1 { background: var(--pink); animation-delay: -.6s; }
.gelembung.g2 { background: var(--ungu); animation-delay: -1.2s; } .gelembung.g3 { background: var(--oranye); animation-delay: -1.8s; }
.gelembung:active { transform: scale(.94); }
.gelembung.betul { background: var(--hijau) !important; animation: popKecil .45s; box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--hijau); }
@keyframes apung { 50% { translate: 0 -4px; } }
@keyframes popKecil { 0% { transform: scale(.9); } 50% { transform: scale(1.1); } 100% { transform: none; } }

/* ---------- 9. PENJELASAN & OVERLAY ---------- */
.penjelasan { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding: 12px; background: rgba(23, 50, 77, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.penjelasan.tampil { opacity: 1; pointer-events: auto; }
.jl-kartu { width: 100%; max-width: 520px; max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--krem); border-radius: 28px; padding: 14px 16px 18px; box-shadow: 0 -6px 30px rgba(0, 0, 0, .2);
  display: flex; flex-direction: column; gap: 8px; align-items: stretch; transform: translateY(40px); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); position: relative; overflow: hidden; }
.penjelasan.tampil .jl-kartu { transform: none; }
.jl-atas { display: flex; align-items: center; gap: 10px; }
.jl-maskot { width: 60px; height: 56px; flex: none; }
.jl-sapa b { display: block; font-size: 21px; } .jl-sapa small { font-size: 15px; color: var(--teks-2); }
.jl-soal { text-align: center; font-size: 36px; overflow: hidden; font-weight: 900; white-space: nowrap; }
.jl-soal .op.tambah { color: var(--hijau); } .jl-soal .op.kurang { color: var(--oranye); }
.jl-soal .isi { display: inline-block; padding: 0 .2em; border-radius: 12px; background: var(--hijau); color: #fff; animation: popBintang .5s .2s both; }
.jl-gambar { display: flex; justify-content: center; background: #fff; border-radius: 18px; padding: 8px; }
.jl-gambar .sel { width: 19px; height: 19px; border-radius: 4px; }
.jl-gambar .frames { gap: 6px; }
.jl-gambar .garis-lompat { max-height: 120px; }
#jl-ok { position: sticky; bottom: 0; flex: none; }
.jl-kata { margin: 0; text-align: center; font-size: 18px; line-height: 1.35; }
.jl-kata b { color: var(--hijau-tua); font-size: 22px; }
.jl-otomatis { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #eef2f7; }
.jl-otomatis i { display: block; height: 100%; background: var(--hijau); transform-origin: left; animation: habis 7s linear forwards; }
@keyframes habis { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.overlay { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(23, 50, 77, .5); }
.overlay.tampil { display: flex; }
.overlay.tembus { background: rgba(23, 50, 77, .18); }
.ov-kartu { width: 100%; max-width: 420px; background: var(--krem); border-radius: 30px; padding: 22px 20px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); animation: masukSoal .35s cubic-bezier(.3, 1.4, .5, 1); }
.ov-kartu h2 { margin: 10px 0 6px; font-size: 26px; }
.ov-kartu p { margin: 0 0 16px; font-size: 18px; line-height: 1.45; color: var(--teks-2); }
.cara-ikon { width: 90px; height: 90px; margin: 0 auto; border-radius: 28px; display: grid; place-items: center; font-size: 50px; box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .15); animation: denyut 1.4s infinite; }
.ov-aksi { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ov-aksi.kolom { flex-direction: column; }
.jeda-maskot { width: 110px; height: 100px; margin: 0 auto; }
.mundur { font-size: 150px; font-weight: 900; color: #fff; -webkit-text-stroke: 4px var(--teks); paint-order: stroke fill; text-shadow: 0 10px 0 var(--teks); animation: mundur .65s cubic-bezier(.3, 1.6, .5, 1); }
.mundur.mulai { font-size: 76px; color: var(--kuning); }
@keyframes mundur { from { transform: scale(2.2); opacity: 0; } }

#konfeti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
.poin-melayang { position: fixed; z-index: 85; pointer-events: none; transform: translate(-50%, -50%); font-size: 30px; font-weight: 900; color: var(--kuning);
  -webkit-text-stroke: 2px var(--teks); paint-order: stroke fill; animation: poinNaik 1.1s ease-out forwards; white-space: nowrap; }
@keyframes poinNaik { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -80%) scale(1.25); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }

/* ---------- 10. AKHIR ---------- */
.akhir-kartu { background: var(--krem); border-radius: 30px; padding: 16px 16px 20px; box-shadow: var(--bayang); text-align: center; margin-top: 8px; }
.akhir-maskot { width: 130px; height: 120px; margin: -4px auto 0; }
.akhir-kartu h2 { margin: 4px 0 2px; font-size: 32px; }
.akhir-sub { margin: 0; color: var(--teks-2); font-size: 15px; }
.akhir-bintang { display: flex; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.bintang-besar { font-size: 66px; line-height: 1; color: #dfe6ee; text-shadow: 0 4px 0 #c9d4df; }
.bintang-besar:nth-child(2) { font-size: 82px; transform: translateY(-10px); }
.bintang-besar.isi { color: var(--kuning); text-shadow: 0 4px 0 var(--kuning-tua); animation: popBintang .55s cubic-bezier(.3, 1.8, .5, 1); }
.akhir-saran { margin: 0 0 12px; font-size: 16px; color: var(--teks-2); }
.akhir-stat { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.akhir-stat .stat { flex: 0 0 calc(33.33% - 6px); }
.stat { background: #fff; border-radius: 18px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 3px 0 rgba(23, 50, 77, .08); }
.stat span { font-size: 20px; } .stat b { font-size: 26px; line-height: 1.1; } .stat small { font-size: 12px; color: var(--teks-2); }
.akhir-kabar p { margin: 10px 0 0; background: #fff3cf; border-radius: 14px; padding: 8px 10px; font-size: 16px; }
.kirim-kartu { margin-top: 14px; background: #fff; border-radius: 20px; padding: 12px; text-align: left; }
.kirim-kartu label { font-size: 15px; color: var(--teks-2); }
.kirim-baris { display: flex; gap: 8px; margin-top: 6px; }
.kirim-baris input { flex: 1; min-width: 0; height: 52px; border-radius: 16px; border: 3px solid #dbe5ee; padding: 0 14px; font: 800 19px var(--font); color: var(--teks); }
.kirim-baris input:focus { outline: none; border-color: var(--hijau); }
.kirim-status { margin: 8px 0 0; font-size: 15px; min-height: 1.2em; }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin-top: 6px; }
.podium .kosong { grid-column: 1 / -1; color: var(--teks-2); font-size: 15px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.pod-medali { font-size: 26px; }
.pod-avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--biru); box-shadow: 0 0 0 4px #fff; }
.pod.emas .pod-avatar { background: var(--kuning); width: 60px; height: 60px; font-size: 28px; color: #5a3a00; }
.pod.perunggu .pod-avatar { background: var(--oranye); }
.pod-nama { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod small { font-size: 12px; color: var(--teks-2); }
.pod-tiang { width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: center; font-size: 26px; color: #fff; font-weight: 900; margin-top: 4px; }
.pod.emas .pod-tiang { height: 84px; background: linear-gradient(#ffd34d, var(--kuning)); }
.pod.perak .pod-tiang { height: 62px; background: linear-gradient(#cfd9e3, #a9b8c7); }
.pod.perunggu .pod-tiang { height: 46px; background: linear-gradient(#ffb37f, var(--oranye)); }
.pod.aku .pod-nama { color: var(--hijau-tua); }
.pod.aku .pod-avatar { box-shadow: 0 0 0 4px var(--hijau); }
.top-sisa { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.top-sisa li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 8px 12px; }
.top-sisa li span { font-weight: 900; color: var(--teks-2); }
.top-sisa li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-sisa li small { font-size: 12px; color: var(--teks-2); }
.top-sisa li.aku { background: #e2fbef; }
.akhir-aksi { display: grid; gap: 10px; margin-top: 16px; padding-bottom: 40px; }

/* ---------- 11. ANIMASI UMUM & AKSESIBILITAS ---------- */
.goyang-salah { animation: goyangSalah .4s; }
@keyframes goyangSalah { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }
.gelembung.goyang-salah { background: #b8c4d0 !important; }

/* layar pendek (HP kecil / landscape): rapatkan */
@media (max-height: 700px) {
  .kartu-soal { min-height: 68px; } .soal-maskot { width: 54px; height: 50px; }
  .np { height: 50px; font-size: 26px; } .gelembung { height: 68px; font-size: 34px; }
  .btn-lompat { height: 62px; } .gb-ok { min-height: 52px; } .btn-bs { height: 74px; }
  .rod { height: 66px; } .kr-sumber-balok .benda.rod, .kr-balok .rod { height: 70px; }
}
@media (max-width: 370px) {
  .sel { width: 22px; height: 22px; } .balon-wadah .sel { width: 26px; height: 30px; }
  .mode-kartu { min-height: 120px; padding: 10px; }
}
@media (min-width: 700px) {
  .layar { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .05s !important; }
  .awan { animation: none; }
}
/* ---------- 12. MASKOT OKI ---------- */
.oki { width: 100%; height: 100%; overflow: visible; display: block; }
.oki-tubuh { transform-origin: 60px 100px; }
.oki-kaki { transform-box: fill-box; transform-origin: top center; animation: kaki 1.6s ease-in-out infinite; }
.oki-kaki.k1, .oki-kaki.k3, .oki-kaki.k5 { animation-delay: -.8s; }
@keyframes kaki { 50% { transform: rotate(8deg); } }
.oki-kelopak { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: kedip 4.2s infinite; }
@keyframes kedip { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
.oki .mulut { display: none; }
.oki[data-mood="biasa"] .m-senyum, .oki[data-mood="senang"] .m-lebar,
.oki[data-mood="sedih"] .m-sedih, .oki[data-mood="o"] .m-o { display: block; }
.oki[data-mood="sedih"] .oki-pupil { transform: translateY(3px); }
.oki[data-mood="o"] .oki-pupil { transform: translate(-2px, -2px); }
.oki-pupil { transition: transform .2s; }
.oki.lonjak .oki-tubuh { animation: lonjak .6s cubic-bezier(.3, 1.6, .5, 1); }
.oki.goyang .oki-tubuh { animation: geleng .5s ease-in-out; }
@keyframes lonjak { 0% { transform: translateY(0) scale(1, 1); } 20% { transform: translateY(2px) scale(1.12, .86); } 50% { transform: translateY(-22px) scale(.94, 1.08); } 80% { transform: translateY(0) scale(1.06, .95); } 100% { transform: none; } }
@keyframes geleng { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.bar-atas #btn-besar { font-size: 17px; font-weight: 900; }

/* ---------- 13. HUD ANGKA & PAPAN KETIK ---------- */
.hud-angka { display: flex; align-items: center; gap: 8px; flex: none; min-height: 30px; }
.meter { position: relative; flex: 1; height: 12px; margin: 0 14px 0 6px; background: rgba(255, 255, 255, .75); border-radius: 99px; }
.meter-isi { position: absolute; inset: 0; border-radius: 99px; background: linear-gradient(90deg, var(--kuning), #ffd866); transform-origin: left; transform: scaleX(0); transition: transform .3s; }
.meter-tanda { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.meter-tanda i { font-style: normal; font-size: 17px; color: #c9c2e8; text-shadow: 0 1px 0 #fff; line-height: 1; }
.meter-tanda[data-i="2"] i { font-size: 21px; }
.meter-tanda small { position: absolute; top: 15px; font-size: 10px; color: var(--teks-2); }
.meter-tanda.nyala i { color: var(--kuning-tua); animation: popBintang .5s; }
.chip-hud { display: inline-flex; align-items: baseline; gap: 3px; background: #fff; border-radius: 99px; padding: 3px 10px; font-size: 14px; box-shadow: 0 3px 0 rgba(23, 50, 77, .1); white-space: nowrap; }
.chip-hud b { font-size: 17px; } .chip-hud small { font-size: 11px; color: var(--teks-2); }
.chip-hud.rendah b { color: #e0435a; }

.papan { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 6px 6px; background: rgba(255, 255, 255, .55); border-radius: 22px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); touch-action: manipulation; }
.papan-baris { display: flex; justify-content: center; gap: 5px; }
.papan-baris.b1 { padding: 0 4.5%; } .papan-baris.b2 { padding: 0 7%; }
.tuts { position: relative; flex: 1 1 0; min-width: 0; max-width: 54px; height: 48px; border-radius: 12px; background: #fff; font-size: 21px; font-weight: 900; line-height: 1;
  box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--jw) 45%, #fff), 0 3px 0 rgba(23, 50, 77, .15); touch-action: manipulation; transition: background .12s, color .12s; }
.tuts.tonjol::after { content: ""; position: absolute; left: 50%; bottom: 9px; width: 12px; height: 3px; margin-left: -6px; border-radius: 3px; background: currentColor; opacity: .45; }
.tuts.spasi { flex: 0 1 62%; max-width: 360px; font-size: 15px; color: var(--teks-2); }
.tuts.tekan { animation: tekanTuts .16s; }
@keyframes tekanTuts { 50% { transform: translateY(3px) scale(.95); } }
.tuts.berikut { background: var(--jw); color: #fff; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), 0 0 0 3px #fff, 0 0 0 6px var(--jw); z-index: 2; animation: denyutTuts 1s ease-in-out infinite; }
.tuts.spasi.berikut { color: #fff; }
@keyframes denyutTuts { 50% { transform: scale(1.07); } }
.tuts.kilat-benar { background: var(--hijau) !important; color: #fff; }
.tuts.kilat-salah { background: var(--merah) !important; color: #fff; animation: goyangSalah .35s; }
.tuts.tunjuk { z-index: 3; animation: tunjuk .65s ease-in-out 2; background: var(--jw); color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--kuning); }
@keyframes tunjuk { 50% { transform: scale(1.28) translateY(-4px); } }
kbd { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .35em; margin: 0 1px; border-radius: 8px; background: #fff; font: 900 1em var(--font);
  box-shadow: inset 0 -4px 0 var(--jw, #c9d6e2), 0 2px 0 rgba(23, 50, 77, .15); vertical-align: middle; }
body.huruf-besar:not(.huruf-asli) .target-teks, body.huruf-besar:not(.huruf-asli) .tetes-teks { text-transform: uppercase; }

/* ---------- 14. TARGET DI KARTU ---------- */
.soal-teks { white-space: nowrap; }
.soal-teks[data-panjang="sedang"] { font-size: clamp(26px, 7.6vw, 40px); }
.soal-teks[data-panjang="panjang"] { font-size: clamp(21px, 5.6vw, 30px); white-space: normal; line-height: 1.25; }
.target-teks { display: inline; }
.h { display: inline-block; min-width: .42em; border-radius: 10px; transition: color .1s, background .1s; }
.h.ok { color: var(--hijau); }
.h.belum { color: var(--teks); opacity: .85; }
.h.kini { background: #fff1b8; color: var(--teks); box-shadow: inset 0 -5px 0 var(--kuning); animation: kini 1s ease-in-out infinite; }
@keyframes kini { 50% { transform: translateY(-3px); } }
.h.sp { color: #b6a9e6; font-size: .7em; vertical-align: middle; }
.h.sp.ok { color: #9ee0cc; }
.h.tutup { background: #ece6ff; color: #8f6bff; min-width: .9em; margin: 0 1px; text-transform: none; }
.h.tutup.kini { background: #fff1b8; color: var(--kuning-tua); }
.h.dibantu { background: #fff6d6; color: var(--kuning-tua); }
.h.intip { background: #ffe0e4 !important; color: #d6334c !important; }
.h.balik { animation: balik .35s; }
@keyframes balik { 0% { transform: rotateY(90deg); } 100% { transform: none; } }
.kartu-soal.melihat { background: #f1ecff; box-shadow: 0 0 0 4px #c9b8ff, var(--bayang); }
.soal-teks .siap { font-size: .6em; color: var(--teks-2); }

/* ---------- 15. MODE ---------- */
/* Jari Pintar */
.latih { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 0; }
.latih-gambar { display: flex; align-items: center; gap: 8px; min-height: 10px; }
.latih-gambar .emoji { font-size: 40px; line-height: 1; animation: masukSoal .35s; }
.latih-gambar small { font-size: 16px; background: #fff; padding: 4px 10px; border-radius: 99px; }
.latih-tangan { width: min(330px, 92%); flex: 0 1 auto; min-height: 0; }
.tangan { width: 100%; height: auto; max-height: 150px; display: block; overflow: visible; }
.tangan .jari { fill: #ffe2cc; stroke: #e8b48f; stroke-width: 2.5; transition: fill .15s; }
.tangan .jari.nyala { fill: var(--jw); stroke: #fff; stroke-width: 3; animation: jariNyala .9s ease-in-out infinite; transform-box: fill-box; }
@keyframes jariNyala { 50% { opacity: .65; } }
.tangan .telapak { fill: #ffe2cc; stroke: #e8b48f; stroke-width: 2.5; }
.latih-jari { margin: 0; font-size: 18px; text-align: center; background: rgba(255, 255, 255, .85); padding: 6px 14px; border-radius: 16px; }
.latih-rak { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 30px; max-height: 64px; overflow: hidden; }
.rak-kata { background: #fff; border-radius: 99px; padding: 3px 10px; font-size: 14px; color: var(--hijau-tua); animation: popBintang .35s; box-shadow: 0 2px 0 rgba(23, 50, 77, .1); }
body.huruf-besar .rak-kata { text-transform: uppercase; }

/* Hujan Kata */
.hujan-langit { position: relative; flex: 1; min-height: 0; height: 100%; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, #8fa7d6 0%, #b7c9f0 45%, #dbe6ff 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); }
.awan-kecil { position: absolute; width: 90px; height: 28px; background: #fff; border-radius: 30px; opacity: .9; top: -6px; }
.awan-kecil::before { content: ""; position: absolute; width: 40px; height: 40px; left: 18px; top: -16px; background: #fff; border-radius: 50%; }
.awan-kecil.k1 { left: 4%; } .awan-kecil.k2 { left: 40%; transform: scale(1.2); } .awan-kecil.k3 { right: 4%; transform: scale(.9); }
.kebun { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; background: linear-gradient(180deg, #7fdcb0, #49b985); border-top: 4px solid #5ccf9f; }
.kebun-label { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #fff; opacity: .9; }
.bunga { position: absolute; bottom: 14px; font-size: 26px; transform: translateX(-50%); animation: tumbuh .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tumbuh { from { transform: translateX(-50%) scale(0); } }
.genangan { position: absolute; bottom: 30px; width: 60px; height: 14px; margin-left: -30px; border-radius: 50%; background: rgba(76, 157, 255, .6); animation: genangan 1.5s forwards; }
@keyframes genangan { to { opacity: 0; scale: 1.6; } }
.tetes { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 18px; background: #fff; font-size: 23px; font-weight: 900;
  box-shadow: 0 4px 0 #b9c6e6, 0 8px 16px rgba(23, 50, 77, .15); will-change: transform; white-space: nowrap; }
.tetes::before { content: "💧"; font-size: 15px; }
.tetes i { font-style: normal; font-size: 20px; }
.tetes .h.kini { animation: none; }
.tetes.sasaran { box-shadow: 0 0 0 4px var(--biru), 0 4px 0 #b9c6e6, 0 8px 16px rgba(23, 50, 77, .2); z-index: 2; }
.tetes.hampir { background: #fff0f0; }
.tetes.pecah { animation: pecah .38s forwards; pointer-events: none; }
@keyframes pecah { 40% { scale: 1.3; } 100% { scale: 1.6; opacity: 0; } }
.tetes.ciprat { animation: ciprat .45s forwards; }
@keyframes ciprat { 100% { scale: 1.6 .2; opacity: 0; } }
#layar-main[data-mode="hujan"] .tetes[data-panjang] { white-space: normal; }

/* Balap Kura-kura */
.balap { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 100%; }
.trek { position: relative; padding: 8px 8px; border-radius: var(--r); background: #5b6577; box-shadow: inset 0 0 0 4px #434b5a, 0 4px 0 rgba(23, 50, 77, .15); }
.lajur { position: relative; height: 78px; }
.lajur.lawan { border-bottom: 4px dashed rgba(255, 255, 255, .7); }
.garis-finis { position: absolute; right: 36px; top: 0; bottom: 0; width: 12px; background: repeating-conic-gradient(#fff 0 25%, #17324d 0 50%) 0 0 / 12px 12px; opacity: .9; }
.bendera { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.pembalap { position: absolute; top: 4px; left: 0; width: 74px; display: flex; flex-direction: column; align-items: center; transition: left .25s ease-out; }
.pembalap small { font-size: 11px; color: #fff; white-space: nowrap; background: rgba(0, 0, 0, .25); padding: 0 6px; border-radius: 99px; }
.kuro { font-size: 40px; line-height: 1.2; display: inline-block; transform: scaleX(-1); animation: jalanKuro 1.2s ease-in-out infinite; }
@keyframes jalanKuro { 50% { translate: 0 -3px; } }
.mobil { position: relative; width: 64px; height: 54px; display: block; }
.mobil-badan { position: absolute; left: 0; bottom: 0; font-size: 44px; line-height: 1; transform: scaleX(-1); }
.mobil-oki { position: absolute; left: 14px; top: -6px; width: 34px; height: 32px; }
.mobil.ngebut { animation: ngebut .45s; }
@keyframes ngebut { 30% { translate: 10px 0; } }
.mobil.ngebut::after { content: "💨"; position: absolute; left: -26px; bottom: 4px; font-size: 22px; animation: asap .45s forwards; }
@keyframes asap { to { opacity: 0; translate: -14px 0; } }
.mobil.selip { animation: selip .35s; }
@keyframes selip { 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
.balap-kabar { margin: 0; text-align: center; font-size: 17px; background: rgba(255, 255, 255, .88); border-radius: 16px; padding: 8px 12px; }
.balap-angka { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.balap-angka span { background: #fff; border-radius: 99px; padding: 3px 12px; font-size: 14px; }

/* Ingat Kata */
.ingat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; }
.ingat-papan { width: min(340px, 94%); background: #fff; border-radius: 26px; padding: 14px; text-align: center; box-shadow: var(--bayang); }
.ingat-ikon { font-size: 46px; display: block; animation: ayun 2.4s ease-in-out infinite; }
.ingat-papan p { margin: 6px 0 10px; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ingat-papan .emoji { font-size: 32px; }
.ingat-bar { height: 10px; border-radius: 99px; background: #ece6ff; overflow: hidden; }
.ingat-bar i { display: block; height: 100%; background: var(--ungu); transform-origin: left; transform: scaleX(0); }

/* cara main: gambar tangan */
.cara-jari { background: #fff; border-radius: 18px; padding: 8px 10px; margin: 0 0 14px; }
.cara-jari .tangan { max-height: 92px; }
.cara-jari small { display: block; font-size: 14px; color: var(--teks-2); line-height: 1.6; }
.cara-jari kbd { font-size: 13px; }

/* akhir: huruf yang perlu dilatih */
.akhir-latih p { margin: 12px 0 6px; font-size: 15px; color: var(--teks-2); }
.akhir-latih div { display: flex; flex-wrap: wrap; gap: 6px 4px; justify-content: center; align-items: center; }
.akhir-latih kbd { font-size: 22px; }
.akhir-latih small { font-size: 12px; color: var(--teks-2); margin: 0 8px 0 2px; }

/* layar lebar: papan ketik lebih besar */
@media (min-width: 700px) {
  #layar-main.aktif { max-width: 760px; }
  .tuts { height: 56px; max-width: 62px; font-size: 24px; }
  .tetes { font-size: 26px; }
}
@media (max-height: 760px) {
  .tuts { height: 42px; font-size: 19px; }
  .papan { gap: 5px; padding: 6px 4px 4px; }
  .kartu-soal { min-height: 66px; } .soal-maskot { width: 52px; height: 48px; }
  .tangan { max-height: 110px; }
  .lajur { height: 66px; } .kuro { font-size: 34px; } .mobil-badan { font-size: 38px; }
}
@media (max-width: 370px) {
  .tuts { font-size: 18px; border-radius: 10px; } .papan-baris { gap: 4px; }
  .mode-kartu { min-height: 120px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tuts.berikut, .h.kini, .kuro, .oki-kaki { animation: none !important; }
}

/* ---- tangan animasi di atas papan ketik (tangan.js, mode Jari Pintar) ---- */
.papan { position: relative; }
.papan.pakai-tangan { margin-bottom: 0; }
.tangan-anim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 5; opacity: .5; }
.tangan-anim line, .tangan-anim ellipse { fill: none; }
.ta-garis line { stroke: #c98a62; }
.ta-garis ellipse { fill: #c98a62; stroke: #c98a62; stroke-width: 5; }
.ta-kulit line { stroke: #ffd9bf; }
.ta-kulit ellipse { fill: #ffd9bf; }
.ta-garis line.nyala { stroke: #fff; }
.ta-kuku { fill: #fff3ea; }
.ta-kuku.nyala { filter: drop-shadow(0 0 3px rgba(255,255,255,.9)); }
.tuts.tekan-hantu { animation: tekanHantu .24s; }
@keyframes tekanHantu { 50% { transform: translateY(3px) scale(.93); filter: brightness(.9); } }
@media (prefers-reduced-motion: reduce) { .tuts.tekan-hantu { animation: none; } }

/* ---------- 16. PAPAN 10 JARI (5 baris, Shift, zona warna jari) & TANGAN ---------- */
.papan { position: relative; overflow: hidden; --kw: min(58px, calc((min(100vw, 760px) - 70px) / 12)); gap: 5px; }
.papan-baris { gap: 4px; }
.papan-baris.b0 { padding: 0; }
.papan-baris.b1 { padding: 0 0 0 calc(var(--kw) * .5); }
.papan-baris.b2 { padding: 0 0 0 calc(var(--kw) * .8); }
.papan-baris.b3 { padding: 0; }
.tuts { flex: 0 0 var(--kw); max-width: none; height: 44px; font-size: clamp(15px, 4.6vw, 22px);
  background: color-mix(in srgb, var(--jw) 13%, #fff); box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--jw) 55%, #fff), 0 3px 0 rgba(23, 50, 77, .15); }
.tuts.angka { height: 38px; font-size: clamp(13px, 4vw, 19px); }
.tuts.shift { flex-basis: calc(var(--kw) * 1.25); font-size: 18px; color: var(--teks-2); }
.tuts.shift.nyala { background: var(--jw); color: #fff; }
.tuts.spasi { flex: 0 0 calc(var(--kw) * 6); max-width: none; }
.tuts.tonjol::after { bottom: 7px; }
@media (min-width: 700px) { .tuts { height: 52px; } .tuts.angka { height: 44px; } }
@media (max-height: 760px) { .tuts { height: 38px; } .tuts.angka { height: 32px; } .papan { gap: 4px; } }

/* tangan transparan di atas papan */
.tangan-lapis { position: absolute; inset: 0; pointer-events: none; z-index: 4; display: none; }
body.tangan-tampil .tangan-lapis { display: block; }
.telapak-lapis { position: absolute; border-radius: 45% 45% 30% 30%; background: rgba(255, 217, 191, .5); border: 2px solid rgba(201, 138, 98, .45); }
.jr { position: absolute; border-radius: 999px; background: rgba(255, 217, 191, .5); border: 2px solid rgba(201, 138, 98, .5);
  transition: transform .2s cubic-bezier(.3, 1.3, .5, 1), background .15s; transform-origin: 50% 20%; }
.jr i { position: absolute; left: 18%; right: 18%; top: 8%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--jw) 55%, #fff); opacity: .8; }
.jr.jempol { border-radius: 999px 999px 40% 40%; }
.jr.aktif { background: color-mix(in srgb, var(--jw) 45%, rgba(255, 255, 255, .55)); border: 3px solid var(--jw); z-index: 2; box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
.jr.aktif i { background: #fff; opacity: 1; }
.jr.ketuk { animation: ketukJari .2s; }
@keyframes ketukJari { 50% { scale: .86; } }
.jr.ingatkan { animation: ingatkan .5s 2; }
@keyframes ingatkan { 50% { scale: 1.15; } }
body.tangan-tampil .latih-tangan { display: none; }
body.tangan-tampil #posisi-tangan { display: none; }
#btn-tangan.mati { opacity: .55; }
#layar-main[data-mode="posisi"] .hud-waktu, #layar-main[data-mode="posisi"] .hud-poin { visibility: hidden; }
#layar-main[data-mode="posisi"] .hud-angka { display: none; }

/* jalur 10 jari di menu */
.catatan.kiri { text-align: left; margin: -2px 4px 8px; }
.jalur { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jl-node { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; min-height: 104px; text-align: left;
  background: #fff; border-radius: 20px; box-shadow: 0 5px 0 color-mix(in srgb, var(--w) 70%, #000 0%), 0 0 0 3px color-mix(in srgb, var(--w) 25%, #fff); }
.jl-node:active { transform: translateY(3px); }
.jl-node b { font-size: 16px; line-height: 1.15; }
.jl-node small { font-size: 12px; color: var(--teks-2); line-height: 1.2; flex: 1; }
.jl-ikon { width: 40px; height: 40px; border-radius: 12px; background: var(--w); display: grid; place-items: center; font-size: 22px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); margin-bottom: 2px; }
.jl-node.posisi { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 10px; }
.jl-node.posisi small { flex: none; margin-left: auto; }
.jl-node.terkunci { filter: grayscale(1); opacity: .6; }
.jl-node.berikut::after { content: "Main!"; position: absolute; top: -10px; right: 12px; background: var(--kuning); color: #5a3a00; border-radius: 99px; padding: 2px 10px; font-size: 13px; box-shadow: 0 3px 0 var(--kuning-tua); animation: lompatKecil 1s ease-in-out infinite; }
@media (min-width: 700px) { .jalur { grid-template-columns: 1fr 1fr 1fr; } }

/* posisi jari */
.posisi { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; text-align: center; }
.posisi-judul { margin: 0; font-size: 20px; }
.posisi-teks { margin: 0; font-size: 18px; background: #fff; border-radius: 16px; padding: 8px 14px; box-shadow: 0 3px 0 rgba(23, 50, 77, .1); }
.posisi-titik { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.posisi-titik i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .8); }
.posisi-titik i.isi { background: var(--hijau); }

/* akhir: ketepatan tiap jari */
.akhir-jari p { margin: 14px 0 2px; font-size: 15px; color: var(--teks-2); }
.akhir-jari .tangan { max-width: 320px; margin: 0 auto; max-height: none; }
.akhir-jari .jari { stroke: #c98a62; stroke-width: 2; }
.jari-label { font: 900 13px var(--font); fill: var(--teks); }
.jari-catatan { display: block; font-size: 14px; margin-top: 2px; }
.akhir-lokal { margin: 14px 0 0; background: #eef9f4; border-radius: 14px; padding: 10px; font-size: 15px; }
.jari-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.jari-chip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border-radius: 99px; padding: 3px 10px 3px 6px; font-size: 13px; box-shadow: 0 2px 0 rgba(23, 50, 77, .08); }
.jari-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--jw); }
.kartu-soal .gelembung-kata.kecil { white-space: normal; max-width: calc(100% - 60px); }
