:root {
  --bg: #000;
  --surface: #262626;
  --surface-2: #1a1a1a;
  --line: #363636;
  --ink: #f5f5f5;
  --muted: #a8a8a8;
  --blue: #0095f6;
  --green: #1fbf5f;
  --paper: #f6f3ec;
  --paper-ink: #1b1b1b;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Figtree", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;   /* display: heavy geometric sans (Instagram Sans / Spotify Mix stand-in) */
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --cond: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #000; color: var(--ink); font-family: var(--ui); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
#app { position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; overflow: hidden; background: var(--bg); }
@media (min-width: 560px) {
  body { display: grid; place-items: center; background: #0b0b0b; }
  #app { height: min(900px, 100dvh - 40px); width: 420px; border-radius: 44px; border: 1px solid #222; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
}

/* ---------- DM thread ---------- */
.thread { display: flex; flex-direction: column; height: 100%; }
.dm-head { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-top) + 14px) 16px 10px; border-bottom: .5px solid #1f1f1f; }
.dm-head .back { width: 24px; height: 24px; opacity: .95; }
.dm-head .who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.dm-head .name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.dm-head .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.dm-head .icons { display: flex; gap: 18px; }
.dm-head .icons svg { width: 24px; height: 24px; }

.avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; overflow: hidden; background: #111; display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mark { background: #fff; color: #000; font-family: var(--display); font-weight: 900; font-size: 18px; line-height: 1; letter-spacing: -.04em; }
.mark span { transform: translateY(1px); }

.scroll { flex: 1; overflow-y: auto; padding: 18px 12px 10px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; }
.scroll::-webkit-scrollbar { display: none; }
.intro-card { text-align: center; padding: 18px 0 26px; }
.intro-card .avatar { width: 88px; height: 88px; margin: 0 auto 12px; }
.intro-card .avatar.mark { font-size: 52px; }
.intro-card h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.intro-card p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.stamp { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 10px; font-weight: 500; }

.row { display: flex; align-items: flex-end; gap: 8px; }
.row.me { justify-content: flex-end; }
.row .avatar { width: 28px; height: 28px; visibility: hidden; }
.row.last .avatar { visibility: visible; }
.row.last .avatar.mark { font-size: 17px; }
.bubble { max-width: 74%; padding: 9px 14px; border-radius: 22px; font-size: 15px; line-height: 1.32; letter-spacing: -.005em; word-wrap: break-word; animation: pop .28s cubic-bezier(.2,.9,.3,1.2) both; }
.them .bubble { background: var(--surface); }
.them:not(.last) .bubble { border-bottom-left-radius: 6px; }
.them + .them .bubble { border-top-left-radius: 6px; }
.me .bubble { background: linear-gradient(180deg, #7b4dff 0%, #3c7cf4 100%); background-attachment: fixed; color: #fff; }
.me + .me .bubble { border-top-right-radius: 6px; }
.me:not(.last) .bubble { border-bottom-right-radius: 6px; }
.gap { height: 10px; }
.emoji-big { font-size: 44px; line-height: 1.05; background: none !important; padding: 2px 0; }
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e8e; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.seen { align-self: flex-end; font-size: 11px; color: var(--muted); margin: 3px 6px 0; }

/* shared-profile card (Instagram-style profile share) */
.profile-card { width: 238px; background: var(--surface); border-radius: 18px; overflow: hidden; animation: pop .3s cubic-bezier(.2,.9,.3,1.2) both; }
.profile-card .top { display: flex; flex-direction: column; align-items: center; padding: 18px 14px 14px; }
.profile-card .pfp { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #3a3a3a; display: grid; place-items: center; font-size: 26px; font-weight: 600; }
.profile-card .pfp img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .n { font-weight: 600; font-size: 15px; margin-top: 10px; }
.profile-card .h { font-size: 13px; color: var(--muted); margin-top: 1px; }
.profile-card .stats { font-size: 12px; color: var(--muted); margin-top: 8px; }
.profile-card .bio { font-size: 12.5px; color: #dcdcdc; margin-top: 8px; text-align: center; line-height: 1.35; white-space: pre-line; max-height: 3.9em; overflow: hidden; }
.profile-card .act { border-top: .5px solid #3a3a3a; text-align: center; padding: 11px; font-size: 14px; font-weight: 600; }

/* quick replies + composer */
.dock { padding: 8px 12px calc(var(--safe-bottom) + 12px); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 10px; }
.chip { padding: 9px 16px; border-radius: 20px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; animation: pop .3s both; }
.chip.primary { background: var(--ink); color: #000; border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.composer { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 24px; padding: 6px 6px 6px 6px; min-height: 46px; }
.composer .cam { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }
.composer .cam span { font-weight: 700; font-size: 16px; }
.composer input { flex: 1; background: none; border: 0; outline: 0; font-size: 15px; min-width: 0; }
.composer input::placeholder { color: var(--muted); }
.composer .send { color: var(--blue); font-weight: 600; font-size: 15px; padding: 0 10px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.composer.has .send { opacity: 1; pointer-events: auto; }
.fine { text-align: center; font-size: 11px; color: #6e6e6e; margin-top: 10px; line-height: 1.4; }
/* @-mention style suggestion (like Instagram's username autocomplete) */
.suggest { background: var(--surface-2); border: .5px solid #2a2a2a; border-radius: 16px; margin-bottom: 8px; overflow: hidden; animation: pop .22s both; }
.sug-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; }
.sug-row:active { background: #222; }
.sug-row .pfp { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #3a3a3a; display: grid; place-items: center; font-weight: 600; flex: none; }
.sug-row .pfp img { width: 100%; height: 100%; object-fit: cover; }
.sug-row .t { display: flex; flex-direction: column; min-width: 0; }
.sug-row b { font-size: 14px; font-weight: 600; }
.sug-row small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Story (quiz + result) ---------- */
.story { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--sbg, #111); transition: background .45s ease; overflow: hidden; }
.story::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; 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'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>"); }
.bars { display: flex; gap: 4px; padding: calc(var(--safe-top) + 10px) 10px 0; position: relative; z-index: 2; }
.bars div { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.bars div.on { background: #fff; }
.story-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; position: relative; z-index: 2; }
.story-head .avatar { width: 32px; height: 32px; }
.story-head b { font-size: 14px; font-weight: 600; }
.story-head small { font-size: 14px; color: rgba(255,255,255,.7); }
.story-head .x { margin-left: auto; font-size: 26px; line-height: 1; opacity: .9; padding: 0 4px; }
.story-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 26px 90px; position: relative; z-index: 2; }
.story-text { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.02; text-align: center; letter-spacing: -.01em; margin-bottom: 26px; text-wrap: balance; }
.story-text em { font-style: normal; color: var(--acc, inherit); }
.step { position: absolute; bottom: calc(var(--safe-bottom) + 22px); left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.7); font-weight: 500; z-index: 2; }

/* poll sticker */
.sticker { background: #fff; color: #111; border-radius: 18px; width: 100%; max-width: 300px; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: drop .45s cubic-bezier(.2,.9,.3,1.25) both; }

/* quiz sticker */

/* emoji slider sticker */
.slider { padding: 18px 20px 24px; text-align: center; }
.slider .q { font-weight: 700; font-size: 16px; margin-bottom: 0; }
.slider .track { position: relative; height: 8px; border-radius: 4px; background: #e6e6e6; }
.slider .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #fd8d32, #e1306c, #8a3ffc); }
.slider input[type=range] { position: absolute; inset: -18px 0; width: 100%; opacity: 0; cursor: pointer; }
.slider .thumb { position: absolute; top: 50%; font-size: 38px; transform: translate(-50%, -54%); pointer-events: none; transition: font-size .1s; filter: drop-shadow(0 3px 4px rgba(0,0,0,.15)); }
.slider .ends { display: flex; justify-content: space-between; font-size: 12px; color: #8e8e8e; margin-top: 14px; font-weight: 600; }
.slider .go { margin-top: 18px; width: 100%; padding: 12px; border-radius: 12px; background: #111; color: #fff; font-weight: 700; }
.slider .avg { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: #111; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transform: translate(-50%, -50%) scale(0); animation: avgIn .5s .15s cubic-bezier(.2,.9,.3,1.4) forwards; z-index: 0; }
.slider .avg::after { content: "avg"; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: #111; }
.slider .sres { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 12px; border-top: 1px solid #ececec; font-size: 12px; color: #8e8e8e; font-weight: 600; animation: rise .4s both; }
.slider .sres b { color: #111; font-size: 15px; margin-left: 3px; }
@keyframes avgIn { to { transform: translate(-50%, -50%) scale(1); } }
.votes { text-align: center; font-size: 12px; font-weight: 600; color: #8e8e8e; padding: 0 0 12px; animation: rise .4s .2s both; }

/* story player chrome */
.bars div i { display: block; height: 100%; width: 0; background: #fff; }
.bars div.on i { width: 100%; }
.story .tap { position: absolute; top: 0; bottom: 0; z-index: 1; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.story .tap.left { left: 0; width: 30%; }
.story .tap.right { right: 0; width: 70%; }
.story .story-body { pointer-events: none; }
.story .story-body > * { pointer-events: auto; }
.story .story-body .story-text { pointer-events: none; }
.bars, .story-head, .story-foot { transition: opacity .2s; }
.story.held .bars, .story.held .story-head, .story.held .story-foot { opacity: 0; }
.story-foot { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 14px); display: flex; align-items: center; gap: 6px; padding: 0 14px 0 16px; z-index: 3; pointer-events: none; }
.story-foot > * { pointer-events: auto; }
.story-foot .hint { flex: 1; pointer-events: none; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 22px; display: flex; align-items: center; padding: 0 18px; font-size: 14px; color: rgba(255,255,255,.85); }
.story-foot .ic { width: 44px; height: 44px; display: grid; place-items: center; }
.story-foot .ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.story-foot .heart.on svg { fill: #ff3040; stroke: #ff3040; animation: like .35s cubic-bezier(.2,.9,.3,1.6); }
@keyframes like { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.burst { position: absolute; left: 50%; top: 45%; font-size: 96px; z-index: 5; pointer-events: none; animation: burst .9s cubic-bezier(.2,.9,.3,1.2) forwards; }
@keyframes burst { 0% { transform: translate(-50%,-50%) scale(0); opacity: 0; } 25% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } 60% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 100% { transform: translate(-50%,-90%) scale(.9); opacity: 0; } }
.sticker.nudge { animation: nudge .45s; }
@keyframes nudge { 0%,100% { transform: none; } 20% { transform: translateX(-8px) rotate(-1deg); } 40% { transform: translateX(7px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* result */
.result .story-body { justify-content: flex-start; padding-top: 1.5vh; padding-bottom: 150px; }
.ring { width: 112px; height: 112px; border-radius: 50%; padding: 4px; background: var(--green); position: relative; animation: drop .5s both; }
.ring .in { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--sbg, #111); overflow: hidden; background: #333; display: grid; place-items: center; font-size: 48px; font-weight: 600; }
.ring img { width: 100%; height: 100%; object-fit: cover; }
.ring .star { position: absolute; right: 0; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); border: 3px solid var(--sbg, #111); display: grid; place-items: center; font-size: 15px; }
.r-handle { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.75); font-weight: 500; }
.r-kicker { margin-top: 12px; font: 800 15px/1.2 var(--display); letter-spacing: -.01em; text-transform: none; color: rgba(255,255,255,.72); }
.r-name { font-family: var(--display); font-weight: 900; font-size: 42px; line-height: .98; text-align: center; margin-top: 8px; text-wrap: balance; animation: rise .6s .15s both; }
.r-tag { font-size: 15px; line-height: 1.36; text-align: center; color: rgba(255,255,255,.88); margin-top: 10px; max-width: 320px; animation: rise .6s .25s both; }
.code { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; width: 100%; max-width: 330px; margin-top: 16px; }
.code div { background: rgba(255,255,255,.1); border-radius: 14px; padding: 10px 4px 9px; text-align: center; animation: rise .5s both; }
.code b { display: block; font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; }
.code span { display: block; font-size: 11px; font-weight: 600; margin-top: 4px; color: rgba(255,255,255,.8); }
.r-actions { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 18px); padding: 0 16px; display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.btn { width: 100%; padding: 15px; border-radius: 14px; font-weight: 700; font-size: 15.5px; text-align: center; }
.btn.white { background: #fff; color: #000; }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; }
.r-note { text-align: center; font-size: 12px; color: rgba(255,255,255,.65); }

/* receipt slip (brand signature) */
.slip { position: relative; width: 100%; max-width: 300px; margin-top: 22px; background: var(--paper); color: var(--paper-ink); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; padding: 14px 16px 18px; transform: rotate(-1.2deg); box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: print .7s .45s cubic-bezier(.2,.8,.2,1) both;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x; }
.slip .hd { text-align: center; font-weight: 600; letter-spacing: .12em; font-size: 11px; }
.slip .sub { text-align: center; font-size: 10px; color: #6b665c; margin-bottom: 8px; }
.slip .ln { display: flex; gap: 6px; }
.slip .ln span:first-child { white-space: nowrap; }
.slip .ln i { flex: 1; border-bottom: 1.5px dotted #b5ae9f; transform: translateY(-4px); }
.slip .ln span:last-child { white-space: nowrap; font-weight: 600; }
.slip hr { border: 0; border-top: 1.5px dashed #b5ae9f; margin: 8px 0; }
.slip .tot { display: flex; justify-content: space-between; font-weight: 600; font-size: 12px; }
@keyframes print { from { opacity: 0; transform: translateY(-18px) rotate(-1.2deg); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: rotate(-1.2deg); clip-path: inset(0 0 0 0); } }

/* motion */
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.still * { animation: none !important; transition: none !important; }

/* slider value tooltip (shows the real answer: a time, a count) */
.slider .track { margin-top: 52px; }
.slider .tip { position: absolute; bottom: 30px; transform: translateX(-50%); background: #111; color: #fff; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 10px; white-space: nowrap; pointer-events: none; }
.slider .tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: #111; transform: translateX(-50%) rotate(45deg); }
.slider .tip.set { background: var(--qc, #e1306c); }
.slider .tip.set::after { background: var(--qc, #e1306c); }
.slider .sres { display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: 6px; text-align: center; }
.slider .sres small { display: block; font-size: 11px; color: #8e8e8e; font-weight: 600; }
.slider .sres b { display: block; margin: 3px 0 0; font-size: 16px; color: #111; }

/* result: content scrolls, actions sit on a solid footer so nothing shows through */
.result .story-body { overflow-y: auto; overflow-x: hidden; justify-content: flex-start; padding: 1.5vh 22px 170px; pointer-events: auto; scrollbar-width: none; }
.result .story-body::-webkit-scrollbar { display: none; }
.result .r-note { position: static; margin: 22px 0 4px; font-size: 13px; color: rgba(255,255,255,.6); text-align: center; }
.result .r-actions { padding: 34px 16px 0; bottom: 0; padding-bottom: calc(var(--safe-bottom) + 16px); background: linear-gradient(180deg, rgba(20,20,20,0) 0, #141414 30px); }
.btn.dark { background: #363636; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn.dark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* ---------- poll + quiz sticker (Instagram's current multi-option poll) ---------- */
.poll, .quiz { overflow: hidden; padding-bottom: 10px; }
.poll .q, .quiz .q { background: #000; color: #fff; padding: 15px 18px 14px; font: 700 21px/1.12 var(--cond); letter-spacing: -.005em; text-align: center; }
.quiz .q { background: var(--qc, #e1306c); }
.poll .opts, .quiz .opts { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 2px; }
.poll .opt, .quiz .opt { position: relative; height: 50px; border-radius: 12px; background: #efefef; overflow: hidden; text-align: left; transition: transform .12s; }
.poll .opt:active, .quiz .opt:active { transform: scale(.98); }
.opt .base, .opt .cover { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.opt .lbl { flex: 1; font: 600 16.5px/1.1 var(--ui); color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.opt .ltr { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid #bdbdbd; display: grid; place-items: center; font: 700 12px var(--ui); color: #8e8e8e; }
.opt .pct { font: 700 24px/1 var(--cond); color: #111; opacity: 0; transition: opacity .25s .1s; font-variant-numeric: tabular-nums; }
/* the cover is the black fill; it is clipped to the option's share, so text inside it reads white */
.opt .cover { background: #000; clip-path: inset(0 100% 0 0 round 12px); transition: clip-path .75s cubic-bezier(.2,.8,.2,1); }
.quiz .opt .cover { background: var(--qc, #e1306c); }
.opt .cover .lbl, .opt .cover .pct { color: #fff; }
.opt .cover .ltr { border-color: rgba(255,255,255,.7); color: #fff; }
.done .opt .pct { opacity: 1; }
.shown .opt .cover { clip-path: inset(0 calc(100% - var(--w, 0%)) 0 0 round 12px); }
.done .opt { cursor: default; }
.done .opt:not(.picked) .base .lbl { color: #555; }
.opt.picked .lbl::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 7px; vertical-align: -2px; border-radius: 50%;
  background: #0095f6 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/100% no-repeat; }

/* ---------- DM header + intro ---------- */
.dm-head { padding-left: 16px; }
.dm-head .who { text-align: left; }
.dm-head .icons { width: 32px; height: 32px; display: grid; place-items: center; }
.intro-card .intro-av { display: block; margin: 0 auto 12px; border-radius: 50%; }
.intro-card .intro-av .avatar { margin: 0; }
.intro-card p { margin-top: 2px; }
.intro-card p.live { color: #8e8e8e; font-size: 12px; margin-top: 6px; min-height: 15px; }
.view-profile { margin-top: 12px; background: var(--surface); padding: 7px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; }

/* ---------- profile page (Instagram iOS profile, dark) ---------- */
.profile-sheet, .pf-feed { position: absolute; inset: 0; background: #000; z-index: 20; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); color: #f5f5f5; }
.profile-sheet.in, .pf-feed.in { transform: none; }
.profile-sheet svg, .pf-feed svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.profile-sheet svg .fill, .pf-feed svg .fill, .profile-sheet svg.fill, .pf-feed svg.fill { fill: currentColor; stroke: none; }
.pf-top { display: flex; align-items: center; gap: 6px; height: 44px; padding: var(--safe-top) 8px 0 4px; box-sizing: content-box; flex: none; }
.pf-top > b { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pf-back, .pf-ic { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.pf-back svg { width: 26px; height: 26px; stroke-width: 2.2; }
.pf-ic svg { width: 24px; height: 24px; }
.pf-top.two { justify-content: space-between; }
.pf-top.two .ttl { flex: 1; text-align: center; display: flex; flex-direction: column; line-height: 1.15; }
.pf-top.two .ttl small { font-size: 12px; color: #a8a8a8; font-weight: 600; }
.pf-top.two .ttl b { font-size: 16px; }
.pf-top.two > span { width: 40px; }
.pf-scroll, .feed-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.pf-scroll::-webkit-scrollbar, .feed-scroll::-webkit-scrollbar { display: none; }

.pf-row { display: flex; align-items: center; gap: 22px; padding: 40px 16px 0; }
.pf-av { position: relative; flex: none; }
.pf-av > .avatar { width: 88px; height: 88px; font-size: 50px; }
/* Instagram Notes bubble over the avatar */
.pf-note { position: absolute; left: -4px; bottom: calc(100% - 20px); width: max-content; max-width: 112px; background: #262626; color: #f5f5f5; font-size: 11px; line-height: 1.25; text-align: center; padding: 6px 10px 7px; border-radius: 14px; z-index: 1; box-shadow: 0 0 0 2px #000; }
.pf-note::after { content: ""; position: absolute; left: 30%; bottom: -4px; width: 8px; height: 8px; border-radius: 50%; background: #262626; }
.pf-note::before { content: ""; position: absolute; left: calc(30% - 5px); bottom: -9px; width: 4px; height: 4px; border-radius: 50%; background: #262626; }
.pf-right { flex: 1; min-width: 0; }
.pf-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.pf-stats { display: flex; gap: 0; }
.pf-stats > div { flex: 1; display: flex; flex-direction: column; text-align: left; }
.pf-stats b { font-size: 16px; font-weight: 700; line-height: 1.2; }
.pf-stats span { font-size: 13.5px; color: #f5f5f5; }
.pf-bio { padding: 10px 16px 0; font-size: 14px; line-height: 1.36; }
.pf-bio .cat { display: block; color: #a8a8a8; }
.pf-bio p { margin: 0; }
.pf-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; color: #e0f1ff; font-weight: 600; text-decoration: none; }
.pf-link svg { width: 14px; height: 14px; stroke-width: 2.2; }
.pf-by { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #f5f5f5; text-decoration: none; font-size: 13px; }
.pf-by-av { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: #363636; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.pf-by-av img, .ring-s img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-btns { display: flex; gap: 6px; padding: 14px 16px 0; }
.pf-btn { flex: 1; height: 34px; background: #262626; border-radius: 8px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.pf-btn.primary { background: #0095f6; }
.pf-btn.sq { flex: none; width: 34px; display: grid; place-items: center; }
.pf-btn.sq svg { width: 16px; height: 16px; stroke-width: 2.1; }
.pf-btn:active { opacity: .7; }
.pf-hl { display: flex; gap: 14px; padding: 18px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.pf-hl::-webkit-scrollbar { display: none; }
.pf-hl button { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; width: 66px; }
.ring-s { width: 66px; height: 66px; border-radius: 50%; box-shadow: inset 0 0 0 1px #363636; display: grid; place-items: center; padding: 4px; }
.ring-s > span { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #161616; display: grid; place-items: center; font: 800 24px var(--display); color: var(--paper); }
.pf-hl small { font-size: 12px; color: #f5f5f5; max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tabs { display: flex; margin-top: 10px; position: sticky; top: 0; background: #000; z-index: 2; }
.pf-tabs button { flex: 1; height: 44px; display: grid; place-items: center; color: #737373; border-bottom: 1px solid #262626; }
.pf-tabs button.on { color: #f5f5f5; border-bottom: 1.5px solid #f5f5f5; }
.pf-tabs svg { width: 24px; height: 24px; stroke-width: 1.8; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; padding-bottom: 40px; }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: block; }
.tile .pin { position: absolute; top: 6px; right: 6px; width: 17px; height: 17px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.tile .pin svg { width: 100%; height: 100%; }
.tile:active { opacity: .85; }

/* post screen */
.post { padding-bottom: 16px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.post-head .avatar { width: 32px; height: 32px; font-size: 18px; }
.post-head .who { display: flex; flex-direction: column; line-height: 1.2; }
.post-head b { font-size: 14px; font-weight: 600; }
.post-head small { color: #a8a8a8; font-size: 12px; }
.post-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.post-acts { display: flex; gap: 16px; padding: 10px 14px 4px; }
.post-acts button { width: 26px; height: 26px; }
.post-acts svg { width: 26px; height: 26px; stroke-width: 1.9; }
.post-acts .like.on svg { fill: #ff3040; stroke: #ff3040; animation: like .35s cubic-bezier(.2,.9,.3,1.6); }
.post-cap { padding: 4px 14px 0; font-size: 14px; line-height: 1.4; }
.post-cap b { font-weight: 600; }
.post time { display: block; padding: 6px 14px 0; font-size: 12px; color: #a8a8a8; }
.post-media .burst { top: 50%; }

/* ---------- post slides (scale with their box via container units) ---------- */
.sl { position: absolute; inset: 0; container-type: inline-size; display: flex; flex-direction: column; justify-content: center; padding: 9%; text-align: left; overflow: hidden; }
.sl .k { font: 800 5cqw/1.2 var(--display); letter-spacing: -.01em; text-transform: none; opacity: .75; margin-bottom: 4cqw; }
.sl em { font-style: normal; color: var(--acc, inherit); }
.sl-hero { background: #000; color: #fff; justify-content: flex-start; padding-top: 12cqw; }
.sl-hero .t { font: 800 17cqw/0.92 var(--display); letter-spacing: -.01em; }
.mini-slip { margin-top: auto; background: var(--paper); color: var(--paper-ink); font: 3.6cqw/1.7 var(--mono); padding: 4cqw 5cqw; transform: rotate(-2deg); }
.mini-slip div, .sl-paper .ln { display: flex; gap: 2cqw; }
.mini-slip i, .sl-paper .ln i { flex: 1; border-bottom: .5cqw dotted #b5ae9f; transform: translateY(-1.2cqw); }
.sl-how { background: #f4f4f2; color: #000; }
.sl-how ol { list-style: none; display: flex; flex-direction: column; gap: 5cqw; }
.sl-how li { display: flex; gap: 4cqw; align-items: flex-start; font: 6.2cqw/1.15 var(--ui); font-weight: 600; letter-spacing: -.02em; }
.sl-how li b { flex: none; width: 10cqw; height: 10cqw; border-radius: 50%; background: #000; color: var(--paper); display: grid; place-items: center; font: 800 6.5cqw var(--display); }
.sl-how em { font-family: var(--display); font-weight: 800; font-style: normal; }
.sl-paper { background: #1b1b1b; color: var(--paper-ink); padding: 8cqw; }
.sl-paper > * { background: var(--paper); padding: 0 6cqw; font: 4.3cqw/1.9 var(--mono); }
.sl-paper .hd { padding-top: 6cqw; text-align: center; font-weight: 600; letter-spacing: .12em; }
.sl-paper .sub { text-align: center; color: #6b665c; font-size: 3.6cqw; padding-bottom: 2cqw; }
.sl-paper .ln span:last-child { font-weight: 600; }
.sl-paper hr { border: 0; border-top: .5cqw dashed #b5ae9f; margin: 0; padding: 0; height: 2cqw; }
.sl-paper .tot { display: flex; justify-content: space-between; font-weight: 600; padding-bottom: 6cqw; }
.sl-list { background: #1f5bff; color: #fff; }
.sl-list ul { list-style: none; display: flex; flex-direction: column; gap: 2.4cqw; }
.sl-list li { font: 800 8cqw/1 var(--display); }
.sl-list li::before { content: "✓ "; font: 600 5cqw var(--ui); color: var(--green); vertical-align: 1cqw; }
.sl-list .more { margin-top: 5cqw; font: 800 4.6cqw var(--display); opacity: .7; }
.sl-maker { background: #e9e4d8; color: #111; align-items: center; text-align: center; }
.sl-maker .pfp { width: 34cqw; height: 34cqw; border-radius: 50%; overflow: hidden; background: #111; color: var(--paper); display: grid; place-items: center; font: 800 18cqw var(--display); margin-bottom: 6cqw; box-shadow: 0 0 0 1.2cqw #e9e4d8, 0 0 0 2cqw var(--green); }
.sl-maker .pfp img { width: 100%; height: 100%; object-fit: cover; }
.sl-maker .k { margin-bottom: 1cqw; }
.sl-maker .t { font: 800 15cqw/1 var(--display); }
.sl-maker .h { font: 600 4.8cqw var(--ui); margin-top: 3cqw; opacity: .7; }
.sl-faq { background: #ff2e74; color: #fff; }
.sl-faq p { font: 4.9cqw/1.3 var(--ui); margin-bottom: 4cqw; color: rgba(255,255,255,.85); }
.sl-faq b { display: block; color: #fff; font: 800 7cqw/1.05 var(--display); margin-bottom: 1cqw; }

/* ---------- export guide (story) ---------- */
.guide .story-body { justify-content: flex-start; padding: 2vh 22px 170px; }
.guide .tap { width: 22%; }
.guide .tap.right { width: 22%; }
.g-title { font: 800 38px/1.02 var(--display); text-align: center; text-wrap: balance; margin-top: 1vh; }
.g-title em { font-style: normal; color: var(--acc, inherit); }
.g-text { font-size: 15px; line-height: 1.42; text-align: center; color: rgba(255,255,255,.86); margin-top: 18px; max-width: 330px; text-wrap: pretty; }
.g-text b { color: #fff; }
.g-mock { width: 100%; max-width: 310px; margin-top: 22px; }
.mk { background: #fff; color: #111; border-radius: 18px; padding: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.35); transform: rotate(-1deg); animation: drop .45s both; }
.mk-h { font-weight: 700; font-size: 16px; padding: 2px 4px 10px; }
.mk-h.sm { font-size: 13px; color: #737373; padding-top: 12px; }
.mk-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 14px; }
.mk-row .r { color: #737373; font-weight: 600; }
.mk-row.hi { background: #e8f3ff; box-shadow: inset 0 0 0 1.5px #0095f6; }
.mk-row.hi .r { color: #0064e0; }
.mk-btn { position: relative; margin-top: 12px; background: #0064e0; color: #fff; text-align: center; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.mk-file { display: flex; gap: 10px; align-items: center; padding: 8px 6px; font-size: 13px; }
.mk-file span { font-size: 26px; }
.mk-file small { display: block; color: #737373; margin-top: 2px; }
.tapdot { position: absolute; right: 22%; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: tap 1.6s infinite; }
@keyframes tap { 0% { transform: scale(.7); box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 60% { transform: scale(1); box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { transform: scale(.7); } }
.cook { position: relative; height: 200px; display: grid; place-items: center; }
.cook .pan { font-size: 92px; animation: wobble 2.4s ease-in-out infinite; }
.cook .steam { position: absolute; top: 4px; display: flex; gap: 18px; }
.cook .steam i { width: 8px; height: 46px; border-radius: 8px; background: linear-gradient(transparent, rgba(255,255,255,.5)); animation: steam 2s infinite; }
.cook .steam i:nth-child(2) { animation-delay: .5s; } .cook .steam i:nth-child(3) { animation-delay: 1s; }
@keyframes wobble { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-4px); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(16px) scaleY(.6); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px) scaleY(1.1); } }

/* ---------- upload ---------- */
.upload, .printing { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; }
.drop { margin: 18px 16px 0; border: 1.5px dashed #3a3a3a; border-radius: 22px; padding: 40px 22px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--blue); background: rgba(0,149,246,.08); }
.drop-ic { font-size: 54px; }
.drop b { font-size: 18px; }
.drop small { color: var(--muted); font-size: 13px; line-height: 1.45; max-width: 290px; }
.drop code { font-family: var(--mono); font-size: 11.5px; color: #dcdcdc; word-break: break-all; }
.drop .btn { margin-top: 12px; width: auto; padding: 12px 28px; }
.up-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 16px 24px 0; }
.up-err { margin: 14px 24px 0; text-align: center; color: #ff6b6b; font-size: 14px; }
.printing { justify-content: center; align-items: center; padding: 0 30px; }
.printer { position: relative; width: 250px; height: 300px; }
.printer .slot { position: absolute; top: 0; left: -10px; right: -10px; height: 18px; border-radius: 9px; background: #262626; z-index: 2; box-shadow: inset 0 -4px 0 #111; }
.printer .paper { position: absolute; top: 9px; left: 12px; right: 12px; background: var(--paper); color: var(--paper-ink); font: 11px/1.7 var(--mono); padding: 22px 16px 14px; max-height: 290px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.printer .hd { text-align: center; font-weight: 600; letter-spacing: .2em; margin-bottom: 8px; }
.printer .ln { display: flex; gap: 6px; color: #b5ae9f; animation: rise .3s both; }
.printer .ln i { flex: 1; border-bottom: 1.5px dotted #cfc8b9; transform: translateY(-4px); }
.pr-label { margin-top: 30px; font-weight: 600; font-size: 15px; text-align: center; min-height: 20px; }
.pr-bar { width: 220px; height: 3px; background: #262626; border-radius: 2px; margin-top: 14px; overflow: hidden; }
.pr-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .25s; }
.pr-fail { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pr-fail p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.dbg { flex: 1; overflow: auto; font: 11px/1.4 var(--mono); padding: 12px; color: #ddd; }

/* =================== the deck =================== */
.deck .dk { position: absolute; left: 0; right: 0; top: calc(var(--safe-top) + 64px); bottom: calc(var(--safe-bottom) + 70px); container-type: size; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 7%; text-align: center; z-index: 2; pointer-events: none; }   /* % of the story, not cqw: a container's own cqw falls back to the window width (tiny text on computers) */
.deck .dk * { pointer-events: none; }
.deck .r-actions { z-index: 4; }
.deck .card-summary, .deck .card-tip { bottom: calc(var(--safe-bottom) + 140px); }
.dk .a { animation: rise .55s var(--d, 0s) cubic-bezier(.2,.8,.2,1) both; }
.still .dk .a, .still .dk .a * { animation: none !important; }
.dk-k { font: 800 5cqw/1.2 var(--display); letter-spacing: -.01em; text-transform: none; color: rgba(255,255,255,.8); margin-bottom: 2.6cqh; }
.dk-h { font: 800 9.6cqw/1.02 var(--display); letter-spacing: -.035em; }
.dk-h em, .dk-name em { font-style: normal; color: var(--acc, inherit); }
.dk-h.dark, .dk-roast.dark, .dk-facts.dark { color: var(--paper-ink); }
.card-top5 .dk-k, .card-year .dk-k, .card-cf-likely .dk-k { color: rgba(0,0,0,.55); }
.dk-num { font: 900 25cqw/.9 var(--display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.dk-sub { font-size: 4.3cqw; line-height: 1.38; color: rgba(255,255,255,.86); margin-top: 1.8cqh; max-width: 86cqw; text-wrap: balance; }
.dk-sub b { color: #fff; }
.dk-roast { margin-top: 4cqh; font: 800 5.2cqw/1.55 var(--display); letter-spacing: -.015em; color: #000; max-width: 88cqw; }
.dk-fine { margin-top: 3cqh; font-size: 3.1cqw; line-height: 1.4; color: rgba(255,255,255,.55); max-width: 80cqw; }
.dk-facts { margin-top: 4cqh; width: 100%; display: flex; flex-direction: column; gap: 1.4cqh; text-align: left; }
.dk-facts > div { display: flex; align-items: baseline; gap: 3cqw; padding-top: 1.4cqh; border-top: 1px solid rgba(255,255,255,.14); }
.dk-facts.dark > div { border-color: rgba(0,0,0,.12); }
.dk-facts b { font: 800 7cqw/1 var(--display); flex: none; min-width: 20cqw; }
.dk-facts span { font-size: 3.7cqw; line-height: 1.3; opacity: .8; }

/* DM bubbles inside cards */
.dk-thread { display: flex; flex-direction: column; gap: .6cqh; width: 100%; margin: 3cqh 0; }
.dk-thread.solo { margin: 4cqh 0 0; align-items: flex-end; }
.dk-b { max-width: 70%; padding: 2.4cqw 4cqw; border-radius: 6cqw; font-size: 4.1cqw; line-height: 1.25; text-align: left; }
.dk-b.them { align-self: flex-start; background: #262626; color: #fff; }
.dk-b.me { align-self: flex-end; background: linear-gradient(180deg, #7b4dff, #3c7cf4); color: #fff; }
.dk-b.typing { display: inline-flex; gap: 1.2cqw; padding: 3.4cqw 4cqw; }
.dk-b.typing i { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: #8e8e8e; animation: blink 1.2s infinite; }
.dk-b.typing i:nth-child(2) { animation-delay: .15s; } .dk-b.typing i:nth-child(3) { animation-delay: .3s; }
.dk-seen { align-self: flex-end; font-size: 3cqw; color: rgba(255,255,255,.6); margin-top: .4cqh; }
.dk-cap { font-size: 3.4cqw; color: rgba(255,255,255,.6); margin-top: 1cqh; align-self: flex-end; }
.dk-stamp { font-size: 3.2cqw; color: rgba(255,255,255,.6); font-weight: 600; }

/* people */
.dk-ring { width: 30cqw; height: 30cqw; border-radius: 50%; padding: 1.1cqw; background: linear-gradient(45deg, #fff, #fff); position: relative; flex: none; }
.dk-ring > img, .dk-ring > span { width: 100%; height: 100%; border-radius: 50%; border: 1.1cqw solid var(--sbg, #000); object-fit: cover; display: grid; place-items: center; background: #2a2a2a; font: 600 12cqw var(--ui); color: #fff; }
.dk-ring.cf { background: var(--green); }
.dk-ring.big { width: 42cqw; height: 42cqw; }
.dk-ring.big > span { font: 800 22cqw var(--display); }
.dk-ring .star { position: absolute; right: 2%; bottom: 4%; width: 26%; height: 26%; border-radius: 50%; background: var(--green); border: .9cqw solid var(--sbg, #000); display: grid; place-items: center; font-style: normal; font-size: 4.6cqw; color: #fff; }
.dk-handle { margin-top: 1.6cqh; font-size: 3.9cqw; color: rgba(255,255,255,.7); font-weight: 500; }
.dk-name { font: 800 19cqw/1 var(--display); margin-top: 1.8cqh; letter-spacing: -.01em; }
.dk-name.sm { font-size: 11cqw; font-style: normal; }
.dk-person { display: flex; flex-direction: column; align-items: center; }
.dk-pstats { display: flex; gap: 8cqw; margin-top: 2cqh; }
.dk-pstats b { display: block; font-size: 5.2cqw; font-weight: 700; }
.dk-pstats span { font-size: 3.4cqw; color: rgba(255,255,255,.75); }
/* Instagram Notes bubble, sitting above the profile photo */
.dk-note { position: relative; background: #262626; border-radius: 5cqw; padding: 2.4cqw 4.5cqw 2.2cqw; margin-bottom: 2.6cqh; font: 800 7.5cqw/1 var(--display); }
.dk-note small { display: block; font: 500 2.8cqw var(--ui); color: rgba(255,255,255,.6); margin-top: .8cqw; font-style: normal; }
.dk-note::after { content: ""; position: absolute; left: 30%; bottom: -2.2cqw; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: #262626; }
.dk-note::before { content: ""; position: absolute; left: 24%; bottom: -4.6cqw; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #262626; }
.dk-also { width: 100%; margin-top: 4cqh; display: flex; flex-direction: column; gap: 1.2cqh; }
.dk-also > div { display: grid; grid-template-columns: 9cqw 1fr; grid-template-rows: auto auto; text-align: left; align-items: center; column-gap: 2cqw; background: #161616; border-radius: 3.5cqw; padding: 2.2cqw 3.5cqw; }
.dk-also span { grid-row: span 2; font-size: 6cqw; }
.dk-also b { font-size: 3.8cqw; }
.dk-also small { font-size: 3.2cqw; color: rgba(255,255,255,.6); }
.dk-av { width: 10cqw; height: 10cqw; border-radius: 50%; background: #1b1b1b; color: var(--paper); display: grid; place-items: center; font: 800 5.6cqw var(--display); flex: none; }
.dk-av.cf { box-shadow: 0 0 0 .6cqw var(--paper), 0 0 0 1.2cqw var(--green); }

/* top 5 (paper) */
.card-top5, .card-year, .card-cf-likely { color: var(--paper-ink); }
.dk-list { width: 100%; margin-top: 3cqh; display: flex; flex-direction: column; gap: 1.6cqh; }
.dk-list .row { display: flex; align-items: center; gap: 3cqw; }
.dk-list .rk { width: 5cqw; font: 800 4.4cqw var(--display); color: rgba(0,0,0,.45); font-variant-numeric: tabular-nums; }
.dk-list .nm { flex: 1; text-align: left; }
.dk-list .nm b { font-size: 4.6cqw; }
.dk-list .bar { display: block; height: 1.1cqw; border-radius: 1cqw; background: rgba(0,0,0,.08); margin-top: 1cqw; overflow: hidden; }
.dk-list .bar i { display: block; height: 100%; width: var(--w); background: var(--paper-ink); border-radius: 1cqw; animation: grow .9s var(--d, 0s) cubic-bezier(.2,.8,.2,1) both; }
.dk-list .ct { font: 800 4cqw var(--display); font-variant-numeric: tabular-nums; }
@keyframes grow { from { width: 0; } }

/* word: big Notes bubble */
.dk-noteword { position: relative; margin: 2cqh 0 5cqh; }
.dk-noteword .bub { background: #fff; color: #111; border-radius: 9cqw; padding: 4cqw 8cqw 4.6cqw; font: 800 21cqw/1 var(--display); letter-spacing: -.02em; max-width: 86cqw; overflow-wrap: anywhere; }
.dk-noteword .tail { position: absolute; left: 22%; bottom: -3cqw; width: 5cqw; height: 5cqw; border-radius: 50%; background: #fff; }
.dk-noteword .tail::after { content: ""; position: absolute; left: -3.5cqw; bottom: -3.6cqw; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #fff; }

/* dialect stickers */
.dk-stk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; width: 100%; margin-top: 4cqh; }
.dk-stk .st { background: #fff; color: #111; border-radius: 4.5cqw; padding: 3.6cqw 1cqw 3cqw; transform: rotate(var(--r)); box-shadow: 0 2cqw 6cqw rgba(0,0,0,.4); }
.dk-stk small { display: block; font: 800 3cqw var(--display); letter-spacing: -.01em; color: #8e8e8e; }
.dk-stk b { display: block; font: 800 9cqw/1.15 var(--display); margin: 1.4cqw 0 .6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-stk span { font: 700 3.4cqw var(--ui); font-variant-numeric: tabular-nums; }

/* clock */
.dk-hours { width: 100%; height: 24cqh; display: flex; align-items: flex-end; gap: .9cqw; margin-top: 4cqh; }
.dk-hours i { flex: 1; height: var(--h); background: rgba(255,255,255,.28); border-radius: .8cqw .8cqw 0 0; animation: rise2 .8s both; transform-origin: bottom; }
.dk-hours i.nt { background: rgba(160,140,255,.55); }
.dk-hours i.pk { background: #fff; }
@keyframes rise2 { from { transform: scaleY(0); } }
.dk-axis { width: 100%; display: flex; justify-content: space-between; font: 700 3cqw var(--ui); color: rgba(255,255,255,.55); margin-top: 1cqh; }

/* who starts: poll sticker inside a card */
.dk-poll { width: 92%; max-width: none; margin-top: 1cqh; text-align: left; transform: rotate(-1.5deg); }
.dk-poll .q { font-size: 6cqw; }
.dk-poll .opt { height: 14cqw; }
.dk-poll .opt .lbl { font-size: 4.6cqw; }
.dk-poll .opt .pct { font-size: 6.2cqw; }

/* reactions */
.dk-react { position: relative; display: flex; justify-content: center; margin-bottom: 7cqh; }
.dk-react .dk-b { max-width: none; font-size: 4.8cqw; }
.dk-react .pill { position: absolute; left: 4cqw; bottom: -7cqw; background: #262626; border: .9cqw solid var(--sbg, #000); border-radius: 7cqw; padding: .6cqw 2.4cqw; font-size: 6.4cqw; line-height: 1.2; animation: pop .4s .6s both; }

/* reels */
.dk-reels { display: flex; gap: 2cqw; margin-bottom: 3cqh; }
.dk-reels .rl { width: 17cqw; height: 30cqw; border-radius: 3cqw; background: linear-gradient(160deg, #2a2a2a, #121212); border: 1px solid #333; transform: rotate(var(--r)); position: relative; display: grid; place-items: center; animation: drop .5s var(--d) both; }
.dk-reels .rl span { font-size: 8cqw; }
.dk-reels .rl i { position: absolute; left: 2cqw; bottom: 1.6cqw; font-size: 3cqw; font-style: normal; color: #fff; }

/* group avatars */
.dk-gav { display: flex; margin-bottom: 1cqh; }
.dk-gav span { position: relative; width: 17cqw; height: 17cqw; border-radius: 50%; border: 1cqw solid var(--sbg); background: #dbdbdb; overflow: hidden; margin-left: -4.5cqw; }
/* Instagram's default "no photo" silhouette */
.dk-gav span::before { content: ""; position: absolute; left: 50%; top: 22%; width: 34%; height: 34%; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.dk-gav span i { position: absolute; left: 50%; top: 62%; width: 70%; height: 60%; border-radius: 50% 50% 0 0; background: #fff; transform: translateX(-50%); }
.dk-gav span:first-child { margin-left: 0; }

/* likes grid */
.dk-grid { display: grid; grid-template-columns: repeat(3, 15cqw); gap: 1cqw; margin-bottom: 3cqh; }
.dk-grid i { aspect-ratio: 1; background: #1f1f1f; display: grid; place-items: center; animation: pop .4s var(--d) both; }
.dk-grid i:nth-child(odd) { background: #2a2a2a; }
.dk-grid .h { font-size: 8cqw; color: #ff3040; font-style: normal; animation: like .5s .9s cubic-bezier(.2,.9,.3,1.6) both; }

/* scroll phone */
.dk-phone { width: 22cqw; height: 40cqw; border-radius: 4cqw; border: .8cqw solid #fff; overflow: hidden; margin-bottom: 3cqh; position: relative; }
.dk-phone .scr { position: absolute; inset: 0; display: flex; flex-direction: column; animation: feed 2.4s linear infinite; }
.dk-phone .scr i { flex: none; height: 50%; border-bottom: .6cqw solid var(--sbg); background: hsl(calc(var(--i) * 50 + 200) 25% 30%); }
@keyframes feed { to { transform: translateY(-100%); } }

/* topics */
.dk-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; margin-top: 4cqh; }
.dk-topics span { padding: 2.2cqw 4cqw; border-radius: 6cqw; border: 1px solid rgba(255,255,255,.3); font-size: 4cqw; font-weight: 600; }
.dk-topics span:nth-child(3n+1) { background: #fff; color: #000; }

/* months */
.dk-months { width: 100%; height: 26cqh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.6cqw; align-items: end; margin-top: 4cqh; }
.dk-months div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 1cqw; }
.dk-months i { width: 100%; height: var(--h); background: rgba(0,0,0,.16); border-radius: 1cqw; animation: rise2 .8s both; transform-origin: bottom; }
.dk-months .pk i { background: var(--paper-ink); }
.dk-months span { font: 700 3cqw var(--ui); color: rgba(0,0,0,.5); }

/* receipts inside cards */
.dk-slip { width: 82cqw; background: var(--paper); color: var(--paper-ink); font: 3.4cqw/1.85 var(--mono); padding: 4cqw 5.5cqw 5cqw; text-align: left; transform: rotate(-1.2deg); box-shadow: 0 3cqw 9cqw rgba(0,0,0,.45);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 2cqw) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 3cqw 2cqw repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 2cqw) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 3cqw 2cqw repeat-x; }
.dk-slip.print { animation: print .9s var(--d, 0s) cubic-bezier(.2,.8,.2,1) both; }
.dk-slip .hd { text-align: center; font-weight: 600; letter-spacing: .2em; font-size: 4cqw; }
.dk-slip .sub { text-align: center; color: #6b665c; font-size: 2.9cqw; margin-bottom: 1.5cqw; }
.dk-slip .ln { display: flex; gap: 2cqw; }
.dk-slip .ln span:first-child { white-space: nowrap; }
.dk-slip .ln i { flex: 1; border-bottom: .45cqw dotted #b5ae9f; transform: translateY(-1.2cqw); min-width: 3cqw; }
.dk-slip .ln span:last-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46cqw; }
.dk-slip hr { border: 0; border-top: .45cqw dashed #b5ae9f; margin: 1.6cqw 0; }
.dk-slip .tot { display: flex; justify-content: space-between; gap: 3cqw; font-weight: 600; font-size: 3.7cqw; }
.dk-slip.big { font-size: 3.8cqw; }
.dk-slip.full { width: 86cqw; font-size: 3.6cqw; }
.dk-slip .bc { height: 9cqw; margin-top: 3cqw; background: repeating-linear-gradient(90deg, #1b1b1b 0 .5cqw, transparent .5cqw 1.2cqw, #1b1b1b 1.2cqw 2.2cqw, transparent 2.2cqw 2.6cqw, #1b1b1b 2.6cqw 2.9cqw, transparent 2.9cqw 4cqw); }
.dk-slip .ft { text-align: center; color: #6b665c; font-size: 2.9cqw; margin-top: 1.5cqw; }
.dk-intro { display: flex; flex-direction: column; align-items: center; }
.dk-intro .dk-ring { width: 24cqw; height: 24cqw; background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.dk-intro .dk-h { font-size: 13cqw; margin-top: 2.5cqh; }
.dk-intro .dk-slip { margin-top: 4cqh; }

/* personality */
.dk-vs { font-size: 3.7cqw; color: rgba(255,255,255,.7); margin-bottom: 2.6cqh; max-width: 80cqw; line-height: 1.4; }
.dk-vs b { color: #fff; }
.card-type .dk-ring { width: 26cqw; height: 26cqw; }
.dk-tname { font: 800 13cqw/.98 var(--display); margin-top: 2.4cqh; text-wrap: balance; }
.dk-code { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; width: 100%; margin-top: 3cqh; }
.dk-code > div { background: rgba(255,255,255,.08); border-radius: 3.5cqw; padding: 2.4cqw 1cqw; }
.dk-code > div.hit { box-shadow: inset 0 0 0 .5cqw var(--green); }
.dk-code b { display: block; font: 800 9cqw/1 var(--display); }
.dk-code span { display: block; font-size: 3cqw; font-weight: 700; margin-top: .6cqw; }
.dk-code small { display: block; font-size: 2.5cqw; line-height: 1.25; color: rgba(255,255,255,.6); margin-top: 1cqw; }

/* badges */
.dk-badges { width: 100%; display: flex; flex-direction: column; gap: 1.6cqh; margin-top: 4cqh; text-align: left; }
.dk-badges > div { display: flex; gap: 4cqw; align-items: center; background: rgba(255,255,255,.07); border-radius: 4cqw; padding: 3cqw 4cqw; }
.dk-badges .e { font-size: 9cqw; }
.dk-badges b { display: block; font: 800 6.5cqw/1.05 var(--display); }
.dk-badges small { font-size: 3.4cqw; color: rgba(255,255,255,.7); }

/* tip */
.dk-tip { display: flex; flex-direction: column; align-items: center; }
.dk-tip .cup { font-size: 24cqw; margin-bottom: 2cqh; }
.dk-tip p { font-size: 4.3cqw; line-height: 1.45; color: rgba(255,255,255,.82); margin-top: 2.4cqh; max-width: 82cqw; }
.dk-tip p b { color: #fff; }
a.btn { display: block; text-decoration: none; }

/* light (paper) story cards: dark chrome */
.story.light .story-head b, .story.light .story-head small, .story.light .story-head .x { color: var(--paper-ink); }
.story.light .story-head small { opacity: .6; }
.story.light .story-head .avatar.mark { background: var(--paper-ink); color: var(--paper); }
.story.light .bars div { background: rgba(0,0,0,.18); }
.story.light .bars div i, .story.light .bars div.on i { background: var(--paper-ink); }
.story.light .bars div.on { background: var(--paper-ink); }
.story.light .story-foot .hint { color: rgba(0,0,0,.6); border-color: rgba(0,0,0,.25); }
.story.light::after { opacity: .08; }

/* ---------- export guide v2: no tap-through, one obvious button ---------- */
.guide .story-body { justify-content: flex-start; padding: 3vh 22px 170px; overflow-y: auto; scrollbar-width: none; }
.guide .story-body::-webkit-scrollbar { display: none; }
.guide .g-text { margin-top: 12px; }
.ig-cta { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 340px; margin-top: 26px; padding: 16px 18px; border-radius: 20px; background: #fff; color: #000; text-decoration: none; text-align: left;
  box-shadow: 0 0 0 0 rgba(255,255,255,.55), 0 18px 40px rgba(0,0,0,.35); animation: ctaPulse 2.2s ease-out infinite, drop .5s both; }
.ig-cta:active { transform: scale(.98); }
.ig-cta-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; background: #000; display: grid; place-items: center; }
.ig-cta-ic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; }
.ig-cta-ic svg .dot { fill: #fff; stroke: none; }
.ig-cta-t { flex: 1; display: flex; flex-direction: column; }
.ig-cta-t b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.ig-cta-t small { font-size: 13px; color: #555; margin-top: 2px; }
.ig-cta-t u { text-decoration: none; font-weight: 700; color: #000; }
.ig-cta-arr { font-size: 22px; font-weight: 700; }
@keyframes ctaPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5), 0 18px 40px rgba(0,0,0,.35); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0), 0 18px 40px rgba(0,0,0,.35); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0), 0 18px 40px rgba(0,0,0,.35); } }
.g-see { margin-top: 30px; font: 800 13px/1.2 var(--display); letter-spacing: -.01em; text-transform: none; color: rgba(255,255,255,.6); }
.mk.sm { margin-top: 10px; transform: rotate(-1deg) scale(.92); width: 100%; max-width: 300px; }
.guide .mk.sm { animation: none; }
.g-list { list-style: none; counter-reset: g; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 330px; text-align: left; }
.g-list li { counter-increment: g; display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.38; color: rgba(255,255,255,.88); }
.g-list li::before { content: counter(g); flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font: 800 15px var(--display); transform: translateY(4px); }
.g-list b { color: #fff; }
.g-link { display: inline-block; margin-top: 18px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.g-back { position: absolute; left: 10px; top: calc(var(--safe-top) + 62px); z-index: 4; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); padding: 6px 8px; }
.guide .story-body { padding-top: calc(3vh + 22px); }

/* iPhone path: Instagram settings rows */
.path, .pick { width: 100%; max-width: 340px; margin-top: 18px; text-align: left; }
.path-h { font: 800 13px/1.2 var(--display); letter-spacing: -.01em; text-transform: none; color: rgba(255,255,255,.6); margin: 0 0 8px 4px; }
.path { background: #fff; color: #111; border-radius: 16px; padding: 10px 6px 6px; }
.path .path-h { color: #8e8e8e; margin-left: 10px; }
.path-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 10px; border-top: 1px solid #efefef; counter-increment: p; }
.path { counter-reset: p; }
.path-row span { font-size: 15px; font-weight: 600; display: flex; flex-direction: column; }
.path-row span::before { content: counter(p) ". "; color: #8e8e8e; font-weight: 500; display: none; }
.path-row small { font-size: 12px; font-weight: 400; color: #8e8e8e; margin-top: 1px; }
.path-row i { font-style: normal; color: #c7c7c7; font-size: 22px; line-height: 1; }
.pick { background: rgba(255,255,255,.08); border-radius: 16px; padding: 12px 14px; }
.pick .path-h { margin-left: 0; }
.pick-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; border-top: 1px solid rgba(255,255,255,.1); }
.pick-row b { font-weight: 800; }
.pick-row.hot b { background: #fff; color: #000; padding: 1px 8px; border-radius: 6px; }
.pick-go { padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; color: rgba(255,255,255,.85); }
.g-link.sm { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); max-width: 320px; }
.g-text.sm { font-size: 13px; color: rgba(255,255,255,.65); }
.guide .ig-cta { margin-top: 20px; }
.ring-s > span svg { width: 26px; height: 26px; stroke: var(--paper); stroke-width: 1.6; fill: none; }
.pick-note { font-size: 12px; color: rgba(255,255,255,.6); margin: -3px 0 6px; }

/* annotated real screenshot of Instagram's Customize information list */
.ticks { width: 100%; max-width: 340px; margin-top: 18px; text-align: left; }
.ticks img { display: block; width: 100%; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ticks-note { font-size: 12.5px; color: rgba(255,255,255,.6); margin: 8px 4px 0; text-align: center; }
.pick-go.solo { margin-top: 14px; border: 0; padding: 0; font-size: 15px; text-align: center; }

/* fast story tapping: no double-tap zoom, no text selection or callouts while tapping */
html, body, #app { touch-action: manipulation; }
.story, .story * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.story input, .story textarea { -webkit-user-select: text; user-select: text; }

/* loading screen: avatar in IG's dashed "loading" story ring, a running tally, their words drifting up */
.printing .floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask: linear-gradient(to top, transparent 0, #000 14%, #000 62%, transparent 92%);
          mask: linear-gradient(to top, transparent 0, #000 14%, #000 62%, transparent 92%); }
.printing > :not(.floaters) { position: relative; z-index: 1; }
.printing .up-note { position: absolute; bottom: calc(28px + var(--safe-bottom)); left: 0; right: 0; text-align: center; }
.ld { display: flex; flex-direction: column; align-items: center; position: relative; }
.ld::before { content: ""; position: absolute; inset: -40px -70px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, #000 72%, rgba(0,0,0,0)); }   /* words drift *behind* the content, never through it */
.ld-ring { position: relative; width: 132px; height: 132px; animation: drop .5s both; transition: transform .38s cubic-bezier(.3,0,.2,1), opacity .3s; }
.ld-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: ldSpin 1.6s linear infinite; }
.ld-ring .dash { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8.5 6.42; transition: stroke-dasharray .6s cubic-bezier(.3,0,.2,1), stroke .4s, stroke-width .4s; }
.ld-ring.done svg { animation-duration: 3.2s; animation-iteration-count: 1; }
.ld-ring.done .dash { stroke-dasharray: 358.2 0; stroke: var(--green); stroke-width: 3.5; }
.ld-in { position: absolute; inset: 9px; border-radius: 50%; overflow: hidden; background: #262626; display: grid; place-items: center; }
.ld-in img { width: 100%; height: 100%; object-fit: cover; }
.ld-in span { font: 800 54px var(--display); color: var(--paper); }
.ld-ring.done .ld-in { animation: ldBeat .5s .15s both; }
@keyframes ldSpin { to { transform: rotate(1turn); } }
@keyframes ldBeat { 40% { transform: scale(1.06); } }
.ld-handle { margin-top: 14px; font-weight: 600; font-size: 14px; }
.ld-tally { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 76px; }
.ld-n { font: 800 46px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ld-n.pop { animation: ldIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ldIn { from { opacity: 0; transform: translateY(8px); } }
.ld-what { font: 600 14px var(--ui); color: var(--muted); }
.ld-ticks { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 300px; min-height: 52px; align-content: flex-start; }
.ld-ticks span { font: 600 12px var(--ui); color: var(--muted); padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); animation: ldIn .3s both; }
.ld-ticks span::before { content: "✓ "; color: var(--green); }
.printing.open .ld-ring { transform: translateY(-70px) scale(.66); opacity: 0; transition-duration: .38s, .3s; }   /* settles toward the deck's own intro ring, then the story takes over */
.printing.open .ld-handle, .printing.open .ld-tally, .printing.open .ld-ticks, .printing.open .up-note, .printing.open .floaters { opacity: 0; transition: opacity .25s; }
/* floaters: names as DM-bubble pills, words as plain serif, emoji bare (like Live reactions) */
.fl { position: absolute; bottom: 0; white-space: nowrap; opacity: 0; will-change: transform, opacity;
  animation: flUp var(--dur, 4s) cubic-bezier(.25,.6,.35,1) forwards; }
.fl-name { font: 600 15px var(--ui); background: #262626; color: #fff; padding: 7px 13px; border-radius: 18px; }
.fl-word { font: 800 22px var(--display); color: #fff; }
.fl-emo { font-size: 28px; }
.fl.d1 { scale: .82; --peak: .55; }
.fl.d2 { scale: .64; --peak: .3; filter: blur(.6px); }
.fl.d0 { --peak: .95; }
.fl-name { max-width: 30%; overflow: hidden; text-overflow: ellipsis; }
@keyframes flUp {
  0% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: var(--peak, .9); }
  35% { transform: translate(var(--sway), -28vh); }
  65% { transform: translate(calc(var(--sway) * -.6), -52vh); opacity: calc(var(--peak, .9) * .8); }
  100% { opacity: 0; transform: translate(var(--sway), -78vh); }
}
@media (prefers-reduced-motion: reduce) { .ld-ring svg { animation: none; } }

/* ---------- close friends only (invite-to-unlock) ---------- */
.deck .card-vault { bottom: calc(var(--safe-bottom) + 140px); justify-content: flex-start; padding-top: 2cqh; }
.cf-pill { display: inline-flex; align-items: center; gap: 1.5cqw; background: var(--green); color: #fff; font: 700 3.4cqw var(--ui); padding: 1.6cqw 3.6cqw; border-radius: 99px; margin-bottom: 3cqh; }
.story-head .cf-badge { margin-left: 4px; background: var(--green); color: #fff; font: 700 11.5px var(--ui); padding: 3px 9px; border-radius: 99px; }
.story-head .cf-badge + .x { margin-left: auto; }
.cf-locked { width: 100%; margin-top: 3.5cqh; display: flex; flex-direction: column; gap: 1.6cqh; text-align: left; }
.cf-locked > div { display: flex; align-items: center; gap: 3cqw; padding: 3.2cqw 3.6cqw; border-radius: 4cqw; background: #121212; border: 1px solid #262626; }
.cf-locked .st { width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: 3.6cqw; flex: none; }
.cf-locked b { flex: 1; font-size: 4.1cqw; font-weight: 600; }
.cf-locked .blur { font: 600 3.6cqw var(--ui); color: #a8a8a8; filter: blur(3px); }
.cf-locked .lk { font-size: 3.8cqw; opacity: .8; }
.cf-prog { margin-top: 4cqh; display: flex; align-items: center; gap: 3cqw; }
.cf-prog .slots { display: flex; }
.cf-prog .slots i { width: 9cqw; height: 9cqw; border-radius: 50%; border: 2px dashed #555; background: #000; margin-left: -1.6cqw; transition: all .4s; }
.cf-prog .slots i:first-child { margin-left: 0; }
.cf-prog .slots i.on { border: 2px solid var(--green); background: radial-gradient(circle, #2b2b2b 58%, #000 60%); box-shadow: 0 0 0 2px #000; }
.cf-prog .slots i.on::after { content: "★"; display: grid; place-items: center; height: 100%; color: var(--green); font-size: 3.6cqw; }
.cf-prog .txt { font: 600 3.8cqw var(--ui); color: #a8a8a8; } .cf-prog .txt b { color: #fff; }
.cf-how { margin-top: 2.2cqh; font-size: 3.5cqw; line-height: 1.4; color: rgba(255,255,255,.6); max-width: 80cqw; }
.btn.green { background: var(--green); color: #fff; }
.btn small { font-weight: 500; opacity: .7; }
/* unlocked cards */
.deck .card-cf-unfollow { bottom: calc(var(--safe-bottom) + 90px); }
.card-cf-unfollow .dk-num { font-size: 22cqw; }
.cf-list { width: 100%; margin-top: 3cqh; display: flex; flex-direction: column; gap: 1.4cqh; text-align: left; }
.cf-list > div { display: flex; align-items: center; gap: 3cqw; }
.cf-list b { font-size: 4.2cqw; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-list .dk-av { width: 9cqw; height: 9cqw; font-size: 4.6cqw; }
.cf-list .more { font: 600 3.6cqw var(--ui); color: #a8a8a8; padding-left: 12cqw; }
.cf-sheet { position: absolute; inset: 12% 0 0; z-index: 6; background: #262626; border-radius: 14px 14px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--safe-bottom); }
.cf-sheet.on { transform: none; }
.cf-sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: #555; margin: 8px auto 4px; }
.cf-sheet .top { display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px; }
.cf-sheet .top b { font-size: 16px; } .cf-sheet .top span { color: #a8a8a8; font-size: 14px; }
.cf-sheet .top .x { margin-left: auto; font-size: 26px; line-height: 1; }
.cf-sheet input { margin: 0 16px 8px; padding: 9px 12px; border-radius: 10px; border: 0; background: #363636; color: #fff; font-size: 15px; outline: none; -webkit-user-select: text; user-select: text; }
.cf-sheet .rows { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px 20px; }
.cf-sheet a { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #fff; text-decoration: none; }
.cf-sheet a b { flex: 1; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-sheet a i { font-style: normal; font-size: 14px; font-weight: 600; background: #363636; padding: 7px 16px; border-radius: 8px; }
.cf-sheet .dk-av { width: 44px; height: 44px; font-size: 22px; background: #1b1b1b; }
.cf-why { margin-top: 3cqh; display: flex; flex-direction: column; gap: 1.4cqh; text-align: left; }
.cf-why div { font-size: 3.9cqw; display: flex; gap: 2.4cqw; align-items: baseline; }
.cf-why span { color: var(--green); font-weight: 700; }
.dk-list .nm small { display: block; font-size: 3.1cqw; color: rgba(0,0,0,.55); margin-bottom: .4cqh; }
.card-cf-likely .dk-list { gap: 2.2cqh; display: flex; flex-direction: column; width: 100%; }
.card-cf-likely .dk-av { background: var(--paper-ink); }
.card-cf-likely .ct { font: 700 3.4cqw var(--ui); color: rgba(0,0,0,.55); text-align: right; max-width: 30cqw; }
.story.light .story-head .cf-badge { color: #fff; }
.ticks .path-h.t2 { margin-top: 16px; }
.ticks .pick-row { margin-top: 8px; }

/* ---------- explore more from receipts (IG Explore mosaic) ---------- */
.explore, .follow { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; container-type: inline-size; }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: calc((100cqw - 4px) / 3 * 4 / 3); gap: 2px; margin-top: 6px; }
.ex-tile { position: relative; overflow: hidden; background: #1a1a1a; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; padding: 10px; border-radius: 0; }
.ex-tile.big { grid-column: span 2; grid-row: span 2; background: #262626; justify-content: space-between; padding: 14px; }
.ex-tile.cf { background: #0f3a2c; }
.ex-cap b { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.ex-tile.big .ex-cap b { font-size: 19px; letter-spacing: -.01em; }
.ex-cap small { display: block; margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.7); }
.ex-ic { position: absolute; top: 8px; right: 9px; font-size: 14px; }
.ex-star { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: 13px; }
.ex-new { position: absolute; top: 12px; right: 12px; background: #fff; color: #000; font: 700 11px var(--ui); padding: 3px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.ex-slip { align-self: center; margin-top: 18px; width: 78%; background: var(--paper); color: var(--paper-ink); font: 11px/1.8 var(--mono); padding: 14px 14px 12px; transform: rotate(-2deg); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.ex-slip .hd { text-align: center; font-weight: 600; letter-spacing: .18em; margin-bottom: 6px; }
.ex-slip .ln { display: flex; gap: 6px; } .ex-slip .ln i { flex: 1; border-bottom: 1.5px dotted #b5ae9f; transform: translateY(-5px); }
.ex-slip .ln span:last-child { font-weight: 600; }
.ex-foot { padding: 18px 20px; font-size: 13px; color: #a8a8a8; text-align: center; }
.pick-note { font-size: 12.5px; color: rgba(255,255,255,.6); margin: 2px 0 8px; }
.pick .path-h.t2 { margin-top: 14px; }
/* follow audit result: IG "Following" list */
.fo-sum { display: flex; justify-content: space-around; padding: 10px 12px 14px; }
.fo-sum div { display: flex; flex-direction: column; align-items: center; }
.fo-sum b { font-size: 17px; font-weight: 700; } .fo-sum span { font-size: 13px; color: #a8a8a8; }
.fo-sum .hot b { color: #ff3b5c; }
.fo-tabs { display: flex; border-bottom: 1px solid #262626; }
.fo-tabs button { flex: 1; padding: 11px 4px; font-size: 13.5px; font-weight: 600; color: #a8a8a8; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.fo-tabs button.on { color: #fff; border-color: #fff; }
.fo-tabs small { font-weight: 500; opacity: .8; }
.fo-search { padding: 10px 16px 4px; }
.fo-search input { width: 100%; padding: 9px 12px; border-radius: 10px; border: 0; background: #262626; color: #fff; font-size: 15px; outline: none; -webkit-user-select: text; user-select: text; }
.fo-rows { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 16px 8px; }
.fo-rows a { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #fff; text-decoration: none; }
.fo-rows b { flex: 1; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-rows i { font-style: normal; font-size: 14px; font-weight: 600; background: #363636; padding: 7px 16px; border-radius: 8px; }
.fo-av { width: 44px; height: 44px; border-radius: 50%; background: #1b1b1b; border: 1px solid #262626; display: grid; place-items: center; font: 800 22px var(--display); color: var(--paper); flex: none; }
.fo-empty { padding: 40px 10px; text-align: center; color: #a8a8a8; font-size: 14px; }
.fo-note { padding: 10px 20px calc(14px + var(--safe-bottom)); font-size: 12px; color: #737373; text-align: center; border-top: 1px solid #1a1a1a; }
.ex-tile.paper { background: #f4f4f2; color: #000; }
.ex-tile.paper .ex-cap b { text-shadow: none; } .ex-tile.paper .ex-cap small { color: rgba(0,0,0,.55); }
.ex-tile.ink { background: #5b3cff; }
.ex-q { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font: 800 64px/1 var(--display); color: var(--paper-ink); opacity: .85; }
.ex-mark { position: absolute; top: 12px; left: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--paper-ink); display: grid; place-items: center; font: 800 18px var(--display); }

/* ---------- IG-fidelity pass: profile entry points, posts, highlights, reels, story nav ---------- */
.intro-card { display: block; width: 100%; font: inherit; color: inherit; }
.intro-card .intro-av { display: block; width: max-content; margin: 0 auto 12px; }
.intro-card:active { opacity: .8; }
.row.them .avatar { cursor: pointer; }
.dm-head .who, .dm-head .icons { cursor: pointer; }
/* grid covers: big type so a 1/3-width tile reads on a phone (and in the 420px desktop frame) */
.pf-grid { gap: 2px; }
.tile .multi { position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.tile .multi svg { width: 100%; height: 100%; }
.tile { container-type: inline-size; }   /* the tile is the container: a container's own cqw padding would shrink its content box */
.cv { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 9cqw; text-align: left; }
.cv .t { font: 700 12.5cqw/1.05 var(--ui); letter-spacing: -.02em; }
.cv .t em { font-style: normal; color: var(--acc, inherit); }
.cv .n { font: 800 62cqw/0.8 var(--display); letter-spacing: -.03em; }
.cv-hero { background: #000; color: #fff; justify-content: space-between; padding-top: 22cqw; }
.cv-hero .t { font: 800 24cqw/0.9 var(--display); }
.cv-hero .mini-slip { background: var(--paper); color: var(--paper-ink); font: 600 9cqw/1.6 var(--mono); padding: 4cqw 5cqw; transform: rotate(-2deg); }
.cv-hero .mini-slip div { display: flex; gap: 2cqw; } .cv-hero .mini-slip i { flex: 1; border-bottom: 1cqw dotted #b5ae9f; transform: translateY(-2cqw); }
.cv-list { background: #1f5bff; color: #fff; }
.cv-paper { background: #f4f4f2; color: #000; }
.cv-paper .t, .cv-list .t { margin-top: 4cqw; }
/* carousel posts */
.post-media .track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.post-media .track::-webkit-scrollbar { display: none; }
.post-media .slide { position: relative; flex: none; width: 100%; height: 100%; scroll-snap-align: start; }
.post-media .count { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 12px; z-index: 2; }
.post-acts { position: relative; }
.post-acts .dots { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 4px; }
.post-acts .dots i { width: 6px; height: 6px; border-radius: 50%; background: #555; } .post-acts .dots i.on { background: #0095f6; }
/* screens you can edge-swipe back from */
.profile-sheet, .pf-feed { touch-action: pan-y; box-shadow: -10px 0 30px rgba(0,0,0,.5); }
/* reels tab: 9:16 tiles */
.pf-grid.reels .tile { aspect-ratio: 9 / 16; }
.tile.reel { background: var(--bg); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; padding: 10px; container-type: inline-size; }
.tile.reel .rk { font: 800 9cqw/1.2 var(--display); letter-spacing: -.01em; text-transform: none; opacity: .75; margin-bottom: 4cqw; }
.tile.reel .rt { font: 800 17cqw/1 var(--display); }
.tile.reel .rp { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; }
.tile.reel .rp svg { width: 100%; height: 100%; }
/* highlight viewer: a story on top of the profile */
.hl-view { position: absolute; inset: 0; z-index: 40; animation: hlIn .22s cubic-bezier(.2,.8,.2,1) both; }
.hl-view.out { animation: hlOut .2s ease-in both; }
@keyframes hlIn { from { transform: scale(.92); opacity: 0; } }
@keyframes hlOut { to { transform: translateY(40px) scale(.94); opacity: 0; } }
.hl-body { position: absolute; inset: calc(var(--safe-top) + 70px) 0 calc(var(--safe-bottom) + 40px); container-type: size; display: flex; z-index: 1; pointer-events: none; }
.hlf { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 9cqw; color: #fff; }
.hlf.center { align-items: center; text-align: center; }
.hlf.light, .hl-view.light .story-head b, .hl-view.light .story-head .x { color: var(--paper-ink); }
.hl-view.light .story-head small { color: rgba(0,0,0,.55); }
.hl-view.light .bars div { background: rgba(0,0,0,.18); } .hl-view.light .bars div i, .hl-view.light .bars div.on { background: var(--paper-ink); }
.hlf .k { font: 800 4.6cqw/1.2 var(--display); letter-spacing: -.01em; text-transform: none; opacity: .75; margin-bottom: 4cqh; }
.hlf .t { font: 800 12cqw/1 var(--display); letter-spacing: -.01em; }
.hlf .t em { font-style: normal; color: var(--acc, inherit); }
.hlf .q { font: 800 13cqw/1 var(--display); margin-bottom: 3cqh; }
.hlf p { margin-top: 3cqh; font-size: 4.6cqw; line-height: 1.4; opacity: .85; max-width: 80cqw; }
.hlf .step { width: 14cqw; height: 14cqw; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font: 800 8cqw var(--display); margin-bottom: 4cqh; }
.hlf .pfp { width: 40cqw; height: 40cqw; border-radius: 50%; overflow: hidden; background: #111; color: var(--paper); display: grid; place-items: center; font: 800 20cqw var(--display); margin-bottom: 5cqh; box-shadow: 0 0 0 1.4cqw #e9e4d8, 0 0 0 2.4cqw var(--green); }
.hlf .pfp img { width: 100%; height: 100%; object-fit: cover; }
/* desktop ‹ › story arrows (Instagram web); hidden on touch */
.nav-chev { display: none; }
@media (hover: hover) and (pointer: fine) {
  .story .nav-chev { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.85); color: #000; font: 600 22px/1 var(--ui); padding-bottom: 3px; opacity: .75; transition: opacity .15s; }
  .story .nav-chev:hover { opacity: 1; }
  .story .nav-chev.l { left: 8px; } .story .nav-chev.r { right: 8px; }
}
.pf-grid[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .story .nav-chev { width: 28px; height: 28px; font-size: 19px; opacity: 0; }
  .story:hover .nav-chev { opacity: .7; }
  .story .nav-chev.l { left: 4px; } .story .nav-chev.r { right: 4px; }
}

/* ghost report + compatibility (close friends) */
.cf-ghost { width: 100%; margin-top: 3.5cqh; display: flex; flex-direction: column; gap: 2cqh; text-align: left; }
.cf-ghost > div { display: flex; align-items: center; gap: 3cqw; padding: 3.4cqw; border-radius: 4cqw; background: #262626; }
.cf-ghost .e { font-size: 6cqw; }
.cf-ghost > div > div { flex: 1; min-width: 0; }
.cf-ghost small { display: block; font-size: 3.2cqw; color: #a8a8a8; } .cf-ghost b { font-size: 5cqw; }
.cf-ghost .v { font: 800 4cqw var(--display); font-variant-numeric: tabular-nums; }
.cf-pair { display: flex; align-items: center; gap: 3cqw; margin-bottom: 2cqh; }
.cf-pair .dk-ring { width: 20cqw; height: 20cqw; font-size: 9cqw; }
.cf-pair .dk-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cf-pair i { font: 800 8cqw var(--display); opacity: .7; }
.card-cf-compat .dk-num small { font-size: .45em; }

/* audit fixes */
.g-back { background: var(--sbg, #000); border-radius: 99px; padding: 6px 12px 6px 8px; box-shadow: 0 0 0 6px var(--sbg, #000); }
.pf-row { padding-top: 52px; }
.pf-note { bottom: calc(100% - 10px); }

/* guide screens scroll: .story .story-body is pointer-events:none (for story tap zones), which stops
   iOS Safari from scrolling it. Guides have no tap zones, so give the scroller its touches back. */
.guide .story-body { pointer-events: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* solid footer behind the guide buttons so scrolled content never shows through them */
.guide .r-actions { bottom: 0; padding: 30px 16px calc(var(--safe-bottom) + 16px); background: linear-gradient(180deg, transparent 0, var(--sbg, #000) 26px); pointer-events: none; }
.guide .r-actions > * { pointer-events: auto; }
/* "more below" cue, shown only while there is unseen content under the footer */
.g-more { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bottom) + 92px); z-index: 4; display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600; color: #fff; transition: opacity .2s; animation: gmore 1.8s ease-in-out infinite; }
.g-more.off { opacity: 0; pointer-events: none; }
@keyframes gmore { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 4px); } }
@media (prefers-reduced-motion: reduce) { .g-more { animation: none; } }

/* password heads-up / "skip the email" notes on the guide screens */
.pw { display: flex; gap: 11px; align-items: flex-start; width: 100%; max-width: 340px; margin-top: 16px; padding: 11px 13px; border-radius: 14px; background: rgba(255,255,255,.09); text-align: left; }
.pw-ic { font-size: 19px; line-height: 1.2; flex: none; }
.pw b { display: block; font-size: 14.5px; font-weight: 700; }
.pw small { display: block; font-size: 13px; line-height: 1.38; color: rgba(255,255,255,.75); margin-top: 2px; }
.pw a, .g-text a, .g-list a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.5); }
.pw.warn { background: rgba(255,214,10,.12); box-shadow: inset 0 0 0 1px rgba(255,214,10,.35); }
.guide .pw + .ig-cta { margin-top: 14px; }
.guide .ig-cta + .pw { margin-top: 14px; }

/* =================== deck v2: Spotify-Wrapped pacing on Instagram's look =================== */
/* faces: real profile photos when found, else the initial */
.dk-ring > span > img, .dk-av > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.dk-av { overflow: hidden; }
.dk-ring.night { width: 26cqw; height: 26cqw; margin-bottom: 1.4cqh; background: #a08cff; }
.dk-ring.night > span { font: 800 13cqw var(--display); }
/* #1 (and the 3am bestie): the photo comes into focus */
.dk-ring.focus { animation: ringIn .7s .1s cubic-bezier(.2,.9,.3,1.15) both; }
.dk-ring.focus > span { animation: focusIn 1.4s .25s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ringIn { from { transform: scale(.6); opacity: 0; } }
@keyframes focusIn { 0% { filter: blur(16px) saturate(.3); transform: scale(.86); } 60% { filter: blur(5px) saturate(.7); } 100% { filter: none; transform: none; } }
/* hold-to-pause pauses the animations too */
.story.held .dk *, .story.held .dk *::after, .story.held .dk *::before { animation-play-state: paused !important; }

/* the race for #1 */
.card-race, .card-days { color: var(--paper-ink); }
.card-race .dk-k, .card-days .dk-k { color: rgba(0,0,0,.55); }
.dk-race { position: relative; width: 100%; height: 64cqw; margin-top: 9cqw; }
.dk-race .mo { position: absolute; right: 0; top: -8cqw; font: 800 4.4cqw/1 var(--display); color: rgba(0,0,0,.4); }
.dk-race .rr { position: absolute; left: 0; right: 0; top: 0; height: 11cqw; display: flex; align-items: center; gap: 3cqw; transform: translateY(calc(var(--y) * 12.8cqw)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.dk-race .rk { width: 5cqw; font: 800 4.4cqw var(--display); color: rgba(0,0,0,.45); text-align: left; font-variant-numeric: tabular-nums; }
.dk-race .nm { flex: 1; text-align: left; min-width: 0; }
.dk-race .nm b { font-size: 4.6cqw; }
.dk-race .bar { display: block; height: 1.3cqw; border-radius: 1cqw; background: rgba(0,0,0,.08); margin-top: 1cqw; overflow: hidden; }
.dk-race .bar i { display: block; height: 100%; width: var(--w); background: var(--paper-ink); border-radius: 1cqw; }
.dk-race.live .bar i { transition: width .25s linear; }
.dk-race .rr[style*="--y:0"] .bar i, .dk-race .rr[style*="--y: 0"] .bar i { background: var(--green); }
.dk-race .ct { font: 800 4cqw var(--display); min-width: 12cqw; text-align: right; font-variant-numeric: tabular-nums; }
.dk-race .dk-av { width: 10cqw; height: 10cqw; }

/* word of the year: the word floods the screen, then one settles */
.deck .card-word { overflow: hidden; }
.dk-spam { position: absolute; inset: -6cqh -2cqw; pointer-events: none; }
.dk-spam span { position: absolute; left: var(--x); top: var(--y); font: 800 calc(10cqw * var(--s)) / 1 var(--display); color: #fff; white-space: nowrap; transform: translate(-50%, -50%) rotate(var(--r)); opacity: 0; animation: spam 1.75s var(--t) cubic-bezier(.2,.9,.3,1) both; }
@keyframes spam { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(.3); } 14% { opacity: .95; transform: translate(-50%, -50%) rotate(var(--r)) scale(1.06); } 62% { opacity: .8; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(.92); } }
.dk-noteword.settle { animation: settle .75s 1.35s cubic-bezier(.2,1.35,.35,1) both; }
@keyframes settle { from { opacity: 0; transform: scale(2.3) rotate(-7deg); } }
.still .dk-spam { display: none; }

/* DM genres */
.dk-mix { display: flex; gap: .7cqw; width: 100%; height: 10cqw; margin-top: 4cqh; border-radius: 3cqw; overflow: hidden; }
.dk-mix i { width: var(--w); flex: none; animation: grow .8s var(--d) cubic-bezier(.2,.8,.2,1) both; }
.dk-mix i:last-child { flex: 1; }
.k0 { background: var(--green); } .k1 { background: #f5f5f5; } .k2 { background: #9a9a9a; } .k3 { background: #5c5c5c; } .k4 { background: #383838; }
.dk-mixl { width: 100%; margin-top: 3cqh; display: flex; flex-direction: column; gap: 1.2cqh; }
.dk-mixl > div { display: flex; align-items: center; gap: 3cqw; padding-bottom: 1.2cqh; border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; }
.dk-mixl i { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; flex: none; }
.dk-mixl span { flex: 1; font-size: 4.3cqw; font-weight: 600; }
.dk-mixl b { font: 800 6.4cqw/1 var(--display); }
.dk-mixl small { width: 15cqw; text-align: right; font: 600 3.4cqw var(--ui); color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }

/* reply speed: you're typing… */
/* the typing bubble and the reply share one spot, like Instagram swapping "…" for the message */
.dk-thread .slot { display: grid; justify-items: end; align-self: stretch; }
.dk-thread .slot > * { grid-area: 1 / 1; }
.dk-thread.typed .tp { animation: typing 1.5s .4s both; }
@keyframes typing { 0% { opacity: 0; transform: scale(.7); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
.still .dk-thread.typed .tp { display: none; }

/* double text: bubbles pile up, "Delivered", their typing dots tease, then nothing */
.dk-thread.stack { gap: .5cqh; margin: 1cqh 0 3cqh; }
.dk-thread.stack .dt { animation: pop .32s var(--t) cubic-bezier(.2,.9,.3,1.3) both; }
.dk-thread.stack .fake { animation: fake 1.2s 2.4s both; }
@keyframes fake { 0% { opacity: 0; transform: scale(.7); } 18%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.still .dk-thread.stack .fake { opacity: 0; }

/* reels fly in and pile up */
.dk-pile { position: relative; width: 44cqw; height: 42cqw; margin-bottom: 2cqh; }
.dk-pile .rl { position: absolute; left: 50%; top: 0; width: 21cqw; height: 37cqw; margin-left: -10.5cqw; border-radius: 3cqw; background: linear-gradient(160deg, #2c2c2c, #111); border: 1px solid #3a3a3a; display: grid; place-items: center; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.5);
  transform: translateX(var(--x)) rotate(var(--r)); animation: fly .55s var(--t) cubic-bezier(.2,.9,.3,1.1) both; }
.dk-pile .rl span { font-size: 9cqw; }
.dk-pile .rl i { position: absolute; left: 2cqw; bottom: 1.6cqw; font-size: 3cqw; font-style: normal; }
@keyframes fly { from { opacity: 0; transform: translate(110cqw, -20cqw) rotate(40deg); } }
.dk-pile .seen { position: absolute; right: -2cqw; bottom: -1cqw; font-size: 3.2cqw; color: rgba(255,255,255,.65); animation: rise .4s 1.35s both; }
.dk-facts > div.wf { align-items: center; }
.dk-facts .wf .dk-av { width: 9cqw; height: 9cqw; font-size: 4.6cqw; }
.dk-facts .wf span b { font: 700 3.7cqw var(--ui); min-width: 0; }

/* the rapid round: four quick panels, its own mini progress bars */
.dk-rr { position: relative; width: 100%; height: 56cqh; }
.dk-rr .pn { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; animation: rrIn var(--p) calc(var(--i) * var(--p)) both; }
.dk-rr .pn.last { animation-name: rrLast; }
@keyframes rrIn { 0% { opacity: 0; transform: translateY(3cqh) scale(.97); } 9%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-3cqh); } }
@keyframes rrLast { 0% { opacity: 0; transform: translateY(3cqh) scale(.97); } 9%, 100% { opacity: 1; transform: none; } }
.dk-rr .k { font: 800 5cqw/1.2 var(--display); letter-spacing: -.01em; text-transform: none; color: rgba(255,255,255,.8); margin-bottom: 2cqh; }
.dk-rr .big { font: 800 25cqw/.9 var(--display); letter-spacing: -.02em; }
.dk-rr .gname { font: 800 12cqw/1 var(--display); text-wrap: balance; }
.dk-rr .s { font-size: 4.2cqw; line-height: 1.38; color: rgba(255,255,255,.85); margin-top: 1.8cqh; max-width: 84cqw; text-wrap: balance; }
.dk-rr .s b { color: #fff; }
.dk-rr .who { display: flex; align-items: center; gap: 3cqw; margin-top: 3cqh; font-size: 3.8cqw; color: rgba(255,255,255,.8); text-align: left; }
.dk-rr .who b { color: #fff; }
.dk-rr .fine { font-size: 3cqw; color: rgba(255,255,255,.5); margin-top: 2.4cqh; max-width: 76cqw; }
.dk-rr .tops { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; }
.dk-rr .tops span { padding: 2.2cqw 4cqw; border-radius: 6cqw; border: 1px solid rgba(255,255,255,.3); font-size: 4cqw; font-weight: 600; }
.dk-rr .tops span:nth-child(3n+1) { background: #fff; color: #000; }
.dk-rrdots { display: flex; gap: 1.4cqw; width: 36cqw; margin-top: 2cqh; }
.dk-rrdots i { flex: 1; height: .8cqw; border-radius: 1cqw; background: rgba(255,255,255,.25); overflow: hidden; }
.dk-rrdots i::after { content: ""; display: block; height: 100%; width: 0; background: #fff; animation: rrBar var(--p) linear calc(var(--i) * var(--p)) forwards; }
@keyframes rrBar { to { width: 100%; } }
.still .dk-rr { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw 3cqw; }
.still .dk-rr .pn { position: static; opacity: 1; justify-content: flex-start; }
.still .dk-rr .big { font-size: 13cqw; } .still .dk-rr .gname { font-size: 7cqw; } .still .dk-rr .s { font-size: 3cqw; } .still .dk-rr .fine, .still .dk-rrdots { display: none; }
.still .dk-rr .tops span { font-size: 2.8cqw; padding: 1.4cqw 2.4cqw; }

/* days you'll remember: ticket stubs */
.dk-months.mini { height: 9cqh; margin-top: 2.4cqh; gap: 1.2cqw; }
.dk-stubs { width: 100%; display: flex; flex-direction: column; gap: 1.5cqh; margin-top: 3cqh; }
.dk-stubs .stub { display: flex; background: #fff; border-radius: 3cqw; box-shadow: 0 1.5cqw 5cqw rgba(0,0,0,.12); overflow: hidden; text-align: left; }
.dk-stubs .dt { flex: none; width: 25cqw; padding: 2.4cqw 1.6cqw; border-right: .5cqw dashed #d9d3c4; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.dk-stubs .dt b { font: 800 6.4cqw/1 var(--display); white-space: nowrap; }
.dk-stubs .dt small { font: 700 3cqw var(--ui); color: #6b6b6b; margin-top: 1cqw; }
.dk-stubs p { padding: 2.6cqw 3.4cqw; font-size: 3.7cqw; line-height: 1.3; align-self: center; }

/* texting age */
.card-age .dk-num { font-size: 40cqw; margin-top: 1cqh; }
.dk-why { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; margin-top: 3cqh; max-width: 90cqw; }
.dk-why span { padding: 1.8cqw 3.4cqw; border-radius: 6cqw; border: 1px solid rgba(255,255,255,.28); font-size: 3.5cqw; }

/* the receipts awards: envelopes flip into faces */
.dk-aw { width: 100%; display: flex; flex-direction: column; gap: 1.8cqh; margin-top: 3.4cqh; }
.dk-aw .aw { display: flex; align-items: center; gap: 4cqw; text-align: left; animation: pop .4s var(--t) both; }
.dk-aw .env { position: relative; width: 15cqw; height: 15cqw; flex: none; perspective: 80cqw; }
.dk-aw .env > span { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dk-aw .back { display: grid; place-items: center; background: var(--paper); color: var(--paper-ink); font-size: 7cqw; animation: flipA .6s calc(var(--t) + .4s) both; }
.dk-aw .front { width: 100%; height: 100%; font-size: 7cqw; box-shadow: 0 0 0 .6cqw #000, 0 0 0 1.2cqw var(--green); animation: flipB .6s calc(var(--t) + .4s) both; }
@keyframes flipA { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
@keyframes flipB { from { transform: rotateY(-180deg); } to { transform: rotateY(0); } }
.still .dk-aw .back { display: none; }
.dk-aw .tx { display: flex; flex-direction: column; min-width: 0; }
.dk-aw .tx small { font: 800 3.6cqw var(--display); letter-spacing: -.01em; color: rgba(255,255,255,.65); }
.dk-aw .tx b { font: 800 7cqw/1.05 var(--display); margin-top: .6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-aw .tx span { font-size: 3.5cqw; color: rgba(255,255,255,.75); margin-top: .4cqw; }

/* "send to Maya" (story footer) + copied toast */
.story-foot .tagbtn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 22px; background: #fff; color: #000; font-weight: 700; font-size: 14px; white-space: nowrap; }
.story-foot .tagbtn svg { width: 19px; height: 19px; fill: none; stroke: #000; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.story-foot .hint.sm { border: 0; padding: 0 4px; justify-content: flex-end; font-size: 13px; color: rgba(255,255,255,.6); }
.story.light .story-foot .tagbtn { background: var(--paper-ink); color: #fff; } .story.light .story-foot .tagbtn svg { stroke: #fff; }
.dk-toast { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 72px); z-index: 6; background: rgba(38,38,38,.96); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; line-height: 1.35; animation: pop .25s both; }

/* =================== computer: a web page + stories in a centered frame =================== */
@media all {
html.desk body { display: block; background: #000; }
html.desk #app { width: 100%; max-width: none; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; background: radial-gradient(120% 80% at 50% 0%, #121212 0%, #000 60%); }
/* stories (quiz, result, guides, the deck) play in a 9:16 frame, like instagram.com */
html.desk #app > .story { inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); height: min(100dvh - 40px, 900px); width: calc(min(100dvh - 40px, 900px) * 9 / 16); border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
html.desk #app > .story.guide { width: min(560px, 92vw); }
html.desk #app:has(> .story)::before { content: "receipts"; position: absolute; left: 32px; top: 24px; font: 800 30px var(--display); color: #f5f5f5; opacity: .9; }
/* full-screen pages become a centered column */
html.desk .upload, html.desk .printing, html.desk .explore, html.desk .follow, html.desk .profile-sheet { left: max(0px, calc(50% - 320px)); right: max(0px, calc(50% - 320px)); }
html.desk .upload, html.desk .explore, html.desk .follow, html.desk .profile-sheet { border-left: 1px solid #1f1f1f; border-right: 1px solid #1f1f1f; }
html.desk .profile-sheet, html.desk .pf-feed { transform: none; opacity: 0; transition: opacity .2s; box-shadow: none; }
html.desk .profile-sheet.in, html.desk .pf-feed.in { opacity: 1; }
html.desk .drop { padding: 70px 30px 44px; }

/* the landing page */
.web { display: flex; flex-direction: column; height: 100%; overflow-y: auto; scrollbar-width: thin; }
.web-nav { display: flex; align-items: center; gap: 22px; padding: 22px 48px; max-width: 1240px; width: 100%; margin: 0 auto; }
.web-nav .brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.web-nav .brand .avatar { width: 34px; height: 34px; }
.web-nav .sp { flex: 1; }
.web-nav .nl { font-size: 15px; font-weight: 600; color: #d6d6d6; }
.web-nav .nl:hover { color: #fff; }
.web-panel { margin-top: 30px; max-width: 520px; background: #121212; border: 1px solid #262626; border-radius: 22px; padding: 22px 22px 16px; }
.web-panel .scroll { padding: 0; gap: 8px; overflow: visible; flex: none; }
.web-panel .wrow { animation: rise .3s both; }
.web-panel .bubble { background: none; padding: 0; font-size: 17px; font-weight: 600; max-width: none; border-radius: 0; animation: none; }
.web-panel .bubble.typing { display: inline-flex; padding: 6px 0; }
.web-panel .profile-card { width: 100%; display: flex; background: #1c1c1c; margin: 6px 0; }
.web-panel .profile-card .top { flex-direction: row; gap: 16px; align-items: center; text-align: left; width: 100%; }
.web-panel .profile-card .top > div:not(.pfp) { margin: 0; }
.web-panel .profile-card .bio { display: none; }
.web-panel .dock { padding: 14px 0 0; }
.web-panel .chips { justify-content: flex-start; }
.web-panel .chip { padding: 11px 20px; font-size: 15px; }
.web-panel .composer { min-height: 56px; border-radius: 16px; background: #1f1f1f; border: 1px solid #333; }
.web-panel .composer input { font-size: 17px; }
.web-panel .composer .send { opacity: 1; pointer-events: auto; background: #fff; color: #000; border-radius: 11px; padding: 10px 16px; font-weight: 700; }
.web-panel .composer:not(.has) .send { opacity: .35; }
.web-panel .fine { text-align: left; }
.web-panel .suggest { margin: 0 0 10px; }
.web-live { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.55); }
.web-foot { display: flex; justify-content: space-between; gap: 20px; max-width: 1240px; width: 100%; margin: 0 auto; padding: 18px 48px 28px; font-size: 13px; color: #8a8a8a; border-top: 1px solid #1a1a1a; }
.web-foot button { color: #c9c9c9; font-weight: 600; }
@media (max-width: 1100px) { .web-art { display: none; } .web-main { grid-template-columns: 1fr; } }
}

html.desk .profile-sheet { box-shadow: 0 0 0 100vmax rgba(0,0,0,.78); }
html.desk .upload { justify-content: center; padding-bottom: 8vh; }

.faces-dbg .fd-list { flex: 1; overflow-y: auto; padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.faces-dbg .fd { display: flex; gap: 12px; align-items: center; }
.faces-dbg .dk-av { width: 48px; height: 48px; font: 800 20px var(--display); }
.faces-dbg .fd b { display: block; font-size: 15px; }
.faces-dbg .fd small { display: block; font-size: 13px; color: #a8a8a8; margin-top: 2px; }
.faces-dbg .fd small.c { color: #6e6e6e; font-size: 12px; }
.faces-dbg .fd-act { padding: 12px 16px calc(var(--safe-bottom) + 16px); }
.faces-dbg .fd-act .btn { width: 100%; }

/* =================== type + color, v3: Instagram story text × Spotify Wrapped =================== */
/* Instagram: one loud font + one quiet font per story; text tool "Classic" with a solid background block.
   Spotify Wrapped 2025: black-and-white base, pops of color only for key moments, huge heavy numbers.
   Display = Figtree (geometric, close to Instagram Sans / Spotify Mix, both proprietary), quiet = system sans,
   mono only on the receipt slips (the product's own object). */
:root { --acc: #c6f432; }
.dk-h, .dk-num, .dk-name, .dk-tname, .story-text, .g-title, .r-name, .dk-rr .big, .dk-rr .gname, .cv .t, .sl .t, .hlf .t { letter-spacing: -.035em; }
.dk-num, .dk-rr .big { font-weight: 900; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.dk-name { font-size: 15cqw; font-weight: 900; }
.dk-tname { font-size: 11cqw; line-height: 1; }
/* kickers: bold, sentence-style, no letter-spaced mono */
/* the punchline: Instagram's story text with a solid background, line by line */
.dk-roast > span { background: #fff; padding: .14em .42em; border-radius: .32em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.story.light .dk-roast { color: #fff; }
.story.light .dk-roast > span { background: #000; }
.dk-sub { font-size: 4.2cqw; }
.dk-facts b { font-weight: 900; letter-spacing: -.03em; }
.dk-note, .dk-noteword .bub, .dk-stk b, .dk-badges b, .dk-aw .tx b, .dk-mixl b { font-weight: 900; letter-spacing: -.03em; }
.dk-noteword .bub { font-size: 17cqw; }
.dk-ring > span, .dk-av { font-weight: 900; }
.dk-code b { font-weight: 900; }
/* stat tiles (two numbers side by side, Spotify-style) */
.dk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; width: 100%; margin-top: 4cqh; }
.dk-tiles > div { background: rgba(255,255,255,.12); border-radius: 4cqw; padding: 4cqw 3.4cqw; text-align: left; }
.dk-tiles b { display: block; font: 900 10cqw/1 var(--display); letter-spacing: -.05em; }
.dk-tiles span { display: block; font-size: 3.5cqw; line-height: 1.25; margin-top: 1.4cqw; opacity: .85; }
.story.light .dk-tiles > div { background: rgba(0,0,0,.07); }
.dk-unit { font: 700 4.6cqw var(--display); letter-spacing: -.01em; margin-top: .6cqh; }
/* light (white / lime) cards: dark ink everywhere */
.story.light .dk { color: #0b0b0b; }
.story.light .dk-k, .story.light .dk-rr .k { color: rgba(0,0,0,.6); }
.story.light .dk-sub, .story.light .dk-sub b, .story.light .dk-cap, .story.light .dk-fine { color: rgba(0,0,0,.78); }
.story.light .dk-facts > div { border-color: rgba(0,0,0,.14); }
.story.light .dk-why span { border-color: rgba(0,0,0,.3); }
.story.light .dk-poll .q { background: #000; }
.story.light .story-head small { color: rgba(0,0,0,.6); }
.dk-why span { font-weight: 600; }
/* color pops stay saturated: no film grain on them */
.story.pop::after { opacity: .08; }
/* receipts mark */
.mark span { transform: none; }

.story.pop .dk-k, .story.pop .dk-rr .k, .story.pop .dk-sub, .story.pop .dk-cap, .story.pop .dk-seen, .story.pop .dk-unit, .story.pop .dk-rr .s, .story.pop .dk-rr .who, .story.pop .dk-facts span { color: rgba(255,255,255,.92); opacity: 1; }
.story.light .dk-k { color: rgba(0,0,0,.65); }

/* kickers everywhere: bold sans, no letter-spaced mono (mono stays on receipts) */

/* every kicker reads as a sentence: first letter capital, the rest as written */
.dk-k::first-letter, .dk-rr .k::first-letter, .sl .k::first-letter, .hlf .k::first-letter, .tile.reel .rk::first-letter, .path-h::first-letter, .g-see::first-letter, .r-kicker::first-letter, .dk-aw .tx small::first-letter, .dk-stk small::first-letter, .ld-what::first-letter { text-transform: uppercase; }
/* light surfaces: the accent turns violet so highlighted words stay readable */
.story.light, .hl-view.light, .sl-how, .cv-paper, .ex-tile.paper, .light .hlf { --acc: #5b3cff; }
.story.pop, .hl-view.pop { --muted: rgba(255,255,255,.86); --line: rgba(255,255,255,.3); }
.story.pop .pw, .story.pop .g-more { background: rgba(0,0,0,.22); }

/* =================== computer landing v2: the Instagram desktop story viewer × Wrapped =================== */
/* One composition: left = start (headline, the @ box), right = three real-looking sample stories laid out like
   instagram.com's story viewer (active one big and playing, neighbours smaller and dimmed). Everything else folds
   into a short FAQ. Sample numbers are the demo deck's real output; Maya's photo is generated (fictional). */
.web { background: #000; }
.web-nav { padding: 20px 40px; max-width: 1320px; }
.web-nav .nl { font: 700 15px var(--ui); color: #e6e6e6; padding: 9px 14px; border-radius: 99px; }
.web-nav .nl:hover { background: #1a1a1a; color: #fff; }
.wv { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1320px; width: 100%; margin: 0 auto; padding: 2vh 40px 6vh; min-height: min(calc(100dvh - 84px), 860px); }
.wv h1 { font: 900 clamp(56px, 5.3vw, 80px)/.94 var(--display); letter-spacing: -.045em; }
.wv h1 em { font-style: normal; color: #c6f432; }
.wv-sub { font: 600 19px/1.35 var(--ui); color: rgba(255,255,255,.72); margin-top: 18px; }
.wv .web-panel { margin-top: 30px; max-width: none; background: none; border: 0; padding: 0; border-radius: 0; }
.wv .web-panel .bubble { font: 800 20px/1.2 var(--display); letter-spacing: -.02em; }
.wv .web-panel .composer { min-height: 60px; border-radius: 99px; background: #121212; border: 1px solid #2e2e2e; padding-left: 8px; }
.wv .web-panel .composer:focus-within { border-color: #5a5a5a; }
.wv .web-panel .composer .send { border-radius: 99px; padding: 12px 22px; background: #c6f432; color: #000; font-weight: 800; }
.wv .web-panel .fine { margin-top: 10px; color: #8a8a8a; }
.wv .web-panel .chip { border-radius: 99px; }
.wv-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.wv-meta span { font: 700 13px var(--ui); color: #d8d8d8; border: 1px solid #2a2a2a; border-radius: 99px; padding: 7px 12px; }
.wv .web-live { margin-top: 14px; font-size: 13.5px; color: #8a8a8a; }

/* the story stage */
.wv-stage { --H: min(590px, 72dvh, calc((100vw - 560px) * .7)); --sw: calc(var(--H) * .76 * 9 / 16); --mw: calc(var(--H) * 9 / 16); position: relative; height: calc(var(--H) + 56px); display: flex; align-items: flex-start; justify-content: center; }
.sf { position: absolute; top: 0; height: var(--H); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--bg); color: #fff; text-align: center; container-type: inline-size; cursor: pointer; transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s, box-shadow .35s; }
.sf.main { left: 50%; transform: translateX(-50%); z-index: 2; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); transition: background .4s; }
.sf.side { height: calc(var(--H) * .76); top: calc(var(--H) * .12); filter: brightness(.94); z-index: 1; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.sf.side.l { right: calc(50% + var(--mw) / 2 + 16px); }
.sf.side.r { left: calc(50% + var(--mw) / 2 + 16px); }
.sf.side:hover, .sf.side:focus-visible { filter: none; z-index: 3; }
.sf.side:hover { transform: translateY(-6px); }
.sf-bars { position: absolute; top: 2.6cqw; left: 3cqw; right: 3cqw; display: flex; gap: 1.2cqw; z-index: 3; }
.sf-bars i { flex: 1; height: .9cqw; min-height: 2px; border-radius: 9px; background: rgba(255,255,255,.35); overflow: hidden; }
.sf-bars i u { display: block; height: 100%; width: 0; background: #fff; }
.sf.side .sf-bars u, .sf-bars i.done u { width: 100%; }
.sf-bars i.run u { animation: sfBar 3.6s linear forwards; }
.sf.main.hold .sf-bars i.run u { animation-play-state: paused; }
@keyframes sfBar { to { width: 100%; } }
.sf-head { position: absolute; top: 5.6cqw; left: 4cqw; right: 4cqw; display: flex; align-items: center; gap: 2.4cqw; z-index: 3; font-size: 4.2cqw; }
.sf-head .avatar { width: 8.4cqw; height: 8.4cqw; flex: none; }
.sf-head .avatar span { font-size: 4.6cqw; }
.sf-head b { font-weight: 700; } .sf-head small { opacity: .65; }
.sf-body { position: absolute; inset: 0; padding: 18cqw 8cqw 10cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sf .k { font: 800 5.4cqw/1.2 var(--display); letter-spacing: -.01em; color: rgba(255,255,255,.85); }
.sf .n { font: 900 26cqw/.9 var(--display); letter-spacing: -.06em; margin-top: 3cqw; font-variant-numeric: tabular-nums; }
.sf .n.big { font-size: 52cqw; }
.sf .n small { font-size: .38em; letter-spacing: -.02em; margin-left: 1cqw; }
.sf .s { font: 500 4.6cqw/1.35 var(--ui); color: rgba(255,255,255,.9); margin-top: 3cqw; }
.sf .s b { font-weight: 800; }
/* slides inside the playing story */
.sf.main .sl { opacity: 0; transform: scale(.97); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); background: var(--bg); }
.sf.main .sl.on { opacity: 1; transform: none; }
.sf .sl.light, .sf .sl.light .k, .sf .sl.light .s { color: #0b0b0b; }
.sf .sl.light .k { color: rgba(0,0,0,.65); }
.sf.main:has(.sl.light.on) .sf-head { color: #000; }
.sf.main:has(.sl.light.on) .sf-bars i { background: rgba(0,0,0,.2); } .sf.main:has(.sl.light.on) .sf-bars u { background: #000; }
.sf .bub { margin-top: 5cqw; background: #fff; color: #111; border-radius: 10cqw; padding: 3cqw 9cqw 4cqw; font: 900 19cqw/1 var(--display); letter-spacing: -.05em; position: relative; }
.sf .bub::after { content: ""; position: absolute; left: 9cqw; bottom: -2.4cqw; width: 6cqw; height: 6cqw; background: #fff; border-radius: 50%; }
.sf .bub + .s { margin-top: 7cqw; }
.sf .who { display: flex; align-items: center; gap: 2.6cqw; margin-top: 6cqw; background: rgba(255,255,255,.1); border-radius: 99px; padding: 1.6cqw 4cqw 1.6cqw 1.6cqw; font: 500 4.4cqw var(--ui); }
.sf .who img { width: 9cqw; height: 9cqw; border-radius: 50%; object-fit: cover; }
.sf .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; margin-top: 5cqw; }
.sf .chips span { background: #000; color: #fff; border-radius: 99px; padding: 2cqw 3.6cqw; font: 700 4cqw var(--ui); }
/* #1 person */
.sf .ring { width: 46cqw; aspect-ratio: 1; border-radius: 50%; padding: 1.6cqw; margin-top: 5cqw; background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.sf .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1.6cqw solid var(--bg); display: block; }
.sf .nm { font: 900 17cqw/1 var(--display); letter-spacing: -.05em; margin-top: 4cqw; }
.sf .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; width: 100%; margin-top: 5cqw; }
.sf .tiles div { background: rgba(255,255,255,.16); border-radius: 3.6cqw; padding: 3cqw; text-align: left; }
.sf .tiles b { display: block; font: 900 8.6cqw/1 var(--display); letter-spacing: -.04em; }
.sf .tiles span { font: 600 3.6cqw var(--ui); opacity: .85; }
.sf .roast { margin-top: 5cqw; font: 800 4.6cqw/1.5 var(--display); color: #000; }
.sf .roast span { background: #fff; padding: .15em .45em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* receipt */
.sf.side.r .slip { box-shadow: 0 3cqw 10cqw rgba(0,0,0,.35); }
.sf .slip { width: 100%; background: #fff; color: #1b1b1b; font: 3.9cqw/1.85 var(--mono); padding: 6cqw 5.5cqw 7cqw; text-align: left; box-shadow: 0 2cqw 6cqw rgba(0,0,0,.12); transform: rotate(-1.5deg); position: relative; }
.sf .slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2.4cqw; height: 2.6cqw; background: linear-gradient(-45deg, transparent 1.3cqw, #fff 0) 0 0 / 2.6cqw 2.6cqw, linear-gradient(45deg, transparent 1.3cqw, #fff 0) 0 0 / 2.6cqw 2.6cqw; }
.sf .slip .hd { text-align: center; font-weight: 600; letter-spacing: .3em; font-size: 5cqw; }
.sf .slip .sub { text-align: center; color: #777; font-size: 3.2cqw; margin-bottom: 2cqw; }
.sf .slip .ln { display: flex; gap: 1.4cqw; } .sf .slip .ln i { flex: 1; border-bottom: 1px dotted #bbb; transform: translateY(-1.3cqw); }
.sf .slip hr { border: 0; border-top: 1px dashed #bbb; margin: 2cqw 0; }
.sf .slip .tot { font-size: 4.2cqw; }
.sf .slip .thx { text-align: center; color: #777; font-size: 3.2cqw; margin-top: 3cqw; }
.wv-play { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: #fff; color: #000; font: 800 15px var(--ui); padding: 13px 22px; border-radius: 99px; white-space: nowrap; z-index: 4; transition: transform .2s; }
.wv-play:hover { transform: translateX(-50%) scale(1.04); }
/* FAQ: Instagram settings-list rows that drop down */
.wv-faq { max-width: 760px; width: 100%; margin: 0 auto; padding: 40px 40px 64px; }
.wv-faq h2 { font: 900 40px/1 var(--display); letter-spacing: -.04em; margin-bottom: 18px; }
.wv-faq details { border-top: 1px solid #222; }
.wv-faq details:last-of-type { border-bottom: 1px solid #222; }
.wv-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 2px; font: 700 18px var(--ui); }
.wv-faq summary::-webkit-details-marker { display: none; }
.wv-faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid #aaa; border-bottom: 2px solid #aaa; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.wv-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.wv-faq summary:hover { color: #fff; }
.wv-faq p, .wv-how { color: rgba(255,255,255,.74); font-size: 16px; line-height: 1.5; padding: 0 2px 22px; max-width: 620px; }
.wv-how { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.wv-how li { display: flex; gap: 14px; align-items: flex-start; }
.wv-how b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font: 900 15px var(--display); }
.wv-how strong { color: #fff; font-weight: 700; }
.web-foot { max-width: 1320px; padding: 18px 40px 28px; }
@media (prefers-reduced-motion: reduce) { .sf-bars i.run u { animation-duration: 6s; } .sf, .sf.main .sl { transition: none; } }
.wv .web-panel .composer:not(.has) .send { opacity: 1; background: #262626; color: #7a7a7a; }
.sf .sl .roast { margin-top: 8cqw; }
/* the step prompt: first line is the question, anything after it is quiet helper text */
.wv .web-panel .wrow ~ .wrow .bubble { font: 500 16px/1.45 var(--ui); letter-spacing: 0; color: rgba(255,255,255,.72); }
.wv .web-panel .wrow ~ .wrow:has(.profile-card) .bubble, .wv .web-panel .wrow ~ .wrow .profile-card { color: #fff; }
.wv .web-panel .bubble { text-wrap: balance; }
