/* ===== Banner styling ===== */
.banner {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  padding: 20px 0 10px;
  position: relative;
  z-index: 2;
}
.banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #8bf6ff;
  text-shadow: 0 0 20px rgba(139, 246, 255, 0.4);
  margin: 0;
}
.banner-sub {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #a0aab8;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.banner::after {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 246, 255, 0.6), transparent);
  margin: 14px auto 0;
  border-radius: 2px;
}
/* ===== Banner icon layout ===== */
.banner-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.banner-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(139, 246, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(139, 246, 255, 0.4);
}

/* Auto resize for mobile */
@media (max-width: 600px) {
  .banner-icon {
    width: 36px;
    height: 36px;
  }
  .banner-title {
    font-size: 1.7rem;
  }
}

/* ===== Base layout ===== */
body {
  font-family: "Inter", sans-serif;
  background: #0b0c10;
  color: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
}

.app {
  width: 100%;
  max-width: 760px;
}

.card {
  background: #18181d;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.btn {
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.btn.primary {
  background: #7ce8ff;
  color: #000;
}
.btn.secondary {
  background: transparent;
  border: 1px solid #7ce8ff;
  color: #7ce8ff;
}
.hidden {
  display: none;
}

/* ===== Quiz Layout ===== */
.quiz-area {
  min-height: 200px;
}

.progress {
  background: #222;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress__fill {
  height: 100%;
  background: #7ce8ff;
  transition: width 0.3s;
}

/* ===== Question & Options ===== */
.question-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.q-title {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}
.q-sub {
  font-size: 13px;
  color: #aaa;
  margin: 0;
}

/* each option block */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
}
.option:hover {
  background: rgba(124, 232, 255, 0.05);
}
.option input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.option .label {
  line-height: 1.3;
  font-size: 15px;
}
.option.selected {
  background: linear-gradient(90deg, rgba(124, 232, 255, 0.08), rgba(123, 108, 255, 0.04));
  border-color: rgba(124, 232, 255, 0.16);
}

/* ===== Controls ===== */
.controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

/* ===== Result Card ===== */
.result-card {
  text-align: center;
}
.result-summary {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
}
.score-badge {
  background: linear-gradient(90deg, #0ff3d0, #7ce8ff);
  color: #012;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-block;
}
.score-message {
  font-size: 16px;
  color: #fff;
  margin-top: 6px;
}

/* ===== Footer ===== */
.footer {
  margin-top: 20px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .banner-title { font-size: 1.8rem; }
  .q-title { font-size: 16px; }
  .option .label { font-size: 14px; }
}
