html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background-color: #000;
}

#game-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#game-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

#pc-instructions {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  color: #ffffff;
  font-family: monospace;
  font-size: 16px;
  pointer-events: none;
  z-index: 100;
}

#left-instruction,
#right-instruction {
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 6px;
}

#game-notes {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  color: #ffffff;
  font-family: monospace;
  font-size: 14px;
  pointer-events: none;
  z-index: 100;
}

#note-left, #note-right {
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 6px;
  pointer-events: auto;
}

#mobile-ui {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 35svh;
  z-index: 10;
  pointer-events: none;
}

#joystick-container {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 120px;
  height: 120px;
  z-index: 11;
  pointer-events: auto;
}

#interact-button {
  position: absolute;
  right: 60px;
  bottom: 50px;
  width: 64px;
  height: 64px;
  opacity: 1;
  z-index: 11;
  pointer-events: auto;
  display: none;
}

#mobile-warning {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%); /* Centers the element horizontally */
    padding: 8px 16px;
    background-color: rgba(255, 204, 0, 0.8);
    color: #333;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    z-index: 12;
    pointer-events: none;
    /* --- The changes are below --- */
    width: 90%; /* Use a percentage to make it responsive */
    max-width: 400px; /* Optional: Sets a maximum width on larger phones/tablets */
    text-align: center;
}

@media (min-width: 769px) {
  #mobile-ui {
    display: none;
  }
}

@media (max-width: 768px) {
  #pc-instructions {
    display: none;
  }
  #game-notes {
    display: none;
  }
}