/* ================= Kreator toppera ================= */
.cfg-page { background: var(--ink); overflow: hidden; }
.cfg-page .header nav a[aria-current="page"] { background: var(--text); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wz { position: relative; z-index: 2; height: 100svh; --panel: min(560px, 42vw); }

/* ---------- stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(ellipse 55% 60% at 68% 46%, #3b2a21 0%, #1b1715 52%, #0c0c0d 100%);
  view-transition-name: config-stage;
}
#cfg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: none; }
#cfg-canvas:active { cursor: grabbing; }
.wz-shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(12, 12, 13, .92) 0%, rgba(12, 12, 13, .7) calc(var(--panel) * .8), transparent calc(var(--panel) + 12vw)); }

.dim-labels { position: absolute; inset: 0; pointer-events: none; }
.dim-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  font: 500 12px var(--mono); letter-spacing: .06em; white-space: nowrap;
  color: var(--ink); background: var(--accent); padding: 5px 9px; border-radius: 999px;
  box-shadow: 0 6px 20px -6px rgba(255, 90, 31, .7);
  opacity: 0; will-change: transform;
}

.print-hud {
  position: absolute; left: calc(var(--panel) + 12vw); right: 40px; top: 136px; display: none;
  align-items: center; gap: 14px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.print-hud.is-on { display: flex; }
.print-hud b { color: var(--text); font-weight: 500; min-width: 3.2em; }
.print-hud i { flex: 1; height: 2px; background: var(--line); position: relative; max-width: 360px; }
.print-hud em { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.stage-loading { position: fixed; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: opacity .6s; pointer-events: none; }
.stage-loading.is-done { opacity: 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage-corner { position: fixed; z-index: 3; top: 92px; right: var(--gutter); display: flex; gap: 18px; align-items: center; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toggle-text { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--muted); transition: color .3s; }
.toggle-text:hover { color: var(--text); }
.toggle-text i { width: 22px; height: 12px; border-radius: 999px; background: var(--ink-3); position: relative; transition: background .4s var(--ease); }
.toggle-text i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: transform .4s var(--ease), background .4s; }
.toggle-text[aria-pressed="true"] i { background: rgba(255, 90, 31, .3); }
.toggle-text[aria-pressed="true"] i::after { transform: translateX(10px); background: var(--accent); }

/* ---------- panel ---------- */
.wz-panel {
  position: fixed; z-index: 2; left: var(--gutter); top: 88px; bottom: 150px; width: var(--panel);
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain;
  display: grid; align-content: safe center; padding: 12px 8px 12px 0;
}
.wz-panel::-webkit-scrollbar { display: none; }
.wz-step { display: grid; gap: 0; }
.wz-step[hidden] { display: none; }
.wz-eyebrow { margin: 0 0 18px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.wz-title { margin: 0 0 26px; font-weight: 740; font-size: clamp(40px, 4.6vw, 76px); line-height: .92; letter-spacing: -.05em; }
.wz-title em { color: var(--accent); }
.wz-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wz-title .w > span { display: inline-block; will-change: transform; }
.wz-lead { margin: 0 0 28px; max-width: 440px; color: var(--muted); font-size: 18px; }
.wz-sub-label { margin: 26px 0 12px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wz-sub-label b { color: var(--text); font-weight: 500; margin-left: 8px; }
.wz-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); max-width: 440px; min-height: 1.5em; }
.wz-error { margin: 8px 0 0; min-height: 1.3em; font-size: 14px; color: var(--accent); }

.wz-facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 36px; }
.wz-facts li { display: grid; gap: 4px; }
.wz-facts b { font-weight: 760; font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.wz-facts span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); max-width: 120px; }

