@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'VT323', monospace;
}

canvas {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
}

.dialogue-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  background: #000;
  border: 3px solid #fff;
  border-radius: 4px;
  padding: 12px 16px;
  z-index: 100;
  color: #fff;
}

#dialogue-name {
  font-size: 18px;
  color: #ffdd88;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

#dialogue-text {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  min-height: 60px;
}

#dialogue-continue {
  text-align: right;
  font-size: 18px;
  color: #aaa;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

#battle-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  color: #fff;
}