:root {
  --bg: #0d1b2a;
  --paper: #fdf8ef;
  --ink: #2b2118;
  --accent: #b3261e;
  --gold: #c9a227;
  --muted: #7a6a58;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1b3350, var(--bg) 70%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1rem;
}

.book {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  background: var(--paper);
  border-radius: 6px;
  padding: 2.5rem 2.5rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  border-top: 6px solid var(--accent);
}

header { text-align: center; margin-bottom: 2rem; }
.eyebrow {
  margin: 0;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 { margin: .25rem 0 0; font-size: 2.2rem; color: var(--accent); }

#scene { animation: fade .5s ease; }
#scene h2 { font-size: 1.3rem; margin: 0 0 1rem; }
#scene-text p { line-height: 1.7; font-size: 1.1rem; margin: 0 0 1rem; }

#choices {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1.5rem;
}

#choices button, #restart {
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: background .15s, transform .15s;
}

#choices button {
  text-align: left;
  padding: .8rem 1rem;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid #e0d6c4;
  border-left: 4px solid var(--gold);
}
#choices button:hover, #choices button:focus-visible {
  background: #fff6e0;
  transform: translateX(3px);
  outline: none;
}

.the-end {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  margin-top: 1.5rem;
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e8dfcf;
  text-align: center;
}
#restart {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .9rem;
  text-decoration: underline;
}
#restart:hover { color: var(--accent); }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Schnee */
#snow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.flake {
  position: absolute;
  top: -10px;
  color: #fff;
  opacity: .8;
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translateY(110vh) translateX(var(--drift, 20px)); }
}

@media (prefers-reduced-motion: reduce) {
  #snow { display: none; }
  #scene { animation: none; }
}

@media (max-width: 500px) {
  body { padding: 1.5rem .75rem; }
  .book { padding: 1.75rem 1.25rem 1rem; }
  h1 { font-size: 1.7rem; }
}
