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

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  overflow: hidden;
  background: #0a0a12;
  font-family: 'Press Start 2P', monospace;
}

canvas { display: block; }

#ui-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 10;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#title-box {
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 22px;
  color: #e8e0d4;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#controls-box {
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 22px;
  color: #8a8578;
  font-size: 8px;
  line-height: 2.2;
  letter-spacing: 1px;
}

.key {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 2px 7px;
  color: #c8c0b4;
  margin: 0 2px;
}

#minimap {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 160px;
  height: 160px;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  z-index: 10;
  overflow: hidden;
}

#minimap-canvas {
  width: 100%;
  height: 100%;
}

#day-cycle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  color: #8a8578;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  z-index: 10;
  letter-spacing: 1px;
}

#creature-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 22px;
  color: #e8e0d4;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  z-index: 10;
  letter-spacing: 1px;
  white-space: nowrap;
}

#fade-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#minigame-hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 10;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#mg-title {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 200, 0, 0.2);
  border-radius: 12px;
  padding: 14px 22px;
  color: #ffdd44;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#mg-controls {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 22px;
  color: #8a8578;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  line-height: 2.2;
  letter-spacing: 1px;
}
