k#gameHud {
  z-index: 2;
  position: absolute;
  width: 100%;
  height: 100%;
}

.player,
.gamelog,
.timer {
    z-index: 5;
}

body {
    margin: 0;
    background: black;
    overflow: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* MENU LAYER */
#startMenu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 20px 30px;
    border-radius: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
}

/* ✅ ONLY CHANGE: FULLSCREEN SCALING */
:fullscreen #startMenu {
    transform: translate(-50%, -50%) scale(1.5);
}

:-webkit-full-screen #startMenu {
    transform: translate(-50%, -50%) scale(1.5);
}

/* PLAY AGAIN BUTTON */
#playAgainBtn {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

body{
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
  overflow: hidden;
}

.center {
  margin: 0 auto;
  width: 80%;
}

.hide {
  display: none !important;
}

#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: black;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 999;
}

#logo {
    opacity: 0;
    width: 200px;

    animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

#startMenu button {
    display: block;
    margin: 10px auto;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
}

#playBtn{
  position: absolute;
  color: white;
  background-color: #123ecd;
  border-radius: 8px;
  border: none;
  padding: 10px;
  font-size: 30px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
}

#playBtn:hover{
  border: 3px solid #fff;
}

#message {
  position: absolute;
  padding-top: 15%;
  width: 100%;
  background-color: rgba(13, 198, 18, 0.5);
  z-index: 10;
  height: 100%;
  text-align: center;
  color: #eaeaea;
}

* {
  outline: none !important;
}

.player {
  padding-top: 1rem;
  border-radius: 5px;
  border: 1px solid #000;
  display: block;
  position: absolute;
  width: 200px;
  top: 5px;
  text-align: center;
  background-color: rgba(128, 128, 128, 0.75);
  border-color: rgb(128, 128, 128);
}

.player ul {
  display: inline-block;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.player ul li {
  float: left;
  padding: 0;
  margin: 0 3px;
  width: 20px;
  height: 22px;
  text-align: center;
  display: block;
  border-radius: 20px;
}

.player ul li.pocketed {
    opacity: 0.3;
    position: relative;
}

.player ul li.pocketed::after {
    content: "X";
    position: absolute;
    top: 1px;
    left: 6px;
    color: red;
    font-weight: bold;
    font-size: 14px;
    background: none;
}

.player.active {
  background-color: rgba(152, 251, 152, 0.75);
  border-color: rgb(152, 251, 152);
}

.player2 {
  right: 5px;
  background-color: #ffa500;
}

.player h5 {
  margin: 0;
  padding: 0;
  margin-top: 2px;
  margin-left: 3px;
  margin-bottom: 3px;
  color: #eaeaea;
}

.gamelog {
  padding: 0 10px;
  margin: 0;
  margin-left: 10px;
  color: #dadada;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  border: 1px solid #000;
  display: block;
  position: absolute;
  width: 300px;
  height: 20px;
  bottom: 10px;
  left: 5px;
  text-align: left;
  z-index: 2;
}

.gamelog:hover {
  height: 130px;
}

.timer {
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 3px;
  border: 1px solid #000;
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  bottom: 10px;
  right: 10px;
  text-align: center;
  font-size: 36px;
  z-index: 1;
}

/* SHOOT BUTTON */
#shootBtn {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 30;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: rgba(18, 62, 205, 0.9);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    touch-action: none;
}

/* FULLSCREEN BUTTON (UNCHANGED LIKE YOU SAID) */
#fullscreenBtn {
    position: fixed;
    bottom: 80px;
    right: 0px;
    transform: translateX(-50%);
    z-index: 9999;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
}
