:root {
  --bg: #0a0e18;
  --bg-glow: #131b33;
  --panel: #111727;
  --panel-2: #161e33;
  --panel-hover: #1b2540;
  --border: #242e4d;
  --border-strong: #34406a;
  --text: #e7eaf3;
  --muted: #8f97b2;
  --faint: #868ca3; /* texto secundário: contraste mínimo 4,5:1 (WCAG AA) sobre todos os fundos */
  --gold: #d9b56c;
  --gold-soft: rgba(217, 181, 108, 0.14);
  --elyos: #6cc6ff;
  --asmo: #c08cff;
  --danger: #ff7b7b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', Georgia, serif;

  /* classes */
  --c-GLADIATOR: #ef8f4f;
  --c-TEMPLAR: #e2bd52;
  --c-RANGER: #6fd27a;
  --c-ASSASSIN: #b98af5;
  --c-ELEMENTALIST: #4fd0c9;
  --c-SORCERER: #6c9bff;
  --c-CLERIC: #f4e7ad;
  --c-CHANTER: #ff8585;

  /* raridades */
  --g-Common: #b9bfcc;
  --g-Rare: #5fd38a;
  --g-Legend: #58a8ff;
  --g-Unique: #f0c45a;
  --g-Epic: #ff9a4a;
  --g-Special: #ff7ac8;
  --g-Mythic: #ff5c5c;

  /* gráficos: série única validada (daltonismo/contraste) contra --panel */
  --series-1: #3987e5;
  --grid: #1e2742;
  --axis: #2f3a5e;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 500px at 50% -120px, var(--bg-glow), transparent 70%), var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 24, 0.78);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #8a6a2c); color: #1a1408; font-size: 15px;
}
.brand small { color: var(--gold); font-weight: 600; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.nav a.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border); }
/* ícones do menu e o botão "Apoie" do topo: só no celular (veja o @media de 720 px) */
.nav svg, .support-link { display: none; }
.support-link {
  align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--gold); border: 1px solid rgba(217, 181, 108, 0.35); white-space: nowrap;
}
.support-link svg { display: block; width: 16px; height: 16px; }
.region-pill {
  margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(217, 181, 108, 0.3); white-space: nowrap;
}

.lang-switch {
  flex: none; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); border: 1px solid var(--border);
}
.lang-switch:hover { color: var(--text); border-color: var(--gold); }
.lang-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 10px 14px;
  border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--border-strong);
}
.lang-banner span { flex: 1 1 220px; }
.lang-banner .btn { height: 34px; padding: 0 14px; font-size: 14px; }

