:root {
  --ink: #0d0d0d;
  --paper: #f3efe4;
  --acid: #d7ff1f;
  --pink: #ff4fa3;
  --blue: #3d5afe;
  --orange: #ff6b1a;
  --red: #ff3b30;
  --green: #29d17a;
  --display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ------------------------------------------------------------ landing */

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 80px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.landing-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  padding: clamp(20px, 5vw, 40px);
}
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  background: var(--ink);
  color: var(--acid);
  padding: 4px 10px;
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(44px, 12vw, 84px);
  line-height: .9;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hl { background: var(--acid); padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: 18px; margin-bottom: 24px; max-width: 34ch; }

form { display: flex; gap: 0; border: 4px solid var(--ink); }
input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 16px;
  font: 700 20px var(--mono);
  background: var(--paper);
  outline: none;
}
input:focus { background: #fffbe0; }
form button {
  border: 0;
  border-left: 4px solid var(--ink);
  background: var(--pink);
  font-family: var(--display);
  font-size: 20px;
  padding: 0 20px;
  transition: background .1s;
}
form button:hover { background: var(--acid); }
form button:active { transform: translate(2px, 2px); }
/* celular: campo menor pra caber o botão (16px é o mínimo pro iPhone não dar zoom ao tocar) */
@media (max-width: 480px) {
  input { font-size: 16px; padding: 12px; }
  input::placeholder { font-size: 14px; }
  form button { font-size: 17px; padding: 0 14px; }
}
.err { color: #d0002a; font-weight: 700; min-height: 1.4em; margin-top: 12px; }
.hint { font-family: var(--mono); font-size: 13px; opacity: .75; }
.hint a { color: var(--ink); font-weight: 700; }
/* opções discretas: parecem texto, sublinhado pontilhado indica que dá pra clicar */
.hint .opt {
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.hint .opt:hover { text-decoration-style: solid; }
.hint .opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* perguntas frequentes (embaixo do formulário, pra quem chega pelo Google) */
.faq { width: 100%; max-width: 560px; margin-top: 56px; }
.faq h2 { font: clamp(24px, 6vw, 32px)/1 var(--display); margin-bottom: 16px; }
.faq details { background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); margin-bottom: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font: 700 16px var(--mono); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 22px var(--display); }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 3px solid var(--ink); background: var(--acid); }
.faq details p { padding: 14px 16px 16px; font-size: 15px; line-height: 1.5; }
.faq a { color: var(--ink); font-weight: 700; }
.marquee {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--display);
  font-size: 18px;
  padding: 10px 0;
  white-space: nowrap;
  overflow: hidden;
}
.marquee span { display: inline-block; animation: marquee 18s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ loading */

#loading { gap: 28px; }
.vinyl {
  width: 160px; height: 160px; border-radius: 50%;
  background:
    radial-gradient(circle, var(--acid) 0 16%, var(--ink) 17% 19%, transparent 20%),
    repeating-radial-gradient(circle, #222 0 3px, #111 3px 6px);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--pink);
  animation: spin 1.2s linear infinite;
}
#loading-msg { font: 700 18px var(--mono); text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ player */

#player {
  position: fixed; inset: 0;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.frame {
  position: relative;
  height: min(100dvh, 920px);
  aspect-ratio: 9 / 16;
  max-width: 100vw;
  overflow: hidden;
  container-type: size;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
@media (min-width: 600px) {
  .frame { border: 4px solid var(--paper); height: min(96dvh, 920px); }
}
@media (max-width: 599px) {
  .frame { width: 100vw; height: 100dvh; aspect-ratio: auto; }
}

.bars {
  position: absolute; z-index: 5;
  top: 10px; left: 10px; right: 10px;
  display: flex; gap: 4px;
}
.bar { flex: 1; height: 5px; background: color-mix(in srgb, var(--barc, var(--ink)) 25%, transparent); }
.bar i { display: block; height: 100%; width: 0; background: var(--barc, var(--ink)); }

.topbar {
  position: absolute; z-index: 5;
  top: 24px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 8px;
}
.who {
  font: 700 13px var(--mono);
  background: var(--ink); color: var(--paper);
  padding: 3px 8px;
  flex: 0 1 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar .icon {
  margin-left: auto;
  width: 34px; height: 34px;
  background: var(--paper);
  border: 3px solid var(--ink);
  font-size: 16px; line-height: 1;
  color: var(--ink);
  display: grid; place-items: center;
}
.topbar .icon + .icon { margin-left: 0; }

/* tocando agora: logo abaixo do topo */
.np {
  position: absolute; z-index: 5;
  top: 63px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 6px;
  font: 700 11px/14px var(--mono);
  color: var(--barc, var(--ink));
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.np.on { opacity: .85; animation: np-in .5s ease-out both; }
.np-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.np .eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; flex: none; }
.np .eq i { width: 2px; background: currentColor; animation: eq .9s ease-in-out infinite alternate; }
.np .eq i:nth-child(2) { animation-delay: -.3s; }
.np .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
@keyframes np-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .np .eq i { animation: none; height: 70%; } .np.on { animation: none; } }

.stories { position: absolute; inset: 0; }
.story {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  padding: 80px 7cqw 7cqw;
  background: var(--bg, var(--paper));
  color: var(--fg, var(--ink));
  overflow: hidden;
}
.story.active { display: flex; }

/* entrada escalonada: qualquer .in anima quando o story fica ativo */
.story.active .in { animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--d, 0s); }
.story.active .slide { animation: slide .5s cubic-bezier(.2, 1, .3, 1) both; animation-delay: var(--d, 0s); }
/* story que não cabe (texto longo): caixa maior em 1/z e encolhida em z, ocupando a mesma área (z vem do fitStory) */
.story.fit {
  inset: 0 auto auto 0;
  width: calc(100% / var(--z)); height: calc(100% / var(--z));
  padding-top: calc(80px / var(--z));
  transform: scale(var(--z)); transform-origin: 0 0;
}
.story.measuring *,.story.measuring *::before, .story.measuring *::after { animation: none !important; transition: none !important; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.92) rotate(var(--r0, 0deg)); } }
@keyframes slide { from { opacity: 0; transform: translateX(-40px); } }

