/* droppad · feed em posts (versão leve): fundo preto, posts cinza, contornos discretos, tudo reto. */
:root {
  --bg: #000000;
  --post: #141414;
  --line: #2a2a2a;
  --line-2: #262626;
  --av-line: #333333;
  --ink: #ffffff;
  --txt-2: #e8e8e8;
  --muted: #8f8f8f;
  --dim: #5c5c5c;
  --day: #4d4d4d;
  --hot: #ff4d2e;
  --top-h: 60px;
  --post-w: 960px;
  --gap: 28px;
  /* um só easing e três durações no site inteiro */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .3s;
  --t-mid: .6s;
  --t-slow: .8s;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
/* a rolagem para com o post no centro da tela */
html { scroll-snap-type: y mandatory; }
body { font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--muted); }
a:hover { color: var(--ink); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- topo: some ao rolar pra baixo, volta ao rolar pra cima ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 32px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: #000; border-bottom: 1px solid var(--line-2); transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.top.hide { transform: translateY(-100%); opacity: 0; }
.seg { justify-self: start; display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); }
.seg button { padding: 6px 13px; font-size: 12px; font-weight: 600; color: #9a9a9a; white-space: nowrap; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.seg button[aria-pressed="true"] { background: #fff; color: #000; font-weight: 700; }
.seg button:not([aria-pressed="true"]):hover { color: #fff; }
.reg-sel { display: none; }
.logo { justify-self: center; display: block; height: 48px; }
.logo video { height: 48px; width: auto; display: block; pointer-events: none; }
.tools { justify-self: end; display: flex; gap: 8px; }
.cal { position: relative; display: flex; gap: 8px; }
.tool { position: relative; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.tool:hover { border-color: #555; }
.tool.sq { width: 34px; padding: 0; justify-content: center; }
.tool svg { width: 15px; height: 15px; flex: none; }
.cal.on .cal-btn { background: #fff; color: #000; border-color: #fff; }
.cal-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; color-scheme: dark; }
.cal-btn input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.cal-x { font-size: 12px; }
.i-on { display: none; }
.sound-on .i-on { display: block; }
.sound-on .i-off { display: none; }

/* ---------- data na lateral (parallax leve via JS) ---------- */
.day > span { display: block; overflow: hidden; }
.day > span > span { display: block; transform: translateY(0); transition: transform var(--t-slow) var(--ease); }
.day > span:nth-child(2) > span { transition-delay: 70ms; }
.day.swap > span > span { transform: translateY(105%); transition: none; }
.day { position: fixed; left: 32px; top: 84px; z-index: 1; display: flex; flex-direction: column; pointer-events: none;
  font: 900 56px/.92 var(--display); letter-spacing: 1px; color: var(--day); text-transform: uppercase; will-change: transform; }
@media (max-width: 1279px) { .day { display: none; } }

/* ---------- feed ---------- */
.timeline { width: 100%; padding: calc(var(--top-h) + 18px + env(safe-area-inset-top)) 0 0; }
#feed { display: flex; flex-direction: column; align-items: center; gap: var(--gap); }
.status { color: var(--muted); padding: 24px; margin: 0; text-align: center; font-size: 13px; }
.post { scroll-snap-align: center; scroll-snap-stop: always; width: min(var(--post-w), calc(100vw - 2 * 240px)); min-width: min(640px, calc(100vw - 2 * 24px)); background: var(--post); border: 1px solid var(--line);
  }
/* entrada: as partes do post aparecem em cascata (70ms), uma vez só */
.rv { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.in .rv { opacity: 1; transform: none; }
/* a imagem revela com uma máscara abrindo de baixo pra cima */
.post .media.rv { transform: none; opacity: 1; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.post.in .media.rv { clip-path: inset(0 0 0 0); }

.head { display: flex; align-items: center; gap: 12px; padding: 16px 10px 12px 18px; }
.av { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--av-line); background: #fff; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.ini { background: var(--hot); color: #000; font: 900 18px var(--display); letter-spacing: .5px; text-transform: uppercase; }
.who { flex: 1; min-width: 0; line-height: 1.3; }
.who b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who b i { font-style: normal; font-weight: 500; color: var(--muted); }
.who small { display: block; font-size: 12.5px; color: var(--muted); }
.who small a { color: inherit; text-decoration: none; }
.who small a:hover { color: var(--ink); }
.num { flex: none; font: 800 20px var(--display); letter-spacing: 1px; color: var(--dim); margin-right: 2px; white-space: nowrap; }
.more-btn { flex: none; width: 40px; height: 40px; color: var(--muted); display: grid; place-items: center; }
.more-btn:hover, .more-btn[aria-expanded="true"] { color: var(--ink); }
.more-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.txt-more { margin-left: 2px; padding: 0 4px; font-weight: 700; color: var(--ink); background: #2a2a2a; line-height: 1.2; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.txt-more:hover { background: var(--ink); color: #000; }
.txt.open { animation: pagein .5s var(--ease); }
.txt { margin: 0; padding: 0 18px 14px; font-size: 16px; line-height: 1.5; color: var(--txt-2); }

/* quadro do filme: sempre 16:9; a capa é um pouco maior que o quadro pra o parallax ter folga */
.media { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; color: #fff; }
.cover, .host, .host > div, .host iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.cover { z-index: 2; pointer-events: none; transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
/* hover: zoom mínimo dentro do próprio quadro */
@media (hover: hover) { .media:hover .cover { transform: scale(1.025); } }
.cover img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; display: block; will-change: transform; }
.playing .cover { opacity: 0; }
.host { z-index: 1; pointer-events: none; }
.playing .host { pointer-events: auto; z-index: 4; }
.poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8%; }
.poster span { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 6vw, 96px); line-height: .9; text-align: center; }
.stamp { position: absolute; left: 0; top: 0; z-index: 7; padding: 5px 10px 4px; background: var(--hot); color: #000; font: 900 15px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; pointer-events: none; }
.ptime { position: absolute; left: 18px; bottom: 14px; z-index: 7; padding: 4px 8px; background: rgba(0, 0, 0, .65); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.ptime:empty { display: none; }
.bigplay { position: absolute; left: 50%; top: 50%; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(0, 0, 0, .55);
  transition: opacity .3s, transform .3s; pointer-events: none; }
.bigplay::after { content: ""; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent #fff; }
.playing .bigplay { opacity: 0; transform: scale(.85); }
.playing.paused .bigplay { opacity: 1; transform: none; }
.loading .bigplay { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .6; } }
.fail { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); z-index: 4; padding: 8px 14px; background: rgba(0, 0, 0, .8); font-size: 13px; font-weight: 700; white-space: nowrap; display: none; }
.failed .fail { display: block; }
.mute { position: absolute; right: 14px; bottom: 12px; z-index: 7; width: 34px; height: 34px; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; }
.mute:hover { color: var(--hot); }
.mute svg { width: 16px; height: 16px; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 6; pointer-events: none; }
.bar i { display: block; height: 100%; width: 0; background: var(--hot); transition: width .3s linear; }
.fdots { position: absolute; left: 0; right: 0; top: 10px; z-index: 6; display: flex; justify-content: center; gap: 6px; }
.fdot { width: 8px; height: 8px; background: rgba(255, 255, 255, .45); }
.fdot.on { background: #fff; width: 20px; }
.is-card .media { cursor: default; }
/* a notícia, quando a campanha não tem filme */
.news { padding: 14px 18px 4px; }
.is-card .media + .news { padding-top: 16px; }
.news .stamp { position: static; display: inline-block; margin: 0 0 12px; }
.news h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.news-body p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--txt-2); }
.news-body:empty { display: none; }
.news-body { overflow: hidden; transition: max-height .5s var(--ease); }
.news-body.fechado { max-height: calc(14.5px * 1.6 * 3); -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.ver-mais { display: inline-block; margin: 4px 14px 10px 0; padding: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.ver-mais:hover { color: var(--hot); }
.news-more { display: inline-block; margin: 2px 0 10px; font-size: 13px; font-weight: 600; text-decoration: none; }

.acts { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-top: 1px solid var(--line); }
.act { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 600; transition: color var(--t-fast) var(--ease); }
.act:hover, .act[aria-expanded="true"] { color: var(--hot); }
.act svg { width: 20px; height: 20px; flex: none; }
.act .n { color: var(--muted); font-weight: 500; }
.link { margin-left: auto; padding: 0 12px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
/* links: sublinhado que se desenha da esquerda pra direita */
.link, .who small a, .news-more { background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px; background-origin: content-box;
  transition: color var(--t-fast) var(--ease), background-size var(--t-mid) var(--ease); }
.link:hover, .who small a:hover, .news-more:hover { background-size: 100% 1px; }

/* ---------- convite pra rolar ---------- */
.more-cue { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: 110px; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .85) 70%, #000 100%);
  color: #cfcfcf; pointer-events: none; }
.more-cue button { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.more-cue button:hover { color: #fff; }
.more-cue svg { width: 14px; height: 14px; stroke-width: 2; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.bob { animation: bob 1.1s ease-in-out infinite; }

.more { height: 1px; }
.end { scroll-snap-align: end; text-align: center; color: var(--muted); padding: 10vh 0 45vh; margin: 0; font-size: 13px; }
.newer { display: block; margin: 0 auto; padding: 9px 16px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.newer:hover { border-color: #555; }

/* ---------- menu de compartilhar ---------- */
.sharemenu { position: fixed; z-index: 60; width: 240px; background: var(--post); color: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
.sharelink { width: 100%; margin: 0; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); font: 500 12px var(--body); color: var(--muted); background: #0b0b0b; }
.shareitem { text-align: left; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.shareitem:hover, .shareitem:focus-visible { background: #222; color: var(--ink); }

/* ---------- comentários: abrem dentro do post, abaixo dos botões ---------- */
.cmts { overflow: hidden; height: 0; border-top: 1px solid transparent; transition: height .45s var(--ease), border-color var(--t-fast) var(--ease); }
.cmts.on { border-top-color: var(--line); }
.drawer-body { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.drawer-note { color: var(--muted); font-size: 13.5px; padding: 16px 20px; margin: 0; list-style: none; }
.cmt-list { list-style: none; margin: 0; padding: 0; }
.cmt-i { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cmt-av { flex: none; width: 32px; height: 32px; overflow: hidden; background: var(--hot); color: #000; border: 1px solid var(--av-line);
  display: flex; align-items: center; justify-content: center; font: 900 16px var(--display); }
.cmt-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmt-b { flex: 1; min-width: 0; }
.cmt-h { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.cmt-h span { color: var(--muted); font-size: 12px; }
.cmt-del { margin-left: auto; color: var(--muted); font-size: 12px; text-decoration: underline; }
.cmt-t { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--txt-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-form { border-top: 1px solid var(--line); padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
.cmt-form:empty { display: none; }
.cmt-ask { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; }
.cmt-logins { display: flex; gap: 8px; flex-wrap: wrap; }
.cmt-login { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13.5px; font-weight: 700; background: #fff; color: #111; }
.cmt-login.apple { background: #000; color: #fff; border: 1px solid var(--line); }
.cmt-in { width: 100%; resize: vertical; min-height: 72px; padding: 10px 12px; border: 1px solid var(--line); background: #0b0b0b; color: var(--ink); font: 14.5px/1.45 var(--body); }
.cmt-in:focus { outline: none; border-color: #555; }
.cmt-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cmt-me { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; }
.cmt-out { color: var(--muted); font-size: 12.5px; text-decoration: underline; }
.cmt-send { padding: 8px 16px; background: #fff; color: #000; font-size: 13px; font-weight: 700; }
.cmt-send:disabled { opacity: .5; }

/* ---------- card do fim do filme ---------- */
.endcard { position: absolute; inset: 0; z-index: 8; display: none; align-items: center; justify-content: center; overflow-y: auto;
  padding: clamp(16px, 4%, 48px); background: rgba(0, 0, 0, .94); cursor: default; }
.ended .endcard { display: flex; animation: endin .45s ease; }
.ended .mute, .ended .bigplay, .ended .ptime { display: none !important; }
@keyframes endin { from { opacity: 0; } }
.end-in { width: min(100%, 720px); margin: auto 0; }
.end-k { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--hot); margin-bottom: 8px; }
.end-brand { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 54px); line-height: .92; text-transform: uppercase; }
.end-title { margin: 6px 0 0; font-weight: 700; font-size: clamp(14px, 1.4vw, 17px); color: rgba(255, 255, 255, .85); }
.end-idea { margin: 14px 0 0; font-size: clamp(14px, 1.5vw, 19px); line-height: 1.45; color: var(--txt-2); }
.end-cred { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.end-cred dt { color: var(--muted); }
.end-cred dd { margin: 0; font-weight: 700; }
.end-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.end-btn { padding: 8px 14px; background: #fff; color: #000; font-size: 13px; font-weight: 700; text-decoration: none; }
.end-btn:hover { color: #000; background: #ddd; }
.end-btn.share-end { display: inline-flex; align-items: center; gap: 6px; }
.end-btn.share-end svg { width: 15px; height: 15px; }
.end-btn.ghost { background: transparent; color: #fff; border: 1px solid #555; }
.toast { position: fixed; left: 50%; bottom: 120px; z-index: 50; transform: translate(-50%, 12px); padding: 9px 16px; border: 1px solid var(--line);
  background: var(--post); color: var(--ink); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Instagram e TikTok: vídeo em pé no centro, sobre preto ---------- */
.is-vert .media { container-type: size; }
.is-vert .host { pointer-events: auto; }
.is-vert .host > div:not(.igbox) { position: absolute !important; top: 0; bottom: 0; left: 50%; width: calc(100cqh * 9 / 16) !important; height: 100% !important;
  transform: translateX(-50%); overflow: hidden; background: #000; }
.is-vert .host iframe { position: absolute !important; border: 0; background: #000; }
.is-tt .host iframe { inset: 0; width: 100% !important; height: 100% !important; }
/* Instagram: o post inteiro, reduzido pra caber no quadro (a escala vem do JS) */
.is-ig .host > .igbox { left: 50%; top: 50%; bottom: auto; right: auto; width: 400px !important; height: var(--igh, 760px) !important; transform: translate(-50%, -50%) scale(.7); transform-origin: 50% 50%; background: #fff; overflow: hidden; }
.is-ig .host > .igbox iframe { inset: 0; width: 100% !important; height: 100% !important; background: #fff; }
.is-vert .cover { display: none; }
.is-vert .host { z-index: 3; }
.is-vert .bigplay, .is-vert .ptime, .is-vert .mute, .is-vert .bar { display: none !important; }

.newpill { position: fixed; left: 50%; top: calc(var(--top-h) + 10px); z-index: 40; transform: translateX(-50%); padding: 8px 16px;
  background: #fff; color: #000; font-size: 13px; font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); animation: endin .4s ease; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  :root { --top-h: 56px; --gap: 20px; }
  .top { padding: env(safe-area-inset-top) 10px 0; gap: 8px; }
  .seg { display: none; }
  .reg-sel { display: flex; align-items: center; gap: 4px; justify-self: start; position: relative; height: 34px; padding: 0 12px; border: 1px solid var(--line);
    font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
  .reg-sel select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
  .logo, .logo video { height: 40px; }
  .is-ig .media { aspect-ratio: 9 / 16; max-height: 72svh; }
  .cal-btn { width: 34px; padding: 0; justify-content: center; }
  .cal-btn span { display: none; }
  .tools .sound-btn { display: none; }
  .timeline { padding-top: calc(var(--top-h) + 10px + env(safe-area-inset-top)); }
  .post { width: calc(100vw - 20px); min-width: 0; }
  .head { gap: 10px; padding: 12px 4px 10px 12px; }
  .av { width: 36px; height: 36px; }
  .who b { font-size: 14.5px; }
  .who small { font-size: 12px; }
  .num { font-size: 18px; }
  .more-btn { width: 44px; height: 44px; }
  .txt { padding: 0 12px 12px; font-size: 15px; line-height: 1.45; }
  .stamp { font-size: 13px; }
  .ptime { left: 12px; bottom: 10px; font-size: 11.5px; }
  .mute { right: 10px; bottom: 10px; }
  .act { height: 44px; padding: 0 10px; font-size: 13.5px; }
  .link { display: none; }
  .more-cue { height: 100px; }
  .more-cue button { font-size: 11px; }
  .ended .media { aspect-ratio: auto; min-height: 56.25vw; }
  .ended .endcard { position: relative; inset: auto; padding: 18px 14px; }
  .end-idea { font-size: 14px; }
  .end-cred { font-size: 12.5px; margin-top: 12px; padding-top: 10px; }
  .end-acts { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .bob, .loading .bigplay { animation: none; }
  .top, .cover, .bigplay { transition: none; }
}

/* ---------- microdetalhes ---------- */
/* barra de leitura no topo: quanto do dia já foi visto */
.readbar { position: fixed; left: 0; top: 0; z-index: 30; height: 2px; width: 100%; background: var(--hot); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform var(--t-mid) var(--ease); pointer-events: none; }
/* grão parado por cima de tudo, bem leve */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* botões magnéticos: o deslocamento vem do JS (máx. 5px) */
.mag { transition: transform var(--t-mid) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
/* troca de filtro/data: fade curto no feed */
#feed { transition: opacity .35s var(--ease); }
#feed.swap { opacity: 0; transition: none; }
body { animation: pagein .35s var(--ease); }
@keyframes pagein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .rv, .post .media.rv { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .day > span > span { transform: none !important; transition: none !important; }
  .readbar, #feed, .mag, .link, .who small a { transition: none; }
  body { animation: none; }
  @media (hover: hover) { .media:hover .cover { transform: none; } }
}

/* voltar ao topo */
.to-top { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 25; width: 44px; height: 44px; display: grid; place-items: center;
  background: #141414; border: 1px solid var(--line); color: var(--ink); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: #555; }
.to-top svg { width: 18px; height: 18px; stroke-width: 2; }
@media (max-width: 760px) { .to-top { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 40px; height: 40px; } }