/* ---------- hero / busca ---------- */
.hero { padding: 40px 0 24px; }
.hero h1 { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); letter-spacing: 0.02em; }
.hero p { margin: 0 0 22px; color: var(--muted); max-width: 680px; }
.search {
  position: relative; display: flex; align-items: center; max-width: 640px;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: 999px;
  box-shadow: var(--shadow); transition: border-color .15s;
}
.search:focus-within { border-color: var(--gold); }
.search svg { position: absolute; left: 18px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { flex: 1; min-width: 0; height: 52px; padding: 0 48px 0 48px; background: none; border: 0; outline: none; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.search .clear { position: absolute; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--muted); cursor: pointer; }
.search .clear:hover { color: var(--text); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-value { font-size: 24px; font-weight: 700; margin-top: 2px; font-variant-numeric: proportional-nums; }
.kpi-sub { color: var(--faint); font-size: 12px; }
.kpi.elyos .kpi-value { color: var(--elyos); }
.kpi.asmo .kpi-value { color: var(--asmo); }

/* ---------- filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 150px; }
.field label { font-size: 12px; color: var(--muted); }
.field select {
  height: 40px; padding: 0 34px 0 12px; border-radius: var(--radius-sm); appearance: none; cursor: pointer;
  background: var(--panel) 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='%238f97b2' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border);
}
.field select:hover { border-color: var(--border-strong); }
.field select:disabled { opacity: 0.45; cursor: not-allowed; }
.field select option, .field select optgroup { background: var(--panel); }
.btn-reset {
  height: 40px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
}
.btn-reset:hover { color: var(--text); border-color: var(--border-strong); }

.status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 10px; min-height: 20px; }
.status .mode { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.live { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }
.warning { color: var(--gold); }

/* ---------- tabela ---------- */
.table-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.players { width: 100%; border-collapse: collapse; }
.players th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 12px 14px; background: var(--panel-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.players td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.players tbody tr { cursor: pointer; transition: background .1s; }
.players tbody tr:hover { background: var(--panel-hover); }
.players tbody tr:last-child td { border-bottom: 0; }
.players .num { text-align: right; white-space: nowrap; }
.players .rank { width: 56px; color: var(--faint); font-weight: 600; }
.rank-1 { color: #f5cf66 !important; }
.rank-2 { color: #d6dbe6 !important; }
.rank-3 { color: #d99a63 !important; }
.char { display: flex; align-items: center; gap: 12px; min-width: 0; }
.char-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-sub { font-size: 12px; color: var(--muted); display: none; }
.power { font-weight: 700; color: var(--gold); }
.unknown { color: var(--faint); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--panel-2); border: 1px solid var(--border-strong);
  display: grid; place-items: center; font-weight: 700; color: var(--muted); font-size: 14px;
}
.avatar.lg { width: 96px; height: 96px; font-size: 36px; border-width: 2px; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.avatar.elyos { border-color: color-mix(in srgb, var(--elyos) 55%, transparent); }
.avatar.asmo { border-color: color-mix(in srgb, var(--asmo) 55%, transparent); }

.class-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.class-tag::before { content: ''; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--cls, var(--muted)); }
.server-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.race-elyos { color: var(--elyos); }
.race-asmo { color: var(--asmo); }

.empty, .loading { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty code { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--gold); }
.loading::before {
  content: ''; display: block; width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid var(--border-strong); border-top-color: var(--gold); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 18px 0 40px; flex-wrap: wrap; }
.pager button {
  min-width: 40px; height: 38px; padding: 0 12px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
}
.pager button:hover:not(:disabled) { border-color: var(--gold); }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager span { color: var(--muted); font-size: 14px; padding: 0 6px; }

/* ---------- perfil ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin: 24px 0 14px; font-size: 14px; }
.back:hover { color: var(--text); }
.profile-hero {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.profile-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 0% 0%, color-mix(in srgb, var(--race, var(--gold)) 14%, transparent), transparent 70%);
}
.profile-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); line-height: 1.15; word-break: break-word; }
.profile-title { color: var(--gold); font-size: 14px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--panel); border: 1px solid var(--border); white-space: nowrap; }
.chip b { font-weight: 600; }
.big-stats { display: flex; gap: 12px; position: relative; z-index: 1; }
.big-stat { text-align: right; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.22); border: 1px solid var(--border); min-width: 150px; }
.big-stat .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.big-stat .value { font-size: 30px; font-weight: 800; line-height: 1.15; }
.big-stat.power .value { color: var(--gold); }
.updated { color: var(--faint); font-size: 12px; margin: 10px 2px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: 40px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.card h2 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.card h2 span { color: var(--faint); font-weight: 500; text-transform: none; letter-spacing: 0; }
.span-8 { grid-column: span 8; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--border); min-width: 0; }
.item-icon { position: relative; flex: none; width: 44px; height: 44px; border-radius: 8px; background: #0c1120; border: 2px solid var(--grade, var(--border)); overflow: hidden; }
.item-icon img { width: 100%; height: 100%; object-fit: contain; }
.item-icon .enchant { position: absolute; right: 1px; bottom: 0; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.item-body { min-width: 0; }
.item-name { font-size: 13px; font-weight: 600; color: var(--grade, var(--text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-slot { font-size: 12px; color: var(--muted); }

.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table td { padding: 6px 0; border-bottom: 1px dashed var(--border); vertical-align: top; }
.stat-table tr:last-child td { border-bottom: 0; }
.stat-table td:last-child { text-align: right; font-weight: 700; }
.stat-effects { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; gap: 8px; }
.bar-head span:last-child { color: var(--muted); white-space: nowrap; }
.bar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a6a2c, var(--gold)); }

.mini-list { display: flex; flex-direction: column; gap: 8px; }
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.skill { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: var(--radius-sm); background: var(--panel-2); min-width: 0; }
.skill img { width: 34px; height: 34px; border-radius: 6px; flex: none; background: #0c1120; }
.skill.off { opacity: 0.45; }
.skill-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-lv { font-size: 12px; color: var(--muted); }
.subhead { font-size: 12px; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.subhead:first-of-type { margin-top: 0; }

.history { width: 100%; border-collapse: collapse; font-size: 14px; }
.history th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--border); }
.history td { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.history .num { text-align: right; }
.delta-up { color: #4ade80; font-size: 12px; margin-left: 6px; }
.delta-down { color: var(--danger); font-size: 12px; margin-left: 6px; }

.error-box { margin: 40px auto; max-width: 520px; text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 20px; }
.error-box h2 { margin: 0 0 8px; font-family: var(--font-display); }
.error-box p { color: var(--muted); margin: 0 0 18px; }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--gold); color: #1a1408; font-weight: 700; border: 0; cursor: pointer; }

footer { border-top: 1px solid var(--border); color: var(--faint); font-size: 12px; padding: 20px 0 32px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* ---------- botões e avisos ---------- */
.btn-ghost {
  height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 13px; white-space: nowrap;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--panel-2); border: 1px solid var(--border-strong); padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow); transition: opacity .2s, transform .2s; font-size: 14px; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.badge-supporter {
  display: inline-flex; vertical-align: middle; font: 700 12px/1 var(--font); letter-spacing: 0.02em; padding: 5px 10px;
  border-radius: 999px; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(217, 181, 108, 0.35);
}
.muted { color: var(--muted); }
.is-loading { opacity: 0.5; pointer-events: none; transition: opacity .2s; }

/* ---------- anúncio (no máximo 1 por página, abaixo do conteúdo) ---------- */
.ad-slot { margin: 8px 0 32px; padding: 10px; min-height: 120px; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.ad-label { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }

/* ---------- páginas de texto ---------- */
.wrap.prose-page { max-width: 860px; }
.prose-page > .card { margin-bottom: 16px; }
.prose-page > .card:last-child { margin-bottom: 40px; }
.prose h2:not(:first-child) { margin-top: 26px; }
.prose p, .checklist { color: #c9cfdf; }
.prose p { margin: 0 0 12px; }
.prose a, .supporters a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.checklist { margin: 0; padding-left: 20px; }
.checklist li { margin: 6px 0; }
.supporters { margin: 0; padding-left: 20px; }
.supporters li { margin: 4px 0; }
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.donate-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.donate-card h3 { margin: 0 0 4px; font-size: 16px; }
.donate-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.pix-key { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pix-key code { flex: 1 1 160px; background: #0c1120; padding: 9px 10px; border-radius: 6px; border: 1px solid var(--border); overflow-wrap: anywhere; font-size: 13px; }
.btn-copy { height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--gold); color: #1a1408; font-weight: 700; cursor: pointer; }

/* ---------- gráficos ---------- */
figure.card { margin: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.chart-head h2 { margin: 0; }
.chart-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.chart-note { margin-top: 12px; font-size: 12px; color: var(--faint); }
.chart-table { max-height: 420px; overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--axis); position: sticky; top: 0; background: var(--panel); }
.data-table td { padding: 6px 8px; border-bottom: 1px solid var(--grid); }
.data-table .num { text-align: right; }

.hbars { display: flex; flex-direction: column; gap: 2px; }
.hbars-group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 12px 4px 4px; }
.hbars-group:first-child { margin-top: 0; }
.hbar { display: grid; grid-template-columns: minmax(84px, 160px) 1fr; align-items: center; gap: 12px; padding: 4px; border-radius: 6px; font-size: 14px; }
.hbar:hover, .hbar:focus-visible { background: var(--panel-2); }
.hbar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hbar-track i { flex: none; display: block; height: 14px; width: calc((100% - 112px) * var(--p)); background: var(--series-1); border-radius: 0 4px 4px 0; }
.hbar:hover .hbar-track i, .hbar:focus-visible .hbar-track i { filter: brightness(1.2); }
.hbar-value { font-size: 13px; color: var(--muted); white-space: nowrap; }

.cols { padding-left: 46px; }
.cols-plot { position: relative; height: 200px; margin-top: 22px; }
.cols-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--grid); }
.cols-grid.base { border-color: var(--axis); }
.cols-ytick { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.cols-bars { position: absolute; inset: 0; display: grid; gap: 2px; align-items: end; }
.col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.col i { display: block; width: 100%; max-width: 24px; background: var(--series-1); border-radius: 4px 4px 0 0; }
.col:hover i { filter: brightness(1.25); }
.col-cap { position: absolute; left: 50%; transform: translate(-50%, -4px); font-size: 11px; font-weight: 600; white-space: nowrap; }
.cols-x { display: grid; gap: 2px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.cols-x span { text-align: center; white-space: nowrap; overflow: visible; }
.line { padding-left: 56px; }
.line-plot { position: relative; height: 180px; margin-top: 24px; }
.line-plot:focus-visible { outline-offset: 6px; }
.line-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.line-path { fill: none; stroke: var(--series-1); stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.line-area { fill: var(--series-1); opacity: 0.1; }
.line-dot { position: absolute; width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; background: var(--series-1); box-shadow: 0 0 0 2px var(--panel); pointer-events: none; }
.line-dot.hover { width: 12px; height: 12px; margin: 0 0 -6px -6px; }
.line-end-label { position: absolute; transform: translate(-100%, -12px); font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.line-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--axis); pointer-events: none; }
.line-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.chart-tip {
  position: fixed; z-index: 50; pointer-events: none; background: #0b1020; border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 8px 10px; box-shadow: var(--shadow); font-size: 13px; max-width: 260px;
}
.chart-tip-row { display: flex; align-items: baseline; gap: 8px; }
.chart-tip-row strong { font-variant-numeric: tabular-nums; }
.chart-tip-row span { color: var(--muted); }

.stats .kpis { margin-top: 0; }
.table-scroll { overflow-x: auto; margin: 0 -18px -18px; }
/* aviso de que a tabela rola para o lado: só no celular, onde as colunas não cabem */
.scroll-hint { display: none; color: var(--muted); font-size: 12px; margin: 0 0 8px; }
/* nível de refino fixo à esquerda enquanto as colunas de atributos rolam */
.refine-table th:first-child, .refine-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
.players.compact td { padding: 8px 14px; }
.players.compact th { background: transparent; }

/* ---------- ferramentas ---------- */
a.btn-ghost { display: inline-flex; align-items: center; }
.actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.avatar.md { width: 56px; height: 56px; font-size: 22px; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tool-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--border); transition: border-color .15s, transform .15s;
}
.tool-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.tool-card h2 { margin: 4px 0 0; font-size: 19px; }
.tool-card p { margin: 0; color: var(--muted); }
.tool-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--gold-soft); color: var(--gold); }
.tool-cta { margin-top: 8px; color: var(--gold); font-weight: 600; }
.soon { margin-bottom: 40px; }
.soon a { color: var(--gold); text-decoration: underline; }

/* seletor de personagem */
.pickers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; margin-bottom: 20px; }
.picker label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.picker-box { position: relative; }
.picker-box input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--panel);
  border: 1px solid var(--border-strong); outline: none;
}
.picker-box input:focus { border-color: var(--gold); }
.picker-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  max-height: 340px; overflow-y: auto;
}
.picker-results li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; cursor: pointer; }
.picker-results li:hover, .picker-results li[aria-selected="true"] { background: var(--panel-hover); }
.picker-results li span { display: flex; flex-direction: column; min-width: 0; }
.picker-results small, .picker-chosen small { color: var(--muted); font-size: 12px; }
.picker-results .empty-option { color: var(--muted); cursor: default; }
.picker-chosen {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px 6px 10px; border-radius: var(--radius-sm);
  background: var(--panel); border: 1px solid var(--border);
}
.picker-chosen > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.picker-chosen strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs { font-family: var(--font-display); font-weight: 700; color: var(--gold); padding-bottom: 12px; text-align: center; }

