:root {
  --bg: #050507;
  --bg-2: #0d0b14;
  --card: #110e1a;
  --card-2: #1a1428;
  --line: #2a2140;
  --text: #ece6ff;
  --muted: #9b90bd;
  --accent: #a855f7;
  --accent-soft: #c084fc;
  --accent-2: #b98cff;
  --online: #4ade80;
  --danger: #ff5c7a;
  --radius: 14px;
  --glow: 0 0 18px rgba(168, 85, 247, .45);
  --shadow: 0 10px 30px rgba(0, 0, 0, .6);
  --font-brand: "Sedgwick Ave Display", "Permanent Marker", cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(900px 500px at 50% -15%, rgba(126, 34, 206, .28) 0%, transparent 65%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 40px; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(5, 5, 7, .8); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-brand); font-size: 26px; color: var(--accent-soft); text-shadow: var(--glow); letter-spacing: .02em; }
/* logo.webp tem 1254x1254; recortes via background */
.brand-logo { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #000 url(/logo.webp) no-repeat; background-size: 96px; background-position: -29px -6px; box-shadow: 0 0 0 2px var(--accent), var(--glow); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a.active { background: var(--card); color: var(--text); }
.userbox { display: flex; align-items: center; gap: 8px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--card-2); border-color: #3a4066; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, #7e22ce, var(--accent)); border-color: transparent; color: #fff; box-shadow: 0 0 14px rgba(168, 85, 247, .35); }
.btn.primary:hover { filter: brightness(1.15); box-shadow: var(--glow); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.small { padding: 4px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
input, textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; outline: none; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; font-size: 18px; }
h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }

/* hero / TS */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 440px; align-items: center; gap: 10px;
  padding: 34px 34px 0; border-radius: 22px; border: 1px solid #4c1d95;
  background: radial-gradient(600px 380px at 78% 55%, rgba(126, 34, 206, .38), transparent 70%), #08060d;
  box-shadow: var(--shadow), inset 0 0 50px rgba(126, 34, 206, .15);
}
.hero-text { position: relative; z-index: 1; padding-bottom: 34px; }
.hero-the { font-family: var(--font-brand); font-size: clamp(26px, 3.4vw, 40px); line-height: 1; color: var(--accent-soft); text-shadow: var(--glow); margin-left: 6px; }
.hero-title { font-family: var(--font-brand); font-weight: 400; font-size: clamp(76px, 12vw, 150px); line-height: .9; margin: 0; letter-spacing: .01em;
  color: #c084fc; text-shadow: 0 0 28px rgba(168, 85, 247, .7), 0 0 4px rgba(233, 213, 255, .5); }
.hero-club { display: flex; align-items: center; gap: 14px; max-width: 420px; margin: 6px 0 18px; color: var(--accent-soft); font-weight: 600; letter-spacing: .7em; font-size: clamp(16px, 2vw, 22px); }
.hero-club::before, .hero-club::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .6; box-shadow: var(--glow); }
.hero-club span { margin-right: -.7em; }
.hero p { color: #c9bfe8; margin: 0 0 18px; max-width: 46ch; }
/* ET animado — recorte x 220–1075, y 95–736 do logo.webp (1254x1254) */
.hero-art { position: relative; align-self: end; width: 100%; aspect-ratio: 855 / 641; cursor: pointer; --mx: 0; --my: 0; -webkit-tap-highlight-color: transparent; }
/* mix-blend no grupo inteiro: o fundo preto do logo some e a fumaça acompanha o ET */
.et-body { position: absolute; inset: 0; mix-blend-mode: lighten;
  transform: translate(calc(var(--mx) * 10px), calc(var(--my) * 6px)) rotate(calc(var(--mx) * 2.5deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.et-float { position: absolute; inset: 0; animation: hover 7s ease-in-out infinite; transform-origin: 50% 90%; }
.et-float.boing { animation: boing .7s cubic-bezier(.3, 1.6, .5, 1), hover 7s ease-in-out .7s infinite; }
.hero-alien { position: absolute; inset: 0; background: url(/logo.webp) no-repeat; background-size: 146.7% auto; background-position: 55.1% 15.5%;
  filter: saturate(1.1);
  -webkit-mask-image: linear-gradient(#000 86%, transparent); mask-image: linear-gradient(#000 86%, transparent); }
@keyframes hover {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-7px) rotate(-1.2deg); }
  50% { transform: translateY(-3px) rotate(0); }
  75% { transform: translateY(-8px) rotate(1.2deg); }
}
@keyframes boing {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-22px) scale(1.04, .97) rotate(-3deg); }
  60% { transform: translateY(0) scale(.97, 1.03); }
  100% { transform: translateY(0) scale(1); }
}
/* fumaça saindo da ponta do baseado (~65% x 68% do recorte) */
.et-smoke { position: absolute; left: 65%; top: calc(68.6% + 14px); width: 0; height: 0; }
/* fiapos finos e desfocados que sobem ondulando e se dissipam */
.et-smoke i { position: absolute; left: -8px; top: -30px; width: 16px; height: 36px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(240, 234, 255, .85), rgba(205, 185, 255, .35) 40%, transparent 70%);
  filter: blur(3px); opacity: 0; animation: smoke 6.5s cubic-bezier(.35, .1, .4, 1) infinite; }
.et-smoke i:nth-child(2) { animation-delay: 1.3s; animation-duration: 7.2s; }
.et-smoke i:nth-child(3) { animation-delay: 2.6s; animation-name: smoke-alt; }
.et-smoke i:nth-child(4) { animation-delay: 3.9s; animation-duration: 6s; }
.et-smoke i:nth-child(5) { animation-delay: 5.2s; animation-name: smoke-alt; animation-duration: 7s; }
@keyframes smoke {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.5, .4); }
  12% { opacity: .7; }
  35% { transform: translate(6px, -28px) rotate(14deg) scale(1, 1.3); }
  60% { opacity: .4; transform: translate(-4px, -58px) rotate(-10deg) scale(1.6, 1.8); }
  100% { opacity: 0; transform: translate(10px, -130px) rotate(18deg) scale(2.8, 2.6); }
}
@keyframes smoke-alt {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.5, .4); }
  12% { opacity: .6; }
  35% { transform: translate(-5px, -26px) rotate(-12deg) scale(1, 1.4); }
  60% { opacity: .35; transform: translate(7px, -55px) rotate(12deg) scale(1.5, 1.9); }
  100% { opacity: 0; transform: translate(-8px, -124px) rotate(-16deg) scale(2.6, 2.8); }
}
/* balão de fala */
.et-bubble { position: absolute; z-index: 3; left: 4%; top: 2%; max-width: 62%; padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: #f5f0ff; color: #1a1029; font-size: 14px; font-weight: 600; line-height: 1.35; box-shadow: 0 0 0 2px var(--accent), 0 10px 30px rgba(0, 0, 0, .5), var(--glow); }
.et-bubble b { font-family: var(--font-brand); font-weight: 400; font-size: 18px; color: #7e22ce; margin-right: 4px; }
.et-bubble.show { animation: bubble 5.2s ease forwards; transform-origin: 20% 100%; }
@keyframes bubble { 0% { opacity: 0; transform: scale(.4) translateY(10px); } 6% { opacity: 1; transform: scale(1.05); } 10% { transform: scale(1); } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .et-float, .et-smoke i, .ticker-track, .hero-stars i { animation: none !important; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 26px 20px 0; text-align: center; }
  .hero-text { padding-bottom: 0; }
  .hero-club { margin-left: auto; margin-right: auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero .ts-actions { justify-content: center; }
  .hero-art { max-width: 420px; margin: 0 auto; }
}
.ts-kicker { letter-spacing: .5em; font-size: 12px; font-weight: 700; color: var(--accent-soft); }
.ts-title { font-family: var(--font-brand); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: 1; margin: 2px 0 2px; color: var(--accent-soft); text-shadow: 0 0 24px rgba(168, 85, 247, .6); }
.ts-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ts-btn { font-size: 16px; padding: 12px 20px; border-radius: 12px; }
.ts-addr { font-family: ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, .3); padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; }
.ts-addr:hover { border-color: rgba(255, 255, 255, .3); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } }
/* home: estrelas, letreiro, oráculo, quem tá on */
.hero-stars { position: absolute; inset: 0; pointer-events: none; }
.hero-stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #e9d5ff; box-shadow: 0 0 6px #c084fc; opacity: .15; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .9; } }
.hero-online { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); font-size: 13px; color: var(--muted); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
.copy-ico { opacity: .55; margin-left: 4px; }
.ticker { grid-column: 1 / -1; position: relative; z-index: 1; margin: 0 -34px; overflow: hidden; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .45);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: inline-flex; align-items: center; gap: 18px; padding: 11px 0; white-space: nowrap; animation: marquee 90s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { color: var(--muted); font-size: 14px; }
.ticker a:hover { color: var(--text); }
.ticker a b { font-family: var(--font-brand); font-weight: 400; font-size: 17px; color: var(--accent-soft); margin-right: 4px; }
.tick-sep { opacity: .5; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stat { position: relative; transition: transform .15s, border-color .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); border-color: #4c1d95; box-shadow: var(--glow); }
.stat-ico { position: absolute; right: 14px; top: 12px; font-size: 20px; opacity: .8; }
.home-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.oracle, .who { padding: 18px 20px; }
.oracle { position: relative; overflow: hidden; border-color: #4c1d95; background: radial-gradient(420px 220px at 100% 0%, rgba(126, 34, 206, .25), transparent 70%), var(--card); }
.oracle-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.oracle-tag { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-soft); }
.oracle-card { animation: pop .3s ease-out; transition: opacity .2s, transform .2s; }
.oracle-card.out { opacity: 0; transform: translateY(-6px) scale(.98); }
.oracle-num { font-family: var(--font-brand); font-size: 46px; line-height: 1; color: var(--accent-soft); text-shadow: var(--glow); }
.oracle-num sup { font-family: Inter, sans-serif; font-weight: 800; font-size: 16px; text-decoration: underline; }
.oracle-title { font-size: 20px; font-weight: 800; margin: 8px 0; overflow-wrap: anywhere; }
.oracle-body { font-size: 14px; color: #c9bfe8; max-height: 170px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.oracle-body ul { columns: 140px; padding-left: 18px; margin: 4px 0; }
.oracle-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
#reroll { transition: transform .2s; }
#reroll.spin { transform: rotate(-10deg) scale(.94); }
.who-list { display: flex; flex-wrap: wrap; gap: 8px; }
.who-sub { margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.member-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: border-color .15s; }
.member-chip:hover { border-color: var(--accent); }
.member-chip .avatar { width: 28px; height: 28px; font-size: 12px; }
.member-chip.on .avatar { box-shadow: 0 0 0 2px var(--online), 0 0 10px rgba(74, 222, 128, .6); }
.member-chip:not(.on) { opacity: .7; }
.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 2px var(--accent), 0 0 30px rgba(168, 85, 247, .6); } }
@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
  .ticker { margin: 0 -20px; }
  .hero-online { margin-left: auto; margin-right: auto; }
}

