.fx-standhere { display: grid; gap: 16px; }
.fx-standhere .fx-inner { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.5; }
.fx-standhere .fx-inner p { margin: 0; }
.fx-standhere .fx-steps { margin: 0; padding: 0; list-style: none; }
.fx-standhere .fx-steps li + li { margin-top: 4px; }
.fx-standhere .fx-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-standhere .fx-group legend { padding: 0; margin-bottom: 8px; font-weight: 800; }
.fx-standhere .fx-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fx-standhere .fx-btn { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; min-height: 44px; padding: 10px; border: 2px solid var(--fx-ink); border-radius: 12px; background: var(--fx-paper); color: var(--fx-ink); text-align: center; line-height: 1.4; cursor: pointer; }
.fx-standhere .fx-btn:has(input:checked) { background: var(--fx-mint); color: var(--fx-ink); }
.fx-standhere .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-standhere .fx-help { padding-top: 8px; font-size: 14px; }
.fx-standhere .fx-map { position: relative; display: grid; grid-template-rows: 56px 360px 1fr; gap: 6px; box-sizing: border-box; height: 520px; padding: 12px; }
.fx-standhere .fx-map-key { display: grid; align-content: start; justify-items: start; gap: 3px; font-size: 14px; line-height: 22px; }
.fx-standhere .fx-arrow-key { border-left: 5px solid var(--fx-coral); padding-left: 7px; }
.fx-standhere .fx-canvas { --fx-x1: 90; --fx-y1: 90; --fx-x2: 230; --fx-y2: 230; --fx-x: var(--fx-x2); --fx-y: var(--fx-y2); --fx-turn: 0deg; position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; justify-self: center; align-self: start; }
.fx-standhere:has(#fx-standhere-p2:checked) .fx-canvas { --fx-x1: 230; --fx-y1: 90; --fx-x2: 90; --fx-y2: 230; }
.fx-standhere:has(#fx-standhere-p3:checked) .fx-canvas { --fx-x1: 160; --fx-y1: 80; --fx-x2: 160; --fx-y2: 240; }
.fx-standhere:has(#fx-standhere-p4:checked) .fx-canvas { --fx-x1: 80; --fx-y1: 160; --fx-x2: 240; --fx-y2: 160; }
.fx-standhere:has(#fx-standhere-p5:checked) .fx-canvas { --fx-x1: 240; --fx-y1: 160; --fx-x2: 80; --fx-y2: 160; }
.fx-standhere:has(#fx-standhere-s1:checked) .fx-canvas { --fx-x: var(--fx-x1); --fx-y: var(--fx-y1); --fx-turn: 180deg; }
.fx-standhere .fx-map-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fx-standhere .fx-map-paper { fill: var(--fx-paper); stroke: var(--fx-sky); stroke-width: 2; }
.fx-standhere .fx-map-grid { fill: none; stroke: var(--fx-sky-pale); stroke-width: 2; }
.fx-standhere .fx-dot1 { transform: translate(calc(var(--fx-x1) * 1px), calc(var(--fx-y1) * 1px)); }
.fx-standhere .fx-dot2 { transform: translate(calc(var(--fx-x2) * 1px), calc(var(--fx-y2) * 1px)); }
.fx-standhere .fx-town-dot { fill: var(--fx-ink); }
.fx-standhere .fx-spot { transform: translate(calc(var(--fx-x) * 1px), calc(var(--fx-y) * 1px)); transition: transform 0.35s; }
.fx-standhere .fx-halo { fill: var(--fx-sun-pale); stroke: var(--fx-sun); stroke-width: 4; }
.fx-standhere .fx-compass { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-standhere .fx-compass-cross { fill: none; stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-standhere .fx-centre { fill: var(--fx-coral); }
.fx-standhere .fx-compass-letter { fill: var(--fx-ink); font-size: 18px; font-weight: 800; }
.fx-standhere .fx-you { fill: var(--fx-ink); font-size: 20px; font-weight: 800; }
.fx-standhere .fx-arrows { transform-origin: 160px 160px; transform: rotate(var(--fx-turn)); transition: transform 0.35s; }
.fx-standhere .fx-arrows path { fill: none; stroke: var(--fx-coral); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.fx-standhere .fx-town-control { position: absolute; display: block; width: 112px; height: 64px; min-height: 64px; margin: 0; padding: 3px; transform: translateX(-50%); border-radius: 10px; font-size: 14px; line-height: 18px; }
.fx-standhere .fx-place1 { left: calc(var(--fx-x1) * 100% / 320); top: calc((var(--fx-y1) + 40) * 100% / 320); }
.fx-standhere .fx-place2 { left: calc(var(--fx-x2) * 100% / 320); top: calc((var(--fx-y2) + 40) * 100% / 320); }
.fx-standhere:has(#fx-standhere-p3:checked) .fx-town-control { transform: translate(-130%, -50%); }
.fx-standhere:has(#fx-standhere-p3:checked) .fx-place1 { top: calc(var(--fx-y1) * 100% / 320); }
.fx-standhere:has(#fx-standhere-p3:checked) .fx-place2 { top: calc(var(--fx-y2) * 100% / 320); }
.fx-standhere .fx-place-number { display: block; font-size: 12px; font-weight: 400; }
.fx-standhere .fx-town-names { display: grid; font-weight: 800; }
.fx-standhere .fx-town-names > span { grid-area: 1 / 1; }
.fx-standhere .fx-pair-state { visibility: hidden; }
.fx-standhere:has(#fx-standhere-p1:checked) .fx-p1, .fx-standhere:has(#fx-standhere-p2:checked) .fx-p2, .fx-standhere:has(#fx-standhere-p3:checked) .fx-p3, .fx-standhere:has(#fx-standhere-p4:checked) .fx-p4, .fx-standhere:has(#fx-standhere-p5:checked) .fx-p5 { visibility: visible; }
.fx-standhere:has(#fx-standhere-s1:checked) .fx-place1, .fx-standhere:has(#fx-standhere-s2:checked) .fx-place2 { background: var(--fx-sun-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-standhere:has(#fx-standhere-s1:focus-visible) .fx-place1, .fx-standhere:has(#fx-standhere-s2:focus-visible) .fx-place2 { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-standhere .fx-stack { display: grid; min-width: 0; }
.fx-standhere .fx-stack > p { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-standhere .fx-caption { align-self: start; font-size: 16px; line-height: 1.4; }
.fx-standhere:has(#fx-standhere-p1:checked):has(#fx-standhere-s1:checked) .fx-r11, .fx-standhere:has(#fx-standhere-p1:checked):has(#fx-standhere-s2:checked) .fx-r12, .fx-standhere:has(#fx-standhere-p2:checked):has(#fx-standhere-s1:checked) .fx-r21, .fx-standhere:has(#fx-standhere-p2:checked):has(#fx-standhere-s2:checked) .fx-r22, .fx-standhere:has(#fx-standhere-p3:checked):has(#fx-standhere-s1:checked) .fx-r31, .fx-standhere:has(#fx-standhere-p3:checked):has(#fx-standhere-s2:checked) .fx-r32, .fx-standhere:has(#fx-standhere-p4:checked):has(#fx-standhere-s1:checked) .fx-r41, .fx-standhere:has(#fx-standhere-p4:checked):has(#fx-standhere-s2:checked) .fx-r42, .fx-standhere:has(#fx-standhere-p5:checked):has(#fx-standhere-s1:checked) .fx-r51, .fx-standhere:has(#fx-standhere-p5:checked):has(#fx-standhere-s2:checked) .fx-r52 { visibility: visible; }
@container (max-width: 480px) { .fx-standhere .fx-options { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-standhere .fx-spot, .fx-standhere .fx-arrows { transition: none; } }