@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  margin: 0;
  padding: 0;
  background-color: #202020;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: 'Press Start 2P', cursive, monospace;
  overflow: hidden;
}

#game-container {
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  border: 4px solid #fff;
}

canvas {
  display: block;
  background-color: #5c94fc; /* Mario Sky Blue */
  image-rendering: pixelated;
}

#ui-layer {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  font-size: 16px;
  pointer-events: none;
  z-index: 10;
}

#controls {
  font-size: 10px;
  opacity: 0.8;
  text-align: right;
}

#message-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 20;
  transition: opacity 0.3s;
}

#message-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#message-title {
  font-size: 40px;
  margin-bottom: 20px;
  color: #ffce00;
  text-shadow: 4px 4px 0 #d32f2f;
}
