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

body {
  background: #0d0d0d;
  color: #d4d0c8;
  font-family: Georgia, 'Times New Roman', serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#container {
  width: 100%;
  max-width: 620px;
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 100vh;
  justify-content: center;
}

#story-text {
  line-height: 1.9;
  font-size: 1.08rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  transition: opacity 0.25s ease;
}

#story-text em {
  font-style: italic;
  color: #b0aba3;
}

#story-text.fade-out {
  opacity: 0;
}

#story-text.fade-in {
  opacity: 1;
}

#input-area {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #1c1c1c;
  padding-top: 20px;
}

.prompt-symbol {
  color: #3a3a3a;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  user-select: none;
  flex-shrink: 0;
}

#player-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #d4d0c8;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  caret-color: #d4d0c8;
}

#player-input::placeholder {
  color: #2a2a2a;
}

#player-input:disabled {
  opacity: 0.2;
  cursor: default;
}

#play-again {
  text-align: center;
}

#play-again.hidden {
  display: none;
}

#restart-btn {
  background: none;
  border: 1px solid #2a2a2a;
  color: #555;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  padding: 10px 28px;
  cursor: pointer;
  letter-spacing: 0.12em;
  transition: border-color 0.2s, color 0.2s;
}

#restart-btn:hover {
  border-color: #555;
  color: #d4d0c8;
}

@media (max-width: 600px) {
  #container {
    padding: 40px 20px;
  }
  #story-text {
    font-size: 1rem;
  }
}
