* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Noto Sans Bengali", "Segoe UI", Arial, sans-serif;
  color: #ffffff;

  background:
    radial-gradient(circle at 15% 20%, rgba(0, 120, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(255, 190, 0, 0.10), transparent 25%),
    linear-gradient(135deg, #020b24 0%, #061b4f 48%, #031331 100%);

  overflow-x: hidden;
}

/* Decorative background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.25;
}

/* Main Start Screen */
.start-screen {
  position: relative;
  z-index: 1;

  width: min(1100px, 94%);
  min-height: 100vh;
  margin: auto;

  padding: 45px 20px 55px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

/* MCQ Badge */
.top-badge {
  min-width: 250px;

  padding: 10px 55px;

  border: 2px solid #f5b900;
  border-radius: 15px;

  background: rgba(5, 20, 55, 0.85);

  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;

  box-shadow:
    0 0 15px rgba(245, 185, 0, 0.25),
    inset 0 0 15px rgba(0, 80, 180, 0.15);

  margin-bottom: 28px;
}

/* Main Title */
h1 {
  margin: 0;

  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.2;

  color: #f5c400;

  text-shadow:
    2px 3px 0 #101f50,
    0 0 20px rgba(245, 196, 0, 0.18);
}

/* Game Name */
h2 {
  margin: 10px 0 28px;

  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.25;

  color: #ffffff;
}

h2 span {
  color: #f5c400;
}

/* Information Box */
.info-box {
  width: min(760px, 95%);

  display: flex;
  justify-content: space-around;
  align-items: center;

  gap: 20px;

  padding: 20px 30px;

  border: 2px solid #126fd0;
  border-radius: 20px;

  background:
    linear-gradient(
      90deg,
      rgba(7, 38, 91, 0.95),
      rgba(10, 52, 112, 0.95)
    );

  box-shadow:
    0 0 20px rgba(0, 110, 255, 0.20),
    inset 0 0 15px rgba(0, 0, 0, 0.18);

  font-size: 23px;
}

.info-box div {
  flex: 1;
}

/* Instruction */
.instruction {
  margin: 30px 0 22px;

  font-size: 22px;
  font-weight: 600;

  color: #ffffff;
}

/* Mode Buttons */
.mode-buttons {
  width: min(820px, 95%);

  display: flex;
  gap: 24px;
}

.mode-btn {
  flex: 1;

  min-height: 92px;

  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;

  color: #ffffff;

  font-size: 23px;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 7px 0 rgba(0, 0, 0, 0.28),
    0 0 18px rgba(0, 0, 0, 0.20);

  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

/* Learning */
.learning {
  background: linear-gradient(
    180deg,
    #0b8b46,
    #05672f
  );
}

/* Exam */
.exam {
  background: linear-gradient(
    180deg,
    #df3b1d,
    #a91f0b
  );
}

/* Hover */
.mode-btn:hover {
  filter: brightness(1.12);

  transform: translateY(-3px);

  box-shadow:
    0 10px 0 rgba(0, 0, 0, 0.25),
    0 0 25px rgba(255, 255, 255, 0.08);
}

/* Click */
.mode-btn:active {
  transform: translateY(4px);

  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.28);
}

/* Status */
.status {
  min-height: 28px;

  margin-top: 24px;

  color: #d8e7ff;
  font-size: 16px;
}

/* Mobile */
@media (max-width: 700px) {

  .start-screen {
    padding-top: 30px;
  }

  .top-badge {
    min-width: 190px;
    padding: 8px 35px;
    font-size: 25px;
  }

  .info-box {
    flex-direction: column;
    gap: 8px;
    font-size: 20px;
  }

  .mode-buttons {
    flex-direction: column;
    gap: 18px;
  }

  .mode-btn {
    width: 100%;
    min-height: 78px;
    font-size: 21px;
  }

  .instruction {
    font-size: 20px;
  }
}
/* ==========================================
   QUIZ SCREEN
   ========================================== */

.quiz-screen {
    width: min(1000px, 94%);
    margin: 40px auto;
    padding: 30px;

    background: rgba(5, 20, 55, 0.92);

    border: 2px solid #126fd0;
    border-radius: 22px;

    box-shadow:
        0 0 25px rgba(0, 110, 255, 0.20),
        inset 0 0 20px rgba(0, 0, 0, 0.18);
}


/* ==========================================
   QUIZ TOP
   ========================================== */

.quiz-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
    margin-bottom: 18px;

    font-size: 20px;
    font-weight: 700;
}


/* ==========================================
   TIMER
   ========================================== */

.timer-box {
    width: fit-content;

    margin: 12px auto 20px;
    padding: 8px 24px;

    border: 2px solid #f5c400;
    border-radius: 14px;

    background: rgba(245, 196, 0, 0.10);

    color: #ffffff;

    font-size: 21px;
    font-weight: 800;

    box-shadow:
        0 0 15px rgba(245, 196, 0, 0.15);
}

#timer {
    display: inline-block;

    min-width: 42px;

    color: #f5c400;

    font-size: 30px;
    font-weight: 900;

    text-align: center;
}