/* comparação */
.picker-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-name:hover { color: var(--gold); }
.cmp-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cmp-grid .span-all { grid-column: 1 / -1; }
.cmp-row { display: grid; grid-template-columns: 1fr minmax(110px, auto) 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--grid); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-label { text-align: center; font-size: 13px; color: var(--muted); }
.cmp-label small { display: block; font-size: 11px; color: var(--faint); }
.cmp-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp-val.right { text-align: right; }
.cmp-val.win { color: var(--gold); }
.cmp-val.win::after { content: ' ▲'; font-size: 10px; }
.cmp-row.equip { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); }
.cmp-item { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.cmp-item.right { flex-direction: row-reverse; text-align: right; }
.cmp-item .item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--grade, var(--text)); font-weight: 600; }
.cmp-item.empty { color: var(--faint); }
.item-icon.sm { width: 36px; height: 36px; flex: none; position: relative; border-radius: 7px; background: #0c1120; border: 2px solid var(--grade, var(--border)); overflow: hidden; display: block; }
.item-icon.sm img { width: 100%; height: 100%; object-fit: contain; }
.item-icon.lg { width: 72px; height: 72px; flex: none; position: relative; border-radius: 12px; background: #0c1120; border: 2px solid var(--grade, var(--border)); overflow: hidden; display: block; }
.item-icon.lg img { width: 100%; height: 100%; object-fit: contain; }
a.item:hover { border-color: var(--grade, var(--border-strong)); }

/* refino */
.list-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 8px 0 12px; }
.item-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 40px; }
.item-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--border); min-width: 0; }
.item-chip:hover { border-color: var(--grade, var(--border-strong)); }
.item-chip-body { display: flex; flex-direction: column; min-width: 0; }
.item-chip .item-name { font-size: 13px; font-weight: 600; color: var(--grade, var(--text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-chip small { color: var(--muted); font-size: 12px; }
.item-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.card .item-title { margin: 0 0 2px; font: 700 24px/1.2 var(--font); color: var(--grade, var(--text)); text-transform: none; letter-spacing: 0; display: block; }
.fixed-note { margin: 12px 0 0; font-size: 13px; }
.exceed-block { margin-top: 18px; padding-top: 4px; }
.facts { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); }
.calc-controls { display: flex; gap: 10px; margin-bottom: 14px; }
.calc-rows { display: flex; flex-direction: column; }
.calc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--grid); }
.calc-row:last-child { border-bottom: 0; }
.gain { color: #4ade80; }
.loss { color: var(--danger); }
.refine-table th small { display: block; font-size: 11px; font-weight: 400; color: var(--faint); }
.refine-table td small { display: inline-block; min-width: 3.2em; margin-left: 6px; font-size: 11px; text-align: left; }
.refine-table td small.gain { color: #4ade80; }
.refine-table tbody th { text-align: left; white-space: nowrap; color: var(--text); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--grid); }
.refine-table .exceed-row th, .refine-table .exceed-row td { background: var(--gold-soft); }

/* evolução */
.gain-cell small { display: block; font-size: 11px; color: var(--muted); }
.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 12px 16px;
  border-radius: var(--radius); background: var(--gold-soft); border: 1px solid rgba(217, 181, 108, 0.3); color: var(--text);
}
.callout:hover { border-color: var(--gold); }
.callout strong { color: var(--gold); }

