:root {
  --ink: #0b0420;
  --paper: #f6f2ff;
  --lime: #c6ff3d;
  --pink: #ff4fa3;
  --orange: #ff7a1a;
  --cyan: #3af2ff;
  --violet: #6b2bff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }

/* ---------------- Setup screen ---------------- */
.setup {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  position: relative;
}
.setup::before {
  content: "";
  position: fixed; inset: -20% -10% auto auto;
  width: 60vmax; height: 60vmax;
  background: radial-gradient(circle, rgba(107, 43, 255, .55), transparent 60%);
  z-index: -1; pointer-events: none;
}
.eyebrow { font-size: 14px; letter-spacing: .02em; color: #cfc6ee; display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
h1 {
  font-size: clamp(64px, 13vw, 128px);
  line-height: .86; letter-spacing: -.05em; font-weight: 900; margin: 0;
  text-transform: uppercase;
}
h1 span { color: var(--lime); }
.lede { font-size: 22px; color: #d9d2f5; margin: 18px 0 40px; }

.sources { display: grid; gap: 16px; }
.source {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px; padding: 24px;
}
.source-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lime); color: var(--ink); font-weight: 900; font-size: 22px;
}
.source:nth-child(2) .source-num { background: var(--pink); }
.source h2 { margin: 4px 0 6px; font-size: 22px; letter-spacing: -.02em; }
.source h2 em { font-style: normal; color: var(--pink); }
.source p { margin: 0 0 16px; color: #cfc6ee; line-height: 1.45; }
.hint { font-size: 14px; margin: 12px 0 0 !important; min-height: 1em; }
.hint.ok { color: var(--lime) !important; }
.hint.err { color: #ff8a8a !important; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 22px;
  background: var(--lime); color: var(--ink); font-weight: 800; font-size: 16px;
  transition: transform .15s ease, opacity .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .4; transform: none; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--paper); border: 2px solid var(--pink); cursor: pointer; }
.btn-big { font-size: 19px; padding: 16px 28px; background: var(--pink); color: #fff; }

.howto { margin-top: 16px; color: #cfc6ee; }
.howto summary { cursor: pointer; color: var(--paper); font-weight: 600; }
.howto ol { padding-left: 20px; line-height: 1.6; margin: 0 0 8px; }
.howto ul { padding-left: 18px; margin: 4px 0; }
.howto h3 { font-size: 15px; letter-spacing: .02em; color: var(--lime); margin: 20px 0 6px; }
.howto b { color: var(--paper); }
.small { font-size: 14px; }

.status {
  margin-top: 24px; padding: 24px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(198, 255, 61, .15), rgba(255, 79, 163, .15));
  border: 1px solid rgba(255, 255, 255, .15);
}
.status p { margin: 0 0 16px; font-size: 18px; }
.gen-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.year { font-weight: 700; display: flex; gap: 10px; align-items: center; }
.year select {
  font: inherit; font-weight: 800; padding: 10px 14px; border-radius: 12px;
  background: var(--ink); color: var(--paper); border: 1px solid rgba(255, 255, 255, .3);
}
.demo-row { text-align: center; margin-top: 20px; }

.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 200px; padding: 32px; border-radius: 26px; text-align: center; cursor: pointer;
  border: 2px dashed rgba(198, 255, 61, .6);
  background: rgba(198, 255, 61, .06);
  transition: background .15s, border-color .15s, transform .15s;
}
.drop:hover, .drop.over { background: rgba(198, 255, 61, .14); border-color: var(--lime); }
.drop.over { transform: scale(1.01); }
.drop-big { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.drop-small { color: #cfc6ee; }
.drop .hint { margin: 6px 0 0 !important; }

.guide { margin-top: 64px; }
.guide > h2 { font-size: 34px; letter-spacing: -.03em; margin: 0 0 20px; }
.guide > h2 span { font-size: 16px; font-weight: 600; color: #a99fd0; margin-left: 8px; letter-spacing: 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; margin-bottom: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px; padding: 24px;
}
.step:nth-of-type(2) .source-num { background: var(--pink); }
.step:nth-of-type(3) .source-num { background: var(--cyan); }
.step h3 { margin: 10px 0 10px; font-size: 20px; letter-spacing: -.01em; }
.step ol { margin: 0; padding-left: 20px; line-height: 1.65; color: #cfc6ee; }
.step b, .step a { color: var(--paper); }
.step .small { color: #a99fd0; margin: 12px 0 0; line-height: 1.5; }
.privacy {
  margin-top: 28px; padding: 20px 24px; border-radius: 18px; line-height: 1.55; color: #cfc6ee;
  border: 1px solid rgba(198, 255, 61, .35);
}
.privacy b { color: var(--lime); }
.link { background: none; border: 0; color: #a99fd0; text-decoration: underline; }

.faq { margin-top: 64px; }
.faq h2 { font-size: 34px; letter-spacing: -.03em; margin: 0 0 8px; }
.faq h3 { font-size: 19px; letter-spacing: -.01em; margin: 28px 0 8px; }
.faq p { margin: 0; color: #cfc6ee; line-height: 1.6; }
.foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); color: #a99fd0; font-size: 14px; }
.foot a { color: var(--paper); }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--lime); flex: none; }
.check em { font-style: normal; color: #a99fd0; }

/* ---------------- All sites page ---------------- */
.allsites { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.allsites[hidden] { display: none; }
.back { font-size: 16px; padding: 0; margin-bottom: 24px; text-decoration: none; color: #cfc6ee; }
.all-title { margin: 0; font-weight: 900; font-size: clamp(40px, 7vw, 64px); line-height: .95; text-transform: none; letter-spacing: -.04em; }
.all-sub { color: #cfc6ee; font-size: 18px; margin: 14px 0 28px; }
.all-tools { display: flex; gap: 12px; margin-bottom: 14px; }
.all-tools input, .all-tools select {
  font: inherit; color: var(--paper); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 12px 16px;
}
.all-tools input { flex: 1; min-width: 0; }
.all-tools input:focus, .all-tools select:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #cfc6ee;
  border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; }
.chip b { font-weight: 600; opacity: .6; }
.chip.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.all-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site {
  display: grid; grid-template-columns: 44px 40px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04);
  position: relative; overflow: hidden;
  animation: rowIn .4s ease-out both; animation-delay: calc(min(var(--i), 20) * 25ms);
}
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.site .bar { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); background: var(--c); opacity: .1; }
.site > * { position: relative; }
.site .rk { font-weight: 800; color: #8a86a3; font-variant-numeric: tabular-nums; text-align: right; }
.site .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--ink); background: var(--c); text-transform: uppercase; }
.site .nm { min-width: 0; }
.site .nm a { color: var(--paper); font-weight: 700; font-size: 17px; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site .nm a:hover { text-decoration: underline; }
.site .nm small { color: #8a86a3; font-size: 13px; }
.site .tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .1); color: #cfc6ee; }
.site .ct { text-align: right; }
.site .ct b { display: block; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.site .ct small { color: #8a86a3; font-size: 13px; }
.all-empty { color: #a99fd0; text-align: center; padding: 40px 0; }
.all-more { display: block; margin: 20px auto 0; }
@media (max-width: 520px) {
  .site { grid-template-columns: 34px 1fr auto; }
  .site .av { display: none; }
}

/* ---------------- Story / slides ---------------- */
.story-wrap {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 50% 40%, #1a0d3d, #050212 70%);
}
.story-wrap[hidden] { display: none; }
.story {
  position: relative;
  height: min(88vh, 860px);
  aspect-ratio: 9 / 16;
  max-width: 94vw;
  border-radius: 28px;
  overflow: hidden;
  container-type: inline-size;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
  cursor: pointer;
  background: #2a0b5e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.nav-hint { color: #6f6890; font-size: 13px; margin: 0; text-align: center; }
.nav-hint b { color: #9c93c4; font-weight: 600; }

.progress { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 6; display: flex; gap: 4px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; transition: background .3s; }
.progress span.done { background: rgba(255, 255, 255, .95); }
.progress span.now::after {
  content: ""; display: block; height: 100%; width: 100%; background: #fff;
  transform-origin: left; animation: fill var(--dur, 6s) linear forwards;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story.light .progress span { background: rgba(11, 4, 32, .2); }
.story.light .progress span.done, .story.light .progress span.now::after { background: var(--ink); }

.topbar { position: absolute; top: 28px; right: 12px; z-index: 7; display: flex; gap: 8px; }
.ctrl {
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .28); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .15s, background .2s;
}
.ctrl:hover { transform: scale(1.08); }
.ctrl svg { width: 16px; height: 16px; }
.story.light .ctrl { background: rgba(11, 4, 32, .14); color: var(--ink); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* paused: freeze everything, including the progress bar */
.story.paused .progress span.now::after,
.story.paused .slide *,
.story.paused .slide *::before, .story.paused .slide *::after { animation-play-state: paused !important; }

/* slide transition: each new slide opens as a growing circle from where you tapped */
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  padding: 18cqw 8cqw 10cqw;
  display: flex; flex-direction: column; justify-content: center;
  visibility: hidden; overflow: hidden; z-index: 0;
}
.slide.leaving { visibility: visible; z-index: 1; }
.slide.active { visibility: visible; z-index: 2; animation: reveal .8s cubic-bezier(.75, 0, .2, 1) both; }
@keyframes reveal {
  from { clip-path: circle(0% at var(--cx, 88%) var(--cy, 50%)); }
  to { clip-path: circle(160% at var(--cx, 88%) var(--cy, 50%)); }
}
.slide > * { position: relative; z-index: 1; }

/* themes */
.t-violet { background: #2a0b5e; --accent: var(--lime); color: #fff; }
.t-lime   { background: var(--lime); --accent: var(--violet); color: var(--ink); }
.t-pink   { background: var(--pink); --accent: var(--ink); color: var(--ink); }
.t-ink    { background: #0d0a1f; --accent: var(--pink); color: #fff; }
.t-orange { background: var(--orange); --accent: #2a0b5e; color: var(--ink); }
.t-cyan   { background: var(--cyan); --accent: var(--pink); color: var(--ink); }
.t-night  { background: radial-gradient(circle at 70% 20%, #2b2470, #070418 70%); --accent: #ffe66b; color: #fff; }
.t-red    { background: #ff4545; --accent: #fff3a8; color: #1a0505; }
.t-social { background: linear-gradient(160deg, #6a2bf5 0%, #d61f9a 55%, #ff7a1a 100%); --accent: #ffe66b; color: #fff; }

.slide > .like {
  position: absolute; bottom: -12cqw; z-index: 0;
  font-size: var(--s); line-height: 1; color: rgba(255, 255, 255, .3);
  animation: floatUp var(--t, 9s) linear var(--d, 0s) infinite;
}
.slide > .like.bub { width: calc(var(--s) * 1.5); height: var(--s); border-radius: 2.5cqw; background: rgba(255, 255, 255, .16); }
.slide > .like.bub::after {
  content: ""; position: absolute; left: 2cqw; bottom: -1.8cqw;
  border-top: 2cqw solid rgba(255, 255, 255, .16); border-right: 2.4cqw solid transparent;
}

/* type */
.kicker { font-size: 4.6cqw; font-weight: 700; margin: 0 0 3cqw; opacity: .85; }
.huge { font-size: 22cqw; font-weight: 900; line-height: .9; letter-spacing: -.06em; margin: 0; word-break: break-word; }
.big { font-size: 13cqw; font-weight: 900; line-height: .95; letter-spacing: -.045em; margin: 0; word-break: break-word; }
.mid { font-size: 8cqw; font-weight: 900; line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.accent { color: var(--accent); }
.sub { font-size: 4.6cqw; line-height: 1.35; margin: 5cqw 0 0; opacity: .9; }
.note { font-size: 3.4cqw; line-height: 1.4; margin-top: 7cqw; padding: 3cqw 4cqw; border-radius: 3cqw; background: rgba(0, 0, 0, .25); }

/* ---- entrance animations (they keep running while a slide is leaving) ---- */
.d1 { --d: 150ms; } .d2 { --d: 350ms; } .d3 { --d: 650ms; } .d4 { --d: 950ms; } .d5 { --d: 1300ms; }
.pop { opacity: 0; transform: translateY(5cqw); }
:is(.active, .leaving) .pop { animation: pop .7s cubic-bezier(.2, .9, .3, 1.15) var(--d, 0ms) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }

.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .03em .12em; margin: 0 -.03em -.12em; }
.w > span { display: inline-block; transform: translateY(115%) rotate(8deg); transform-origin: left bottom; }
:is(.active, .leaving) .w > span { animation: rise .85s cubic-bezier(.2, .95, .25, 1) var(--d) forwards; }
@keyframes rise { to { transform: none; } }

.ch { display: inline-block; opacity: 0; transform: translateY(-70%) scale(.5) rotate(-14deg); }
:is(.active, .leaving) .ch { animation: drop .75s cubic-bezier(.3, 1.6, .5, 1) var(--d) forwards; }
@keyframes drop { to { opacity: 1; transform: none; } }

.num { display: inline-block; font-variant-numeric: tabular-nums; }
.num.landed { animation: punch .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes punch { 40% { transform: scale(1.12) rotate(-2deg); } 100% { transform: none; } }

/* ---- ambient decoration ---- */
.slide > .blob, .slide > .ring, .slide > .star, .slide > .ftab, .slide > .ghost,
.slide > .moon, .slide > .shoot, .slide > .marquee { position: absolute; }
.slide > .blob, .slide > .ring, .slide > .star, .slide > .ftab, .slide > .ghost, .slide > .moon, .slide > .shoot { z-index: 0; }
.blob { border-radius: 50%; animation: drift var(--t, 11s) ease-in-out infinite alternate; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1) rotate(0); border-radius: 50%; }
  50% { border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; }
  100% { transform: translate(var(--dx, 8cqw), var(--dy, -6cqw)) scale(1.12) rotate(25deg); border-radius: 60% 40% 35% 65% / 55% 62% 38% 45%; }
}
.ring { border-radius: 50%; border: .9cqw dashed currentColor; opacity: .2; animation: spin var(--t, 40s) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ftab {
  bottom: -14cqw; width: 18cqw; height: 9cqw; border-radius: 2.4cqw 2.4cqw .8cqw .8cqw;
  background: rgba(11, 4, 32, .09);
  animation: floatUp var(--t, 10s) linear var(--d, 0s) infinite;
}
.ftab::before { content: ""; position: absolute; left: 2cqw; top: 3cqw; width: 3cqw; height: 3cqw; border-radius: 50%; background: rgba(11, 4, 32, .16); }
.ftab::after { content: ""; position: absolute; left: 6.5cqw; top: 3.8cqw; width: 8cqw; height: 1.4cqw; border-radius: 1cqw; background: rgba(11, 4, 32, .13); }
@keyframes floatUp {
  from { transform: translateY(0) rotate(var(--r)); }
  to { transform: translateY(-215cqw) rotate(calc(var(--r) * -1)); }
}

.ghost {
  right: -8cqw; top: 4cqw; font-size: 72cqw; font-weight: 900; line-height: 1; letter-spacing: -.06em;
  color: rgba(11, 4, 32, .1);
  animation: sway 5s ease-in-out infinite alternate;
}
@keyframes sway { to { transform: rotate(-7deg) translateY(5cqw); } }

.star { width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: .2; animation: twinkle 2.4s ease-in-out var(--d) infinite alternate; }
@keyframes twinkle { to { opacity: 1; transform: scale(1.5); } }
.moon {
  right: 12cqw; top: 22cqw; width: 22cqw; height: 22cqw; border-radius: 50%;
  background: #ffe66b; box-shadow: 0 0 14cqw rgba(255, 230, 107, .55);
  animation: moonGlow 3s ease-in-out infinite alternate;
}
.moon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 35%, rgba(0, 0, 0, .09) 0 12%, transparent 13%),
    radial-gradient(circle at 64% 60%, rgba(0, 0, 0, .07) 0 9%, transparent 10%),
    radial-gradient(circle at 42% 76%, rgba(0, 0, 0, .06) 0 6%, transparent 7%);
}
@keyframes moonGlow { to { box-shadow: 0 0 24cqw rgba(255, 230, 107, .85); transform: translateY(-2cqw); } }
.shoot {
  top: 10cqw; left: -30cqw; width: 26cqw; height: .5cqw; border-radius: 1cqw; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff);
  animation: shoot 4.5s ease-in 1.2s infinite;
}
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(18deg); }
  4% { opacity: 1; }
  22% { opacity: 0; transform: translate(150cqw, 48cqw) rotate(18deg); }
  100% { opacity: 0; transform: translate(150cqw, 48cqw) rotate(18deg); }
}

.marquee {
  left: -10%; right: -10%; bottom: 8cqw; z-index: 1; transform: rotate(-5deg);
  background: var(--accent); color: var(--ink); padding: 2.4cqw 0;
  overflow: hidden; white-space: nowrap; font-weight: 900; font-size: 5cqw; text-transform: uppercase;
}
.marquee > div { display: inline-block; animation: marq 16s linear infinite; }
.marquee i { font-style: normal; margin: 0 2cqw; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---- ranked list ---- */
.rank { list-style: none; padding: 0; margin: 6cqw 0 0; display: grid; gap: 3.2cqw; }
.rank li { display: grid; grid-template-columns: 8cqw 1fr auto; align-items: center; gap: 3cqw; opacity: 0; transform: translateX(14cqw); }
:is(.active, .leaving) .rank li { animation: slideIn .6s cubic-bezier(.2, .9, .3, 1) calc(350ms + var(--i) * 130ms) forwards; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.rank .n { font-size: 7cqw; font-weight: 900; color: var(--accent); }
.rank .name { font-size: 5.2cqw; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .c { font-size: 3.8cqw; opacity: .75; font-variant-numeric: tabular-nums; }
.rank .track { grid-column: 2 / 4; height: 1.6cqw; border-radius: 2cqw; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: -1.8cqw; }
.rank .fill { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--accent); transform: scaleX(0); transform-origin: left; }
:is(.active, .leaving) .rank .fill { animation: grow 1s cubic-bezier(.2, .8, .2, 1) calc(600ms + var(--i) * 130ms) forwards; }
@keyframes grow { to { transform: scaleX(1); } }

/* ---- categories ---- */
.stack { display: flex; height: 9cqw; border-radius: 3cqw; overflow: hidden; margin: 6cqw 0 5cqw; clip-path: inset(0 100% 0 0 round 3cqw); }
:is(.active, .leaving) .stack { animation: wipe 1.3s cubic-bezier(.6, 0, .2, 1) .45s forwards; }
@keyframes wipe { to { clip-path: inset(0 0 0 0 round 3cqw); } }
.stack span { height: 100%; width: calc(var(--w) * 100%); }
.cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.4cqw; }
.cats li { display: flex; align-items: center; gap: 3cqw; font-size: 4.6cqw; font-weight: 700; opacity: 0; transform: translateY(3cqw); }
:is(.active, .leaving) .cats li { animation: pop .5s ease-out calc(1000ms + var(--i) * 110ms) forwards; }
.cats .sw { width: 4cqw; height: 4cqw; border-radius: 1cqw; flex: none; }
.cats .pct { margin-left: auto; font-variant-numeric: tabular-nums; opacity: .8; }

/* ---- bar charts ---- */
.bars { display: flex; align-items: flex-end; gap: .8cqw; height: 40cqw; margin-top: 8cqw; }
.bars.short { height: 24cqw; margin-top: 5cqw; }
.bars span {
  flex: 1; height: calc(var(--h) * 100%); min-height: .8cqw;
  border-radius: 1cqw 1cqw 0 0; background: currentColor; opacity: .3;
  transform: scaleY(0); transform-origin: bottom;
}
:is(.active, .leaving) .bars span { animation: growY .8s cubic-bezier(.2, .9, .3, 1.25) calc(350ms + var(--i) * 35ms) forwards; }
@keyframes growY { to { transform: scaleY(1); } }
.bars span.hi { opacity: 1; background: var(--accent); }
:is(.active, .leaving) .bars span.hi {
  animation: growY .8s cubic-bezier(.2, .9, .3, 1.25) calc(350ms + var(--i) * 35ms) forwards,
             glow 1.1s ease-in-out 1.6s infinite alternate;
}
@keyframes glow { to { box-shadow: 0 0 5cqw var(--accent); filter: brightness(1.15); } }
.bars.months { gap: 1.6cqw; }
.axis { display: flex; justify-content: space-between; font-size: 3cqw; opacity: .7; margin-top: 2cqw; }
.axis.months span { flex: 1; text-align: center; }

/* ---- clock ---- */
.clock { width: 34cqw; height: 34cqw; margin: 1cqw 0 4cqw; overflow: visible; }
.clock .face { fill: rgba(11, 4, 32, .08); stroke: currentColor; stroke-width: 3; }
.clock .tick { stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; opacity: .5; }
.clock .hand { stroke: var(--accent); stroke-width: 6; stroke-linecap: round; transform-origin: 50px 50px; transform: rotate(var(--a)); }
:is(.active, .leaving) .clock .hand { animation: sweep 2.2s cubic-bezier(.25, 1.2, .4, 1) .3s both; }
@keyframes sweep { from { transform: rotate(calc(var(--a) - 720deg)); } to { transform: rotate(var(--a)); } }
.clock .sec { stroke: currentColor; stroke-width: 1.4; opacity: .5; transform-origin: 50px 50px; animation: spin 4s linear infinite; }
.clock .pin { fill: currentColor; }

/* ---- calendar ---- */
.cal { position: relative; width: 42cqw; margin: 1cqw 0 4cqw; perspective: 120cqw; }
.cal-page { background: #fff; color: var(--ink); border-radius: 3.5cqw; overflow: hidden; box-shadow: 0 2cqw 0 rgba(0, 0, 0, .18); text-align: center; }
.cal-page b { display: block; background: #2a0b5e; color: #fff; font-size: 4.4cqw; letter-spacing: .12em; text-transform: uppercase; padding: 2cqw 0; }
.cal-page span { display: block; font-size: 22cqw; font-weight: 900; line-height: 1.05; letter-spacing: -.05em; }
.cal-flip { position: absolute; inset: 0; transform-origin: top center; }
:is(.active, .leaving) .cal-flip { animation: flipAway .55s cubic-bezier(.5, 0, .75, 0) var(--d) forwards; }
@keyframes flipAway { to { transform: rotateX(100deg) translateY(-4cqw); opacity: 0; } }

/* ---- streak dots ---- */
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1.6cqw; width: 64cqw; margin: 5cqw 0 0; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(0); }
.dots i:last-child { background: var(--accent); }
:is(.active, .leaving) .dots i { animation: dotIn .35s cubic-bezier(.3, 1.8, .5, 1) calc(500ms + var(--i) * 22ms) forwards; }
@keyframes dotIn { to { opacity: 1; transform: none; } }
.more { font-size: 3.6cqw; font-weight: 800; opacity: .7; margin: 2cqw 0 0; }

/* ---- search ---- */
.searchbar {
  display: flex; align-items: center; gap: 3cqw; min-height: 12cqw; margin-bottom: 7cqw;
  padding: 3cqw 4.5cqw; border-radius: 99px; background: #fff; color: #333;
  font-size: 4.2cqw; font-weight: 600; box-shadow: 0 1.5cqw 5cqw rgba(0, 0, 0, .18);
}
.searchbar svg { width: 5cqw; height: 5cqw; flex: none; color: #888; }
.caret { width: .5cqw; height: 5cqw; background: #333; margin-left: -2.4cqw; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.queries { list-style: none; padding: 0; margin: 6cqw 0 0; display: grid; gap: 2.6cqw; }
.queries li { font-size: 4.8cqw; font-weight: 700; padding: 3cqw 4cqw; border-radius: 3cqw; background: rgba(0, 0, 0, .18); display: flex; justify-content: space-between; gap: 3cqw; }
.queries li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: filter .5s; }
.queries li i { font-style: normal; opacity: .7; flex: none; }
.queries.blur li b { filter: blur(2.4cqw); }
.reveal { margin-top: 4cqw; align-self: flex-start; border: 0; border-radius: 99px; padding: 2.4cqw 4.6cqw; font-weight: 800; font-size: 3.8cqw; background: var(--ink); color: #fff; }

/* ---- youtube ---- */
.play { width: 20cqw; height: 14cqw; border-radius: 4cqw; background: var(--ink); display: grid; place-items: center; margin-bottom: 6cqw; animation: beat .52s ease-in-out infinite; }
.play::after { content: ""; border-left: 6cqw solid #fff; border-top: 3.6cqw solid transparent; border-bottom: 3.6cqw solid transparent; margin-left: 1cqw; }
@keyframes beat { 50% { transform: scale(1.08); } }
.scrub { height: 1.6cqw; background: rgba(0, 0, 0, .2); border-radius: 1cqw; margin-top: 6cqw; overflow: hidden; }
.scrub span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
:is(.active, .leaving) .scrub span { animation: grow 5.5s linear .3s forwards; }

/* ---- personality card ---- */
.persona-badge {
  align-self: flex-start; display: inline-block; font-size: 3.4cqw; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 2cqw 4cqw; border-radius: 99px; background: var(--accent); color: var(--ink); margin-bottom: 6cqw;
}
.holo { padding: 9cqw 7cqw; border-radius: 6cqw; overflow: hidden; opacity: 0; transform: perspective(150cqw) rotateY(-80deg) scale(.9); }
:is(.active, .leaving) .holo { animation: cardIn 1.1s cubic-bezier(.2, .9, .3, 1.1) .2s forwards; }
@keyframes cardIn { to { opacity: 1; transform: perspective(150cqw) rotateY(0) scale(1); } }
.holo::before {
  content: ""; position: absolute; inset: -60%; z-index: 0;
  background: conic-gradient(from 0deg, #c6ff3d, #3af2ff, #ff4fa3, #ffd23f, #c6ff3d);
  animation: spin 5s linear infinite;
}
.holo::after { content: ""; position: absolute; inset: 1cqw; border-radius: 5.2cqw; background: #160a36; z-index: 0; }
.holo > * { position: relative; z-index: 1; }
.holo > .glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%);
  transform: translateX(-120%); animation: glare 3.2s ease-in-out 1.6s infinite;
}
@keyframes glare { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }

/* ---- summary ---- */
.summary { padding: 20cqw 6cqw 6cqw; justify-content: flex-start; align-items: center; gap: 4cqw; background: #120533; }
.card-wrap {
  position: relative; width: 66%; border-radius: 3cqw; overflow: hidden;
  box-shadow: 0 2cqw 8cqw rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(-25cqw) rotate(-5deg) scale(.9);
}
:is(.active, .leaving) .card-wrap { animation: dropIn 1s cubic-bezier(.3, 1.45, .5, 1) .15s forwards; }
@keyframes dropIn { to { opacity: 1; transform: none; } }
.card-wrap canvas { display: block; width: 100%; height: auto; }
.card-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 48%, transparent 60%);
  transform: translateX(-120%); animation: glare 3.5s ease-in-out 1.3s infinite;
}
.summary .row { display: flex; gap: 3cqw; flex-wrap: wrap; justify-content: center; }
.summary .btn { font-size: 4cqw; padding: 3cqw 5cqw; }
.summary .btn-ghost { border-color: rgba(255, 255, 255, .4); }
.summary .see-all { font-size: 3.8cqw; font-weight: 700; color: #cfc6ee; }

@media (prefers-reduced-motion: reduce) {
  .slide.active { animation: none; }
  .story *, .story *::before, .story *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
  }
}
