.fx-string { --fx-length: 1; display: grid; }
.fx-string:has(#fx-string-c2:checked) { --fx-length: 2; }
.fx-string:has(#fx-string-c4:checked) { --fx-length: 4; }
.fx-string:has(#fx-string-c6:checked) { --fx-length: 6; }
.fx-string:has(#fx-string-c8:checked) { --fx-length: 8; }
.fx-string:has(#fx-string-c85:checked) { --fx-length: 8.5; }
.fx-string .fx-string-shell { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); }
.fx-string .fx-string-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-string .fx-string-goal { margin: 0; }
.fx-string .fx-string-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-string .fx-string-controls legend { padding: 0; margin-bottom: 12px; font-weight: 800; }
.fx-string .fx-string-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-string .fx-btn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; border: 2px solid var(--fx-muted); border-radius: 10px; background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; cursor: pointer; }
.fx-string .fx-btn:has(input:checked) { border-color: var(--fx-ink); background: var(--fx-sun-pale); color: var(--fx-ink); }
.fx-string .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-string .fx-string-hint { margin: 0; }
.fx-string .fx-string-map { box-sizing: border-box; height: 330px; min-width: 0; display: grid; place-items: center; padding: 8px; }
.fx-string .fx-string-picture { display: block; width: 100%; max-width: 360px; height: auto; }
.fx-string .fx-string-picture text { fill: var(--fx-ink); font-size: 22px; }
.fx-string .fx-string-bold { font-weight: 700; }
.fx-string .fx-string-road { stroke: var(--fx-muted); stroke-width: 15px; stroke-linecap: round; }
.fx-string .fx-string-line { stroke: var(--fx-ink); stroke-width: 3px; }
.fx-string .fx-string-flag { fill: var(--fx-coral); stroke: var(--fx-ink); stroke-width: 2px; }
.fx-string .fx-string-village { fill: var(--fx-sun-pale); stroke: var(--fx-ink); stroke-width: 2px; stroke-linejoin: round; }
.fx-string .fx-string-door { fill: none; }
.fx-string .fx-string-glow { fill: var(--fx-mint-pale); stroke: var(--fx-mint); stroke-width: 7px; opacity: 0; }
.fx-string:has(#fx-string-c85:checked) .fx-string-glow { opacity: 1; }
.fx-string:has(#fx-string-c85:checked) .fx-string-village { fill: var(--fx-mint); }
.fx-string .fx-string-cord { width: calc(var(--fx-length) * 32px); fill: var(--fx-sun); stroke: var(--fx-ink); stroke-width: 1.5px; transition: width 0.4s; }
.fx-string .fx-string-cord-ticks { stroke: var(--fx-ink); stroke-width: 2px; }
.fx-string .fx-string-t2, .fx-string .fx-string-t4, .fx-string .fx-string-t6, .fx-string .fx-string-t8, .fx-string .fx-string-t85 { visibility: hidden; }
.fx-string:has(#fx-string-c2:checked) .fx-string-t2, .fx-string:has(#fx-string-c4:checked) .fx-string-t2, .fx-string:has(#fx-string-c6:checked) .fx-string-t2, .fx-string:has(#fx-string-c8:checked) .fx-string-t2, .fx-string:has(#fx-string-c85:checked) .fx-string-t2, .fx-string:has(#fx-string-c4:checked) .fx-string-t4, .fx-string:has(#fx-string-c6:checked) .fx-string-t4, .fx-string:has(#fx-string-c8:checked) .fx-string-t4, .fx-string:has(#fx-string-c85:checked) .fx-string-t4, .fx-string:has(#fx-string-c6:checked) .fx-string-t6, .fx-string:has(#fx-string-c8:checked) .fx-string-t6, .fx-string:has(#fx-string-c85:checked) .fx-string-t6, .fx-string:has(#fx-string-c8:checked) .fx-string-t8, .fx-string:has(#fx-string-c85:checked) .fx-string-t8, .fx-string:has(#fx-string-c85:checked) .fx-string-t85 { visibility: visible; }
.fx-string .fx-string-ruler { fill: none; stroke: var(--fx-ink); stroke-width: 2px; }
.fx-string .fx-string-numbers { text-anchor: middle; }
.fx-string .fx-string-scale { fill: none; stroke: var(--fx-ink); stroke-width: 4px; }
.fx-string .fx-string-messages { display: grid; min-width: 0; }
.fx-string .fx-string-message { grid-area: 1 / 1; visibility: hidden; margin: 0; color: var(--fx-ink); }
.fx-string .fx-string-message span, .fx-string .fx-string-message strong { display: block; }
.fx-string .fx-string-message strong { margin-top: 8px; }
.fx-string:has(#fx-string-c1:checked) .fx-string-s1, .fx-string:has(#fx-string-c2:checked) .fx-string-s2, .fx-string:has(#fx-string-c4:checked) .fx-string-s4, .fx-string:has(#fx-string-c6:checked) .fx-string-s6, .fx-string:has(#fx-string-c8:checked) .fx-string-s8, .fx-string:has(#fx-string-c85:checked) .fx-string-s85 { visibility: visible; }
@container (max-width: 480px) { .fx-string .fx-string-choices { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-string .fx-string-cord { transition: none; } }