.guiding .map-wrap { min-height: 560px; }
.nav-hud {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  right: 58px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: #1a2b5f;
  color: #fff;
  box-shadow: 0 12px 28px rgba(10, 16, 36, .35);
}
.nav-arrow {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f3d48a;
  color: #1a2b5f;
}
.nav-arrow svg {
  width: 54px;
  height: 54px;
  transform: rotate(var(--turn));
  transition: transform .35s ease;
}
.nav-copy { min-width: 0; }
.nav-distance {
  margin: 0;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -.6px;
  line-height: 1;
}
.nav-instruction {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}
.nav-meta {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  opacity: .86;
}
.nav-hud.is-arrived { background: #8a6728; color: #fff8ef; }
.nav-hud.is-arrived .nav-arrow { background: #fff8ef; color: #8a6728; }
.nav-hud.is-off { background: #3d3428; }
.nav-recenter, .nav-compass {
  position: absolute;
  z-index: 500;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff8ef;
  color: #1a2b5f;
  box-shadow: 0 8px 18px rgba(10, 16, 36, .2);
}
.nav-recenter { right: 12px; bottom: 14px; }
.nav-compass { right: 12px; bottom: 66px; }
.nav-recenter.needed { background: #1a2b5f; color: #fff; }
.nav-recenter svg, .nav-compass svg { width: 22px; height: 22px; }
.guiding .leaflet-top.leaflet-left { top: auto; bottom: 12px; }
.nav-puck { background: transparent; border: 0; }
.nav-puck span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin: 9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2469ba;
  box-shadow: 0 0 0 7px rgba(36, 105, 186, .28);
}
.nav-puck i {
  position: absolute;
  left: 2px;
  top: -16px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 16px solid #2469ba;
  transform-origin: 7px 25px;
}
.quiz-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f3d48a;
  color: #1a2b5f;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}
.route-stop { display: flex; }
.quiz-card { padding: 28px 22px 22px; }
.quiz-card h2 { color: var(--navy); margin: 8px 36px 8px 0; }
.quiz-place, .quiz-progress { color: var(--muted); font-size: 13px; }
.quiz-question { margin: 14px 0; font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  color: var(--ink);
  text-align: left;
  font-size: 16px;
  line-height: 1.35;
}
.quiz-option.is-correct { background: #e5f2e8; border-color: #2f6b4f; color: #1d3b2c; }
.quiz-option.is-wrong { background: #f8e8e4; border-color: #8a3a32; color: #5c241f; }
.quiz-why { margin: 14px 0; font-size: 15px; line-height: 1.5; }
.quiz-score-number { margin: 8px 0; font-size: 48px; font-weight: 750; letter-spacing: -1px; color: var(--navy); line-height: 1; }
.quiz-score-number small { margin-left: 6px; font-size: 18px; color: var(--muted); }
.quiz-total { font-weight: 700; }
.quiz-actions { flex-wrap: wrap; }
.quiz-score-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.quiz-score-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.quiz-score-list strong { color: var(--navy); }
@media (max-width: 900px) {
  .guiding .map-wrap { min-height: 68vh; }
  .guiding .map-canvas, .guiding.route-layout .map-canvas { height: 68vh; min-height: 460px; }
}
@media (max-width: 680px) {
  .nav-hud { right: 12px; top: 8px; }
  .nav-distance { font-size: 26px; }
  .nav-arrow { width: 64px; height: 64px; flex-basis: 64px; }
  .nav-arrow svg { width: 44px; height: 44px; }
  .guiding .current-stop-photo { height: 112px; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-arrow svg { transition: none; }
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .quiz-option.is-correct { background: #1d3b2c; color: #e5f2e8; }
  :root[data-theme="system"] .quiz-option.is-wrong { background: #4a2420; color: #f8e8e4; }
}
:root[data-theme="dark"] .quiz-option.is-correct { background: #1d3b2c; color: #e5f2e8; }
:root[data-theme="dark"] .quiz-option.is-wrong { background: #4a2420; color: #f8e8e4; }
