body {
  font-family: 'Anek Gujarati', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f7fb;
}

.quiz-container {
  max-width: 520px;
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 20px;
  border-top: 6px solid #f39c12;
  line-height: 1.6;
  width: 100%;
}

.quiz-header h2 {
  color: #1f3c88;
}

.timer {
  margin-top: 8px;
  font-weight: bold;
  color: #e67e22;
}

#options {
  list-style: none;
  padding: 0;
}

#options li {
  background: #eef2ff;
  margin: 10px 0;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

#options li:hover {
  background: #dbe4ff;
}

#options li.correct {
  background: #2ecc71;
  color: #fff;
}

#options li.wrong {
  background: #e74c3c;
  color: #fff;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

#nextBtn {
  background: #1f3c88;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.score-box {
  text-align: center;
  animation: pop 0.6s ease;
}

@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== FINAL QUIZ CARD DESIGN ===== */
.quiz-container {
  max-width: 520px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-top: 6px solid #f39c12;
  padding: 22px;
}

.wp-block-html iframe {
  display: block;
  max-width: 100%;
}

/* ===============================
   TRUE MOBILE FULL-SCREEN FIX
   =============================== */

@media (max-width: 768px) {

  html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #f4f7fb;
  }

  /* Kill desktop centering logic */
  body {
    display: block !important;
  }

  .quiz-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 16px 14px 24px !important;

    /* App-like look */
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Prevent text shrink */
  .quiz-header h2 {
    font-size: 18px !important;
    line-height: 1.5;
  }

  #options .option {
    font-size: 15px;
    padding: 14px;
  }

  .quiz-footer {
    padding-bottom: 24px;
  }
}
/* ===============================
   MOBILE SIDE CUT FIX (FINAL)
   =============================== */

@media (max-width: 768px) {

  *, *::before, *::after {
    box-sizing: border-box;
  }

  html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .quiz-container {
    width: calc(100% - 16px) !important;
    max-width: 100% !important;
    margin: 8px auto !important;

    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #options .option {
    width: 100%;
  }
}

/* ===== GAME STYLE PROGRESS BAR ===== */

.progress-wrap {
  flex: 1;
  height: 8px;
  background: #e6ecf5;
  border-radius: 10px;
  margin-left: 16px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  border-radius: 10px;
  transition: width 0.4s ease;
}
