body {
    font-family: sans-serif;
    background: #222;
    color: #fff;
    text-align: center;
    margin-top: 20px;
  }
  
  #game-container {
    position: relative;
    width: 400px;
    margin: 0 auto;
  }
  
  canvas {
    background: #111;
    display: block;
    border: 2px solid #444;
  }
  
  #score {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  #game-over {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px #000;
    z-index: 10;
  }
  
  #game-over h2 {
    margin: 0 0 10px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 16px;
    background: lime;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
  }
  
  #player-name {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
    border: none;
    width: 90%;
  }
  
  #countdown {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 5px black;
    z-index: 5;
  }
  
  #start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
  }
  #start-btn {
    margin-top: 20px;
  }
  
  #instructions {
    margin-top: 15px;
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
  }
  
  #leaderboard {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px #000;
    z-index: 10;
  }
  
  #leaderboard h2 {
    margin-top: 0;
  }
  
  #leaderboard-list {
    text-align: left;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
  }
  
  #leaderboard-list div {
    padding: 5px 0;
    border-bottom: 1px solid #333;
  }
  
  #leaderboard-list div:nth-child(1) {
    color: gold;
    font-weight: bold;
  }
  
  #leaderboard-list div:nth-child(2) {
    color: silver;
  }
  
  #leaderboard-list div:nth-child(3) {
    color: #cd7f32; /* bronze */
  }

.section--game .section__content {
  background: linear-gradient(180deg,#d11a1a,#ca2222);
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: 400px;
}

#game-score {
  font-size: 24px;
  margin-bottom: 10px;
  color: white;
}

#game-wrapper {
  position: relative;
  width: 400px;
  margin: 0 auto;
}

#game-canvas {
  background: #111;
  display: block;
  border: 2px solid #444;
  margin: 0 auto;
}

#game-countdown {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  font-weight: bold;
  color: rgb(255, 255, 255);
  text-shadow: 2px 2px 5px black;
  z-index: 5;
}

#game-start-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  text-align: center;
}

#game-start-btn {
  margin-top: 20px;
}

#game-instructions {
  margin-top: 15px;
  font-size: 14px;
  color: #ccc;
  line-height: 1.4;
}

#game-over-screen {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px #000;
  z-index: 10;
  text-align: center;
}

#game-over-screen h3 {
  margin: 0 0 10px;
  color: white;
}

#game-player-name {
  padding: 8px;
  font-size: 16px;
  border-radius: 5px;
  margin-bottom: 10px;
  border: none;
  width: 90%;
}

#game-leaderboard {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px #000;
  z-index: 10;
}

#game-leaderboard h3 {
  margin-top: 0;
  color: white;
}

#game-leaderboard-list {
  text-align: left;
  margin: 15px 0;
  max-height: 300px;
  overflow-y: auto;
  color: white;
}

#game-leaderboard-list div {
  padding: 5px 0;
  border-bottom: 1px solid #333;
}

#game-leaderboard-list div:nth-child(1) {
  color: gold;
  font-weight: bold;
}

#game-leaderboard-list div:nth-child(2) {
  color: silver;
}

#game-leaderboard-list div:nth-child(3) {
  color: #cd7f32; /* bronze */
}