:root {
  --fire-amber: #ffb347;
  --fire-orange: #ff6a00;
  --fire-rose: #ff4d6d;
  --fire-sun: #ffd93d;
  --ink: #1b1b1f;
  --card: #ffffff;
  --soft: #fff6ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff1d1 0%, #fff7ee 40%, #ffe6f0 100%);
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 600px at 10% 10%, rgba(255, 179, 71, 0.35), transparent 60%),
    radial-gradient(400px 400px at 85% 20%, rgba(255, 77, 109, 0.25), transparent 60%),
    radial-gradient(500px 500px at 50% 90%, rgba(255, 217, 61, 0.35), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.quiz-shell {
  width: 100%;
  max-width: 520px;
  border: none;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.start-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.start-logo img {
  width: clamp(120px, 35vw, 200px);
  height: auto;
}

.question-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 0.4rem;
}

.question-meta {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 700;
}

.timer {
  font-weight: 800;
  background: var(--soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 106, 0, 0.3);
}

.answer-btn {
  font-weight: 700;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border-width: 2px;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.answer-btn:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 106, 0, 0.55);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.25);
}

.answer-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.feedback {
  background: var(--soft);
  border-radius: 16px;
  padding: 1rem;
  border: 1px dashed rgba(255, 106, 0, 0.4);
}

.score-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--soft);
  padding: 0.8rem;
  border-radius: 16px;
}

.score-item {
  text-align: center;
}

.score-label {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 700;
}

.score-value {
  font-size: 1.3rem;
  font-weight: 900;
}

.table thead {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
}

.table tbody tr {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire-orange), var(--fire-rose));
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline-primary {
  border-color: var(--fire-orange);
  color: var(--fire-orange);
}

.btn-outline-primary:hover {
  background: var(--fire-orange);
  color: #fff;
}

.screen {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-footer {
  font-size: 0.65rem;
  color: rgba(27, 27, 31, 0.48);
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.4;
  max-width: 520px;
}

.run-count {
  font-size: 0.6rem;
  color: rgba(27, 27, 31, 0.4);
  margin-top: 0.4rem;
}

@media (min-width: 768px) {
  .screen {
    min-height: auto;
  }
  .question-title {
    font-size: 1.5rem;
  }
}
