
body {
  background: #121519 url(http://dl9.glitter-graphics.net/pub/231/231839jm35be5swg.gif);
  display: flex;
  justify-content: center;
  font: 14px 'MS Gothic', 'Courier New', Arial;
}

/* ============================= */
/* QUIZ PLANÈTE — KOMET-4 */
/* ============================= */

.komet-quiz {
  max-width: 720px;
  margin: 25px auto;
  padding: 10px;
  color: #ffffff;
  font-family: 'Lato', Arial, sans-serif;
  background: #121519;
  border: 1px solid #2f6fa3;
  box-shadow: 0 0 18px rgba(47, 111, 163, 0.35);
}

.quiz-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #162b47;
  border: 1px solid #2f6fa3;
  padding: 8px 12px;
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace;
  font-size: 14px;
  letter-spacing: 1px;
}

.quiz-topbar p {
  margin: 0;
}

.quiz-screen {
  margin-top: 10px;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(94, 138, 199, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(151, 237, 39, 0.08), transparent 30%),
    #0d1118;
  border: 1px solid #304b86;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-screen::before {
  content: "✦ · . ✧ . · ✦ · . ✶ . · ✦";
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.18);
  font-size: 18px;
  pointer-events: none;
}

.space-header {
  position: relative;
  z-index: 2;
}

.planet-icon {
  font-size: 34px;
  margin-bottom: 6px;
}

.space-header h1 {
  margin: 0;
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace;
  font-size: 30px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(94, 138, 199, 0.8);
}

.subtitle {
  margin: 8px 0 18px;
  color: #c7d3ff;
  font-size: 13px;
  font-style: italic;
}

/* Blocs d'intro */

.warning-box,
.scanner-box,
.stats-panel,
.question-placeholder,
.result {
  position: relative;
  z-index: 2;
  margin: 16px 0;
  padding: 15px;
  background: rgba(18, 21, 25, 0.88);
  border: 1px solid #304b86;
  box-shadow: inset 0 0 18px rgba(47, 111, 163, 0.22);
}

.warning-box h3,
.scanner-box h3 {
  margin-top: 0;
  color: #97ed27;
  font-family: 'Pixelify Sans', monospace;
  letter-spacing: 1px;
}

.warning-box p,
.scanner-box p {
  margin: 8px 0;
}

.scanner-box ul {
  margin: 12px auto 0;
  padding: 0;
  list-style: none;
  max-width: 430px;
  text-align: left;
  font-family: monospace;
  font-size: 13px;
  color: #c7d3ff;
}

.scanner-box li {
  margin: 5px 0;
}

/* Barre de chargement */

.loading-bar {
  height: 14px;
  max-width: 320px;
  margin: 10px auto;
  padding: 2px;
  background: #090d13;
  border: 1px solid #2f6fa3;
}

.loading-bar span {
  display: block;
  width: 73%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #121519 0,
    #121519 8px,
    #97ed27 8px,
    #97ed27 16px
  );
  animation: kometLoading 1.6s infinite steps(2);
}

@keyframes kometLoading {
  0% { width: 68%; }
  50% { width: 82%; }
  100% { width: 73%; }
}

/* Mini stats */

.stats-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-family: monospace;
  font-size: 12px;
}

.stat {
  padding: 9px;
  background: rgba(22, 43, 71, 0.55);
  border: 1px dashed rgba(151, 237, 39, 0.35);
}

.stat span {
  display: block;
  margin-top: 4px;
  color: #97ed27;
}

/* Zone question */

#quiz-container {
  position: relative;
  z-index: 2;
}

.question {
  margin: 20px 0 15px;
  padding: 16px;
  background: rgba(22, 43, 71, 0.65);
  border: 1px solid #2f6fa3;
  color: #ffffff;
  font-family: 'Pixelify Sans', monospace;
  font-size: 20px;
  letter-spacing: 1px;
}

.question-placeholder p {
  margin-top: 0;
  color: #c7d3ff;
}

.ascii-box {
  white-space: pre-line;
  margin-top: 12px;
  color: #97ed27;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.5;
}

/* Réponses */

.answers {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.answer-btn,
.answers button {
  width: 100%;
  padding: 12px 14px;
  background: #162b47;
  color: #ffffff;
  border: 1px solid #2f6fa3;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow: 3px 3px 0 #080b10;
}

.answer-btn:hover,
.answers button:hover {
  background: #223f66;
  border-color: #97ed27;
  transform: translateY(-2px);
}

.answer-btn.selected,
.answers button.selected {
  background: #97ed27;
  color: #121519;
  border-color: #ffffff;
  font-weight: bold;
}

/* Bouton principal */

#next-btn {
  position: relative;
  z-index: 2;
  margin: 18px auto 8px;
  padding: 12px 22px;
  background: #97ed27;
  color: #121519;
  border: none;
  font-family: 'Pixelify Sans', monospace;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #080b10;
  transition: 0.18s ease;
}

#next-btn:hover {
  transform: translateY(-2px);
  background: #b8ff5b;
}

#next-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #080b10;
}

/* Résultat */

.result {
  margin-top: 20px;
}

.hidden {
  display: none;
}

.planet-name {
  color: #97ed27;
  font-family: 'Pixelify Sans', monospace;
  font-size: 32px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(151, 237, 39, 0.55);
}

.compatibility {
  margin: 12px auto;
  padding: 8px;
  max-width: 260px;
  background: #090d13;
  border: 1px dashed #97ed27;
  color: #c7d3ff;
  font-family: monospace;
}

.result p {
  line-height: 1.6;
}

.result hr {
  border: none;
  border-top: 1px dashed rgba(151, 237, 39, 0.4);
  margin: 16px 0;
}

/* Footer */

.terminal-footer {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(47, 111, 163, 0.8);
  color: #c7d3ff;
  font-family: monospace;
  font-size: 12px;
}

.terminal-footer p {
  margin: 4px 0;
}

/* Responsive */

@media (max-width: 600px) {
  .komet-quiz {
    margin: 15px;
  }

  .quiz-screen {
    padding: 15px;
  }

  .space-header h1 {
    font-size: 24px;
  }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .question {
    font-size: 17px;
  }
}