/* CEDP — cores do logo: vermelho do coração, azul da Providência e azul-marinho, sobre fundo claro */
:root {
  --bg: #F3F6FA;
  --deep: #EEF3F9;
  --surface: #FFFFFF;
  --raised: #EAF0F7;
  --line: #DCE3EC;
  --line-strong: #A9B6C6;
  --text: #13233D;
  --muted: #55657C;
  --faint: #7A889C;
  --red: #D9063D;
  --red-hover: #B0042F;
  --red-text: #C8073A;
  --red-soft: #FDECF0;
  --ok: #1E8E4E;
  --navy: #0B2447;
  --blue: #0B5CAD;
  --sky: #0BB5F0;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.narrow { max-width: 640px; }
.pad { padding-top: 48px; padding-bottom: 80px; }
.pad-top { padding-top: 88px; }
.pad-bottom { padding-bottom: 88px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.stack > p, .stack-sm > p, .stack-lg > p { margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > .field { flex: 1 1 160px; }
.row > .grow2 { flex: 2 1 280px; }
.align-end { align-items: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.split > .grow { flex: 999 1 600px; }
.split > .side { flex: 1 1 340px; min-width: 0; }
/* Coluna lateral à esquerda (página de eventos). Só quando as duas colunas
   cabem lado a lado (600 + 340 + 28 de espaço + 64 de margem = 1032px);
   no celular, os detalhes do evento continuam em cima. */
@media (min-width: 1032px) { .split-side-left > .side { order: -1; } }
.push { margin-left: auto; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; margin: 0; overflow-wrap: anywhere; }

/* Tipografia */
.display { font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 8vw, 124px); line-height: .95; letter-spacing: -.03em; margin: 0; }
.h1 { font-family: var(--serif); font-weight: 700; font-size: 48px; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.15; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.25; margin: 0; }
.motto { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.2; margin: 0; }
.lead { font-size: 18px; color: var(--muted); margin: 0; max-width: 680px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-text); }
.muted-eyebrow { color: var(--muted); letter-spacing: .08em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.red-txt { color: var(--red-text); }
.ok-txt { color: var(--ok); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.big-code { font-size: 20px; padding: 2px 8px; background: var(--deep); border-radius: 6px; }
.big-num { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1; margin: 0; color: var(--red-text); }
.intro { display: flex; flex-direction: column; gap: 10px; }

/* Cabeçalho e rodapé */
.hdr { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(11, 36, 71, .03), 0 8px 24px -18px rgba(11, 36, 71, .35); }
.hdr::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--red) 0 50%, var(--sky) 50%, var(--blue)); }
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a { padding: 10px 14px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.hdr-right { display: flex; align-items: center; gap: 10px; }
/* Telas médias (notebook): menu um pouco mais compacto para o perfil caber na mesma linha. */
@media (min-width: 1000px) and (max-width: 1279px) {
  .hdr-in { column-gap: 16px; }
  .nav a { padding-left: 11px; padding-right: 11px; }
}
.hdr-right form { margin: 0; }
.staff-count, .notification-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font: 700 12px var(--sans); }
.staff-count { margin-left: 7px; }
.notification-wrap { position: relative; }
.notification-toggle { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--surface); }
.notification-toggle:hover, .notification-toggle[aria-expanded="true"] { color: var(--red-text); background: var(--raised); }
.notification-count { position: absolute; right: -5px; top: -5px; }
.notification-panel { position: absolute; right: 0; top: calc(100% + 14px); width: min(400px, calc(100vw - 24px)); max-height: min(660px, calc(100dvh - 110px)); overflow-y: auto; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 18px 50px rgba(11, 36, 71, .22); z-index: 80; }
.notification-head, .notification-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.notification-head { border-bottom: 1px solid var(--line); }
.notification-sound { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 600 13px var(--sans); white-space: nowrap; cursor: pointer; }
.notification-sound:hover { background: var(--raised); }
.notification-sound[aria-pressed="false"] { color: var(--muted); }
.notification-sound[hidden] { display: none; }
.notification-toggle.is-ringing svg { transform-origin: 50% 10%; animation: nn-sino .9s ease-in-out; }
@keyframes nn-sino { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-7deg); } 75% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .notification-toggle.is-ringing svg { animation: none; } }
.notification-footer { border-top: 1px solid var(--line); }
.notification-list { list-style: none; padding: 0; margin: 0; }
.notification-item + .notification-item { border-top: 1px solid var(--line); }
.notification-open { display: flex; gap: 12px; align-items: center; width: 100%; padding: 16px; background: transparent; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.notification-open:hover { background: var(--raised); }
.notification-open > span:not(.badge):not(.notification-dot) { min-width: 0; flex: 1; }
.notification-text { display: block; overflow-wrap: anywhere; font-size: 14px; }
.notification-open small { display: block; margin-top: 4px; font-size: 13px; }
.notification-item.is-unread { background: var(--red-soft); }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-text); flex: none; }
.notification-status { padding: 12px 16px; margin: 0; }
.staff-pending-notice { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; color: var(--text); text-decoration: none; background: var(--red-soft); }
.staff-count[hidden], .notification-count[hidden], .notification-panel[hidden], .staff-pending-notice[hidden], .notification-status[hidden], .tab-mark[hidden] { display: none; }
.me { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; padding: 4px 8px 4px 4px; border-radius: 12px; }
.me:hover { background: var(--surface); color: var(--text); }
.me-txt { display: flex; flex-direction: column; line-height: 1.2; }
.me-txt small { color: var(--muted); font-size: 13px; }
.ftr { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.ftr-in p { margin: 0; font-size: 14px; max-width: 620px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--red); background: var(--red); color: #fff; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--red-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-presence-confirmed { background: transparent; border-color: rgba(217, 6, 61, .3); color: var(--text); }
.btn-presence-confirmed:hover { background: var(--red-soft); border-color: rgba(217, 6, 61, .6); color: var(--text); }
.btn-danger { color: var(--red-text); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 8px 6px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Cartões */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card.empty { text-align: center; padding: 40px; }
.box { background: var(--bg); border-radius: 12px; padding: 16px; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
details > summary { cursor: pointer; font-weight: 600; min-height: 32px; }
details[open] > summary { margin-bottom: 12px; }

/* Mensagens */
.flash { margin: 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
main > .flash { max-width: 1176px; margin: 20px auto 0; }
.flash-ok { border-color: #9FD3B2; background: #E9F7EF; }
.flash-err { border-color: var(--red-text); background: var(--red-soft); }
.flash-warn { border-color: var(--red-text); background: var(--red-soft); }
.flash-info { background: var(--raised); border-color: var(--line); }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; margin: 0; }
fieldset.field { border: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.field small { font-weight: 400; font-size: 13px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=file]):not([type=color]):not([type=range]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-weight: 400; font-size: 16px; color-scheme: light;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red-text); outline-offset: 0; border-color: transparent; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--red); margin: 0; flex: none; }

/* Opções (rádio e checkbox estilizados) */
.opt { position: relative; display: inline-flex; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span { border: 1px solid var(--line-strong); background: var(--bg); color: var(--muted); transition: background .12s, border-color .12s; }
.opt:hover > span { border-color: var(--text); }
.opt input:checked + span { background: var(--red-soft); border-color: var(--red-text); color: var(--text); }
.opt input:focus-visible + span { outline: 2px solid var(--red-text); outline-offset: 2px; }
.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.opt input:checked + .opt-card .badge { background: var(--red); color: #fff; }
.stack-sm > .opt, .opt-grid > .opt { display: flex; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { display: inline-flex; align-items: center; min-height: 44px; min-width: 60px; justify-content: center; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--red-soft); border-color: var(--red-text); color: var(--text); }
.seg { display: flex; gap: 8px; }
.seg .opt { flex: 1 1 0; }
.seg .opt > span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: 10px; font-weight: 600; font-size: 15px; }
/* Cores das respostas do evento: Vou = verde-lima, Talvez = amarelo, Não vou = vermelho */
.resp-vou { --ans: #1E9E50; --ans-dim: rgba(30, 158, 80, .45); --ans-soft: rgba(30, 158, 80, .1); --ans-glow: rgba(30, 158, 80, .25); }
.resp-talvez { --ans: #C98A00; --ans-dim: rgba(201, 138, 0, .45); --ans-soft: rgba(250, 190, 30, .14); --ans-glow: rgba(201, 138, 0, .25); }
.resp-nao { --ans: #D9063D; --ans-dim: rgba(217, 6, 61, .45); --ans-soft: rgba(217, 6, 61, .08); --ans-glow: rgba(217, 6, 61, .25); }
.seg .resp > span { color: var(--ans); border-color: var(--ans-dim); }
.seg .resp:hover > span { border-color: var(--ans); }
.seg .resp input:checked + span { background: var(--ans-soft); border-color: var(--ans); color: var(--ans); box-shadow: 0 0 0 1px var(--ans), 0 0 16px var(--ans-glow); }
.seg .resp input:focus-visible + span { outline-color: var(--ans); }

/* Selos de classe e etiquetas */
.badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--raised); color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.badge-red { background: var(--red); color: #fff; }
.badge-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 16px; }
.badge-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.tag { align-self: flex-start; display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--raised); font-size: 13px; font-weight: 600; color: var(--red-text); white-space: nowrap; }
.who { display: flex; align-items: center; gap: 14px; }
.who > div { display: flex; flex-direction: column; min-width: 0; }
.who-name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.who-row { display: flex; align-items: center; gap: 10px; }
.cell-who { display: inline-flex; align-items: center; gap: 8px; }

/* Etapas */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.steps li.is-on { background: var(--red-soft); color: var(--text); outline: 1px solid var(--red-text); }
.steps li.is-done { color: var(--text); }
.tick { width: 56px; height: 56px; border-radius: 999px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 28px no-repeat; }

/* Lista chave-valor */
.kv { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.kv-inline { flex-direction: row; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; }
.kv-inline > div { display: block; }
.kv-inline dt, .kv-inline dd { display: inline; }
.kv-inline dt::after { content: ': '; }

/* Início */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 64px; }
.hero-txt { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-art { flex: 1 1 340px; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 24px 48px rgba(11, 92, 173, .22)); }
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.1; }
.stats dt { font-size: 14px; color: var(--muted); }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.countdown { display: flex; gap: 12px; }
.countdown > div { min-width: 78px; padding: 12px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: center; }
.countdown b { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.countdown span { font-size: 13px; color: var(--muted); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head > div { display: flex; flex-direction: column; gap: 8px; }
.small-head { margin-bottom: 0; align-items: baseline; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--deep); }
.news-img-empty { display: flex; align-items: center; justify-content: center; opacity: .8; }
.news-body { padding: 24px; }
.news-body p { margin: 0; }
.news-body { flex: 1; }
.news-metrics { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.news-body > .news-metrics { margin-top: auto; }
.news-metrics > span { display: inline-flex; align-items: center; gap: 4px; }
.news-metrics [aria-hidden] { font-size: 18px; line-height: 1; }
.news-social { margin-top: 16px; scroll-margin-top: 90px; }
.news-social-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.news-social-head form { margin: 0; }
.news-social-head .news-metrics { border: 0; padding-top: 0; }
.news-like.is-on { color: var(--red-text); border-color: var(--red-text); background: var(--red-soft); }
.news-like [aria-hidden] { font-size: 22px; line-height: 1; }
.news-comment-form textarea { min-height: 90px; }
.news-comments { margin: 0; }
.news-comments .comment { scroll-margin-top: 90px; }
.news-comments .comment:target { border-radius: 8px; background: var(--red-soft); }
.news-comments-empty { margin: 0; }
[data-news-error][hidden] { display: none; }
.link-plain { color: var(--text); text-decoration: none; }
.link-plain:hover { color: var(--red-text); text-decoration: underline; }
/* Card do blog: o link do título cobre o card inteiro, então clicar em qualquer parte abre a notícia. */
.news { position: relative; cursor: pointer; }
.news-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.news-link:focus-visible { outline: none; }
.news:focus-within { outline: 2px solid var(--red-text); outline-offset: 2px; }
.news:hover .news-link { color: var(--red-text); }
.article-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.img-current { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.img-current img { width: 180px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--deep); }
.ev-row.is-editing { background: var(--raised); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 48px; }
.article-img { width: 100%; border-radius: var(--radius); }
.article-body { white-space: pre-line; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.character-profiles { min-width: 0; scroll-margin-top: 100px; }
.character-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.character-tab { display: flex; flex-direction: column; justify-content: center; max-width: 100%; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.character-tab small { color: var(--muted); font-size: 12px; }
.character-add { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; min-height: 54px; padding: 4px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--text); text-decoration: none; font-size: 28px; }
.character-tabs .is-on { background: var(--red-soft); border-color: var(--red-text); }
.character-editor { border-top: 1px solid var(--line); padding-top: 20px; }
.character-editor[hidden], .character-editor [hidden] { display: none; }
.character-modal { width: min(720px, calc(100vw - 24px)); }
.character-modal .modal-head { margin-bottom: 20px; }
.character-identity-form[hidden], .character-identity-form [hidden] { display: none; }
.cultivation-picker { min-width: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); }
.cultivation-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px; cursor: pointer; list-style: none; }
.cultivation-picker summary::-webkit-details-marker { display: none; }
.cultivation-picker summary svg { flex-shrink: 0; }
.cultivation-picker[open] summary { border-bottom: 1px solid var(--line); }
.cultivation-picker[open] summary svg { transform: rotate(180deg); }
.cultivation-menu { padding: 12px; max-height: none; overflow: visible; }
.cultivation-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.cultivation-column { min-width: 0; }
.cultivation-column h4 { margin: 0 0 12px; text-align: center; font-size: 14px; color: var(--muted); }
.cultivation-column h4 button { width: 100%; min-height: 40px; border: 1px solid transparent; border-radius: 8px; padding: 6px; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.cultivation-chegando h4 { color: var(--sky); }
.cultivation-membro h4 { color: var(--blue); }
.cultivation-servico h4 { color: var(--red-text); }
.cultivation-choice { display: flex; align-items: flex-start; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cultivation-choice input { margin: 3px 0 0; width: 14px; height: 14px; flex-shrink: 0; accent-color: var(--red); }
.cultivation-choice input:checked + span { color: var(--red-text); font-weight: 700; }
.cultivation-choice:focus-within { outline: 2px solid var(--red-text); outline-offset: 2px; }
.cultivation-none, .cultivation-previous { margin-top: 12px; }
.character-modal:has([data-cultivation-picker][open]) [data-character-core-row],
.character-modal:has([data-cultivation-picker][open]) [data-character-class],
.character-modal:has([data-cultivation-picker][open]) .character-identity-form > .row-actions { display: none; }
@media (max-width: 600px) {
  .character-profiles { scroll-margin-top: 240px; }
  .cultivation-menu { padding: 8px; }
  .cultivation-columns { gap: 6px; }
  .cultivation-choice { padding: 7px 5px; gap: 4px; }
  .cultivation-picker.has-cultivation-tabs .cultivation-column { display: contents; }
  .cultivation-picker.has-cultivation-tabs .cultivation-column h4 { grid-row: 1; margin: 0 0 6px; }
  .cultivation-picker.has-cultivation-tabs .cultivation-chegando h4 { grid-column: 1; }
  .cultivation-picker.has-cultivation-tabs .cultivation-membro h4 { grid-column: 2; }
  .cultivation-picker.has-cultivation-tabs .cultivation-servico h4 { grid-column: 3; }
  .cultivation-picker.has-cultivation-tabs .cultivation-column > .stack-sm { display: none; grid-row: 2; grid-column: 1 / -1; }
  .cultivation-picker[data-cultivation-active="membro"] .cultivation-membro > .stack-sm,
  .cultivation-picker[data-cultivation-active="chegando"] .cultivation-chegando > .stack-sm,
  .cultivation-picker[data-cultivation-active="servico"] .cultivation-servico > .stack-sm { display: flex; }
  .cultivation-column h4 button[aria-pressed="true"] { background: var(--red-soft); border-color: var(--red-text); }
}
@media (max-height: 760px) {
  .character-modal:has([data-cultivation-picker][open]) { padding: 16px; }
  .character-modal:has([data-cultivation-picker][open]) .modal-head { margin-bottom: 12px; }
  .character-modal .cultivation-menu { padding: 8px; }
  .character-modal .cultivation-column h4 { margin-bottom: 6px; }
  .character-modal .cultivation-column h4 button { min-height: 32px; padding: 4px; }
  .character-modal .cultivation-column .stack-sm { gap: 6px; }
  .character-modal .cultivation-choice { padding: 5px; }
}
.article-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); grid-template-areas: ". heading" "social content"; align-items: start; gap: 24px 32px; }
.article-heading { grid-area: heading; min-width: 0; overflow-wrap: anywhere; }
.article-heading .tag { align-self: flex-start; }
.article-content { grid-area: content; min-width: 0; }
.article-content .article-img { display: block; width: 100%; max-width: 640px; height: clamp(220px, 46vh, 420px); margin-inline: auto; padding: 10px; object-fit: contain; object-position: center; background: var(--deep); border: 1px solid var(--line); }
.article-social { grid-area: social; position: sticky; top: calc(var(--article-header-height, 80px) + 20px); align-self: start; min-width: 0; max-height: calc(100vh - var(--article-header-height, 80px) - 40px); max-height: calc(100dvh - var(--article-header-height, 80px) - 40px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius); }
.article-social > .card { margin: 0; padding: 22px; }
.article-social, .article-social [data-news-comments] { scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--surface); }
.article-social .news-social-head { gap: 12px; }
.article-social .news-metrics { font-size: 13px; gap: 8px 12px; }
.article-social .news-like { min-height: 40px; padding: 0 12px; font-size: 14px; }
.article-social .news-like [aria-hidden] { font-size: 18px; }
@media (max-width: 900px) {
  .article-layout { max-width: 760px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "social" "content"; gap: 24px; }
  .article-social { position: static; max-height: none; overflow: visible; }
  .article-social [data-news-comments] { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 600px) {
  .article-content .article-img { height: clamp(180px, 42vh, 300px); padding: 8px; }
}
.side-symbol { width: 200px; height: auto; align-self: center; opacity: .9; }

/* Abas */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.tab:hover { color: var(--text); }
.tab.is-on { background: var(--surface); border-color: var(--red-text); color: var(--text); }
.tab-kind { font-size: 12px; font-weight: 700; color: var(--red-text); }
.tab-mark { padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }

/* Eventos */
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; color: var(--muted); font-size: 15px; }
.meta span + span::before { content: '·'; margin-right: 24px; margin-left: -12px; color: var(--line-strong); }
.tally { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tally > div { padding: 12px 8px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tally b { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.tally span { font-size: 13px; }
.tally .is-zero { color: var(--muted); outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.people li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--bg); font-size: 15px; }
.people li.is-me { background: var(--red-soft); outline: 1px solid var(--red-text); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ev-row:first-child { border-top: 0; }
.ev-row form { margin: 0; }

/* Feed */
.feed-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }
/* Lateral (Publicar, eventos, nível) à esquerda; no celular ela volta para baixo do feed */
.feed-grid > aside { position: sticky; top: var(--feed-sticky-top, 96px); order: -1; }

/* Botão Publicar da lateral do feed */
.publish-cta { gap: 10px; box-shadow: 0 8px 24px rgba(217, 6, 61, .25); }

/* Janela (dialog) — usada na caixa de publicar do feed */
.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; margin: auto; padding: 24px 28px 28px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(11, 36, 71, 0.22); }
.modal[open] { display: block; }
.modal::backdrop { background: rgba(11, 36, 71, .45); backdrop-filter: blur(3px); }
.modal:not([open]) { display: none; }
html.rsvp-open { overflow: hidden; }
.rsvp-modal { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.rsvp-modal > p { margin: 12px 0 20px; }
.rsvp-modal .modal-x { border: 0; background: transparent; flex: none; }
.rsvp-step[hidden], .rsvp-alt[hidden] { display: none; }
.rsvp-alt { display: none; }
.rsvp-character-form:has(input[name="char"][value="alt"]:checked) .rsvp-alt:not([hidden]) { display: flex; }
.rsvp-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp-answer { display: inline-flex; flex: 1 1 80px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.rsvp-answer-vou { color: #1E8E4E; border-color: #8CCBA4; }
.rsvp-answer-talvez { color: #A86F00; border-color: #E2C27A; }
.rsvp-answer-nao { color: var(--red-text); border-color: #EFA3B6; }
.rsvp-answer:hover, .rsvp-answer.is-current { background: var(--raised); color: var(--text); }
.rsvp-answer-vou:hover, .rsvp-answer-vou.is-current { background: #E6F5EC; color: #17703D; }
.rsvp-modal .kv > div { gap: 12px; }
.rsvp-modal .kv dd { overflow-wrap: anywhere; }
.title-token-list { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.title-token { display: inline-flex; max-width: 100%; border-radius: 999px; text-decoration: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.title-token:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.title-token.is-dragging { opacity: .7; cursor: grabbing; outline: 2px solid var(--red-text); outline-offset: 3px; }
.title-manager-modal { width: min(440px, calc(100vw - 24px)); }
.title-dialog-badge { margin: 20px 0; }
.title-manager-modal [hidden] { display: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal-x { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px;
  color: var(--muted); font-size: 26px; line-height: 1; text-decoration: none; }
.modal-x:hover { background: var(--raised); color: var(--text); }
/* Sem JavaScript, a janela aberta por ?publicar=1 fica por cima da página */
html:not(.js) .modal[open] { position: fixed; inset: 0; z-index: 60; }
.post { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head > div { display: flex; flex-direction: column; line-height: 1.3; }
.post-head > .grow { min-width: 0; }
.member-titles { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 5px 0; min-width: 0; }
.member-titles[hidden] { display: none; }
.member-title { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 9px; border: 1px solid rgba(11, 36, 71, .12); border-radius: 999px; background: var(--title-color, #f2c66d); color: var(--title-ink, #171717); font: 700 11px/1.4 var(--sans); vertical-align: middle; position: relative; isolation: isolate; }
.member-title::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: 0 0 12px 2px var(--title-color, #f2c66d); opacity: .18; animation: title-pulse 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes title-pulse { 0%, 100% { opacity: .12; } 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .member-title::after { animation: none; opacity: .25; } }
.member-title > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.profile-header .member-titles { margin: 2px 0; }
.profile-header .member-title { font-size: 12px; padding: 4px 11px; }
.titles-intro { display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.titles-intro .h2 { margin: 4px 0 8px; }
.titles-note { flex: 0 1 290px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
.titles-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.titles-admin-grid > *, .titles-assign > * { min-width: 0; }
.titles-admin input[type="color"] { width: 72px; height: 44px; cursor: pointer; padding: 5px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color-scheme: light; }
.titles-admin .row > .title-color-field { flex: 0 0 auto; }
.title-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-bottom: 4px; min-width: 0; }
.title-assignee { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.title-assignee > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.title-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.title-choices legend { margin-bottom: 10px; }
.title-choice { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.title-choice:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.title-choice input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
@media (max-width: 680px) {
  .titles-intro { flex-direction: column; align-items: stretch; gap: 12px; }
  .titles-note { flex-basis: auto; }
  .titles-admin-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .post-head .member-titles { gap: 4px; }
  .post-head .member-title { font-size: 10px; padding: 2px 7px; }
}
.post-text { font-size: 17px; }
.post-img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 12px; background: var(--deep); display: block; }
.post-actions { display: flex; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.post-actions form { margin: 0; }
.post-edit-link { font-size: 14px; text-decoration: none; white-space: nowrap; }
.post-edit-modal { width: min(620px, calc(100vw - 24px)); }
.post-edit-current { display: flex; flex-direction: column; gap: 10px; }
.post-edit-current > img { max-height: 120px; width: 100%; object-fit: contain; border-radius: 10px; background: var(--deep); }
.post-edit-form { gap: 14px; }
.post-edit-image-options > summary { cursor: pointer; color: var(--red-text); font-size: 14px; font-weight: 600; }
.post-edit-image-options > .img-pick { margin-top: 12px; }
.post-edit-current:has(input:checked) > img { opacity: .3; }
[data-post-edit-error][hidden] { display: none; }
.post-edit-notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; padding: 12px 20px; border: 1px solid var(--ok); border-radius: 12px; background: var(--deep); color: var(--text); box-shadow: 0 6px 24px rgba(11, 36, 71, .14); }
.react { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.react:hover { background: var(--raised); color: var(--text); }
.react.is-on { background: var(--red-soft); color: var(--red-text); }
.post.is-live-new { animation: liveIn .7s cubic-bezier(.2, .9, .3, 1.2) both, liveGlow 2.4s ease-out .2s; }
@keyframes liveIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes liveGlow { 0% { box-shadow: 0 0 0 1px var(--red-text), 0 0 24px rgba(217, 6, 61, .35); } 100% { box-shadow: 0 0 0 1px transparent, 0 0 0 rgba(217, 6, 61, 0); } }
.post.is-live-gone { transition: opacity .35s, transform .35s; opacity: 0; transform: scale(.97); }
/* Aviso "novas publicações" quando a pessoa está lendo mais abaixo */
.live-pill { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 70; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(11, 36, 71, 0.2); cursor: pointer; animation: pillIn .35s ease both; }
@keyframes pillIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* O feed ao vivo cuida sozinho de manter a posição de leitura ao entrar post novo */
html.feed-live, html.feed-live body { overflow-anchor: none; }
.live-pill[hidden] { display: none; }
.comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comments li { display: flex; gap: 10px; }
.comments p { font-size: 15px; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { min-height: 40px; padding: 8px 12px; }
.member-link { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.member-link:hover { color: var(--red-text); text-decoration: underline; }
.member-avatar { display: inline-flex; flex: none; text-decoration: none; align-self: flex-start; border-radius: 12px; }
.member-avatar:hover { outline: 2px solid var(--red-text); outline-offset: 3px; }
.member-avatar, .profile-friend-image, .profile-photo { position: relative; }
.presence-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.presence-dot { display: inline-block; flex: none; width: 10px; height: 10px; border: 2px solid var(--surface); border-radius: 50%; background: #A3AFBF; box-shadow: 0 0 0 1px rgba(11, 36, 71, .25); }
.presence-indicator[data-presence-online="1"] { color: var(--ok); }
.presence-indicator[data-presence-online="1"] .presence-dot { background: #22B35E; }
.presence-indicator[data-presence-online="0"] .presence-dot::after { content: ''; display: block; width: 4px; height: 1px; margin: 2.5px auto; background: var(--surface); }
.member-avatar > .presence-indicator, .profile-friend-image > .presence-indicator, .profile-photo > .presence-indicator { position: absolute; right: -2px; bottom: -2px; pointer-events: auto; }
.profile-photo { display: inline-flex; justify-self: center; align-self: center; flex: none; }
.profile-photo > .presence-indicator { right: 12px; bottom: 10px; }
.profile-photo > .presence-indicator .presence-dot { width: 16px; height: 16px; border-width: 3px; }
.profile-photo .presence-indicator[data-presence-online="0"] .presence-dot::after { width: 6px; height: 2px; margin-top: 4px; }
.profile-identity > .presence-with-text { margin: 1px 0; }
.gg-list { border-top: 1px solid var(--line); padding-top: 10px; }
.gg-list summary, .reply-box summary { color: var(--muted); cursor: pointer; }
.gg-list summary:hover, .reply-box summary:hover { color: var(--text); }
.gg-list .plain-list { margin-top: 12px; max-height: 260px; overflow-y: auto; }
.comments > .comment { margin-left: calc(var(--reply-depth, 0) * 20px); min-width: 0; }
.comment-body { min-width: 0; flex: 1; }
.react[aria-disabled="true"] { cursor: wait; opacity: .7; }
.gg-error { color: var(--red-text); max-width: 260px; }
.post, .comment { scroll-margin-top: calc(var(--header-height, 72px) + 20px); }
.comment:target { background: var(--red-soft); border-radius: 10px; box-shadow: 0 0 0 8px var(--red-soft); }
.comment-body > .pre { overflow-wrap: anywhere; margin: 3px 0; }
.reply-context { margin: 3px 0; }
.comment-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 16px; }
.comment-actions form { margin: 0; }
.reply-box { flex: 1 1 180px; }
.reply-box .reply-form { margin-top: 8px; }
.comment-form input[name="text"] { flex: 1; min-width: 0; }
.profile-header { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.profile-header .h1 { font-family: var(--sans); font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.profile-identity { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.profile-headline { margin: 0; overflow-wrap: anywhere; }
.profile-intro { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; }
.profile-intro li { min-width: 0; overflow-wrap: anywhere; }
.profile-actions { display: flex; align-items: center; justify-content: center; gap: 10px; align-self: center; }
.profile-actions:empty { display: none; }
.avatar { object-fit: cover; padding: 0; }
.profile-hero { border-radius: var(--radius); background: var(--surface); }
.profile-cover { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--deep); }
.profile-cover-media { position: relative; aspect-ratio: 3 / 1; border-radius: calc(var(--radius) - 1px); overflow: hidden; background: var(--deep); }
.profile-cover-media > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile-cover-empty { background: radial-gradient(ellipse at 78% 30%, rgba(217, 6, 61, .55) 0, transparent 55%), radial-gradient(ellipse at 20% 80%, rgba(11, 181, 240, .55) 0, transparent 60%), linear-gradient(120deg, var(--navy), var(--blue)); }
.profile-cover .profile-cover-sigil { position: absolute; right: 8%; bottom: -30px; width: 220px; height: 220px; object-fit: contain; opacity: .2; }
.profile-cover .profile-cover-edit { position: absolute; right: 18px; bottom: 16px; background: var(--deep); border-color: var(--line-strong); }
.profile-hero .profile-header { border: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 26px 32px; }
.profile-avatar { position: relative; width: 168px; height: 168px; max-width: none; margin: 0; border: 5px solid var(--surface); border-radius: 50%; font-size: 30px; object-fit: cover; object-position: center; box-shadow: 0 4px 16px rgba(11, 36, 71, .14); }
.staff-profile .profile-cover, .profile-avatar.staff-avatar {
  border: 3px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(110deg, #0BB5F0, #0B5CAD, #D9063D, #FF4D7A, #0B5CAD, #0BB5F0) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: staff-neon-flow 8s ease-in-out infinite alternate;
}
.staff-profile .profile-cover-media { border-radius: calc(var(--radius) - 3px); }
@keyframes staff-neon-flow {
  0% { background-position: 0 0, 0% 50%; box-shadow: 0 0 10px #0BB5F066, 0 0 25px #0BB5F024; }
  50% { background-position: 0 0, 50% 50%; box-shadow: 0 0 12px #D9063D55, 0 0 28px #D9063D1A; }
  100% { background-position: 0 0, 100% 50%; box-shadow: 0 0 12px #0B5CAD66, 0 0 28px #0B5CAD1F; }
}
@media (prefers-reduced-motion: reduce) { .staff-profile .profile-cover, .profile-avatar.staff-avatar { animation: none; box-shadow: 0 0 12px #0B5CAD44; } }
.profile-settings { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); background: var(--raised); font-size: 14px; font-weight: 600; text-decoration: none; }
.profile-settings:hover { color: #fff; background: var(--red); }
.profile-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.profile-image-grid > * { min-width: 0; }
.profile-image-current { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 12px; background: var(--deep); }
.profile-photo-current { width: 128px; height: 128px; aspect-ratio: 1; border-radius: 50%; }
.crop-open { overflow: hidden; }
.profile-crop { width: min(700px, calc(100vw - 24px)); }
.profile-crop.crop-photo { width: min(560px, calc(100vw - 24px)); }
.profile-crop .modal-x { background: transparent; border: 0; color: var(--muted); cursor: pointer; }
.profile-crop .modal-x:hover { background: var(--raised); color: var(--text); }
.crop-stage { width: 100%; overflow: hidden; border-radius: 12px; background: var(--deep); }
.crop-stage canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.crop-stage canvas.is-dragging { cursor: grabbing; }
.crop-stage canvas:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.crop-zoom input { width: 100%; min-height: 48px; padding: 0; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color-scheme: light; accent-color: var(--red); }
.profile-crop [data-crop-error][hidden] { display: none; }
#aparencia { scroll-margin-top: 110px; }
.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.profile-grid > * { min-width: 0; }
.profile-compose-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.profile-compose-prompt { display: block; flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 15px; line-height: 1.5; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-compose-prompt:hover { background: var(--line); color: var(--text); }
.profile-composer-modal .modal-head { align-items: flex-start; }
.profile-composer-modal .modal-head .h3 { overflow-wrap: anywhere; }
.profile-composer-modal .modal-x { flex: 0 0 40px; }
.profile-composer .who { align-items: flex-start; }
.profile-composer .who > .grow { min-width: 0; overflow-wrap: anywhere; }
.profile-composer textarea { resize: vertical; min-height: 100px; }
.profile-composer .img-drop { padding: 12px 14px; }
.profile-composer .img-drop-txt strong { font-size: 14px; }
.profile-composer .row-actions { flex-wrap: wrap; }
.profile-post-context { color: var(--muted); overflow-wrap: anywhere; margin: 3px 0; }
.profile-composer [data-profile-post-status] { min-width: 160px; }
.profile-friend-count { align-self: flex-start; display: inline-block; margin: 0; font-size: 14px; font-weight: 600; }
.profile-friends-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.profile-friends-grid li { min-width: 0; }
.profile-friend-link { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px; border-radius: 12px; text-align: center; color: var(--text); text-decoration: none; }
.profile-friend-link:hover { background: var(--raised); color: var(--text); }
.profile-friend-image { display: block; width: 56px; height: 56px; flex: none; }
.profile-friend-image > .badge { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.profile-friend-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.profile-friend-copy strong { font-size: 14px; line-height: 1.35; }
.profile-friend-copy small { font-size: 13px; }
.profile-friends-grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-friends-grid-all .profile-friend-link { flex-direction: row; text-align: left; gap: 16px; padding: 16px; background: var(--bg); height: 100%; }
.profile-friends-grid-all .profile-friend-link:hover { background: var(--raised); }
.profile-friends-grid-all .profile-friend-image { width: 72px; height: 72px; }
.profile-friends-grid-all .profile-friend-copy strong { font-size: 16px; }
.profile-friends-block { scroll-margin-top: calc(var(--header-height, 72px) + 20px); }
@media (max-width: 680px) { .profile-friends-grid-all { grid-template-columns: minmax(0, 1fr); } }
.chat-meta { flex-wrap: wrap; }
.chat-delete { font-size: 11px; padding: 0; margin-left: auto; }
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-grid > aside { order: 2; }
  .profile-grid > div { order: 1; }
  .profile-composer .row-actions > .btn { width: 100%; }
  .profile-header { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .profile-hero .profile-header { padding: 22px 18px; }
  .profile-avatar { width: 112px; height: 112px; }
  .profile-actions { grid-column: 1 / -1; justify-self: center; }
  .profile-intro { gap: 3px 12px; }
  .profile-image-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-cover .profile-cover-edit { right: 12px; bottom: 12px; }
  .comments > .comment { margin-left: calc(var(--reply-depth, 0) * 10px); gap: 7px; }
  .reply-form { flex-wrap: wrap; }
  .reply-form input[name="text"] { flex-basis: 150px; }
  .post-actions { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .profile-header { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .profile-hero .profile-header { padding: 20px 14px; }
  .profile-header .h1 { font-size: 26px; }
  .profile-avatar { width: 96px; height: 96px; }
  .profile-compose-bar { padding: 10px 12px; gap: 10px; }
  .profile-compose-prompt { padding: 10px 12px; font-size: 14px; }
}
.mini-event { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bg); color: var(--text); text-decoration: none; }
.mini-event:hover { outline: 1px solid var(--line-strong); color: var(--text); }
.pager { display: flex; justify-content: space-between; gap: 12px; }

/* Painel da Staff */
.pend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 22px 26px; }
.pend > .grow { flex: 1 1 260px; }
.pend > .grow2 { flex: 2 1 360px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis > div { background: var(--bg); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; }
.kpis span { font-size: 14px; color: var(--muted); }
.kpis b { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; padding: 0; }
.table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; padding: 12px 16px; background: var(--bg); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.is-new td { background: var(--red-soft); }
.ans { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ans-vou { background: var(--red); color: #fff; }
.ans-talvez { background: var(--raised); color: var(--text); }
.ans-nao { color: var(--muted); outline: 1px solid var(--line-strong); }
.ans-sem { color: var(--muted); outline: 1px dashed var(--line-strong); }
/* Painel da Staff: os totais e as classes também filtram a lista de respostas. */
[data-rsvp-staff-results] { scroll-margin-top: 84px; }
.kpis-links > a { background: var(--bg); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; color: var(--text); text-decoration: none; transition: background-color .15s ease, box-shadow .15s ease; }
.tally-links > a { padding: 12px 8px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); text-decoration: none; transition: background-color .15s ease, box-shadow .15s ease; }
.tally-links > a.is-zero { color: var(--muted); }
.kpis-links > a:hover, .tally-links > a:hover { background: var(--raised); }
.kpis-links > a.is-on, .tally-links > a.is-on { background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red-text); outline: none; }
.kpis-links > a:focus-visible, .tally-links > a:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
.filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
[data-rsvp-staff-results][aria-busy="true"] .table-box { opacity: .6; transition: opacity .15s ease; }
/* Check-in depois do evento: verde = foi, vermelho = não foi. */
.checkin { display: flex; align-items: center; gap: 12px; }
.check-form { display: flex; gap: 8px; margin: 0; }
.check-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, opacity .15s ease, transform .1s ease; }
.check-btn:active { transform: scale(.92); }
.check-btn:disabled { cursor: progress; }
.check-foi { color: var(--ok); border: 2px solid var(--ok); }
.check-faltou { color: var(--red-text); border: 2px solid var(--red-text); }
.check-btn.check-foi:hover { background: #E6F5EC; }
.check-btn.check-faltou:hover { background: var(--red-soft); }
.check-btn.check-foi.is-on { background: #2E8B47; border-color: #2E8B47; color: #fff; }
.check-btn.check-faltou.is-on { background: #C9302C; border-color: #C9302C; color: #fff; }
.check-form.has-foi .check-faltou:not(:hover), .check-form.has-faltou .check-foi:not(:hover) { opacity: .4; }
.check-mark { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; vertical-align: middle; }
.check-mark.check-foi, .check-mark.check-faltou { border: 0; }
.check-mark svg { width: 16px; height: 16px; }
.checkin-xp { font-size: 13px; font-weight: 700; color: var(--ok); min-width: 64px; }
.checkin-xp.is-zero { color: var(--muted); font-weight: 600; }
.checkin-xp.is-lost { color: var(--red-text); }
.checkin-help { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.checkin-help p { margin: 0; flex: 1 1 320px; }
.checkin-help .check-mark { vertical-align: -3px; }
.checkin-count { color: var(--text); white-space: nowrap; }
.inline-form { display: inline-flex; margin: 0; }
.inline-form select { min-height: 40px; padding: 6px 10px; width: auto; }
textarea.mono { font-size: 14px; margin-bottom: 10px; }

/* Escolher imagem */
.img-pick { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; font-weight: 600; }
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.img-drop { position: relative; display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 14px 18px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.img-drop:hover, .img-drop.is-over { border-color: var(--red-text); background: var(--red-soft); }
.img-drop:focus-within { outline: 2px solid var(--red-text); outline-offset: 2px; }
.img-drop.is-bad { border-color: var(--red-text); border-style: solid; }
.img-drop-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.img-drop-txt svg { color: var(--red-text); margin-bottom: 2px; }
.img-drop-txt small { font-size: 13px; overflow-wrap: anywhere; }
.img-drop.is-bad .img-drop-txt small { color: var(--red-text); }
.img-preview { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; background: var(--deep); }
.img-drop.has-img { border-style: solid; }
.img-pick [data-img-clear] { align-self: flex-start; padding-left: 0; }
.img-link summary { color: var(--muted); }
.img-link input { margin-top: 8px; }

/* Páginas de texto (privacidade, termos) */
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.doc p, .doc li { font-size: 17px; line-height: 1.7; }
.doc h2 { margin-top: 12px; }

/* ---------- Chat global do clã (bolha branca flutuante, embaixo à direita) ---------- */
.chat { position: fixed; right: 28px; bottom: 18px; z-index: 85; }
html:not(.js) .chat { display: none; }
.chat-btn { position: relative; display: block; width: 76px; height: 76px; padding: 0; border: 0; background: transparent; cursor: pointer;
  transition: transform .15s ease; }
.chat-btn:hover { transform: translateY(-2px) scale(1.04); }
.chat-btn:active { transform: scale(.96); }
.chat-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 50%; }
.chat-ico { display: block; width: 76px; height: 76px; color: var(--blue);
  filter: drop-shadow(0 6px 16px rgba(11, 36, 71, 0.22)) drop-shadow(0 0 1px rgba(11, 36, 71, 0.24)); transition: color .15s; }
.chat-btn:hover .chat-ico, .chat-btn[aria-expanded="true"] .chat-ico { color: var(--navy); }
/* Contador minúsculo na borda da bolha: vermelho com o número branco */
.chat-count { position: absolute; top: 4px; right: 2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(11, 36, 71, 0.18); pointer-events: none; }
.chat-count[hidden] { display: none; }
.chat-count.is-bump { animation: chatBump .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes chatBump { 0% { transform: scale(.5); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

.chat-panel { position: absolute; bottom: calc(100% + 12px); right: 0; z-index: 90; width: 380px; height: min(560px, calc(100vh - 130px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11, 36, 71, 0.22); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-launchers { display: flex; align-items: center; gap: 24px; }
.friend-icon { display: block; flex: none; overflow: visible; }
.friend-action, .friends-toggle { position: relative; display: flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.friend-action { width: 56px; height: 56px; background: var(--raised); color: var(--text); }
.profile-header .friend-action { align-self: center; margin: 0; width: 48px; height: 48px; }
.friend-action:hover, .friend-action:focus-visible { color: var(--red-text); background: var(--red-soft); border-color: var(--red-text); box-shadow: 0 6px 18px rgba(217, 6, 61, .25); transform: translateY(-2px); }
.friend-action:hover .friend-icon, .friends-toggle:hover .friend-icon { animation: friendWave .6s ease both; }
.friend-action:disabled { cursor: wait; opacity: .65; }
.friend-state-mark { position: absolute; right: 4px; bottom: 2px; line-height: 1; font-size: 18px; font-weight: 700; }
.friend-action .friend-icon { width: 42px; height: 42px; color: var(--red-text); }
.friends-toggle { width: 76px; height: 76px; padding: 0; background: transparent; color: var(--red); border: 0; border-radius: 16px; }
.friends-toggle .friend-icon { width: 76px; height: 76px; filter: drop-shadow(0 6px 12px rgba(11, 36, 71, .2)); }
.friends-toggle:hover, .friends-toggle:focus-visible, .friends-toggle[aria-expanded="true"] { color: var(--red-text); transform: translateY(-2px); }
.friends-toggle .chat-count { right: -3px; top: 0; }
.friends-panel { right: 100px; }
.both-open .friends-panel { right: 400px; }
.chat-messages, .friends-pane { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.chat-messages[hidden], .friends-pane[hidden] { display: none; }
.friend-search { flex: none; padding: 12px; border-bottom: 1px solid var(--line); }
.friend-search label { margin-bottom: 6px; font-size: 13px; }
.friend-search input { flex: 1 1 0; width: 0; min-width: 0; }
.friend-search .row-actions { flex-wrap: nowrap; }
.friends-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; }
.friend-section + .friend-section { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.friend-section h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 10px; }
.friend-section p { margin: 0; }
.friend-list { list-style: none; margin: 0; padding: 0; }
.friend-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.friend-row + .friend-row { border-top: 1px solid var(--line); }
.friend-who { flex: 1 1 110px; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.friend-who a { font-size: 14px; font-weight: 600; }
.friend-name { display: flex; align-items: center; gap: 6px; }
.private-unread { display: inline-block; flex: none; min-width: 20px; padding: 1px 5px; border-radius: 12px; color: #fff; background: var(--red); text-align: center; font-size: 11px; font-weight: 700; }
.friend-row-actions [data-friend-action="conversar"] { color: var(--text); border-color: var(--red); }
.friend-row-actions [data-friend-action="conversar"]:hover { background: var(--red); color: #fff; }
.friend-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.friend-row-actions .btn { min-height: 32px; padding: 5px 9px; font-size: 11px; }
.friends-status { margin: 0; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.friends-status[hidden], .friends-toast[hidden] { display: none; }
.friends-toast { position: absolute; bottom: calc(100% + 12px); right: 0; width: 280px; max-width: calc(100vw - 28px); padding: 12px 16px; margin: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--deep); color: var(--text); font-size: 13px; box-shadow: 0 8px 24px rgba(11, 36, 71, 0.16); z-index: 95; pointer-events: none; }
.chat:has(.chat-panel:not([hidden])) .friends-toast { bottom: 8px; right: calc(100% + 14px); }
.friends-toast.is-error { border-color: var(--red-text); }
.private-pane { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.private-pane[hidden], .private-older[hidden], .private-status[hidden] { display: none; }
.private-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.private-contact { display: flex; min-width: 0; flex-direction: column; overflow-wrap: anywhere; }
.private-contact strong { font-size: 16px; }
.private-contact small { font-size: 12px; }
.private-older { flex: none; padding: 10px; font-size: 13px; }
.private-list { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; margin: 0; list-style: none; }
.private-list:empty { display: none; }
.private-message { align-self: flex-start; max-width: 90%; min-width: 0; padding: 9px 12px; border-radius: 4px 14px 14px 14px; background: var(--raised); overflow-wrap: anywhere; }
.private-message.mine { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: #E7F1FC; border: 1px solid #B9D3F0; }
.private-message p { margin: 4px 0 0; white-space: pre-wrap; font-size: 14px; }
.private-message .private-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.private-meta time { color: var(--muted); font-size: 11px; }
.private-ticks { display: inline-flex; align-items: center; margin-left: -4px; color: var(--muted); }
.private-ticks svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.private-ticks[data-state="sent"] .private-tick-2 { display: none; }
.private-ticks[data-state="read"] { color: #53bdeb; }
.private-status { margin: auto; padding: 20px; text-align: center; }
@keyframes friendWave { 0%,100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-8deg) scale(1.08); } 65% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .friend-action, .friends-toggle { transition: none; } .friend-action:hover .friend-icon, .friends-toggle:hover .friend-icon { animation: none; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head strong { font-family: var(--serif); font-size: 19px; }
.chat-head small { display: block; color: var(--muted); font-size: 12px; }
.chat-x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.chat-x:hover { background: var(--raised); color: var(--text); }
.chat-list { list-style: none; margin: 0; padding: 14px; flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-list:empty { display: none; }
.chat-empty { margin: auto; padding: 24px; color: var(--muted); text-align: center; font-size: 14px; }
.chat-empty[hidden] { display: none; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 88%; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble { min-width: 0; padding: 7px 12px 8px; background: var(--raised); border-radius: 4px 14px 14px 14px; }
.chat-msg.mine .chat-bubble { background: var(--red-soft); border-radius: 14px 4px 14px 14px; }
.chat-meta { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.chat-meta strong { color: var(--text); font-size: 13px; }
.chat-text { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { flex: 1 1 auto; min-width: 0; }
.chat-form input[name="text"] { flex: 1 1 0; width: 0; }
.chat-form[data-chat-form] { position: relative; }
.chat-mention-options { position: absolute; bottom: calc(100% + 6px); left: 12px; right: 12px; z-index: 105; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 6px 24px #0006; scrollbar-width: thin; }
.chat-mention-options[hidden] { display: none; }
.chat-mention-options > p { padding: 8px; margin: 0; }
.chat-mention-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 7px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.chat-mention-option > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.chat-mention-option:hover, .chat-mention-option[aria-selected="true"] { background: var(--red-soft); }
.chat-mention { color: var(--red-text); font-weight: 700; text-decoration: none; border-radius: 4px; }
.chat-mention:hover { text-decoration: underline; }
.chat-mention.is-me { background: var(--red-soft); color: var(--red-text); }
.chat-msg.mentions-me .chat-bubble, .chat-msg.is-chat-target .chat-bubble { outline: 1px solid var(--red-text); outline-offset: 2px; }
.chat-form .sr-file { flex: none; }
.chat-attach { display: inline-flex; flex: 0 0 36px; width: 36px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.chat-attach:hover { color: var(--red-text); border-color: var(--red-text); }
.chat-attach:disabled { opacity: .5; cursor: default; }
.chat-attach:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
.chat-emoji[aria-expanded="true"] { color: var(--red-text); border-color: var(--red-text); }
.private-form { position: relative; }
/* Seletor de emojis (public/emoji-picker.js): abre em cima do campo de mensagem. */
.emoji-picker { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 106; display: flex; flex-direction: column; height: min(340px, 55vh); border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 8px 28px rgba(11, 36, 71, .22); overflow: hidden; }
.emoji-picker[hidden] { display: none; }
.emoji-top { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); }
#emoji-picker .emoji-search { flex: 1 1 auto; width: auto; min-width: 0; min-height: 36px; height: 36px; padding: 0 10px; font-size: 16px; }
.emoji-top, .emoji-tabs { flex: none; }
.emoji-tones { display: flex; flex: none; gap: 1px; }
.emoji-tone { width: 26px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 16px; line-height: 1; cursor: pointer; }
.emoji-tone:hover, .emoji-tone[aria-checked="true"] { background: var(--raised); }
.emoji-tone[aria-checked="true"] { box-shadow: inset 0 0 0 1px var(--line-strong); }
.emoji-tabs { display: flex; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.emoji-tabs[hidden] { display: none; }
.emoji-tab { flex: 1 0 30px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; opacity: .55; filter: grayscale(.7); }
.emoji-tab:hover, .emoji-tab[aria-current="true"] { opacity: 1; filter: none; background: var(--raised); }
.emoji-scroll { position: relative; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 8px; scrollbar-width: thin; }
.emoji-heading { position: sticky; top: 0; z-index: 1; margin: 0; padding: 8px 4px 4px; background: var(--surface); color: var(--muted); font: 600 12px var(--sans); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.emoji-btn { height: 38px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 24px; line-height: 1; cursor: pointer; }
.emoji-btn:hover, .emoji-btn:focus-visible { background: var(--raised); }
.emoji-status { margin: 0; padding: 24px 12px; text-align: center; }
.chat-image-preview { display: flex; flex: 1 0 100%; order: -1; min-width: 0; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.chat-image-preview[hidden] { display: none; }
.chat-image-preview img { width: 72px; height: 64px; flex: none; border-radius: 6px; object-fit: contain; background: var(--raised); }
.chat-image-preview > span { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.chat-image-preview.is-bad { border-color: var(--red-text); }
/* Mensagens de voz: gravar no rodapé do chat e ouvir nas mensagens */
.chat-mic .stop-ico, .chat-mic.is-recording .mic-ico { display: none; }
.chat-mic.is-recording .stop-ico { display: block; }
.chat-mic.is-recording { border-color: var(--red); background: var(--red); color: #fff; }
.chat-mic.is-recording:hover { color: #fff; border-color: var(--red-text); }
.voice-draft { display: flex; flex: 1 0 100%; order: -1; min-width: 0; align-items: center; gap: 10px; min-height: 52px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.voice-draft[hidden] { display: none; }
.voice-draft.is-recording { border-color: var(--red-text); }
.voice-draft.is-bad { border-color: var(--red-text); }
.voice-draft.is-bad .voice-draft-text { color: var(--red-text); }
.voice-dot { display: none; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--red-text); animation: voice-pulse 1.1s ease-in-out infinite; }
.voice-draft.is-recording .voice-dot { display: block; }
@keyframes voice-pulse { 50% { opacity: .25; } }
.voice-draft-text { flex: 1; min-width: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.voice-draft-text[hidden] { display: none; }
.voice-draft-player { display: flex; flex: 1; min-width: 0; }
.voice-draft-player:empty { display: none; }
.voice-draft-player .voice-note { margin: 0; width: 100%; }
.voice-note { display: flex; align-items: center; gap: 8px; width: 260px; max-width: 100%; margin-top: 6px; }
.voice-play { display: inline-flex; flex: none; width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; }
.voice-play:hover { background: var(--red-hover); }
.voice-play:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
.voice-note.is-bad .voice-play { background: var(--raised); color: var(--muted); }
.voice-seek { flex: 1 1 auto; min-width: 0; height: 20px; margin: 0; padding: 0; background: transparent; accent-color: var(--red-text); cursor: pointer; }
.voice-time { flex: none; min-width: 34px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.voice-note audio { display: none; }
.voice-rate { flex: none; min-width: 42px; height: 26px; padding: 0 9px; border: 0; border-radius: 999px; background: rgba(11, 36, 71, .08); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.voice-rate:hover { background: rgba(11, 36, 71, .16); }
.voice-rate:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
.voice-rate[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .voice-dot { animation: none; } }
.chat-image-link { display: block; margin-top: 5px; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.chat-message-image { display: block; width: auto; height: auto; max-width: min(200px, 100%); max-height: 200px; object-fit: contain; border-radius: 8px; }
.friend-presence { font-size: 12px; white-space: nowrap; }
.chat-bubble, .private-message { position: relative; }
.chat-meta, .private-meta { padding-right: 26px; }
.chat-meta { flex-wrap: wrap; gap: 3px 8px; }
.chat-react-trigger { position: absolute; top: 4px; right: 3px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .12s; }
.chat-bubble:hover > .chat-react-trigger, .private-message:hover > .chat-react-trigger, .chat-bubble:focus-within > .chat-react-trigger, .private-message:focus-within > .chat-react-trigger, .reaction-picker-open > .chat-react-trigger { opacity: 1; pointer-events: auto; }
.chat-react-trigger:hover { color: var(--text); background: var(--bg); }
.chat-react-trigger:focus-visible { opacity: 1; pointer-events: auto; }
.chat-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chat-reactions[hidden], .chat-reaction-picker[hidden] { display: none; }
.chat-reaction { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; min-height: 26px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.chat-reaction.is-mine { border-color: var(--red-text); background: var(--red-soft); }
.chat-reaction:hover { border-color: var(--red-text); }
.chat-reaction-picker { position: fixed; z-index: 120; display: grid; grid-template-columns: repeat(8, 34px); gap: 4px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: 0 8px 30px rgba(11, 36, 71, .2); }
.chat-reaction-picker button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text); font-size: 24px; cursor: pointer; }
.chat-reaction-picker button:hover, .chat-reaction-picker button[aria-pressed="true"] { background: var(--red-soft); }
.chat-react-trigger:disabled, .chat-reaction:disabled, .chat-reaction-picker button:disabled { cursor: default; opacity: .5; }
@media (hover: none), (pointer: coarse) { .chat-react-trigger { opacity: 1; pointer-events: auto; } }
@media (max-width: 500px) { .chat-reaction-picker { grid-template-columns: repeat(4, 40px); } .chat-reaction-picker button { width: 40px; height: 40px; } }
.chat-err { margin: 0; padding: 0 12px 12px; color: var(--red-text); font-size: 13px; }
.chat-err[hidden] { display: none; }

/* ---------- Visualizador de imagens (abre dentro do site, estilo Facebook) ---------- */
html.viewer-open { overflow: hidden; }
.post-img-link, [data-viewer-img] { cursor: zoom-in; }
.viewer { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.viewer[open] { display: flex; }
.viewer::backdrop { background: rgba(6, 6, 6, .94); }
.viewer-stage { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; overflow: auto; background: #0B0B0B; }
.viewer-img { display: block; max-width: 100%; max-height: 100vh; object-fit: contain; cursor: zoom-in; user-select: none; animation: viewerIn .2s ease both; }
@keyframes viewerIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.viewer.is-zoom .viewer-stage { display: block; }
.viewer.is-zoom .viewer-img { max-width: none; max-height: none; margin: auto; cursor: zoom-out; }
.viewer-bar { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.viewer-bar > * { pointer-events: auto; }
.viewer-x, .viewer-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(30, 30, 28, .85); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; text-decoration: none; box-shadow: 0 4px 14px rgba(11, 36, 71, 0.2); }
.viewer-btn { font-size: 18px; margin-left: auto; }
.viewer-x:hover, .viewer-btn:hover { background: rgba(70, 70, 66, .95); color: #fff; }
.viewer-x:focus-visible, .viewer-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.viewer-side { flex: 0 0 380px; display: flex; flex-direction: column; gap: 14px; padding: 22px; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); }
.viewer-side[hidden] { display: none; }
.viewer-side .post-text { font-size: 16px; }
@media (max-width: 900px) {
  .viewer[open] { flex-direction: column; overflow-y: auto; }
  .viewer-stage { flex: 0 0 auto; min-height: 62vh; }
  .viewer-img { max-height: 80vh; }
  .viewer-side { flex: 0 0 auto; overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
}

/* Telas menores */
@media (max-width: 1000px) {
  .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-grid { grid-template-columns: minmax(0, 1fr); }
  .feed-grid > aside { position: static; order: 0; }
  /* No celular a lateral vai para baixo, então o Publicar vira um botão flutuante */
  .chat-open .feed-grid .publish-cta { display: none; }
  .feed-grid .publish-cta { position: fixed; right: 228px; bottom: 30px; z-index: 40; width: auto; border-radius: 999px; padding: 0 24px; box-shadow: 0 10px 30px rgba(11, 36, 71, 0.2); }
  .tally { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .notification-panel { position: fixed; right: 12px; left: 12px; top: var(--notifications-top, 118px); width: auto; max-height: calc(100dvh - var(--notifications-top, 118px) - 12px); }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .chat { right: 14px; bottom: 14px; }
  .chat-btn, .chat-ico, .friends-toggle, .friends-toggle .friend-icon { width: 68px; height: 68px; }
  .chat-launchers { gap: 20px; }
  .feed-grid .publish-cta { right: 184px; bottom: 24px; padding: 0 14px; }
  .chat-panel { position: fixed; top: 12px; left: 10px; right: 10px; bottom: 92px; width: auto; height: auto; }
  .friends-panel, .both-open .friends-panel { right: 10px; }
  .chat:has(.chat-panel:not([hidden])) .friends-toast { position: fixed; bottom: 94px; right: 16px; }
  .cards3, .opt-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h1 { font-size: 36px; }
  .h2 { font-size: 28px; }
  .motto { font-size: 26px; }
  .card { padding: 20px; }
  .cta { padding: 28px; }
}

/* =========================================================
   Login com Google, WhatsApp e detalhes
   ========================================================= */
.ico { flex: none; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid #747775; background: #FFFFFF; color: #1F1F1F;
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .2s, transform .12s;
  animation: ready 2.4s ease-in-out infinite;
}
.btn-google:hover { background: #F2F2F2; color: #1F1F1F; }
.btn-google:active { transform: translateY(1px) scale(.98); }
.btn-google .ico { color: #444746; }
.btn-google-sm { min-height: 44px; padding: 0 18px; font-size: 15px; animation: none; }
.code-line { display: block; padding: 10px 12px; background: var(--deep); border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.howto { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.account-box { display: flex; align-items: center; gap: 14px; }
.tick-sm { width: 36px; height: 36px; background-size: 18px; flex: none; }
.locked { opacity: .45; border-style: dashed; }
.xp-wrap { max-width: 420px; padding-top: 6px; }

/* =========================================================
   Animações
   ========================================================= */

/* Entrada da página */
main { animation: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Fundo do topo: pontinhos de luz subindo */
.hero-bg { position: relative; overflow: hidden; }
.hero-bg > .hero { position: relative; z-index: 1; }
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.embers span {
  position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 2px rgba(11, 181, 240, .45), 0 0 14px 4px rgba(11, 92, 173, .18);
  opacity: 0; animation: ember var(--d) linear var(--delay) infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  8% { opacity: .95; }
  60% { opacity: .7; }
  100% { transform: translate(var(--drift), -820px) scale(.35); opacity: 0; }
}

/* Símbolo da igreja pulsando como um coração */
.sigil-wrap { position: relative; width: min(100%, 440px); aspect-ratio: 1; display: grid; place-items: center; }
.sigil { width: 86%; height: auto; animation: sigilPulse 2.4s ease-in-out infinite; filter: drop-shadow(0 12px 28px rgba(217, 6, 61, .22)); will-change: transform; }
@keyframes sigilPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
/* Batimento controlado pelo app.js conforme o próximo evento se aproxima */
.sigil.is-beating { animation: none; }

/* Símbolos pequenos e logo */
.brand-sigil { animation: brandPulse 2.4s ease-in-out infinite; }
@keyframes brandPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.brand:hover .brand-sigil { animation-duration: .8s; }
.sigil-sm { animation: sigilPulse 2.4s ease-in-out infinite; }

/* Losango antes dos títulos pequenos */
.eyebrow::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; vertical-align: 2px; background: currentColor; transform: rotate(45deg); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .5; } 50% { opacity: 1; box-shadow: 0 0 8px currentColor; } }

/* Botões: brilho ao passar o mouse */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .12s ease, background .2s, box-shadow .2s, border-color .2s; }
.btn::after { content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-glow { animation: ready 2.4s ease-in-out infinite; }
@keyframes ready { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 6, 61, 0); } 50% { box-shadow: 0 0 22px 3px rgba(217, 6, 61, .55); } }

/* Cartões que levantam como item de inventário */
.card { transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.news:hover, .member:hover, .mini-event:hover, .card-champion:hover { transform: translateY(-4px); border-color: rgba(217, 6, 61, .55); box-shadow: 0 14px 32px -14px rgba(217, 6, 61, .55); }
.mini-event { transition: transform .2s, box-shadow .2s; }

/* Missão do próximo evento */
.strip-quest { position: relative; overflow: hidden; border-color: rgba(217, 6, 61, .35); }
.strip-quest::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(217, 6, 61, .08) 50%, transparent 70%); background-size: 250% 100%; animation: sweep 5s ease-in-out infinite; }
@keyframes sweep { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.countdown > div { border: 1px solid rgba(217, 6, 61, .25); animation: runeBox 2.4s ease-in-out infinite; }
@keyframes runeBox { 0%, 100% { box-shadow: inset 0 0 0 rgba(217, 6, 61, 0); } 50% { box-shadow: inset 0 0 14px rgba(217, 6, 61, .35); } }
.countdown b.pop { animation: pop .45s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); color: var(--red-text); } 100% { transform: scale(1); } }

/* Marcador de missão (!) */
.quest { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; animation: questBounce 1.4s ease-in-out infinite; }
.tab-mark { animation: questBounce 1.4s ease-in-out infinite; }
@keyframes questBounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.quest-card { position: relative; overflow: hidden; }
.quest-card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--red-text), transparent); animation: sweep 3.5s linear infinite; background-size: 200% 100%; }

/* Etapas */
.steps li.is-on { animation: stepGlow 2.4s ease-in-out infinite; }
@keyframes stepGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 6, 61, 0); } 50% { box-shadow: 0 0 16px 1px rgba(217, 6, 61, .35); } }

/* Carimbo "Missão aceita" */
.stamp { align-self: flex-start; display: inline-block; padding: 6px 16px; border: 3px solid var(--red-text); border-radius: 6px; color: var(--red-text); font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-6deg); animation: stamp .7s cubic-bezier(.2, 1.6, .4, 1) .2s both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.4) rotate(-14deg); } 100% { opacity: 1; transform: scale(1) rotate(-6deg); } }

/* Equipar classe */
.opt input:checked + .opt-card .badge { animation: equip .55s ease-out; box-shadow: 0 0 14px rgba(217, 6, 61, .6); }
@keyframes equip { 0% { transform: scale(.7) rotate(-12deg); } 60% { transform: scale(1.18) rotate(4deg); } 100% { transform: none; } }
.opt > span { transition: background .15s, border-color .15s, transform .15s; }
.opt:hover > span { transform: translateY(-1px); }

/* Campeão do Hall da Fama */
.badge-champion { position: relative; overflow: hidden; animation: champion 2.4s ease-in-out infinite; }
.badge-champion::after { content: ''; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); animation: shine 3s ease-in-out infinite; }
@keyframes champion { 0%, 100% { box-shadow: 0 0 0 rgba(217, 6, 61, 0); } 50% { box-shadow: 0 0 18px rgba(217, 6, 61, .8); } }
@keyframes shine { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
.card-champion { border-color: rgba(217, 6, 61, .5); }

/* Barra de XP */
.xp { display: flex; flex-direction: column; gap: 6px; }
.xp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.xp-lvl { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--red-text); }
.xp-big .xp-lvl { font-size: 26px; }
.xp-track { position: relative; height: 10px; border-radius: 999px; background: var(--deep); border: 1px solid var(--line); overflow: hidden; }
.xp-big .xp-track { height: 14px; }
.xp-fill { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 999px; background: linear-gradient(90deg, var(--blue), #0B8BE0, var(--sky)); box-shadow: 0 0 10px rgba(11, 140, 224, .45); animation: xpFill 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.xp-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: xpShine 2.8s ease-in-out 1.4s infinite; }
@keyframes xpFill { from { width: 0; } }
@keyframes xpShine { 0% { background-position: -60% 0; } 100% { background-position: 180% 0; } }

/* Mensagens como aviso de missão */
main > .flash { animation: questIn .6s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes questIn { 0% { opacity: 0; transform: translateY(-14px) scale(.97); } 100% { opacity: 1; transform: none; } }

/* Aparecer ao rolar (só com JavaScript ligado) */
html.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; transition-delay: calc(var(--i, 0) * 30ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* Texto flutuante (+100 XP) e faíscas */
.fx-float { position: fixed; left: 50%; top: 34%; z-index: 60; pointer-events: none; transform: translate(-50%, 0); font-family: var(--serif); font-weight: 700; font-size: 46px; color: var(--blue); text-shadow: 0 0 18px rgba(255, 255, 255, .95), 0 2px 0 rgba(11, 36, 71, .25); white-space: nowrap; animation: floatUp 1.9s ease-out forwards; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 30% { transform: translate(-50%, -6px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1); } }
.spark { position: fixed; z-index: 59; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; background: var(--sky); box-shadow: 0 0 8px 2px rgba(11, 181, 240, .6); animation: burst .9s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.react.is-hit { animation: pop .4s ease; }

/* Quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .embers, .fx-float, .spark { display: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Ranking do clã (/ranking) ---------- */
.rank-podium, .rank-list, .rank-rules { list-style: none; margin: 0; padding: 0; }
.rank-rules { display: grid; gap: 8px; }
.rank-mine { margin: 0; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.rank-amount { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--red-text); }
.rank-podium > .is-me, .rank-row.is-me { box-shadow: inset 0 0 0 2px var(--red-text); }
.rank-list { padding: 6px; }
.rank-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-row.is-me { background: var(--red-soft); border-top-color: transparent; }
.rank-pos { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--muted); text-align: center; }
.rank-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-name { display: flex; flex-direction: column; min-width: 0; }
.rank-name strong, .rank-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-feed { margin: 0; }
@media (max-width: 600px) {
  .rank-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding: 10px 6px; }
  .rank-pos { font-size: 17px; }
  .rank-amount { font-size: 24px; }
}

/* ---------- Links nos textos e prévia do YouTube ---------- */
.text-link { color: var(--red-text); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; word-break: break-word; }
.text-link:hover { color: var(--text); }
.chat-msg.mine .text-link { color: inherit; }
.video-card { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--text); text-decoration: none; }
.video-card:hover { border-color: var(--red-text); }
.video-thumb { position: relative; flex: none; width: 160px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; margin: auto; width: 42px; height: 30px; border-radius: 9px; background: #FF0033; box-shadow: 0 4px 12px rgba(11, 36, 71, 0.16); }
.video-play::after { content: ''; position: absolute; left: 17px; top: 9px; border-left: 12px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.video-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.video-info strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.video-info small { color: var(--muted); }
@media (max-width: 480px) { .video-thumb { width: 120px; } }

/* ---------- Fixados: feed e chat ---------- */
.post.is-pinned { border-color: rgba(217, 6, 61, .55); box-shadow: inset 0 3px 0 var(--red); }
.pin-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chat-pin { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--red-soft); }
.chat-pin[hidden] { display: none; }
.chat-pin-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.chat-pin-head strong { color: var(--red-text); }
.chat-pin-head .link-btn { margin-left: auto; font-size: 13px; }
.chat-pin-text { margin: 4px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 7.5em; overflow-y: auto; }

/* ---------- Enquetes no feed ---------- */
.poll { display: grid; gap: 8px; }
.poll-options { display: grid; gap: 8px; margin: 0; }
.poll-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--raised); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden; isolation: isolate; }
.poll-option::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: rgba(217, 6, 61, .16); z-index: -1; transition: width .4s ease; }
.poll-option:hover { border-color: var(--red-text); }
.poll-option.is-mine { border-color: var(--red-text); }
.poll-option.is-mine::before { background: rgba(217, 6, 61, .38); }
.poll-option:disabled { cursor: progress; opacity: .7; }
.poll-label { display: flex; align-items: center; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.poll-check { color: var(--red-text); font-weight: 800; }
.poll-count { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.poll-count small { color: var(--muted); font-weight: 500; }
.poll-foot { margin: 0; }
.poll-builder { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.poll-builder > summary { cursor: pointer; font-weight: 600; }
.poll-builder[open] > summary { margin-bottom: 8px; }
.poll-builder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 600px) { .poll-builder-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .poll-option::before { transition: none; } }

/* ---------- Eventos semanais e PTs ---------- */
.tag-repeat { background: var(--raised); color: var(--muted); }
.pt-mine { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--red-soft); }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pt-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.pt-card.is-mine { border-color: var(--red-text); box-shadow: inset 0 0 0 1px var(--red-text); }
.pt-card h4 { margin: 0 0 8px; font-size: 16px; display: flex; justify-content: space-between; gap: 8px; }
.pt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pt-list li.is-me strong { color: var(--red-text); }
.pt-name { display: flex; flex-direction: column; min-width: 0; }
.pt-name strong, .pt-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-editor > summary { cursor: pointer; font-weight: 700; }
.pt-editor[open] > summary { margin-bottom: 10px; }
.pt-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pt-table select { min-width: 110px; }

/* ---------- Avisos automáticos no chat ---------- */
.chat-system { list-style: none; display: flex; justify-content: center; margin: 6px 0; }
.chat-system-text { margin: 0; max-width: 92%; padding: 8px 12px; border-radius: 12px; background: var(--red-soft); border: 1px solid rgba(217, 6, 61, .35); font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.chat-system-icon { margin-right: 6px; }
.chat-system-text time { margin-left: 4px; font-size: 12px; }
.chat-system-text .link-btn { margin-left: 6px; font-size: 12px; }

/* ---------- Medalhas no perfil ---------- */
.medals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.medal { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; opacity: .5; filter: grayscale(1); }
.medal.is-earned { opacity: 1; filter: none; border-color: rgba(217, 6, 61, .45); background: var(--red-soft); }
.medal-icon { font-size: 22px; line-height: 1; flex: none; }
.medal-text { display: flex; flex-direction: column; min-width: 0; }
.medal-text strong { font-size: 14px; line-height: 1.2; }
.medal-text small { color: var(--muted); font-size: 12px; line-height: 1.3; }

/* Com "Fixar no topo", a linha de ações do post quebra em vez de espremer os botões. */
.post-actions { flex-wrap: wrap; row-gap: 4px; }
.post-actions .react, .post-actions .link-btn, .post-actions > .muted { white-space: nowrap; }
.medals-missing > summary { cursor: pointer; color: var(--muted); }
.medals-missing[open] > summary { margin-bottom: 8px; }

/* ---------- Bora jogar? ---------- */
.bora-card.is-mine { border-color: rgba(217, 6, 61, .55); }
.bora-card.is-full { opacity: .8; }
.bora-slots { margin: 0; }
.bora-joined { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bora-joined li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--raised); font-size: 14px; }
.bora-joined small { font-size: 12px; }
.bora-card .row-actions form { margin: 0; }
.chat-system-link { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.chat-system-link:hover { background: var(--red-text); color: #fff; }

/* ---------- MVP do evento ---------- */
.mvp-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mvp-adm { border-color: #EFA3B6; }
.mvp-adm .mvp-live-head { margin: 0; }
.mvp-adm .mvp-live-head .h3 { margin: 0; }
.mvp-adm-who { display: flex; flex-direction: column; min-width: 0; }
.mvp-adm-actions { display: flex; flex: none; gap: 6px; }
.mvp-option { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--raised); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mvp-option > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mvp-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvp-option:hover { border-color: var(--red-text); }
.mvp-option.is-mine { border-color: var(--red-text); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red-text); }
.side-mvp { border-color: rgba(217, 6, 61, .55); }

/* Montar PTs: lista que cabe na largura do quadro (sem barra de rolagem para o lado). */
.pt-picks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pt-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 180px); align-items: center; gap: 12px; padding: 10px 14px; }
.pt-pick + .pt-pick { border-top: 1px solid var(--line); }
.pt-pick-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-pick-who .pt-name strong, .pt-pick-who .pt-name small { white-space: normal; overflow-wrap: anywhere; }
.pt-pick select { width: 100%; min-width: 0; }
.pt-names input { width: 100%; min-width: 0; }
@media (max-width: 420px) { .pt-pick { grid-template-columns: minmax(0, 1fr); } }

/* "Bora jogar?" no menu: botão vermelho para chamar atenção. */
.nav a.nav-cta { background: var(--red); color: #fff; font-weight: 700; box-shadow: 0 0 0 1px rgba(217, 6, 61, .35), 0 6px 18px -8px rgba(217, 6, 61, .9); }
.nav a.nav-cta:hover { background: var(--red-hover); color: #fff; }
.nav a.nav-cta[aria-current="page"] { background: #B0042F; color: #fff; box-shadow: inset 0 0 0 2px #FF8FAB; }
.nav a.nav-cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Faixa do Bora jogar? ---------- */
.call-banner { background: linear-gradient(90deg, #B0042F, var(--red)); color: #fff; box-shadow: 0 6px 20px -10px rgba(217, 6, 61, .9); }
.call-banner[hidden] { display: none; }
.call-list { padding-top: 4px; padding-bottom: 4px; }
.call-in { display: flex; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.call-in + .call-in { border-top: 1px solid rgba(255, 255, 255, .22); }
.call-in p { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.call-in small { opacity: .85; margin-left: 4px; white-space: nowrap; }
.call-in .text-link { color: #fff; }
.call-tag { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; background: rgba(11, 36, 71, 0.1); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.call-icon { font-size: 22px; animation: call-shake 1.6s ease-in-out infinite; }
.call-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.call-actions form { margin: 0; }
.call-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; background: rgba(11, 36, 71, 0.09); color: #fff; font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.call-btn:hover { background: rgba(11, 36, 71, 0.16); color: #fff; }
.call-btn-main { background: #fff; border-color: #fff; color: #B0042F; }
.call-btn-main:hover { background: #FFE3EA; color: #B0042F; }
.call-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: #fff; color: #B0042F; font-size: 11px; letter-spacing: 0; vertical-align: 1px; }

/* 2 ou mais chamados: letreiro rolando numa linha só, como o placar que passa na TV.
   Duas cópias da lista lado a lado; cada uma anda a própria largura e a outra emenda. */
.call-ticker { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.call-ticker .call-tag { flex: none; margin-right: 0; }
.ticker { --ticker-gap: 36px; flex: 1; min-width: 0; display: flex; gap: var(--ticker-gap); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.ticker-group { flex: none; min-width: 100%; display: flex; align-items: center; justify-content: space-around; gap: var(--ticker-gap); margin: 0; padding: 0; list-style: none; animation: ticker-roll var(--ticker-dur, 24s) linear infinite; }
.ticker:hover .ticker-group, .ticker:focus-within .ticker-group { animation-play-state: paused; }
.ticker-group li { flex: none; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; white-space: nowrap; }
.ticker-item::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 2px; background: #fff; opacity: .7; transform: rotate(45deg); }
.ticker-item:hover, .ticker-item:focus-visible { color: #fff; }
.ticker-item:hover .ticker-who, .ticker-item:focus-visible .ticker-who { text-decoration: underline; text-underline-offset: 3px; }
.ticker-who { font-size: 16px; font-weight: 800; }
.ticker-what { padding: 2px 9px; border-radius: 6px; background: #fff; color: #B0042F; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ticker-left { padding: 2px 9px; border-radius: 6px; background: rgba(11, 36, 71, 0.12); font-size: 13px; font-weight: 600; }
.ticker-left b { color: #FFD54A; font-size: 15px; font-weight: 800; }
.ticker-in { font-size: 13px; opacity: .9; }
@keyframes ticker-roll { to { transform: translateX(calc(-100% - var(--ticker-gap))); } }

@media (max-width: 640px) {
  .call-in { flex-wrap: wrap; gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .call-in .call-icon { display: none; }
  .call-in p { flex-basis: 100%; }
  .call-ticker { flex-wrap: wrap; gap: 8px 10px; }
  .call-ticker .call-icon { display: none; }
  .call-ticker .call-tag { margin-right: auto; }
  .call-ticker .ticker { order: 3; flex-basis: 100%; }
  .call-ticker .call-btn { min-height: 32px; }
}
@keyframes call-shake { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 85% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) {
  .call-icon { animation: none; }
  /* Sem animação: a lista fica parada e dá para arrastar para o lado. */
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-group { animation: none; min-width: 0; }
  .ticker-group[aria-hidden] { display: none; }
}

/* ---------- Avisos no celular ---------- */
.push-box [hidden] { display: none !important; }
.push-ios { padding: 10px 12px; border-radius: 10px; background: var(--raised); }
.notification-footer { gap: 12px; }

/* ---------- Meta coletiva do mês ---------- */
.meta-card { border-color: rgba(217, 6, 61, .35); }
.meta-card.is-met { border-color: var(--red-text); box-shadow: 0 0 0 1px var(--red-text), 0 12px 30px -16px rgba(217, 6, 61, .8); }
.meta-num { font-family: var(--serif); font-size: 30px; color: var(--red-text); font-variant-numeric: tabular-nums; }
.meta-track { height: 14px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.meta-track > span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .6s ease; }
.meta-form { align-items: flex-end; }
.meta-form .field { flex: 0 1 260px; }
@media (prefers-reduced-motion: reduce) { .meta-track > span { transition: none; } }

/* ---------- Aniversário no feed ---------- */
.bday-card { display: flex; align-items: center; gap: 14px; border-color: rgba(217, 6, 61, .45); background: linear-gradient(120deg, var(--red-soft), var(--surface)); }
.bday-card p { margin: 2px 0 0; }
.bday-icon { font-size: 34px; line-height: 1; }

/* ---------- Hall da Fama ---------- */
.hall-top { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hall-top li { display: flex; align-items: center; gap: 10px; }
.hall-list { list-style: none; margin: 0; padding: 0; }
.hall-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.hall-list li + li { border-top: 1px solid var(--line); }
.hall-when { font-weight: 600; overflow-wrap: anywhere; }
.hall-who { overflow-wrap: anywhere; }
@media (max-width: 600px) { .hall-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
/* MVP no Hall da Fama: top 3 (parcial durante a votação e resultado final). */
.mvp-podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mvp-podium li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mvp-podium .grow { min-width: 0; overflow-wrap: anywhere; }
.mvp-medal { flex: none; font-size: 20px; line-height: 1; }
.mvp-place { flex: none; min-width: 22px; font-weight: 700; color: var(--muted); }
.mvp-votes { flex: none; white-space: nowrap; }
.mvp-live { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--red-soft); }
.mvp-live-head { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mvp-live-head .tag { align-self: center; }
.mvp-live > p:last-child { margin: 10px 0 0; }
/* Feed: anúncio da votação do MVP quando o evento termina (texto de lore + Votar no MVP). */
.mvp-call { border-color: rgba(217, 6, 61, .45); background: radial-gradient(120% 140% at 100% 0%, rgba(217, 6, 61, .28), transparent 55%), linear-gradient(160deg, var(--red-soft), var(--surface) 70%); }
.mvp-call .eyebrow { margin: 0; }
.mvp-call-title { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.mvp-call-event { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mvp-call-event .tag { align-self: center; }
.mvp-call-lore { margin: 0; padding-left: 14px; border-left: 3px solid rgba(217, 6, 61, .55); font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.6; }
.mvp-call > p.muted { margin: 0; }
.mvp-voted { margin: 0; color: var(--ok); font-weight: 600; }
.mvp-my-vote .mvp-voted { font-size: 17px; }
/* Página do MVP: quadro "Resultado até agora" acima da votação. */
.mvp-partial { background: var(--red-soft); }
.mvp-partial .mvp-live-head { margin: 0; }
.mvp-partial .mvp-live-head .h3 { margin: 0; }
.hall-list li.has-podium { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.hall-list .mvp-podium li { display: flex; padding: 0; border-top: 0; }
@media (max-width: 600px) { .hall-list li.has-podium { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.bday-card .btn { flex: none; white-space: nowrap; }
@media (max-width: 600px) { .bday-card { flex-wrap: wrap; } .bday-card .btn { width: 100%; justify-content: center; } }


/* =========================================================
   CEDP — marca, versículo, visita e Tesouraria
   ========================================================= */
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt > span { font-family: var(--serif); font-weight: 800; font-size: 24px; letter-spacing: .02em; color: var(--navy); }
.brand-txt small { font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: .02em; color: var(--blue); }
@media (max-width: 560px) { .brand-txt small { display: none; } }
.display { color: var(--navy); }
.motto { color: var(--red); }
.hero-bg { background: radial-gradient(60% 80% at 85% 20%, rgba(11, 181, 240, .16), transparent 60%), radial-gradient(50% 70% at 10% 90%, rgba(217, 6, 61, .08), transparent 60%), linear-gradient(180deg, #fff, var(--bg)); }
.verse { margin: 0; padding: 12px 16px; max-width: 620px; border-left: 4px solid var(--sky); border-radius: 0 12px 12px 0; background: rgba(11, 181, 240, .08); font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--navy); }
.verse span { display: block; margin-top: 4px; font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; border-top: 4px solid var(--blue); }
.visit-schedule { font-size: 17px; line-height: 1.7; }
.visit-info { margin: 0; }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }
.ftr-verse { font-family: var(--serif); font-style: italic; color: var(--navy); }

.fin .kpis b { font-size: 28px; font-variant-numeric: tabular-nums; }
.fin-in { color: #17803F; }
.fin-out { color: var(--red-text); }
.fin-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fin-bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.fin-bar-label strong { font-variant-numeric: tabular-nums; }
.fin-bar-track { display: block; height: 8px; margin-top: 4px; border-radius: 999px; background: var(--deep); overflow: hidden; }
.fin-bar-fill { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; transition: width .5s ease; }
.fin-bar-fill.fin-in { background: linear-gradient(90deg, #1E9E50, #46C77A); }
.fin-bar-fill.fin-out { background: linear-gradient(90deg, var(--red-hover), #FF4D7A); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.fin .inline-form input[type="month"] { min-height: 40px; padding: 6px 10px; width: auto; }
@media (max-width: 760px) { .kpis.fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fin-tag-in { background: #E3F4EA; color: #17703D; }
.fin-tag-out { background: var(--red-soft); color: var(--red-text); }

/* =========================================================
   Tema escuro (opcional) — cada pessoa liga no botão lua/sol do topo.
   O servidor coloca data-theme="escuro" no <html> quando o cookie "tema" pede.
   ========================================================= */
.theme-form { display: inline-flex; margin: 0; }
.theme-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s, transform .2s; }
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { display: block; }
.theme-toggle .theme-ico-sun, html[data-theme="escuro"] .theme-toggle .theme-ico-moon { display: none; }
html[data-theme="escuro"] .theme-toggle .theme-ico-sun { display: block; }
html[data-theme="escuro"] .theme-toggle { color: #FFD54A; }

html[data-theme="escuro"] {
  color-scheme: dark;
  --bg: #0A1220;
  --deep: #0E1829;
  --surface: #131F34;
  --raised: #1B2A43;
  --line: #24354F;
  --line-strong: #3A5071;
  --text: #E8EEF8;
  --muted: #A7B5C9;
  --faint: #8090A8;
  --red: #E0164A;
  --red-hover: #BF0F3D;
  --red-text: #FF7396;
  --red-soft: rgba(224, 22, 74, .16);
  --ok: #3CCB7F;
  --navy: #DDE8F7;
  --blue: #6DB3F5;
  --sky: #3CC8F5;
}
html[data-theme="escuro"] input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=file]):not([type=color]):not([type=range]),
html[data-theme="escuro"] select, html[data-theme="escuro"] textarea { color-scheme: dark; background: var(--deep); }
html[data-theme="escuro"] .hdr, html[data-theme="escuro"] .ftr { background: var(--deep); }
html[data-theme="escuro"] .hdr { box-shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 8px 24px -16px rgba(0, 0, 0, .9); }
html[data-theme="escuro"] .nav a:hover, html[data-theme="escuro"] .nav a[aria-current="page"] { background: var(--raised); }
html[data-theme="escuro"] .brand img, html[data-theme="escuro"] .sigil { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .14)); }
html[data-theme="escuro"] .modal::backdrop { background: rgba(2, 6, 14, .7); }
html[data-theme="escuro"] .flash-ok { border-color: #2F7A4C; background: rgba(46, 160, 90, .14); }
html[data-theme="escuro"] .resp-vou { --ans: #4FD68B; --ans-dim: rgba(79, 214, 139, .45); --ans-soft: rgba(79, 214, 139, .12); }
html[data-theme="escuro"] .resp-talvez { --ans: #F2C14E; --ans-dim: rgba(242, 193, 78, .45); --ans-soft: rgba(242, 193, 78, .12); }
html[data-theme="escuro"] .resp-nao { --ans: #FF7396; --ans-dim: rgba(255, 115, 150, .45); --ans-soft: rgba(255, 115, 150, .12); }
html[data-theme="escuro"] .rsvp-answer-vou { color: #5BD993; border-color: #2F7A4C; }
html[data-theme="escuro"] .rsvp-answer-talvez { color: #F2C14E; border-color: #7A6322; }
html[data-theme="escuro"] .rsvp-answer-nao { border-color: #7C2C44; }
html[data-theme="escuro"] .rsvp-answer-vou:hover, html[data-theme="escuro"] .rsvp-answer-vou.is-current,
html[data-theme="escuro"] .check-btn.check-foi:hover { background: rgba(46, 160, 90, .18); color: #7BE3A6; }
html[data-theme="escuro"] .private-message.mine { background: #16304F; border-color: #2A4C75; }
html[data-theme="escuro"] .chat-count { box-shadow: 0 0 0 2px var(--bg), 0 2px 6px rgba(0, 0, 0, .4); }
html[data-theme="escuro"] .btn-google { border-color: #8E918F; background: #131314; color: #E3E3E3; }
html[data-theme="escuro"] .btn-google:hover { background: #1F1F21; color: #E3E3E3; }
html[data-theme="escuro"] .btn-google .ico { color: #E3E3E3; }
html[data-theme="escuro"] .profile-cover-empty { background: radial-gradient(ellipse at 78% 30%, rgba(217, 6, 61, .55) 0, transparent 55%), radial-gradient(ellipse at 20% 80%, rgba(11, 181, 240, .45) 0, transparent 60%), linear-gradient(120deg, #0B2447, #0B5CAD); }
html[data-theme="escuro"] .hero-bg { background: radial-gradient(60% 80% at 85% 20%, rgba(11, 181, 240, .14), transparent 60%), radial-gradient(50% 70% at 10% 90%, rgba(224, 22, 74, .12), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg)); }
html[data-theme="escuro"] .verse { background: rgba(60, 200, 245, .08); }
html[data-theme="escuro"] .fin-in { color: #5BD993; }
html[data-theme="escuro"] .fin-tag-in { background: rgba(46, 160, 90, .18); color: #7BE3A6; }
@media (prefers-reduced-motion: no-preference) { html.js body { transition: background-color .25s ease, color .25s ease; } }