/* mudanças de equipamento (perfil e evolução) */
.eqchg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.eqchg-list li { font-size: 14px; line-height: 1.45; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.eqchg-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.eqchg-list time { color: var(--muted); font-size: 12px; margin-right: 6px; white-space: nowrap; }
.eqchg-slot { color: var(--muted); }
.eqchg-item { color: var(--grade, var(--text)); }
.eqchg-item:hover { text-decoration: underline; }
.eqchg-who { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.eqchg-who a { font-weight: 600; }
.card-note { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.build-compare .subhead { margin-top: 18px; }
.build-compare .card-link { display: inline-block; margin-top: 14px; }
.eqchg-more { margin-top: 12px; }

/* itens em alta (evolução) */
.trend-card { margin-bottom: 18px; }
.trend-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 24px; }
.trend-cols .subhead { margin: 0 0 2px; }
.trend-hint { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.trend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.trend-list li.empty, .trend-list li.loading { color: var(--muted); font-size: 14px; }

/* resumo da semana */
.week-window { color: var(--gold); font-size: 14px; margin-top: 6px; }
.week-block { margin-bottom: 18px; }
.week-entrants { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 24px; }
.week-class .subhead { margin: 0 0 8px; }

/* tendências (estatísticas) */
.trend-controls { margin: 4px 0 12px; }
.trend-controls .field { flex: 0 1 300px; }
.trend-slot .empty { color: var(--muted); font-size: 14px; }
.week-entrants .empty { color: var(--muted); font-size: 14px; margin: 0; }

/* favoritos */
.favorites { margin: 0 0 20px; }
.favorites .list-title { margin-top: 0; }
.fav-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.fav-card {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); max-width: 280px;
}
.fav-card:hover { border-color: var(--gold); }
.fav-card > span { display: flex; flex-direction: column; min-width: 0; }
.fav-card strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-card small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fav-card small.power { color: var(--gold); font-weight: 600; }
.fav-card small.power b { font-weight: 700; margin-left: 4px; }
/* com novidades desde a última visita: cantos menos redondos (mais linhas) e borda dourada discreta */
.fav-card.changed { border-radius: 18px; border-color: rgba(217, 181, 108, 0.45); }
.fav-card small.fav-news { color: var(--text); white-space: normal; max-width: 200px; line-height: 1.35; }
.fav-btn.on { color: var(--gold); border-color: rgba(217, 181, 108, 0.45); }

/* classes */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 40px; }
.class-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--border); border-top: 3px solid var(--cls, var(--border)); transition: transform .15s, border-color .15s;
}
.class-card:hover { transform: translateY(-2px); border-color: var(--cls, var(--gold)); }
.class-card h2 { margin: 0; font-family: var(--font-display); font-size: 21px; display: flex; align-items: center; gap: 10px; }
.class-card dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
.class-card dl > div { min-width: 0; }
.class-card dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.class-card dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.class-card dd small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.class-dot { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: var(--cls, var(--muted)); flex: none; }
.class-hero h1 { display: flex; align-items: center; gap: 14px; }
.class-hero .class-dot { width: 18px; height: 18px; }
.build-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px 16px; }
.build-slot .subhead { margin-top: 0; }
.build-item { margin-bottom: 8px; }
.build-item .item-chip { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.build-item .bar { height: 4px; border-radius: 0 0 6px 6px; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .span-8, .span-4, .span-6 { grid-column: span 12; }
  .profile-hero { grid-template-columns: auto 1fr; }
  .big-stats { grid-column: 1 / -1; }
  .big-stat { flex: 1; text-align: left; min-width: 0; }
}
@media (max-width: 720px) {
  /* Celular: o topo fica com a marca e o idioma; o menu vira a barra fixa de baixo (ícone + nome, ao alcance do polegar).
     Sem backdrop-filter aqui: ele faria a barra "fixa" se prender ao topo em vez da tela. */
  .topbar { backdrop-filter: none; background: rgba(10, 14, 24, 0.97); }
  .topbar .wrap { gap: 10px; height: 54px; }
  .brand { font-size: 16px; }
  .region-pill { display: none; }
  .support-link { display: inline-flex; margin-left: auto; }
  .lang-switch { margin-left: auto; }
  .support-link + .lang-switch { margin-left: 0; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 24, 0.97); border-top: 1px solid var(--border);
  }
  .nav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0;
    padding: 6px 2px; border-radius: 10px; font-size: 11px; line-height: 1.2; text-align: center;
  }
  .nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav svg { display: block; }
  .nav a:hover { background: none; }
  .nav a.active { background: none; box-shadow: none; color: var(--gold); }
  .nav .nav-support { display: none; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .scroll-hint { display: block; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .hide-sm { display: none; }
  .char-sub { display: block; }
  .pickers { grid-template-columns: 1fr; gap: 10px; }
  .pickers .vs { display: none; }
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 1fr minmax(90px, auto) 1fr; }
  .cmp-row.equip { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 6px; }
  .cmp-item { font-size: 12px; gap: 6px; }
  .item-head .item-icon.lg { width: 56px; height: 56px; }
  .hbar { grid-template-columns: 78px 1fr; gap: 8px; font-size: 13px; }
  .hbar-track i { width: calc((100% - 100px) * var(--p)); }
  .hero { padding-top: 28px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi-label { font-size: 11px; }
  .kpi-value { font-size: 20px; }
  .kpi-sub { display: none; }
  .players th, .players td { padding: 10px 10px; }
  .players .rank { width: 40px; }
  .field { min-width: 0; flex: 1 1 calc(50% - 10px); }
  .profile-hero { padding: 18px; gap: 16px; }
  .avatar.lg { width: 72px; height: 72px; font-size: 28px; }
  .big-stat .value { font-size: 24px; }
}
@media (max-width: 380px) {
  /* "Herramientas" e "Estatísticas" inteiros nas telas mais estreitas */
  .nav a { font-size: 10px; letter-spacing: -0.01em; }
}
@media (max-width: 480px) {
  /* com o botão "Apoie" no topo, a marca encolhe para caber em 360 px */
  .topbar:has(.support-link) .brand small { display: none; }
  .hide-xs { display: none; }
  .players .rank { display: none; }
}

/* índice de servidores */
.group-title { margin: 28px 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* calculadora de atributos */
.attr-import { margin-bottom: 16px; }
.attr-import .filters { margin-bottom: 6px; }
.attr-import-name { flex: 2 1 220px; }
.attr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.attr-grid > * { min-width: 0; }
.attr-primary { grid-column: 1; grid-row: 1; }
.attr-divine { grid-column: 2; grid-row: 1 / span 2; }
.attr-result { grid-column: 1; grid-row: 2; }
@media (max-width: 960px) {
  .attr-grid { grid-template-columns: minmax(0, 1fr); }
  .attr-primary, .attr-divine, .attr-result { grid-column: 1; grid-row: auto; }
}
.attr-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 2px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.attr-row:first-of-type { border-top: 0; padding-top: 0; }
.attr-name { font-weight: 600; }
.attr-server { font-weight: 400; font-size: 13px; color: var(--muted); }
.attr-effects { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.attr-seen { display: block; color: var(--faint); }
.attr-input {
  height: 38px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border-strong); outline: none; width: 100%; font-variant-numeric: tabular-nums; text-align: right;
}
.attr-input.wide { text-align: left; height: 40px; }
.attr-input:focus { border-color: var(--gold); }
.attr-row .attr-input { grid-row: 1; grid-column: 2; }
.attr-totals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.attr-totals li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.attr-totals small { display: block; color: var(--faint); font-size: 12px; }
.attr-totals b { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* planejador de Daevanion */
.dae-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.dae-layout > * { min-width: 0; }
.dae-tab.active { border-color: var(--gold); color: var(--gold); }
.dae-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); gap: 3px; aspect-ratio: 1; }
.dae-node {
  padding: 0; min-width: 0; min-height: 0; cursor: pointer; background: transparent; border: 2px solid var(--grade, var(--muted));
  border-radius: 4px; touch-action: manipulation;
}
.dae-node:disabled { cursor: default; }
.dae-skill { border-radius: 50%; }
.dae-start { border-color: var(--gold); border-radius: 50%; }
.dae-open { background: var(--grade, var(--muted)); }
.dae-start.dae-open { background: var(--gold); }
.dae-free:hover { background: color-mix(in srgb, var(--grade, var(--muted)) 35%, transparent); }
.dae-locked { opacity: 0.5; }
.dae-node:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.dae-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.dae-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dae-key { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--muted); border-radius: 3px; }
.dae-key.dae-open { background: var(--muted); }
.dae-key.dae-locked { opacity: 0.5; }
.dae-key.dae-skill { border-radius: 50%; }
.dae-info { margin-top: 12px; min-height: 64px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--panel-2); font-size: 14px; }
.dae-info ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.dae-side .btn-reset { margin-left: auto; }
@media (max-width: 960px) { .dae-layout { grid-template-columns: minmax(0, 1fr); } }
/* faixas de nível: tabuleiro que ainda não abre no nível escolhido fica tracejado, apagado e fora do total */
.dae-levels { margin: 12px 0 4px; }
.dae-levels .chips { margin-top: 6px; }
.dae-levels p { margin: 8px 0 0; font-size: 13px; }
#dae-tabs { margin-bottom: 12px; }
.dae-tab { cursor: pointer; color: var(--text); font: inherit; font-size: 13px; }
.dae-tab-locked { border-style: dashed; color: var(--muted); }
.dae-tab-locked b { font-weight: 400; }
.dae-board-locked .dae-node { cursor: help; }
.dae-lock-note { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); font-size: 14px; color: var(--muted); }