/* ------------------------------------------------------------ blocos comuns */

.kicker {
  align-self: flex-start;
  font: 700 3.6cqw var(--mono);
  text-transform: uppercase;
  background: var(--ink); color: var(--kfg, var(--acid));
  padding: .3em .6em;
}
.big {
  font-family: var(--display);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.mono { font-family: var(--mono); }
.box {
  border: 4px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  background: var(--boxbg, #fff);
  color: var(--ink);
}
.sticker {
  position: absolute;
  font-family: var(--display);
  border: 4px solid var(--ink);
  display: grid; place-items: center;
  text-align: center;
  line-height: .95;
}
.grow { flex: 1; }
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

.pic {
  position: relative;
  width: 70cqw; aspect-ratio: 1;
  border: 5px solid var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
  background: var(--ink) center / cover no-repeat;
  margin: 0 auto;
}
.pic.fallback {
  display: grid; place-items: center;
  font: 30cqw var(--display);
  color: var(--paper);
  background: var(--ink);
}

/* ------------------------------------------------------------ stories específicos */

.s-intro .big { font-size: 21cqw; }
.s-intro .avatar { width: 22cqw; aspect-ratio: 1; border: 4px solid var(--ink); background: center/cover; }

.s-minutes .num { font: 22cqw var(--display); line-height: .9; letter-spacing: -.03em; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 2.4cqw; }
.chips span {
  font: 700 3.6cqw var(--mono);
  border: 3px solid var(--ink);
  background: var(--paper); color: var(--ink);
  padding: .35em .7em;
}

.list { display: flex; flex-direction: column; gap: 2.6cqw; }
.row {
  display: flex; align-items: center; gap: 3cqw;
  border: 4px solid var(--ink);
  background: #fff; color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 2cqw;
}
.row:first-child { background: var(--acid); }
.row .n { font: 9cqw var(--display); width: 9cqw; text-align: center; line-height: 1; }
.row .th { width: 15cqw; aspect-ratio: 1; border: 3px solid var(--ink); background: var(--ink) center/cover; flex: none; display: grid; place-items: center; color: var(--paper); font: 7cqw var(--display); }
.row .t { min-width: 0; flex: 1; }
.row .t b { display: block; font: 700 4.6cqw var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { font: 3.2cqw var(--mono); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.s-addict .pct { font: 25cqw var(--display); line-height: .85; letter-spacing: -.04em; color: var(--pink); -webkit-text-stroke: .6cqw var(--ink); paint-order: stroke fill; }
.tape {
  position: absolute; left: -10%; right: -10%;
  background: var(--acid); color: var(--ink);
  border-block: 4px solid var(--ink);
  font: 4cqw var(--display);
  white-space: nowrap; overflow: hidden;
  padding: .3em 0;
}
.tape span { display: inline-block; animation: marquee 9s linear infinite; }
.addict-svg { width: 50cqw; margin: 0 auto; display: block; overflow: visible; }
.addict-svg .spiral { animation: spin 1.4s linear infinite; transform-box: fill-box; transform-origin: center; }
.addict-svg .drool { animation: drool 1.8s ease-in infinite; transform-box: fill-box; transform-origin: top; }
.addict-svg .drop { animation: drip 1.2s ease-in infinite; }
.addict-svg .note { animation: float 2.4s ease-in-out infinite; }
.addict-svg .note:nth-of-type(2) { animation-delay: .8s; }
.addict-svg .note:nth-of-type(3) { animation-delay: 1.6s; }
.addict-svg .shake { animation: shake .25s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drool { 0%, 20% { transform: scaleY(.3); } 100% { transform: scaleY(1.25); } }
@keyframes drip { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .2; } 50% { transform: translateY(-14px) rotate(8deg); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, 1px); } }
.stamp {
  align-self: center;
  font: 5cqw var(--display);
  border: 5px solid var(--ink);
  background: var(--paper); color: var(--ink);
  padding: .2em .5em;
  transform: rotate(-4deg);
  box-shadow: 6px 6px 0 var(--ink);
}
.footnote { font: 2.8cqw var(--mono); opacity: .7; }

/* horóscopo musical: símbolo do signo dentro de um disco */
.glyph { display: block; fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: square; stroke-linejoin: miter; overflow: visible; }
.glyph .f { fill: currentColor; stroke: none; }
.glyph .t { stroke-width: 3; }
.sign-disc {
  width: 46cqw; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--sc);
  border: 5px solid var(--ring); box-shadow: 10px 10px 0 var(--ring);
}
.sign-disc .glyph { width: 62%; }
.story.active .sign-disc .glyph { animation: sign-sway 4s ease-in-out infinite; }
@keyframes sign-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.04); } }
.sign-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; }
.sign-meta span {
  display: inline-flex; align-items: center; gap: 1.6cqw;
  font: 700 3.2cqw var(--mono);
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: .35em .7em;
}
.glyph.mini { width: 4.4cqw; height: 4.4cqw; stroke-width: 10; }

