.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

#stars-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

nav {
  background: var(--black);
  opacity: 0.8;
}

#navbar ul li #labnav {
  color: var(--cyan);
  font-weight: bold;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

/* ==================== HIDDEN ====================*/
.hidden {
  display: none !important;
}

/* ==================== LAYOUT ====================*/
#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 4rem;
}

/* ==================== ARCADE PANELS ====================*/
#launch-screen,
#quiz-screen,
#reveal-screen,
#results-screen,
#gallery-screen {
  background: #0a0a1a;
  border: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 1000px;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#launch-screen {
  justify-content: flex-start;
  padding-top: 3rem;
}

#gallery-screen {
  justify-content: flex-start;
}

#quiz-screen,
#reveal-screen,
#results-screen {
  justify-content: flex-start;
  padding-top: 2rem;
}

/* ==================== SCANLINES ====================*/
#launch-screen::before,
#quiz-screen::before,
#reveal-screen::before,
#results-screen::before,
#gallery-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(34, 211, 238, 0.015) 1px,
    rgba(34, 211, 238, 0.015) 2px
  );
  pointer-events: none;
  z-index: 0;
}

#launch-screen > *,
#quiz-screen > *,
#reveal-screen > *,
#results-screen > *,
#gallery-screen > * {
  position: relative;
  z-index: 1;
}

/* ==================== LIGHTBOX ====================*/
#lightbox-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 15, 0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox {
  background: #0d0d2a;
  border: 2px solid var(--cyan);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 520px;
}

/* ==================== LAUNCH SCREEN ====================*/
#launch-screen h2 {
  color: var(--cyan);
  text-align: center;
  margin-bottom: 1rem;
}

#launch-screen-tagline {
  color: var(--grey);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 2.5;
}

/* ==================== PROGRESS DOTS ====================*/
#progress-indicator {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 5rem;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.progress-dot.active {
  background: var(--cyan);
}

.progress-dot.done {
  background: rgba(34, 211, 238, 0.4);
}

/* ==================== GAME CARDS ====================*/
#play-explore-selection,
#solo-group-classroom-selection {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

#solo-group-classroom-selection {
  flex-direction: column;
}

#solo-group-classroom-selection h4 {
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  color: var(--white);
  cursor: pointer;
  flex: 1;
  text-align: center;
}

.game-card h4 {
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  margin-bottom: 0.5rem;
}

.game-card p {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.6;
}

.game-card:hover {
  border-color: var(--cyan);
}

.game-card.selected {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

#solo-group-classroom-selection .game-card h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ==================== TEAM NAME INPUTS ====================*/
#enter-team-names {
  margin-top: 1.5rem;
}

#team-names h5 {
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  margin-bottom: 0.75rem;
}

#team-names input {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

#team-names input:focus {
  outline: none;
  border-color: var(--cyan);
}

#add-team-btn,
#remove-team-btn {
  background: none;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 0;
  display: block;
}

/* ==================== LEVEL CARDS ====================*/
#level-select {
  margin-top: 1.5rem;
}

#level-select h4 {
  color: var(--cyan);
  text-align: center;
  margin-bottom: 0.25rem;
}

#level-select h5 {
  color: var(--grey);
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

#level-card-display {
  display: flex;
  gap: 15px;
}

#level-card-display h5 {
  color: var(--cyan);
  font-weight: bold;
}

.level-card {
  display: block;
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  color: var(--white);
  cursor: pointer;
  text-align: center;
  margin-bottom: 0.75rem;
}

.level-card h3 {
  color: var(--purple);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.level-card h5 {
  color: var(--white);
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.level-card p {
  color: var(--grey);
  font-size: 0.9rem;
}

.level-card:hover {
  border-color: var(--purple);
}

.level-card.selected {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.1);
}

/* ==================== LAUNCH BUTTONS ====================*/
#buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

#back-btn,
#continue-btn {
  background: #0a0a2a;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  border-radius: 6px;
  padding: 10px 28px;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
}

#back-btn:hover,
#continue-btn:hover {
  background: rgba(34, 211, 238, 0.1);
}

#launch-game-btn {
  background: var(--cyan);
  border: none;
  color: #0a0a1a;
  border-radius: 6px;
  padding: 10px 28px;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
}

#launch-game-btn:hover {
  opacity: 0.85;
}

