/* Uni Pad - the sticker album. White leaf, ink indigo, rainbow only where a sticker is. */
@font-face { font-family: "Bagel Fat One"; src: url(/assets/fonts/BagelFatOne-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url(/assets/fonts/Yellowtail-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(/assets/fonts/SchibstedGrotesk-VF.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(/assets/fonts/SplineSansMono-VF.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --paper: #FFFFFF; --recess: #F5F2FB; --slot: #C9C4DA; --rule: #E6E1F1; --ink: #1F1B3D; --ink-2: #5B5679;
  --r1: #F2557E; --r2: #FF8C42; --r3: #FFD23F; --r4: #3DD598; --r5: #3BA7F2; --r6: #8A6CF0; --gold: #E8A72A;
  --foil: linear-gradient(115deg, #FFD9E6 0%, #FFE9C7 18%, #FFF8C2 32%, #D6F7E6 48%, #D3ECFF 64%, #E6DBFF 80%, #FFD9E6 100%);
  --f-display: "Bagel Fat One", system-ui, sans-serif; --f-script: "Yellowtail", cursive;
  --f-text: "Schibsted Grotesk", system-ui, sans-serif; --f-num: "Spline Sans Mono", ui-monospace, monospace;
  --kiss: 0 0 0 4px #fff, 0 0 0 5px rgba(31, 27, 61, .14);
  --lift: 0 3px 0 rgba(31, 27, 61, .12), 0 10px 18px -8px rgba(31, 27, 61, .28);
  --flat: 0 1px 0 rgba(31, 27, 61, .12), 0 2px 4px -2px rgba(31, 27, 61, .2);
  --rs: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --leaf: min(1280px, calc(100vw - 32px));
  --cur: url(/assets/cur.png) 2 1, auto;
  --cur-peel: url(/assets/cur-peel.png) 4 4, pointer;
  --cur-hand: url(/assets/cur-tap.png) 2 1, pointer;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--f-text); cursor: var(--cur); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a, button, [role=button], [onclick], summary, label, .ca, select { cursor: var(--cur-hand); }
input, textarea { cursor: text; }
a { color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.script { font-family: var(--f-script); font-weight: 400; color: var(--ink-2); }
.lbl { font: 700 13px/1.2 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--r5); outline-offset: 3px; border-radius: 8px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons: die-cut stickers ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: var(--rs); background: #fff; color: var(--ink); font: 600 16px/1 var(--f-text); text-decoration: none; white-space: nowrap;
  box-shadow: var(--kiss), var(--lift); transition: transform .18s var(--ease), box-shadow .18s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px) rotate(-.6deg); }
.btn:active { transform: translateY(1px); box-shadow: var(--kiss), 0 0 0 rgba(0,0,0,0); }
.btn[disabled], .btn[aria-disabled=true] { color: var(--slot); box-shadow: 0 0 0 2px var(--rule); transform: none; cursor: not-allowed; }
.btn-main { background: var(--ink); color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(31,27,61,.2), var(--lift); }
.btn-x { width: 48px; padding: 0; }
.btn-x svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.btn-sq { width: 44px; min-height: 44px; padding: 0; }
.btn-ghost { box-shadow: none; background: transparent; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; min-height: 40px; padding: 0 6px; }
.btn-ghost:hover { color: var(--ink); transform: none; }
.btn-foil { background: var(--foil); background-size: 220% 100%; background-position: var(--fx, 30%) 50%; }
.btn-tool { justify-content: flex-start; width: 100%; }
.btn-tool .sw { width: 18px; height: 18px; border-radius: 6px; background: var(--hsw, var(--foil)); box-shadow: 0 0 0 1.5px rgba(31,27,61,.25); }

/* CA chip: a sticker that peels to show the address (21st 26532 logic) */
.ca { position: relative; display: inline-flex; align-items: center; min-height: 48px; border-radius: var(--rs); overflow: visible; }
.ca-under { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px 0 12px; border-radius: var(--rs); background: var(--recess); box-shadow: inset 0 0 0 2px var(--slot);
  font: 500 13px/1.2 var(--f-num); color: var(--ink); max-width: min(92vw, 520px); }
.ca-under code { font: inherit; word-break: break-all; }
.ca-ok { font: 700 12px/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase; color: #138a5c; }
.ca-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--rs); background: #fff; font: 600 16px/1 var(--f-text);
  box-shadow: var(--kiss), var(--lift); clip-path: polygon(0 0, var(--px, calc(100% - 22px)) 0, calc(var(--px, calc(100% - 22px)) - 22px) 100%, 0 100%); transition: clip-path .42s var(--ease); pointer-events: none; }
.ca-cover b { font: 700 13px/1 var(--f-num); }
.ca-fl { position: absolute; top: -2px; width: 30px; height: 52px; left: calc(var(--px, calc(100% - 22px)) - 26px); transition: left .42s var(--ease), opacity .25s; pointer-events: none; }
.ca-fl path { fill: var(--recess); stroke: rgba(31,27,61,.18); stroke-width: 1; }
.ca:hover { --px: calc(100% - 40px); }
.ca.is-open { --px: -30px; }
.ca.is-open .ca-fl { opacity: 0; }
.ca:not(.is-open) .ca-under { min-width: 112px; }
.ca:not(.is-open) .ca-under code, .ca:not(.is-open) .ca-ok { visibility: hidden; }
.ca:not(.is-open) .ca-under { width: 112px; overflow: hidden; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; padding: 0 max(16px, calc((100vw - 1280px) / 2));
  background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-sc { border-bottom-color: var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font: 400 22px/1 var(--f-display); letter-spacing: .005em; }
.brand img { transform: rotate(-8deg); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-l { padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav-l:hover { color: var(--ink); background: var(--recess); }
.nav .btn { min-height: 42px; font-size: 15px; padding: 0 16px; }
.nav .btn-x { width: 42px; padding: 0; }
.nav-mine .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--r4); }

/* ---------- album ---------- */
.album { width: var(--leaf); margin: 0 auto; }
.leaf { position: relative; }

/* 1. bookplate */
.plate { min-height: calc(100svh - 68px); display: flex; flex-direction: column; align-items: center; padding: clamp(6px, 1.6vh, 20px) 0 clamp(18px, 3vh, 36px); }
.name { font: 400 clamp(56px, min(12vw, 13.2vh), 132px)/.9 var(--f-display); letter-spacing: -.005em; text-align: center; color: var(--ink); }
.nm { position: relative; display: inline-block; isolation: isolate; -webkit-text-stroke: .16em #fff; paint-order: stroke fill; padding: .08em .14em .02em; }
.nm::before { content: "Uni Pad"; position: absolute; left: .14em; top: .08em; z-index: -1; color: transparent; -webkit-text-stroke: .2em rgba(31,27,61,.13); transform: translateY(.03em); pointer-events: none; }
.nm-i { position: relative; display: inline-block; }
.nm-horn { position: absolute; left: 50%; bottom: 55%; width: .62em; height: .62em; max-width: none; transform: translate(-46%, 0) rotate(4deg); transform-origin: 50% 90%; }
.owner { margin-top: clamp(0px, .6vh, 8px); display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: clamp(22px, 3.4vh, 32px); line-height: 1.2; }
.owner .script { font-size: 1em; }
.owner-line { position: relative; display: inline-block; min-width: min(6.4em, 34vw); height: 1.2em; border-bottom: 2px dashed var(--slot); text-align: center; }
.owner-v { font: 400 1.05em/1 var(--f-script); color: var(--ink); white-space: nowrap; }
.owner-v .ch { display: inline-block; animation: ink .28s var(--ease) both; }
@keyframes ink { from { transform: translateY(.18em) rotate(-6deg); opacity: 0; } }

.desk { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 48px); width: 100%; margin-top: clamp(8px, 1.6vh, 18px); }
.desk-l { justify-self: end; width: min(320px, 100%); }
.desk-r { justify-self: start; width: min(260px, 100%); display: grid; gap: 14px; }
.slot-col { position: relative; }
.slot { --sw: min(calc(54vh * .9), 440px, calc(100vw - 32px)); position: relative; width: var(--sw); aspect-ratio: 8 / 9; border-radius: 28px; background: var(--recess);
  outline: 3px dashed var(--slot); outline-offset: -3px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 7% 7% 0; touch-action: pan-y; }
.slot:focus-visible { outline-color: var(--r5); }
.slot.is-over { outline-color: var(--r6); background: #EFEAFB; }
.tag-demo { position: absolute; z-index: 4; left: 14px; top: 12px; font: 700 11px/1 var(--f-text); letter-spacing: .12em; padding: 6px 9px; border-radius: 8px; background: #fff; box-shadow: var(--kiss); }
.tag-demo[hidden] { display: none; }
.under { position: absolute; left: 7%; right: 7%; top: 7%; aspect-ratio: 1; border-radius: 6%; display: grid; place-items: center; border: 2px dashed var(--slot); opacity: 0; transition: opacity .3s; }
.under .script { font-size: 26px; }
.slot.is-peeled .under { opacity: 1; }
.peel { position: relative; z-index: 2; width: 100%; aspect-ratio: 1; transform-origin: 0% 0%; transition: transform .7s var(--ease); }
.stage { width: 100%; height: 100%; border-radius: 6%; background: #fff; clip-path: polygon(0 0, 100% 0, 100% var(--fy, 100%), var(--fx, 100%) 100%, 0 100%); transition: clip-path .6s var(--ease); touch-action: pan-y; }
.stage.is-edit { touch-action: none; cursor: var(--cur-peel); }
.peel-sh { position: absolute; inset: 4% 3% 0 4%; border-radius: 8%; background: rgba(31,27,61,.22); opacity: 0; transform: translate(0, 0) scale(.96); transition: opacity .6s var(--ease), transform .7s var(--ease); z-index: -1; }
.flap { position: absolute; right: 0; bottom: 0; width: 16%; height: 16%; pointer-events: none; transform: scale(0); transform-origin: 100% 100%; transition: transform .6s var(--ease); }
.flap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 49.5%, #F1EEF8 50%, #fff 100%); border-radius: 0 0 22% 0; box-shadow: -3px -3px 6px -3px rgba(31,27,61,.18); }
.slot.is-peeled .peel { transform: translate(-1%, -12px) rotate(-3deg); }
.slot.is-peeled .peel-sh { opacity: 1; transform: translate(10px, 16px) scale(1); }
.slot.is-peeled .stage { --fx: 84%; --fy: 84%; }
.slot.is-peeled .flap { transform: scale(1); }
.slot-cap { margin-top: auto; height: 11%; padding-bottom: 2%; display: flex; align-items: center; justify-content: center; gap: 8px; font: 500 14px/1.2 var(--f-num); color: var(--ink-2); text-align: center; white-space: nowrap; }
.slot-cap.err { color: #B4264F; font-size: 13px; white-space: normal; }
.slot-cap .sep { color: var(--slot); }
.slot-cap:not(.err) { max-width: 100%; overflow: hidden; font-size: clamp(9.5px, calc(var(--sw) * .052), 14px); gap: clamp(4px, calc(var(--sw) * .018), 8px); }
.making { position: absolute; z-index: 3; left: 7%; right: 7%; top: 7%; aspect-ratio: 1; display: grid; align-items: end; }
.making[hidden] { display: none; }
.die { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.die rect { fill: none; stroke: #fff; stroke-width: 1.1; stroke-dasharray: 2 1.4; vector-effect: non-scaling-stroke; stroke-width: 4px; animation: march 1.1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -6.8; } }
.mk-box { margin: 0 6% 6%; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--kiss), var(--lift); }
.mk-t { font-weight: 600; font-size: 15px; }
.mk-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; height: 8px; margin: 8px 0 6px; }
.mk-bar i { border-radius: 3px; background: var(--rule); position: relative; overflow: hidden; }
.mk-bar i::after { content: ""; position: absolute; inset: 0; transform: scaleX(var(--f, 0)); transform-origin: 0 50%; transition: transform .4s linear; }
.mk-bar i:nth-child(1)::after { background: var(--r1); } .mk-bar i:nth-child(2)::after { background: var(--r2); } .mk-bar i:nth-child(3)::after { background: var(--r3); }
.mk-bar i:nth-child(4)::after { background: var(--r4); } .mk-bar i:nth-child(5)::after { background: var(--r5); } .mk-bar i:nth-child(6)::after { background: var(--r6); }
.mk-n { font-size: 13px; color: var(--ink-2); }
.drop-veil { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(255,255,255,.86); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drop-veil .script { font-size: 64px; color: var(--ink); }
.drop-veil.on { opacity: 1; }

.namer { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--kiss), var(--lift); animation: slap .5s var(--ease) both; }
.desk-r:not([hidden]) { animation: slap .5s .08s var(--ease) both; }
@keyframes slap { from { transform: translateY(14px) rotate(2deg) scale(.96); opacity: 0; } }
.fld { position: relative; display: grid; gap: 4px; }
.fld > span { font: 700 12px/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.fld input { width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--recess); box-shadow: inset 0 0 0 2px var(--rule); font: 500 17px/1 var(--f-text); color: var(--ink); }
.fld input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--r6); background: #fff; }
.fld input::placeholder { color: #A8A3BD; }
.fld-t b { position: absolute; left: 14px; bottom: 13px; font: 600 17px/1 var(--f-num); color: var(--ink-2); }
.fld-t input { padding-left: 30px; font-family: var(--f-num); text-transform: uppercase; }
.fld.bad input { box-shadow: inset 0 0 0 2px var(--r1); }
.more summary { font-weight: 600; font-size: 14px; color: var(--ink-2); list-style: none; padding: 6px 0; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; font-family: var(--f-num); }
.more[open] summary::before { content: "- "; }
.more[open] { display: grid; gap: 10px; }
.btn-launch { flex-direction: column; gap: 4px; min-height: 64px; font: 400 26px/1 var(--f-display); letter-spacing: .01em; }
.btn-launch small { font: 500 12px/1 var(--f-num); color: var(--ink-2); }
.namer-msg { min-height: 1.3em; font-size: 14px; color: var(--ink-2); }
.namer-msg.err { color: #B4264F; }
.namer-msg a { font-weight: 600; }

.dial { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 8px 14px 10px; border-radius: 18px; background: #fff; box-shadow: var(--kiss), var(--lift); touch-action: none; user-select: none; }
.dial svg { grid-column: 1 / -1; width: 100%; height: auto; }
.dial-arc { fill: none; stroke: var(--rule); stroke-width: 8; stroke-linecap: round; }
.dial-ticks line { stroke: var(--slot); stroke-width: 1.5; }
.dial-n { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; transform-origin: 60px 62px; transition: transform .12s var(--ease); }
.dial circle { fill: var(--ink); }
.dial-v { font-size: 15px; font-weight: 600; }
.dial-l { justify-self: end; font: 700 12px/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); grid-row: 2; grid-column: 2; }
.hint { font-size: 14px; color: var(--ink-2); line-height: 1.4; }

.row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: clamp(14px, 2.4vh, 26px); }
.trio { display: flex; justify-content: center; gap: clamp(18px, 4vw, 44px); margin-top: clamp(12px, 2vh, 22px); }
.trio div { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.trio dt { font-size: 13px; color: var(--ink-2); }
.trio dd { font-size: 17px; font-weight: 600; }

/* ---------- spreads ---------- */
.spread { position: relative; padding: clamp(56px, 9vh, 110px) 0 clamp(40px, 6vh, 72px); }
.spread .pages { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: clamp(28px, 4vw, 52px) 0 clamp(44px, 5vw, 64px); border-radius: 26px; box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -30px rgba(31,27,61,.35); background: #fff; }
.spread .pages::before { content: ""; position: absolute; left: calc(50% - 9px); top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, transparent, rgba(31,27,61,.045) 45%, rgba(31,27,61,.06) 50%, rgba(31,27,61,.045) 55%, transparent); pointer-events: none; }
.spread .pages::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--rule); pointer-events: none; }
.page { position: relative; padding: 0 clamp(20px, 4vw, 64px); min-width: 0; }
.sp-h { position: relative; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vh, 44px); padding: 0 clamp(20px, 4vw, 64px); }
.ttl { position: relative; font: 400 clamp(40px, 5.2vw, 64px)/1 var(--f-display); letter-spacing: -.005em; }
.ttl-s { font: 400 34px/1 var(--f-display); }
.sp-s { font-size: clamp(22px, 2.4vw, 30px); }
.pno { position: absolute; bottom: calc(clamp(40px, 6vh, 72px) + 16px); font-size: 13px; color: var(--ink-2); }
.pno-l { left: clamp(20px, 4vw, 64px); }
.pno-r { right: clamp(20px, 4vw, 64px); }
/* title reveal: six rainbow blocks sweep off (21st 26076 logic) */
.rv { position: absolute; inset: -.06em -.1em; pointer-events: none; z-index: 2; }
.rv i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; }

.live { display: grid; gap: 4px; justify-self: end; width: min(260px, 100%); }
.live li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; transition: background .3s, transform .3s var(--ease); }
.lv-n { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; outline: 2px dashed var(--slot); outline-offset: -2px; background: var(--recess); font-size: 14px; font-weight: 600; transition: background .3s, color .3s, outline-color .3s; }
.lv-t { font: 400 20px/1.1 var(--f-display); color: var(--slot); transition: color .3s; }
.lv-d { font-size: 13px; color: var(--ink-2); opacity: .55; transition: opacity .3s; }
.live li.on { background: #fff; box-shadow: var(--kiss), var(--flat); transform: translateX(-6px) rotate(-1deg); }
.live li.on .lv-n, .live li.done .lv-n { outline-color: transparent; color: #fff; }
.live li.on .lv-t, .live li.done .lv-t { color: var(--ink); }
.live li.on .lv-d { opacity: 1; }
.live li:nth-child(1).on .lv-n, .live li:nth-child(1).done .lv-n { background: var(--r1); }
.live li:nth-child(2).on .lv-n, .live li:nth-child(2).done .lv-n { background: var(--r2); }
.live li:nth-child(3).on .lv-n, .live li:nth-child(3).done .lv-n { background: var(--r4); }
.live li:nth-child(4).on .lv-n, .live li:nth-child(4).done .lv-n { background: var(--r6); }
.desk-l:has(.namer:not([hidden])) .live { display: none; }
.hint-big { font-size: 30px; line-height: 1.1; color: var(--ink); transform: rotate(-3deg); transform-origin: 0 50%; margin-bottom: 8px; }
.facts { display: grid; gap: 10px; }
.facts div { display: grid; gap: 1px; }
.facts dt { font: 700 11px/1.2 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { font-size: 14px; }

/* 2. how */
.cmp { cursor: var(--cur-hand); position: relative; width: min(100%, 560px); margin-left: auto; aspect-ratio: 1; border-radius: 6%; overflow: hidden; background: var(--recess); box-shadow: var(--kiss), var(--lift); touch-action: pan-y; user-select: none; }
.cmp-a, .cmp-b { position: absolute; inset: 0; }
.cmp-a canvas, .cmp-b img { width: 100%; height: 100%; object-fit: cover; }
.cmp-b { clip-path: inset(0 0 0 var(--cx, 50%)); }
.cmp-h { position: absolute; top: 0; bottom: 0; left: var(--cx, 50%); width: 44px; margin-left: -22px; display: grid; place-items: center; touch-action: none; cursor: ew-resize; }
.cmp-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(31,27,61,.14); }
.cmp-h span { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--kiss), var(--lift); }
.cmp-h span::before { content: ""; position: absolute; inset: 0; background: center/22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1B3D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E"); }
@supports (width: 1cqw) { .cmp { container-type: inline-size; } .cmp-h { left: 0; margin-left: 0; transform: translateX(calc(var(--cxn, 50) * 1cqw - 22px)); will-change: transform; } }
.cmp-c { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: space-between; padding: 0 14px; pointer-events: none; }
.cmp-c span { font: 700 11px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; background: #fff; padding: 6px 8px; border-radius: 8px; box-shadow: var(--kiss); }
.steps { display: grid; gap: clamp(18px, 3vh, 30px); max-width: 480px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.st-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--recess); outline: 2px dashed var(--slot); outline-offset: -2px; font-size: 22px; font-weight: 600; }
.steps h3 { font: 400 26px/1.1 var(--f-display); margin: 4px 0 6px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.pg-note { margin-top: 26px; max-width: 480px; font-weight: 600; }

/* 3. rainbows */
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 30ch; margin-bottom: 32px; }
.horns { display: flex; flex-wrap: wrap; gap: 12px 6px; }
.horns li { display: grid; justify-items: center; gap: 6px; width: 96px; }
.horns canvas { width: 96px; height: 128px; }
.horns span { font: 500 12px/1 var(--f-num); color: var(--ink-2); }
.sheet { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); padding: clamp(14px, 2vw, 26px); border-radius: 16px; background: var(--recess);
  background-image: linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)); background-size: 100% 1px, 1px 100%; background-position: 0 33.4%, 50% 0; background-repeat: no-repeat; }
.sq { position: relative; aspect-ratio: 1; border-radius: 12%; background: #fff; padding: 5%; box-shadow: 0 0 0 1px rgba(31,27,61,.12), var(--flat); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.sq canvas { width: 100%; height: 100%; border-radius: 9%; }
.sq:hover { transform: translateY(-3px) rotate(var(--rot, -1.2deg)); box-shadow: 0 0 0 1px rgba(31,27,61,.12), var(--lift); }
.sq:active { transform: translateY(0); }
.sq-n { position: absolute; left: 50%; bottom: -1px; transform: translate(-50%, 50%); font: 500 11px/1 var(--f-num); background: #fff; padding: 3px 6px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; box-shadow: 0 0 0 1px var(--rule); }

/* 4. herd */
.herd-h { align-items: center; }
.turns { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.turns[hidden] { display: none; }
.book { position: relative; perspective: 2400px; }
.herd .pages { min-height: 560px; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px) clamp(10px, 1.6vw, 22px); }
.cell { position: relative; display: grid; gap: 6px; text-align: left; }
.cell-s { position: relative; aspect-ratio: 1; border-radius: 10%; background: var(--recess); outline: 2px dashed var(--slot); outline-offset: -2px; display: grid; place-items: center; }
.cell-s img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10%; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(31,27,61,.12), var(--flat); transition: transform .25s var(--ease), box-shadow .25s var(--ease); background: #fff; }
.cell-s::after { content: ""; position: absolute; inset: 0; border-radius: 10%; background: var(--foil); background-size: 250% 250%; background-position: var(--fx, 30%) var(--fy, 30%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.cell:hover .cell-s::after { opacity: .9; transform: translateY(-4px) rotate(-1.5deg); }
.cell-s:not(:has(img))::after { display: none; }
.cell:hover .cell-s img { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(31,27,61,.12), var(--lift); }
.cell-s .script { font-size: clamp(16px, 1.5vw, 20px); text-align: center; padding: 0 8%; line-height: 1.1; }
.cell-no { font: 500 12px/1 var(--f-num); color: var(--ink-2); }
.cell-nm { font: 400 22px/1.05 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-m { display: flex; gap: 10px; font: 500 13px/1.2 var(--f-num); color: var(--ink-2); }
.cell-m b { color: var(--ink); font-weight: 600; }
.cell button.cell-hit { position: absolute; inset: 0; border-radius: 12px; z-index: 1; cursor: var(--cur-peel); }
.pin { display: grid; gap: 14px; justify-items: start; }
.pin-lbl { display: flex; align-items: center; gap: 10px; }
.pin-lbl .lbl { color: #9A6512; }
.pin-f { position: relative; width: min(100%, 440px); aspect-ratio: 1; border-radius: 8%; padding: 14px; background: linear-gradient(135deg, #F6CF6A, var(--gold) 40%, #C98612 70%, #F2C552); box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(31,27,61,.12), var(--lift); perspective: 900px; }
.pin-f.empty { background: var(--recess); outline: 3px dashed var(--gold); outline-offset: -3px; display: grid; place-items: center; }
.pin-f.empty .script { font-size: 28px; color: #9A6512; text-align: center; padding: 0 10%; }
.holo { position: relative; width: 100%; height: 100%; border-radius: 6%; overflow: hidden; transform-style: preserve-3d; transition: transform .12s linear; background: #fff; }
.holo img, .holo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.holo .sheen { position: absolute; inset: 0; background: var(--foil); background-size: 300% 300%; background-position: var(--hx, 50%) var(--hy, 50%); mix-blend-mode: soft-light; opacity: .55; pointer-events: none; }
.pin-nm { font: 400 clamp(32px, 3.6vw, 46px)/1 var(--f-display); max-width: 100%; overflow-wrap: anywhere; }
.pin-m { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 15px/1.2 var(--f-num); color: var(--ink-2); }
.pin-m b { color: var(--ink); }
.pin button.pin-hit { position: absolute; inset: 0; border-radius: 8%; z-index: 2; cursor: var(--cur-peel); }
.herd-empty { display: grid; gap: 18px; justify-items: start; margin-top: 26px; }
.herd-empty p { color: var(--ink-2); max-width: 34ch; }
/* page turn (21st 3173 flip logic, turned on the binding) */
.leaf-turn { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; z-index: 5; pointer-events: none; will-change: transform; }
.leaf-turn.r { left: 50%; transform-origin: 0 50%; }
.leaf-turn.l { left: 0; transform-origin: 100% 50%; }
.leaf-turn > div { position: absolute; inset: 0; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.leaf-turn > .bk { transform: rotateY(180deg); }
.leaf-turn > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,27,61,.08), transparent 30%); opacity: var(--sh, 0); pointer-events: none; }

/* 5. back cover */
.cover { position: relative; margin: clamp(40px, 8vh, 90px) 0 0; padding: 0 0 48px; text-align: center; }
.foil-band { height: 56px; border-radius: 18px; background: var(--foil); background-size: 200% 100%; background-position: var(--fb, 40%) 50%; box-shadow: inset 0 0 0 1px rgba(31,27,61,.08); }
.cover-in { display: grid; justify-items: center; gap: 22px; padding-top: 30px; }
.sig { width: min(560px, 90vw); height: auto; overflow: visible; }
.sig text { font: 400 150px/1 var(--f-script); fill: var(--ink); stroke: var(--ink); stroke-width: 1.6; }
.sig.go text { stroke-dasharray: 1600; stroke-dashoffset: 1600; fill-opacity: 0; animation: sign 2.2s var(--ease) forwards, fillin .6s 1.6s forwards; }
@keyframes sign { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
.slap { display: flex; justify-content: center; align-items: flex-end; min-height: 120px; margin-top: -8px; }
.slap > * { width: clamp(70px, 9vw, 116px); margin: 0 -6px; border-radius: 12%; transform: rotate(var(--r, 0deg)); }
.slap img { aspect-ratio: 1; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(31,27,61,.12), var(--lift); background: #fff; }
.slap canvas { height: auto; }
@media (max-width: 560px) { .slap { max-width: 100%; } .slap > :nth-child(n+6) { display: none; } .slap > * { width: min(70px, calc((100vw - 40px) / 4.6)); } }
.slap.go > * { animation: slapin .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 1.2s); }
@keyframes slapin { from { transform: translateY(-30px) rotate(calc(var(--r) - 12deg)) scale(1.25); opacity: 0; } 60% { opacity: 1; } }
.price { display: grid; gap: 2px; padding: 16px 26px; border-radius: 50%/48%; background: #fff; box-shadow: var(--kiss), var(--lift); transform: rotate(-4deg); }
.price-a { font-size: 26px; font-weight: 700; }
.price-a small { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.price-b { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.row-end { margin-top: 4px; }
.cover-l { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 8px; }
.cover-l a { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 8px 2px; }
.cover-l a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* dialogs */
.dlg { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 24px); overflow: visible; color: var(--ink); }
.dlg::backdrop { background: rgba(245,242,251,.9); }
.dlg .x { position: absolute; top: -14px; right: -14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--kiss), var(--lift); font: 600 26px/1 var(--f-text); }
.card-dlg { width: min(400px, calc(100vw - 32px)); perspective: 1600px; }
.flipper { position: relative; transform-style: preserve-3d; transition: transform .7s var(--ease); display: grid; }
.flipper.is-b { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; background: #fff; box-shadow: var(--kiss), var(--lift); padding: 16px; }
.face-b { transform: rotateY(180deg); display: grid; gap: 12px; align-content: start; }
.face-f img { width: 100%; border-radius: 6%; aspect-ratio: 1; }
.face-b .fb-img { display: flex; gap: 12px; align-items: center; }
.face-b .fb-img img { width: 76px; height: 76px; border-radius: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--rule); }
.fb-nm { font: 400 28px/1.05 var(--f-display); overflow-wrap: anywhere; }
.fb-t { font: 600 15px/1 var(--f-num); color: var(--ink-2); margin-top: 4px; }
.fb-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.fb-dl dt { color: var(--ink-2); }
.fb-dl dd { font-family: var(--f-num); text-align: right; }
.fb-ca { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--recess); }
.fb-ca code { font: 500 12.5px/1.35 var(--f-num); word-break: break-all; }
.fb-ca button { justify-self: start; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.fb-ln { display: flex; flex-wrap: wrap; gap: 12px; }
.fb-ln .btn { min-height: 42px; font-size: 15px; padding: 0 14px; }
.mine-dlg { width: min(560px, calc(100vw - 32px)); }
.mine-dlg .dlg-in { padding: 24px; border-radius: 22px; background: #fff; box-shadow: var(--kiss), var(--lift); display: grid; gap: 14px; max-height: 82vh; overflow: auto; }
/* wallet picker (pads-web/kit/wallet.js markup) as a page of the album */
.wpick { width: min(420px, calc(100vw - 32px)); padding: 24px; border-radius: 22px; background: #fff; box-shadow: var(--kiss), var(--lift); display: grid; gap: 14px; }
.wpick h2 { font: 400 30px/1.05 var(--f-display); padding-right: 24px; }
.wpick .dlg-x { position: absolute; top: -14px; right: -14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--kiss), var(--lift); font: 600 26px/1 var(--f-text); color: var(--ink); }
.wp-cur { font-size: 15px; color: var(--ink-2); }
.wp-cur .mono { font-family: var(--f-num); font-size: 13px; }
.wp-list { display: grid; gap: 8px; }
.wp-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border-radius: 16px; background: var(--recess); font: 600 16px/1 var(--f-text); color: var(--ink); text-align: left; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.wp-item:hover { transform: translateY(-2px) rotate(-.4deg); box-shadow: var(--kiss); }
.wp-item[disabled] { opacity: .6; transform: none; }
.wp-item img { width: 32px; height: 32px; border-radius: 8px; }
.wp-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--foil); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--rule); }
.wp-none { color: var(--ink-2); }
.wp-get { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.wp-get a { color: var(--ink-2); padding: 8px 0; text-underline-offset: 3px; }
.wp-get a:hover { color: var(--ink); }
.wp-off { justify-self: start; }
.wp-err { color: #B4264F; font-size: 14px; }
.mine-list { display: grid; gap: 10px; }
.mine-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.mine-list img { width: 56px; height: 56px; border-radius: 10px; }
.mine-list b { font: 400 18px/1.1 var(--f-display); display: block; }
.mine-list span { font: 500 12px/1.2 var(--f-num); color: var(--ink-2); }
.mine-list a { font-weight: 600; font-size: 14px; }
.muted { color: var(--ink-2); }

/* inner pages */
.doc { width: min(860px, calc(100vw - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.doc h1 { font: 400 clamp(44px, 7vw, 72px)/1 var(--f-display); margin-bottom: 8px; }
.doc .script { font-size: 26px; }
.doc h2 { font: 400 30px/1.1 var(--f-display); margin: 44px 0 12px; }
.doc p, .doc li { color: #2C2850; max-width: 68ch; }
.doc p + p { margin-top: 10px; }
.doc ol.dl { counter-reset: s; display: grid; gap: 12px; }
.doc ol.dl li { counter-increment: s; position: relative; padding-left: 48px; }
.doc ol.dl li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; outline: 2px dashed var(--slot); outline-offset: -2px; background: var(--recess); font: 600 15px/1 var(--f-num); }
.doc ul.tp { display: grid; gap: 10px; }
.doc ul.tp li { padding-left: 22px; position: relative; }
.doc ul.tp li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--r6); transform: rotate(12deg); }
.tbl-w { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--rule); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font: 700 12px/1.2 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--recess); }
.tbl td:nth-child(2) { font-family: var(--f-num); white-space: nowrap; }
.tbl code, .doc code { font: 500 .92em var(--f-num); }
@media (max-width: 600px) { .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--rule); } .tbl tr:last-child { border-bottom: 0; } .tbl td { padding: 0; border: 0; } .tbl td:nth-child(1) { overflow-wrap: anywhere; } .tbl td:nth-child(3) { grid-column: 1 / -1; color: var(--ink-2); font-size: 13.5px; } }
.doc .addr { font: 500 14px/1.4 var(--f-num); word-break: break-all; }
.killer { font: 400 clamp(36px, 6vw, 64px)/1.05 var(--f-display); margin: 26px 0 34px; max-width: 18ch; }
.killer .num { font-family: var(--f-display); }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sgrid div { padding: 18px; border-radius: 18px; background: #fff; box-shadow: var(--kiss), var(--flat); display: flex; flex-direction: column-reverse; gap: 6px; }
.sgrid dt { font-size: 13px; color: var(--ink-2); }
.sgrid dd { font: 600 26px/1 var(--f-num); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; margin-top: 30px; }
.wall a { display: block; border-radius: 12%; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--rule); aspect-ratio: 1; }
.wall img { width: 100%; height: 100%; }
.share { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 30px 0 70px; }
.share .stk { width: min(440px, 86vw); border-radius: 6%; box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(31,27,61,.12), var(--lift); transform: rotate(-2deg); }
.nf { display: grid; justify-items: center; gap: 22px; text-align: center; padding: 30px 0 80px; }
.nf img { width: min(600px, 92vw); height: auto; }
.nf h1 { font: 400 clamp(40px, 6vw, 64px)/1 var(--f-display); }
.foot-mini { width: var(--leaf); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 26px 0 40px; border-top: 1px solid var(--rule); }
.foot-l { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-l a { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 8px 0; }
.foot-l a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .desk { grid-template-columns: 1fr; justify-items: center; }
  .desk-l, .desk-r { justify-self: center; width: min(420px, 100%); }
  .desk-l { order: 3; }
  .live, .desk-hint { display: none; }
  .desk-r { order: 2; grid-template-columns: 1fr 1fr; }
  .desk-r .lbl, .desk-r .hint, .desk-r .btn-ghost { grid-column: 1 / -1; }
  .desk-r .dial { grid-column: 1 / -1; width: min(100%, 240px); justify-self: center; }
}
@media (max-width: 860px) {
  .nav-l { display: none; }
  .spread .pages { grid-template-columns: 1fr; gap: 34px; }
  .spread .pages::before, .spread .pages::after { display: none; }
  .spread .pages { box-shadow: none; padding: 0; border-radius: 0; }
  .pno-l { display: none; }
  .cmp { margin: 0 auto; }
  .cells { grid-template-columns: repeat(2, 1fr); }
  .herd .pages { min-height: 0; }
  .sgrid { grid-template-columns: 1fr 1fr; }
  .leaf-turn.r { left: 0; width: 100%; }
  .leaf-turn.l { width: 100%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { height: 60px; }
  .brand { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .plate { min-height: 0; }
  .slot { --sw: min(calc(100vw - 32px), 360px); }
  .slot-cap:not(.err) { font-size: clamp(9.5px, calc(var(--sw) * .04), 12.5px); gap: 5px; }
  .sheet { grid-template-columns: repeat(3, 1fr); }
  .row { gap: 12px; }
  .row .btn { padding: 0 16px; }
  .trio { gap: 16px; }
  .trio dd { font-size: 15px; }
  .trio dt { font-size: 12px; }
  .page, .sp-h { padding: 0 4px; }
  .pno-r { right: 4px; }
  .horns li { width: 60px; } .horns canvas { width: 60px; height: 80px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 12px; }
  .st-n { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .turns { margin-left: 0; }
  .sgrid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .nav .btn { padding: 0 12px; } .cells { gap: 12px 8px; } .cell-nm { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .die rect { animation-duration: 3s; }
  .btn:hover, .sq:hover, .cell-s::after { content: ""; position: absolute; inset: 0; border-radius: 10%; background: var(--foil); background-size: 250% 250%; background-position: var(--fx, 30%) var(--fy, 30%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.cell:hover .cell-s::after { opacity: .9; transform: translateY(-4px) rotate(-1.5deg); }
.cell-s:not(:has(img))::after { display: none; }
.cell:hover .cell-s img { transform: none; }
}

/* b25 11-02: "How it's made" = one slider; the strip of real backgrounds */
.how .sp-h { justify-content: center; }
.how .cmp { margin: 0 auto; width: min(calc(100% - 32px), 560px); }
.how-l { text-align: center; margin: 18px auto 0; max-width: 56ch; padding: 0 16px; color: var(--ink-2); font-weight: 600; }
.strip { position: relative; padding: 0 0 clamp(40px, 6vh, 72px); }
.strip-s { text-align: center; margin-bottom: 10px; }
.strip-row { display: flex; gap: 16px; overflow-x: auto; padding: 10px clamp(16px, 4vw, 64px) 22px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.strip-row img { flex: 0 0 auto; width: clamp(104px, 12vw, 160px); height: auto; aspect-ratio: 1; border-radius: 10px; border: 5px solid #fff; box-shadow: 4px 6px 0 rgba(21,19,24,.28); transform: rotate(var(--r, 0deg)); scroll-snap-align: start; background: #fff; }

/* ---------------------------------------------------------------- the film (/docs): own player, sticker skin, no autoplay */
.film { margin: 22px 0 8px; }
.film-box { position: relative; aspect-ratio: 16 / 9; background: var(--paper); border-radius: 22px; box-shadow: var(--kiss), var(--lift); overflow: hidden; }
.film-box:fullscreen { border-radius: 0; box-shadow: none; aspect-ratio: auto; width: 100%; height: 100%; }
.film-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper); display: block; }
.film-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px 0 20px;
  background: var(--foil); color: var(--ink); border-radius: var(--rs); box-shadow: var(--kiss), var(--lift); font: 700 17px/1 var(--f-text); transition: transform .12s var(--ease), box-shadow .12s; }
.film-big:hover { transform: translate(-50%, calc(-50% - 2px)); }
.film-big:active { transform: translate(-50%, -50%); box-shadow: var(--kiss); }
.film-big .num { font-weight: 600; color: var(--ink-2); }
.film-big[hidden] { display: none; }
.film-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; padding: 2px 8px; background: #fff; border-radius: 14px; box-shadow: var(--kiss), var(--flat); color: var(--ink); transition: opacity .25s; }
.film-box.is-playing:not(:hover):not(:focus-within) .film-bar { opacity: 0; }
.film-btn { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--ink); }
.film-btn:hover { color: var(--r6); }
.film-btn .i-pause, .film-box.is-playing .film-btn .i-play, .film-btn .i-mute, .film-box.is-muted .film-btn .i-snd { display: none; }
.film-box.is-playing .film-btn .i-pause, .film-box.is-muted .film-btn .i-mute { display: block; }
.film-track { position: relative; flex: 1; min-width: 60px; height: 40px; touch-action: none; }
.film-track::before, .film-buf, .film-fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; transform-origin: 0 50%; }
.film-track::before { background: var(--rule); }
.film-buf { background: var(--slot); transform: scaleX(0); }
.film-fill { background: linear-gradient(90deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6)); transform: scaleX(0); }
.film-track:hover::before, .film-track:focus-visible::before { height: 8px; margin-top: -4px; }
.film-time { flex: none; font-size: 14px; color: var(--ink-2); padding: 0 6px; white-space: nowrap; }
.film-note { max-width: 68ch; margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .film-bar { left: 6px; right: 6px; bottom: 6px; gap: 0; padding: 0 4px; } .film-time { font-size: 12px; padding: 0 2px; } .film-big { min-height: 48px; padding: 0 18px 0 14px; font-size: 15px; } }
