/* Cerdas Cermat EduGame — dipakai halaman game, lomba, layar proyektor. */

  @import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');
  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  :root {
    --biru: #1E63E9; --biru-tua: #0F3FA8; --langit: #E8F1FF; --kartu: #fff; --teks: #1d2a44; --redup: #6a7896;
    --oke: #22A55B; --bahaya: #E5484D; --emas: #F5B400;
    --p0: #2563EB; --p1: #E5484D; --p2: #16A34A; --p3: #F59E0B;
  }
  html, body { height: 100%; }
  body {
    font-family: 'Nunito', sans-serif; color: var(--teks); min-height: 100vh; overflow-x: hidden;
    background: #2A1B7A;
    user-select: none; -webkit-user-select: none;
  }
  /* ===== Latar panggung kuis: sorot cahaya berputar, bintang berkelip, ikon dunia melayang ===== */
  .latar { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    background: radial-gradient(ellipse 120% 70% at 50% 110%, #FF7AB6 0%, rgba(255,122,182,0) 55%),
                radial-gradient(ellipse 90% 60% at 50% -10%, #4FC3F7 0%, rgba(79,195,247,0) 60%),
                linear-gradient(170deg, #3B1FA8 0%, #5B2BD8 45%, #1E63E9 100%); }
  .latar .sorot { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax;
    background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.09) 0deg 9deg, rgba(255,255,255,0) 9deg 24deg);
    animation: putar 60s linear infinite; }
  @keyframes putar { to { transform: rotate(360deg); } }
  .latar .bintang { position: absolute; inset: -20px;
    background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 90px 80px, #FFE082, transparent),
      radial-gradient(2px 2px at 160px 40px, #fff, transparent), radial-gradient(1.5px 1.5px at 60px 140px, #B3E5FC, transparent),
      radial-gradient(2px 2px at 130px 160px, #fff, transparent);
    background-size: 200px 200px; animation: kelip 3.5s ease-in-out infinite alternate; }
  .latar .bintang.b2 { background-position: 100px 100px; animation-delay: -1.7s; opacity: .7; }
  @keyframes kelip { from { opacity: .25; } to { opacity: 1; } }
  .latar .ikon-wadah { position: absolute; inset: 0; }
  .latar .ikon-dunia { position: absolute; bottom: -60px; font-size: 2rem; opacity: .0; animation: melayangNaik linear infinite; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
  @keyframes melayangNaik {
    0% { transform: translateY(0) rotate(-8deg); opacity: 0; } 10% { opacity: .55; }
    50% { transform: translateY(-55vh) translateX(18px) rotate(8deg); } 90% { opacity: .55; }
    100% { transform: translateY(-112vh) rotate(-8deg); opacity: 0; } }
  #konfeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
  .tombol-suara { position: fixed; top: 18px; left: 14px; z-index: 55; display: flex; gap: 8px; }
  .tombol-suara button { width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); color: #fff; font-size: 1.15rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
  .tombol-suara button.mati { opacity: .5; }
  @media (prefers-reduced-motion: reduce) { .latar .sorot, .latar .bintang, .latar .ikon-dunia { animation: none; } .latar .ikon-dunia { display: none; } }
  h1, h2, h3, .judul { font-family: 'Fredoka One', 'Nunito', sans-serif; font-weight: 400; }
  /* Posisi sama dengan tombol 🏠 versi platform (top:16, right:70) supaya kiri atas bebas untuk tombol suara. */
  .home-btn { position: fixed; top: 16px; right: 70px; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; text-decoration: none; z-index: 50; }
  /* Ruang atas untuk tombol 🏠 yang ditata ulang platform (44px, top:16px). */
  .wrap { max-width: 560px; margin: 0 auto; padding: 72px 16px 32px; min-height: 100vh; }
  .layar { display: none; }
  .layar.aktif { display: block; animation: muncul .3s ease; }
  @keyframes muncul { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  .btn { font-family: inherit; font-weight: 900; border: none; border-radius: 14px; padding: 13px 18px; cursor: pointer; font-size: 1rem; transition: transform .1s, opacity .15s; width: 100%; }
  .btn:active { transform: scale(.97); }
  .btn:disabled { opacity: .45; cursor: not-allowed; }
  .btn-utama { background: linear-gradient(135deg, var(--biru), #3B82F6); color: #fff; box-shadow: 0 4px 0 var(--biru-tua); }
  .btn-kedua { background: #fff; color: var(--biru); border: 2px solid #BFD4FB; }
  .btn-emas { background: linear-gradient(135deg, #F5B400, #FF9800); color: #fff; box-shadow: 0 4px 0 #B26A00; }
  .btn-kecil { width: auto; padding: 8px 14px; font-size: .9rem; }
  .kartu { background: var(--kartu); border-radius: 20px; padding: 18px; box-shadow: 0 6px 20px rgba(30,60,120,.08); margin-bottom: 14px; }
  .kartu h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--biru-tua); }
  .hero { text-align: center; margin-bottom: 18px; }
  .hero .ikon { font-size: 3rem; }
  .hero h1 { font-size: 2rem; color: #fff; line-height: 1.1; text-shadow: 0 3px 0 #2A1B7A, 0 6px 18px rgba(0,0,0,.35); }
  .hero p { color: #E3DBFF; font-weight: 800; margin-top: 6px; }
  .hero .ikon { animation: goyangIkon 2.6s ease-in-out infinite; display: inline-block; }
  @keyframes goyangIkon { 0%,100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }
  .baris { display: flex; gap: 10px; align-items: center; }
  .input-kode { flex: 1; font-family: 'Fredoka One', sans-serif; font-size: 1.6rem; letter-spacing: .35em; text-transform: uppercase; text-align: center; padding: 10px; border: 2px solid #BFD4FB; border-radius: 14px; outline: none; min-width: 0; }
  .input-kode:focus { border-color: var(--biru); }
  .toggle { display: flex; align-items: center; gap: 10px; font-weight: 800; margin: 4px 0 12px; cursor: pointer; }
  .toggle input { width: 22px; height: 22px; accent-color: var(--biru); }
  .catatan { color: var(--redup); font-size: .85rem; font-weight: 600; }
  .layar > .catatan, .stack > .catatan { color: #E3DBFF; }
  .daftar-publik { display: flex; flex-direction: column; gap: 8px; }
  .item-publik { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--langit); font-weight: 800; }
  .item-publik small { display: block; color: var(--redup); font-weight: 700; }
  .kosong { text-align: center; color: var(--redup); padding: 10px; font-weight: 700; }

  /* ===== Lobi ===== */
  .kode-besar { text-align: center; }
  .kode-besar .label { color: var(--redup); font-weight: 800; font-size: .85rem; }
  .kode-besar .kode { font-family: 'Fredoka One', sans-serif; font-size: 3rem; letter-spacing: .25em; color: var(--biru-tua); margin-left: .25em; }
  .kursi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .kursi-item { border-radius: 16px; padding: 12px; color: #fff; font-weight: 900; min-height: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
  .kursi-item.kosong-k { background: #EEF2F9 !important; color: #A3AEC6; border: 2px dashed #C9D3E6; }
  .kursi-item small { font-weight: 700; opacity: .9; }
  .lencana { position: absolute; top: 6px; right: 8px; font-size: .75rem; background: rgba(255,255,255,.25); padding: 1px 8px; border-radius: 99px; }
  label.lbl { display: block; font-weight: 800; margin: 10px 0 6px; }
  select { width: 100%; font-family: inherit; font-weight: 800; font-size: 1rem; padding: 10px 12px; border-radius: 12px; border: 2px solid #BFD4FB; background: #fff; color: var(--teks); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { font-family: inherit; font-weight: 900; padding: 8px 16px; border-radius: 99px; border: 2px solid #BFD4FB; background: #fff; color: var(--biru); cursor: pointer; font-size: 1rem; }
  .chip.pilih { background: var(--biru); color: #fff; border-color: var(--biru); }
  .chip:disabled { cursor: default; }

  /* ===== Main ===== */
  .papan { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; margin-bottom: 10px; }
  .skor { border-radius: 14px; padding: 6px 4px; color: #fff; text-align: center; position: relative; transition: transform .2s, opacity .2s; border: 2px solid rgba(255,255,255,.55); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
  .skor .nm { font-weight: 800; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .skor .nl { font-family: 'Fredoka One', sans-serif; font-size: 1.35rem; line-height: 1.1; }
  .skor.negatif .nl { color: #FFE1E1; }
  .skor.terkunci { opacity: .45; }
  .skor.menjawab { transform: scale(1.07); box-shadow: 0 0 0 3px #fff, 0 0 0 6px currentColor; }
  .skor.off::after { content: '📵'; position: absolute; top: -6px; right: -4px; font-size: .9rem; }
  .skor .melayang { position: absolute; left: 50%; top: -4px; transform: translateX(-50%); font-family: 'Fredoka One', sans-serif; font-size: 1.3rem; animation: naik 1.1s ease forwards; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
  @keyframes naik { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -38px); } }
  .info-soal { display: flex; justify-content: space-between; align-items: center; font-weight: 900; color: #fff; margin-bottom: 6px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
  .info-soal .wil { background: #fff; padding: 3px 10px; border-radius: 99px; font-size: .8rem; color: var(--biru); }
  .sudden { color: #FFD54F; animation: denyut 1s ease infinite; display: inline-block; }
  .bar { height: 10px; background: rgba(255,255,255,.25); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
  .bar > div { height: 100%; width: 100%; background: linear-gradient(90deg, var(--oke), #7BD389); border-radius: 99px; transform-origin: left; }
  .bar.genting > div { background: linear-gradient(90deg, var(--bahaya), #FF8A8A); }
  .panggung { background: #fff; border-radius: 22px; padding: 18px 10px; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 6px 20px rgba(30,60,120,.08); margin-bottom: 14px; text-align: center; }
  .hitung { font-family: 'Fredoka One', sans-serif; font-size: 5.5rem; color: var(--biru); animation: denyut 1s ease infinite; text-shadow: 0 5px 0 #BFD4FB; }
  .hitung.h2 { color: #F59E0B; text-shadow: 0 5px 0 #FDE2B0; } .hitung.h1 { color: var(--bahaya); text-shadow: 0 5px 0 #F9C9CB; }
  @keyframes denyut { 0% { transform: scale(1.3); opacity: .3; } 30% { transform: scale(1); opacity: 1; } }
  .kata { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
  .baris-kata { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
  /* --u = lebar ubin, dihitung JS dari kata terpanjang supaya satu kata selalu satu baris. */
  .ubin { width: var(--u, 44px); height: calc(var(--u, 44px) * 1.18); border-radius: 10px; background: linear-gradient(#FFD54F, #FFB300); box-shadow: 0 4px 0 #C68400; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka One', sans-serif; font-size: calc(var(--u, 44px) * .58); color: #5A3B00; border: none; padding: 0; }
  button.ubin { cursor: pointer; }
  button.ubin:active { transform: translateY(2px); box-shadow: 0 2px 0 #C68400; }
  .ubin.dipakai { visibility: hidden; }
  .slot { width: var(--u, 44px); height: calc(var(--u, 44px) * 1.18); border-radius: 10px; border: 2px dashed #9DB5E6; background: var(--langit); display: flex; align-items: center; justify-content: center; font-family: 'Fredoka One', sans-serif; font-size: calc(var(--u, 44px) * .58); color: var(--biru-tua); cursor: pointer; }
  .slot.isi { border-style: solid; border-color: var(--biru); background: #fff; }
  .panggung.salah { animation: goyang .4s; }
  @keyframes goyang { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
  .pesan { font-weight: 900; font-size: 1.05rem; }
  .jawaban-besar { font-family: 'Fredoka One', sans-serif; font-size: 2rem; color: var(--oke); letter-spacing: .04em; }
  .jawaban-besar.tak { color: var(--redup); }
  .bendera { max-width: 70%; max-height: 120px; border-radius: 8px; box-shadow: 0 3px 12px rgba(0,0,0,.18); border: 1px solid #E3E8F2; animation: muncul .4s ease; }
  .info-negara { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; text-align: left; }
  .info-negara div { background: var(--langit); border-radius: 10px; padding: 6px 9px; font-weight: 800; font-size: .88rem; line-height: 1.25; }
  .info-negara small { display: block; color: var(--redup); font-weight: 700; font-size: .72rem; }
  .fakta { background: #FFF6DB; border-radius: 12px; padding: 8px 10px; font-weight: 700; font-size: .88rem; color: #6A4B00; width: 100%; text-align: left; line-height: 1.35; }
  .tombol-tahu { width: 100%; height: 128px; border-radius: 28px; border: none; font-family: 'Fredoka One', sans-serif; font-size: 2.6rem; color: #fff; background: radial-gradient(circle at 30% 25%, #FF7A7A, #E5484D 60%, #B4232A); box-shadow: 0 8px 0 #8E1A20, 0 12px 24px rgba(229,72,77,.35); cursor: pointer; transition: transform .08s; }
  .tombol-tahu:not(:disabled) { animation: tahuDenyut 1.1s ease-in-out infinite; }
  @keyframes tahuDenyut { 0%,100% { box-shadow: 0 8px 0 #8E1A20, 0 0 0 0 rgba(255,213,79,.0); } 50% { box-shadow: 0 8px 0 #8E1A20, 0 0 0 10px rgba(255,213,79,.45); } }
  .tombol-tahu:active { transform: translateY(5px); box-shadow: 0 3px 0 #8E1A20; animation: none; }
  .tombol-tahu:disabled { background: rgba(255,255,255,.28); box-shadow: 0 8px 0 rgba(0,0,0,.18); color: #fff; cursor: not-allowed; font-size: 1.4rem; }
  .aksi-jawab { display: flex; gap: 10px; }

  /* ===== Hasil ===== */
  .podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 10px 0 18px; }
  .tiang { flex: 1; max-width: 120px; text-align: center; }
  .tiang .nm { font-weight: 900; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tiang .sk { font-family: 'Fredoka One', sans-serif; font-size: 1.2rem; }
  .tiang .blok { border-radius: 14px 14px 6px 6px; color: #fff; font-family: 'Fredoka One', sans-serif; font-size: 2rem; display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; margin-top: 6px; }
  .mahkota { font-size: 2rem; animation: denyut 1.6s ease infinite; }
  .peringkat-lain { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
  .peringkat-lain div { display: flex; justify-content: space-between; background: var(--langit); padding: 8px 12px; border-radius: 12px; font-weight: 800; }
  .kunci-ikon { font-size: 3.5rem; text-align: center; }
  .stack { display: flex; flex-direction: column; gap: 10px; }
  .spanduk { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1d2a44; color: #fff; padding: 8px 16px; border-radius: 99px; font-weight: 800; font-size: .85rem; z-index: 60; display: none; max-width: 90vw; text-align: center; }
  .spanduk.tampil { display: block; }
  .aturan { padding-left: 20px; color: var(--redup); font-weight: 700; line-height: 1.6; font-size: .9rem; }

  /* ===================== Cerdas Cermat: jenis soal ===================== */
  .teks-soal { font-weight: 800; font-size: clamp(1.05rem, 4.6vw, 1.35rem); line-height: 1.4; color: var(--teks); white-space: pre-line; }
  .teks-soal.panjang { font-size: clamp(.95rem, 4vw, 1.1rem); text-align: left; }
  .label-jenis { display: inline-block; background: var(--langit); color: var(--biru); font-weight: 900; font-size: .72rem; padding: 3px 10px; border-radius: 99px; letter-spacing: .03em; }
  .opsi { display: grid; gap: 8px; width: 100%; }
  .opsi button, .opsi .op { font-family: inherit; text-align: left; font-weight: 800; font-size: 1rem; padding: 11px 12px 11px 44px; border-radius: 14px; border: 2px solid #D7E2F7; background: #fff; color: var(--teks); position: relative; line-height: 1.3; }
  .opsi .huruf { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--langit); color: var(--biru); display: flex; align-items: center; justify-content: center; font-family: 'Fredoka One', sans-serif; font-size: .9rem; }
  .opsi button { cursor: pointer; border-color: #9DB5E6; box-shadow: 0 3px 0 #C9D6F0; }
  .opsi button:active { transform: translateY(2px); box-shadow: none; }
  .opsi .benar { border-color: var(--oke) !important; background: #E8F8EE !important; }
  .opsi .benar .huruf { background: var(--oke); color: #fff; }
  .opsi .salah { border-color: var(--bahaya) !important; background: #FDECEC !important; opacity: .85; }
  .tf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .tf button { font-family: 'Fredoka One', sans-serif; font-size: 1.4rem; padding: 18px 8px; border-radius: 18px; border: none; color: #fff; cursor: pointer; }
  .tf .b { background: linear-gradient(135deg, #22A55B, #3BC97A); box-shadow: 0 5px 0 #157A40; }
  .tf .s { background: linear-gradient(135deg, #E5484D, #FF6B6B); box-shadow: 0 5px 0 #A3252A; }
  .tf button:active { transform: translateY(3px); box-shadow: none; }
  .layar-angka { width: 100%; min-height: 54px; border-radius: 14px; border: 2px solid var(--biru); background: #fff; font-family: 'Fredoka One', sans-serif; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; color: var(--biru-tua); letter-spacing: .04em; padding: 4px 10px; word-break: break-all; }
  .keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; width: 100%; }
  .keypad button { font-family: 'Fredoka One', sans-serif; font-size: 1.35rem; padding: 12px 0; border-radius: 12px; border: none; background: #EEF3FC; color: var(--biru-tua); box-shadow: 0 3px 0 #C9D6F0; cursor: pointer; }
  .keypad button:active { transform: translateY(2px); box-shadow: none; }
  .keypad .ok { background: linear-gradient(135deg, #22A55B, #3BC97A); color: #fff; box-shadow: 0 3px 0 #157A40; grid-row: span 2; }
  .keypad .hapus { background: #FDECEC; color: var(--bahaya); }
  .isian { width: 100%; font-family: inherit; font-weight: 800; font-size: 1.2rem; padding: 12px; border-radius: 14px; border: 2px solid var(--biru); outline: none; text-align: center; }
  .jawaban-teks { font-family: 'Fredoka One', sans-serif; font-size: 1.5rem; color: var(--oke); line-height: 1.25; }
  .jawaban-teks.tak { color: var(--redup); }
  .penonton-pita { background: rgba(255,255,255,.18); color: #fff; font-weight: 900; text-align: center; border-radius: 99px; padding: 5px 12px; margin-bottom: 8px; font-size: .85rem; }
  .lomba-pita { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #fff; font-weight: 900; margin-bottom: 8px; font-size: .9rem; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
  .lomba-pita .chip-l { background: #FFD54F; color: #5A3B00; border-radius: 99px; padding: 3px 10px; text-shadow: none; white-space: nowrap; }

  /* ===================== pengaturan & pemilih sumber ===================== */
  .sumber-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
  .sumber-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--langit); border-radius: 12px; padding: 8px 10px; font-weight: 800; font-size: .9rem; }
  .sumber-item button { border: none; background: #fff; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-weight: 900; color: var(--bahaya); flex: none; }
  .baris2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .modal-latar { position: fixed; inset: 0; background: rgba(20,14,60,.6); z-index: 80; display: none; align-items: flex-end; justify-content: center; padding: 12px; }
  .modal-latar.buka { display: flex; }
  .modal { background: #fff; border-radius: 22px; padding: 18px; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; animation: muncul .25s ease; }
  .modal h3 { color: var(--biru-tua); margin-bottom: 10px; font-size: 1.2rem; }
  .tab-sumber { display: flex; gap: 6px; margin-bottom: 10px; }
  .tab-sumber button { flex: 1; font-family: inherit; font-weight: 900; padding: 9px; border-radius: 12px; border: 2px solid #BFD4FB; background: #fff; color: var(--biru); cursor: pointer; }
  .tab-sumber button.pilih { background: var(--biru); color: #fff; border-color: var(--biru); }
  input.cari { width: 100%; font-family: inherit; font-weight: 700; font-size: 1rem; padding: 10px 12px; border-radius: 12px; border: 2px solid #BFD4FB; margin-bottom: 8px; }
  .daftar-pilih { display: flex; flex-direction: column; gap: 6px; max-height: 42vh; overflow: auto; margin-bottom: 10px; }
  .daftar-pilih button { text-align: left; font-family: inherit; font-weight: 800; padding: 9px 12px; border-radius: 12px; border: 2px solid #E3EAF7; background: #fff; cursor: pointer; color: var(--teks); display: flex; justify-content: space-between; gap: 8px; }
  .daftar-pilih button small { color: var(--redup); font-weight: 700; white-space: nowrap; }
  .daftar-pilih button.pilih { border-color: var(--biru); background: var(--langit); }

  /* ===================== lomba ===================== */
  .angka-besar { font-family: 'Fredoka One', sans-serif; font-size: 2.6rem; color: var(--biru-tua); text-align: center; line-height: 1; }
  .status-lomba { text-align: center; }
  .status-lomba .ikon-b { font-size: 3.4rem; }
  .status-lomba h2 { color: var(--biru-tua); margin: 6px 0; }
  .lolos-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
  .lolos-list span { background: #FFF6DB; color: #6A4B00; border-radius: 99px; padding: 4px 10px; font-weight: 800; font-size: .85rem; animation: muncul .4s ease; }
  .progres { height: 12px; background: #E3EAF7; border-radius: 99px; overflow: hidden; margin: 8px 0; }
  .progres > div { height: 100%; background: linear-gradient(90deg, #F5B400, #FF9800); border-radius: 99px; transition: width .4s; }
  .anggota-isi { display: grid; gap: 6px; }
  .anggota-isi input, .regu-isi { width: 100%; font-family: inherit; font-weight: 700; font-size: 1rem; padding: 10px 12px; border-radius: 12px; border: 2px solid #BFD4FB; }

  /* ===================== layar proyektor ===================== */
  .grid-ruang { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
  .kartu-ruang { background: var(--langit); border-radius: 14px; padding: 10px 12px; border: 2px solid transparent; animation: muncul .3s ease; }
  .kartu-ruang.selesai { background: #FFF6DB; border-color: #F5B400; }
  .kr-judul { font-weight: 900; color: var(--biru-tua); margin-bottom: 4px; font-size: .9rem; }
  .kr-p { display: flex; justify-content: space-between; font-weight: 800; font-size: .88rem; gap: 6px; }
  .kr-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kr-juara { font-family: 'Fredoka One', sans-serif; font-size: 1.15rem; color: #6A4B00; }
  body.proyektor .wrap { max-width: 1280px; padding-top: 30px; }
  body.proyektor .home-btn { display: none; }
  body.proyektor .hero h1 { font-size: 2.8rem; }
  body.proyektor .hero p { font-size: 1.3rem; }
  body.proyektor .teks-soal { font-size: 2.3rem; }
  body.proyektor .opsi button, body.proyektor .opsi .op { font-size: 1.6rem; padding: 16px 16px 16px 64px; }
  body.proyektor .opsi .huruf { width: 40px; height: 40px; font-size: 1.3rem; }
  body.proyektor .skor .nm { font-size: 1.2rem; } body.proyektor .skor .nl { font-size: 2.4rem; }
  body.proyektor .panggung { min-height: 52vh; padding: 28px; }
  body.proyektor .pesan { font-size: 1.8rem; } body.proyektor .jawaban-teks, body.proyektor .jawaban-besar { font-size: 3rem; }
  body.proyektor .info-soal { font-size: 1.3rem; } body.proyektor .bar { height: 18px; }
  body.proyektor .label-jenis { font-size: 1rem; }
  body.proyektor .bendera { max-height: 220px; }
  body.proyektor .info-negara div { font-size: 1.2rem; }
  body.proyektor .grid-ruang { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
  body.proyektor .kr-judul { font-size: 1.25rem; } body.proyektor .kr-p { font-size: 1.2rem; } body.proyektor .kr-juara { font-size: 1.6rem; }
  body.proyektor .kartu > p, body.proyektor .lolos-list span { font-size: 1.25rem; }

  .kotak-galat { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #FDECEC; color: #9B1C1C; font-weight: 800; font-size: .92rem; line-height: 1.4; }

  .petunjuk { background: #FFF6DB; color: #6A4B00; border-radius: 99px; padding: 5px 14px; font-weight: 900; font-size: .95rem; }
  .gambar-info { font-size: 5rem; line-height: 1; animation: muncul .4s ease; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
  body.proyektor .gambar-info { font-size: 9rem; } body.proyektor .petunjuk { font-size: 1.6rem; }

  .pita-host { display: flex; justify-content: flex-end; margin-bottom: 6px; }
  .pita-host button { font-family: inherit; font-weight: 900; font-size: .85rem; border: none; border-radius: 99px; padding: 6px 14px; background: rgba(255,255,255,.92); color: var(--bahaya); cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
  .pita-host button:active { transform: translateY(1px); }

  .foto-info { margin: 0; display: flex; flex-direction: column; align-items: center; animation: muncul .4s ease; }
  .foto-info img { max-width: 70%; max-height: 150px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
  .foto-info figcaption { font-size: .68rem; color: var(--redup); margin-top: 3px; }
  body.proyektor .foto-info img { max-height: 300px; }

  /* ===== Level Mudah/Sedang: gambar soal, daftar petunjuk, kotak huruf, keyboard A–Z ===== */
  .gambar-soal.bendera { max-height: 140px; }
  .gambar-soal.gambar-info { font-size: 6rem; }
  .foto-info.gambar-soal img { max-height: 190px; max-width: 85%; }
  .daftar-petunjuk { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; text-align: left; }
  .daftar-petunjuk div { background: var(--langit); border-radius: 10px; padding: 6px 9px; font-weight: 800; font-size: .9rem; line-height: 1.3; }
  .daftar-petunjuk div:nth-last-child(-n+2):nth-child(odd):last-child, .daftar-petunjuk div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .daftar-petunjuk small { display: block; color: var(--redup); font-weight: 700; font-size: .72rem; }
  .slot.awal { background: #FFF6DB; border-color: #F5B400; color: #8A5A00; }
  .slot.kursor { border-color: var(--oke); border-style: solid; box-shadow: 0 0 0 3px rgba(34,165,91,.2); animation: kedip 1s steps(2) infinite; }
  @keyframes kedip { 50% { box-shadow: 0 0 0 3px rgba(34,165,91,0); } }
  .keyboard { display: flex; flex-direction: column; gap: 6px; width: 100%; }
  .kb-baris { display: flex; justify-content: center; gap: 5px; }
  .kb-baris button { flex: 1 1 0; max-width: 48px; min-width: 0; font-family: 'Fredoka One', sans-serif; font-size: 1.2rem; padding: 12px 0; border-radius: 10px; border: none;
    background: #fff; color: var(--biru-tua); box-shadow: 0 3px 0 #C9D6F0; cursor: pointer; }
  .kb-baris button:active { transform: translateY(2px); box-shadow: none; }
  .kb-baris .kb-hapus { flex: 1.5 1 0; max-width: 70px; background: #FDECEC; color: var(--bahaya); }
  .kb-baris .kb-ok { flex: 2.6 1 0; max-width: 120px; font-size: .95rem; background: linear-gradient(135deg, #22A55B, #3BC97A); color: #fff; box-shadow: 0 3px 0 #157A40; }
  .kb-baris .kb-ok:disabled { opacity: .45; cursor: not-allowed; }
  body.proyektor .daftar-petunjuk div { font-size: 1.3rem; } body.proyektor .gambar-soal.bendera { max-height: 260px; }
  body.proyektor .foto-info.gambar-soal img { max-height: 340px; } body.proyektor .gambar-soal.gambar-info { font-size: 11rem; }

  /* ===== Latihan ===== */
  .kartu-latihan { border: 3px solid #FFD54F; }
  .lat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .lat-kartu { font-family: inherit; background: #fff; border: none; border-radius: 16px; padding: 8px 6px 10px; cursor: pointer; box-shadow: 0 4px 12px rgba(30,60,120,.12);
    display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
  .lat-kartu:active { transform: scale(.97); }
  .lat-gbr { width: 100%; height: 76px; display: flex; align-items: center; justify-content: center; }
  .lat-gbr img { max-width: 100%; max-height: 76px; object-fit: contain; border-radius: 8px; }
  .lat-emoji, .lat-kosong { font-size: 3rem; line-height: 1; }
  .lat-kosong { opacity: .35; }
  .lat-nama { font-weight: 900; font-size: .85rem; color: var(--teks); line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
  .lat-nama.tutup { color: var(--redup); font-size: .75rem; }
  .lat-detail { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .lat-detail .bendera { max-height: 120px; }
  .lat-detail { --u: 30px; } .lat-detail .slot { font-size: 1rem; }
