:root {
  --sky: #f3ecdf;
  --ink: #1b2a4a;
  --muted: #5c564c;
  --card: #fffdf8;
  --line: #e2d3bc;
  --blue: #243056;
  --blue-dark: #18233f;
  --green: #1e8a4c;
  --gold: #e3a008;
  --shadow: 0 12px 30px rgba(27, 42, 74, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, #fff 0, transparent 42%),
    linear-gradient(180deg, #fffaf3, var(--sky));
}
button { font: inherit; color: inherit; cursor: pointer; }
h1, p { margin: 0; }

.screen { width: min(100%, 520px); margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.card {
  background: var(--card);
  border: 3px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1rem 1.4rem;
}
.kicker {
  margin: 0 0 0.35rem;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
h1 { text-align: center; font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: -0.03em; }
.lede { margin-top: 0.6rem; text-align: center; font-size: 1.25rem; color: var(--muted); }
.credit { margin-top: 0.9rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

.trail { display: flex; justify-content: center; gap: 0.45rem; margin: 0.2rem 0 0.85rem; }
.stone {
  width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: #e4d7c4; box-shadow: inset 0 0 0 2px #cbbba2;
}
.stone.is-done { background: var(--gold); box-shadow: none; }
.stone.is-now { box-shadow: inset 0 0 0 3px var(--blue); background: #fff; }

.prompt {
  text-align: center;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 800;
  margin: 0.2rem 0 0.75rem;
}
.portrait {
  display: block;
  width: min(100%, 240px);
  height: 280px;
  margin: 0 auto 0.75rem;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 18px;
  background: #efe6d6;
  box-shadow: inset 0 0 0 3px #fff, 0 8px 20px rgba(27, 42, 74, 0.12);
}

.hint {
  min-height: 2rem;
  margin: 0.2rem 0 0.7rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #9a3412;
}
.answers { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
.answers button, .go {
  min-height: 3.6rem;
  border-radius: 16px;
  border: 3px solid var(--line);
  background: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.4rem 0.7rem;
}
.answers button:focus-visible, .go:focus-visible { outline: 4px solid var(--gold); outline-offset: 2px; }
.answers button:disabled { opacity: 0.45; }
.answers button.is-right { opacity: 1; background: var(--green); border-color: var(--green); color: #fff; }
.go, .next {
  display: block; width: 100%; margin-top: 1rem; min-height: 3.8rem;
  border: 0; border-radius: 16px; background: var(--blue); color: #fff;
  font-size: 1.35rem; font-weight: 800;
}
.home {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}
.home:hover, .home:focus-visible { border-color: var(--blue); }
.home:focus-visible { outline: 4px solid var(--gold); outline-offset: 2px; }

.stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin: 0.8rem 0 0.2rem; font-size: 2.2rem; }
.stars span { color: #e4d7c4; }
.stars span.is-earned { color: var(--gold); }
.score { text-align: center; font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 800; margin-top: 0.4rem; }
