/* ==========================================================================
   Portal of Kersef — Ranking de servidores de WYD
   ========================================================================== */

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cinzel", Georgia, serif;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-xs: 7px;
  --container: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --online: #22c55e;
  --beta: #3b82f6;
  --soon: #a855f7;
  --closed: #ef4444;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0907;
  --bg-glow: none;
  --surface: #15110d;
  --surface-2: #1b1611;
  --surface-3: #251e17;
  --border: #2b231a;
  --border-strong: #3d3225;
  --text: #f3ece2;
  --text-2: #cbbfae;
  --muted: #978a78;
  --gold: #eaa834;
  --gold-2: #ffd37c;
  --gold-ink: #1d1206;
  --gold-soft: rgba(234, 168, 52, .12);
  --red: #d8261c;
  --red-2: #ff5b3d;
  --red-ink: #fff4ee;
  --red-soft: rgba(216, 38, 28, .14);
  --brand-line: linear-gradient(90deg, transparent, var(--gold) 20%, var(--red) 50%, var(--gold) 80%, transparent);
  --link: #f4c062;
  --star: #f5b324;
  --star-empty: #3d3329;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
  --overlay: rgba(8, 5, 3, .74);
  --danger: #f87171;
  --success: #34d399;
  --warn: #fbbf24;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3ed;
  --bg-glow: none;
  --surface: #ffffff;
  --surface-2: #fbf8f3;
  --surface-3: #f2ece2;
  --border: #e8dfd2;
  --border-strong: #d6c9b5;
  --text: #1d150d;
  --text-2: #4a3d2e;
  --muted: #7b6c59;
  --gold: #d18e14;
  --gold-2: #b07300;
  --gold-ink: #1d1206;
  --gold-soft: rgba(209, 142, 20, .12);
  --red: #c01c14;
  --red-2: #a3150e;
  --red-ink: #fff4ee;
  --red-soft: rgba(192, 28, 20, .10);
  --brand-line: linear-gradient(90deg, transparent, var(--gold) 20%, var(--red) 50%, var(--gold) 80%, transparent);
  --link: #9c5d00;
  --star: #f0a400;
  --star-empty: #ddd3c5;
  --shadow: 0 1px 2px rgba(40, 24, 10, .06);
  --shadow-lg: 0 30px 60px -24px rgba(40, 24, 10, .28);
  --overlay: rgba(18, 12, 8, .55);
  --danger: #dc2626;
  --success: #059669;
  --warn: #b45309;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 15px/1.6 var(--font); color: var(--text);
  background: var(--bg-glow), var(--bg); background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; padding-bottom: 64px; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
.h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: 500 .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-3); padding: .15em .4em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5em 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.narrow-page { max-width: 980px; }
.sr-only, .hp { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; padding: 0 !important; margin: -1px; }
.skip-link { position: absolute; left: 12px; top: -40px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.text-online { color: var(--online); }
.text-danger { color: var(--danger); }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: .01em; }
.lead { font-size: 1.05rem; color: var(--text-2); max-width: 70ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }

/* ---------- ícones ---------- */
.ic { width: 18px; height: 18px; flex: none; fill: currentColor; vertical-align: -3px; }
.ic-sm { width: 14px; height: 14px; vertical-align: -2px; }
.ic-lg { width: 28px; height: 28px; }
.ic-xl { width: 44px; height: 44px; color: var(--muted); }

