/* Harper One · the shell (lead-owned). Starstruck v4 tokens, verbatim; Harper's blue in Starstruck's key. */
:root {
  --page: #0a0c14; --page-2: #10131e; --page-3: #161b2c;
  --ink: #eef1f7; --ink-2: rgba(238, 241, 247, 0.62); --ink-3: rgba(238, 241, 247, 0.38); --ink-4: rgba(238, 241, 247, 0.16);
  --gold: #f2c46d; --blue: #6f86ff; --harper: #4263eb; --privacy: #3ec77a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --spring: cubic-bezier(.2, .9, .25, 1.15); --out: cubic-bezier(.16, 1, .3, 1); --in: cubic-bezier(.55, 0, .85, .3);
  --paper: #f6f4ee;
  /* regions (the shell sets these on resize) */
  --notch-h: 44px; --table-top: 128px; --table-bottom: 236px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
html { overflow-x: clip; } /* clip, not hidden: hidden would make the body a scroll container and break the story's sticky pins */
html { scrollbar-width: none; } html::-webkit-scrollbar { display: none; }
button { font: inherit; color: inherit; }

/* ---------- the world: the Harper cyclorama in the Starstruck page colour, one overhead softbox, a floor pool ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--page); overflow: hidden; }
.sky .world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.no-worlds .sky .world { display: none; }
.sky .softbox { position: absolute; left: 50%; top: -38vh; width: 120vw; height: 96vh; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgb(var(--accent-rgb, 111 134 255) / 0.10) 0%, rgb(var(--accent-rgb, 111 134 255) / 0.04) 38%, transparent 70%);
  animation: breathe 9s ease-in-out infinite; }
.sky .pool { position: absolute; left: 50%; top: 34vh; width: 110vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(46% 42% at 50% 46%, rgba(10, 12, 20, 0.62) 0%, rgba(10, 12, 20, 0.35) 45%, transparent 72%); } /* a calm pool under the prints, so the world never competes with them */
.sky .floor { position: absolute; inset: auto 0 0 0; height: 42vh; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)); }
@keyframes breathe { 0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); } 50% { opacity: .82; transform: translateX(-50%) scale(1.03); } }
.grain { position: fixed; inset: -50%; z-index: 9; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
html.dragging .sky .pool { background: radial-gradient(46% 42% at 50% 46%, rgba(111, 134, 255, 0.35) 0%, rgba(40, 52, 110, 0.35) 45%, transparent 72%); }

.stage { position: fixed; inset: 0; z-index: 1; --sk: var(--studio-k, 0);
  transform: translate3d(0, calc(var(--sk) * -7vh), 0) scale(calc(1 - var(--sk) * .07)); opacity: calc(1 - var(--sk)); transform-origin: 50% 30%; }
html.in-story .stage { pointer-events: none; }
html.in-story .stage * { pointer-events: none !important; }
.studio-space { height: 100vh; height: 100svh; pointer-events: none; }

/* ---------- arrival: the weighted wordmark + the page-coloured pill (Starstruck v4, verbatim idea) ---------- */
.arrive { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 26px; width: min(92vw, 720px); text-align: center; z-index: 4;
  transition: opacity .45s var(--out), transform .6s var(--out), filter .45s var(--out); }
html.has-prints .arrive { opacity: 0; transform: translate(-50%, -62%) scale(.96); filter: blur(6px); pointer-events: none; }
.wordmark { margin: 0; font: 200 clamp(64px, 11vw, 148px)/0.9 var(--font); letter-spacing: -0.055em; color: var(--ink);
  font-variation-settings: "wght" var(--wght, 200); display: flex; align-items: center; gap: .16em; }
.wordmark img { width: .62em; height: .62em; border-radius: .16em; box-shadow: 0 10px 30px -10px rgba(66, 99, 235, 0.6); }
.pill { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 10px 0 24px; width: min(92vw, 520px); border-radius: 999px; cursor: pointer;
  background: var(--page); color: var(--ink-2); font: 400 17px/1 var(--font); letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -10px 24px rgba(0, 0, 0, 0.45), 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  transition: box-shadow .2s var(--out), transform .5s var(--spring); -webkit-tap-highlight-color: transparent; }
.pill:hover { color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 -10px 24px rgba(0, 0, 0, 0.45), 0 24px 60px -28px rgba(0, 0, 0, 0.9); }
.pill:focus-visible { outline: 2px solid rgba(111, 134, 255, .7); outline-offset: 4px; }
.pill.is-press { transform: scale(.985); transition: none; }
html.dragging .pill { transform: scale(1.04); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(111,134,255,.55), 0 0 0 6px rgba(111,134,255,.10), 0 24px 70px -20px rgba(111,134,255,.45); }
.pill .pill-glyph { width: 20px; height: 20px; flex: none; color: var(--blue); }
.pill .pill-text { flex: 1; text-align: left; }
.pill .samples { all: unset; cursor: pointer; flex: none; height: 40px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center;
  font: 600 14px/1 var(--font); color: var(--ink); background: rgba(111, 134, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(111, 134, 255, 0.35); transition: background .15s; }
.pill .samples:hover { background: rgba(111, 134, 255, 0.26); }
.pill .samples.is-press { transform: scale(.96); transition: none; }
.arrive-sub { margin: 0; font: 400 14px/1.45 var(--font); color: var(--ink-3); letter-spacing: -0.005em; }
.arrive-sub b { color: var(--ink-2); font-weight: 500; }

/* ---------- the notch: logo · name · count · ≤ 2 actions (page-coloured glass) ---------- */
.notch { position: fixed; z-index: 8; top: 14px; left: 50%; transform: translateX(-50%); height: var(--notch-h); display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; border-radius: 999px;
  background: rgba(10, 12, 20, 0.72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 40px -20px rgba(0, 0, 0, 0.8);
  opacity: 0; translate: 0 -8px; pointer-events: none; transition: opacity .35s var(--out), translate .5s var(--spring); white-space: nowrap; }
html.has-prints .notch, html.in-story .notch { opacity: 1; translate: 0 0; pointer-events: auto; }
html.in-story:not(.has-prints) .notch .notch-act, html.in-story:not(.has-prints) .notch-sep, html.in-story:not(.has-prints) .notch-count { display: none; }
.notch-mark { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font); letter-spacing: -0.01em; }
.notch-mark img { width: 20px; height: 20px; border-radius: 5px; }
.notch-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.12); }
.notch-count { font: 500 13px/1 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 64px; }
.notch-count .roll { display: inline-block; }
.notch-act { all: unset; cursor: pointer; position: relative; overflow: hidden; height: 32px; padding: 0 14px; border-radius: 999px; font: 600 13px/32px var(--font); color: var(--ink);
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); transition: background .15s; }
.notch-act:hover { background: rgba(255, 255, 255, 0.12); }
.notch-act.is-press { transform: scale(.96); transition: none; }
.notch-act:focus-visible { outline: 2px solid rgba(111, 134, 255, .7); outline-offset: 2px; }
.notch-act .fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(242, 196, 109, .5), rgba(242, 196, 109, .28)); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.notch-act span { position: relative; }
.notch-act.gold { color: #1a1406; background: var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.notch-act.gold .fill { background: rgba(255, 255, 255, .45); }
.notch-act.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }

