/* bias.beauty homepage, first screen: a photo-booth print strip (大头贴机).
   One violet polka-dot strip runs across the page. Picking a face circles it with a fat
   yellow marker and the strip slides on; Bias marks its guesses in mint.
   Playful like meeting people: stickers, a heart, hard ink shadows. No glows or gradients. */

/* ---------- head ---------- */
.sheet-hero { padding: 40px 0 8px; background: var(--dots); }
.sheet-head { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 380px); justify-content: space-between; align-items: end; gap: 20px 56px; margin-bottom: 34px; }
.sheet-head h1 { position: relative; font-size: clamp(46px, 7vw, 96px); line-height: 1; letter-spacing: -.01em; }
.sheet-head h1 .hl { position: relative; z-index: 0; color: var(--pencil); white-space: nowrap; }
.sheet-head h1 .hl::after { content: ""; position: absolute; z-index: -1; left: -4%; right: -4%; bottom: 6%; height: 34%; background: var(--sun); border-radius: 999px; transform: rotate(-2deg); }
.sheet-head h1::after { content: "♡"; position: absolute; top: -.2em; margin-left: .12em; font: 400 .42em/1 var(--brand); color: var(--pink); transform: rotate(14deg); }
.sheet-pitch p { margin: 0 0 18px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.sheet-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: var(--bd); border-radius: 999px; background: var(--action); color: #fff;
    font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: var(--pop); transition: transform .12s, box-shadow .12s; }
.sheet-link:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--pop-c); }
.sheet-link:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pop-c); }
.sheet-link:focus-visible { outline: 2.5px solid var(--pencil); outline-offset: 3px; }