/* options: shared radio mechanics */
.opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.opt > input:focus-visible ~ * { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

/* typographic list with sliding marker */
.wz-list { position: relative; display: grid; padding-left: 26px; }
.wz-marker { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(255, 90, 31, .15), 0 0 24px rgba(255, 90, 31, .8); pointer-events: none; }
.wz-item { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 9px 0; color: rgba(242, 239, 233, .38); transition: color .5s var(--ease); }
.wz-item-num { font: 500 11px var(--mono); letter-spacing: .1em; }
.wz-item-name { font-weight: 700; font-size: clamp(26px, 2.5vw, 38px); letter-spacing: -.035em; line-height: 1.05; transition: transform .6s var(--ease); display: inline-block; }
.wz-item-desc { grid-column: 2; font-size: 14px; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s, margin .6s var(--ease); }
.opt:hover .wz-item { color: rgba(242, 239, 233, .75); }
.opt:hover .wz-item-name { transform: translateX(8px); }
.opt > input:checked ~ .wz-item { color: var(--text); }
.opt > input:checked ~ .wz-item .wz-item-num { color: var(--accent); }
.opt > input:checked ~ .wz-item .wz-item-desc { max-height: 3em; opacity: 1; margin-top: 4px; }

.wz-list--specimen .wz-item { grid-template-columns: 1fr auto; align-items: center; padding: 6px 0; }
.wz-list--specimen .wz-item-name { font-weight: 400; font-size: clamp(34px, 3.4vw, 54px); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 .08em .08em 0; line-height: 1.2; }
.wz-list--specimen .wz-item-num { justify-self: end; padding-left: 16px; }

/* cream drops */
.drops { display: flex; gap: 14px; align-items: flex-end; }
.drop { display: block; width: 34px; height: 44px; transition: transform .6s var(--ease); }
.drop svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.drop .gloss { fill: rgba(255, 255, 255, .35); }
.opt:hover .drop { transform: translateY(-4px); }
.opt > input:checked ~ .drop { transform: translateY(-8px) scale(1.18); }
.opt > input:checked ~ .drop svg { animation: wobble .9s var(--ease); }
.opt > input:checked ~ .drop::after { content: ""; display: block; width: 5px; height: 5px; margin: 8px auto 0; border-radius: 50%; background: var(--accent); }
@keyframes wobble { 0% { transform: scale(1, 1); } 30% { transform: scale(1.12, .9); } 60% { transform: scale(.94, 1.06); } 100% { transform: scale(1, 1); } }

/* measuring */
.measure-label { margin: 0; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.measure-num { margin: 4px 0 0; display: flex; align-items: baseline; gap: 10px; }
.measure-num b { font-weight: 780; font-size: clamp(72px, 7vw, 120px); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.measure-num span { font: 500 14px var(--mono); color: var(--muted); letter-spacing: .08em; }
.ruler { position: relative; height: 64px; margin-top: 14px; touch-action: pan-y; }
.ruler-ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-start; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ruler-ticks i { position: relative; width: 1px; height: 16px; background: rgba(242, 239, 233, .3); }
.ruler-ticks i.major { height: 28px; background: rgba(242, 239, 233, .6); }
.ruler-ticks i.major::after { content: attr(data-v); position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font: 500 10px var(--mono); color: var(--muted); }
.ruler-ticks i.on { background: var(--accent); }
.ruler-needle { position: absolute; top: -8px; left: var(--x, 50%); width: 2px; height: 46px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 16px rgba(255, 90, 31, .9); transition: left .35s var(--ease); pointer-events: none; }
.ruler-needle::before { content: ""; position: absolute; top: -6px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.ruler input { position: absolute; inset: -10px 0; width: 100%; height: calc(100% + 20px); margin: 0; opacity: 0; cursor: ew-resize; }
.ruler:has(input:focus-visible) .ruler-needle { box-shadow: 0 0 0 4px rgba(255, 90, 31, .35), 0 0 16px rgba(255, 90, 31, .9); }

.heights { display: flex; gap: 26px; }
.height { display: grid; justify-items: center; gap: 8px; color: rgba(242, 239, 233, .38); transition: color .5s var(--ease); }
.height svg { width: 56px; height: 52px; overflow: visible; }
.height svg rect { fill: currentColor; transition: transform .6s var(--ease); transform-box: fill-box; transform-origin: bottom; }
.height b { font-weight: 600; font-size: 15px; }
.height small { font: 500 10px var(--mono); letter-spacing: .1em; color: var(--muted); }
.opt:hover .height { color: rgba(242, 239, 233, .75); }
.opt > input:checked ~ .height { color: var(--text); }
.opt > input:checked ~ .height svg rect { fill: var(--accent); }
.servings { margin: 26px 0 0; font-size: 15px; color: var(--muted); }
.servings b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }

/* giant text input */
.giant { position: relative; display: block; margin-top: 4px; }
.giant input {
  width: 100%; padding: 0 0 12px; border: 0; background: none; outline: none;
  font-weight: 760; font-size: clamp(48px, 5.4vw, 92px); letter-spacing: -.045em; line-height: 1; color: var(--text); caret-color: var(--accent);
}
.wz .giant input, .wz .giant input:focus { background: none; color: var(--text); border: 0; border-radius: 0; box-shadow: none; padding: 0 0 12px; resize: none; }
.wz .giant--sm input { padding-bottom: 10px; }
.giant input::placeholder { color: rgba(242, 239, 233, .2); opacity: 1; }
.giant-line { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w, 40%); max-width: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s var(--ease); }
.giant-line::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 120px; max-width: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: sheen 2.6s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(-200%); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
.giant-count { position: absolute; right: 0; bottom: 14px; font: 500 11px var(--mono); color: var(--muted); }
.giant--sm { margin-top: 18px; }
.giant--sm input { font-size: clamp(26px, 2.4vw, 38px); font-weight: 650; letter-spacing: -.02em; padding-bottom: 10px; }
.giant--sm .giant-line { height: 2px; }
.giant:not(:focus-within) .giant-line::after { animation: none; opacity: 0; }

.suggest { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 18px; font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); }
.suggest button { background: none; border: 0; padding: 2px 0; cursor: pointer; font: inherit; color: var(--text); position: relative; }
.suggest button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.suggest button:hover::after { transform: scaleX(1); transform-origin: left; }

.reveal-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 4px 0; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--text); justify-self: start; }
.reveal-link i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-3); transition: background .4s, transform .6s var(--ease); }
.reveal-link i::before, .reveal-link i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; transition: transform .5s var(--ease); }
.reveal-link i::after { transform: rotate(90deg); }
.reveal-link:hover i { background: var(--accent); color: var(--ink); transform: rotate(90deg); }
.reveal-link[aria-expanded="true"] i::after { transform: rotate(0); }
#cfg-save i::before { width: 1.5px; height: 10px; margin: -6px 0 0 -.75px; }
#cfg-save i::after { width: 7px; height: 7px; margin: -2px 0 0 -3.5px; background: none; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
#cfg-replay i::before { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: none; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; }
#cfg-replay i::after { display: none; }

