#game-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px;
}

#game-header {
  display: flex;
  justify-content: space-between;
  padding: 15px 25px;
  background: #16213e;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: white;
}

#game-header span {
  font-weight: bold;
}

#score,
#combo,
#timer {
  color: #e94560;
}

#game-canvas {
  width: 100%;
  height: 500px;
  background: #0f3460;
  border: 3px solid #e94560;
  border-radius: 10px;
  display: block;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}


#game-controls {
  margin-top: 15px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


#answer-input {
  padding: 12px;
  font-size: 18px;
  width: 220px;
  border: 2px solid #e94560;
  border-radius: 6px;
  outline: none;
  background: #16213e;
  color: white;
}

#answer-input::placeholder {
  color: #94a3b8;
}

#answer-input:focus {
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.8);
}

#answer-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


#game-controls button,
#game-controls select {
  padding: 12px 22px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: #e94560;
  color: white;
  transition: 0.15s;
  font-weight: 600;
}

#game-controls button:hover,
#game-controls select:hover {
  background: #ff5b73;
}

#game-controls button:active {
  transform: scale(0.97);
}

#game-controls select {
  background: #16213e;
  border: 2px solid #e94560;
}


#end-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#end-overlay div {
  background: #ffffff;
  color: #111;
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#end-overlay h2 {
  margin: 0 0 16px 0;
  color: #e94560;
}

#end-overlay p {
  margin: 8px 0;
  font-size: 18px;
  color: #475569;
}

#end-overlay .final-score {
  font-size: 32px;
  font-weight: bold;
  color: #e94560;
  margin: 16px 0;
}

#end-overlay button {
  margin-top: 16px;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #e94560;
  color: white;
  font-weight: 600;
}

#end-overlay button:hover {
  background: #ff5b73;
}


@media (max-width: 768px) {
  #game-canvas {
    height: 400px;
  }

  #game-header {
    font-size: 16px;
    padding: 12px 16px;
  }

  #answer-input {
    width: 180px;
    font-size: 16px;
  }

  #game-controls button,
  #game-controls select {
    padding: 10px 16px;
    font-size: 14px;
  }
}