.s-track .cover-wrap { position: relative; width: 62cqw; margin: 0 auto 0 8cqw; }
.s-track .cover-wrap .pic { width: 62cqw; z-index: 1; }
.s-track .disc {
  position: absolute; top: 4%; left: 38%;
  width: 92%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--pink) 0 15%, var(--ink) 16% 18%, transparent 19%),
    repeating-radial-gradient(circle, #222 0 2px, #0b0b0b 2px 5px);
  border: 4px solid var(--ink);
  animation: spin 2.4s linear infinite;
}
.story.active .disc-wrap { animation: discOut .9s .35s cubic-bezier(.2, 1, .3, 1) both; }
.disc-wrap { position: absolute; inset: 0; }
@keyframes discOut { from { transform: translateX(-38%); } }

.meter { position: relative; height: 9cqw; border: 4px solid var(--ink); background: linear-gradient(90deg, var(--pink), var(--acid) 50%, var(--blue)); box-shadow: 6px 6px 0 var(--ink); }
.meter .mark {
  position: absolute; top: -4cqw; bottom: -4cqw; width: 3cqw;
  background: var(--ink);
  left: calc(var(--pos) * 100% - 1.5cqw);
}
.story.active .meter .mark { animation: markIn 1.4s .4s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes markIn { from { left: -1.5cqw; } }
.meter-labels { display: flex; justify-content: space-between; font: 700 3.2cqw var(--mono); margin-top: 3cqw; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4cqw; }
.cell { border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--paper); padding: 3cqw; color: var(--ink); display: flex; flex-direction: column; gap: 1cqw; }
.cell .v { font: 9cqw var(--display); line-height: .9; overflow-wrap: anywhere; }
.cell .l { font: 700 3.2cqw var(--mono); text-transform: uppercase; }
.cell .c { font: 3.3cqw var(--sans); }
.cell.wide { grid-column: span 2; }