/* ==========================================
   PROGRESS BAR
   ========================================== */

.progress {
    width: 100%;
    height: 10px;

    margin-bottom: 30px;

    background: rgba(255, 255, 255, 0.12);

    border-radius: 20px;

    overflow: hidden;
}

.progress-bar {
    height: 100%;

    background: linear-gradient(
        90deg,
        #126fd0,
        #f5c400
    );

    border-radius: 20px;

    transition: width 0.3s ease;
}


/* ==========================================
   QUESTION
   ========================================== */

.question {
    margin: 20px 0 30px;

    color: #ffffff;

    font-size: clamp(25px, 4vw, 40px);
    line-height: 1.4;

    text-align: center;
}


/* ==========================================
   OPTIONS
   ========================================== */

.options {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.answer-btn {
    min-height: 70px;

    padding: 15px 20px;

    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;

    background: linear-gradient(
        180deg,
        #0b3b7d,
        #072b5e
    );

    color: #ffffff;

    font-family: inherit;
    font-size: 20px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        background 0.15s ease;
}

.answer-btn:hover:not(:disabled) {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.answer-btn:disabled {
    cursor: default;
}


/* ==========================================
   CORRECT / WRONG
   ========================================== */

.answer-btn.correct {
    background: linear-gradient(
        180deg,
        #0b9b50,
        #056b35
    );

    border-color: #22d878;
}

.answer-btn.wrong {
    background: linear-gradient(
        180deg,
        #e3422a,
        #a82010
    );

    border-color: #ff765f;
}


/* ==========================================
   FEEDBACK
   ========================================== */

.feedback {
    margin-top: 25px;

    padding: 20px;

    border-radius: 15px;

    background: rgba(0, 0, 0, 0.20);

    text-align: center;

    font-size: 18px;
    line-height: 1.6;
}

.correct-message {
    color: #35e487;

    font-size: 25px;
    font-weight: 900;
}

.wrong-message {
    color: #ff765f;

    font-size: 25px;
    font-weight: 900;
}

.feedback button {
    margin-top: 15px;

    padding: 12px 28px;

    border: none;
    border-radius: 10px;

    background: #f5c400;

    color: #071735;

    font-family: inherit;
    font-size: 18px;
    font-weight: 800;

    cursor: pointer;
}

.feedback button:hover {
    filter: brightness(1.1);
}


/* ==========================================
   RESULT SCREEN
   ========================================== */

.result-screen {
    width: min(800px, 94%);

    margin: 70px auto;
    padding: 45px 25px;

    border: 2px solid #f5c400;
    border-radius: 22px;

    background: rgba(5, 20, 55, 0.94);

    text-align: center;

    box-shadow:
        0 0 30px rgba(245, 196, 0, 0.15);
}

.result-score {
    margin: 20px 0;

    color: #f5c400;

    font-size: 70px;
    font-weight: 900;
}

.percentage {
    font-size: 35px;
    font-weight: 800;
}

.result-screen button {
    margin-top: 25px;

    padding: 14px 30px;

    border: none;
    border-radius: 12px;

    background: #f5c400;

    color: #071735;

    font-family: inherit;
    font-size: 19px;
    font-weight: 800;

    cursor: pointer;
}


/* ==========================================
   QUIZ MOBILE
   ========================================== */

@media (max-width: 700px) {

    .quiz-screen {
        width: 94%;
        padding: 20px 15px;
    }

    .quiz-top {
        flex-direction: column;

        font-size: 17px;
    }

    .timer-box {
        font-size: 18px;
    }

    #timer {
        font-size: 27px;
    }

    .options {
        grid-template-columns: 1fr;
    }

    .answer-btn {
        min-height: 62px;
        font-size: 18px;
    }

    .question {
        font-size: 25px;
    }

    .result-score {
        font-size: 55px;
    }
}
/* ==========================================
   FEEDBACK & NEXT BUTTON POLISH
   ========================================== */

.feedback {
    margin-top: 18px;
    padding: 15px 18px;
}

.feedback p {
    margin: 8px 0;
}

.feedback button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 24px;
}
/* ==========================================
   QUIZ SCREEN - TOP SPACE REDUCTION
   ========================================== */

.quiz-screen {
    padding-top: 25px;
}

.quiz-top {
    margin-bottom: 12px;
}

.progress {
    margin-top: 8px;
    margin-bottom: 18px;
}
/* ==========================================
   QUIZ BOX - REDUCE TOP MARGIN
   ========================================== */

.quiz-screen {
    margin-top: 30px !important;
}

/* ==========================================
   QUIZ SCREEN - MOVE BOX UP
   ========================================== */

.quiz-screen {
    margin-top: 0 !important;
    transform: translateY(-80px);
}
/* Question text size */
.quiz-screen .question {
    font-size: clamp(28px, 3.2vw, 48px);
    line-height: 1.25;
    margin: 12px 0 20px;
}