/* Work Plan Detective – page-specific styles */

.game-card {
  margin-top: 1.5rem;
  background: radial-gradient(circle at top left, #1b2336, #070a11 55%, #030308 90%);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

/* HUD row at the top of the game */
.game-card .hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: #d6ddff;
  margin-bottom: 0.75rem;
}

.game-card .hud div span {
  font-weight: 600;
}

/* Timer bar */
.timer-wrapper {
  margin-bottom: 0.75rem;
}

.timer-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

#timerBar {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #19e07e, #ffe66b);
  transition: width 0.1s linear;
}

#timerLabel {
  font-size: 0.85rem;
  color: #9ba5d2;
  margin-bottom: 0.3rem;
}

/* Main question card */
.question-card {
  background: radial-gradient(circle at top, #151d33, #090c18 60%, #05050c 100%);
  border-radius: 18px;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.7);
  position: relative;
}

.question-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(0, 255, 170, 0.12), transparent 60%);
  opacity: 1;
  pointer-events: none;
}

/* Stage intro text */
.stage-intro {
  font-size: 0.92rem;
  color: #9fb6ff;
  margin-bottom: 0.45rem;
}

/* Question text */
.question-text {
  font-size: 1.12rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

/* Answers layout */
.answers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

@media (min-width: 768px) {
  .answers {
    grid-template-columns: 1fr 1fr;
  }
}

/* Answer buttons */
.answer-option {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.7rem 0.85rem;
  background: rgba(10, 16, 38, 0.95);
  color: #f4f7ff;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease;
}

.answer-option:hover,
.answer-option:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 255, 170, 0.5);
  outline: none;
}

.answer-option.answered {
  cursor: default;
}

/* Correct / incorrect states */
.answer-option.correct {
  background: linear-gradient(135deg, #0b3b2d, #0d6f4f);
  border-color: rgba(0, 255, 170, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.4);
}

.answer-option.incorrect {
  background: linear-gradient(135deg, #3b1114, #6f1c20);
  border-color: rgba(255, 80, 120, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 80, 120, 0.4);
}

/* Feedback text */
.feedback {
  min-height: 1.4em;
  font-size: 0.94rem;
  color: #ffdca8;
  margin-top: 0.1rem;
}

/* Progress label under the answers */
.progress-label {
  margin-top: 0.4rem;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9ba5c9;
}

/* Score pop animation */
.score-pop {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #00ffae;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.score-pop.animate {
  animation: scorePopUp 0.7s ease-out;
}

@keyframes scorePopUp {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.9);
  }
  25% {
    opacity: 1;
    transform: translateY(-10px) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
}

/* Stage complete / game over panels for this page */
.game-over {
  margin-top: 1.5rem;
  background: radial-gradient(circle at top, #1a2233, #070a11 60%, #030307 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.6);
}