/* ==================== MAIN MENU BUTTON ====================*/
#quiz-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.main-menu-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--grey);
  border-radius: 6px;
  padding: 8px 20px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
}

.main-menu-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

#reveal-screen .main-menu-btn,
#results-screen .main-menu-btn {
  align-self: center;
}

/* ==================== QUIZ HEADER ====================*/
#quiz-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 1.5rem;
}

#level-badge {
  justify-self: start;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--purple);
  color: var(--purple);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.05em;
}

#timer-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

#clock-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
}

#timer {
  position: relative;
  font-size: 1.2rem;
  font-family: "Orbitron", sans-serif;
  color: var(--cyan);
  z-index: 1;
  text-align: center;
  line-height: 1;
}

#question-counter {
  justify-self: end;
  font-size: 0.9rem;
  color: var(--grey);
  font-family: "Share Tech Mono", monospace;
}

#solo-score {
  font-size: 1.5rem;
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ==================== QUESTION CARD ====================*/
#question-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

#statement {
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-family: "Share Tech Mono", monospace;
}

/* ==================== TEAM SELECT BUTTONS ====================*/
#team-answer-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.team-select-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
}

.team-select-btn:hover {
  border-color: var(--gold);
}

.team-select-btn.selected {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
}

/* ==================== ANSWER BUTTONS ====================*/

#team-select-instruction {
  font-size: 0.8rem;
  color: var(--grey);
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: "Share Tech Mono", monospace;
}

#answer-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.answer-btn {
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  border: 2px solid;
}

.answer-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.answer-btn:hover:not(:disabled) {
  transform: scale(1.03);
}

.answer-btn.myth {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.answer-btn.fact {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--purple);
  color: var(--purple);
}

.answer-btn.myth.selected {
  background: rgba(34, 211, 238, 0.25);
}

.answer-btn.fact.selected {
  background: rgba(168, 85, 247, 0.25);
}

#submit-btn {
  width: 100%;
  background: var(--gold);
  border: none;
  color: #0a0a1a;
  border-radius: 8px;
  padding: 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
}

#submit-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#submit-btn:hover:not(:disabled) {
  opacity: 0.85;
}

/* ==================== SCOREBOARD ====================*/
#team-scoreboard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

#team-scoreboard h4 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.scoreboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.scoreboard-row:last-child {
  border-bottom: none;
}

.scoreboard-row .rank {
  color: var(--grey);
  min-width: 24px;
  font-size: 0.8rem;
}

.scoreboard-row .team-name {
  color: var(--white);
  flex: 1;
  padding-left: 10px;
}

.scoreboard-row .team-score {
  color: var(--grey);
  font-family: "Share Tech Mono", monospace;
}

.scoreboard-row .team-score.leading {
  color: var(--gold);
  font-weight: 700;
}

/* ==================== REVEAL SCREEN ====================*/
#check-x {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.result-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid;
}

.correct-icon {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--green);
}

.wrong-icon {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--red);
}

@keyframes popFade {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
  }
  65% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#check-x.animate .result-icon {
  animation: popFade 1.4s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#answer-correct-incorrect {
  font-size: 2rem;
  font-family: "Orbitron", sans-serif;
  text-align: center;
  margin-bottom: 1rem;
  animation: fadeInUp 0.4s ease 1.5s both;
}

.correct-word {
  color: var(--green);
}
.wrong-word {
  color: var(--red);
}

#repeat-statement {
  font-size: 1.5rem;
  color: var(--grey);
  text-align: center;
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  animation: fadeInUp 0.4s ease 1.6s both;
}

#its-a-myth-fact {
  font-size: 1.3rem;
  font-family: "Orbitron", sans-serif;
  text-align: center;
  margin-bottom: 1rem;
  padding: 8px 16px;
  border-radius: 6px;
  width: 100%;
  animation: fadeInUp 0.4s ease 1.7s both;
}

.truth-myth {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.truth-fact {
  color: var(--purple);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

#answer-explanation {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  padding: 1.25rem;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.4s ease 1.8s both;
}

#points-awarded {
  background: rgba(245, 158, 11, 0.08);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.4s ease 1.9s both;
}

#next-question {
  width: 100%;
  background: #0a0a2a;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  border-radius: 8px;
  padding: 14px;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  animation: fadeInUp 0.4s ease 2s both;
  margin-bottom: 2rem;
}

#next-question:hover {
  background: rgba(34, 211, 238, 0.1);
}

