.fx-page { width: var(--page); margin: 0 auto; }
.fx-page [hidden] { display: none !important; }
.fx-page.page-columns, .fx-page .page-columns, #fx-explorer.page-columns { display: block !important; }
.fx-page .page-columns > * { grid-column: auto !important; }
.fx-heading { max-width: 820px; margin: 3rem 0 1.5rem; }
.fx-heading .eyebrow { color: var(--gold); margin-bottom: .7rem; }
.fx-heading h1 { color: var(--paper); font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: 1.06; margin: 0 0 1rem; }
.fx-heading h1 em { color: var(--gold); }
.fx-heading > p:last-child { color: var(--soft); font-size: 1.05rem; max-width: 64ch; }
.fx-loading { color: var(--soft); }
.fx-page button { font-family: var(--sans); }
.fx-page button:focus-visible, .fx-page input:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.fx-panel { position: relative; margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 1.9rem); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.fx-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--rainbow); }
.fx-panel .eyebrow { margin-bottom: .3rem; }
.fx-panel h2 { margin: 0 0 .5rem; padding: 0; border: 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.fx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .8rem 1.5rem; }
.fx-transport { display: flex; flex-wrap: wrap; gap: .5rem; }
.fx-play { padding: .6rem 1.4rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer; }
.fx-btn { padding: .55rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: .88rem; cursor: pointer; }
.fx-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fx-btn[aria-pressed="true"]::before { content: "✓ "; }

.fx-transport { align-items: center; }
.fx-rec { padding: .6rem 1.2rem; border: 2px solid #c23b4b; border-radius: 999px; background: transparent; color: #a3202f; font-size: .95rem; font-weight: 600; cursor: pointer; }
.fx-rec[aria-pressed="true"] { background: #c23b4b; color: #fff; }
.fx-btn:disabled { opacity: .4; cursor: not-allowed; }
.fx-panel.is-recording { box-shadow: 0 0 0 4px #c23b4b, 0 24px 70px rgba(0,0,0,.35); }

/* The song's progress and the take */
.fx-bar { position: relative; height: 14px; margin-top: 1rem; border-radius: 999px; background: #efe5cd; overflow: hidden; }
.fx-progress { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--gold), #f0a63a); }
.fx-marks i { position: absolute; top: 2px; bottom: 2px; width: 3px; margin-left: -1px; border-radius: 2px; background: #6b2fa0; }
.fx-status { margin: .7rem 0 0; padding: .55rem .8rem; border-radius: 8px; background: #fdf0cf; font-size: .88rem; }

/* The cupboard: an old wooden store cupboard, doors open, painted inside, with a shelf under each row */
.fx-cupboard { --door: clamp(.8rem, 3.2vw, 2.8rem); --row: 150px; --plank: 2.9rem; --rgap: 1.15rem; --frame: clamp(7px, 1.2vw, 11px); --gap: .6rem; --part: 10px;
  --line: #3a2616; --wood: #8a5a32; --wood-d: #5e3a1e; --wood-l: #a87444;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 210px; column-gap: calc(var(--gap) + var(--part)); row-gap: 1rem;
  margin: 1.4rem var(--door) 0; padding: 1rem calc(var(--gap) / 2) 0;
  border: var(--frame) solid var(--wood); border-top-width: calc(var(--frame) + 6px); border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(58,38,22,.42), rgba(58,38,22,0) 26px),
    linear-gradient(90deg, rgba(58,38,22,.3), rgba(58,38,22,0) 22px, rgba(58,38,22,0) calc(100% - 22px), rgba(58,38,22,.3)),
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 54px, rgba(122,84,48,.16) 54px 56px),
    #ecdcb3;
  box-shadow: 0 0 0 2px var(--line), inset 0 0 0 2px var(--line), 0 14px 26px rgba(42,26,14,.35);
  border-image: none; }
.fx-cupboard::before { content: ""; position: absolute; inset: calc(-1 * var(--frame) - 6px - 14px) calc(-1 * var(--frame) - 8px) auto; height: 14px; border: 2px solid var(--line); border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--wood-l), var(--wood) 60%, var(--wood-d)); }   /* the cornice */
.fx-door { position: absolute; top: calc(-1 * var(--frame) - 12px); bottom: calc(-1 * var(--frame) - 12px); width: var(--door); pointer-events: none;
  background:
    radial-gradient(circle at var(--knob) 50%, #f3d27a 0 2px, #a8742a 2.5px 4px, rgba(0,0,0,0) 4.5px),
    linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,0) 40%, rgba(255,240,200,.12)),
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 9px, rgba(58,38,22,.12) 9px 10px),
    var(--wood); }
