:root {
  /* Warna utama – soft glass futuristik */
  --bg-dark: #010101;
  --bg-panel: rgba(18, 24, 38, 0.75);
  --accent: #a9ddd3;   /* mint */
  --accent-2: #e8e3d5; /* cream */
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --success: #4ade80;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, #111827 0, #020617 45%, #010101 100%);
  position: relative;
  overflow: hidden;
}

/* Lapisan glow halus di belakang (bisa dipakai bareng slime/lines) */
body::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 0%, rgba(169, 221, 211, 0.18), transparent 60%),
              radial-gradient(circle at 80% 100%, rgba(232, 227, 213, 0.16), transparent 60%);
  opacity: 0.7;
  filter: blur(6px);
  z-index: -2;
}

/* CARD QUIZ – soft glass futuristik */
.game-container {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.7)
    );
  border-radius: 18px;
  padding: 18px 18px 22px;
  border: 1px solid rgba(169, 221, 211, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 18px 55px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(169, 221, 211, 0.18);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: cardEnter 0.6s ease-out;
}

/* Glow ring tipis di sekeliling card */
.game-container::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 0% 0%, rgba(169, 221, 211, 0.5), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(232, 227, 213, 0.4), transparent 55%);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

/* Judul + logo */
.title {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 4px;
}

.logo {
  position: relative;
  top: 6px;
}

.subtitle {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Status bar – lebih clean futuristik */
.status-bar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(169, 221, 211, 0.08), transparent 60%),
              rgba(15, 23, 42, 0.9);
}

.status-label {
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Garis pemisah – dibuat lebih halus */
.pixel-line {
  height: 3px;
  border-radius: 999px;
  background-image: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent-2) 50%,
    var(--accent) 100%
  );
  opacity: 0.55;
  margin-bottom: 14px;
}

/* BOX PERTANYAAN */
.question-box {
  border-radius: 14px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  padding: 12px 12px 11px;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85));
  margin-bottom: 14px;
  box-shadow: 0 0 22px rgba(15, 23, 42, 0.9);
}

.question-number {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.question-text {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

/* OPSI JAWABAN */
.options {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.option-btn {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 9px 11px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: center;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}

.option-key {
  font-weight: 800;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
}

.option-label {
  flex: 1;
}

.option-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9),
              0 0 16px rgba(169, 221, 211, 0.3);
  border-color: rgba(169, 221, 211, 0.9);
  background: radial-gradient(circle at 0 0, rgba(169, 221, 211, 0.15), rgba(15, 23, 42, 0.96));
}

/* State benar / salah */
.option-btn.correct {
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.96));
  border-color: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.option-btn.wrong {
  background: radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.18), rgba(15, 23, 42, 0.96));
  border-color: rgba(248, 113, 113, 0.9);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.3);
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.btn-main,
.btn-ghost {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}

.btn-main {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #010101;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7),
              0 0 18px rgba(169, 221, 211, 0.4);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.92);
  color: var(--text-main);
}

.btn-main:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85),
              0 0 18px rgba(169, 221, 211, 0.45);
  border-color: rgba(169, 221, 211, 0.9);
}

.hidden {
  display: none !important;
}

/* HASIL QUIZ */
.result-box {
  text-align: center;
  padding: 14px 11px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.96);
}

.result-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.result-score {
  font-size: 14px;
  margin-bottom: 4px;
}

.result-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Progress dots – dibuat lebih futuristik */
.progress-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 9px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 8px rgba(15, 23, 42, 1);
}

.dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(169, 221, 211, 0.8);
}

.dot.done {
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(232, 227, 213, 0.75);
}

/* Animasi masuk card */
@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .game-container {
    border-radius: 16px;
    padding: 14px 12px 16px;
    margin: 40px 12px;
  }
}
/* ===== JELLY SLIME BACKGROUND ===== */
.slime-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -3;
  background: #010101;
}

.blob {
  position: absolute;
  width: 350px;
  height: 350px;
  background: #a9ddd3;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: moveBlob 18s infinite ease-in-out;
}

.blob2 {
  background: #e8e3d5;
  opacity: 0.35;
  animation-duration: 22s;
}

.blob3 {
  background: #a9ddd3;
  opacity: 0.3;
  animation-duration: 26s;
}

@keyframes moveBlob {
  0% { transform: translate(-20%, -20%) scale(1); }
  25% { transform: translate(60vw, 5vh) scale(1.3); }
  50% { transform: translate(25vw, 60vh) scale(0.9); }
  75% { transform: translate(-10vw, 30vh) scale(1.4); }
  100% { transform: translate(-20%, -20%) scale(1); }
}
/* ===== FUTURISTIC LINES ===== */
.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.floating-lines {
  position: absolute;
  width: 100%;
  height: 100%;
}

.line {
  position: absolute;
  width: 2px;
  height: 120px;
  background: linear-gradient(#a9ddd3, transparent);
  opacity: 0.45;
  animation: fall 6s linear infinite;
}

.line:nth-child(odd) {
  background: linear-gradient(#e8e3d5, transparent);
}

@keyframes fall {
  0% { transform: translateY(-200px); }
  100% { transform: translateY(120vh); }
}

.line {
  left: calc(var(--i) * 2%);
  animation-duration: calc(4s + var(--i) * 0.3s);
}
#quiz-container {
  position: relative;
  z-index: 10;
  background: rgba(12, 12, 12, 0.6);
  backdrop-filter: blur(12px);
  padding: 25px;
  border-radius: 20px;
  max-width: 550px;
  margin: 80px auto;
  box-shadow: 0 0 25px rgba(169, 221, 211, 0.25);
  border: 1px solid rgba(169, 221, 211, 0.2);
  animation: fadeIn 0.7s ease;
}
/* POPUP BACKDROP */
#lowScorePopup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* POPUP BOX */
.popup-content {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(169, 221, 211, 0.4);
  padding: 22px;
  border-radius: 18px;
  width: 90%;
  max-width: 360px;
  color: #fff;
  text-align: center;
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.7),
    0 0 24px rgba(169,221,211,0.25);
  animation: popupEnter .35s ease-out;
}

.popup-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--accent);
}

.popup-message {
  font-size: 14px;
  margin-bottom: 18px;
  opacity: .9;
  line-height: 1.5;
}

.popup-btn {
  display: block;
  padding: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 12px;
  color: #010101;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.hidden {
  display: none !important;
}

/* POPUP ANIM */
@keyframes popupEnter {
  from { opacity: 0; transform: translateY(20px) scale(.95);}
  to   { opacity: 1; transform: translateY(0) scale(1);}
}
.popup-close-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: #a9ddd3;
  color: #010101;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.popup-close-btn:hover {
  background: #e8e3d5;
}