/* ==================== RESULTS SCREEN ====================*/
#winner-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.winner-overlay-text {
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  color: rgba(245, 158, 11, 0.7);
  letter-spacing: 4px;
  margin-bottom: 0.75rem;
}

.winner-overlay-name {
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
  color: var(--gold);
  text-align: center;
}

@keyframes winnerPop {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  35% {
    transform: scale(1.06);
  }
  50% {
    transform: scale(1);
  }
  65% {
    transform: scale(1.06);
  }
  80% {
    transform: scale(1);
  }
  90% {
    transform: scale(1.06);
  }
  96% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

#winner-animation.animating .winner-overlay-text,
#winner-animation.animating .winner-overlay-name {
  animation: winnerPop 3.5s ease forwards;
}

@keyframes starShoot {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1.2);
  }
}

.burst-star {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 18px;
  height: 18px;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: starShoot 2s ease forwards;
}

.burst-star.star-1 {
  --tx: -160px;
  --ty: -130px;
  background: var(--cyan);
  width: 22px;
  height: 22px;
}
.burst-star.star-2 {
  --tx: 160px;
  --ty: -130px;
  background: var(--gold);
  width: 18px;
  height: 18px;
}
.burst-star.star-3 {
  --tx: -180px;
  --ty: 10px;
  background: var(--purple);
  width: 24px;
  height: 24px;
}
.burst-star.star-4 {
  --tx: 180px;
  --ty: 10px;
  background: var(--green);
  width: 16px;
  height: 16px;
}
.burst-star.star-5 {
  --tx: -90px;
  --ty: 150px;
  background: var(--gold);
  width: 20px;
  height: 20px;
}
.burst-star.star-6 {
  --tx: 90px;
  --ty: 150px;
  background: var(--cyan);
  width: 22px;
  height: 22px;
}
.burst-star.star-7 {
  --tx: 0px;
  --ty: -180px;
  background: var(--gold);
  width: 26px;
  height: 26px;
}
.burst-star.star-8 {
  --tx: -130px;
  --ty: -50px;
  background: var(--green);
  width: 14px;
  height: 14px;
}
.burst-star.star-9 {
  --tx: 130px;
  --ty: -50px;
  background: var(--purple);
  width: 18px;
  height: 18px;
}
.burst-star.star-10 {
  --tx: 50px;
  --ty: 170px;
  background: var(--gold);
  width: 20px;
  height: 20px;
}
.burst-star.star-11 {
  --tx: -50px;
  --ty: 170px;
  background: var(--cyan);
  width: 16px;
  height: 16px;
}
.burst-star.star-12 {
  --tx: 200px;
  --ty: -70px;
  background: var(--red);
  width: 22px;
  height: 22px;
}
.burst-star.star-13 {
  --tx: -200px;
  --ty: -70px;
  background: var(--gold);
  width: 18px;
  height: 18px;
}
.burst-star.star-14 {
  --tx: 110px;
  --ty: -160px;
  background: var(--green);
  width: 14px;
  height: 14px;
}
.burst-star.star-15 {
  --tx: -110px;
  --ty: -160px;
  background: var(--cyan);
  width: 20px;
  height: 20px;
}

#solo-score-banner,
#winner-banner {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(245, 158, 11, 0.06);
  border: 2px solid var(--gold);
  border-radius: 10px;
}

#solo-score-banner h4,
#winner-banner h4 {
  color: rgba(245, 158, 11, 0.7);
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

#final-solo-score,
#winning-team {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

#winning-score {
  color: rgba(245, 158, 11, 0.7);
  font-size: 1rem;
}

#final-scoreboard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

#final-scoreboard h4 {
  color: var(--grey);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.final-rank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.final-rank-row:last-child {
  border-bottom: none;
}

.final-rank-row .rank {
  color: var(--grey);
  min-width: 24px;
  font-size: 0.8rem;
}

.final-rank-row .team-name {
  color: var(--white);
  flex: 1;
  padding-left: 10px;
}

.final-rank-row .team-score {
  color: var(--grey);
  font-family: "Share Tech Mono", monospace;
}

.final-rank-row .team-score.gold {
  color: var(--gold);
  font-weight: 700;
}

#final-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

#number-correct,
#accuracy,
#personal-best {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  font-family: "Share Tech Mono", monospace;
  color: var(--purple);
  font-size: 0.95rem;
}

