:root {
  --bg: #191410;
  --panel: #241c15;
  --ember: #e0a458;
  --ember-bright: #f2c078;
  --text: #f1e6d6;
  --text-dim: #c9b8a1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #2a2015 0%, var(--bg) 60%);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", serif;
  display: flex;
  justify-content: center;
}

.wrap {
  width: 100%;
  max-width: 32rem;
  padding: 1.5rem 1.25rem 3rem;
}

h1 {
  color: var(--ember-bright);
  font-size: 1.7rem;
  text-align: center;
  margin: 1rem 0 0.25rem;
}

.tagline {
  color: var(--text-dim);
  text-align: center;
  margin: 0 0 2rem;
  font-style: italic;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  color: var(--text-dim);
  font-size: 0.95rem;
}

input[type="text"] {
  background: var(--panel);
  border: 1px solid #4a3a28;
  border-radius: 0.5rem;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font-size: 1.05rem;
  font-family: inherit;
}

input[type="text"]:focus {
  outline: 2px solid var(--ember);
}

button, .play-again {
  background: linear-gradient(180deg, var(--ember-bright), var(--ember));
  border: none;
  border-radius: 0.6rem;
  color: #241505;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 0.9rem 1.1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

button:active, .play-again:active {
  transform: translateY(1px);
}

button:disabled {
  background: #5a4d3c;
  color: #a89880;
  cursor: not-allowed;
  box-shadow: none;
}

.narration {
  background: var(--panel);
  border: 1px solid #3a2c1d;
  border-radius: 0.75rem;
  padding: 1.25rem;
  line-height: 1.6;
  font-size: 1.1rem;
  margin: 1.5rem 0 2rem;
  animation: fade-in 0.6s ease-out;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.the-end {
  text-align: center;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: -1rem 0 1.5rem;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
