.fx-hire { --fx-k: 1; --fx-days: 1; display: grid; }
.fx-hire:has(#fx-hire-d0:checked) { --fx-k: 0; --fx-days: 0; }
.fx-hire:has(#fx-hire-d2:checked) { --fx-k: 2; --fx-days: 2; }
.fx-hire:has(#fx-hire-d3:checked) { --fx-k: 3; --fx-days: 3; }
.fx-hire:has(#fx-hire-d4:checked) { --fx-k: 4; --fx-days: 4; }
.fx-hire:has(#fx-hire-d6:checked) { --fx-k: 5; --fx-days: 6; }
.fx-hire:has(#fx-hire-d8:checked) { --fx-k: 6; --fx-days: 8; }
.fx-hire:has(#fx-hire-d10:checked) { --fx-k: 7; --fx-days: 10; }
.fx-hire:has(#fx-hire-d12:checked) { --fx-k: 8; --fx-days: 12; }
.fx-hire:has(#fx-hire-d14:checked) { --fx-k: 9; --fx-days: 14; }
.fx-hire .fx-hire-body { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.5; }
.fx-hire .fx-hire-how { margin: 0; padding-left: 22px; }
.fx-hire .fx-hire-goal, .fx-hire .fx-hire-formula { margin: 0; }
.fx-hire .fx-hire-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.fx-hire .fx-hire-controls legend { padding: 0; font-weight: 800; }
.fx-hire .fx-hire-help { margin: 6px 0 12px; }
.fx-hire .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-hire .fx-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 40px; min-height: 40px; padding: 6px 10px; border-radius: 50%; color: var(--fx-ink); }
.fx-hire .fx-btn:has(input:checked) { background: var(--fx-sun); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-hire .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-hire .fx-hire-scene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.fx-hire .fx-stage { position: relative; box-sizing: border-box; height: 360px; min-width: 0; padding: 12px; }
.fx-hire .fx-hire-dialstage { display: grid; align-content: center; justify-items: center; gap: 12px; }
.fx-hire .fx-hire-depth { position: relative; width: 200px; height: 200px; perspective: 600px; }
.fx-hire .fx-hire-gear { position: relative; box-sizing: border-box; width: 100%; height: 100%; border: 10px dashed var(--fx-muted); border-radius: 50%; background: var(--fx-sun-pale); transform: rotateX(14deg) rotateY(-8deg); transform-style: preserve-3d; }
.fx-hire .fx-hire-stop { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px; font-size: 14px; font-weight: 800; transform: rotate(calc(var(--fx-i) * 36deg)) translateY(-74px) rotate(calc(var(--fx-i) * -36deg)) translateZ(2px); }
.fx-hire .fx-hire-pointer { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateZ(calc(var(--fx-k) * 36deg)) translateZ(3px); transition: transform 0.6s steps(4, end); }
.fx-hire .fx-hire-pointer::before { content: ""; position: absolute; top: 31px; left: calc(50% - 7px); width: 14px; height: 43px; background: var(--fx-coral); clip-path: polygon(50% 0, 100% 28%, 65% 28%, 65% 100%, 35% 100%, 35% 28%, 0 28%); }
.fx-hire .fx-hire-window { position: absolute; top: 50%; left: 50%; box-sizing: border-box; width: 52px; height: 28px; border: 2px solid var(--fx-ink); background: var(--fx-paper); overflow: hidden; perspective: 300px; transform: translate(-50%, -50%) translateZ(5px); }
.fx-hire .fx-hire-drum { position: absolute; top: 50%; left: 0; width: 100%; height: 24px; margin-top: -12px; transform-style: preserve-3d; transform: translateZ(-38px) rotateX(calc(var(--fx-k) * -36deg)); transition: transform 0.6s steps(4, end); }
.fx-hire .fx-hire-face { position: absolute; inset: 0; display: grid; place-items: center; background: var(--fx-paper); font-size: 18px; font-weight: 800; line-height: 24px; backface-visibility: hidden; transform: rotateX(calc(var(--fx-i) * 36deg)) translateZ(38px); }
.fx-hire .fx-hire-counter { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fx-hire .fx-hire-sign { box-sizing: border-box; display: grid; gap: 2px; width: 100%; max-width: 220px; padding: 6px 10px; background: var(--fx-sun-pale); text-align: center; line-height: 20px; }
.fx-hire .fx-hire-totals { display: grid; margin: 0; font-size: 22px; font-weight: 800; line-height: 27px; }
.fx-hire .fx-hire-daily-label { max-width: 220px; margin: 0; text-align: center; font-size: 14px; line-height: 20px; }
.fx-hire .fx-hire-key { display: inline-block; width: 12px; height: 12px; background: var(--fx-sky); border: 1px solid var(--fx-ink); vertical-align: middle; }
.fx-hire .fx-hire-graph { position: relative; flex-shrink: 0; width: 100%; max-width: 220px; height: 210px; }
.fx-hire .fx-hire-bar { position: absolute; bottom: 0; left: 12px; display: flex; flex-direction: column-reverse; width: 132px; }
.fx-hire .fx-hire-fixed { box-sizing: border-box; display: grid; place-items: center; height: 60px; padding: 4px; border: 2px solid var(--fx-ink); background: var(--fx-muted); }
.fx-hire .fx-hire-fixed span { padding: 2px 4px; background: var(--fx-paper); font-size: 14px; line-height: 20px; }
.fx-hire .fx-hire-daily { height: calc(var(--fx-days) * 10px); background: var(--fx-sky); box-shadow: inset 0 0 0 2px var(--fx-ink); transition: height 0.6s steps(4, end); }
.fx-hire .fx-hire-target { position: absolute; bottom: 180px; left: 0; right: 0; height: 0; border-top: 2px dashed var(--fx-muted); }
.fx-hire .fx-hire-budget { position: absolute; right: 0; bottom: 4px; padding: 0 3px; background: var(--fx-paper); font-size: 12px; font-weight: 800; line-height: 20px; }
.fx-hire .fx-hire-tick { visibility: hidden; }
.fx-hire:has(#fx-hire-d12:checked) .fx-hire-target { border-color: var(--fx-mint); box-shadow: 0 0 8px var(--fx-mint); }
.fx-hire:has(#fx-hire-d12:checked) .fx-hire-budget { background: var(--fx-mint-pale); }
.fx-hire:has(#fx-hire-d12:checked) .fx-hire-tick { visibility: visible; }
.fx-hire:has(#fx-hire-d14:checked) .fx-hire-target { border-color: var(--fx-coral); }
.fx-hire:has(#fx-hire-d14:checked) .fx-hire-budget { background: var(--fx-coral-pale); }
.fx-hire .fx-hire-says, .fx-hire .fx-hire-feedback { display: grid; min-width: 0; }
.fx-hire .fx-hire-state { grid-area: 1 / 1; visibility: hidden; min-width: 0; margin: 0; }
.fx-hire:has(#fx-hire-d0:checked) .fx-hire-s0, .fx-hire:has(#fx-hire-d1:checked) .fx-hire-s1, .fx-hire:has(#fx-hire-d2:checked) .fx-hire-s2, .fx-hire:has(#fx-hire-d3:checked) .fx-hire-s3, .fx-hire:has(#fx-hire-d4:checked) .fx-hire-s4, .fx-hire:has(#fx-hire-d6:checked) .fx-hire-s6, .fx-hire:has(#fx-hire-d8:checked) .fx-hire-s8, .fx-hire:has(#fx-hire-d10:checked) .fx-hire-s10, .fx-hire:has(#fx-hire-d12:checked) .fx-hire-s12, .fx-hire:has(#fx-hire-d14:checked) .fx-hire-s14 { visibility: visible; }
@container (max-width: 480px) { .fx-hire .fx-hire-scene { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-hire .fx-hire-pointer, .fx-hire .fx-hire-drum, .fx-hire .fx-hire-daily { transition: none; } }