.fx-stamp { display: grid; gap: 16px; }
.fx-stamp .fx-stamp-guide ol { margin: 0; padding-left: 24px; font-size: 14px; line-height: 1.5; }
.fx-stamp .fx-stamp-goal { margin: 0; line-height: 1.5; color: var(--fx-ink); }
.fx-stamp .fx-stamp-controls { min-width: 0; margin: 0; padding: 4px; border: 0; }
.fx-stamp .fx-stamp-controls legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.fx-stamp .fx-stamp-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-stamp .fx-stamp-choices .fx-btn { box-sizing: border-box; min-width: 0; min-height: 44px; padding: 10px; white-space: normal; color: var(--fx-ink); background: var(--fx-paper); border: 2px solid var(--fx-ink); }
.fx-stamp .fx-stamp-choices .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun-pale); }
.fx-stamp .fx-stamp-choices .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-stamp .fx-stamp-scene { --fx-k: 0; position: relative; box-sizing: border-box; width: 100%; min-width: 0; height: 590px; overflow: hidden; color: var(--fx-ink); }
.fx-stamp:has(#fx-stamp-ordinal:checked) .fx-stamp-scene { --fx-k: 1; }
.fx-stamp:has(#fx-stamp-full:checked) .fx-stamp-scene { --fx-k: 2; }
.fx-stamp:has(#fx-stamp-short:checked) .fx-stamp-scene { --fx-k: 3; }
.fx-stamp:has(#fx-stamp-aloud:checked) .fx-stamp-scene { --fx-k: 4; }
.fx-stamp .fx-stamp-machine { position: absolute; left: 4%; top: 8px; width: 92%; height: 212px; }
.fx-stamp .fx-stamp-machine-label { position: absolute; left: 0; top: 0; font-size: 14px; }
.fx-stamp .fx-stamp-tool { position: absolute; top: 28px; left: 0; width: 58%; height: 176px; transition: transform 0.4s; }
.fx-stamp .fx-stamp-handle { position: absolute; box-sizing: border-box; top: 18px; left: 30%; width: 38%; height: 74px; border: 3px solid var(--fx-ink); border-radius: 14px 14px 4px 4px; background: var(--fx-coral); }
.fx-stamp .fx-stamp-body { position: absolute; box-sizing: border-box; top: 78px; left: 0; width: 100%; height: 63px; border: 3px solid var(--fx-ink); border-radius: 10px 10px 3px 3px; background: var(--fx-coral); box-shadow: inset 0 -10px 0 var(--fx-coral-pale); }
.fx-stamp .fx-stamp-base { position: absolute; top: 141px; left: 5%; width: 90%; height: 17px; border-radius: 0 0 4px 4px; background: var(--fx-ink); }
.fx-stamp:has(#fx-stamp-aloud:checked) .fx-stamp-tool { transform: translateY(-14px); }
.fx-stamp .fx-stamp-wheel-unit { position: absolute; right: 0; top: 24px; width: 43%; max-width: 178px; }
.fx-stamp .fx-stamp-wheel-label { display: block; margin-bottom: 8px; text-align: center; font-size: 14px; }
.fx-stamp .fx-stamp-window { position: relative; box-sizing: border-box; height: 134px; border: 3px solid var(--fx-ink); border-radius: 12px; overflow: hidden; background: var(--fx-sky-pale); }
.fx-stamp .fx-stamp-perspective { width: 100%; height: 100%; perspective: 500px; }
.fx-stamp .fx-stamp-drum { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(calc(var(--fx-k) * -72deg)); transition: transform 0.6s steps(4, end); }
.fx-stamp .fx-stamp-face { position: absolute; box-sizing: border-box; left: 8%; top: calc(50% - 34px); width: 84%; height: 68px; padding: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-sun-pale); color: var(--fx-ink); font-size: 12px; line-height: 1.15; backface-visibility: hidden; transform: rotateX(calc(var(--fx-i) * 72deg)) translateZ(47px); }
.fx-stamp .fx-stamp-face small { font-size: 12px; margin-bottom: 3px; }
.fx-stamp .fx-stamp-pointer { position: absolute; left: calc(50% - 7px); top: 17px; width: 14px; height: 12px; background: var(--fx-ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.fx-stamp .fx-stamp-ticks { display: flex; gap: 3px; margin-top: 6px; }
.fx-stamp .fx-stamp-ticks span { flex: 1; min-width: 0; border-bottom: 3px solid var(--fx-ink); background: var(--fx-paper); text-align: center; font-size: 12px; line-height: 18px; }
.fx-stamp:has(#fx-stamp-words:checked) .fx-stamp-ticks span:nth-child(1), .fx-stamp:has(#fx-stamp-ordinal:checked) .fx-stamp-ticks span:nth-child(2), .fx-stamp:has(#fx-stamp-full:checked) .fx-stamp-ticks span:nth-child(3), .fx-stamp:has(#fx-stamp-short:checked) .fx-stamp-ticks span:nth-child(4), .fx-stamp:has(#fx-stamp-aloud:checked) .fx-stamp-ticks span:nth-child(5) { background: var(--fx-sun); font-weight: 800; }
.fx-stamp .fx-stamp-bubble-slot { position: absolute; top: 228px; left: 4%; width: 92%; height: 88px; display: grid; align-items: center; }
.fx-stamp .fx-stamp-bubble-slot p { box-sizing: border-box; margin: 0; padding: 10px; font-size: 14px; line-height: 1.4; text-align: center; }
.fx-stamp .fx-stamp-hint { border: 2px dashed var(--fx-ink); border-radius: 8px; background: var(--fx-sun-pale); }
.fx-stamp .fx-stamp-speech { position: relative; border: 2px solid var(--fx-ink); border-radius: 16px; background: var(--fx-mint-pale); }
.fx-stamp .fx-stamp-speech::before { content: ""; position: absolute; top: -8px; left: 25%; width: 12px; height: 12px; border-top: 2px solid var(--fx-ink); border-left: 2px solid var(--fx-ink); background: var(--fx-mint-pale); transform: rotate(45deg); }
.fx-stamp .fx-stamp-paper { position: absolute; box-sizing: border-box; bottom: 14px; left: 4%; width: 92%; height: 254px; padding: 12px; border: 2px solid var(--fx-ink); background: var(--fx-paper); box-shadow: 4px 4px 0 var(--fx-sky); }
.fx-stamp .fx-stamp-paper-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.fx-stamp .fx-stamp-print-swap { display: grid; margin-top: 16px; }
.fx-stamp .fx-stamp-date { margin: 0 0 16px; text-align: center; font-size: clamp(18px, 5cqw, 26px); line-height: 1.5; }
.fx-stamp .fx-stamp-ending { padding: 1px 2px; font-size: 12px; background: var(--fx-sun); }
.fx-stamp .fx-stamp-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.fx-stamp .fx-stamp-tags > span { box-sizing: border-box; min-width: 0; padding: 6px 2px; border: 2px solid var(--fx-ink); border-radius: 6px; text-align: center; font-size: 12px; line-height: 1.5; }
.fx-stamp .fx-stamp-tags b { display: block; }
.fx-stamp .fx-stamp-day { background: var(--fx-sky); }
.fx-stamp .fx-stamp-month { background: var(--fx-mint); }
.fx-stamp .fx-stamp-year { background: var(--fx-coral-pale); }
.fx-stamp .fx-stamp-tags .fx-stamp-uncertain { background: var(--fx-sun); border-style: dashed; }
.fx-stamp .fx-stamp-paper-note { margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.5; }
.fx-stamp .fx-stamp-status { display: grid; min-width: 0; }
.fx-stamp .fx-stamp-status p { box-sizing: border-box; margin: 0; font-size: 15px; line-height: 1.5; }
.fx-stamp .fx-stamp-status-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.fx-stamp .fx-stamp-state { grid-area: 1 / 1; visibility: hidden; }
.fx-stamp:has(#fx-stamp-words:checked) .fx-stamp-s1, .fx-stamp:has(#fx-stamp-ordinal:checked) .fx-stamp-s2, .fx-stamp:has(#fx-stamp-full:checked) .fx-stamp-s3, .fx-stamp:has(#fx-stamp-short:checked) .fx-stamp-s4, .fx-stamp:has(#fx-stamp-aloud:checked) .fx-stamp-s5 { visibility: visible; }
@container (max-width: 480px) { .fx-stamp .fx-stamp-choices { grid-template-columns: 1fr; } }