:root {
  font-family: system-ui, sans-serif;
  color: #242135;
  background: #f9f7fe;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 62rem; margin-inline: auto; padding: clamp(0.875rem, 3.2vw, 2rem); }
header { margin-bottom: 1.2rem; }
h1, h2, p { margin: 0; }
h1 { margin-top: 0.1em; font-size: clamp(1.7rem, 5vw, 2.8rem); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: 1.18rem; line-height: 1.2; }
.area { color: #56438d; font-size: 0.875rem; font-weight: 700; }
.task { margin-top: 0.8rem; padding: 0.6rem 0.75rem; background: #ece5fc; border-radius: 0.7rem; font-size: 0.92rem; }
.task strong { margin-right: 0.4em; }
.tour-layout { display: grid; gap: 1.15rem; align-items: start; }
.tour-map { position: relative; border: 1px solid #d5c9e6; border-radius: 0.8rem; background: #f3efe9; }
.tour-map img { display: block; width: 100%; height: auto; border-radius: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #6348af; outline-offset: 3px; }
.map-marker {
  position: absolute;
  top: var(--marker-y);
  left: var(--marker-x);
  width: clamp(1.5rem, 5.3vw, 2.35rem);
  aspect-ratio: 1;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
}
.map-marker:hover, .map-marker[aria-pressed="true"] { border-color: #3a267b; box-shadow: 0 0 0 2px #fff; }
.attribution { margin: 0.35rem 0 0; color: #4f4860; font-size: 0.78rem; text-align: right; }
.attribution a { color: inherit; }
.hint { color: #4f4860; margin-top: 0.3rem; font-size: 0.9rem; }
.stop-list, .answers { margin: 0.65rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.stop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stop-button, .answers button {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid #d5c9e6;
  border-radius: 0.65rem;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 650;
}
.stop-button { height: 100%; display: flex; align-items: center; gap: 0.4rem; overflow-wrap: anywhere; }
.stop-button[data-stop="0"] { border-color: #806bbf; background: #f0e9fb; }
.stop-button small { display: block; font-size: 0.75rem; color: #514183; }
.stop-number { display: grid; place-items: center; width: 1.45rem; aspect-ratio: 1; border-radius: 50%; flex: none; background: #5144a1; color: #fff; }
.stop-button:hover, .answers button:hover, button[aria-pressed="true"]:not(.map-marker) { background: #e7defa; }
.stop-panel { margin-top: 1rem; padding: 0.9rem; border: 1px solid #d5c9e6; border-radius: 0.8rem; background: #fff; }
.stop-panel > p { margin-top: 0.55rem; }
.action { min-height: 2.65rem; margin-top: 0.75rem; padding: 0.45rem 0.85rem; border: 0; border-radius: 0.55rem; background: #433092; color: #fff; font-weight: 650; }
.text-action { display: block; min-height: 2.65rem; padding: 0; margin-top: 0.35rem; border: 0; background: none; color: #433092; text-decoration: underline; text-underline-offset: 0.15em; }
.feedback { font-weight: 650; color: #783c15; }
.feedback[data-result="correct"] { color: #215e45; }
@media (min-width: 46rem) {
  .tour-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; }
}
