@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'VT323', monospace;
  background: #000;
  color: #0f0;
  overflow-x: hidden;
  line-height: 1.6;
  transition: all 1s ease;
}

body.tartarus {
  background: linear-gradient(180deg, #1a0a2e 0%, #0f0514 100%);
  color: #c084fc;
}

body.asphodel {
  background: linear-gradient(180deg, #2d0a0a 0%, #1a0000 100%);
  color: #ff6b35;
}

body.elysium {
  background: linear-gradient(180deg, #1a3a52 0%, #0f2537 100%);
  color: #ffd700;
}

body.styx {
  background: linear-gradient(180deg, #1a4d2e 0%, #0d2818 100%);
  color: #00ff88;
}

body.hades {
  background: linear-gradient(180deg, #3d0a2e 0%, #1a0514 100%);
  color: #ff00ff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

.header {
  text-align: center;
  border: 2px solid currentColor;
  padding: 20px;
  margin-bottom: 30px;
  position: relative;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px currentColor; }
  50% { box-shadow: 0 0 20px currentColor; }
}

.header h1 {
  font-size: 3em;
  letter-spacing: 5px;
  text-shadow: 0 0 10px currentColor;
}

.biome-name {
  font-size: 1.5em;
  margin-top: 10px;
  opacity: 0.8;
}

.boon-counter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  font-size: 1.5em;
}

.boon-slot {
  width: 40px;
  height: 40px;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.boon-slot.collected {
  background: currentColor;
  color: #000;
  animation: collect 0.5s ease;
}

@keyframes collect {
  0% { transform: scale(1); }
  50% { transform: scale(1.5) rotate(180deg); }
  100% { transform: scale(1); }
}

.terminal {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid currentColor;
  padding: 20px;
  margin: 20px 0;
  font-size: 1.2em;
  min-height: 150px;
  max-height: 400px;
  overflow-y: auto;
}

.terminal-line {
  margin: 5px 0;
}

.terminal-prompt::before {
  content: attr(data-prompt);
  color: currentColor;
  margin-right: 5px;
}

.terminal-input {
  background: transparent;
  border: none;
  color: currentColor;
  font-family: 'VT323', monospace;
  font-size: 1em;
  outline: none;
  width: 70%;
}

.challenge {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid currentColor;
  padding: 30px;
  margin: 20px 0;
  display: none;
}

.challenge.active {
  display: block;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.challenge h2 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

.challenge-description {
  margin: 20px 0;
  padding: 15px;
  border-left: 3px solid currentColor;
  font-style: italic;
}

.packet-stream {
  height: 300px;
  overflow: hidden;
  position: relative;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.9);
}

.packet {
  padding: 8px;
  margin: 5px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9em;
}

.packet:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.packet.anomaly {
  color: #c084fc;
  border-color: #c084fc;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
}

.wheel {
  width: 300px;
  height: 300px;
  border: 3px solid currentColor;
  border-radius: 50%;
  position: relative;
  animation: spin 7s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wheel-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
}

.break-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  background: transparent;
  border: 2px solid currentColor;
  color: currentColor;
  font-family: 'VT323', monospace;
  font-size: 1.5em;
  cursor: pointer;
  transition: all 0.3s;
}

.break-button:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px currentColor;
}

.collision-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5em;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 0 10px currentColor;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 15px 25px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.collision-indicator.active {
  opacity: 1;
  animation: flash 0.5s ease;
}

@keyframes flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.login-form {
  max-width: 500px;
  margin: 30px auto;
}

.form-group {
  margin: 20px 0;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.form-group input {
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid currentColor;
  color: currentColor;
  font-family: 'VT323', monospace;
  font-size: 1.2em;
}

.form-group input:focus {
  outline: none;
  box-shadow: 0 0 10px currentColor;
}

.greek-image {
  text-align: center;
  font-size: 3em;
  margin: 20px 0;
  padding: 20px;
  border: 2px solid currentColor;
}

.audio-player {
  text-align: center;
  margin: 20px 0;
}

.audio-player button {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid currentColor;
  color: currentColor;
  font-family: 'VT323', monospace;
  font-size: 1.2em;
  cursor: pointer;
}

.cerberus-heads {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.head {
  text-align: center;
  padding: 20px;
  border: 2px solid currentColor;
  min-width: 150px;
  transition: all 0.5s;
}

.head.rejected {
  border-color: #ff0000;
  color: #ff0000;
}

.head.passed {
  border-color: #00ff00;
  color: #00ff00;
}

.payload-input {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid currentColor;
  color: currentColor;
  font-family: 'VT323', monospace;
  font-size: 1.2em;
  margin: 20px 0;
}

.memory-map {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid currentColor;
  padding: 20px;
  margin: 20px 0;
  font-family: monospace;
}

.buffer-input {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid currentColor;
  color: currentColor;
  font-family: 'VT323', monospace;
  font-size: 1.2em;
  margin: 20px 0;
}

.char-counter {
  text-align: right;
  font-size: 0.9em;
  opacity: 0.7;
}

.btn {
  padding: 15px 30px;
  background: transparent;
  border: 2px solid currentColor;
  color: currentColor;
  font-family: 'VT323', monospace;
  font-size: 1.3em;
  cursor: pointer;
  transition: all 0.3s;
  margin: 10px;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px currentColor;
  transform: scale(1.05);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay.active {
  display: flex;
}

.overlay-content {
  text-align: center;
  padding: 40px;
  border: 3px solid currentColor;
  max-width: 600px;
  background: #000;
}

.overlay-content h2 {
  font-size: 3em;
  margin-bottom: 20px;
}

.narrator-quote {
  font-style: italic;
  font-size: 1.3em;
  margin: 20px 0;
  padding: 20px;
  border-left: 3px solid currentColor;
}

.hint-box {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid currentColor;
  padding: 15px;
  margin: 20px 0;
  display: none;
}

.hint-box.show {
  display: block;
}

.hint-button {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid currentColor;
  color: currentColor;
  font-family: 'VT323', monospace;
  font-size: 1.1em;
  cursor: pointer;
  margin: 10px 0;
}

@media (max-width: 768px) {
  .header h1 { font-size: 2em; }
  .wheel { width: 250px; height: 250px; }
  .cerberus-heads { flex-direction: column; }
}