/* ---------- the talk line (one idea per screen) ---------- */
.talks { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.talk { position: absolute; left: 50%; width: min(92vw, 900px); transform: translateX(-50%); text-align: center; margin: 0;
  font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); }
.talk .w { display: inline-block; will-change: transform, opacity, filter; }
.talk .sub { display: block; margin-top: 8px; font-weight: 400; font-size: clamp(12px, 1.05vw, 14px); letter-spacing: -0.005em; color: var(--ink-3); }

/* ---------- the table and the prints ---------- */
.table { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.print { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; pointer-events: auto; will-change: transform; touch-action: none; -webkit-user-select: none; user-select: none; }
.print-lift { position: absolute; inset: 0; transition: transform .45s var(--spring); }
.print-shadow { position: absolute; left: 4%; right: 4%; bottom: -3%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,.2) 60%, transparent);
  filter: blur(10px); transition: transform .45s var(--spring), opacity .45s var(--out); }
.sheet { position: absolute; inset: 0; border-radius: 4px; background: var(--paper); padding: var(--edge, 7px) var(--edge, 7px) var(--margin, 26px);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.08), 0 1px 0 #e1ddd3, 0 2px 0 #d3cec2, 0 3px 1px #bfb9ab, 0 12px 26px -12px rgba(0,0,0,.6), 0 34px 70px -30px rgba(0,0,0,.8); overflow: hidden; }
.img-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0d0f16; border-radius: 1px; }
.img-wrap > .faceA, .img-wrap > .faceB, .img-wrap > .before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.img-wrap.alpha { background-color: #e9e6de; background-image: linear-gradient(45deg, #dcd8ce 25%, transparent 25%), linear-gradient(-45deg, #dcd8ce 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dcd8ce 75%), linear-gradient(-45deg, transparent 75%, #dcd8ce 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.img-wrap.alpha > .faceA, .img-wrap.alpha > .faceB { object-fit: contain; }
.img-wrap > [hidden] { display: none; }
.fx { position: absolute; inset: 0; pointer-events: none; }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.margin { position: absolute; left: var(--edge, 7px); right: var(--edge, 7px); bottom: 0; height: var(--margin, 26px); display: flex; align-items: center; gap: 8px; }
.stamp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 10.5px/1 var(--mono); letter-spacing: .02em; color: rgba(30, 32, 40, .62); }
.stamp[data-tone=error] { color: #b3392f; }
.stamp[data-tone=gold] { color: #8a6412; }
/* the margin's actions: undo · retry · save · remove (quiet ink on the paper; shown on hover, always on phone) */
.acts { display: flex; gap: 2px; flex: none; opacity: 0; transition: opacity .15s; }
.print:hover .acts, .print:focus-within .acts, .print.show-acts .acts { opacity: 1; }
.pa { all: unset; cursor: pointer; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: rgba(30, 32, 40, .55); transition: background .15s, color .15s; }
.pa svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pa:hover { background: rgba(0, 0, 0, .07); color: rgba(30, 32, 40, .9); }
.pa:focus-visible { outline: 2px solid rgba(111, 134, 255, .7); }
.pa.is-press { transform: scale(.9); transition: none; }
.pa[disabled] { display: none; }
.pa-remove:hover { color: #b3392f; }
.print:not(.stamped) .pa-save { display: none; }
.sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .20) 46%, transparent 60%); background-size: 260% 100%; background-position: 110% 0; mix-blend-mode: soft-light; transition: background-position 1.1s var(--out); }
.print:hover .sheen { background-position: -10% 0; }
.print.is-active { z-index: 3; }
.print.is-queued:not(.is-active) .img-wrap::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 20, .18); }
.print .faceB { will-change: clip-path; }
/* the before (hold a print): the original shows through the same print, opened from the press point */
.print .before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: circle(0 at var(--bx, 50%) var(--by, 50%)); transition: clip-path .26s var(--out); pointer-events: none; }
.print.show-before .before { clip-path: circle(150% at var(--bx, 50%) var(--by, 50%)); }
.print .before-tag { position: absolute; left: 8px; top: 8px; padding: 5px 9px; border-radius: 999px; font: 600 11px/1 var(--font); color: #fff; background: rgba(10, 12, 20, .62); opacity: 0; transition: opacity .15s; pointer-events: none; }
.print.show-before .before-tag { opacity: 1; }
.print.is-press .print-lift { transform: scale(.985); transition: none; }

/* ---------- the tool wheel: large naked titles on a gentle arc (cp-wheel-carousel geometry) ---------- */
.wheel { position: absolute; left: 0; right: 0; bottom: 0; height: var(--table-bottom); z-index: 4; overflow: hidden; touch-action: none;
  opacity: 0; transition: opacity .5s var(--out); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
html.has-prints .wheel { opacity: 1; pointer-events: auto; }
.tool-title { all: unset; position: absolute; left: 0; top: 0; white-space: nowrap; cursor: pointer; transform-origin: 50% 100%;
  font: 700 clamp(40px, 5.2vw, 78px)/1 var(--font); letter-spacing: -0.045em; color: var(--ink); will-change: transform, opacity; -webkit-tap-highlight-color: transparent; }
.tool-title:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: rgba(111, 134, 255, .8); }
.tool-title .ct { font: 500 .22em/1 var(--font); letter-spacing: 0; color: var(--ink-3); vertical-align: super; margin-left: .3em; }

/* ---------- each tool's title has its own character (swiping the wheel reads as travelling between models) ----------
   k = 1 when the title sits at the centre (written per frame). Static styles; only transform/opacity move per frame. */
.tool-title .t2 { font: inherit; }
.tool-title[aria-selected="true"] { text-shadow: 0 0 40px rgb(var(--accent-rgb) / .35); }
/* Cut out: outline letters with a laser line through them (t2-highlight-draw's band, as a cut) */
.tool-title[data-tool=cutout] { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.tool-title[data-tool=cutout][aria-selected="true"] { color: var(--ink); -webkit-text-stroke: 0; }
.tool-title[data-tool=cutout]::after { content: ""; position: absolute; left: -4%; right: -4%; top: 104%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #9fb0ff 20%, #fff 50%, #9fb0ff 80%, transparent); box-shadow: 0 0 12px #6f86ff, 0 0 2px #fff; opacity: .9; }
/* Portrait: a light, elegant weight with a warm-violet rim (the glow-horizon light) */
.tool-title[data-tool=portrait] { font-weight: 300; letter-spacing: -0.03em; color: #f4efff; text-shadow: 0 -1px 0 rgba(255, 214, 160, .55), 0 0 24px rgba(182, 156, 255, .45); }
/* Depth: letters extruded into space (sk-skiper28's perspective text, as a stacked extrusion) */
.tool-title[data-tool=depth] { color: #e9fffb; text-shadow: 1px 1px 0 #2a8f86, 2px 2px 0 #237a73, 3px 3px 0 #1c655f, 4px 4px 0 #15504b, 5px 5px 0 #0f3b37, 6px 6px 12px rgba(0, 0, 0, .6); }
/* Upscale 4×: a mono, pixel-built face; the ×4 in the accent */
.tool-title[data-tool=upscale] { font-family: var(--mono); font-weight: 800; letter-spacing: -0.06em; color: #e6e9ff; text-shadow: 3px 0 0 rgba(111, 134, 255, .45), -3px 0 0 rgba(255, 120, 180, .25); }
.tool-title[data-tool=upscale] .t2 { color: #8a94ff; }
/* Erase: the letters are half rubbed away (a dusty eraser pass) */
.tool-title[data-tool=erase] { color: #fff3e2; -webkit-mask-image: linear-gradient(100deg, #000 0 48%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.55) 68%, #000 80%); mask-image: linear-gradient(100deg, #000 0 48%, rgba(0,0,0,.18) 60%, rgba(0,0,0,.55) 68%, #000 80%); }
/* Blur back: the first word sharp, the second out of focus (small element: a static blur is fine) */
.tool-title[data-tool=blur] .t2 { filter: blur(3.5px); opacity: .85; }
/* Sticker: puffy rounded letters with a white die-cut edge and a drop shadow (Starstruck's goopy tone) */
.tool-title[data-tool=sticker] { font-family: var(--font-rounded); font-weight: 800; letter-spacing: -0.03em; color: #f2c46d; rotate: -2deg;
  text-shadow: 0 0 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1.5px 1.5px 0 #fff, -1.5px 1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px -1.5px 0 #fff, 0 6px 10px rgba(0,0,0,.55); }
@media (prefers-reduced-motion: reduce) { .tool-title[data-tool=blur] .t2 { filter: none; opacity: .6; } }

/* ---------- the key: liquid metal (the toggle-gen v2 port of tf-johuniq--liquid-metal-button) ---------- */
.dock { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .45s var(--out); }
html.has-prints .dock { opacity: 1; pointer-events: auto; }
.lmb { all: unset; position: relative; display: inline-block; min-width: 200px; height: 50px; border-radius: 100px; cursor: pointer; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 36px 14px rgba(0,0,0,.02), 0 20px 12px rgba(0,0,0,.08), 0 9px 9px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.15), 0 10px 30px -8px rgb(var(--accent-rgb, 111 134 255) / 0.36);
  transition: box-shadow .15s cubic-bezier(.4,0,.2,1); -webkit-tap-highlight-color: transparent; }
.lmb:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 12px 6px rgba(0,0,0,.05), 0 8px 5px rgba(0,0,0,.1), 0 4px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.2), 0 12px 34px -8px rgb(var(--accent-rgb, 111 134 255) / 0.55); }
.lmb:focus-visible { outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 3px; }
.lmb-rim { position: absolute; inset: 0; border-radius: 100px; overflow: hidden; transform: translateZ(0); }
.lmb-rim::before, .lmb-rim i { content: ""; position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%;
  background: conic-gradient(from 0deg, #f7f9fb, #6b7079 7%, #eef2f6 14%, #1f2227 24%, #d7dce3 33%, #858b94 41%, #ffffff 50%, #2a2e34 60%, #c8ced6 70%, #4a4f57 80%, #e8ecf1 90%, #f7f9fb);
  animation: lm-spin 5s linear infinite; }
.lmb-rim i { mix-blend-mode: screen; opacity: .55; }
.lmb-rim i.r { background: conic-gradient(from 8deg, transparent, rgba(255, 60, 40, .9) 6%, transparent 12%, transparent 48%, rgba(255, 80, 40, .8) 53%, transparent 58%); }
.lmb-rim i.b { background: conic-gradient(from -8deg, transparent, rgba(60, 120, 255, .9) 6%, transparent 12%, transparent 48%, rgba(60, 140, 255, .8) 53%, transparent 58%); }
@keyframes lm-spin { to { transform: rotate(360deg); } }
.lmb.running .lmb-rim::before, .lmb.running .lmb-rim i { animation-duration: 1.4s; }
.lmb-core { position: absolute; inset: 2px; border-radius: 100px; background: linear-gradient(180deg, #202020 0%, #000000 100%); transition: transform .8s var(--spring), box-shadow .15s cubic-bezier(.4,0,.2,1); }
.lmb-label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 0 26px; z-index: 2;
  font: 600 15px/1 var(--font); letter-spacing: -0.01em; color: rgba(238, 241, 247, 0.94); text-shadow: 0 1px 2px rgba(0,0,0,.5); transition: transform .8s var(--spring); white-space: nowrap; }
.lmb-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.lmb.is-press .lmb-core, .lmb.is-press .lmb-label, .lmb.is-press .lmb-rim { transform: translateY(1px) scale(0.98); transition: none; }
.lmb.is-press .lmb-core { box-shadow: inset 0 2px 4px rgba(0,0,0,.4), inset 0 1px 2px rgba(0,0,0,.3); }
.lmb.is-press { box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.3); transition: none; }
.lmb-ripples { position: absolute; inset: 0; border-radius: 100px; overflow: hidden; z-index: 3; pointer-events: none; }
.lmb-ripples span { position: absolute; width: 20px; height: 20px; border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%); animation: ripple .6s ease-out forwards; }
@keyframes ripple { from { transform: translate(-50%, -50%) scale(0); opacity: .6; } to { transform: translate(-50%, -50%) scale(4); opacity: 0; } }
.lmb[disabled] { cursor: default; opacity: .55; }

/* ---------- idle, reduced motion, phone ---------- */
html.idle *, html.idle *::before, html.idle *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .sky .softbox, .lmb-rim::before, .lmb-rim i { animation: none; }
  .arrive, .print-lift, .print-shadow, .sheen, .notch, .dock, .wheel { transition: none !important; }
  .talk .w { will-change: auto; }
}
@media (max-width: 719px) {
  :root { --notch-h: 40px; }
  .notch { top: 10px; gap: 8px; padding: 0 4px 0 10px; }
  .notch-mark span { display: none; }
  .notch-count { min-width: 0; }
  .notch-act { padding: 0 11px; height: 30px; line-height: 30px; }
  .pill { height: 56px; font-size: 15px; padding-left: 18px; }
  .pill .pill-text { font-size: 15px; }
  .arrive { top: 42%; gap: 22px; }
  .tool-title { font-size: 40px; }
  .dock { left: 16px; right: 16px; transform: none; bottom: max(16px, env(safe-area-inset-bottom)); }
  .lmb { width: 100%; min-width: 0; height: 54px; }
  .stamp { font-size: 9.5px; }
  .print.show-acts .acts { opacity: 1; }
  .talk .sub { display: none; }
  .pill .pill-text .long { display: none; }
}

/* ---------- FREE: a cut-out sheds its paper and floats (round 5). Same node; only static styles change. ---------- */
.sheet { transition: background-color .5s var(--out), box-shadow .5s var(--out); }
.img-wrap { transition: background-color .5s var(--out); }
.print.free .sheet { background-color: transparent; box-shadow: none; overflow: visible; }
.print.free .img-wrap { background: none !important; overflow: visible; }
.print.free .sheen { opacity: 0; }
.print.free .faceA { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .10)) drop-shadow(0 18px 24px rgba(0, 0, 0, .55)) drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
  transform: translate3d(0, -6px, 0); transition: transform .6s var(--spring); }
/* the contact shadow hugs the object's own footprint (--ob-* are the object's bounds inside the photo area) */
.print.free .print-shadow { left: calc(var(--edge, 7px) + (100% - 2 * var(--edge, 7px)) * var(--ob-l, .1) + 4%);
  right: calc(var(--edge, 7px) + (100% - 2 * var(--edge, 7px)) * (1 - var(--ob-r, .9)) + 4%);
  top: calc(var(--edge, 7px) + (100% - var(--edge, 7px) - var(--margin, 26px)) * var(--ob-b, .95) - 10px); bottom: auto; height: 22px; opacity: .8; }
/* the stamp becomes a caption under the object, the actions float with it */
.print.free .margin { top: calc(var(--edge, 7px) + (100% - var(--edge, 7px) - var(--margin, 26px)) * var(--ob-b, 1) + 10px); bottom: auto;
  left: calc(var(--edge, 7px) + (100% - 2 * var(--edge, 7px)) * var(--ob-l, 0)); right: calc(var(--edge, 7px) + (100% - 2 * var(--edge, 7px)) * (1 - var(--ob-r, 1))); justify-content: center; min-width: min(180px, 100%); margin: 0 auto; }
.print.free .stamp { flex: 0 1 auto; text-align: center; color: var(--ink-3); }
.print.free .stamp[data-tone=gold] { color: var(--gold); }
.print.free .pa { color: var(--ink-2); }
.print.free .pa:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
/* holding a free print for the before: the paper comes back under the original */
.print.free.show-before .sheet { background-color: var(--paper); }
.print.free .before { border-radius: 1px; }

/* ---------- a print leaving the table (the ✕, a flick, Clear all) ---------- */
.print.leaving { pointer-events: none; }
.print.dragging { z-index: 6; cursor: grabbing; }

/* ---------- notch: the Clear icon (hold) and the transient Undo ---------- */
.notch-icon { width: 32px; padding: 0; display: grid; place-items: center; }
.notch-icon svg { position: relative; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
#clear .fill { background: linear-gradient(90deg, rgba(255, 110, 90, .55), rgba(255, 110, 90, .3)); }
#undo { color: var(--ink); background: rgb(var(--accent-rgb, 111 134 255) / .22); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb, 111 134 255) / .45); }
#undo[hidden] { display: none; }

/* ---------- the action queue ---------- */
.queue { position: absolute; left: calc(100% + 14px); top: 0; height: 50px; display: flex; align-items: center; gap: 8px; }
.qchip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; white-space: nowrap;
  font: 500 12.5px/1 var(--font); color: var(--ink-2); background: rgba(10, 12, 20, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: qin .38s var(--spring); }
.qchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--qa); box-shadow: 0 0 10px var(--qa); }
.qchip em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qchip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .5; }
.qchip:hover { color: var(--ink); } .qchip:hover svg { opacity: 1; }
@keyframes qin { from { opacity: 0; transform: translateX(-10px) scale(.9); } }

/* ---------- retry menu (a small glass list next to the print; the only popover) ---------- */
.retry { position: fixed; z-index: 12; min-width: 220px; padding: 6px; border-radius: 16px; background: rgba(14, 17, 28, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px -20px rgba(0, 0, 0, .9); animation: qin .3s var(--spring); }
.retry p { margin: 6px 10px 6px; font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.retry button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 9px 10px; border-radius: 10px; }
.retry button b { font: 600 14px/1.1 var(--font); color: var(--ink); }
.retry button span { font: 400 12px/1.2 var(--font); color: var(--ink-3); }
.retry button:hover, .retry button:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }

/* ---------- the scroll cue: "How <tool> works ↓" (bottom right; it opens the story) ---------- */
.how { all: unset; cursor: pointer; position: absolute; right: 28px; bottom: 30px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font); color: var(--ink-3);
  transition: color .15s, opacity .4s var(--out); }
.how svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s var(--out) infinite; }
.how:hover { color: var(--ink); }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }
html:not(.has-prints) .how { right: 50%; transform: translateX(50%); bottom: 34px; }
@media (max-width: 719px) {
  .how { right: 18px; transform: none; bottom: 16px; height: 32px; font-size: 12px; z-index: 6; }
  .how span { display: none; } .how::before { content: "How"; }
  html.has-prints .how { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 62px); }
  html:not(.has-prints) .how { top: auto; bottom: 28px; }
  .queue { position: static; height: auto; justify-content: center; flex-wrap: wrap; order: 3; }
  .dock { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .how svg, .qchip, .retry { animation: none; } }