.home-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.home-link { display: flex; gap: 16px; align-items: flex-start; transition: border-color .15s, transform .15s; }
.home-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--glow); }
.home-link > div > b { font-size: 17px; }
.home-link p b { color: var(--accent-soft); }
.home-link p { margin: 6px 0 12px; }
.home-link-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle, rgba(126, 34, 206, .35), transparent 75%), var(--bg-2); border: 1px solid var(--line); }
@media (max-width: 700px) { .home-links { grid-template-columns: 1fr; } }
.stat { padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.stat b { font-size: 26px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--online); margin-right: 6px; box-shadow: 0 0 8px var(--online); vertical-align: middle; }
.stat b { color: var(--accent-soft); }

.notice { margin-top: 16px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: #3b2f7a; background: linear-gradient(90deg, rgba(124, 92, 255, .12), transparent); }

/* layout */
.cols { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

/* categories */
.cat-list { overflow: hidden; }
.cat { display: grid; grid-template-columns: 48px 1fr 90px 200px; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.cat:last-child { border-bottom: 0; }
.cat:hover { background: var(--card-2); }
.cat-icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; background: var(--bg-2); border-radius: 12px; }
.cat-name { font-weight: 700; font-size: 16px; }
.cat-desc { color: var(--muted); font-size: 13px; }
.cat-count { text-align: center; color: var(--muted); font-size: 13px; }
.cat-count b { display: block; color: var(--text); font-size: 16px; }
.cat-last { font-size: 13px; min-width: 0; }
.cat-last a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cat-last .hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* threads */
.thread-row { display: grid; grid-template-columns: 40px 1fr 70px 150px; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--card-2); }
.thread-title { font-weight: 600; display: block; }
.thread-meta { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); margin-right: 6px; vertical-align: 2px; }
.badge.pin { color: #ffb020; border-color: #5a4515; }
.badge.lock { color: var(--danger); border-color: #5a1f2b; }
.badge.admin { color: #ffb020; border-color: #5a4515; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* sidebar */
.side .card { margin-bottom: 16px; }
.side h3 { margin: 0; padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.recent { padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.recent:last-child { border-bottom: 0; }
.recent:hover { background: var(--card-2); }
.recent-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent > div { min-width: 0; }

/* avatar */
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; text-transform: uppercase; font-size: 15px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.avatar.lg { width: 72px; height: 72px; font-size: 30px; }
.avatar.xl { width: 64px; height: 64px; font-size: 26px; }

/* posts */
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--text); }
.post { display: grid; grid-template-columns: 150px 1fr; margin-bottom: 14px; overflow: hidden; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.post-author { padding: 18px 14px; background: var(--bg-2); border-right: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.post-author .name { font-weight: 700; word-break: break-word; }
.post-main { padding: 14px 18px; min-width: 0; display: flex; flex-direction: column; }
.post-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 8px; gap: 8px; }
.post-body { flex: 1; word-wrap: break-word; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 10px; }
.post-body img { max-width: 100%; border-radius: 10px; }
.post-body a { color: #a996ff; text-decoration: underline; }
.post-body blockquote { margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 8px 8px 0; color: #c7c9e2; }
.post-body code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.post-body pre { background: var(--bg-2); padding: 12px; border-radius: 10px; overflow-x: auto; }
.post-body pre code { padding: 0; background: none; }
.post-body .mention { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.post-body .spoiler { background: #333; color: transparent; border-radius: 4px; cursor: pointer; padding: 0 3px; }
.post-body .spoiler.open { color: inherit; background: var(--bg-2); }
.post-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; flex-wrap: wrap; }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; position: relative; }
.react { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 2px 9px; cursor: pointer; font: inherit; font-size: 13px; color: var(--text); }
.react.mine { border-color: var(--accent); background: rgba(124, 92, 255, .18); }
.react:hover { border-color: #3a4066; }
.react-picker { display: none; position: absolute; bottom: 110%; left: 0; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; gap: 4px; box-shadow: var(--shadow); z-index: 5; }
.react-picker.open { display: flex; }
.react-picker button { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 4px; border-radius: 8px; }
.react-picker button:hover { background: var(--bg-2); transform: scale(1.15); }
.post-actions { display: flex; gap: 4px; }
.edited { font-style: italic; }

.composer { padding: 16px; margin-top: 18px; }
.composer-tools { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.preview { min-height: 120px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }

/* regras / constituição */
.const-hero { position: relative; overflow: hidden; text-align: center; padding: 34px 20px 26px; border-radius: 22px; border: 1px solid #4c1d95;
  background: radial-gradient(520px 260px at 50% 0%, rgba(126, 34, 206, .35), transparent 70%), #08060d; box-shadow: var(--shadow); }
.const-hero > :not(.hero-stars) { position: relative; }
.const-seal { font-size: 34px; filter: drop-shadow(0 0 12px rgba(168, 85, 247, .7)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }
.const-title { font-family: var(--font-brand); font-weight: 400; font-size: clamp(48px, 9vw, 92px); line-height: 1; margin: 4px 0 8px; color: #c084fc; text-shadow: 0 0 26px rgba(168, 85, 247, .7); }
.const-hero p { max-width: 58ch; margin: 0 auto; }
.const-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.const-chips span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); font-size: 13px; color: var(--muted); }
.const-chips b { color: var(--accent-soft); font-size: 15px; }
.const-bar { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; padding: 10px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(13, 11, 20, .88); backdrop-filter: blur(10px); }
.const-bar input[type=search] { flex: 1; min-width: 180px; }
.const-bar select { width: auto; max-width: 200px; }
.const-jump { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.const-jump input { width: 70px; padding: 8px; }
.rule-form { margin-bottom: 16px; border-color: #4c1d95; }
.pop-in { animation: pop .25s ease-out; }
mark { background: rgba(168, 85, 247, .45); color: #fff; border-radius: 3px; padding: 0 2px; }
/* linha do tempo */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--accent), rgba(168, 85, 247, .15)); box-shadow: var(--glow); }
.rules-era { text-align: center; margin: 22px 0 10px -34px; }
.rules-era span { display: inline-block; font-family: var(--font-brand); font-size: 30px; color: var(--accent-soft); text-shadow: var(--glow); }
.rules-era p { margin: 4px auto 0; max-width: 60ch; }
.year-mark { position: relative; margin: 14px 0 10px; }
.year-mark span { position: relative; left: -34px; display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; box-shadow: var(--glow); }
.rule { position: relative; margin-bottom: 12px; animation: pop .25s ease-out; }
.rule-node { position: absolute; left: -28px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: #08060d; border: 2px solid var(--accent); box-shadow: var(--glow); }
.rule.legacy .rule-node { border-color: #eab308; box-shadow: 0 0 10px rgba(234, 179, 8, .5); }
.rule-card { display: grid; grid-template-columns: 96px 1fr; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.rule-card:hover { border-color: #4c1d95; box-shadow: 0 0 18px rgba(168, 85, 247, .18); }
.rule-num { padding: 16px 6px; text-align: center; border-right: 1px solid var(--line); color: var(--accent-soft); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: radial-gradient(circle at 50% 30%, rgba(126, 34, 206, .3), transparent 75%), var(--bg-2); }
.rule-num b { display: block; font-family: var(--font-brand); font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: 0; text-shadow: var(--glow); }
.rule-num sup { font-size: 12px; text-decoration: underline; }
.rule.legacy .rule-num { background: radial-gradient(circle at 50% 30%, rgba(234, 179, 8, .14), transparent 75%), var(--bg-2); }
/* lei revogada: continua na lista, em vermelho */
.rule.revoked .rule-card { border-color: #7f1d1d; background: linear-gradient(90deg, rgba(220, 38, 38, .16), rgba(220, 38, 38, .05)), var(--card); box-shadow: 0 0 16px rgba(220, 38, 38, .15); }
.rule.revoked .rule-card:hover { border-color: #b91c1c; box-shadow: 0 0 20px rgba(220, 38, 38, .25); }
.rule.revoked .rule-num { color: #f87171; border-right-color: #7f1d1d; background: radial-gradient(circle at 50% 30%, rgba(220, 38, 38, .3), transparent 75%), #1a0b0f; }
.rule.revoked .rule-num b { text-shadow: 0 0 14px rgba(248, 113, 113, .6); text-decoration: line-through; text-decoration-thickness: 3px; }
.rule.revoked .rule-title { color: #fca5a5; text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, .7); }
.rule.revoked .post-body { color: #d6a3a8; }
.rule.revoked .rule-node { border-color: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, .6); }
.revoked-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 8px; padding: 6px 10px; border-radius: 10px; font-size: 13px; color: #fecaca;
  background: rgba(127, 29, 29, .35); border: 1px dashed #b91c1c; }
.stamp.revoked { border-color: #ef4444; color: #fff; background: #dc2626; transform: rotate(-3deg); box-shadow: 0 0 10px rgba(239, 68, 68, .5); }
.chip-revoked { border-color: #7f1d1d !important; color: #fca5a5 !important; }
.chip-revoked b { color: #f87171 !important; }
.icon-btn.revoke { border-color: #7f1d1d; background: rgba(127, 29, 29, .25); }
.icon-btn.revoke:hover { background: rgba(185, 28, 28, .45); border-color: #ef4444; }
.icon-btn.reactivate { border-color: #14532d; background: rgba(20, 83, 45, .3); }
.icon-btn.reactivate:hover { background: rgba(22, 101, 52, .55); border-color: #22c55e; }
.rule-tools .btn { padding: 3px 9px; }
/* janela de confirmação */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 440px; padding: 22px; animation: pop .2s ease-out; }
.modal.danger { border-color: #b91c1c; box-shadow: 0 0 30px rgba(220, 38, 38, .3); }
.modal h3 { margin: 0 0 10px; font-size: 19px; }
.modal-body p { margin: 0 0 10px; }
.modal-input { margin-top: 4px; text-align: center; font-size: 18px; font-weight: 800; letter-spacing: .1em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger:disabled { background: #3f1a1f; border-color: #3f1a1f; color: #9b7b80; }
@keyframes fade { from { opacity: 0; } }
.rule-main { padding: 14px 18px; min-width: 0; }
.rule-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stamp { padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; border: 1px solid #5a4515; color: #eab308; transform: rotate(-2deg); }
.stamp.site { border-color: #4c1d95; color: var(--accent-soft); }
.legacy-author { color: var(--accent-soft); }
.rule-title { margin: 0 0 6px; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.rule .post-foot { margin-top: 8px; }
.rule .post-body ul { columns: 170px; column-gap: 24px; margin: 4px 0 12px; padding-left: 20px; }
.rule .post-body li { break-inside: avoid; }
.rule-tools { margin-left: auto; display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.rule-card:hover .rule-tools { opacity: 1; }
.icon-btn { background: none; border: 1px solid transparent; border-radius: 8px; padding: 3px 7px; cursor: pointer; font-size: 15px; }
.icon-btn:hover { border-color: var(--line); background: var(--bg-2); }
.icon-btn.danger:hover { border-color: #5a1f2b; }
@media (max-width: 600px) {
  .timeline { padding-left: 22px; }
  .timeline::before { left: 5px; }
  .rule-node { left: -22px; }
  .year-mark span { left: -22px; }
  .rules-era { margin-left: -22px; }
  .rule-card { grid-template-columns: 1fr; }
  .rule-num { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 14px; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .rule-num b { display: inline; font-size: 28px; }
  .const-bar { top: 60px; }
  .rule-tools { opacity: 1; }
}
.rule-foot { justify-content: flex-start; }
.replies { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; }
.reply { display: flex; gap: 10px; padding: 8px 10px; border-radius: 12px; animation: pop .2s ease-out; }
.reply:hover { background: var(--bg-2); }
.reply-main { flex: 1; min-width: 0; }
.reply-head { font-size: 14px; }
.reply-body { font-size: 14px; margin-top: 2px; }
.reply-body p { margin: 0 0 4px; }
.reply-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.reply-foot .react { font-size: 12px; padding: 1px 8px; }
.reply-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; padding: 8px 10px; }
.reply-form textarea { min-height: 38px; max-height: 200px; padding: 8px 12px; border-radius: 12px; resize: none; overflow-y: auto; }

/* ---------- abertura (ao entrar no site) ---------- */
#intro { position: fixed; inset: 0; z-index: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; cursor: pointer;
  background: radial-gradient(circle at 50% 45%, #22093f 0%, #0a0412 50%, #000 100%); }
#intro.leave { pointer-events: none; animation: intro-leave .55s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes intro-leave {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.6); filter: blur(10px) hue-rotate(90deg); }
}
.intro-stars { position: absolute; inset: 0; }
.intro-stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #e9d5ff; box-shadow: 0 0 6px #c084fc; opacity: 0; animation: intro-star 1.4s ease-out forwards; }
@keyframes intro-star { 30% { opacity: .9; } 100% { opacity: .35; } }
.intro-stage { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
/* anel neon se desenhando */
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 8px #a855f7) drop-shadow(0 0 18px rgba(168, 85, 247, .6)); }
.intro-ring circle { fill: none; stroke: #c084fc; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 580; stroke-dashoffset: 580; animation: intro-draw .75s cubic-bezier(.6, 0, .3, 1) .1s forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
/* ET materializando (piscando tipo neon ligando) */
.intro-alien { width: 160px; height: 160px; border-radius: 50%; background: #000 url(/logo.webp) no-repeat; background-size: 384px; background-position: -117px -24px;
  opacity: 0; animation: intro-alien .9s ease-out .35s forwards; }
@keyframes intro-alien {
  0% { opacity: 0; transform: scale(.6) rotate(-12deg); filter: brightness(3) blur(6px); }
  20% { opacity: .9; }
  28% { opacity: .2; }
  38% { opacity: 1; }
  46% { opacity: .5; }
  60% { opacity: 1; transform: scale(1.06) rotate(3deg); filter: brightness(1.3) blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: none; }
}
.intro-title { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.intro-the, .intro-club { font-weight: 800; letter-spacing: .6em; margin-right: -.6em; color: var(--accent-soft); font-size: 14px; opacity: 0; animation: intro-fade .4s ease-out .75s forwards; }
.intro-club { margin-top: 8px; animation-delay: 1s; }
.intro-name { font-family: var(--font-brand); font-size: clamp(56px, 12vw, 96px); color: #c084fc; text-shadow: 0 0 24px rgba(168, 85, 247, .8); }
.intro-name i { font-style: normal; display: inline-block; opacity: 0; animation: intro-letter .5s ease-out forwards; }
.intro-name i:nth-child(1) { animation-delay: .6s; }
.intro-name i:nth-child(2) { animation-delay: .67s; }
.intro-name i:nth-child(3) { animation-delay: .74s; }
.intro-name i:nth-child(4) { animation-delay: .81s; }
.intro-name i:nth-child(5) { animation-delay: .88s; }
.intro-name i:nth-child(6) { animation-delay: .95s; }
@keyframes intro-letter {
  0% { opacity: 0; transform: translateY(14px) scale(1.4); filter: blur(6px); }
  50% { opacity: 1; text-shadow: 0 0 40px #fff, 0 0 24px #a855f7; }
  70% { opacity: .4; }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes intro-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .intro-stage { width: 150px; height: 150px; }
  .intro-alien { width: 126px; height: 126px; background-size: 302px; background-position: -92px -19px; }
}
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }

/* ---------- carregamento entre páginas: linha fina no topo (só aparece se demorar) ---------- */
#loadbar { position: fixed; top: 0; left: 0; z-index: 500; height: 2px; width: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, #7e22ce, #c084fc, #4ade80); box-shadow: 0 0 8px rgba(168, 85, 247, .8); }
#loadbar.on { opacity: 1; animation: loadbar 8s cubic-bezier(.1, .7, .2, 1) forwards; }
#loadbar.done { opacity: 0; width: 100%; transition: width .15s ease-out, opacity .3s ease .15s; }
@keyframes loadbar { from { width: 0; } to { width: 90%; } }
/* estrelinhas discretas na borda de baixo ao rolar */
.scroll-stars { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 40; pointer-events: none; }
.scroll-stars i { position: absolute; bottom: 4px; width: var(--size, 3px); height: var(--size, 3px); border-radius: 50%; background: #f3e8ff;
  box-shadow: 0 0 8px 2px rgba(192, 132, 252, .85); opacity: 0; animation: scroll-star 1s ease-out forwards; }
/* estrelinha de 4 pontas */
.scroll-stars i.sparkle { width: calc(var(--size, 3px) * 3); height: calc(var(--size, 3px) * 3); border-radius: 0; box-shadow: none; background: #f3e8ff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px #c084fc); }
@keyframes scroll-star {
  0% { opacity: 0; transform: translate(0, 0) scale(.5) rotate(0); }
  20% { opacity: .85; }
  100% { opacity: 0; transform: translate(var(--drift, 0), var(--rise, -45px)) scale(1.1) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) { .scroll-stars { display: none; } }
/* troca de página: só um fade-in */
#app.fade-in { animation: fade-in .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes fade-in { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.show-xs { display: none; }

/* ---------- página inicial: mosaico (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.tile { position: relative; display: block; padding: 18px 20px; border-radius: 18px; color: var(--text); overflow: hidden;
  /* borda com degradê sutil */
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(140deg, rgba(168, 85, 247, .55), rgba(42, 33, 64, .9) 35%, rgba(42, 33, 64, .9) 70%, rgba(74, 222, 128, .25)) border-box;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease; }
.tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px 180px at 100% 0%, rgba(126, 34, 206, .14), transparent 70%); }
.tile > * { position: relative; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 22px rgba(168, 85, 247, .12); }
.tile-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tile-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 15px; background: rgba(126, 34, 206, .22); border: 1px solid #3b2a63; }
.tile-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-soft); }
.tile-action { margin-left: auto; }
.tile-link-sm { font-size: 13px; color: var(--muted); }
.tile-link-sm:hover { color: var(--text); }
.tile-arrow { font-size: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.tile-link:hover .tile-arrow { transform: translateX(4px); color: var(--accent-soft); }
.tile-big { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--accent-soft); }
.tile-big small { font-size: 14px; font-weight: 600; color: var(--muted); }
.tile-link p { margin: 8px 0 0; font-size: 13.5px; }
.tile-empty { font-size: 14px; }
/* posições no mosaico */
.tile-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.stat-cell { position: relative; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat-cell + .stat-cell { border-left: 1px solid var(--line); }
.stat-cell b { font-size: 28px; line-height: 1.1; color: var(--accent-soft); }
.stat-cell span:last-child { font-size: 13px; color: var(--muted); }
.stat-cell .stat-ico { position: absolute; right: 16px; top: 14px; font-size: 18px; opacity: .8; }
.tile-oracle { grid-column: span 2; grid-row: span 2; }
.tile-who, .tile-votes, .tile-rules, .tile-forum { grid-column: span 2; }
/* votações no mosaico */
.vote-row { display: block; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s; }
.vote-row:hover { border-color: #4c1d95; }
.vote-title { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-bar { height: 6px; margin: 8px 0 6px; border-radius: 999px; background: rgba(239, 68, 68, .35); overflow: hidden; }
.vote-bar span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); }
.vote-meta { display: flex; justify-content: space-between; font-size: 12px; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .tile-oracle, .tile-who, .tile-votes, .tile-rules, .tile-forum { grid-column: auto; grid-row: auto; }
  .tile-stats { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(3) { border-left: 0; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- foto de perfil e imagens ---------- */
.avatar.has-img { overflow: hidden; padding: 0; }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.post-body img.post-img { display: block; max-width: min(100%, 560px); max-height: 520px; margin: 6px 0 10px; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }

/* ---------- editar perfil ---------- */
.profile-edit { max-width: 640px; margin: 0 auto; }
.profile-form { padding: 0; overflow: hidden; }
.pe-banner { --uc: #7c5cff; position: relative; height: 150px; background: linear-gradient(135deg, color-mix(in srgb, var(--uc) 55%, #0d0b14), #0d0b14) center / cover no-repeat; }
.pe-banner-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.pe-banner-tools .btn { background: rgba(0, 0, 0, .6); }
.pe-head { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 14px; padding: 0 20px; margin-top: -44px; flex-wrap: wrap; }
.pe-avatar-tools { padding-top: 50px; }
.pe-avatar .avatar { width: 96px; height: 96px; font-size: 38px; box-shadow: 0 0 0 5px var(--card); }
.pe-avatar-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-bottom: 6px; }
.pe-avatar-tools .hint { flex-basis: 100%; }
.pe-body { padding: 4px 20px 20px; }
.pe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pe-section { margin: 22px 0 0; font-size: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.prefs { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.prefs th { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; padding: 6px; }
.prefs td { padding: 8px 6px; border-top: 1px solid var(--line); }
.prefs td:not(:first-child) { text-align: center; width: 90px; }
.prefs input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (max-width: 600px) { .pe-grid { grid-template-columns: 1fr; } .prefs td:not(:first-child) { width: 60px; } }

/* ---------- perfil público ---------- */
.profile-card { padding: 0; overflow: hidden; }
.profile-banner { --uc: #7c5cff; height: 170px; background: radial-gradient(260px 140px at 50% 120%, color-mix(in srgb, var(--uc) 60%, transparent), transparent), linear-gradient(135deg, color-mix(in srgb, var(--uc) 40%, #0d0b14), #0d0b14) center / cover no-repeat; }
.profile-banner.has-img, .mcard-banner.has-img { background-size: cover; background-position: center; }
.profile-main { display: flex; gap: 18px; padding: 0 22px 18px; flex-wrap: wrap; }
.profile-avatar { margin-top: -50px; }
.profile-avatar .avatar { width: 112px; height: 112px; font-size: 44px; box-shadow: 0 0 0 5px var(--card); }
.profile-avatar.on .avatar { box-shadow: 0 0 0 5px var(--card), 0 0 0 8px rgba(74, 222, 128, .6); }
.profile-info { flex: 1; min-width: 220px; padding-top: 12px; }
.profile-info h1 { margin: 0 0 2px; }
.profile-status { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(126, 34, 206, .18); border: 1px solid #3b2a63; font-size: 14px; }
.profile-bio { margin: 10px 0 0; color: #d6cff0; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.link-chip.discord:hover { border-color: #5865f2; box-shadow: 0 0 10px rgba(88, 101, 242, .5); }
.link-chip.steam:hover { border-color: #66c0f4; box-shadow: 0 0 10px rgba(102, 192, 244, .4); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; padding-top: 14px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.profile-stats div { padding: 12px; text-align: center; border-right: 1px solid var(--line); }
.profile-stats div:last-child { border-right: 0; }
.profile-stats b { display: block; color: var(--accent-soft); font-size: 17px; }
.profile-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) { .profile-stats { grid-template-columns: 1fr 1fr; } .profile-stats div:nth-child(2) { border-right: 0; } }
.mcard-status-text { margin-top: 6px; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: rgba(126, 34, 206, .16); border: 1px solid #3b2a63; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-status { font-size: 11.5px; color: #c9bfe8; max-width: 130px; margin: 2px auto 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- TeamSpeak ao vivo ---------- */
.ts-live { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.ts-channel-name { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.ts-chip { padding: 4px 12px; cursor: default; }
.ts-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 6px var(--online); }
.ts-chip.away { opacity: .6; }
.ts-chip.away .ts-dot { background: #facc15; box-shadow: 0 0 6px #facc15; }

/* ---------- Projetos de Lei ---------- */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pl-card { padding: 16px 18px; border-color: #3b2a63; background: radial-gradient(360px 160px at 100% 0%, rgba(126, 34, 206, .18), transparent 70%), var(--card); }
.pl-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.pl-badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-soft); }
.pl-title { margin: 8px 0 6px; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.pl-body { font-size: 14px; }
.pl-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin: 6px 0 10px; }
.pl-meta .avatar { width: 22px; height: 22px; font-size: 10px; }
.pl-bar { height: 8px; border-radius: 999px; background: rgba(239, 68, 68, .35); overflow: hidden; }
.pl-bar span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); box-shadow: 0 0 10px rgba(74, 222, 128, .5); transition: width .3s; }
.pl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pl-yes.on { border-color: #22c55e; background: rgba(34, 197, 94, .2); color: #86efac; }
.pl-no.on { border-color: #ef4444; background: rgba(239, 68, 68, .2); color: #fca5a5; }
.pl-tools { margin-left: auto; display: flex; gap: 2px; }
.pl-form { margin-bottom: 12px; border-color: #4c1d95; }
.pl-form > p { margin: 4px 0 0; }
.pl-empty { padding: 16px 18px; }
.pl-history { margin-top: 10px; }
.pl-history summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 0; }
.pl-closed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pl-closed-status { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
.pl-closed-status.approved { color: #86efac; border-color: #14532d; }
.pl-closed-status.rejected { color: #fca5a5; border-color: #7f1d1d; }
.pl-closed-title { font-weight: 600; flex: 1; min-width: 180px; }
@media (max-width: 600px) { .pl-grid { grid-template-columns: 1fr; } }

/* ---------- sininho ---------- */
.bell-wrap { position: relative; }
.bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 17px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bell:hover { border-color: var(--accent); box-shadow: var(--glow); }
.bell.has-new { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg), 0 0 10px rgba(239, 68, 68, .7); }
.bell-count[hidden] { display: none; }
.bell-panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: -60px; width: 360px; max-width: calc(100vw - 32px); padding: 0; overflow: hidden; box-shadow: var(--shadow), var(--glow); animation: pop .15s ease-out; }
.bell-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-list { max-height: 420px; overflow-y: auto; }
.bell-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.bell-item:last-child { border-bottom: 0; }
.bell-item:hover { background: var(--card-2); }
.bell-item.unread { background: linear-gradient(90deg, rgba(168, 85, 247, .16), transparent); box-shadow: inset 3px 0 0 var(--accent); }
.bell-item .avatar { width: 34px; height: 34px; font-size: 14px; }
.bell-text { min-width: 0; }
.bell-snippet { margin: 3px 0; color: #c9bfe8; font-size: 13px; overflow-wrap: anywhere; }
.bell-empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check-row input { width: auto; accent-color: var(--accent); }
@media (max-width: 600px) {
  .bell-panel { position: fixed; top: 60px; left: 16px; right: 16px; width: auto; max-width: none; }
  .bell { width: 34px; height: 34px; font-size: 15px; }
}

/* ---------- fórum ---------- */
.badge.new { color: #86efac; border-color: #14532d; }
.badge.hot { color: #fdba74; border-color: #7c2d12; }
.badge.op { color: #c4b5fd; border-color: #4c1d95; background: rgba(126, 34, 206, .2); }
.cat-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent-soft); background: rgba(126, 34, 206, .14); border: 1px solid #3b2a63; }
a.cat-chip:hover { border-color: var(--accent); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.cat-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 85, 247, .22), transparent 70%); pointer-events: none; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--glow); }
.cat-tile-icon { font-size: 30px; line-height: 1; filter: drop-shadow(0 0 8px rgba(168, 85, 247, .5)); }
.cat-tile-name { font-weight: 800; font-size: 17px; margin-top: 6px; }
.cat-tile-desc { font-size: 13px; min-height: 2.6em; }
.cat-tile-stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.cat-tile-stats b { color: var(--accent-soft); font-size: 15px; }
.cat-tile-last { font-size: 12px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tile-tools { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.cat-tile:hover .cat-tile-tools { opacity: 1; }
.feed { display: flex; flex-direction: column; gap: 10px; transition: opacity .15s; }
.feed.loading-feed { opacity: .5; }
.tcard { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; transition: transform .12s, border-color .15s, box-shadow .15s; animation: pop .2s ease-out; }
.tcard:hover { transform: translateX(3px); border-color: #4c1d95; box-shadow: 0 0 18px rgba(168, 85, 247, .15); }
.tcard.pinned { border-color: #5a4515; background: linear-gradient(90deg, rgba(234, 179, 8, .07), transparent 40%), var(--card); }
.tcard-avatar .avatar { width: 44px; height: 44px; }
.tcard-main { min-width: 0; }
.tcard-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.tcard-badges .badge { margin: 0; }
.tcard-title { font-size: 16.5px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.tcard:hover .tcard-title { color: #fff; }
.tcard-excerpt { margin-top: 3px; font-size: 13.5px; color: #b9b0d6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-meta { margin-top: 5px; font-size: 12.5px; }
.tcard-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tcard-stats { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.tcard-stats b { color: var(--text); }
.tcard-last { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.tcard-last .avatar { width: 22px; height: 22px; font-size: 10px; }
.forum-hero, .cat-hero { margin-bottom: 4px; }
.cat-hero-icon { font-size: 52px; line-height: 1; filter: drop-shadow(0 0 14px rgba(168, 85, 247, .6)); animation: float 5s ease-in-out infinite; }
.cat-hero .const-title { font-size: clamp(40px, 7vw, 72px); }
/* tópico */
.thread-head { padding: 20px 22px; margin-bottom: 14px; border-color: #4c1d95; background: radial-gradient(500px 200px at 100% 0%, rgba(126, 34, 206, .2), transparent 70%), var(--card); }
.thread-title-big { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.2; margin: 6px 0 10px; overflow-wrap: anywhere; }
.thread-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13.5px; color: var(--muted); }
.thread-head-meta b { color: var(--text); }
.people { display: inline-flex; align-items: center; }
.people .avatar { width: 26px; height: 26px; font-size: 11px; margin-left: -7px; box-shadow: 0 0 0 2px var(--card); }
.people .avatar:first-child { margin-left: 0; }
.people em { font-style: normal; font-size: 12px; margin-left: 6px; }
.thread-head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.thread-head-tools .btn { margin-right: 6px; }
.posts { display: flex; flex-direction: column; }
.post-author { position: relative; overflow: hidden; }
.post-author::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 54px; background: linear-gradient(135deg, color-mix(in srgb, var(--uc, #7c5cff) 40%, transparent), transparent); pointer-events: none; }
.post-author > * { position: relative; }
.post-badges { display: flex; gap: 4px; justify-content: center; }
.post-badges .badge { margin: 0; }
.post-num { background: none; border: 1px solid transparent; border-radius: 6px; padding: 0 6px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.post-num:hover { border-color: var(--line); color: var(--text); }
.post-actions { align-items: center; }
.post.flash, .tcard.flash { animation: flash 2.2s ease-out; }
.composer-head { display: flex; align-items: center; gap: 8px; }
/* novo tópico */
.new-grid { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.new-form h1 { margin-bottom: 4px; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-opt { position: relative; margin: 0; cursor: pointer; }
.cat-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.cat-opt span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.cat-opt span b { font-size: 18px; }
.cat-opt:hover span { border-color: #4c1d95; }
.cat-opt input:checked + span { border-color: var(--accent); background: rgba(126, 34, 206, .2); box-shadow: var(--glow); }
.cat-opt input:focus-visible + span { outline: 2px solid var(--accent); }
.new-tips ul { margin: 10px 0; padding-left: 18px; font-size: 13.5px; line-height: 1.9; }
.new-tips code { background: var(--bg-2); padding: 1px 5px; border-radius: 5px; font-size: 12px; }
@media (max-width: 860px) { .new-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .tcard { grid-template-columns: 36px 1fr; gap: 10px; padding: 12px; }
  .tcard-avatar .avatar { width: 36px; height: 36px; font-size: 15px; }
  .tcard-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-tile { padding: 12px; }
  .cat-tile-desc, .cat-tile-last { display: none; }
}

/* tags de membro */
.utags { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.utags.stack { display: flex; justify-content: center; margin: 4px 0 2px; }
.utags.center { display: flex; justify-content: center; margin: 8px 0 2px; }
.utags.profile-tags { display: flex; margin: 8px 0 4px; }
.utag { --tc: #a855f7; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; line-height: 1.6;
  color: color-mix(in srgb, var(--tc) 55%, #fff); background: color-mix(in srgb, var(--tc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 25%, transparent); white-space: nowrap; }
.utag i { font-style: normal; }
.reply-head .utags { margin-left: 4px; }
.tag-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.tag-opt { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.tag-opt input { width: auto; accent-color: var(--accent); }
.tag-opt:has(input:checked) { border-color: var(--accent); box-shadow: var(--glow); }
.tag-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tag-chip small { color: var(--muted); font-weight: 700; }
.tag-chip:hover { border-color: #4c1d95; }
.tag-chip.on { border-color: var(--accent); box-shadow: var(--glow); background: rgba(126, 34, 206, .2); }
/* filtro de tag compacto (menu suspenso) */
.tag-dd { position: relative; }
.tag-dd-btn { gap: 6px; max-width: 240px; }
.tag-dd-btn .utag { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.tag-dd-caret { opacity: .6; font-size: 12px; }
.tag-dd-x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; background: var(--bg-2); color: var(--muted); }
.tag-dd-x:hover { background: var(--danger); color: #fff; }
.tag-dd-menu { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: 290px; padding: 8px; box-shadow: var(--shadow), var(--glow); animation: pop .15s ease-out; }
.tag-dd-search { padding: 8px 10px; margin-bottom: 6px; }
.tag-dd-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.tag-dd-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.tag-dd-item:hover { background: var(--bg-2); }
.tag-dd-item.on { border-color: var(--accent); background: rgba(126, 34, 206, .18); }
.tag-dd-item.empty { opacity: .5; }
.tag-dd-item small { color: var(--muted); font-weight: 700; }
@media (max-width: 600px) {
  .tag-dd-menu { position: fixed; left: 16px; right: 16px; top: auto; width: auto; margin-top: 6px; }
  .hide-sm { display: none; }
}
.tag-admin { margin-bottom: 16px; border-color: #4c1d95; }
.tag-admin > p { margin: 6px 0 12px; }
.tag-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-form input[name=name] { flex: 1; min-width: 180px; }
.tag-form input[type=color] { width: 48px; height: 40px; padding: 3px; }
.tag-icon-in { width: 60px !important; text-align: center; font-size: 18px; }
.tag-form.inline { flex: 1; }
.tag-list { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.tag-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.tag-row:hover { background: var(--bg-2); }
.tag-preview .utag { font-size: 13px; padding: 2px 10px; }
/* membros */
.members-hero { margin-bottom: 0; }
.chip-online b { color: var(--online) !important; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mcard { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px 14px; transition: transform .15s, border-color .15s, box-shadow .15s; animation: pop .25s ease-out; }
.mcard:hover { transform: translateY(-3px); border-color: #4c1d95; box-shadow: var(--glow); }
.mcard.staff { border-color: #5a4515; }
.mcard-link { position: absolute; inset: 0; z-index: 1; }
.mcard-banner { --uc: #7c5cff; align-self: stretch; height: 64px; margin: 0 -16px; background: radial-gradient(120px 70px at 50% 120%, color-mix(in srgb, var(--uc) 60%, transparent), transparent), linear-gradient(135deg, color-mix(in srgb, var(--uc) 35%, #0d0b14), #0d0b14); }
.mcard-avatar { position: relative; margin-top: -34px; }
.mcard-avatar .avatar { width: 68px; height: 68px; font-size: 28px; box-shadow: 0 0 0 4px var(--card); }
.mcard-status { position: absolute; right: 2px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: #4b5563; border: 3px solid var(--card); }
.mcard.on .mcard-status { background: var(--online); box-shadow: 0 0 10px var(--online); }
.mcard.on .mcard-avatar .avatar { box-shadow: 0 0 0 4px var(--card), 0 0 0 6px rgba(74, 222, 128, .6); }
.mcard-name { margin-top: 8px; font-size: 17px; font-weight: 800; }
.mcard-bio { margin: 8px 0 0; font-size: 13px; color: #c9bfe8; }
.mcard-stats { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 6px; align-self: stretch; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mcard-stats b { display: block; color: var(--accent-soft); font-size: 15px; }
.mcard-stats .is-on b { color: var(--online); text-shadow: 0 0 8px rgba(74, 222, 128, .5); }
.mcard-stats span { white-space: nowrap; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mcard-foot { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; }
.mcard-tags { position: absolute; z-index: 2; top: 8px; right: 8px; padding: 3px 8px; background: rgba(0, 0, 0, .55); }

/* auth */
.auth { max-width: 420px; margin: 30px auto; }
.auth h1 { text-align: center; }
.auth .btn { width: 100%; margin-top: 18px; padding: 12px; }
.auth-alt { text-align: center; margin-top: 14px; color: var(--muted); }
.auth-alt a { color: #a996ff; }
.error { color: var(--danger); margin-top: 10px; font-size: 14px; min-height: 1em; }

/* members */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.member { padding: 16px; display: flex; gap: 12px; align-items: center; }
.member:hover { border-color: #3a4066; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--online); margin-left: 4px; }

.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--card-2); border: 1px solid var(--line); padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { border-color: var(--danger); }

.footer { color: var(--muted); font-size: 13px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line); text-align: center; }
.loading { padding: 60px; text-align: center; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

@media (max-width: 860px) {
  .hero, .cols { grid-template-columns: 1fr; }
  .cat { grid-template-columns: 44px 1fr; }
  .cat-count, .cat-last { display: none; }
  .thread-row { grid-template-columns: 36px 1fr; }
  .thread-row .hide-sm { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .post-author .xl { width: 36px; height: 36px; font-size: 15px; }
  .post-author .extra { display: none; }
  .nav a { padding: 6px 8px; }
  .brand-name { display: none; }
}
@media (max-width: 480px) {
  .topbar-inner { gap: 8px; }
  .userbox .uname, .userbox .btn.primary { display: none; }
  .topbar-inner { gap: 6px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 5px; font-size: 13px; }
  .userbox { gap: 3px; }
  .userbox .btn { padding: 5px 7px; }
  .hide-xs { display: none; }
  .show-xs { display: inline !important; }
  .brand-logo { width: 34px; height: 34px; background-size: 82px; background-position: -25px -5px; }
  .ts-card { padding: 20px; }
}