/* Game Screen */
#game-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  opacity: 0;
}

#game-screen.fade-in {
  opacity: 1;
  display: flex;
}

#game-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 800px;
  margin-bottom: 20px;
  padding: 0 20px;
}

#score {
  font-size: 1.5em;
  font-weight: bold;
  color: #FCAD72;
}

#game-info {
  font-size: 1.2em;
  color: white;
}

#gameCanvas {
  border: 3px solid white;
  border-radius: 10px;
  background-image: url('../assets/game_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Game Over Screen */
#game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, #FCAD72, #736FA3);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

#game-over h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: white;
}

#final-score {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: white;
  font-weight: bold;
}

/* Multiplayer specific styles */
.multiplayer-ui {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
}

.player-info {
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 10px;
  text-align: center;
}

.player-info.player1 {
  border: 3px solid #FCAD72;
}

.player-info.player2 {
  border: 3px solid #736FA3;
}

.player-name {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.player-score {
  font-size: 1.5em;
  color: #FCAD72;
}

/* Game controls info */
.controls-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9em;
  color: white;
  text-align: center;
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #FCAD72;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
