/* Chrome yang dipakai bersama oleh semua game (header, HUD, instruksi, overlay, kartu soal). */
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:16px;
  touch-action:manipulation;
  user-select:none;
}
header{
  width:100%;
  max-width:420px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
  gap:8px;
}
.back{
  display:inline-flex;
  align-items:center;
  gap:4px;
  text-decoration:none;
  color:var(--color-text-secondary);
  font-size:13px;
  font-weight:600;
  background:var(--color-surface);
  padding:7px 12px;
  border-radius:10px;
  border:1.5px solid var(--color-border-light);
  flex-shrink:0;
}
.back .material-symbols-outlined{ font-size:18px; }

.hud{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
  font-weight:700;
  font-size:12px;
}
.hud-item{
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:var(--color-surface);
  padding:6px 9px;
  border-radius:10px;
  border:1.5px solid var(--color-border-light);
  color:var(--color-text-secondary);
}
.hud-item .material-symbols-outlined{ font-size:16px; }
.hud-lives .material-symbols-outlined{ color:var(--color-red); }
.hud-level .material-symbols-outlined{ color:var(--color-brand); }
.hud-score .material-symbols-outlined{ color:var(--color-yellow-dark); }
#playerTag .material-symbols-outlined{ color:var(--color-text-muted); font-size:16px; }

.instruction{
  max-width:420px;
  width:100%;
  text-align:center;
  background:var(--color-surface);
  border:1.5px solid var(--color-border-light);
  border-radius:12px;
  padding:10px 14px;
  margin-bottom:14px;
  font-size:14px;
  font-weight:600;
  color:var(--color-text-secondary);
  min-height:24px;
  transition:transform .15s ease;
}
.instruction.shake{
  animation:shake .35s;
}
@keyframes shake{
  0%,100%{transform:translateX(0);}
  20%{transform:translateX(-8px);}
  40%{transform:translateX(8px);}
  60%{transform:translateX(-6px);}
  80%{transform:translateX(6px);}
}

.scene{
  width:100%;
  display:flex;
  justify-content:center;
  padding:6px 0 12px;
  overflow-y:auto;
}

/* Tombol aksi utama di bawah panggung permainan (mis. "Lompati Gacuk", "Tangkap!") */
.action-btn{
  margin-top:12px;
}

.hidden{
  display:none !important;
}

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,25,50,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:20;
}
.panel{
  padding:28px 24px;
  max-width:320px;
  width:88%;
  text-align:center;
}
.panel-icon{
  font-size:40px;
  color:var(--color-brand);
  margin-bottom:6px;
}
.panel h2{
  margin:0 0 8px;
  font-size:18px;
  color:var(--color-text);
}
.panel p{
  font-size:14px;
  color:var(--color-text-secondary);
  margin:0 0 16px;
}
.panel .btn{
  width:100%;
}

/* Kartu soal ditaruh di sisi kanan layar (bukan di tengah) supaya papan/panggung tetap terlihat */
#quizOverlay{
  background:transparent;
  justify-content:flex-end;
  align-items:center;
  padding:12px 12px 12px 0;
  pointer-events:none;
}
#quizOverlay .quiz-panel{
  pointer-events:auto;
  margin:0;
  box-shadow:0 6px 20px rgba(0,25,50,.18);
}

.quiz-panel{
  max-width:250px;
  width:80vw;
}
.quiz-subject{
  margin-bottom:10px;
}
.quiz-panel h2{
  font-size:16px;
  margin:0 0 14px;
  text-align:left;
}
.quiz-options{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.quiz-options button{
  margin:0;
  padding:11px 10px;
  font-size:13.5px;
  font-weight:600;
  font-family:inherit;
  border:1.5px solid var(--color-border);
  border-radius:10px;
  background:var(--color-surface);
  color:var(--color-text);
  cursor:pointer;
  text-align:left;
  transition:background .15s, border-color .15s, transform .1s;
}
.quiz-options button:active{
  transform:scale(.97);
}
.quiz-options button.correct{
  background:var(--color-success-light);
  border-color:var(--color-success);
  color:var(--color-success-dark);
}
.quiz-options button.wrong{
  background:var(--color-red-light);
  border-color:var(--color-red);
  color:var(--color-red-dark);
}
.quiz-options button:disabled{
  cursor:default;
}
.quiz-feedback{
  margin-top:12px;
  font-size:13px;
  font-weight:700;
  min-height:18px;
  text-align:left;
  display:flex;
  align-items:center;
  gap:4px;
}
