/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: radial-gradient(circle at center, #000 0%, #111 100%);
  color: #fff;
  overflow: hidden;
}

/* Game container */
.game-container {
  background: #0d0d0d;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  width: 500px;
  text-align: center;
  border: 2px solid #fff;
  animation: fadeIn 1s ease-out;
}

/* Heading */
h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-shadow: 0 0 10px #ff5555;
}

/* Scoreboard */
.score-board {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.badge {
  background: #ff5555;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 0 5px #ff5555;
}

.score {
  font-size: 1.5rem;
  margin: 0 5px;
  font-weight: bold;
  color: #50fa7b;
  text-shadow: 0 0 5px #50fa7b;
}

.separator {
  margin: 0 5px;
  color: #fff;
}

/* Choices */
.choices {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  letter-spacing: 10px;
}

.choice {
  background: #111;
  border: 2px solid #fff;
  color: #fff;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.choice:hover {
  background: #6272a4;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 10px #6272a4;
}

/* Selected effect */
.selected {
  border: 2px solid #50fa7b;
  transform: scale(1.1);
  box-shadow: 0 0 15px #50fa7b;
}

/* Result */
.result p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  animation: pulse 0.5s ease;
}

/* Reset button */
.reset-btn {
  background: darkred;
  border: none;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 5px darkred;
}

.reset-btn:hover {
  background: black;
  transform: scale(1.05);
  box-shadow: 0 0 10px red;
}

/* History */
.history {
  text-align: left;
  margin-top: 1rem;
}

.history h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #ff79c6;
}

#history-list {
  list-style-type: none;
  max-height: 120px;
  overflow-y: auto;
}

#history-list li {
  background: #44475a;
  padding: 5px 10px;
  margin-bottom: 5px;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #f8f8f2;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.game-footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  color: white;
  text-shadow: 0 0 5px darkred;
  animation: fadeIn 2s ease;
}

.game-footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.game-footer a:hover {
  color: #fff;
  text-shadow: 0 0 10px darkred;
}

/* Mobile styles */
@media (max-width: 480px) {
  /* Game container smaller */
  .game-container {
    width: 90%;
    padding: 1.5rem;
  }

  /* Heading smaller */
  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Scoreboard stacked vertically */
  .score-board {
    flex-direction: column;
    gap: 0.5rem;
  }

  .score {
    font-size: 1.2rem;
  }

  .badge {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  /* Choices stacked vertically */
  .choices {
    flex-direction: column;
    gap: 0.8rem;
    letter-spacing: 0;
  }

  .choice {
    font-size: 1rem;
    padding: 0.8rem;
  }

  /* Result smaller */
  .result p {
    font-size: 1rem;
  }

  /* Reset button smaller */
  .reset-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  /* History smaller */
  .history h2 {
    font-size: 0.9rem;
  }

  #history-list li {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  /* Footer smaller */
  .game-footer {
    font-size: 1rem;
    bottom: 5px;
  }
}
