@font-face {
  font-family: 'OCR A';
  src: url('OCRA.otf') format('opentype');
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #121212;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
}

.textbox {
  position: fixed;
  top: 68%;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 10;
  background: #121212;
  border: 2px solid #ffffff;
  padding: 24px 32px;
  width: 500px;
  max-width: 90vw;
  height: 144px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-family: 'OCR A', monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.textbox.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#cursor {
  display: none;
  width: 0.6em;
  height: 1.1em;
  background: #ffffff;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 0.6s step-end infinite;
}

#start-btn {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  background: #121212;
  border: 2px solid #ffffff;
  padding: 18px 24px;
  font-family: 'OCR A', monospace;
  font-size: 22px;
  letter-spacing: 0.15em;
  color: #ffffff;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
  transition: opacity 0.5s ease;
}

#start-btn:hover {
  background: #ffffff;
  color: #121212;
}

#start-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

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