.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { width: 18px; height: 18px; }
.stars-sm .star { width: 14px; height: 14px; }
.star-full { fill: var(--star); }
.star-empty { fill: var(--star-empty); }
.star-half { fill: url(#g-half); }

/* ---------- botões ---------- */
.btn {
  --b-bg: var(--surface-3); --b-fg: var(--text); --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font: 600 .92rem/1 var(--font); cursor: pointer;
  text-decoration: none !important; white-space: nowrap; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-primary { --b-bg: var(--gold); --b-fg: var(--gold-ink); }
.btn-vote { --b-bg: var(--red); --b-fg: #fff; min-width: 88px; }
.btn-voted { --b-bg: transparent; --b-fg: var(--success); --b-bd: rgba(52, 211, 153, .4); min-width: 88px; cursor: default; }
.btn-voted:hover { filter: none; }
.btn-vote.is-off { opacity: .35; cursor: not-allowed; filter: none; }
.btn-ghost { --b-bg: transparent; --b-bd: var(--border-strong); }
.btn-ghost:hover { --b-bg: var(--surface-2); }
.btn-soft { --b-bg: var(--surface-2); --b-bd: var(--border); }
.btn-soft:hover { --b-bd: var(--border-strong); }
.btn-glass { --b-bg: rgba(255, 255, 255, .12); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.btn-danger { --b-bg: rgba(239, 68, 68, .14); --b-fg: var(--danger); --b-bd: rgba(239, 68, 68, .3); }
.btn-success { --b-bg: rgba(16, 185, 129, .15); --b-fg: var(--success); --b-bd: rgba(16, 185, 129, .3); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 9px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.link-btn.danger, .danger { color: var(--danger) !important; }
.inline-form { display: inline; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; text-decoration: none !important; font-weight: 700;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-3); }
.icon-btn.active { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.icon-btn-sm { width: 34px; height: 34px; border-radius: 9px; }
.brand-discord:hover { color: #fff; background: #5865f2; border-color: #5865f2; }
.brand-whatsapp:hover { color: #fff; background: #1faa59; border-color: #1faa59; }
.brand-youtube:hover { color: #fff; background: #e62117; border-color: #e62117; }
.brand-facebook:hover { color: #fff; background: #1877f2; border-color: #1877f2; }
.brand-instagram:hover { color: #fff; background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); border-color: #dd2a7b; }
.brand-tiktok:hover { color: #fff; background: #111; border-color: #333; }
.brand-website:hover { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }

/* ---------- formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span:first-child, .field > legend { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.field-label-row { justify-content: space-between; }
.field > span:first-child small { font-size: .74rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.field-label-row a { text-transform: none; letter-spacing: 0; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: 400 .95rem/1.4 var(--font); transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238590a3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); background: var(--surface); }
input:disabled { opacity: .6; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.input-icon { position: relative; display: block; }
.input-icon > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 38px; }
.hint { color: var(--muted); font-size: .8rem; }
.check, .radio { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; }
.check input, .radio input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-half { max-width: 260px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.char-count { font-size: .75rem; color: var(--muted); text-align: right; margin-top: -2px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.card-title small { font-weight: 500; font-size: .8rem; }
.card-title .ic { color: var(--gold); }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; margin-top: 12px; }

.callout { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid rgba(234, 168, 52, .25); font-size: .92rem; }
.callout > .ic { color: var(--gold); margin-top: 2px; }
.callout > div { flex: 1; min-width: 200px; }
.callout-actions { display: flex; gap: 8px; flex-basis: 100%; padding-left: 30px; flex-wrap: wrap; }
.callout-warn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .3); }
.callout-danger { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); }
.callout-danger > .ic { color: var(--danger); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge-ok { background: rgba(16, 185, 129, .15); color: var(--success); }
.badge-warn { background: rgba(251, 191, 36, .15); color: var(--warn); }
.badge-danger { background: rgba(239, 68, 68, .14); color: var(--danger); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--red-ink); font-size: .72rem; font-weight: 800; }
.count-badge.zero { background: var(--surface-3); color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(14, 10, 7, .78); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-online i { background: var(--online); }
.status-beta i { background: var(--beta); }
.status-em_breve i { background: var(--soon); }
.status-fechado i { background: var(--closed); }
.status-lg { font-size: .78rem; padding: 5px 12px 5px 10px; }
[data-theme="light"] .row-sub .status, [data-theme="light"] .info-list .status, [data-theme="light"] .closed-item .status { background: var(--surface-3); color: var(--text-2); border-color: var(--border); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; font-size: .78rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.chip a { color: inherit; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.chip-rate { color: var(--gold); background: var(--gold-soft); border-color: rgba(234, 168, 52, .25); }
.chip-rate[data-rate="full-pvp"] { color: #f87171; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .25); }
.chip-rate[data-rate="semi-pvp"] { color: #fb923c; background: rgba(251, 146, 60, .1); border-color: rgba(251, 146, 60, .25); }
.chip-rate[data-rate="hard"] { color: #c084fc; background: rgba(168, 85, 247, .1); border-color: rgba(168, 85, 247, .25); }
.chip-rate[data-rate="easy"], .chip-rate[data-rate="easy-custom"] { color: #34d399; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .25); }
.chip-rate[data-rate="medium"] { color: #60a5fa; background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .25); }
.chip-soon { color: var(--soon); background: rgba(168, 85, 247, .1); border-color: rgba(168, 85, 247, .25); }

.avatar { --h: 40; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: .8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 65% 48%), hsl(calc(var(--h) + 40) 70% 35%)); }

.logo { width: var(--size); height: var(--size); border-radius: 22%; object-fit: cover; flex: none; background: var(--surface-3); border: 2px solid var(--surface); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.logo-ph { --h: 40; display: grid; place-items: center; color: var(--muted); font-family: var(--font-display); font-weight: 800; font-size: calc(var(--size) * .34); background: var(--surface-3); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); border-bottom: 1px solid var(--border); }
/* o desfoque fica num pseudo-elemento: backdrop-filter no próprio header prenderia o menu mobile (position: fixed) dentro dele */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brand-line); opacity: .5; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; flex: none; }
.brand-logo { display: block; height: 48px; width: auto; filter: drop-shadow(0 3px 10px rgba(234, 168, 52, .22)); transition: filter .2s; }
.brand:hover .brand-logo { filter: drop-shadow(0 3px 14px rgba(234, 168, 52, .45)); }
[data-theme="light"] .brand-logo { filter: drop-shadow(0 2px 3px rgba(70, 35, 0, .3)); }
.brand-tag { padding-left: 12px; border-left: 1px solid var(--border-strong); font-size: .64rem; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
@media (max-width: 400px) { .brand-tag { display: none; } }
.main-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.main-nav > a { position: relative; padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .92rem; text-decoration: none; }
.main-nav > a:hover { color: var(--text); background: var(--surface-2); }
.main-nav > a.active { color: var(--text); }
.main-nav > a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .btn-ghost .ic { color: #25d366; }
.ic-moon, [data-theme="light"] .ic-sun { display: none; }
[data-theme="light"] .ic-moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle .ic-close { display: none; }
.nav-open .nav-toggle .ic-close { display: block; }
.nav-open .nav-toggle .ic-menu { display: none; }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 600; font-size: .88rem; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 60; animation: pop .15s var(--ease); }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font: 500 .9rem var(--font); background: none; border: 0; cursor: pointer; text-decoration: none; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .ic { color: var(--muted); }
.dropdown-menu .field { padding: 0 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 70; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: .92rem; animation: slidein .3s var(--ease); }
.toast > span { flex: 1; }
.toast-success > .ic { color: var(--success); }
.toast-error > .ic { color: var(--danger); }
.toast-info > .ic { color: var(--gold); }
.toast-close { display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -6px -6px 0; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.toast.hide { opacity: 0; transform: translateX(20px); transition: .3s; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }

/* ---------- hero banner (carrossel) ---------- */
.hero-banner { margin-top: 24px; }
.carousel { position: relative; aspect-ratio: 1600 / 520; min-height: 280px; max-height: 460px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: radial-gradient(circle at 70% 30%, hsl(var(--h, 40) 60% 30%), #0a0705 70%); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 5, 3, .92) 0%, rgba(8, 5, 3, .6) 45%, rgba(8, 5, 3, .05) 80%), linear-gradient(0deg, rgba(8, 5, 3, .8), transparent 50%); }
.slide-content { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; color: #fff; max-width: 760px; }
.slide-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-feature { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; background: var(--red); color: var(--red-ink); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.slide-title { display: flex; align-items: center; gap: 16px; }
.slide-title .logo { border-color: rgba(255, 255, 255, .2); }
.slide h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 2.6vw, 2.8rem); font-weight: 800; margin: 0 0 6px; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, .6); }
.slide h2 a { color: inherit; text-decoration: none; }
.slide-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; list-style: none; font-size: .9rem; color: rgba(255, 255, 255, .85); font-weight: 500; }
.slide-meta li { display: flex; align-items: center; gap: 6px; }
.slide-meta .ic { color: var(--gold-2); }
.slide-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.carousel-dots { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 10px; z-index: 2; }
.carousel-dots button { position: relative; width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.carousel-dots button::after { content: ""; position: absolute; inset: -12px -6px; } /* área de toque maior que a bolinha */
.carousel-dots button[aria-selected="true"] { width: 26px; background: var(--gold); }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); margin: 18px 0 14px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb span { color: var(--muted); }

.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 32px 0 8px; }
.page-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 40px; height: 40px; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; text-decoration: none !important; }
.page-btn:hover { border-color: var(--border-strong); color: var(--text); }
.page-btn.active { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.page-gap { color: var(--muted); padding: 0 4px; }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; gap: 6px; }
.empty-state h3, .empty-state h2 { margin: 10px 0 0; }
.empty-state p { color: var(--muted); max-width: 46ch; }

.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.section-title .ic { color: var(--muted); }
/* ---------- ranking (home) ---------- */
.ranking-head { padding-top: 28px; }
.ranking-head.no-banner { padding-top: 36px; }
.rh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rh-row h1 { margin: 0 0 6px; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); }
.rh-lead { margin: 0; color: var(--text-2); max-width: 64ch; font-size: .95rem; }
.rh-search { display: flex; flex: none; width: 300px; }
.rh-search input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); min-height: 40px; }
.rh-search button { flex: none; width: 44px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-3); color: var(--text-2); cursor: pointer; }
.rh-search button:hover { color: var(--text); }
.rate-tabs { display: flex; margin: 22px 0 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.rate-tabs::-webkit-scrollbar { display: none; }
.rate-tabs a { flex: none; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.rate-tabs a:hover { color: var(--text); }
.rate-tabs a.active { color: var(--text); border-bottom-color: var(--gold); }
.version-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 12px 0 18px; font-size: .85rem; color: var(--muted); }
.version-links a { color: var(--text-2); }
.version-links a.active { color: var(--gold); font-weight: 700; }
.rank-filter { margin: 0 0 12px; font-size: .9rem; color: var(--text-2); }

.rank-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rank-cols, .rank-row { display: grid; gap: 16px; align-items: center; padding: 0 16px; }
.rank-cols { grid-template-columns: 64px minmax(0, 1fr) 90px 168px; padding-block: 9px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.rank-cols span:first-child, .rank-cols span:nth-child(3) { text-align: center; }
.rank-row { grid-template-columns: 64px 56px minmax(0, 1fr) 90px 168px; padding-block: 14px; border-bottom: 1px solid var(--border); }
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: var(--surface-2); }
.rank-row.is-featured { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.rank-row.no-rank { grid-template-columns: 56px minmax(0, 1fr) 90px 168px; }
.rank-row.no-rank.no-votes { grid-template-columns: 56px minmax(0, 1fr) 168px; }
.rr-pos { text-align: center; }
.rr-pos b { font-size: 1.2rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.rr-pos.top b { color: var(--gold); font-size: 1.35rem; }
.rr-feat { display: inline-flex; align-items: center; justify-content: center; padding: 3px 6px; border-radius: 4px; background: var(--gold); color: var(--gold-ink); font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rr-feat .ic { display: none; }
.rr-logo .logo { border-radius: 10px; border: 1px solid var(--border); box-shadow: none; }
.rr-info { min-width: 0; }
.rr-name { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 1.02rem; }
.rr-name a { min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-status { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; color: var(--muted); }
.rr-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-online { color: var(--online); }
.st-beta { color: var(--beta); }
.st-em_breve { color: var(--soon); }
.st-fechado { color: var(--closed); }
.rr-desc { margin: 0; font-size: .86rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 3px 0 0; font-size: .8rem; color: var(--muted); }
.rr-meta a { color: var(--muted); }
.rr-meta a:hover { color: var(--text); }
.rr-votes { text-align: center; line-height: 1.15; }
.rr-votes strong { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rr-votes span { font-size: .72rem; color: var(--muted); }
.rr-actions { display: flex; justify-content: flex-end; gap: 8px; }
.rr-actions form { display: contents; }

.home-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: start; }
.box { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.box-title { margin: 0 0 10px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.box-link { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 600; }
.box-owner p { color: var(--text-2); font-size: .9rem; }
.date-list { list-style: none; margin: 0; padding: 0; }
.date-list li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.date-list li:last-child { border-bottom: 0; }
.date-list a { min-width: 0; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-list .muted { margin-left: auto; font-size: .8rem; white-space: nowrap; }
.dl-date { flex: none; width: 42px; font-weight: 700; font-size: .85rem; color: var(--gold); font-variant-numeric: tabular-nums; }

/* janela de confirmação do voto (Turnstile) */
.vote-dialog { width: min(380px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); text-align: center; }
.vote-dialog::backdrop { background: var(--overlay); }
.vote-dialog h2 { font-size: 1.1rem; margin: 0 0 6px; }
.vote-dialog p { font-size: .88rem; }
.vd-widget { display: flex; justify-content: center; min-height: 70px; margin: 8px 0 14px; max-width: 100%; }
.vote-dialog { max-width: calc(100vw - 24px); padding: 20px 16px; }
.cf-turnstile { min-height: 65px; }

/* caixa de votos na página do servidor */
.vote-box { flex: none; width: 270px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; padding: 16px; margin-bottom: 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.vb-count strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.vb-count span { font-size: .72rem; color: var(--muted); }
.vb-rank { font-size: .9rem; color: var(--text-2); }
.vb-rank b { color: var(--gold); font-size: 1.15rem; }
.vb-rank small { display: block; font-size: .75rem; color: var(--muted); }
.vote-box form, .vote-box > .btn, .vb-help { grid-column: 1 / -1; }
.vb-help { margin-top: -4px; text-align: center; font-size: .75rem; color: var(--muted); }
.mini-votes { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* ---------- página do servidor ---------- */
.server-hero { margin-bottom: 24px; }
.server-cover { --h: 40; position: relative; aspect-ratio: 1600 / 520; max-height: 440px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: radial-gradient(circle at 70% 20%, hsl(var(--h) 55% 30%), hsl(calc(var(--h) + 40) 45% 8%) 75%); }
.server-cover img { width: 100%; height: 100%; object-fit: cover; }
.server-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, transparent 45%); }
.server-cover .status { position: absolute; top: 16px; left: 16px; z-index: 2; }
.server-head { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 20px; margin: -64px 0 0; padding: 0 24px; }
.server-head .logo { border-width: 4px; border-color: var(--bg); }
.server-head-info { flex: 1; min-width: 0; padding-bottom: 4px; }
.server-head h1 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.server-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0 24px; }

.server-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.server-main, .server-aside { display: flex; flex-direction: column; gap: 20px; }
.server-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.prose-card { padding: 24px 26px; }
.prose { color: var(--text-2); font-size: .98rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 1.4em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose pre { max-width: 100%; overflow-x: auto; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.prose[data-collapsible].is-collapsed { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.read-more { margin-top: 12px; }

.info-list { margin: 0; display: flex; flex-direction: column; }
.info-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; text-align: right; }
.share-row { display: flex; gap: 8px; }
.manage-card .btn { margin-bottom: 4px; }
.report-box { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.report-box summary { cursor: pointer; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; list-style: none; }
.report-box summary::-webkit-details-marker { display: none; }
.report-box summary:hover { color: var(--danger); }
.report-box form { margin-top: 12px; }
.mini-list { display: flex; flex-direction: column; gap: 2px; }
.mini-item { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.mini-item:hover { background: var(--surface-2); }
.mini-item > span:nth-child(2) { flex: 1; min-width: 0; }
.mini-item strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item small { color: var(--muted); font-size: .76rem; }

/* ---------- páginas genéricas ---------- */
.page-header { padding: 40px 0 24px; }
.page-header.center { text-align: center; }
.page-header.center .lead { margin-left: auto; margin-right: auto; }
.page-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-page { max-width: 760px; }
.form-card { padding: 28px; }
.tabs { display: flex; gap: 4px; padding: 4px; margin: 24px 0 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); width: max-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .88rem; white-space: nowrap; text-decoration: none !important; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* lançamentos */
.timeline { display: flex; flex-direction: column; gap: 32px; }
.timeline-day { position: relative; padding-left: 26px; border-left: 2px solid var(--border); }
.timeline-day::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.timeline-date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.05rem; text-transform: capitalize; margin-bottom: 14px; }
.timeline-date .rel { padding: 2px 10px; border-radius: 999px; background: var(--red); color: var(--red-ink); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.recent-launches { margin-top: 48px; }

.narrow-page > .card { margin-bottom: 20px; }

/* métricas */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); }
.stat-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: 2.1rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.stat-sub { font-size: .82rem; color: var(--text-2); }
.chart-card { padding-bottom: 14px; }
.bar-chart { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 220px auto; gap: 6px 10px; }
.bc-grid { display: flex; flex-direction: column; justify-content: space-between; font-size: .72rem; color: var(--muted); text-align: right; }
.bc-bars { display: flex; align-items: flex-end; gap: 4px; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0 4px; background: repeating-linear-gradient(0deg, transparent 0, transparent calc(50% - 1px), var(--border) calc(50% - 1px), var(--border) 50%); }
.bc-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; }
.bc-col i { display: block; width: 100%; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--gold-2), color-mix(in srgb, var(--gold) 70%, transparent)); transition: filter .2s; min-height: 2px; }
.bc-col.today i { background: linear-gradient(180deg, #86efac, var(--online)); }
.bc-col:hover i, .bc-col:focus i { filter: brightness(1.25); }
.bc-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: .75rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 5; line-height: 1.4; }
.bc-col:hover .bc-tip, .bc-col:focus .bc-tip { opacity: 1; }
.bc-col:first-child .bc-tip { left: 0; transform: none; }
.bc-col:last-child .bc-tip { left: auto; right: 0; transform: none; }
.bc-axis { grid-column: 2; display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hbars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 12px; align-items: center; font-size: .88rem; }
.hb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-label a { color: var(--text); }
.hb-track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.hbars b { min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.device-split { display: flex; gap: 14px; }
.device { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 18px 12px; border-radius: 12px; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--surface-3) 0) top / 100% 6px no-repeat, var(--surface-2); border: 1px solid var(--border); }
.device strong { font-size: 1.8rem; font-weight: 800; }
.device span { font-weight: 600; }
.device small { color: var(--muted); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 24px 0 12px; background: linear-gradient(120deg, var(--gold-soft), transparent 60%), var(--surface); border-color: rgba(234, 168, 52, .3); }
.cta-band p { margin: 4px 0 0; }

/* auth */
.auth-page { display: grid; place-items: center; padding: 48px 20px; min-height: calc(100vh - var(--header-h) - 200px); }
.auth-card { width: 100%; max-width: 440px; padding: 32px; text-align: left; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 22px; }
.auth-logo { display: block; width: 210px; height: auto; margin: 0 auto 22px; filter: drop-shadow(0 6px 16px rgba(234, 168, 52, .25)); }
[data-theme="light"] .auth-logo { filter: drop-shadow(0 2px 4px rgba(70, 35, 0, .3)); }
.auth-switch { text-align: center; margin: 20px 0 0; font-size: .92rem; color: var(--muted); }

/* erro */
.error-page { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(180deg, var(--gold-2), var(--gold) 45%, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-search { display: flex; gap: 8px; width: 100%; max-width: 440px; margin: 12px 0; }
.error-search .input-icon { flex: 1; }

/* ---------- painel ---------- */
.panel-page { padding-top: 32px; }
.panel-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-header h1 { margin: 0 0 4px; font-size: 1.7rem; }
.panel-header p { margin: 0; }
.panel-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.panel-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .88rem; white-space: nowrap; text-decoration: none !important; }
.panel-nav a:hover { color: var(--text); background: var(--surface-2); }
.panel-nav a.active { color: var(--gold-ink); background: var(--gold); }
.panel-nav a.active .count-badge { background: var(--gold-ink); color: var(--gold); }
.panel-section { margin-bottom: 32px; }
.panel-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; align-items: start; }
.table-list { display: flex; flex-direction: column; gap: 10px; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.row-item.is-muted { opacity: .55; }
.row-main { flex: 1; min-width: 0; }
.row-main p { margin: 6px 0 0; }
.row-title { font-weight: 700; color: var(--text); font-size: .98rem; }
.row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; color: var(--text-2); margin-top: 4px; }
.row-sub .status { padding: 1px 8px 1px 6px; font-size: .64rem; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dropdown-right { right: 0; left: auto; }
.simple-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.todo-list { list-style: none; padding: 0; margin: 0; }
.todo-list a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.todo-list a:hover { background: var(--surface-2); }
.todo-list .ic { color: var(--muted); }
.todo-list .count-badge { margin-left: auto; }
.admin-filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-filters .input-icon { flex: 1; min-width: 200px; }
.admin-filters select { width: auto; }
.hl-thumb { width: 96px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; flex: none; color: var(--gold); }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.claim-item { display: flex; flex-direction: column; gap: 10px; }
.claim-item p { margin: 0; }
.claim-item.is-muted { opacity: .6; }
.claim-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.claim-actions input { flex: 1; min-width: 200px; }
.claim-tips { margin-bottom: 16px; }
.claim-tips ul { margin: 0; padding-left: 1.2em; color: var(--text-2); font-size: .92rem; }
.claim-tips li { margin: 6px 0; }

.server-form { display: flex; flex-direction: column; gap: 20px; }
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section .card-title { margin-bottom: 0; }
.admin-only { border-color: rgba(234, 168, 52, .35); }
.form-footer { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(0deg, var(--bg) 60%, transparent); z-index: 5; }
.upload-field { gap: 8px; }
.upload-box { position: relative; display: grid; place-items: center; border: 2px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); cursor: pointer; overflow: hidden; transition: border-color .2s; color: var(--muted); }
.upload-box:hover { border-color: var(--gold); color: var(--gold); }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-logo { width: 140px; height: 140px; }
.upload-cover { width: 100%; aspect-ratio: 16 / 6; }
.upload-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.upload-wide { flex: 1; }
.server-form .form-row:has(.upload-wide) { grid-template-columns: 140px 1fr; }

/* ---------- footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 0; font-size: .9rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--brand-line); opacity: .6; }
.site-footer .brand-logo { height: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); margin: 14px 0; max-width: 36ch; }
.footer-title { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--text); }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-bottom { margin-top: 36px; padding: 20px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .server-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .main-nav > a { padding: 8px 9px; }
}

@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .brand-logo { height: 48px; }
  .nav-toggle { display: inline-grid; }
  .hide-sm { display: none !important; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav > a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav > a.active { color: var(--gold); }
  .main-nav > a.active::after { display: none; }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
  .nav-mobile-extra > a:not(.btn) { display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--text); font-weight: 600; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
  .nav-mobile-extra .btn { min-height: 48px; }

  .server-layout { grid-template-columns: minmax(0, 1fr); }
  .server-aside { position: static; }
  .home-extra { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .panel-two { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 14.5px; }
  .container { padding-inline: 16px; }
  .hero-banner { margin-top: 12px; padding: 0 12px; }
  .carousel { aspect-ratio: auto; height: 340px; border-radius: 16px; }
  .slide-shade { background: linear-gradient(0deg, rgba(8, 5, 3, .95) 10%, rgba(8, 5, 3, .4) 70%, rgba(8, 5, 3, .15)); }
  .slide-title { align-items: flex-start; }
  .slide-title .logo { --size: 52px !important; }
  .slide-meta { gap: 4px 12px; font-size: .82rem; }
  .carousel-dots { top: 16px; bottom: auto; right: 16px; }
  .slide-actions .btn { flex: 1; }
  .rh-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .rh-search { width: 100%; }
  .rank-cols { display: none; }
  .rank-row { grid-template-columns: 28px 48px minmax(0, 1fr); grid-template-areas: "pos logo info" "votes votes actions"; gap: 10px 12px; padding: 12px; }
  .rank-row.no-rank { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "logo info" "votes actions"; }
  .rank-row.no-rank.no-votes { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "logo info" "actions actions"; }
  .rr-votes { display: flex; align-items: baseline; gap: 5px; text-align: left; }
  .rr-votes strong { font-size: 1.1rem; }
  .rr-pos { grid-area: pos; }
  .rr-logo { grid-area: logo; }
  .rr-info { grid-area: info; }
  .rr-votes { grid-area: votes; }
  .rr-actions { grid-area: actions; }
  .rr-actions .btn { flex: 1; }
  .rr-logo .logo { width: 48px; height: 48px; }
  .rr-feat { padding: 4px; background: none; color: var(--gold); }
  .rr-feat .ic { display: block; width: 18px; height: 18px; }
  .rr-feat span { display: none; }
  .rr-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rr-name { flex-wrap: wrap; gap: 2px 8px; }
  .rr-name a { white-space: normal; }
  .home-extra { grid-template-columns: 1fr; }
  .vote-box { width: 100%; }

  .server-cover { border-radius: 14px; aspect-ratio: 16 / 8; margin: 0 -4px; }
  .server-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: -48px; padding: 0 4px; }
  .server-head .logo { --size: 84px !important; }
  .server-links { padding: 0 4px; }
  .server-links .btn { flex: 1 1 calc(50% - 10px); }
  .server-links .btn-primary { flex-basis: 100%; }
  .prose-card { padding: 18px; }

  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .server-form .form-row:has(.upload-wide) { grid-template-columns: 1fr; }
  .field-half { max-width: none; }
  .stat-grid { gap: 10px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 1.6rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .bar-chart { grid-template-rows: 160px auto; }
  .bc-bars { gap: 2px; }
  .row-item { flex-wrap: wrap; }
  .panel-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-nav a { padding: 9px 10px; font-size: .84rem; }
  .panel-nav a span { overflow: hidden; text-overflow: ellipsis; }
  .row-actions { width: 100%; justify-content: flex-start; }
  /* menus de ação abrem como gaveta no rodapé da tela: nunca saem do enquadramento */
  .row-actions .dropdown-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); min-width: 0; max-height: 70vh; overflow-y: auto; z-index: 80; }
  .password-wrap input { padding-right: 46px; }
  .form-card, .auth-card { padding: 22px; }
  .page-header { padding: 28px 0 18px; }
  .toasts { left: 16px; right: 16px; max-width: none; }
  .footer-grid { gap: 24px; }
  .timeline-day { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .rr-actions, .server-aside, .vote-box form { display: none !important; }
}