/* ligações discretas dentro de cartões e chips */
.card-link { display: inline-block; margin-top: 12px; color: var(--gold); font-weight: 600; font-size: 14px; }
.card-link:hover { text-decoration: underline; }
.chip a:hover { text-decoration: underline; }

/* popularidade no planejador: o dourado cresce com o uso entre os mais fortes (só em nós ainda fechados) */
.dae-pop { align-items: end; }
.dae-check { display: inline-flex; align-items: center; gap: 8px; height: 40px; cursor: pointer; }
.show-pop .dae-free, .show-pop .dae-locked { background: color-mix(in srgb, var(--gold) calc(var(--pop, 0) * 85%), transparent); }
.show-pop .dae-locked { opacity: 0.5; }
.show-pop .dae-locked[style*="--pop:0;"], .show-pop .dae-locked[style*="--pop:0\""] { opacity: 0.3; }
.dae-popkey { background: color-mix(in srgb, var(--gold) 70%, transparent); border-color: var(--muted); }
.dae-pop .field { flex: 0 0 150px; min-width: 150px; }

/* atalhos sob a busca de jogadores */
.shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shortcut { color: var(--gold); border-color: rgba(217, 181, 108, 0.35); text-decoration: none; }
.shortcut:hover { background: var(--gold-soft); }

