:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --border: #475569;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.card {
  width: 100%;
  max-width: 420px;
  margin: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
}

.step-label {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 1.4rem;
  margin: 0.5rem 0 1.5rem;
}

p.lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

label.field {
  display: block;
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

input[type="text"],
select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
}

.choice label {
  flex: 1;
  cursor: pointer;
}

button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #334155;
  color: var(--text);
}

button:hover {
  filter: brightness(1.1);
}

.route-note {
  text-align: left;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.5;
}

.goal-emoji {
  font-size: 3rem;
}

.summary {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.summary div {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
}

.summary span:first-child {
  color: var(--muted);
}

.error {
  text-align: left;
  color: #f87171;
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

.hidden {
  display: none;
}

a.restart {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--accent);
  font-size: 0.9rem;
}