#personal-best {
  grid-column: 1 / -1;
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.2);
}

#personal-best.new-best {
  color: var(--green);
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.06);
}

#result-screen-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

#play-again {
  background: #0a0a2a;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  border-radius: 8px;
  padding: 13px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

#play-again:hover {
  background: rgba(34, 211, 238, 0.1);
}

#explore-btn {
  background: #0a0a2a;
  border: 2px solid var(--purple);
  color: var(--purple);
  border-radius: 8px;
  padding: 13px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

#explore-btn:hover {
  background: rgba(168, 85, 247, 0.1);
}

/* ==================== GALLERY SCREEN ====================*/
#gallery-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

#gallery-title {
  color: var(--purple);
  margin-bottom: 0.5rem;
}

#gallery-subtitle {
  color: var(--grey);
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

#viewed-count {
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
}

#gallery-filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.filter-buttons {
  background: #0a0a2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--grey);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.8rem;
  cursor: pointer;
}

.filter-buttons:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.filter-buttons.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.06);
}

.level-cards {
  margin-bottom: 2rem;
  margin-top: 0;
}

.level-cards h5 {
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

#explorer-level-statements,
#astronaut-level-statements,
#scientist-level-statements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  position: relative;
}

.gallery-card:hover {
  border-color: var(--cyan);
}
.gallery-card.viewed {
  border-color: rgba(34, 197, 94, 0.3);
}

.gallery-level-tag {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 0.5rem;
  font-family: "Share Tech Mono", monospace;
}

.gallery-statement {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.6;
}

.viewed-checkmark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-menu-button,
#back-to-menu-button-top {
  display: block;
  width: 100%;
  background: #0a0a2a;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  border-radius: 8px;
  padding: 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 1.5rem;
}
#back-to-menu-button-top {
  width: 25%;
  align-self: flex-end;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

#back-to-menu-button:hover,
#back-to-menu-button-top:hover {
  background: rgba(34, 211, 238, 0.1);
}

/* ==================== LIGHTBOX ====================*/
#level-label {
  font-size: 0.95rem;
  color: var(--gold);
  font-family: "Share Tech Mono", monospace;
  margin-bottom: 0.75rem;
}

#level-statement {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-family: "Share Tech Mono", monospace;
}

#light-box-myth-fact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

#myth-lightbox-button {
  background: rgba(34, 211, 238, 0.1);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  border-radius: 8px;
  padding: 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

#myth-lightbox-button:hover:not(:disabled) {
  background: rgba(34, 211, 238, 0.2);
}

#fact-lightbox-button {
  background: rgba(168, 85, 247, 0.1);
  border: 2px solid var(--purple);
  color: var(--purple);
  border-radius: 8px;
  padding: 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

#fact-lightbox-button:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.2);
}

#myth-lightbox-button:disabled,
#fact-lightbox-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#lightbox-reveal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.lightbox-answer-correct {
  font-family: "Orbitron", sans-serif;
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15rem;
}

.lightbox-answer-wrong {
  font-family: "Orbitron", sans-serif;
  color: var(--red);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15rem;
}

#lightbox-explanation {
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.8;
}

#next-close-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

#next-lightbox {
  background: #0a0a2a;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  border-radius: 8px;
  padding: 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}

#next-lightbox:hover {
  background: rgba(34, 211, 238, 0.1);
}

#close-lightbox {
  background: #0a0a2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--grey);
  border-radius: 8px;
  padding: 10px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}

#close-lightbox:hover {
  border-color: var(--grey);
}

/* ==================== RESPONSIVE ====================*/
@media (max-width: 600px) {
  #play-explore-selection,
  #solo-group-classroom-selection {
    flex-direction: column;
  }

  #level-card-display {
    flex-direction: column;
  }

  .level-card {
    width: 100%;
  }

  #explorer-level-statements,
  #astronaut-level-statements,
  #scientist-level-statements {
    grid-template-columns: 1fr;
  }

  #result-screen-btns {
    grid-template-columns: 1fr;
  }

  #final-stats {
    grid-template-columns: 1fr;
  }

  #personal-best {
    grid-column: 1;
  }

  #next-close-buttons,
  #light-box-myth-fact-buttons {
    grid-template-columns: 1fr;
  }

  .winner-overlay-name {
    font-size: 1.5rem;
  }
}
