* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #d4d4d4;
  font-family: 'Creepster', cursive, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
}

h1 {
  color: #8b0000;
  font-size: 2.8em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  animation: flicker 3s infinite;
}

#status {
  margin: 15px 0;
  font-size: 1.2em;
  color: #a9a9a9;
}

#score, #level {
  color: #ff4d4d;
}

#pause-btn {
  padding: 10px 20px;
  margin: 10px;
  background: #2a2a2a;
  color: #d4d4d4;
  border: 1px solid #8b0000;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s;
}

#pause-btn:hover {
  background: #8b0000;
  color: #fff;
}

label {
  font-size: 0.9em;
  color: #a9a9a9;
}

#tts-toggle {
  vertical-align: middle;
}

#game-canvas {
  background: #1c1c1c;
  border: 2px solid #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

/* Fog effect */
#game-canvas::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

/* Animations */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 0 10px;
  }

  h1 {
    font-size: 2em;
  }

  #game-canvas {
    width: 240px;
    height: 480px;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');