/* Retro terminal look for text-adventure story pages.
   Include alongside /css/style.css — this only styles .terminal-* and .choices. */

.terminal-window {
  max-width: 720px;
  margin: 30px auto;
  background: #c0c0c0;
  padding: 4px;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #555555;
  border-right: 3px solid #555555;
}

.terminal-titlebar {
  background: #000080;
  color: #ffffff;
  font-family: "Consolas", "Courier New", monospace;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 4px 10px;
  margin-bottom: 4px;
}

.terminal-screen {
  position: relative;
  overflow: hidden;
  background: #001a00;
  color: #33ff33;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.6;
  padding: 24px;
  min-height: 240px;
  text-shadow: 0 0 4px rgba(51, 255, 51, 0.6);
}

/* faint CRT scanlines */
.terminal-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
}

.story-text {
  margin: 0 0 18px 0;
  white-space: pre-wrap;
}

.choices {
  list-style: none;
  margin: 24px 0 0 0;
  padding: 0;
}

.choices li {
  margin: 6px 0;
}

.choices a {
  display: inline-block;
  color: #33ff33;
  text-decoration: none;
  font-weight: bold;
}

.choices a:hover,
.choices a:focus {
  color: #001a00;
  background: #33ff33;
}

.choices a.choice-disabled {
  color: #1f6b1f;
  cursor: default;
  pointer-events: none;
}

.choices .locked {
  font-weight: normal;
  font-style: italic;
}

.cursor-line {
  margin: 18px 0 0 0;
}

.cursor {
  animation: terminal-blink 1s step-start infinite;
}

@keyframes terminal-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
  }
}

@media (max-width: 600px) {
  .terminal-window {
    margin: 16px 8px;
  }

  .terminal-screen {
    padding: 16px;
    font-size: 15px;
  }
}