/* ---------- the strip ---------- */
.strip { --fw: clamp(140px, 18.5vw, 246px); position: relative; overflow: hidden; padding: 44px 0 42px; border-block: 3px solid var(--ink);
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 2.2px, transparent 2.6px) 0 0 / 26px 26px, var(--film); }
.track { display: flex; gap: 22px; width: max-content; transition: transform .9s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.track .loading { width: 100vw; height: calc(var(--fw) * 1.25); display: grid; place-items: center; color: rgba(255, 255, 255, .8); background: none; font-size: 15px; }

.frame { position: relative; flex: none; width: var(--fw); appearance: none; border: 0; padding: 0; margin: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.frame:disabled { cursor: default; }
/* undo the old card-style .pick from home.css */
.frame.pick, .frame.pick:hover, .frame.pick.chosen, .frame.pick.dim { border: 0; border-radius: 0; background: none; overflow: visible; transform: none; box-shadow: none; opacity: 1; }
.frame.pick.enter { animation: none; }
.frame.pick.enter .photo::after { content: none; }
.frame .photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; border: 7px solid #fff; border-radius: 18px;
    box-shadow: 5px 5px 0 #1a1a1a; transition: transform .18s, box-shadow .18s; }
.frame:nth-of-type(odd) .photo { transform: rotate(-1.6deg); }
.frame:nth-of-type(even) .photo { transform: rotate(1.4deg); }
.frame.blank .photo { background: rgba(255, 255, 255, .12); border: 3px dashed rgba(255, 255, 255, .55); box-shadow: none; }
.frame.blank .photo::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 54px/1 var(--brand); color: rgba(255, 255, 255, .55); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 11px; transition: opacity .4s, filter .4s; }
.frame:not(:disabled):hover .photo, .frame:focus-visible .photo { transform: translateY(-6px) rotate(0); box-shadow: 8px 10px 0 #1a1a1a; }
.frame:focus-visible { outline: none; }
.frame:focus-visible .photo { outline: 3px solid var(--sun); outline-offset: 4px; }
.frame.dim img { opacity: .5; filter: grayscale(.2); }
.frame.enter .photo img { animation: expose .9s cubic-bezier(.2, .7, .2, 1) both; }
.frame.enter:nth-of-type(even) .photo img { animation-delay: .08s; }
@keyframes expose { from { filter: brightness(1.8) saturate(0); } }

/* film edge print is gone; group labels and notes are stickers */
.edge-t, .edge-n { display: none; }
.group, .note { position: absolute; z-index: 2; white-space: nowrap; pointer-events: none; font: 400 18px/1.2 var(--brand); padding: 4px 14px; border: 2.5px solid #1a1a1a; border-radius: 999px; color: #1a1a1a; box-shadow: 3px 3px 0 #1a1a1a; }
.group { top: -24px; left: 50%; transform: translateX(-50%) rotate(-5deg); background: var(--sun); }
.frame:nth-of-type(even) .group { background: var(--pink); transform: translateX(-50%) rotate(5deg); }
.note { top: -26px; left: 6px; font-size: 16px; padding: 2px 12px; }
.note.you { background: var(--sun); }
.note.ta { background: var(--mint); left: auto; right: 6px; transform: rotate(4deg); }

/* the marker loop */
.mark { position: absolute; left: -13px; top: -11px; width: calc(100% + 26px); height: calc(100% + 22px); overflow: visible; pointer-events: none; transform: rotate(-3deg); z-index: 1; }
.mark path { fill: none; stroke: var(--pencil-on-film); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .55s cubic-bezier(.3, 0, .2, 1) forwards; }
.mark.ta { left: -19px; top: -16px; width: calc(100% + 38px); height: calc(100% + 32px); transform: rotate(4deg); }
.mark.ta path { stroke: var(--pencil2-on-film); stroke-width: 3.5; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- notes under the strip: the booth's screen ---------- */
.sheet-notes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px 72px; width: calc(100% - 64px); max-width: 1096px; margin: 32px auto 0;
    padding: 26px 34px; background: var(--surface); border: var(--bd); border-radius: 24px; box-shadow: var(--pop-lg); }
.note-q { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; align-content: start; }
.sheet-notes .note-q h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
.sheet-notes .count { display: inline-block; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun); color: #1a1a1a; font: 700 13px var(--sans); }
.sheet-notes .stage-foot { flex-basis: 100%; margin-top: 14px; min-height: 44px; font-size: 15px; }
.sheet-notes .kbd { border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--pop-sm); }
.sheet-notes .dna { margin: 0; padding: 0; border: 0; }
.dna-title { font: 400 18px/1.2 var(--brand); margin: 0 0 14px; }
.sheet-notes .traits { gap: 20px; }
.sheet-notes .trait .nm { font-size: 14px; }
.sheet-notes .trait.pulse .nm { color: var(--pencil); }
.sheet-notes .bar { height: 10px; border-radius: 999px; background: var(--tile); border: 2px solid var(--ink); margin: 12px 0 8px; }
.sheet-notes .bar::before { display: none; }
.sheet-notes .bar i { top: 0; bottom: 0; height: auto; border-radius: 999px; background: var(--pink); }
.sheet-notes .trait .ends { font-size: 12px; color: var(--faint); }
.sheet-notes .dna-read { font-size: 15px; color: var(--muted); }
.sheet-notes .dna-read b { color: var(--ink); }
.fly { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--pink); border: 2px solid var(--ink); box-shadow: none; }

/* Bias's sealed guess: a folded note, then the note inside */
.sheet-notes .seal .front, .sheet-notes .seal .back { border-radius: 14px; font-size: 14px; padding: 9px 14px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--pop-c); }
.sheet-notes .seal .front { background: var(--sun); color: #1a1a1a; }
.sheet-notes .seal .back { background: var(--ta-wash); }
.sheet-notes .seal .back b { color: var(--pencil2); }
.sheet-notes .stamp { font: 400 20px var(--brand); border-radius: 12px; border-width: 2.5px; }
.sheet-notes .stamp.hit { color: var(--pencil2); }
.sheet-notes .stamp.miss { color: var(--bad, #e5484d); }
.sheet-notes .go { margin-left: auto; }

/* end of the roll */
.sheet-notes .result { text-align: left; padding: 0; }
.sheet-notes .score { margin: 0 0 6px; font: 400 22px/1 var(--brand); color: var(--muted); }
.sheet-notes .score b { font: 400 64px/1 var(--brand); color: var(--pencil); font-variant-numeric: tabular-nums; }
.sheet-notes .score span { font-size: 17px; margin-left: 8px; }
.sheet-notes .result p { margin: 10px 0 18px; max-width: 32em; color: var(--muted); }
.sheet-notes .result .row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-start; }
.sheet-notes .fine { border-left: 0; padding-left: 0; margin-top: 16px; font-size: 13px; color: var(--faint); }


@media (max-width: 860px) {
    .sheet-head { grid-template-columns: 1fr; align-items: start; margin-bottom: 24px; }
    .sheet-notes { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
    .sheet-hero { padding-top: 24px; }
    .strip { --fw: 41vw; padding: 38px 0 34px; }
    .track { gap: 16px; }
    .frame .photo { border-width: 5px; border-radius: 14px; box-shadow: 4px 4px 0 #1a1a1a; }
    .frame img { border-radius: 9px; }
    .sheet-notes { width: calc(100% - 32px); padding: 22px 20px; }
    .sheet-notes .traits { grid-template-columns: 1fr; gap: 6px; }
    .sheet-notes .bar { margin: 8px 0 4px; }
    .sheet-pitch p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .track, .frame img, .frame .photo { transition: none; }
    .frame.enter img, .mark path { animation: none; stroke-dashoffset: 0; }
}

/* ======================================================================
   Sections below the strip: the same booth, a little calmer. Prints with
   thick white borders and ink shadows, stickers, the marker for "you".
   ====================================================================== */
.sheet-page section { padding: 104px 0; }
@media (max-width: 640px) { .sheet-page section { padding: 72px 0; } }
.sheet-page h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; }
.sheet-page .sub { color: var(--muted); }

/* a booth print: photo in a thick white border, ink outline, hard shadow */
.why-pair figure, .face-demo .ph-box, .avg-out, .sc {
    background: #fff; border: 2.5px solid #1a1a1a; border-radius: 18px; box-shadow: 5px 5px 0 var(--pop-c); }

/* ---------- same pair, different people ---------- */
#why { overflow-x: clip; }
.why-pair { gap: 26px; }
.why-pair figure { padding: 8px; overflow: visible; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.why-pair figure img { border-radius: 11px; }
.why-pair figure:nth-child(1) { transform: rotate(-1.6deg); }
.why-pair figure:nth-child(2) { transform: rotate(1.4deg); }
.why-pair figure.lit { border: 2.5px solid #1a1a1a; box-shadow: 5px 5px 0 var(--pop-c); }
.why-pair figure::after { content: ""; position: absolute; inset: -7% -9%; background: var(--loop-you) center / 100% 100% no-repeat; opacity: 0; transform: rotate(-4deg) scale(.96); transition: opacity .25s, transform .4s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.why-pair figure.lit::after { opacity: 1; transform: rotate(-4deg); }
.why-pair figcaption { position: absolute; top: -14px; left: 14px; bottom: auto; padding: 2px 12px; border: 2px solid #1a1a1a; border-radius: 999px; background: var(--sun); color: #1a1a1a; font: 400 16px/1.3 var(--brand); }
.why-pair figure:nth-child(2) figcaption { background: var(--pink); }
.who li { border-radius: 14px; padding: 16px 12px; }
.who li.active { background: var(--you-wash); }
.who li.active .t { color: var(--ink); }
.choice { font: 400 20px var(--brand); gap: 10px; }
.choice span { position: relative; width: 40px; height: 40px; border: 0; border-radius: 0; color: var(--faint); }
.choice span.on { background: var(--loop-you) center / 100% 100% no-repeat; color: var(--pencil); animation: none; }

/* three steps, as numbered stickers along a dashed line */
.process div::before { width: 42px; height: 42px; border: 2.5px solid #1a1a1a; border-radius: 50%; background: var(--sun); color: #1a1a1a; font: 400 19px/1 var(--brand); box-shadow: 2px 2px 0 var(--pop-c); }
.process div:nth-child(2)::before { background: var(--pink); }
.process div:nth-child(3)::before { background: var(--mint); }
.process div::after, .process div:last-child::after { background: none; border-top: 2px dashed var(--ink); opacity: .3; height: 0; top: 21px; left: 54px; right: 16px; }
@media (max-width: 760px) { .process div::after { border-top: 0; border-left: 2px dashed var(--ink); width: 0; left: 21px; top: 50px; right: auto; } }

/* ---------- mutual: two stickers overlapping, the shared part is pink ---------- */
.venn .sh { fill: var(--pop-c); }
.venn .face { stroke: var(--ink); stroke-width: 2.5; }
.venn .cl.face { fill: var(--you-soft); }
.venn .cr.face { fill: #e3fbf1; fill: color-mix(in srgb, var(--ta) 14%, var(--surface)); }
.venn .lens { fill: var(--pink); stroke: var(--ink); stroke-width: 2.5; opacity: 1; transition: opacity .4s .9s; }
.venn.in .lens { animation: none; }
.js .venn:not(.in) .lens { opacity: 0; }
.venn .heart { fill: #fff; stroke: #1a1a1a; stroke-width: 2.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.venn.in .heart { animation: beat 1.6s ease-in-out 1.4s infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(.96); } 45% { transform: scale(1.1); } }
.venn text { font-family: var(--brand); font-weight: 400; }
.venn .t { font-size: 24px; }
.venn .s { font-size: 15px; fill: var(--muted); }
.venn .lbl-l .t { fill: var(--pencil); }
.venn .lbl-r .t { fill: var(--pencil2); }
.venn .mid .t { fill: #1a1a1a; }
.venn .mid .s { fill: rgba(26, 26, 26, .72); }
.venn .tag rect { stroke: #1a1a1a; stroke-width: 2.5; }
.venn .tag.you rect { fill: var(--sun); }
.venn .tag.ta rect { fill: var(--mint); }
.venn .tag text { font-size: 18px; fill: #1a1a1a; }
@media (max-width: 640px) { .venn .s { font-size: 17px; } .venn .t { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .venn.in .heart { animation: none; } }

/* ---------- interest universe teaser: stickers dropping in ---------- */
.uni-band.uni-band { padding: 104px 0; }
.uni-stickers { justify-content: center; max-width: 460px; margin-left: auto; }
.uni-stickers .sticker { opacity: 0; transform: rotate(var(--r)) translateY(-10px) scale(.9); transition: opacity .3s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.uni-stickers.in .sticker { opacity: 1; transform: rotate(var(--r)); }
.uni-stickers.in .sticker:nth-child(2) { transition-delay: .06s; } .uni-stickers.in .sticker:nth-child(3) { transition-delay: .12s; }
.uni-stickers.in .sticker:nth-child(4) { transition-delay: .18s; } .uni-stickers.in .sticker:nth-child(5) { transition-delay: .24s; }
.uni-stickers.in .sticker:nth-child(6) { transition-delay: .3s; } .uni-stickers.in .sticker:nth-child(7) { transition-delay: .36s; }
.uni-stickers.in .sticker:nth-child(8) { transition-delay: .42s; } .uni-stickers.in .sticker:nth-child(9) { transition-delay: .48s; }
@media (max-width: 920px) { .uni-stickers { margin: 8px auto 0; } .uni-stickers .sticker { --s: 84px !important; } }
html:not(.js) .uni-stickers .sticker { opacity: 1; transform: rotate(var(--r)); }

/* ---------- face teaser: a print with marker measurements ---------- */
.face-demo .ph-box { padding: 10px; overflow: visible; }
.face-demo .ph-box img { display: block; border-radius: 10px; }
.face-demo .overlay { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.face-demo figcaption, .style-demo figcaption { font-size: 13px; color: var(--faint); margin-top: 16px; }
.face-reads button { border-radius: 14px; padding-left: 12px; padding-right: 12px; }
.face-reads button:hover { background: var(--you-wash); box-shadow: none; }
.face-reads button.on { background: var(--surface); box-shadow: inset 0 0 0 2.5px var(--ink), 4px 4px 0 var(--pop-c); }
.face-reads button.on b { color: var(--pencil); }
.face-reads .pct { position: relative; font: 400 30px var(--brand); padding: 4px 10px; }
.face-reads button.on .pct { background: var(--loop-you) center / 100% 100% no-repeat; }

/* ---------- style teaser: a small pile of prints with sticker names ---------- */
.sc { color: #1a1a1a; padding: 0; isolation: isolate; }
.sc::after, .sc-photo::after { display: none; }
.sc-photo { margin: 9px 9px 0; border-radius: 11px; }
.sc-body { margin-top: 0; padding: 10px 14px 34px; }
.sc-kick { background: none; border: 0; padding: 0; font: 700 12px/1.4 var(--sans); color: #6d6878; }
.sc-name { color: #1a1a1a; text-shadow: none; font-size: 40px; margin: 2px 0; }
.sc-name::before { content: ""; display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 2.5px solid #1a1a1a; margin-right: 10px; vertical-align: 2px; }
.sc-also { color: #3d3a45; opacity: 1; }
.sc-also i { box-shadow: none; }
.sc-brand { color: #8d889a; opacity: 1; }
.sc[data-pos="1"], .sc[data-pos="2"] { filter: none; }
.style-pick button { border-radius: 10px; width: 46px; height: 56px; border: 2px solid #1a1a1a; padding: 2px; background: #fff; box-shadow: 2px 2px 0 var(--pop-c); }
.style-pick button img { border-radius: 6px; }
.style-pick button[aria-selected="true"] { transform: translateY(-3px) rotate(-3deg); outline: 0; background: var(--sun); box-shadow: 3px 4px 0 var(--pop-c); }
.style-reads li { border-top: 2px dashed var(--line); padding-left: 0; padding-right: 0; }
.style-reads .dot { border: 2px solid #1a1a1a; box-shadow: none; }
.style-reads b { font: 400 19px var(--brand); }
.style-reads .sbar { height: 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--tile); }

/* ---------- more in the App ---------- */
.more-grid { gap: 56px; }
.more-card, .more-card:hover { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; transform: none; }
.more-vis { border-radius: 0; background: none; overflow: visible; }
.avg-in { border-radius: 14px; border: 3px solid #fff; box-shadow: 0 0 0 2px #1a1a1a; }
.avg-out { padding: 6px; }
.avg-out img { border-radius: 12px; }
.avg-tag { background: var(--sun); color: #1a1a1a; border: 2px solid #1a1a1a; border-radius: 999px; padding: 2px 12px; font: 400 16px var(--brand); bottom: 4%; }
.ani-card { border: 2.5px solid #1a1a1a; border-radius: 18px; box-shadow: 4px 4px 0 var(--pop-c); }
.ani-card .fam { display: inline-block; background: var(--mint); color: #1a1a1a; border: 2px solid #1a1a1a; border-radius: 999px; padding: 1px 10px; font: 700 12px var(--sans); }
.ani-card b { font: 400 32px/1.2 var(--brand); }
.ani-card .tags { gap: 6px 8px; }
.ani-card .tags i { border: 2px solid var(--line); border-radius: 999px; padding: 1px 10px; color: var(--muted); }
.more-card h3 { font: 400 26px var(--brand); }

/* ---------- privacy: the booth's slip with ticked boxes ---------- */
#privacy .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 72px; align-items: start; }
#privacy .sec-intro { display: block; margin: 0; }
@media (max-width: 860px) { #privacy .wrap { grid-template-columns: 1fr; } }

/* ---------- close: the whole crowd pinned on a violet booth board ---------- */
.sheet-page .dl { padding-top: 88px; }
.sheet-grid { max-width: 1096px; margin: 0 auto; padding: 26px 24px; border: var(--bd); border-radius: 26px; box-shadow: var(--pop-lg);
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 2.2px, transparent 2.6px) 0 0 / 26px 26px, var(--film); }
.sheet-grid .mtrack { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px 16px; width: auto; padding: 0; animation: none; }
.sheet-grid .mt { width: auto; border-radius: 12px; background: #fff; padding: 4px; box-shadow: 3px 3px 0 #1a1a1a; transition: transform .15s; }
.sheet-grid .mt:nth-child(odd) { transform: rotate(-1.4deg); }
.sheet-grid .mt:nth-child(even) { transform: rotate(1.2deg); }
.sheet-grid .mt:hover { transform: translateY(-3px) rotate(0); }
.sheet-grid .mt img { border-radius: 9px; background: var(--tile); }
.mt-n { display: none; }
.sheet-grid .mt.fav { animation: none; z-index: 1; box-shadow: 3px 3px 0 #1a1a1a; }
.sheet-grid .mt.fav::after { content: ""; left: -10px; right: -10px; top: -8px; bottom: -8px; width: auto; height: auto; padding: 0; border-radius: 0; color: transparent;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cellipse cx='50' cy='50' rx='46' ry='46' fill='none' stroke='%23ffd84d' stroke-width='5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transform: rotate(-3deg); }
.dl-cap { max-width: 1096px; margin: 16px auto 48px; padding: 0 4px; text-align: left; font-size: 13px; color: var(--faint); }
.sheet-grid .mt.dup { display: none; }
@media (max-width: 1160px) { .sheet-grid { margin: 0 32px; } .dl-cap { margin-left: 32px; margin-right: 32px; } }
/* phones: one scrolling row of booth prints */
@media (max-width: 640px) {
    .dl-cap { padding: 0; margin: 6px 16px 40px; }
    .sheet-grid { max-width: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; box-shadow: none; border-block: 3px solid var(--ink);
        -webkit-mask-image: none; mask-image: none; }
    /* Own compositor layer + backface-visibility stop iOS Safari repainting the strip mid-scroll (flicker).
       A margin instead of gap makes the two halves exactly equal, so the -50% loop has no jump. */
    .sheet-grid .mtrack { display: flex; gap: 0; width: max-content; padding: 30px 0 22px; animation: marquee-m 80s linear infinite;
        will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
    .sheet-grid .mt, .sheet-grid .mt.dup { display: block; width: 112px; flex: none; margin-right: 16px; padding: 4px; border-radius: 12px;
        -webkit-backface-visibility: hidden; backface-visibility: hidden; }
    .sheet-grid .mt.fav { box-shadow: 3px 3px 0 #1a1a1a; }
    .sheet-grid .mt.fav::after { content: "你可能偏爱"; left: 50%; right: auto; top: -14px; bottom: auto; width: auto; height: auto; transform: translateX(-50%) rotate(-4deg);
        white-space: nowrap; font: 700 11px/1.6 var(--sans); color: #1a1a1a; background: var(--sun); border: 2px solid #1a1a1a; padding: 0 8px; border-radius: 999px; }
}
@keyframes marquee-m { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .sheet-grid { overflow-x: auto; } .sheet-grid .mtrack { animation: none; } .sheet-grid .mt.dup { display: none; } }

/* small fixes */
.sheet-notes .count:empty { display: none; }

/* ---------- 情人眼里出西施: formula chips, the real-model note and the six-face ranking ---------- */
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font: 400 18px/1.2 var(--brand); }
.formula i { font-style: normal; font-size: 22px; color: var(--ink); }
.formula .chip { display: inline-block; padding: 5px 14px; border: 2.5px solid #1a1a1a; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: 3px 3px 0 var(--pop-c); white-space: nowrap; }
.formula .chip.y { background: var(--sun); color: #1a1a1a; transform: rotate(-2deg); }
.formula .chip.p { background: var(--pink); color: #1a1a1a; transform: rotate(2deg); }

.sheet-notes .real { margin: 6px 0 18px; padding: 16px 18px; border: 2.5px dashed var(--ink); border-radius: 18px; background: var(--paper); }
.sheet-notes .real .real-t { margin: 0 0 14px; max-width: none; font-size: 15px; line-height: 1.65; color: var(--muted); }
.sheet-notes .real .real-t b { color: var(--ink); }
.sheet-notes .real .formula { font-size: 16px; }
.sheet-notes .real .formula i { font-size: 18px; }
.real-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--pencil); text-decoration: underline; text-decoration-thickness: 2px; }
.real-more::after { content: " ↓"; }

#xishi .xs-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; margin-bottom: 34px; }
#xishi h2 .hl { position: relative; z-index: 0; white-space: nowrap; }
#xishi h2 .hl::after { content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; bottom: 4%; height: 36%; background: var(--pink); opacity: .7; border-radius: 999px; transform: rotate(-2deg); }
#xishi .sub { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 34em; }
#xishi .formula { justify-content: flex-end; }

.xs-lens { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.xs-lens button { appearance: none; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 18px; border: 2.5px solid var(--ink); border-radius: 18px;
    background: var(--surface); color: var(--ink); font: 400 19px/1.15 var(--brand); text-align: left; cursor: pointer; box-shadow: var(--pop-sm); transition: transform .12s, box-shadow .12s, background .15s; }
.xs-lens button small { font: 500 12px/1.3 var(--sans); color: var(--muted); }
.xs-lens button:not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--pop-c); background: var(--sun); color: #1a1a1a; }
.xs-lens button:not(:disabled):hover small { color: rgba(26, 26, 26, .7); }
.xs-lens button[aria-selected="true"] { background: var(--action); color: #fff; box-shadow: var(--pop); }
.xs-lens button[aria-selected="true"] small { color: rgba(255, 255, 255, .82); }
.xs-lens button:disabled { cursor: not-allowed; border-style: dashed; box-shadow: none; opacity: .55; }
.xs-lens button:focus-visible { outline: 2.5px solid var(--pencil); outline-offset: 3px; }

.xs-row { list-style: none; margin: 0; padding: 30px 26px 26px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; border: var(--bd); border-radius: 24px; box-shadow: var(--pop-lg);
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 2.2px, transparent 2.6px) 0 0 / 26px 26px, var(--film); }
.xs-card { position: relative; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.xs-ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 6px solid #fff; border-radius: 16px; background: #fff; box-shadow: 4px 4px 0 #1a1a1a; }
.xs-ph img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.xs-rank { position: absolute; top: -14px; left: -10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 2.5px solid #1a1a1a; border-radius: 50%;
    background: #fff; color: #1a1a1a; font: 400 18px/1 var(--brand); box-shadow: 2px 2px 0 #1a1a1a; }
.xs-card:first-child .xs-rank { background: var(--sun); }
.xs-up { position: absolute; top: -14px; right: -8px; z-index: 2; padding: 3px 10px; border: 2.5px solid #1a1a1a; border-radius: 999px; font: 400 16px/1.1 var(--brand); color: #1a1a1a; box-shadow: 2px 2px 0 #1a1a1a; }
.xs-up:empty { display: none; }
.xs-up.up { background: var(--mint); transform: rotate(6deg); }
.xs-up.down { background: #fff; color: rgba(26, 26, 26, .6); box-shadow: none; border-color: rgba(26, 26, 26, .4); transform: scale(.85); }
.xs-card.xishi .xs-up { background: var(--pink); animation: xs-pop .5s cubic-bezier(.34, 1.56, .64, 1) .55s both; }
.xs-card.xishi .xs-up::before { content: "西施 "; }
.xs-card.xishi .xs-ph { box-shadow: 0 0 0 4px var(--pink), 6px 6px 0 4px #1a1a1a; }
@keyframes xs-pop { from { transform: scale(.4) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(6deg); opacity: 1; } }
.xs-cap { display: flex; flex-direction: column; gap: 1px; margin-top: 10px; color: #fff; line-height: 1.3; }
.xs-cap small { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); min-height: 1.3em; }
.xs-read { margin: 22px 0 6px; font: 400 22px/1.45 var(--brand); min-height: 2.9em; }
/* the demo's small print, as a tips card under the ranking */
.xs-tips { position: relative; margin: 30px 0 0; padding: 24px 24px 18px; border: var(--bd); border-radius: 18px; background: var(--surface); box-shadow: var(--pop); }
.xs-tips-tag { position: absolute; top: -15px; left: 20px; padding: 1px 12px; border: 2.5px solid #1a1a1a; border-radius: 999px; background: var(--sun); color: #1a1a1a;
    font: 800 13px/1.6 var(--sans); letter-spacing: .06em; box-shadow: 2px 2px 0 #1a1a1a; transform: rotate(-3deg); }
.xs-tips ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.xs-tips li:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* the demo's own tips sit under the booth screen, at its width */
.tips-demo { max-width: 1096px; margin: 34px auto 0; }
.xs-tips li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.xs-tips li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--pencil); }
@media (max-width: 640px) { .xs-tips { padding: 22px 16px 14px; } .xs-tips ul { grid-template-columns: 1fr; } .tips-demo { margin-top: 30px; } }

@media (max-width: 860px) {
    #xishi .xs-head { grid-template-columns: 1fr; }
    #xishi .formula { justify-content: flex-start; }
    .xs-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 16px; padding: 28px 18px 20px; }
}
@media (max-width: 640px) {
    .xs-lens { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .xs-lens button { padding: 9px 12px; font-size: 17px; }
    .xs-lens button small { font-size: 11px; }
    .xs-row { gap: 24px 12px; padding: 26px 14px 18px; border-radius: 20px; }
    .xs-ph { border-width: 4px; border-radius: 12px; box-shadow: 3px 3px 0 #1a1a1a; }
    .xs-ph img { border-radius: 8px; }
    .xs-rank { width: 28px; height: 28px; font-size: 15px; top: -12px; left: -8px; }
    .xs-up { font-size: 13px; padding: 2px 7px; top: -12px; right: -6px; }
    .xs-read { font-size: 19px; }
    .formula { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .xs-card { transition: none; } .xs-card.xishi .xs-up { animation: none; } }
@media (max-width: 640px) {
    .sheet-notes .real { padding: 14px 14px; }
    .sheet-notes .real .formula { gap: 6px; font-size: 14px; flex-wrap: nowrap; }
    .sheet-notes .real .formula .chip { padding: 4px 9px; border-width: 2px; box-shadow: 2px 2px 0 var(--pop-c); }
    .sheet-notes .real .formula i { font-size: 15px; }
}

/* ---------- 实验室: the 出格 teaser (cells develop one by one, then the person steps out and waves) ---------- */
.lab-demo { margin: 0; max-width: 400px; }
@media (max-width: 920px) { .lab-demo { max-width: 340px; } }
.lab-demo .ph-box { position: relative; display: block; padding: 18px 14px 10px; background: #fff; border: 2.5px solid #1a1a1a; border-radius: 18px; box-shadow: 5px 5px 0 var(--pop-c); line-height: 0; }
.lab-demo .lab-art { display: block; width: 100%; height: auto; overflow: visible; }
.lab-demo .lab-tag { position: absolute; right: -10px; top: 16px; padding: 4px 10px; border: 2px solid #1a1a1a; border-radius: 999px; background: var(--sun); color: #1a1a1a;
    font: 700 12px/1.4 var(--sans, system-ui); box-shadow: 2px 2px 0 var(--pop-c); transform: rotate(6deg); }
.lab-demo figcaption { font-size: 13px; color: var(--faint); margin-top: 16px; }
.lab-demo .wave { transform-box: fill-box; transform-origin: 0 100%; }
.lab-demo .burst { stroke: var(--pencil); stroke-width: 2.4; }
.lab-demo .cover rect { opacity: 0; }
.js .lab-demo .cover rect { opacity: 1; }
.js .lab-demo .who { opacity: 0; transform: translateY(40px); }
.js .lab-demo.in .cover rect { animation: lab-dev .55s ease-out both calc(380ms + var(--k) * 110ms); }
.js .lab-demo.in .who { animation: lab-rise .7s cubic-bezier(.2, 1.35, .4, 1) both 1.5s; }
.js .lab-demo.in .wave { animation: lab-wave .42s ease-in-out 2.2s 6 alternate; }
.lab-demo:hover .wave { animation: lab-wave .42s ease-in-out infinite alternate !important; }
@keyframes lab-dev { from { opacity: 1; } to { opacity: 0; } }
@keyframes lab-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes lab-wave { from { transform: rotate(-10deg); } to { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
    .js .lab-demo .cover rect { opacity: 0; animation: none !important; }
    .js .lab-demo .who { opacity: 1; transform: none; animation: none !important; }
    .lab-demo .wave { animation: none !important; }
}
.lab-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: lab; }
.lab-steps li { counter-increment: lab; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.lab-steps li::before { content: counter(lab); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%;
    background: var(--sun); color: #1a1a1a; font: 400 18px/1 var(--brand); box-shadow: var(--pop-sm); }
.lab-steps b { font-size: 16px; }
.lab-steps span { font-size: 14px; color: var(--muted); }
.lab-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.lab-more { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--pencil); }
.lab-more:hover { color: var(--pencil); }
.lab-intro .meta, .lab-pane .meta { font-size: 14px; margin-top: 16px; }

/* two experiments side by side: 出格 on the left, 一键 P 图 on the right */
.lab-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; align-items: start; }
.lab-pane { min-width: 0; }
.lab-pane .lab-demo { max-width: 360px; margin-bottom: 26px; }
.lab-pane h3 { font: 400 clamp(22px, 2.3vw, 28px)/1.3 var(--brand); letter-spacing: .01em; }
.lab-pane .sub { color: var(--muted); font-size: 17px; margin-top: 10px; }
.lab-pane .lab-steps { margin-top: 18px; gap: 10px; }
.lab-pane .lab-cta { margin-top: 22px; }
.lab-foot { margin: 40px 0 0; text-align: center; }
@media (max-width: 920px) {
    .lab-duo { grid-template-columns: 1fr; gap: 64px; }
    .lab-pane .lab-demo { max-width: 340px; }
}

/* 一键 P 图 teaser: the line sweeps across once the picture is in view, then the sparkles pop */
.rt-home .lbl text { fill: #fff; font: 700 9px var(--sans); text-anchor: middle; }
.rt-home .handle, .rt-home .after-clip { transform-box: view-box; }
.rt-home .spark path { transform-box: fill-box; transform-origin: center; }
.js .rt-home .handle, .js .rt-home .after-clip { transform: translateX(62px); }
.js .rt-home .spark path { transform: scale(0); }
.js .rt-home.in .handle, .js .rt-home.in .after-clip { animation: rt-home-sweep 2.2s cubic-bezier(.3, .9, .3, 1) both .5s; }
.js .rt-home.in .spark path { animation: rt-home-pop .5s cubic-bezier(.2, 1.6, .4, 1) both 2.2s; }
.js .rt-home.in .spark .s2 { animation-delay: 2.4s; }
.js .rt-home.in .spark .s3 { animation-delay: 2.6s; }
.rt-home:hover .handle, .rt-home:hover .after-clip { animation: rt-home-loop 2.6s ease-in-out infinite !important; }
@keyframes rt-home-sweep { 0% { transform: translateX(62px); } 45% { transform: translateX(-46px); } 75% { transform: translateX(12px); } 100% { transform: translateX(0); } }
@keyframes rt-home-loop { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-46px); } 65% { transform: translateX(50px); } }
@keyframes rt-home-pop { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) {
    .js .rt-home .handle, .js .rt-home .after-clip { transform: none; animation: none !important; }
    .js .rt-home .spark path { transform: none; animation: none !important; }
}