/* design shapes */
.shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
.shape { position: relative; display: grid; justify-items: center; gap: 10px; padding: 16px 4px 12px; color: rgba(242, 239, 233, .4); transition: color .5s var(--ease); isolation: isolate; }
.shape::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .28), transparent 65%); opacity: 0; transform: scale(.6); transition: opacity .6s, transform .8s var(--ease); }
.shape svg { width: 76px; height: 52px; overflow: visible; transition: transform .6s var(--ease); }
.shape svg * { vector-effect: non-scaling-stroke; }
.shape b { font-weight: 600; font-size: 15px; }
.opt:hover .shape { color: rgba(242, 239, 233, .8); }
.opt:hover .shape svg { transform: translateY(-4px); }
.opt > input:checked ~ .shape { color: var(--text); }
.opt > input:checked ~ .shape svg { color: var(--accent); }
.opt > input:checked ~ .shape::before { opacity: 1; transform: scale(1); }

/* filament spools */
.spools { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.spool {
  --s: 50px; position: relative; display: block; width: var(--s); height: var(--s); border-radius: 50%;
  background:
    radial-gradient(circle, #0c0c0d 0 15%, #3a3a3f 15% 23%, transparent 23%),
    repeating-radial-gradient(circle, var(--c) 0 1.6px, var(--c2) 1.6px 2.6px);
  box-shadow: inset 0 0 0 3px #2c2c31, inset 0 0 0 5px rgba(0, 0, 0, .4), 0 10px 18px -8px rgba(0, 0, 0, .8);
  transition: transform .7s var(--ease);
}
.spool::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 200deg, transparent 0 10%, rgba(255, 255, 255, var(--sheen, .18)) 18%, transparent 30% 60%, rgba(255, 255, 255, var(--sheen, .12)) 70%, transparent 80%); mix-blend-mode: screen; }
.spool--same { background: radial-gradient(circle, #0c0c0d 0 15%, #3a3a3f 15% 23%, transparent 23%), repeating-conic-gradient(#2a2a2e 0 10deg, #1d1d20 10deg 20deg); }
.spool--same::before { content: "="; position: absolute; inset: 0; display: grid; place-items: center; font: 600 14px var(--mono); color: var(--muted); }
.spools--sm .spool { --s: 34px; }
.opt:hover .spool { transform: translateY(-4px) rotate(30deg); }
.opt > input:checked ~ .spool { transform: translateY(-10px) rotate(180deg); }
.opt > input:checked ~ .spool + .spool-dot { opacity: 1; transform: scale(1); }
.spool-dot { display: block; width: 5px; height: 5px; margin: 6px auto 0; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(0); transition: opacity .4s, transform .5s var(--ease); }

/* proportion */
.props { display: flex; gap: 28px; }
.prop { display: grid; justify-items: center; gap: 8px; color: rgba(242, 239, 233, .38); transition: color .5s var(--ease); }
.prop svg { width: 84px; height: 70px; overflow: visible; }
.prop svg .cake { fill: currentColor; opacity: .35; }
.prop svg .top { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; transition: transform .7s var(--ease); transform-box: fill-box; transform-origin: bottom; }
.prop b { font-weight: 600; font-size: 15px; }
.prop small { font: 500 10px var(--mono); letter-spacing: .1em; color: var(--muted); }
.opt:hover .prop { color: rgba(242, 239, 233, .75); }
.opt > input:checked ~ .prop { color: var(--text); }
.opt > input:checked ~ .prop svg .top { stroke: var(--accent); }
.measure--inline { display: flex; align-items: flex-end; gap: 22px; margin-top: 28px; }
.measure--inline .measure-num b { font-size: clamp(56px, 5.4vw, 92px); }
.measure-side { margin: 0 0 8px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.measure-side span:first-child { color: var(--text); font-weight: 600; }
.fine { display: inline-flex; gap: 14px; }
.fine button { background: none; border: 0; padding: 0; cursor: pointer; font: 500 12px var(--mono); color: var(--text); transition: color .3s; }
.fine button:hover { color: var(--accent); }

/* summary (mobile + a11y) */
.summary { list-style: none; margin: 0 0 6px; padding: 0; display: none; }
.after-actions { display: flex; gap: 28px; flex-wrap: wrap; }
.after-actions .reveal-link { margin-top: 6px; }

/* ---------- nav ---------- */
.wz-nav {
  position: fixed; z-index: 3; left: var(--gutter); bottom: 34px; width: var(--panel);
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "layers where next" "layers back next"; align-items: center; column-gap: 18px;
}
.layers { grid-area: layers; display: flex; flex-direction: column-reverse; gap: 3px; width: 26px; }
.layers i { display: block; height: 4px; border-radius: 2px; background: var(--ink-3); transition: background .5s, transform .6s var(--ease); transform-origin: left; }
.layers i.done { background: var(--accent); }
.layers i.now { background: var(--text); animation: layer-blink 1.2s ease-in-out infinite; }
@keyframes layer-blink { 50% { opacity: .35; } }
.wz-where { grid-area: where; margin: 0; display: flex; gap: 12px; align-items: baseline; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wz-where b { color: var(--text); font-weight: 500; }
.wz-where > b { font: 650 16px var(--display); letter-spacing: -.01em; text-transform: none; }
.wz-back { grid-area: back; justify-self: start; background: none; border: 0; padding: 4px 0; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s, opacity .4s; }
.wz-back span { display: inline-block; transition: transform .4s var(--ease); }
.wz-back:hover { color: var(--text); }
.wz-back:hover span { transform: translateX(-4px); }
.wz-back[hidden] { display: block !important; visibility: hidden; }

.wz-next { grid-area: next; display: flex; align-items: center; gap: 18px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); }
.wz-next-label { font-weight: 650; font-size: 17px; letter-spacing: -.01em; text-align: right; }
.wz-next-orb { position: relative; display: grid; place-items: center; width: 84px; height: 84px; will-change: transform; }
.wz-next-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.wz-next-orb .ring-bg { fill: none; stroke: var(--line); stroke-width: 1.5; }
.wz-next-orb .ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 232.5; stroke-dashoffset: 232.5; transition: stroke-dashoffset 1s var(--ease); }
.wz-next-orb b { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 22px; overflow: hidden; transition: transform .6s var(--ease), background .4s; box-shadow: 0 14px 40px -12px rgba(255, 90, 31, .8); }
.wz-next:hover .wz-next-orb b { transform: scale(1.08); }
.wz-next.is-blocked .wz-next-orb b { background: var(--ink-3); color: var(--muted); box-shadow: none; }
.wz-next.is-final .wz-next-orb b { background: var(--text); }
.wz-next.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- ticket ---------- */
.ticket {
  position: fixed; z-index: 3; right: var(--gutter); bottom: 34px; width: 300px;
  padding: 22px 22px 18px; color: var(--ink); background: var(--paper);
  font: 500 11px/1.5 var(--mono); letter-spacing: .04em;
  transform: rotate(-1.6deg); transform-origin: bottom right;
  -webkit-mask: radial-gradient(circle 5px at 50% 0, transparent 98%, #000) 0 0 / 14px 51% repeat-x, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 100% / 14px 51% repeat-x;
  mask: radial-gradient(circle 5px at 50% 0, transparent 98%, #000) 0 0 / 14px 51% repeat-x, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 100% / 14px 51% repeat-x;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55));
  transition: transform .8s var(--ease), opacity .6s;
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: 8px; background: linear-gradient(90deg, rgba(12, 12, 13, .35) 50%, transparent 0) 0 100% / 6px 1px repeat-x; text-transform: uppercase; }
.ticket-head span:first-child { font: 800 15px var(--display); letter-spacing: -.03em; text-transform: none; }
.ticket-head em { color: var(--accent); margin-left: 3px; }
.ticket-rows { list-style: none; margin: 0; padding: 0; }
.ticket-rows li { display: flex; gap: 6px; align-items: baseline; padding: 4px 0; border-radius: 4px; transition: background .6s; }
.ticket-rows li > span:first-child { text-transform: uppercase; opacity: .55; }
.ticket-rows li > i { flex: 1; min-width: 12px; height: 1px; background: linear-gradient(90deg, rgba(12, 12, 13, .3) 50%, transparent 0) 0 0 / 4px 1px repeat-x; transform: translateY(-3px); }
.ticket-rows li > b { font-weight: 500; text-align: right; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-rows li.empty > b { opacity: .3; }
.ticket-rows li.filled { cursor: pointer; }
.ticket-rows li.filled:hover > b { color: var(--accent); }
.ticket-rows li.flash { background: rgba(255, 90, 31, .22); transition: background 0s; }
.ticket-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; background: linear-gradient(90deg, rgba(12, 12, 13, .35) 50%, transparent 0) 0 0 / 6px 1px repeat-x; text-transform: uppercase; opacity: .55; font-size: 10px; }
.stamp { position: absolute; right: 18px; top: 46%; padding: 8px 14px; border: 2.5px solid var(--accent); border-radius: 8px; color: var(--accent); font: 800 20px/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; text-align: center; transform: rotate(-14deg) scale(2.2); opacity: 0; mix-blend-mode: multiply; pointer-events: none; }
.stamp small { display: block; font: 500 9px var(--mono); letter-spacing: .14em; margin-top: 3px; }
.wz[data-step="uvod"] .ticket { transform: rotate(4deg) translateY(calc(100% + 60px)); opacity: 0; }

/* intro: hide nav extras */
.wz[data-step="uvod"] .layers, .wz[data-step="uvod"] .wz-where { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ticket { width: 260px; }
  .stage-hint { display: none; }
}
@media (max-width: 980px) {
  .wz { --panel: 100%; }
  .cfg-page { overflow: auto; }
  .stage { position: fixed; inset: 0 0 auto 0; height: 50svh; }
  .wz-shade { background: linear-gradient(180deg, transparent 32svh, var(--ink) 50svh); }
  .stage-corner { top: calc(50svh - 34px); }
  .wz-panel { position: relative; left: auto; top: auto; bottom: auto; width: auto; overflow: visible; display: block; margin-top: 50svh; padding: 8px var(--gutter) 150px; min-height: 50svh; }
  .wz-title { font-size: clamp(38px, 10vw, 56px); }
  .wz-nav { left: 0; right: 0; bottom: 0; width: auto; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(12, 12, 13, .96) 30%); }
  .wz-next-orb { width: 68px; height: 68px; }
  .wz-next-orb b { width: 50px; height: 50px; }
  .wz-next-label { font-size: 15px; }
  .wz-where { flex-direction: column; gap: 2px; white-space: nowrap; }
  .ticket { display: none; }
  .summary { display: block; }
  .summary li { display: flex; gap: 8px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .summary li span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 92px; }
  .summary li b { font-weight: 600; }
  .print-hud { left: var(--gutter); right: var(--gutter); top: 120px; }
  .wz-facts { gap: 24px; }
  .wz-facts b { font-size: 32px; }
  .shapes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .shape svg { width: 52px; height: 38px; }
  .shape b { font-size: 12px; }
}
@media (max-width: 520px) {
  .shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .props, .heights { gap: 14px; }
  .spools { gap: 12px 8px; }
}