.fx-door::after { content: ""; position: absolute; inset: 18px 22%; border: 2px solid rgba(58,38,22,.55); border-radius: 2px; box-shadow: inset 0 0 0 2px rgba(255,236,190,.15); }
.fx-door-l { --knob: 30%; left: calc(-1 * var(--frame) - var(--door)); clip-path: polygon(0 0, 100% 12px, 100% calc(100% - 12px), 0 100%); border-left: 2px solid var(--line); }
.fx-door-r { --knob: 70%; right: calc(-1 * var(--frame) - var(--door)); clip-path: polygon(0 12px, 100% 0, 100% 100%, 0 calc(100% - 12px)); border-right: 2px solid var(--line); }

.fx-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); grid-auto-rows: var(--row); gap: var(--rgap) var(--gap); align-content: start; margin: 0 calc(var(--gap) / -2); padding: 0 calc(var(--gap) / 2) var(--rgap);
  /* the shelves, one under every row, wall to wall even where a row is not full */
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 calc(var(--row) - var(--plank)),
    var(--line) calc(var(--row) - var(--plank)) calc(var(--row) - var(--plank) + 2px), var(--wood-l) calc(var(--row) - var(--plank) + 2px) calc(var(--row) - var(--plank) + 7px),
    var(--wood) calc(var(--row) - var(--plank) + 7px), var(--wood-d) calc(var(--row) - 2px), var(--line) calc(var(--row) - 2px) var(--row),
    rgba(42,26,14,.45) var(--row), rgba(42,26,14,0) calc(var(--row) + 10px) calc(var(--row) + var(--rgap))); }
.fx-items button, .fx-beds button { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 132px; padding: .5rem .2rem .42rem; border: 0; border-radius: 6px 6px 0 0; background: transparent; color: var(--ink); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
/* the shelf: a plank across the whole row, overhanging into the gaps so the planks join up */
.fx-beds button::after { content: ""; position: absolute; z-index: -1; left: calc(var(--gap) / -2 - .5px); right: calc(var(--gap) / -2 - .5px); bottom: 0; height: var(--plank);
  border-top: 5px solid var(--wood-l); border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, var(--wood) 0, var(--wood-d)); box-shadow: 0 -1px 0 var(--line), 0 9px 10px -5px rgba(42,26,14,.55); }