.s-final .preview { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.s-final .preview img { max-height: 100%; max-width: 100%; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.s-final .preview .wait { font: 700 4cqw var(--mono); }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; margin-top: 4cqw; }
.btn {
  font: 4.2cqw var(--display);
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--acid); color: var(--ink);
  padding: 3cqw 2cqw;
}
.btn.alt { background: #fff; }
.btn.full { grid-column: span 2; background: var(--pink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

/* stories escuros: etiqueta invertida */
.story.dark .kicker { background: var(--paper); color: var(--ink); }

.year {
  align-self: flex-start;
  font: 27cqw var(--display);
  line-height: .9;
  letter-spacing: -.04em;
  background: var(--ink); color: var(--acid);
  padding: 1cqw 4cqw 2cqw;
  box-shadow: 10px 10px 0 var(--pink);
  transform: rotate(-3deg);
}

.pair { position: relative; display: flex; justify-content: center; gap: 2cqw; width: 100%; }
.pair > div { position: relative; }
.pair .tag {
  position: absolute; left: 50%; bottom: -4cqw;
  transform: translateX(-50%);
  font: 4cqw var(--display);
  background: var(--ink); color: var(--paper);
  padding: .25em .6em;
  white-space: nowrap;
}

.galbums { display: flex; flex-direction: column; gap: 3.5cqw; flex: 1; justify-content: center; min-height: 0; }
.gal-tag { display: inline-block; font: 4.2cqw var(--display); background: var(--ink); color: var(--paper); padding: .2em .6em; margin-bottom: 1.6cqw; transform: rotate(-2deg); }
.gal:nth-child(2) .gal-tag { background: var(--blue); }
.gal:nth-child(3) .gal-tag { background: var(--pink); color: var(--ink); }
.gal-row { display: grid; grid-template-columns: repeat(3, 25cqw); gap: 4cqw; }
.gal-item { min-width: 0; }
.gal-item .gal-cover { width: 100%; aspect-ratio: 1; border: 3px solid var(--ink); background: var(--ink) center/cover; box-shadow: 5px 5px 0 var(--ink); display: grid; place-items: center; color: var(--paper); font: 9cqw var(--display); margin-bottom: 2.4cqw; }
.gal-cover { position: relative; }
.gal-cover i { position: absolute; left: -1.5cqw; bottom: -1.5cqw; font: 700 2.7cqw var(--mono); font-style: normal; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: .15em .45em; }
.gal-item:first-child .gal-cover { box-shadow: 5px 5px 0 var(--acid); }
.gal-item b { display: block; font: 700 3.3cqw var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-item small { display: block; font: 2.6cqw var(--mono); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.flag { width: 30cqw; overflow: visible; }
.flag .cloth { animation: wave 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes wave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-5deg) scaleX(.94); } }

/* carteirinha da personalidade */
.idcard {
  width: 100%;
  background: var(--card);
  color: var(--ink);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--sh, var(--ink));
  transform: rotate(-2deg);
  text-align: left;
}
.id-head {
  display: flex; justify-content: space-between; gap: 2cqw;
  background: var(--ink); color: var(--card);
  font: 700 2.9cqw var(--mono);
  padding: 1.6cqw 3cqw;
}
.id-body { display: flex; gap: 3.5cqw; padding: 3.5cqw 3.5cqw 0; }
.id-photo {
  width: 24cqw; aspect-ratio: 1; flex: none;
  border: 4px solid var(--ink);
  background: var(--ink) center / cover;
  display: grid; place-items: center;
  color: var(--paper); font: 12cqw var(--display);
  filter: grayscale(1) contrast(1.15);
}
.id-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.id-info small { font: 700 2.7cqw var(--mono); opacity: .65; }
.id-info b { font: 5cqw var(--display); margin-bottom: 1.4cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-name {
  font-family: var(--display);
  line-height: .92;
  letter-spacing: -.02em;
  padding: 3.5cqw 3.5cqw 1.5cqw;
  overflow-wrap: anywhere;
}
.id-frase { font: 700 4cqw/1.25 var(--sans); padding: 0 3.5cqw 3.5cqw; }
.id-sint {
  border-top: 4px solid var(--ink);
  padding: 2.6cqw 3.5cqw 7cqw;
  font: 700 3.3cqw/1.5 var(--mono);
}
.id-sint small { display: block; font-size: 2.7cqw; opacity: .65; }


/* ------------------------------------------------------------ compartilhar */

.sheet {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(13,13,13,.86);
  display: flex; align-items: center; justify-content: center;
  padding: 5cqw;
}
.sheet-card {
  width: 100%; max-height: 100%;
  display: flex; flex-direction: column; gap: 3cqw;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--acid);
  padding: 4cqw;
}
.sheet-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; height: 62cqh; }
.sheet-img img { max-height: 100%; max-width: 100%; border: 3px solid var(--ink); }
.sheet-img .wait { font: 700 4cqw var(--mono); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.sheet .btns { margin-top: 0; }
.sheet .btn.full { background: var(--acid); }
.sheet-hint { font: 3cqw var(--mono); text-align: center; opacity: .7; }

/* o story é clonado aqui (540x960, sem animações) e vira PNG 1080x1920 */
.export {
  position: fixed; left: -10000px; top: 0;
  width: 540px; height: 960px;
  container-type: size;
  overflow: hidden;
  pointer-events: none;
}
.export .story { display: flex; }
.export *, .export *::before, .export *::after { animation: none !important; transition: none !important; }
.export .wm {
  position: absolute; z-index: 5; top: 26px; left: 7cqw; right: 7cqw;
  display: flex; justify-content: space-between; align-items: center;
  font: 700 15px var(--mono);
}
.export .wm b { font: 17px var(--display); background: var(--ink); color: var(--acid); padding: 3px 8px; }
.export .wm span { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 2px 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.s-signo.dark .box { box-shadow: 7px 7px 0 var(--paper); }
.s-signo.dark .sign-meta span { border-color: var(--paper); }

/* fundo da persona: imagem 1080x1920 (personas.js) ou, sem ela, o emoji repetido */
.s-persona > :not(.persona-bg):not(.persona-emoji) { position: relative; z-index: 1; }
.persona-bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.persona-emoji {
  position: absolute; inset: -10%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  place-items: center;
  transform: rotate(-12deg);
  opacity: .28;
  pointer-events: none;
}
.persona-emoji span { font-size: 17cqw; line-height: 1; }
.persona-emoji span:nth-child(odd) { transform: rotate(18deg) scale(.8); }
.persona-emoji span:nth-child(3n) { transform: rotate(-22deg) scale(1.15); }
.story.active .persona-emoji { animation: emoji-drift 12s linear infinite alternate; }
@keyframes emoji-drift { to { transform: rotate(-12deg) translateY(-6%); } }

/* trechinho de letra */
.lyric {
  position: relative;
  width: 100%;
  padding: 9cqw 5cqw 5cqw;
  transform: rotate(-2deg);
  text-align: left;
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.lyric::before {
  content: '“';
  position: absolute; top: -7cqw; left: 3cqw;
  font: 30cqw/1 var(--display);
  color: var(--pink);
  -webkit-text-stroke: 4px var(--ink);
}
.lyric p + p { margin-top: 2.2cqw; }

/* passaporte musical */
.flag-pic { width: 58cqw; aspect-ratio: 3 / 2; border: 5px solid var(--ink); box-shadow: 10px 10px 0 var(--acid); background: var(--paper) center / cover no-repeat; transform: rotate(-3deg); }
.pstamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 3cqw 4cqw; margin-top: 2cqw; }
.pstamp { display: flex; align-items: center; gap: 2cqw; border: 3px dashed var(--acid); color: var(--acid); border-radius: 2cqw; padding: 1.6cqw 2.6cqw; font: 700 3.3cqw var(--mono); text-transform: uppercase; }
.pstamp i { width: 8cqw; aspect-ratio: 3 / 2; background: center / cover no-repeat; border: 2px solid var(--ink); flex: none; }
.pstamp span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.pstamp b { font-size: 4.4cqw; }

/* ficha de RPG */
.rpg-intro { margin-top: 2cqw; font-size: 3.4cqw; font-weight: 700; line-height: 1.25; opacity: .75; }
.rpg-head { border: 4px solid var(--ink); background: var(--acid); padding: 3cqw 3.5cqw; box-shadow: 7px 7px 0 var(--ink); text-align: center; }
.rpg-art { display: block; width: 46cqw; aspect-ratio: 1; margin: -1cqw auto 1cqw; }
.rpg-attrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw 3cqw; margin: 4.5cqw 0 3.5cqw; font: 700 3.6cqw var(--mono); }
.rpg-attrs div { border-bottom: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent); padding-bottom: .8cqw; }
.rpg-attrs small { display: block; font-size: 2.5cqw; opacity: .6; text-transform: uppercase; }
.rpg-rows { display: flex; flex-direction: column; gap: 2.2cqw; }
.rpg-row { display: grid; grid-template-columns: 23cqw 1fr; gap: 2.5cqw; align-items: start; border-top: 3px solid var(--ink); padding-top: 2cqw; }
.rpg-row > b { font: 700 2.9cqw var(--mono); padding-top: .5cqw; }
.rpg-row span { font-size: 3.6cqw; font-weight: 700; line-height: 1.25; }
.rpg-row strong { display: block; font: 4.6cqw/1.05 var(--display); margin-bottom: .6cqw; overflow-wrap: anywhere; }

/* alinhamento */
.al-wrap { display: grid; grid-template-columns: 5cqw 1fr; grid-template-rows: auto 1fr; gap: 1.5cqw; margin-top: 5cqw; }
.al-axis { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; font: 700 2.4cqw var(--mono); opacity: .85; text-transform: uppercase; }
.al-axis span { font: 3cqw var(--display); opacity: 1; }
.al-x { grid-column: 2; }
.al-y { grid-row: 2; writing-mode: vertical-rl; transform: rotate(180deg); flex-direction: row-reverse; }
.al-grid { grid-column: 2; grid-row: 2; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); aspect-ratio: 1; border: 4px solid var(--ink); background: var(--paper); box-shadow: 7px 7px 0 var(--ink); }
.al-cell { display: grid; place-items: start center; padding-top: 1.6cqw; text-align: center; font: 2.7cqw/1.05 var(--display); color: color-mix(in srgb, var(--ink) 45%, transparent); border: 2px solid var(--ink); }
.al-cell.on { background: var(--acid); color: var(--ink); }
.al-pin { position: absolute; width: 10cqw; aspect-ratio: 1; transform: translate(-50%, -50%); }
.al-pin i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--ink); background: var(--pink) center/cover; box-shadow: 3px 3px 0 var(--ink); }
.story.active .al-pin i { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) .7s both; }
.al-why { margin-top: 5cqw; font-size: 3.2cqw; font-weight: 700; line-height: 1.5; }

/* contato */
.contact { margin-top: 32px; font: 700 13px var(--mono); opacity: .75; text-align: center; overflow-wrap: anywhere; }
.contact a { color: var(--ink); }

/* escada de popularidade: poser (popular) → cult (obscuro) */
.steps { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1.6cqw; align-items: end; height: 22cqw; }
.steps i {
  position: relative; height: calc(6cqw + var(--k) * 2.6cqw);
  border: 4px solid var(--ink); background: var(--paper);
  transform-origin: bottom;
}
.steps i.on { background: var(--ink); }
.steps i.me { background: var(--acid); box-shadow: 5px 5px 0 var(--ink); }
.steps i span {
  position: absolute; bottom: calc(100% + 2cqw); left: 50%; transform: translateX(-50%) rotate(-6deg);
  font: 700 3cqw var(--mono); background: var(--ink); color: var(--acid); padding: .8cqw 1.6cqw; white-space: nowrap;
}
.story.active .steps i { animation: stepUp .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: var(--d); }
@keyframes stepUp { from { transform: scaleY(0); } }
