.fx-makeup { --fx-k: 0; display: grid; }
.fx-makeup:has(#fx-makeup-beauty:checked) { --fx-k: 1; }
.fx-makeup:has(#fx-makeup-biology:checked) { --fx-k: 2; }
.fx-makeup:has(#fx-makeup-dictionary:checked) { --fx-k: 3; }
.fx-makeup .fx-wrap { display: grid; gap: 16px; min-width: 0; color: var(--fx-ink); font-size: 16px; line-height: 1.45; }
.fx-makeup .fx-wrap * { box-sizing: border-box; }
.fx-makeup .fx-instructions { list-style: none; padding: 0; margin: 0; }
.fx-makeup .fx-instructions li + li { margin-top: 6px; }
.fx-makeup .fx-goal { margin: 0; }
.fx-makeup .fx-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.fx-makeup .fx-controls legend { padding: 0; font-weight: 800; }
.fx-makeup .fx-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fx-makeup .fx-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 12px; border: 2px solid var(--fx-ink); font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--fx-ink); background: var(--fx-paper); cursor: pointer; }
.fx-makeup .fx-btn:has(input:checked) { color: var(--fx-ink); background: var(--fx-sun-pale); }
.fx-makeup .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-makeup .fx-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; gap: 16px; }
.fx-makeup .fx-reading { display: grid; gap: 10px; min-width: 0; }
.fx-makeup .fx-step { font-size: 16px; }
.fx-makeup .fx-stage { position: relative; min-width: 0; color: var(--fx-ink); }
.fx-makeup .fx-dial { height: 330px; padding: 16px 8px; text-align: center; }
.fx-makeup .fx-pointer { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; z-index: 2; }
.fx-makeup .fx-pointer span { display: block; width: 18px; height: 14px; margin: 2px auto 0; background: var(--fx-ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.fx-makeup .fx-rig { position: absolute; top: 92px; left: 50%; width: 176px; height: 180px; transform: translateX(-50%); perspective: 650px; }
.fx-makeup .fx-mount { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-12deg); }
.fx-makeup .fx-drum { position: absolute; top: 0; left: 20px; width: 136px; height: 180px; transform-style: preserve-3d; transform: rotateX(calc(40deg - var(--fx-k) * 90deg)); transition: transform 0.7s steps(4, end); }
.fx-makeup .fx-shell { position: absolute; top: 50%; left: 0; width: 136px; height: 46px; margin-top: -23px; border: 1px solid var(--fx-muted); background: var(--fx-sky-pale); backface-visibility: hidden; transform: rotateX(calc(var(--fx-i) * 30deg)) translateZ(86px); }
.fx-makeup .fx-edge { position: absolute; top: 1px; left: calc(50% - 89px); width: 178px; height: 178px; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); transform: rotateY(90deg) translateZ(68px); }
.fx-makeup .fx-edge-left { transform: rotateY(90deg) translateZ(-68px); }
.fx-makeup .fx-edge::after { content: ""; position: absolute; inset: 24px; border: 2px solid var(--fx-muted); border-radius: 50%; }
.fx-makeup .fx-spine { position: absolute; top: 50%; left: 0; width: 136px; height: 54px; margin-top: -27px; display: grid; place-items: center; border: 2px solid var(--fx-ink); border-radius: 4px; background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; font-weight: 800; backface-visibility: hidden; transform: rotateX(calc(var(--fx-i) * 90deg)) translateZ(88px); }
.fx-makeup .fx-spine-start { background: var(--fx-sun-pale); }
.fx-makeup .fx-spine-beauty { background: var(--fx-coral-pale); }
.fx-makeup .fx-spine-biology { background: var(--fx-mint-pale); }
.fx-makeup .fx-spine-dictionary { border-color: var(--fx-muted); }
.fx-makeup .fx-dial-caption { position: absolute; bottom: 12px; left: 12px; right: 12px; margin: 0; font-size: 14px; }
.fx-makeup .fx-open { height: 354px; padding: 14px; }
.fx-makeup .fx-word-label { margin: 8px 0; font-size: 14px; }
.fx-makeup .fx-highlight { background: var(--fx-sun); color: var(--fx-ink); padding: 0 3px; border-radius: 3px; font-weight: 800; }
.fx-makeup .fx-book { position: relative; height: 254px; margin-top: 8px; border: 2px solid var(--fx-ink); border-radius: 12px 12px 6px 6px; background: var(--fx-paper); box-shadow: 3px 3px 0 var(--fx-sky); }
.fx-makeup .fx-book::before { content: ""; position: absolute; left: 50%; top: -7px; width: 18px; height: 12px; border-left: 2px solid var(--fx-ink); border-bottom: 2px solid var(--fx-ink); background: var(--fx-paper); transform: translateX(-50%) rotate(-45deg); }
.fx-makeup .fx-pages, .fx-makeup .fx-meanings, .fx-makeup .fx-feedback { display: grid; }
.fx-makeup .fx-pages { height: 100%; }
.fx-makeup .fx-state { grid-area: 1 / 1; visibility: hidden; min-width: 0; }
.fx-makeup:has(#fx-makeup-start:checked) .fx-start, .fx-makeup:has(#fx-makeup-beauty:checked) .fx-beauty, .fx-makeup:has(#fx-makeup-biology:checked) .fx-biology, .fx-makeup:has(#fx-makeup-dictionary:checked) .fx-dictionary { visibility: visible; }
.fx-makeup .fx-page { display: grid; align-content: start; gap: 8px; padding: 14px 12px; }
.fx-makeup .fx-page p { margin: 0; }
.fx-makeup .fx-empty { align-content: center; text-align: center; }
.fx-makeup .fx-illustration { display: grid; justify-items: center; gap: 2px; }
.fx-makeup .fx-icons { display: block; width: 120px; height: 46px; fill: none; stroke: var(--fx-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fx-makeup .fx-cosmetic { fill: var(--fx-coral); }
.fx-makeup .fx-cell { fill: var(--fx-mint); }
.fx-makeup .fx-page small { font-size: 12px; }
.fx-makeup .fx-definitions { margin: 0; padding-left: 22px; }
.fx-makeup .fx-definitions li + li { margin-top: 8px; }
.fx-makeup .fx-meaning-stage { height: 156px; padding: 14px; }
.fx-makeup .fx-meanings { margin-top: 10px; height: 96px; }
.fx-makeup .fx-meaning { display: flex; align-items: center; justify-content: center; height: 96px; border: 1px solid var(--fx-ink); border-radius: 5px; text-align: center; background: var(--fx-paper); }
.fx-makeup .fx-meaning p { margin: 0; padding: 10px; }
.fx-makeup .fx-question { font-size: 32px; font-weight: 800; }
.fx-makeup .fx-pink { background: var(--fx-coral-pale); }
.fx-makeup .fx-green { background: var(--fx-mint-pale); }
.fx-makeup .fx-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.fx-makeup .fx-split span { display: flex; align-items: center; align-self: stretch; justify-content: center; padding: 8px; font-size: 14px; }
.fx-makeup .fx-feedback p { margin: 0; line-height: 1.5; }
@media (max-width: 520px) { .fx-makeup .fx-scene { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fx-makeup .fx-drum { transition: none; } }