/* a warm glow behind the item: on hover, and a flash when hit */
.fx-items button::before, .fx-beds button::before { content: ""; position: absolute; z-index: -2; inset: 0 0 2.6rem; border-radius: 50% 50% 10px 10px / 60% 60% 10px 10px; background: radial-gradient(ellipse at 50% 70%, rgba(255,214,110,.75), rgba(255,214,110,0) 70%); opacity: 0; transition: opacity .2s; }
.fx-items button:hover::before, .fx-beds button:hover::before { opacity: .55; }
.fx-items button.is-hit::before { animation: fx-glow .6s ease-out; }
@keyframes fx-glow { 0% { opacity: 1; } 100% { opacity: 0; } }
.fx-ico { display: block; width: 76px; height: 76px; margin-bottom: auto; line-height: 0; }
.fx-ico svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fx-items button:active .fx-ico { transform: translateY(2px); }
/* the paper label tacked on the front of the shelf */
.fx-name { position: relative; display: flex; align-items: center; justify-content: center; min-height: 2.05rem; max-width: 100%; margin: .4rem 0 0; padding: .15rem .8rem; border-radius: 2px; background: #fbf3dc; box-shadow: 0 1px 0 rgba(42,26,14,.5), inset 0 0 0 1px rgba(122,84,48,.25); font-size: .8rem; font-weight: 600; line-height: 1.15; text-align: center; }
.fx-name::before, .fx-name::after { content: ""; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #a8742a; box-shadow: inset 0 0 0 1px var(--line); }
.fx-name::before { left: 4px; } .fx-name::after { right: 4px; }
.fx-items kbd, .fx-beds kbd { position: absolute; top: .25rem; right: .3rem; padding: 0 .3rem; border: 1px solid rgba(122,84,48,.45); border-radius: 4px; background: rgba(251,243,220,.85); color: #6b4a2e; font-family: var(--mono); font-size: .65rem; }
.fx-page .fx-cupboard button:focus-visible { outline: 3px solid var(--purple); outline-offset: 1px; }

/* the "leave running" compartment, behind its own partition */
.fx-beds { position: relative; display: flex; flex-direction: column; gap: var(--rgap); padding-bottom: var(--rgap); }
.fx-beds::before { content: ""; position: absolute; top: -1rem; bottom: 0; left: calc(var(--gap) / -2 - var(--part)); width: var(--part); border-inline: 2px solid var(--line); background: linear-gradient(90deg, var(--wood-l), var(--wood) 50%, var(--wood-d)); }
.fx-beds-title { align-self: center; margin: 0; padding: .25rem .7rem; border: 2px solid var(--line); border-radius: 3px; background: #2f4a3c; color: #f3e9c8; box-shadow: inset 0 0 0 2px #2f4a3c, inset 0 0 0 3px #d9c58f; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.fx-beds button { flex: 1 1 auto; max-height: 200px; }
.fx-beds button[aria-pressed="true"]::before { opacity: 1; background: radial-gradient(ellipse at 50% 65%, rgba(255,200,80,.95), rgba(255,214,110,0) 72%); animation: fx-throb 1.6s ease-in-out infinite alternate; }
@keyframes fx-throb { from { opacity: .65; } to { opacity: 1; } }
.fx-beds button[aria-pressed="true"] .fx-name { background: #2f4a3c; color: #f3e9c8; }
.fx-beds button[aria-pressed="true"] .fx-name::before, .fx-beds button[aria-pressed="true"] .fx-name::after { background: #ffd66e; box-shadow: 0 0 5px 1px rgba(255,214,110,.9); }   /* little lamps lit */

/* ---------- The illustrations' paints ---------- */
.fx-ico .k-b { fill: #e0ac45; } .fx-ico .k-bd { fill: #b07a2c; } .fx-ico .k-st { fill: #c4beb0; } .fx-ico .k-sd { fill: #8a8476; }
.fx-ico .k-cr { fill: #fbf3dc; } .fx-ico .k-rd { fill: #c23b4b; } .fx-ico .k-wa { fill: #6fa9b6; } .fx-ico .k-wl { fill: #c4e4e7; }
.fx-ico .k-gl { fill: rgba(220,240,240,.45); } .fx-ico .k-tc { fill: #c9773f; } .fx-ico .k-cu { fill: #c7793f; } .fx-ico .k-wd { fill: #8a5a32; }
.fx-ico .k-dk { fill: #3a2616; } .fx-ico .k-wine { fill: #e9b949; } .fx-ico .k-ns { stroke: none; } .fx-ico .k-shadow { fill: rgba(58,38,22,.22); }
.fx-ico .k-hl { stroke: rgba(255,250,230,.85); stroke-width: 1.8; fill: none; }
.fx-ico .k-rim { stroke: #3a2616; stroke-width: 2.4; fill: none; } .fx-ico .a-wheel .k-rim { stroke: #c23b4b; stroke-width: 3; }
.fx-ico .k-rope { stroke: #a8742a; stroke-width: 2.2; stroke-dasharray: 3 1.4; }
.fx-ico .k-link ellipse, .fx-ico .k-link rect { stroke: #3a2616; stroke-width: 5.2; }
.fx-ico .k-link-in ellipse, .fx-ico .k-link-in rect { stroke: #b8b2a4; stroke-width: 2.2; }
.fx-ico .k-straw { stroke: #3a2616; stroke-width: 6.5; } .fx-ico .k-straw-in { stroke: #fbf3dc; stroke-width: 3.5; } .fx-ico .k-straw-st { stroke: #c23b4b; stroke-width: 3.5; stroke-dasharray: 3 3; stroke-linecap: butt; }
.fx-ico .k-tin { fill: #b8b2a4; } .fx-ico .k-tin-front { fill: #a39d8f; }
.fx-ico .k-steam-puff { fill: #fbf3dc; } .fx-ico .k-ripple { stroke: #c4e4e7; stroke-width: 1.8; }
.fx-ico .a-needle { stroke: #c23b4b; stroke-width: 2; }
.fx-ico .a-puff, .fx-ico .a-spark, .fx-ico .a-drop, .fx-ico .a-bub, .fx-ico .a-note, .fx-ico .a-fall, .fx-ico .a-steam, .fx-ico .a-splash { opacity: 0; }
.fx-ico .a-puff { stroke-width: 1.8; }
.fx-ico g, .fx-ico .a-needle { transform-box: fill-box; }

/* ---------- What each thing does when it is hit ---------- */
.fx-items .is-hit .a-puff { animation: fx-puff .7s ease-out; }
@keyframes fx-puff { 0% { opacity: 0; transform: scale(.7); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
.fx-ico .a-swing { transform-origin: 50% 0; } .fx-ico .a-clap { transform-origin: 50% 0; }
.is-hit .a-swing { animation: fx-swing 1.1s ease-out; } .is-hit .a-clap { animation: fx-clap 1.1s ease-out; }
@keyframes fx-swing { 0% { transform: rotate(0); } 15% { transform: rotate(16deg); } 35% { transform: rotate(-12deg); } 55% { transform: rotate(7deg); } 75% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@keyframes fx-clap { 0% { transform: rotate(0); } 15% { transform: rotate(-22deg); } 35% { transform: rotate(18deg); } 55% { transform: rotate(-9deg); } 100% { transform: rotate(0); } }
.fx-ico .a-trill { transform-origin: 20% 40%; } .is-hit .a-trill { animation: fx-trill .9s linear; }
@keyframes fx-trill { 0%, 100% { transform: rotate(0); } 10%, 30%, 50%, 70% { transform: rotate(-3deg) translateY(-1px); } 20%, 40%, 60%, 80% { transform: rotate(2deg); } }
.fx-ico .a-squeeze { transform-origin: 100% 50%; } .is-hit .a-squeeze { animation: fx-squeeze .9s ease-in-out; }
@keyframes fx-squeeze { 0%, 45%, 100% { transform: scale(1); } 15%, 60% { transform: scale(.62, 1.12); } }
.fx-ico .a-rattle { transform-origin: 50% 0; } .is-hit .a-rattle { animation: fx-rattle .9s ease-out; }
@keyframes fx-rattle { 0% { transform: rotate(0); } 10% { transform: rotate(10deg) translateY(2px); } 20% { transform: rotate(-9deg); } 30% { transform: rotate(8deg) translateY(1px); } 40% { transform: rotate(-6deg); } 55% { transform: rotate(4deg); } 70% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
.is-hit .a-drop { animation: fx-drop .9s ease-out; }
@keyframes fx-drop { 0% { opacity: 0; transform: translateY(8px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.fx-ico .a-lid { transform-origin: 0 50%; } .is-hit .a-lid { animation: fx-slam .45s cubic-bezier(.6,0,1,1); }
@keyframes fx-slam { 0% { transform: scaleX(.15); } 100% { transform: scaleX(1); } }
.is-hit .a-shake { animation: fx-shake .5s .4s ease-out; }
@keyframes fx-shake { 0%, 100% { transform: translate(0); } 20% { transform: translate(-2px, 1px); } 40% { transform: translate(2px, -1px); } 60% { transform: translate(-1px, 1px); } 80% { transform: translate(1px, 0); } }
[data-fx="hatch"].is-hit .a-puff { animation: fx-puff .5s .4s ease-out backwards; }
.fx-ico .a-wheel { transform-origin: 50% 50%; } .is-hit .a-wheel { animation: fx-turn .8s ease-out; }
@keyframes fx-turn { from { transform: rotate(-120deg); } to { transform: rotate(0); } }
.fx-ico .a-bub circle { opacity: 0; } .is-hit .a-bub { opacity: 1; }
.is-hit .a-bub circle { animation: fx-bub 1.3s ease-out; } .is-hit .a-bub circle:nth-child(2) { animation-delay: .2s; } .is-hit .a-bub circle:nth-child(3) { animation-delay: .4s; } .is-hit .a-bub circle:nth-child(4) { animation-delay: .55s; }
@keyframes fx-bub { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
.fx-ico .a-clink-l { transform-origin: 50% 100%; } .fx-ico .a-clink-r { transform-origin: 50% 100%; }
.is-hit .a-clink-l { animation: fx-clink-l .9s ease-out; } .is-hit .a-clink-r { animation: fx-clink-r .9s ease-out; }
@keyframes fx-clink-l { 0%, 100% { transform: rotate(0); } 12%, 42%, 76% { transform: rotate(9deg); } 28%, 58% { transform: rotate(-3deg); } }
@keyframes fx-clink-r { 0%, 100% { transform: rotate(0); } 12%, 42%, 76% { transform: rotate(-9deg); } 28%, 58% { transform: rotate(3deg); } }
.fx-ico .a-spark { transform-origin: 50% 50%; } .is-hit .a-spark { animation: fx-spark .9s ease-out; }
@keyframes fx-spark { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 15%, 45%, 78% { opacity: 1; transform: scale(1.2) rotate(30deg); } 30%, 60% { opacity: .3; transform: scale(.7); } }
.fx-ico .a-bob { transform-origin: 50% 50%; } .is-hit .a-bob { animation: fx-bob 1.6s ease-in-out; }
@keyframes fx-bob { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg) translateY(-1px); } 50% { transform: rotate(2deg); } 75% { transform: rotate(-3deg); } }
.is-hit .a-note { opacity: 1; } .fx-ico .a-note > g { opacity: 0; }
.is-hit .a-note > g { animation: fx-note 1.6s ease-out; } .is-hit .a-note > g:nth-child(2) { animation-delay: .45s; }
@keyframes fx-note { 0% { opacity: 0; transform: translateY(8px); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, -6px); } }
.fx-ico .a-spin { transform-origin: 50% 50%; } .is-hit .a-spin { animation: fx-spin 1.5s cubic-bezier(.2,.6,.4,1); }
@keyframes fx-spin { 0% { transform: scaleX(1); } 12% { transform: scaleX(.08); } 24% { transform: scaleX(-1); } 36% { transform: scaleX(.08); } 50% { transform: scaleX(1); } 62% { transform: scaleX(.1); } 76% { transform: scaleX(-1); } 88% { transform: scaleX(.3); } 100% { transform: scaleX(1); } }
.is-hit .a-fall { animation: fx-fall .9s cubic-bezier(.5,0,1,1); }
@keyframes fx-fall { 0% { opacity: 1; transform: translateY(-12px) rotate(0); } 85% { opacity: 1; transform: translateY(12px) rotate(25deg); } 100% { opacity: 0; transform: translateY(14px) rotate(25deg); } }
.is-hit .a-drawer { animation: fx-drawer 1.4s .5s ease-out backwards; }
@keyframes fx-drawer { 0% { transform: translateY(0) scale(1); } 15% { transform: translateY(5px) scale(1.06); } 80% { transform: translateY(5px) scale(1.06); } 100% { transform: translateY(0) scale(1); } }
.is-hit .a-flag { animation: fx-flag 1.4s .15s ease-out backwards; } .fx-ico .a-flag { transform: translateY(9px); }
@keyframes fx-flag { 0% { transform: translateY(9px); } 15% { transform: translateY(-2px); } 22% { transform: translateY(0); } 80% { transform: translateY(0); } 100% { transform: translateY(9px); } }
.fx-ico .a-crank { transform-origin: 50% 100%; } .is-hit .a-crank { animation: fx-crank .5s ease-in-out; }
@keyframes fx-crank { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(35deg); } }
.fx-ico .a-dive { transform-origin: 50% 50%; } .is-hit .a-dive { animation: fx-dive 2.4s ease-in-out; }
@keyframes fx-dive { 0%, 100% { transform: translate(0) rotate(0); } 20% { transform: translate(-2px, -2px) rotate(-4deg); } 55% { transform: translate(6px, 20px) rotate(16deg); } 75% { transform: translate(4px, 20px) rotate(10deg); } }

/* ---------- And the running ones, while they are on ---------- */
.fx-beds [aria-pressed="true"] .a-wave { animation: fx-wave 1.6s linear infinite; }
@keyframes fx-wave { from { transform: translate(0, 0); } 50% { transform: translate(9px, -1px); } to { transform: translate(18px, 0); } }
.fx-beds [aria-pressed="true"] .a-splash { animation: fx-splash 1.6s ease-out infinite; }
@keyframes fx-splash { 0%, 40% { opacity: 0; transform: translateY(8px); } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(-3px); } }
.fx-ico .a-gear { transform-origin: 50% 50%; }
.fx-beds [aria-pressed="true"] .a-gear { animation: fx-gear 2s linear infinite; }
@keyframes fx-gear { to { transform: rotate(360deg); } }
.fx-beds [aria-pressed="true"] .a-piston { animation: fx-piston .25s ease-in-out infinite alternate; }
@keyframes fx-piston { to { transform: translateY(6px); } }
.fx-ico .a-needle { transform-origin: 0 100%; }
.fx-beds [aria-pressed="true"] .a-needle { animation: fx-needle .5s ease-in-out infinite alternate; }
@keyframes fx-needle { from { transform: rotate(-8deg); } to { transform: rotate(14deg); } }
.fx-beds [aria-pressed="true"] .a-steam { animation: fx-steam 1s ease-out infinite; }
@keyframes fx-steam { 0% { opacity: 0; transform: translate(-3px, 6px) scale(.6); } 30% { opacity: .95; } 100% { opacity: 0; transform: translate(2px, -6px) scale(1.2); } }

@media (prefers-reduced-motion: reduce) {
  /* nothing moves: a hit only flashes the glow behind the item, and a running effect just stays lit */
  .fx-cupboard .fx-ico, .fx-cupboard .fx-ico * { animation: none !important; }
  .fx-beds button[aria-pressed="true"]::before { animation: none; }
  .fx-beds [aria-pressed="true"] .a-steam { opacity: .9; }
}
.fx-fine { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; }

/* The story */
.fx-story > p:not(.eyebrow) { max-width: 80ch; }
.fx-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.2rem; }
.fx-step { padding: 1rem 1.1rem; border: 1px solid var(--paper-line); border-radius: 10px; background: #fffaf0; font-size: .9rem; }
.fx-step h3 { margin: .4rem 0 .3rem; color: var(--ink); font-size: 1.15rem; }
.fx-step p { margin: 0; }
.fx-n { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: .72rem; }
.fx-story a { color: var(--pink-ink); }
.fx-method { max-width: 90ch; margin: 1.75rem 0; color: var(--soft); font-size: .82rem; }
.fx-method a { color: var(--gold); }
.fx-signoff { margin: 2rem 0; text-align: center; font-family: var(--serif); font-size: 1.2rem; }

@media (max-width: 1000px) { .fx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .fx-cupboard { grid-template-columns: minmax(0, 1fr); row-gap: var(--part); }
  .fx-beds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: .7rem; }
  .fx-beds::before { top: calc(-1 * var(--part)); bottom: auto; left: calc(var(--gap) / -2); right: calc(var(--gap) / -2); width: auto; height: var(--part); border-inline: 0; border-block: 2px solid var(--line); background: linear-gradient(180deg, var(--wood-l), var(--wood) 50%, var(--wood-d)); }
  .fx-beds { padding-top: .8rem; }
  .fx-beds-title { grid-column: 1 / -1; justify-self: center; }
}
@media (max-width: 560px) { .fx-steps { grid-template-columns: minmax(0, 1fr); } .fx-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx-cupboard { --row: 140px; } .fx-ico { width: 64px; height: 64px; } .fx-name { font-size: .76rem; } }
