* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 0, 0, 0.18), transparent 30%),
    linear-gradient(180deg, #090909, #140707 40%, #060606);
  color: #f5f5f5;
  min-height: 100vh;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.08), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(255, 80, 80, 0.06), transparent 25%);
}

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 60px;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 1px;
  color: #ff4d4d;
  text-shadow: 0 0 20px rgba(255, 77, 77, 0.35);
}

.subtitle {
  max-width: 700px;
  margin: 12px auto 0;
  color: #d5d5d5;
  line-height: 1.5;
}

.card {
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 77, 77, 0.25);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.hidden {
  display: none;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 26px;
}

.info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 77, 77, 0.18);
  border-radius: 14px;
  padding: 16px;
}

.info-box h3 {
  margin-top: 0;
  color: #ff6b6b;
}

.main-btn {
  background: linear-gradient(135deg, #ff2e2e, #b30000);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.main-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: bold;
  color: #ff9f9f;
}

.scenario-text {
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid #ff4d4d;
}

.question-block {
  margin-top: 24px;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.option-label {
  display: block;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-label:hover {
  border-color: rgba(255, 77, 77, 0.6);
  background: rgba(255, 77, 77, 0.08);
}

.option-label input {
  margin-right: 10px;
}

.result-box,
.explanation-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
}

.result-actions {
  margin-top: 20px;
}

#final-score-text {
  font-size: 1.2rem;
  color: #ff8d8d;
  font-weight: bold;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .card {
    padding: 18px;
  }

  .top-bar {
    flex-direction: column;
  }
}
