:root {
  --ink: #0a0a0a;
  --paper: #fafafa;
  --soft: rgba(250, 250, 250, .42);
  --lime: #b9ff3d;
  --green: #22e36b;
  --mint: #19ffc8;
  --panel: #151515;
  --margin: 30px;
  --font: "Helvetica Neue", Helvetica, "Inter Tight", Arial, sans-serif;
  --ease-quad: cubic-bezier(.455, .03, .515, .955);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* site depois do "entrar" */
  --bg: #f5f2ee;
  --text: #57534e;
  --strong: #1c1917;
  --faint: #8a847c;
  --box: #e9e5df;
  --box-line: #dcd7cf;
  --card: #fdfcfa;
  --blue: #5aa9f2;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
}
@media (max-width: 900px) { :root { --margin: 20px; } }
@media (max-width: 420px) { :root { --margin: 15px; } }

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; }

html { background: var(--bg); color-scheme: light; scrollbar-width: none; }
html.dark { color-scheme: dark; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

p, h1, h2, h3, h4, dl, dd, dt, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { appearance: none; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; letter-spacing: inherit; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- peças compartilhadas ---------- */
.pill {
  align-items: center;
  background: var(--paper);
  border-radius: 50px;
  color: var(--ink);
  display: inline-flex;
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
  padding: 14px;
  white-space: nowrap;
  user-select: none;
}
.pill::after { background: currentColor; border-radius: 50%; content: ""; height: 6px; margin-left: 8px; width: 6px; }
.pill-ghost { background: rgba(250, 250, 250, .1); color: var(--paper); backdrop-filter: blur(10px); }
.pill-ghost::after { display: none; }
.letter { display: inline-block; will-change: transform; }
.word { display: inline-block; white-space: nowrap; }

.underlink { font-size: 14px; line-height: 14px; opacity: .7; position: relative; }
.underlink::before { background: currentColor; bottom: -2px; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: right; transition: transform .15s ease-in-out; width: 100%; }
.underlink:hover::before, .underlink:focus-visible::before { transform: scaleX(1); transform-origin: left; }

.dot { background: var(--paper); border-radius: 50%; display: inline-block; height: 8px; width: 8px; }

/* ---------- mascote ---------- */
.orb { border-radius: 50%; display: block; flex: none; }
.orb svg { display: block; height: 100%; overflow: visible; width: 100%; }
.orb-face, .orb-eyes { transition: transform .12s ease-out; }
.orb-eye { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.orb.is-squish svg { animation: squish .5s var(--ease-out); }
@keyframes squish { 0% { transform: scale(1); } 30% { transform: scale(1.18, .82); } 60% { transform: scale(.93, 1.07); } 100% { transform: scale(1); } }

/* ---------- intro ---------- */
.loader {
  align-items: center;
  background: #fbfaf8;
  color: #1c1917;
  font-family: var(--font);
  font-size: 18px;
  letter-spacing: -.04em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  padding: 0 var(--margin);
  position: fixed;
  cursor: pointer;
  will-change: clip-path;
  z-index: 1000;
}
.loader.is-leaving { transform: translateY(100%); }
.loader-stage { height: 150px; margin-bottom: 28px; position: relative; width: 300px; max-width: 100%; }
.loader-say { font-size: clamp(26px, 9vw, 46px); font-weight: 500; left: 50%; line-height: 1; opacity: 0; position: absolute; top: 50%; white-space: nowrap; }
.loader-orb { border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .75), 0 10px 24px -8px rgba(40, 30, 20, .35); height: 88px; left: 50%; margin: -44px 0 0 -44px; object-fit: cover; opacity: 0; position: absolute; top: 50%; width: 88px; }
.flyer { border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .75), 0 10px 24px -8px rgba(40, 30, 20, .35); height: 88px; left: 0; object-fit: cover; pointer-events: none; position: fixed; top: 0; width: 88px; z-index: 1001; }
.loader-text { font-size: 24px; font-weight: 500; line-height: 26px; margin-bottom: 0; max-width: 560px; text-align: center; text-wrap: balance; }
.loader-text .line { display: block; opacity: 0; }
.loader-text .line-soft { color: var(--soft); font-size: 18px; line-height: 22px; margin-top: 8px; }
.loader .enter { opacity: 0; pointer-events: none; transition: opacity .3s ease-out .2s; }
.loader .enter.show { opacity: 1; pointer-events: auto; }

/* ---------- página ---------- */
.col { margin: 0 auto; padding: 56px 0 72px; width: min(548px, calc(100% - 40px)); }

/* painel do topo */
.panel { background: #fbfaf8; border-radius: 4px 4px 0 0; display: flex; flex-direction: column; gap: 8px; height: 310px; justify-content: flex-end; overflow: hidden; padding: 20px 18px 62px; position: relative; }
.panel::after { background: linear-gradient(#fbfaf8 35%, rgba(251, 250, 248, 0) 100%); content: ""; height: 78px; z-index: 1; left: 0; pointer-events: none; position: absolute; right: 0; top: 0; }
.panel-tag { color: var(--faint); font-family: var(--mono); font-size: 11px; left: 18px; letter-spacing: -.2px; position: absolute; top: 14px; z-index: 2; }
.bub { border-radius: 18px; color: var(--strong); font-size: 14.5px; letter-spacing: -.1px; line-height: 1.38; max-width: 78%; opacity: 0; padding: 9px 13px; transform: translateY(12px) scale(.97); transition: opacity .35s, transform .45s var(--ease-out); }
.bub.show { opacity: 1; transform: none; }
.bub.in { align-self: flex-start; background: #efedea; border-bottom-left-radius: 5px; }
.bub.out { align-self: flex-end; background: #1c1917; border-bottom-right-radius: 5px; color: #fdfcfa; }
.bub.typing { align-self: flex-start; background: #efedea; display: flex; gap: 4px; padding: 13px 14px; }
.bub.typing i { animation: dotty 1s infinite; background: #9a948b; border-radius: 50%; height: 6px; width: 6px; }
.bub.typing i:nth-child(2) { animation-delay: .15s; }
.bub.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dotty { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.who { align-items: flex-end; display: flex; height: 88px; justify-content: space-between; margin-top: -44px; position: relative; z-index: 2; }
.who-photo { border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); display: block; height: 88px; margin-left: 2px; object-fit: cover; width: 88px; }

.head { color: var(--strong); font-size: clamp(38px, 10vw, 50px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; margin: 26px 0 26px; min-height: 1.5em; }
@media (max-width: 560px) { .head { min-height: 2.5em; } }
.doing { display: inline-block; height: 1.4em; line-height: 0; margin-left: .04em; vertical-align: -.5em; white-space: nowrap; }
.doing svg { color: var(--doing-light); display: block; fill: none; height: 100%; overflow: visible; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.05; width: auto; }
html.dark .doing svg { color: var(--doing-dark); }

.lead { font-size: 17px; letter-spacing: -.1px; line-height: 29px; margin-bottom: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.cta a { border-radius: 999px; font-size: 14.5px; font-weight: 550; letter-spacing: -.1px; padding: 9px 16px; transition: transform .2s var(--ease-out), background-color .2s; }
.cta a:hover { transform: translateY(-1px); }
.cta-main { background: var(--strong); color: #fdfcfa; }
.cta-ghost { background: var(--box); border: 1px solid var(--box-line); color: var(--strong); }
.mk { color: var(--strong); font-weight: 600; white-space: nowrap; }
.mk i, .mk img { border-radius: 4.5px; display: inline-block; height: 18px; margin: -3px 5px 0 0; vertical-align: middle; width: 18px; }
.mk img { object-fit: cover; }
.mk i { color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.mk img.emo { border-radius: 0; height: 21px; margin: -5px 4px 0 0; width: 21px; }

/* caixas */
.box { background: var(--box); border: 1px solid var(--box-line); border-radius: 16px; margin-bottom: 14px; }
.box-head { align-items: center; color: var(--strong); display: flex; font-size: 14.5px; font-weight: 550; gap: 8px; letter-spacing: -.1px; padding: 12px 14px; width: 100%; }
.ico { display: inline-flex; height: 20px; width: 20px; }
.ico img { height: 100%; width: 100%; }
.ico svg { height: 100%; width: 100%; }
.chev { color: var(--faint); height: 14px; margin-left: auto; transition: transform .3s var(--ease-out); width: 14px; }
.fold.open .chev { transform: rotate(180deg); }
.fold-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.fold.open .fold-body { grid-template-rows: 1fr; }
.fold-in { min-height: 0; overflow: hidden; }
.fold-pad { display: flex; flex-direction: column; gap: 6px; padding: 0 6px 6px; }

.item { background: var(--card); border: 1px solid #ebe7e0; border-radius: 11px; box-shadow: 0 1px 2px rgba(60, 50, 40, .05); padding: 14px 15px 15px; }
.item-top { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; }
.item h3 { color: var(--strong); font-size: 17px; font-weight: 550; letter-spacing: -.3px; }
.item time, .stack-meta { color: var(--faint); font-size: 12.5px; letter-spacing: -.1px; white-space: nowrap; }
.item p { font-size: 14.5px; letter-spacing: -.1px; line-height: 23px; margin-top: 6px; }
.item a { color: var(--faint); display: inline-block; font-size: 13px; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.item a:hover { color: var(--strong); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chips span { align-items: center; background: #f1eee9; border-radius: 7px; color: #4a453f; display: inline-flex; font-size: 13px; gap: 6px; letter-spacing: -.1px; padding: 4px 9px 4px 8px; }
.chips img { border-radius: 4px; height: 17px; margin-left: -3px; width: 17px; }

/* cartão empilhado */
.stack { padding-bottom: 18px; }
.stack-card { background: var(--card); border: 1px solid #ebe7e0; border-radius: 11px; box-shadow: 0 1px 2px rgba(60, 50, 40, .06), 0 8px 0 -4px #f6f3ef, 0 8px 0 -3px #d5cfc6, 0 15px 0 -8px #f1eee9, 0 15px 0 -7px #d5cfc6; display: block; margin: 0 6px; min-height: 152px; padding: 14px 15px; text-align: left; width: calc(100% - 12px); }
.stack-in { display: block; transition: opacity .28s, transform .35s var(--ease-out); }
.stack-in.out { opacity: 0; transform: translateY(-10px); }
.stack-in.pre { opacity: 0; transform: translateY(12px); transition: none; }
.stack-meta { display: block; }
.stack-big { color: var(--strong); display: block; font-size: 44px; font-variant-numeric: tabular-nums; font-weight: 560; letter-spacing: -.045em; line-height: 1.1; margin-top: 12px; }
.stack-text { display: block; font-size: 15px; letter-spacing: -.1px; margin-top: 6px; }

.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 30px; }
.links a { color: var(--faint); font-size: 13.5px; transition: color .2s; }
.links a:hover { color: var(--strong); }

/* ---------- vidro líquido ---------- */
.aura { inset: 0; overflow: hidden; pointer-events: none; position: fixed; z-index: 0; }
.aura i { border-radius: 50%; filter: blur(70px); opacity: .55; position: absolute; will-change: transform; }
.aura i:nth-child(1) { animation: drift1 26s ease-in-out infinite alternate; background: #9fd0ff; height: 46vmax; left: -12vmax; top: -10vmax; width: 46vmax; }
.aura i:nth-child(2) { animation: drift2 32s ease-in-out infinite alternate; background: #ffd2b0; height: 40vmax; right: -14vmax; top: 22vh; width: 40vmax; }
.aura i:nth-child(3) { animation: drift3 38s ease-in-out infinite alternate; background: #c9f2dc; bottom: -18vmax; height: 44vmax; left: 18vw; width: 44vmax; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(10vw, -12vh) scale(1.08); } }
.col { position: relative; z-index: 1; }

.glass { -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22)); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35), inset 1px 0 0 rgba(255, 255, 255, .5), inset -1px 0 0 rgba(255, 255, 255, .28), 0 1px 1px rgba(60, 45, 30, .04), 0 12px 32px -10px rgba(60, 45, 30, .16); position: relative; }
/* brilho de borda: mais forte em cima à esquerda e embaixo à direita */
.glass::before { background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, .7)); border-radius: inherit; content: ""; inset: 0; -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 1px; pointer-events: none; position: absolute; z-index: 3; }

.box.glass { border-radius: 22px; margin-bottom: 14px; }
.box-head { padding: 13px 16px; }
.fold-pad { padding: 0 7px 7px; }
.item { background: rgba(255, 255, 255, .68); border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px; box-shadow: 0 1px 2px rgba(60, 45, 30, .05), inset 0 1px 0 rgba(255, 255, 255, .9); }
.stack-card { background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .85); border-radius: 16px; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(60, 45, 30, .06), 0 8px 0 -4px rgba(255, 255, 255, .55), 0 15px 0 -8px rgba(255, 255, 255, .38); margin: 0 7px; width: calc(100% - 14px); }
.chips span { background: rgba(120, 100, 80, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }

.panel.glass { background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .3)); border-radius: 26px; }
.panel::after { display: none; }
.panel-tag { background: rgba(255, 255, 255, .55); border-radius: 999px; padding: 3px 9px; }
.bub.in { background: rgba(255, 255, 255, .8); box-shadow: 0 1px 2px rgba(60, 45, 30, .06); }
.bub.typing { background: rgba(255, 255, 255, .8); }
.bub.out { background: #2b7cf6; color: #fff; }
.who-photo { box-shadow: 0 0 0 4px rgba(255, 255, 255, .75), 0 10px 24px -8px rgba(40, 30, 20, .35); margin-left: 14px; }

.cta a { border-radius: 11px; padding: 10px 16px; }
.cta-main { background: linear-gradient(#34322f, #1c1917); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 20px -8px rgba(28, 25, 23, .55); }
.cta-ghost.glass { border-radius: 11px; }

/* três números, sem caixa nem título */
.stats { border-bottom: 1px solid rgba(60, 45, 30, .12); border-top: 1px solid rgba(60, 45, 30, .12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 30px; padding: 18px 0 17px; }
.stat { padding: 0 16px; }
.stat:first-child { padding-left: 2px; }
.stat + .stat { border-left: 1px solid rgba(60, 45, 30, .12); }
.stat dt { color: var(--strong); font-size: 27px; font-variant-numeric: tabular-nums; font-weight: 560; letter-spacing: -.04em; line-height: 1.1; }
.stat dd { font-size: 13.5px; letter-spacing: -.1px; line-height: 1.35; margin-top: 5px; }
.stat-who { align-items: center; color: var(--faint); display: flex; font-size: 12.5px; gap: 5px; margin-top: 7px; }
.stat-who img { border-radius: 3.5px; height: 14px; width: 14px; }
@media (max-width: 420px) { .stat { padding: 0 10px; } .stat dt { font-size: 22px; } }

/* recado escrito à mão, com seta, apontando para o botão do GitHub. Desenha uma vez só. */
.cta { align-items: center; }
.scribble { align-items: flex-end; color: #8f887f; display: inline-flex; font-family: var(--hand); font-size: 23px; font-weight: 600; gap: 4px; line-height: 1; margin-left: 6px; pointer-events: none; transform: rotate(-4deg) translateY(-9px); white-space: nowrap; }
.scribble svg { fill: none; flex: none; height: 36px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; width: 58px; }
.scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.scribble span { clip-path: inset(-20% 100% -20% 0); padding: 0 6px 14px 0; }
.scribble.go span { clip-path: inset(-20% -12% -20% 0); transition: clip-path .9s cubic-bezier(.45, 0, .2, 1); }
.scribble.go path { animation: ink .55s cubic-bezier(.6, 0, .3, 1) .85s forwards; }
.scribble.go path + path { animation-delay: 1.35s; animation-duration: .25s; }
.scribble.go svg { animation: nudge .5s ease-in-out 1.65s 2; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes nudge { 50% { transform: translateX(-5px); } }
@media (max-width: 520px) { .scribble { display: none; } }

@media (prefers-reduced-transparency: reduce) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: #f1ede7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- modo escuro: segue a configuração do computador de quem visita ---------- */
/* O tema escuro é ligado pela classe "dark" no <html>, que um script no topo da página
   define a partir da configuração do computador de quem visita. */
html.dark { --bg: #0e0f12; --text: #a8a49d; --strong: #f4f2ee; --faint: #7f7b74; --box: #1a1b1f; --box-line: #2a2b30; --card: #1c1d21; --blue: #6fb7ff; }
html.dark .aura i { opacity: .3; }
html.dark .aura i:nth-child(1) { background: #2259c4; }
html.dark .aura i:nth-child(2) { background: #b25a2c; }
html.dark .aura i:nth-child(3) { background: #1f8a5e; }
html.dark .glass { background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 1px 0 0 rgba(255, 255, 255, .07), inset -1px 0 0 rgba(255, 255, 255, .04), 0 14px 36px -12px rgba(0, 0, 0, .7); }
html.dark .glass::before { background: linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .22)); }
html.dark .item { background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
html.dark .stack-card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 0 -4px rgba(255, 255, 255, .05), 0 15px 0 -8px rgba(255, 255, 255, .035); }
html.dark .chips span { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); color: #d8d4cd; }
html.dark .chips img, html.dark .mk img:not(.emo) { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
html.dark .panel.glass { background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); }
html.dark .panel-tag { background: rgba(255, 255, 255, .08); }
html.dark .bub.in, html.dark .bub.typing { background: rgba(255, 255, 255, .13); box-shadow: none; }
html.dark .bub.typing i { background: #b9b4ac; }
html.dark .who-photo { box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 10px 24px -8px rgba(0, 0, 0, .7); }
html.dark .cta-main { background: linear-gradient(#ffffff, #e6e2db); box-shadow: inset 0 1px 0 #fff, 0 8px 22px -8px rgba(0, 0, 0, .7); color: #1c1917; }
html.dark .scribble { color: #8b867e; }
html.dark .stats, html.dark .stat + .stat { border-color: rgba(255, 255, 255, .11); }
html.dark .stat-who img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
html.dark .loader { background: #050506; color: #fafafa; }
html.dark .loader-orb, html.dark .flyer { box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 10px 24px -8px rgba(0, 0, 0, .7); }
@media (prefers-reduced-transparency: reduce) {
  html.dark .glass { background: #1a1b1f; }
}

/* ---------- fundos do tema escuro (data-bg no <html>) ---------- */
html.dark[data-bg] .aura i { display: none; }
html.dark[data-bg="1"] { --bg: #0b0b0d; }
html.dark[data-bg="1"] .aura { background: radial-gradient(120% 75% at 50% -12%, rgba(255, 255, 255, .11), rgba(255, 255, 255, 0) 60%); }
html.dark[data-bg="2"] { --bg: #06080e; }
html.dark[data-bg="2"] .aura { background: radial-gradient(95% 70% at 50% -12%, rgba(64, 120, 255, .36), rgba(64, 120, 255, 0) 62%), radial-gradient(60% 50% at 88% 112%, rgba(64, 120, 255, .14), rgba(64, 120, 255, 0) 70%); }
html.dark[data-bg="3"] { --bg: #09090b; }
html.dark[data-bg="3"] .aura { background: radial-gradient(80% 60% at 50% -10%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 65%); }
html.dark[data-bg="3"] .aura::before { background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.5px); background-size: 22px 22px; content: ""; inset: 0; -webkit-mask-image: radial-gradient(90% 75% at 50% 0%, #000 20%, transparent 80%); mask-image: radial-gradient(90% 75% at 50% 0%, #000 20%, transparent 80%); position: absolute; }
html.dark[data-bg="4"] { --bg: #110f0d; }
html.dark[data-bg="4"] .aura { background: radial-gradient(80% 65% at 18% -8%, rgba(255, 176, 110, .2), rgba(255, 176, 110, 0) 62%), radial-gradient(70% 60% at 100% 100%, rgba(255, 140, 90, .08), rgba(255, 140, 90, 0) 70%); }
html.dark[data-bg="4"] .aura::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); content: ""; inset: 0; mix-blend-mode: overlay; opacity: .5; position: absolute; }
html.dark[data-bg="5"] { --bg: #07070c; }
html.dark[data-bg="5"] .aura i:nth-child(1) { background: #4c5fe6; display: block; height: 52vmax; left: 50%; margin-left: -26vmax; opacity: .34; top: -30vmax; width: 52vmax; }

/* seletor temporário de fundo (só aparece com ?fundos na URL) */
.bg-pick { align-items: center; background: rgba(20, 20, 24, .8); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; color: #f4f2ee; display: flex; font-size: 12.5px; gap: 4px; padding: 6px 8px 6px 12px; position: fixed; right: 16px; top: 16px; z-index: 50; }
.bg-pick button { border-radius: 8px; color: #cfcac2; padding: 5px 10px; }
.bg-pick button.on { background: #f4f2ee; color: #111; font-weight: 600; }

/* ---------- baralho de destaques e painéis (mesma estrutura e medidas da referência) ---------- */
:root { --chrome: #ede9e5; --chrome-line: rgba(26, 23, 20, .07); --sheet: #fffefc; --sheet-line: rgba(26, 23, 20, .09); --sheet-shadow: 0 1px 2px rgba(26, 23, 20, .05), 0 1px 1px rgba(26, 23, 20, .03);
  --t-heading: #1a1714; --t-primary: #2c2825; --t-secondary: #5c554e; --t-muted: #656d79; --stack-ease: cubic-bezier(.23, 1, .32, 1); }
html.dark { --chrome: #151413; --chrome-line: rgba(245, 242, 238, .07); --sheet: #1f1d1c; --sheet-line: rgba(245, 242, 238, .1); --sheet-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --t-heading: #f5f2ee; --t-primary: rgba(237, 233, 227, .85); --t-secondary: #b5afa7; --t-muted: #9ca3af; }
.stack-home { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.stack-panels { display: flex; flex-direction: column; gap: 12px; }
.stack-deck { isolation: isolate; outline: none; padding: 0 0 16px; position: relative; }
.stack-deck:focus-visible { border-radius: 20px; outline: 2px solid var(--t-heading); outline-offset: 6px; }
.stack-swiper__wrapper { display: grid; list-style: none; margin: 0; padding: 0; }
.stack-card, .stack-panel { background: var(--chrome); border: 1px solid var(--chrome-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(26, 23, 20, .04); padding: 5px; position: relative; }
.stack-deck .stack-card { backface-visibility: hidden; border-color: color-mix(in oklab, var(--t-heading) 10%, transparent); box-shadow: 0 1px 2px rgba(26, 23, 20, .05); display: flex; flex-direction: column; grid-area: 1 / 1; height: auto; transform-origin: center bottom; transition: transform .42s var(--stack-ease), opacity .42s var(--stack-ease), visibility 0s linear .42s; will-change: transform, opacity; }
.stack-deck .stack-card.is-active { transition: transform .42s var(--stack-ease), opacity .42s var(--stack-ease); }
html.dark .stack-deck .stack-card { box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.stack-card__bar { align-items: center; display: flex; gap: 16px; justify-content: space-between; padding: 7px 10px 9px; }
.stack-card__title, .stack-panel__title { align-items: center; color: var(--t-heading); display: inline-flex; font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 24px; margin: 0; }
.stack-emoji { flex: none; font-family: Inter, system-ui, sans-serif; font-size: 11.5px; line-height: 1; margin-right: 4px; }
.stack-panel { padding-bottom: 0; padding-top: 0; transition: border-color .24s; }
.stack-panel[open]:not(.is-closing) { border-color: color-mix(in oklab, var(--t-heading) 12%, transparent); }
.stack-panel__summary { align-items: center; cursor: pointer; display: flex; gap: 16px; justify-content: space-between; list-style: none; padding: 10px; }
.stack-panel__summary::-webkit-details-marker { display: none; }
.stack-panel__summary:focus-visible { border-radius: 12px; outline: 2px solid var(--t-heading); outline-offset: 2px; }
.stack-panel__chevron { color: var(--t-muted); flex: none; transition: transform .28s var(--stack-ease), color .18s ease; }
.stack-panel__summary:hover .stack-panel__chevron { color: var(--t-heading); }
.stack-panel[open]:not(.is-closing) .stack-panel__chevron { transform: rotate(180deg); }
.stack-panel__body { padding-bottom: 5px; }
.stack-card__sheet, .stack-panel__sheet { background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 14px; box-shadow: var(--sheet-shadow); }
.stack-card__sheet { display: flex; flex: 1 1 0%; flex-direction: column; padding: 15px 16px 14px; }
.stack-panel__sheet { list-style: none; margin: 0; padding: 4px 16px; }
.stack-slide__meta { align-items: center; color: var(--t-muted); display: flex; font-size: 13px; gap: 6px; line-height: 20px; margin: 0; }
.stack-slide__meta .stack-logo { border-radius: 4px; font-size: 10px; height: 18px; width: 18px; }
.stack-slide__title { color: var(--t-heading); display: block; font-size: 18px; font-weight: 500; line-height: 26px; margin-top: 8px; }
.stack-slide__desc { color: var(--t-secondary); font-size: 15px; line-height: 24px; margin: 4px 0 0; }
.stack-card__foot { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.stack-card__more { color: var(--t-muted); cursor: pointer; font-size: 13px; }
.stack-entry { align-items: baseline; display: flex; font-size: 15px; gap: 16px; line-height: 24px; padding: 8px 0; }
.stack-entry__title { color: var(--t-primary); flex: 1 1 0%; min-width: 0; }
.stack-entry__meta { color: var(--t-muted); flex: none; font-size: 13px; white-space: nowrap; }
.stack-entry--rich { align-items: flex-start; }
.stack-entry--rich + .stack-entry--rich { border-top: 1px solid var(--sheet-line); }
.stack-entry--rich .stack-entry__meta { margin-top: 2px; }
.stack-logo { align-items: center; border-radius: 6px; color: var(--t-secondary); display: flex; flex: none; font-size: 13px; font-weight: 600; height: 28px; justify-content: center; object-fit: contain; width: 28px; }
.stack-logo--framed { border: 1px solid var(--sheet-line); }
.stack-entry__body { display: flex; flex: 1 1 0%; flex-direction: column; min-width: 0; }
.stack-entry__body .stack-entry__title { flex: none; }
.stack-entry__desc { color: var(--t-muted); font-size: 13px; line-height: 20px; }
.stack-home .home-link { text-decoration: none; transition: opacity .18s ease; }
.stack-home a.home-link:hover, .stack-home button.home-link:hover { opacity: .62; }
.stack-home .home-link:focus-visible { border-radius: 4px; outline: 2px solid var(--t-heading); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .stack-panel, .stack-panel__chevron, .stack-deck .stack-card { transition: none; } }
/* neutraliza as regras antigas de mesmo nome (pilha da versão anterior do site) */
.stack-deck .stack-card, html.dark .stack-deck .stack-card { background: var(--chrome); border-radius: 18px; justify-self: stretch; margin: 0; max-width: none; padding: 5px; width: auto; }
html.dark .stack-deck .stack-card { border-color: color-mix(in oklab, var(--t-heading) 10%, transparent); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
/* capa do topo com cantos retos, como na referência */
.panel, .panel.glass, .panel.glass::before, .panel .cover-scenes, .panel .cover-scene { border-radius: 0; }
/* Cartões na cor do fundo: mesma receita da referência (uma fração da tinta sobre o fundo), mas translúcida,
   para acompanhar o fundo colorido da página em vez de um bege fixo. */
:root { --chrome: rgba(26, 23, 20, .05); --sheet: rgba(255, 255, 255, .78); }
html.dark { --chrome: rgba(245, 242, 238, .045); --sheet: rgba(245, 242, 238, .06); --sheet-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.stack-card, .stack-panel { -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
/* no baralho os cartões de trás não podem aparecer através do da frente */
.stack-deck .stack-card, html.dark .stack-deck .stack-card { background: linear-gradient(var(--chrome), var(--chrome)), var(--bg); }
.stack-entry__tech { color: var(--t-secondary); margin-top: 4px; }
