@font-face {
  font-family: 'VN';
  src: url('/fonts/PressStart2P-Regular.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}

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

body {
  background: #0a0a0c;
  color: #d4cfc6;
  font-family: 'VN', 'Courier New', monospace;
  font-size: 15px;
  line-height: 2;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  cursor: default;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

/* ── Background ── */

.bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.8s ease, opacity 0.8s ease;
  z-index: 0;
  image-rendering: auto;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* ── VN Container ── */

#vn {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
}

/* ── Text area (no box, raw on screen) ── */

#textbox {
  padding: 60px 80px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#speaker {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a9bb5;
  margin-bottom: 16px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

#speaker:empty {
  display: none;
}

#text {
  font-size: 15px;
  line-height: 2.2;
  color: #e0dbd2;
  white-space: pre-wrap;
  max-width: 800px;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(0, 0, 0, 0.7);
}

#continue-indicator {
  position: fixed;
  bottom: 30px;
  right: 40px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  animation: pulse 1.2s ease-in-out infinite;
  text-shadow: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.7; }
}

/* ── Choices ── */

#choices {
  padding: 60px 80px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

#choices .choice {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 0;
  font-family: inherit;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  letter-spacing: 0.5px;
  max-width: 800px;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(0, 0, 0, 0.7);
}

#choices .choice:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

#choices .choice:hover {
  color: #ffffff;
}

#choices .choice::before {
  content: '> ';
  color: rgba(255, 255, 255, 0.1);
  transition: color 0.2s;
}

#choices .choice:hover::before {
  color: #8a9bb5;
}

/* ── Utilities ── */

.hidden {
  display: none !important;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  #textbox {
    padding: 36px 28px;
  }

  #text {
    font-size: 13px;
    line-height: 2;
  }

  #choices {
    padding: 36px 28px;
  }

  #choices .choice {
    padding: 12px 0;
    font-size: 13px;
  }

  #continue-indicator {
    bottom: 16px;
    right: 20px;
  }
}

/* ── Scanline effect (very subtle) ── */

#vn::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}
