body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
}

/* MENU + DEATH SCREEN */
.menu-screen, .death-screen {
    position: absolute;
    inset: 0;
    background: #FFC5D3;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.menu-screen input {
    padding: 12px;
    font-size: 18px;
    text-align: center;
}

.menu-screen button {
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 18px;
    background: #3a7bd5;
    border: none;
    color: white;
    transition: 0.2s;
}

.menu-screen button:hover {
    background: #5ba8ff;
}

#howToPlayButton {
    background: #09a86d;
}
#howToPlayButton:hover {
    background: #0ccc8c;
}

/* SCOREBOARD */
.scoreboard {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(20, 20, 20, 0.6);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

#scoreList {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* SHOW LEADERBOARD BUTTON */
#showLeaderboardButton {
    display: block;
    background: #3a7bd5;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* GAME CANVAS */
#gameCanvas {
    display: none;
    width: 100vw;
    height: 100vh;
    background: #FFC5D3;
}

#scoreDisplay {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
}

/* DEATH SCREEN BUTTON */
#deathScreen button {
    padding: 14px 20px;
    margin-top: 20px;
    font-size: 20px;
    border-radius: 10px;
}

/* HOW-TO PAGE */
#howtoWrapper {
    position: absolute;
    inset: 0;
    background: #FFC5D3;
    color: white;
    padding: 40px;
}

#howtoWrapper button {
    margin-top: 40px;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 10px;
    background: #3a7bd5;
    border: none;
    color: white;
    cursor: pointer;
}
body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
  }
  .menu-screen,
  .death-screen {
    position: absolute;
    inset: 0;
    background: #ffc5d3;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
  }
  .menu-screen input {
    padding: 12px;
    font-size: 18px;
    text-align: center;
  }
  .menu-screen button {
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 18px;
    background: #3a7bd5;
    border: none;
    color: white;
    transition: 0.2s;
  }
  .menu-screen button:hover {
    background: #5ba8ff;
  }
  #howToPlayButton {
    background: #09a86d;
  }
  #howToPlayButton:hover {
    background: #0ccc8c;
  }
  .scoreboard {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(20, 20, 20, 0.6);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
  }
  #scoreList {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #gameCanvas {
    display: none;
    width: 100vw;
    height: 100vh;
    background: #ffc5d3;
  }
  #scoreDisplay {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
  }
  #deathScreen {
    display: none;
  }
  #deathScreen button {
    padding: 14px 20px;
    margin-top: 20px;
    font-size: 20px;
    border-radius: 10px;
  }
  #howtoWrapper {
    position: absolute;
    inset: 0;
    background: #ffc5d3;
    color: white;
    padding: 40px;
  }
  #howtoWrapper button {
    margin-top: 40px;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 10px;
    background: #3a7bd5;
    border: none;
    color: white;
    cursor: pointer;
  }