html, body {
  overflow-x: hidden;
}

.map-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 12px 4px;
}

#map-svg {
  width: 100%;
  height: auto;
  display: block;
  background: #fafafa;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.instruction-card {
  margin: 12px 14px;
  padding: 14px 16px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.instruction-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 10px;
  font-weight: bold;
}

.replay-btn {
  font-size: 16px;
  padding: 10px 20px;
  background: var(--color-accent);
}

/* ── Choices ── */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px 14px 24px;
}

.choice-btn {
  background: var(--color-card);
  border: 3px solid #eee;
  border-radius: var(--radius);
  padding: 14px 8px;
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.choice-btn .choice-icon {
  font-size: 30px;
}

.choice-btn:active {
  transform: scale(0.96);
}

.choice-btn.correct {
  background: #d4edda;
  border-color: var(--color-correct);
  color: #2d7a3a;
}

.choice-btn.wrong {
  background: #fde2e2;
  border-color: var(--color-wrong);
  color: #c0392b;
}

/* ── SVG elements ── */
.street {
  stroke: #c8c8c8;
  stroke-width: 14;
  stroke-linecap: round;
}

.shop-icon {
  font-size: 26px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.shop-bg {
  fill: #fff;
  stroke: #888;
  stroke-width: 1.5;
}

.boy-group {
  transition: transform 0.45s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.boy-arrow {
  fill: #ff5b8a;
}

.path-trail {
  fill: none;
  stroke: #ffb3c5;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.3s;
}

.path-trail.show {
  opacity: 0.85;
}

/* ── Feedback ── */
.feedback {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 200;
}

.feedback.show { opacity: 1; }
.feedback.correct { color: var(--color-correct); }
.feedback.wrong { color: var(--color-wrong); }

/* ── Result ── */
.result {
  text-align: center;
  padding: 40px 20px;
}

.result h2 {
  font-size: 36px;
  color: var(--color-primary);
}

.result .score {
  font-size: 24px;
  margin: 20px 0;
}

.result .candy-get {
  font-size: 64px;
  margin: 20px 0;
}

.result button {
  margin: 10px 8px;
  font-size: 18px;
}
