* { box-sizing: border-box; margin: 0; }
:root {
  --ink: #1c2430; --paper: #faf7f2; --accent: #1f6f43; --soft: #e8e1d5;
  --card: #ffffff; --muted: #68707c;
}
body {
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--paper);
  min-height: 100vh; display: flex; flex-direction: column;
}
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--soft); background: var(--card);
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
nav a { margin-left: 1rem; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 1.2rem 1rem 2rem; }
footer {
  border-top: 1px solid var(--soft); padding: 1rem; font-size: 0.8rem;
  color: var(--muted); max-width: 640px; margin: 0 auto; width: 100%;
}
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.8rem 0; }
h2 { font-size: 1.2rem; margin: 1rem 0 0.5rem; }
p { margin: 0.6rem 0; }
.muted { color: var(--muted); font-size: 0.9rem; }
.card {
  background: var(--card); border: 1px solid var(--soft); border-radius: 10px;
  padding: 1rem; margin: 0.9rem 0;
}
button, .btn {
  display: inline-block; font-size: 1rem; padding: 0.65rem 1.1rem; margin: 0.3rem 0.3rem 0.3rem 0;
  border: none; border-radius: 8px; background: var(--accent); color: #fff;
  cursor: pointer; text-decoration: none; text-align: center;
}
button.secondary, .btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--soft); }
button.chip { font-size: 0.8rem; padding: 0.3rem 0.7rem; background: var(--paper); color: var(--muted); border: 1px solid var(--soft); }
button:disabled { opacity: 0.5; cursor: default; }
.choice { display: block; width: 100%; text-align: left; margin: 0.4rem 0; background: var(--card); color: var(--ink); border: 1px solid var(--soft); }
.choice:hover { border-color: var(--accent); }
#board-wrap { display: flex; justify-content: center; margin: 0.8rem 0; }
#board-wrap svg { width: min(92vw, 460px); height: min(92vw, 460px); touch-action: manipulation; }
.statusbar { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--muted); }
.nudge { background: #fff8e6; border: 1px solid #eadfb8; border-radius: 8px; padding: 0.6rem; font-size: 0.85rem; }
.band { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.dest { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--soft); }
.notice { font-size: 0.85rem; color: var(--muted); }
ul { padding-left: 1.2rem; }
li { margin: 0.3rem 0; }
