.fx-hire { --fx-k: 0; display: grid; }
.fx-hire:has(#fx-hire-d2:checked) { --fx-k: 1; }
.fx-hire:has(#fx-hire-d3:checked) { --fx-k: 2; }
.fx-hire:has(#fx-hire-d4:checked) { --fx-k: 3; }
.fx-hire:has(#fx-hire-d5:checked) { --fx-k: 4; }
.fx-hire:has(#fx-hire-d6:checked) { --fx-k: 5; }
.fx-hire:has(#fx-hire-d7:checked) { --fx-k: 6; }
.fx-hire:has(#fx-hire-d12:checked) { --fx-k: 7; }
.fx-hire .fx-hire-wrap { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-hire .fx-hire-wrap * { box-sizing: border-box; }
.fx-hire .fx-hire-how { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fx-hire .fx-hire-goal, .fx-hire .fx-hire-hint { margin: 0; }
.fx-hire .fx-hire-controls { min-width: 0; padding: 0; border: 0; margin: 0; }
.fx-hire .fx-hire-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-hire .fx-hire-choices { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.fx-hire .fx-btn { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 8px 2px; border: 2px solid var(--fx-muted); border-radius: 8px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; line-height: 1.3; text-align: center; cursor: pointer; }
.fx-hire .fx-btn:has(input:checked) { background: var(--fx-sun); border-color: var(--fx-ink); color: var(--fx-ink); }
.fx-hire .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 2px; }
.fx-hire .fx-hire-scene { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; height: 330px; min-width: 0; margin: 0; padding: 12px; color: var(--fx-ink); }
.fx-hire .fx-hire-flow { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; }
.fx-hire .fx-hire-dial { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.fx-hire .fx-hire-dial > b { font-size: 16px; }
.fx-hire .fx-hire-part-label { font-size: 14px; }
.fx-hire .fx-hire-window { position: relative; width: min(100%, 132px); height: 132px; overflow: hidden; perspective: 650px; border: 3px solid var(--fx-ink); border-radius: 16px; background: var(--fx-sky-pale); box-shadow: 0 5px 0 var(--fx-muted); }
.fx-hire .fx-hire-drum { position: absolute; top: calc(50% - 22px); left: 0; width: 100%; height: 44px; transform-style: preserve-3d; transform: rotateX(calc(var(--fx-k) * -45deg)); transition: transform 0.7s steps(4, end); }
.fx-hire .fx-hire-face { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 100%; height: 44px; border: 2px solid var(--fx-ink); background: var(--fx-sun-pale); color: var(--fx-ink); font-size: 28px; font-weight: 800; line-height: 1; backface-visibility: hidden; transform: rotateX(calc(var(--fx-i) * 45deg)) translateZ(54px); }
.fx-hire .fx-hire-pointer { position: absolute; z-index: 2; left: 0; top: 50%; transform: translateY(-50%); padding: 3px 1px; background: var(--fx-sun); color: var(--fx-ink); font-size: 18px; line-height: 1; border: 1px solid var(--fx-ink); border-radius: 4px; }
.fx-hire .fx-hire-arrow { display: block; text-align: center; font-size: 22px; line-height: 24px; }
.fx-hire .fx-hire-panel { display: grid; align-content: center; gap: 12px; min-width: 0; height: 160px; padding: 10px 4px; border: 2px solid var(--fx-ink); border-radius: 10px; text-align: center; color: var(--fx-ink); font-size: 14px; }
.fx-hire .fx-hire-multiply { background: var(--fx-sky-pale); }
.fx-hire .fx-hire-fixed { background: var(--fx-paper); border: 4px solid var(--fx-muted); border-radius: 4px; }
.fx-hire .fx-hire-receipt { gap: 8px; background: var(--fx-paper); border-style: dashed; border-radius: 2px; box-shadow: 0 5px 0 var(--fx-muted); }
.fx-hire .fx-hire-receipt small { font-size: 12px; }
.fx-hire .fx-hire-value { font-size: 18px; font-weight: 800; line-height: 1.3; }
.fx-hire .fx-hire-formula { text-align: center; font-size: 18px; }
.fx-hire .fx-hire-swap { display: grid; min-width: 0; }
.fx-hire .fx-hire-swap > * { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-hire:has(#fx-hire-d1:checked) .fx-hire-v1, .fx-hire:has(#fx-hire-d2:checked) .fx-hire-v2, .fx-hire:has(#fx-hire-d3:checked) .fx-hire-v3, .fx-hire:has(#fx-hire-d4:checked) .fx-hire-v4, .fx-hire:has(#fx-hire-d5:checked) .fx-hire-v5, .fx-hire:has(#fx-hire-d6:checked) .fx-hire-v6, .fx-hire:has(#fx-hire-d7:checked) .fx-hire-v7, .fx-hire:has(#fx-hire-d12:checked) .fx-hire-v12 { visibility: visible; }
.fx-hire:has(#fx-hire-d6:checked) .fx-hire-receipt { background: var(--fx-mint-pale); border-color: var(--fx-mint); box-shadow: 0 0 0 3px var(--fx-mint), 0 0 12px var(--fx-mint); }
.fx-hire:has(#fx-hire-d7:checked) .fx-hire-receipt { background: var(--fx-coral-pale); border-color: var(--fx-coral); }
@container (max-width: 480px) { .fx-hire .fx-hire-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fx-hire .fx-hire-scene { height: 768px; } .fx-hire .fx-hire-flow { grid-template-columns: minmax(0, 1fr); gap: 6px; } .fx-hire .fx-hire-panel { justify-self: center; width: 100%; height: 104px; padding: 8px; font-size: 16px; gap: 6px; } .fx-hire .fx-hire-arrow { transform: rotate(90deg); } .fx-hire .fx-hire-value { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .fx-hire .fx-hire-drum { transition: none; } }