.fx-stall { --fx-one: visible; --fx-two: hidden; --fx-on: 0; --fx-start: visible; --fx-progress: hidden; --fx-end: hidden; display: grid; gap: 14px; }
.fx-stall * { box-sizing: border-box; }
.fx-stall p { margin: 0; }
.fx-stall .fx-stall-steps { list-style: none; padding: 0; margin: 0; font-size: 16px; line-height: 1.5; }
.fx-stall .fx-stall-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
.fx-stall .fx-stall-controls legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.fx-stall .fx-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-stall .fx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 10px; border: 1px solid var(--fx-ink); background: var(--fx-paper); color: var(--fx-ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.fx-stall .fx-btn:has(input:checked) { background: var(--fx-sky-pale); color: var(--fx-ink); }
.fx-stall .fx-btn:focus-within { outline: 3px solid var(--fx-ink); outline-offset: 3px; }
.fx-stall .fx-stall-badge { margin-left: 5px; padding: 1px 4px; border-radius: 4px; background: var(--fx-sun); color: var(--fx-ink); font-size: 12px; }
.fx-stall .fx-stall-help { margin-top: 10px; font-size: 14px; }
.fx-stall:has(#fx-stall-key:checked) .fx-stall-key, .fx-stall:has(#fx-stall-toy:checked) .fx-stall-toy, .fx-stall:has(#fx-stall-tray:checked) .fx-stall-tray, .fx-stall:has(#fx-stall-monkey:checked) .fx-stall-monkey, .fx-stall:has(#fx-stall-cherry:checked) .fx-stall-cherry, .fx-stall:has(#fx-stall-puppy:checked) .fx-stall-puppy, .fx-stall:has(#fx-stall-lorry:checked) .fx-stall-lorry, .fx-stall:has(#fx-stall-diary:checked) .fx-stall-diary { --fx-one: hidden; --fx-two: visible; --fx-on: 1; }
.fx-stall:has(input:checked) { --fx-start: hidden; --fx-progress: visible; }
.fx-stall:has(#fx-stall-key:checked):has(#fx-stall-toy:checked):has(#fx-stall-tray:checked):has(#fx-stall-monkey:checked):has(#fx-stall-cherry:checked):has(#fx-stall-puppy:checked):has(#fx-stall-lorry:checked):has(#fx-stall-diary:checked) { --fx-progress: hidden; --fx-end: visible; }
.fx-stall .fx-stall-market { position: relative; display: grid; grid-template-rows: 72px 52px minmax(0, 1fr) 52px; gap: 8px; height: 520px; padding: 12px; min-width: 0; color: var(--fx-ink); font-size: 14px; line-height: 1.35; }
.fx-stall .fx-stall-awning { position: relative; display: grid; grid-template-rows: 24px 28px; gap: 2px; padding-top: 12px; text-align: center; border-bottom: 2px solid var(--fx-ink); }
.fx-stall .fx-stall-stripes { position: absolute; top: 0; left: 0; right: 0; height: 10px; display: flex; }
.fx-stall .fx-stall-stripes span { flex: 1; background: var(--fx-sun); }
.fx-stall .fx-stall-stripes span:nth-child(even) { background: var(--fx-coral); }
.fx-stall .fx-stall-banner { visibility: var(--fx-end); background: var(--fx-mint); color: var(--fx-ink); font-weight: 700; padding: 3px; }
.fx-stall .fx-stall-guide { text-align: center; align-self: center; }
.fx-stall .fx-stall-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-height: 0; }
.fx-stall .fx-stall-side { display: grid; grid-template-rows: 30px minmax(0, 1fr); min-width: 0; min-height: 0; }
.fx-stall .fx-stall-side-title { padding: 4px; text-align: center; border-radius: 5px 5px 0 0; }
.fx-stall .fx-stall-vowels .fx-stall-side-title { background: var(--fx-mint-pale); }
.fx-stall .fx-stall-consonants .fx-stall-side-title { background: var(--fx-coral-pale); }
.fx-stall .fx-stall-goods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; }
.fx-stall .fx-stall-card { display: grid; grid-template-rows: 70px 28px; align-content: center; min-width: 0; padding: 4px; border: 1px solid var(--fx-ink); border-radius: 6px; background: var(--fx-paper); }
.fx-stall .fx-stall-goods svg { display: block; width: 100%; height: 70px; fill: var(--fx-sun-pale); stroke: var(--fx-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fx-stall .fx-stall-goods .fx-stall-light { fill: var(--fx-paper); }
.fx-stall .fx-stall-cherry svg { fill: var(--fx-coral); }
.fx-stall .fx-stall-monkey svg { fill: var(--fx-coral-pale); }
.fx-stall .fx-stall-lorry svg { fill: var(--fx-sky); }
.fx-stall .fx-stall-extra { visibility: var(--fx-two); opacity: var(--fx-on); transform: translate(70px, calc(-12px + var(--fx-on) * 12px)); transition: transform 0.35s, opacity 0.35s, visibility 0.35s; }
.fx-stall .fx-stall-tray .fx-stall-extra, .fx-stall .fx-stall-diary .fx-stall-extra { transform: translate(10px, calc(-18px + var(--fx-on) * 10px)); }
.fx-stall .fx-stall-word { text-align: center; font-size: 18px; font-weight: 700; white-space: nowrap; }
.fx-stall .fx-stall-word b { padding: 0 2px; background: var(--fx-mint); color: var(--fx-ink); border-radius: 3px; box-shadow: 0 0 0 calc(var(--fx-on) * 2px) var(--fx-mint); transition: box-shadow 0.35s; }
.fx-stall .fx-stall-consonants .fx-stall-word b { background: var(--fx-coral); box-shadow: 0 0 0 calc(var(--fx-on) * 2px) var(--fx-coral); }
.fx-stall .fx-stall-tail { display: inline-grid; text-align: left; }
.fx-stall .fx-stall-tail span { grid-area: 1 / 1; transition: transform 0.35s, opacity 0.35s, visibility 0.35s; }
.fx-stall .fx-stall-tail .fx-stall-one { opacity: calc(1 - var(--fx-on)); transform: translateY(calc(var(--fx-on) * 8px)); }
.fx-stall .fx-stall-tail .fx-stall-two { opacity: var(--fx-on); transform: translateX(calc(8px - var(--fx-on) * 8px)); }
.fx-stall .fx-stall-one { visibility: var(--fx-one); }
.fx-stall .fx-stall-two { visibility: var(--fx-two); }
.fx-stall .fx-stall-caption { align-self: center; text-align: center; }
.fx-stall .fx-stall-status, .fx-stall .fx-stall-message { display: grid; min-width: 0; font-size: 14px; line-height: 1.45; }
.fx-stall .fx-stall-status p, .fx-stall .fx-stall-message p { grid-area: 1 / 1; min-width: 0; color: var(--fx-ink); }
.fx-stall .fx-stall-start { visibility: var(--fx-start); }
.fx-stall .fx-stall-progress { visibility: var(--fx-progress); }
.fx-stall .fx-stall-end { visibility: var(--fx-end); }
.fx-stall .fx-stall-feedback { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@container (max-width: 480px) { .fx-stall .fx-stall-sides, .fx-stall .fx-stall-feedback { grid-template-columns: minmax(0, 1fr); } .fx-stall .fx-stall-sides { grid-template-rows: repeat(2, minmax(0, 1fr)); } .fx-stall .fx-stall-market { height: 840px; grid-template-rows: 72px 72px minmax(0, 1fr) 60px; } }