/* ===== BASE ===== */

body {
  font-family: system-ui, sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ===== CONTAINER ===== */

#app {
  width: 100%;
  max-width: 600px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  position: relative;
  z-index: 1;
}

/* ===== TITRE ===== */

h1 {
  text-align: center;
  font-size: 1.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ===== SCENE ===== */

.scene {
  background-color: rgba(30, 41, 59, 0.88);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* ===== TITRES / DESCRIPTIONS ===== */

.scene-title {
  margin-bottom: 10px;
}

.scene-description {
  margin-bottom: 15px;
  opacity: 0.9;
}

.boss-warning {
  margin-bottom: 12px;
  font-weight: 700;
  color: #facc15;
}

/* ===== QUESTION ===== */

.question {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* ===== REPONSES ===== */

.answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== BOUTONS ===== */

button {
  padding: 12px;
  background-color: #334155;
  color: #e2e8f0;
  border-radius: 8px;
  border: 1px solid #475569;
  transition: 0.2s;
  cursor: pointer;
}

button:hover {
  background-color: #475569;
}

/* ===== STATUS / INFO ===== */

.status {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ===== FEEDBACK ===== */

.feedback {
  min-height: 24px;
  text-align: center;
  font-weight: 600;
  margin-top: 12px;
}

.feedback.success {
  color: #22c55e;
}

.feedback.error {
  color: #ef4444;
}

/* ===== BOUTONS REPONSES ===== */

.answers button {
  width: 100%;
  text-align: left;
}

.answers button:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.answers button.correct {
  background-color: #166534;
  border-color: #22c55e;
  color: #f8fafc;
}

.answers button.wrong {
  background-color: #991b1b;
  border-color: #ef4444;
  color: #f8fafc;
}

/* ===== PROGRESSION ===== */

.progress {
  height: 8px;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #22c55e;
  width: 0%;
}

/* ===== FIN DE PARTIE ===== */

.end-image {
  display: block;
  width: min(100%, 440px);
  margin: 0 auto 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.35);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.55);
}

.final-score-value {
  color: #ef4444;
  font-weight: 700;
}