@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

#snake-game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(26, 47, 35, 0.95);
  z-index: 9999;
  display: none;
  font-family: "Inter", sans-serif;
  overflow: hidden;
}

#snake-game-container.active {
  display: block;
}

#game-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-canvas {
  display: block;
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.2);
  border: 2px solid #2e5c38;
  background-color: #1a2f23;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#score-board {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #f4f1ea;
  font-size: 24px;
  pointer-events: auto;
  background: rgba(26, 47, 35, 0.8);
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #2e5c38;
}

#score-display {
  color: #f4f1ea;
  margin-bottom: 5px;
  font-weight: bold;
}

#game-over-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 47, 35, 0.95);
  border: 2px solid #e74c3c;
  padding: 40px;
  text-align: center;
  border-radius: 12px;
  pointer-events: auto;
  box-shadow: 0 0 50px rgba(231, 76, 60, 0.3);
  min-width: 300px;
}

#game-over-screen h1 {
  color: #e74c3c;
  font-size: 48px;
  margin: 0 0 20px 0;
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

#death-reason {
  color: #f4f1ea;
  font-size: 18px;
  margin-bottom: 10px;
  opacity: 0.8;
}

#final-score {
  color: #00ff9d;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
}

#restart-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
  margin: 0 10px;
}

#restart-btn:hover {
  background: #c0392b;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

#quit-btn {
  background: transparent;
  color: #f4f1ea;
  border: 2px solid #f4f1ea;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
  margin: 0 10px;
}

#quit-btn:hover {
  background: rgba(244, 241, 234, 0.1);
  transform: scale(1.05);
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
}
