.fx-compass { display: grid; gap: 14px; }
.fx-compass .fx-wrap { display: grid; gap: 14px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.5; }
.fx-compass .fx-wrap p { margin: 0; }
.fx-compass .fx-steps { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0; }
.fx-compass .fx-goal { font-weight: 700; }
.fx-compass .fx-hint { font-size: 14px; }
.fx-compass .fx-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
.fx-compass .fx-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-compass .fx-map { box-sizing: border-box; height: 440px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fx-compass .fx-face { --fx-bearing: 0; position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; flex: 0 0 auto; }
.fx-compass .fx-face > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-compass .fx-dot { position: absolute; z-index: 3; left: var(--fx-x); top: var(--fx-y); transform: translate(-50%, -50%); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; min-width: 44px; min-height: 36px; padding: 4px 5px; border: 2px solid var(--fx-ink); border-radius: 10px; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; line-height: 1.1; cursor: pointer; }
.fx-compass .fx-dot::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--fx-ink); }
.fx-compass .fx-dot:has(input:checked) { color: var(--fx-ink); background: var(--fx-sky-pale); border-color: var(--fx-ink); }
.fx-compass .fx-dot:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-compass .fx-ring { fill: none; stroke: var(--fx-muted); stroke-width: 1.5; }
.fx-compass .fx-north { fill: none; stroke: var(--fx-coral); stroke-width: 5; stroke-linejoin: round; }
.fx-compass .fx-arc { fill: none; stroke: var(--fx-sky); stroke-width: 7; stroke-dasharray: calc(var(--fx-bearing) * 1.6580627894) 596.9026042; transition: stroke-dasharray 0.45s; }
.fx-compass .fx-car { fill: var(--fx-muted); stroke: var(--fx-ink); stroke-width: 2; }
.fx-compass .fx-cafe-wall { fill: var(--fx-sun); stroke: var(--fx-ink); stroke-width: 2; }
.fx-compass .fx-cafe-roof { fill: var(--fx-coral); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-compass .fx-cup { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-compass .fx-cafe-halo { visibility: hidden; fill: var(--fx-mint-pale); stroke: var(--fx-ink); stroke-width: 2; }
.fx-compass .fx-square { visibility: hidden; fill: none; stroke: var(--fx-sky); stroke-width: 3; }
.fx-compass .fx-arrow { transform-origin: 160px 160px; transform: rotate(calc(var(--fx-bearing) * 1deg)); transition: transform 0.45s; }
.fx-compass .fx-arrow-shaft { fill: none; stroke: var(--fx-ink); stroke-width: 3; }
.fx-compass .fx-arrow-head { fill: var(--fx-ink); }
.fx-compass .fx-part { position: absolute; z-index: 2; padding: 0 2px; background: var(--fx-paper); color: var(--fx-ink); font-size: 12px; line-height: 1.4; font-weight: 700; }
.fx-compass .fx-north-label { left: 50%; top: 0; transform: translateX(-50%); white-space: nowrap; }
.fx-compass .fx-car-label { left: 50%; top: 55%; transform: translateX(-50%); white-space: nowrap; }
.fx-compass .fx-cafe-label { left: 51%; top: 66%; }
.fx-compass .fx-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; width: 100%; }
.fx-compass .fx-key-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.3; }
.fx-compass .fx-key-item small { font-size: 12px; }
.fx-compass .fx-key svg { flex: 0 0 28px; width: 28px; height: 24px; }
.fx-compass .fx-key-arrow { fill: none; stroke: var(--fx-ink); stroke-width: 2.5; }
.fx-compass .fx-key-turn { fill: none; stroke: var(--fx-sky); stroke-width: 2.5; }
.fx-compass .fx-feedback { display: grid; }
.fx-compass .fx-feedback .fx-result { display: block; grid-area: 1 / 1; visibility: hidden; }
.fx-compass .fx-result .fx-score { display: block; margin-bottom: 6px; color: var(--fx-ink); font-size: 24px; line-height: 1.2; }
.fx-compass:has(#fx-compass-042:checked) .fx-face { --fx-bearing: 42; }
.fx-compass:has(#fx-compass-090:checked) .fx-face { --fx-bearing: 90; }
.fx-compass:has(#fx-compass-127:checked) .fx-face { --fx-bearing: 127; }
.fx-compass:has(#fx-compass-180:checked) .fx-face { --fx-bearing: 180; }
.fx-compass:has(#fx-compass-225:checked) .fx-face { --fx-bearing: 225; }
.fx-compass:has(#fx-compass-270:checked) .fx-face { --fx-bearing: 270; }
.fx-compass:has(#fx-compass-315:checked) .fx-face { --fx-bearing: 315; }
.fx-compass:has(#fx-compass-090:checked) .fx-square { visibility: visible; }
.fx-compass:has(#fx-compass-127:checked) .fx-cafe-halo { visibility: visible; }
.fx-compass:has(#fx-compass-000:checked) .fx-r000, .fx-compass:has(#fx-compass-042:checked) .fx-r042, .fx-compass:has(#fx-compass-090:checked) .fx-r090, .fx-compass:has(#fx-compass-127:checked) .fx-r127, .fx-compass:has(#fx-compass-180:checked) .fx-r180, .fx-compass:has(#fx-compass-225:checked) .fx-r225, .fx-compass:has(#fx-compass-270:checked) .fx-r270, .fx-compass:has(#fx-compass-315:checked) .fx-r315 { visibility: visible; }
@container (max-width: 480px) { .fx-compass .fx-wrap { grid-template-columns: minmax(0, 1fr); } .fx-compass .fx-map { height: 440px; } }