/* seletor de faixa de poder nas builds */
.band-picker .subhead { margin-top: 4px; }
.band-picker .subhead .muted { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.chip-tab { cursor: pointer; color: var(--text); font: inherit; font-size: 13px; }
.chip-tab:hover { border-color: var(--border-strong); }
.chip-tab.active { border-color: var(--gold); color: var(--gold); }

/* "Ferramentas recomendadas" (links de afiliado, sempre sinalizados) */
.affiliates { margin-bottom: 16px; }
.affiliates ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; }
.affiliates li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.affiliates li span { color: var(--muted); font-size: 13px; }
.affiliates a strong { color: var(--gold); }
.affiliates a:hover strong { text-decoration: underline; }

/* posição do personagem no perfil */
.rank-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rank-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--gold-soft); border: 1px solid rgba(217, 181, 108, 0.3); }
.rank-pill b { color: var(--gold); font-size: 15px; font-variant-numeric: tabular-nums; }
.rank-pill:hover { border-color: var(--gold); color: var(--text); }

/* próximas metas (perfil) */
.goal-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.goal { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.goal-label { font-size: 12px; color: var(--muted); }
.goal-gap { font-size: 20px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.goal-sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.goal-top { margin: 0; color: var(--text); font-size: 14px; }

.power-note { margin-top: 6px; max-width: 220px; font-size: 11px; line-height: 1.35; color: var(--muted); }
