.fx-switch { --fx-tile-y: -64px; --fx-rock-y: 0px; --fx-rock-angle: -6deg; --fx-people: 0; display: grid; gap: 12px; }
.fx-switch:has(#fx-switch-add:checked) { --fx-tile-y: 0px; --fx-rock-y: 24px; --fx-rock-angle: 6deg; --fx-people: 1; }
.fx-switch .fx-switch-steps { margin: 0; padding-left: 24px; }
.fx-switch .fx-switch-steps li { padding: 3px 0; }
.fx-switch .fx-switch-goal, .fx-switch .fx-switch-read { margin: 0; color: var(--fx-ink); }
.fx-switch .fx-switch-panel { min-width: 0; padding: 12px; border: 2px solid var(--fx-muted); border-radius: 14px; background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; display: grid; gap: 12px; }
.fx-switch .fx-switch-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fx-switch .fx-switch-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-switch .fx-switch-group legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 800; }
.fx-switch .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-switch .fx-btn { box-sizing: border-box; min-height: 44px; min-width: 64px; padding: 8px 12px; color: var(--fx-ink); background: var(--fx-paper); border: 2px solid var(--fx-muted); font-size: 16px; cursor: pointer; }
.fx-switch .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-mint-pale); border-color: var(--fx-ink); }
.fx-switch .fx-btn:focus-within { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-switch .fx-switch-toggle { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 280px; margin-left: auto; text-align: left; }
.fx-switch .fx-switch-housing { box-sizing: border-box; position: relative; display: block; flex-shrink: 0; width: 52px; height: 68px; border: 3px solid var(--fx-ink); border-radius: 9px; background: var(--fx-sky-pale); }
.fx-switch .fx-switch-rocker { box-sizing: border-box; position: absolute; top: 5px; left: 4px; width: 38px; height: 28px; border: 2px solid var(--fx-ink); border-radius: 5px; background: var(--fx-sun); transform: translateY(var(--fx-rock-y)) rotate(var(--fx-rock-angle)); transition: transform 0.35s; }
.fx-switch .fx-switch-caption { display: grid; flex: 1; gap: 8px; min-width: 0; }
.fx-switch .fx-switch-status { display: grid; font-size: 14px; }
.fx-switch .fx-switch-status > span { grid-area: 1 / 1; }
.fx-switch .fx-switch-on { visibility: hidden; }
.fx-switch:has(#fx-switch-add:checked) .fx-switch-on { visibility: visible; }
.fx-switch:has(#fx-switch-add:checked) .fx-switch-off { visibility: hidden; }
.fx-switch .fx-switch-stage { box-sizing: border-box; position: relative; min-width: 0; height: 400px; padding: 12px; display: grid; grid-template-rows: 150px 22px 180px; gap: 6px; background: var(--fx-sky-pale); }
.fx-switch .fx-switch-wordwork { position: relative; width: 100%; max-width: 280px; justify-self: center; }
.fx-switch .fx-switch-wordlabel { position: absolute; top: 64px; left: 4px; font-size: 16px; }
.fx-switch .fx-switch-tilelabel { position: absolute; top: 0; right: 0; font-size: 16px; }
.fx-switch .fx-switch-board { box-sizing: border-box; position: absolute; top: 90px; left: 50%; transform: translateX(-50%); width: min(220px, 100%); height: 56px; padding: 4px 12px; border: 2px solid var(--fx-ink); border-radius: 5px; background: var(--fx-sun-pale); box-shadow: 0 4px 0 var(--fx-sun); display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }
.fx-switch .fx-switch-stem { display: grid; font-size: 32px; font-weight: 800; line-height: 44px; text-align: right; }
.fx-switch .fx-switch-choice { grid-area: 1 / 1; visibility: hidden; }
.fx-switch:has(#fx-switch-climb:checked) .fx-switch-climb, .fx-switch:has(#fx-switch-teach:checked) .fx-switch-teach, .fx-switch:has(#fx-switch-paint:checked) .fx-switch-paint, .fx-switch:has(#fx-switch-farm:checked) .fx-switch-farm { visibility: visible; }
.fx-switch .fx-switch-slot { box-sizing: border-box; position: relative; display: block; width: 44px; height: 44px; border: 2px dashed var(--fx-muted); background: var(--fx-paper); }
.fx-switch .fx-switch-hook { position: absolute; top: -76px; left: 14px; width: 12px; height: 10px; border: 2px solid var(--fx-ink); border-top: 0; border-radius: 0 0 8px 8px; }
.fx-switch .fx-switch-tile { box-sizing: border-box; position: absolute; top: -2px; left: -2px; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-coral); color: var(--fx-ink); font-size: 32px; font-weight: 800; line-height: 1; transform: translateY(var(--fx-tile-y)); transition: transform 0.45s; }
.fx-switch .fx-switch-picturelabel { font-size: 16px; text-align: center; }
.fx-switch .fx-switch-picture { min-width: 0; display: grid; height: 180px; }
.fx-switch .fx-switch-picture svg { width: 100%; max-width: 280px; height: 180px; justify-self: center; fill: none; stroke: var(--fx-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fx-switch .fx-switch-picture text { fill: var(--fx-ink); stroke: none; font-size: 16px; font-weight: 700; }
.fx-switch .fx-switch-wall { fill: var(--fx-paper); }
.fx-switch .fx-switch-paper { fill: var(--fx-paper); }
.fx-switch .fx-switch-field { fill: var(--fx-mint-pale); }
.fx-switch .fx-switch-crops { stroke: var(--fx-mint); stroke-width: 4; }
.fx-switch .fx-switch-holds, .fx-switch .fx-switch-stroke, .fx-switch .fx-switch-brush { fill: var(--fx-coral); }
.fx-switch .fx-switch-arrow { stroke: var(--fx-grape); stroke-width: 4; }
.fx-switch .fx-switch-head, .fx-switch .fx-switch-badge { fill: var(--fx-sun-pale); }
.fx-switch .fx-switch-helmet { fill: var(--fx-sun); }
.fx-switch .fx-switch-shirt { fill: var(--fx-sky); }
.fx-switch .fx-switch-boot, .fx-switch .fx-switch-tyre { fill: var(--fx-grape); }
.fx-switch .fx-switch-tractor { fill: var(--fx-sun); }
.fx-switch .fx-switch-person { opacity: var(--fx-people); transition: opacity 0.3s; }
.fx-switch .fx-switch-hint { margin: 0; font-size: 16px; text-align: center; }
.fx-switch .fx-switch-says { display: grid; min-width: 0; }
.fx-switch .fx-switch-says > p { grid-area: 1 / 1; visibility: hidden; margin: 0; color: var(--fx-ink); font-size: 16px; }
.fx-switch:has(#fx-switch-climb:checked):not(:has(#fx-switch-add:checked)) .fx-switch-climb-off, .fx-switch:has(#fx-switch-teach:checked):not(:has(#fx-switch-add:checked)) .fx-switch-teach-off, .fx-switch:has(#fx-switch-paint:checked):not(:has(#fx-switch-add:checked)) .fx-switch-paint-off, .fx-switch:has(#fx-switch-farm:checked):not(:has(#fx-switch-add:checked)) .fx-switch-farm-off, .fx-switch:has(#fx-switch-climb:checked):has(#fx-switch-add:checked) .fx-switch-climb-on, .fx-switch:has(#fx-switch-teach:checked):has(#fx-switch-add:checked) .fx-switch-teach-on, .fx-switch:has(#fx-switch-paint:checked):has(#fx-switch-add:checked) .fx-switch-paint-on, .fx-switch:has(#fx-switch-farm:checked):has(#fx-switch-add:checked) .fx-switch-farm-on { visibility: visible; }
@container (max-width: 480px) { .fx-switch .fx-switch-controls { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-switch .fx-switch-rocker, .fx-switch .fx-switch-tile, .fx-switch .fx-switch-person { transition: none; } }