.fx-concrete { --fx-n: 0; display: grid; gap: 16px; }
.fx-concrete:has(input:nth-child(1 of :checked)) { --fx-n: 1; }
.fx-concrete:has(input:nth-child(2 of :checked)) { --fx-n: 2; }
.fx-concrete:has(input:nth-child(3 of :checked)) { --fx-n: 3; }
.fx-concrete:has(input:nth-child(4 of :checked)) { --fx-n: 4; }
.fx-concrete:has(input:nth-child(5 of :checked)) { --fx-n: 5; }
.fx-concrete:has(input:nth-child(6 of :checked)) { --fx-n: 6; }
.fx-concrete .fx-how, .fx-concrete .fx-goal, .fx-concrete .fx-controls, .fx-concrete .fx-view { color: var(--fx-ink); font-size: 16px; line-height: 1.4; min-width: 0; }
.fx-concrete .fx-how ol { list-style: none; margin: 0; padding: 0; }
.fx-concrete .fx-how li + li { margin-top: 6px; }
.fx-concrete .fx-goal { margin: 0; }
.fx-concrete .fx-controls { border: 0; margin: 0; padding: 0; }
.fx-concrete .fx-controls legend { font-weight: 800; padding: 0; margin-bottom: 8px; }
.fx-concrete .fx-help { margin: 0 0 12px; font-size: 14px; }
.fx-concrete .fx-bags { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fx-concrete .fx-bag { position: relative; box-sizing: border-box; min-width: 0; height: 156px; padding: 8px 4px 27px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; background: var(--fx-paper); color: var(--fx-ink); border: 2px solid var(--fx-muted); border-radius: 12px; cursor: pointer; text-align: center; }
.fx-concrete .fx-bag-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; font-size: 14px; }
.fx-concrete .fx-tick { position: relative; display: inline-block; width: 16px; height: 16px; border: 2px solid var(--fx-ink); background: var(--fx-paper); border-radius: 3px; }
.fx-concrete .fx-tick::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border-right: 2px solid var(--fx-ink); border-bottom: 2px solid var(--fx-ink); transform: rotate(45deg); opacity: 0; }
.fx-concrete .fx-bags > input:checked + .fx-bag { background: var(--fx-mint-pale); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-concrete .fx-bags > input:checked + .fx-bag .fx-tick::after { opacity: 1; }
.fx-concrete .fx-bags > input:focus-visible + .fx-bag { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-concrete .fx-bag svg { display: block; width: 44px; height: 48px; flex-shrink: 0; }
.fx-concrete .fx-sack { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 2; }
.fx-concrete .fx-load { fill: var(--fx-muted); transform-box: fill-box; transform-origin: center bottom; transition: transform 0.45s; }
.fx-concrete .fx-bag line { stroke: var(--fx-ink); stroke-width: 2; }
.fx-concrete .fx-bags > input:checked + .fx-bag .fx-load { transform: scaleY(0); }
.fx-concrete:has(input:nth-child(6 of :checked)) .fx-last-bag .fx-load { transform: scaleY(0.24); }
.fx-concrete .fx-bag-fact { font-size: 12px; line-height: 1.35; }
.fx-concrete .fx-cue { position: absolute; bottom: 5px; left: 0; width: 100%; font-size: 12px; font-weight: 800; }
.fx-concrete:has(input:checked) .fx-cue { visibility: hidden; }
.fx-concrete .fx-view { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.fx-concrete .fx-hole-scene { position: relative; box-sizing: border-box; height: 340px; min-width: 0; }
.fx-concrete .fx-hole-label { position: absolute; top: 10px; left: 10px; right: 10px; margin: 0; text-align: center; font-size: 14px; }
.fx-concrete .fx-rim-label { position: absolute; top: 82px; left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; }
.fx-concrete .fx-rim-label::after { content: ""; display: block; width: 0; height: 18px; border-left: 2px dashed var(--fx-ink); margin: 2px auto 0; }
.fx-concrete .fx-camera { position: absolute; left: 50%; top: 135px; width: 160px; height: 64px; transform: translateX(-50%); perspective: 700px; }
.fx-concrete .fx-world { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(55deg) rotateZ(-24deg); transition: transform 0.5s; }
.fx-concrete .fx-ground { position: absolute; left: -12px; top: -12px; width: 160px; height: 64px; box-sizing: content-box; border: 12px solid var(--fx-mint); }
.fx-concrete .fx-floor { position: absolute; inset: 0; background: var(--fx-paper); border: 1px solid var(--fx-ink); transform: translateZ(-42.6667px); }
.fx-concrete .fx-back-wall { position: absolute; left: 0; top: 0; width: 160px; height: 42.6667px; background: var(--fx-sun-pale); border: 1px solid var(--fx-ink); box-sizing: border-box; transform-origin: top; transform: rotateX(-90deg); }
.fx-concrete .fx-end-wall { position: absolute; left: 160px; top: 0; width: 42.6667px; height: 64px; background: var(--fx-sun-pale); border: 1px solid var(--fx-ink); box-sizing: border-box; transform-origin: left; transform: rotateY(90deg); }
.fx-concrete .fx-slab { --fx-thick: 7.4074px; --fx-on: clamp(0, calc(var(--fx-n) - var(--fx-i) + 1), 1); position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--fx-z) - (1 - var(--fx-on)) * 30px)) scale(var(--fx-on)); transition: transform 0.5s; }
.fx-concrete .fx-top, .fx-concrete .fx-front, .fx-concrete .fx-side { position: absolute; display: block; background: var(--fx-muted); border: 1px solid var(--fx-ink); box-sizing: border-box; }
.fx-concrete .fx-top { inset: 0; }
.fx-concrete .fx-front { left: 0; top: 64px; width: 160px; height: var(--fx-thick); transform-origin: top; transform: rotateX(-90deg); }
.fx-concrete .fx-side { left: 160px; top: 0; width: var(--fx-thick); height: 64px; transform-origin: left; transform: rotateY(90deg); }
.fx-concrete .fx-gap { position: absolute; left: 0; top: 64px; width: 160px; height: 5.6296px; box-sizing: border-box; background: var(--fx-coral-pale); border: 1px solid var(--fx-coral); transform-origin: top; transform: rotateX(-90deg); visibility: hidden; }
.fx-concrete .fx-rim { position: absolute; inset: 0; box-sizing: border-box; border: 2px dashed var(--fx-ink); transform: translateZ(1px); }
.fx-concrete:has(input:nth-child(6 of :checked)) .fx-rim { border-color: var(--fx-mint); box-shadow: 0 0 0 4px var(--fx-mint-pale); }
.fx-concrete .fx-poured-label { position: absolute; bottom: 83px; left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; }
.fx-concrete .fx-tally { display: grid; position: absolute; bottom: 48px; left: 0; right: 0; text-align: center; }
.fx-concrete .fx-tally .fx-score { font-size: 22px; line-height: 1.3; }
.fx-concrete .fx-full { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; font-size: 14px; text-align: center; visibility: hidden; }
.fx-concrete .fx-says { display: grid; min-width: 0; }
.fx-concrete .fx-state { grid-area: 1 / 1; visibility: hidden; margin: 0; }
.fx-concrete:not(:has(input:checked)) .fx-m0 { visibility: visible; }
.fx-concrete:has(input:nth-child(1 of :checked)):not(:has(input:nth-child(2 of :checked))) .fx-m1 { visibility: visible; }
.fx-concrete:has(input:nth-child(2 of :checked)):not(:has(input:nth-child(3 of :checked))) .fx-m2 { visibility: visible; }
.fx-concrete:has(input:nth-child(3 of :checked)):not(:has(input:nth-child(4 of :checked))) .fx-m3 { visibility: visible; }
.fx-concrete:has(input:nth-child(4 of :checked)):not(:has(input:nth-child(5 of :checked))) .fx-m4 { visibility: visible; }
.fx-concrete:has(input:nth-child(5 of :checked)):not(:has(input:nth-child(6 of :checked))) .fx-m5, .fx-concrete:has(input:nth-child(5 of :checked)):not(:has(input:nth-child(6 of :checked))) .fx-gap { visibility: visible; }
.fx-concrete:has(input:nth-child(6 of :checked)) .fx-m6, .fx-concrete:has(input:nth-child(6 of :checked)) .fx-full { visibility: visible; }
@container (max-width: 480px) { .fx-concrete .fx-view { grid-template-columns: 1fr; } .fx-concrete .fx-bags { grid-template-columns: repeat(3, minmax(0, 1fr)); } }