/* Layout: barra preta fixa com navegação; cada aba = linha de controles acima de uma área de trabalho larga.
   Identidade: preto, azul-ardósia escuro, branco e detalhes em dourado (tema escuro único). */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --bg: #050607; --surface: #0c1117; --surface-2: #131b23; --ink: #f5f2ec; --ink-2: #b7bfc7; --muted: #7b8792;
  --line: #1d2833; --line-2: #141d26; --accent: #d8b46a; --accent-soft: rgba(216, 180, 106, .14); --accent-ink: #0a0a0a;
  --gold: #d8b46a; --champagne: #f3d4a2; --slate: #223a49; --slate-2: #3f6274;
  --pitch: #0a1016; --pitch-line: rgba(243, 212, 162, .28); --pitch-stripe: #0c131a;
  --s1: #d8b46a; --s2: #6fa3c0; --s3: #e8e4dc; --s4: #c4704f; --s5: #9b86d6; --s6: #5fae8b; --s7: #e09a3c; --s8: #e05a4f;
  --div-lo: #b8473d; --div-mid: #26313b; --div-hi: #d8b46a;
  --bar-hi: #d8b46a; --bar-lo: #39352a; --heat-lo: #d8b46a; --heat-hi: #d8b46a;
  --good: #5fae8b; --bad: #e05a4f; --fade-bad: #d1453b; --fade-good: #3fae6e;
  --f-display: "Archivo", "Arial Narrow", sans-serif; --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 3px; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: #000; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--champagne); }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num, td.n, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- barra superior ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #000; border-bottom: 1px solid rgba(216, 180, 106, .35); }
.top-inner { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--champagne); }
.brand-mark { width: 32px; color: var(--gold); display: grid; }
.brand-text { font-family: var(--f-display); font-stretch: 125%; font-weight: 400; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); white-space: nowrap; }
.brand-text b { font-weight: 700; }
.season-chip { font-family: var(--f-mono); font-size: 12px; padding: 1px 7px; border: 1px solid var(--gold); color: var(--gold); border-radius: 2px; }
.tabs { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs a { font-family: var(--f-body); font-weight: 600; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  text-decoration: none; padding: 8px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--champagne); }
.tabs a.on { color: var(--champagne); border-bottom-color: var(--gold); }
@media (max-width: 1100px) { .tabs { margin-left: 0; width: 100%; order: 3; } }
@media (max-width: 520px) { .brand-text { font-size: 13px; letter-spacing: .1em; } .brand-mark { width: 24px; } .tabs a { padding: 6px 9px; font-size: 11.5px; } }

/* ---------- genérico ---------- */
main { padding-block: 26px 48px; min-height: 70vh; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(28px, 4vw, 46px); font-stretch: 125%; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
h1::after { content: ""; display: block; width: 64px; height: 2px; background: var(--gold); margin-top: 14px; }
h2 { font-size: 22px; font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 16px; font-stretch: 112%; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.sub { color: var(--ink-2); margin: 12px 0 0; max-width: 72ch; }
.eyebrow { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.section { margin-top: 34px; }
.section > .page-head { margin-bottom: 10px; }
.muted { color: var(--muted); }
.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* controles */
.controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 14px; }
.ctl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ctl > label, .ctl > .lbl { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
select, input[type="search"], input[type="number"], input[type="text"] { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 6px 9px; height: 34px; max-width: 100%; }
input[type="range"] { accent-color: var(--gold); width: 140px; }
input[type="checkbox"] { accent-color: var(--gold); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--bg); height: 34px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; padding: 0 11px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--gold); color: #0a0a0a; font-weight: 600; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 2px; padding: 0 12px; height: 34px; cursor: pointer; }
.btn:hover { border-color: var(--gold); }
.check { display: inline-flex; gap: 7px; align-items: center; height: 34px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: none; border-radius: 2px; padding: 3px 11px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chip.on { background: var(--accent-soft); border-color: var(--gold); color: var(--champagne); }
.chip .sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dl-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--gold); color: var(--champagne); background: none; height: 32px; padding: 0 12px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 2px; white-space: nowrap; }
.dl-btn:hover { background: var(--accent-soft); }
.dl-btn:disabled { opacity: .6; cursor: progress; }

/* tabelas */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
table.data th { position: sticky; top: 0; background: var(--surface); font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); cursor: pointer; user-select: none; z-index: 1; vertical-align: bottom; white-space: normal; min-width: 60px; max-width: 128px; line-height: 1.3; }
table.data th.l, table.data td.l { text-align: left; }
table.data th.nosort { cursor: default; }
table.data th.sorted { color: var(--gold); }
table.data th.sorted::after { content: " ▾"; }
table.data th.sorted.asc::after { content: " ▴"; }
table.data td.n { font-size: 13.5px; }
table.data td.sorted { background: rgba(216, 180, 106, .10); color: var(--champagne); font-weight: 500; }
table.data tbody tr:nth-child(even) td { background-color: rgba(255, 255, 255, .015); }
table.data tbody tr:nth-child(even) td.sorted { background: rgba(216, 180, 106, .12); }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data tbody tr.click { cursor: pointer; }
td.rank { color: var(--muted); font-family: var(--f-mono); width: 34px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .nm { font-weight: 600; color: var(--ink); }
.who .meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); object-fit: cover; flex: none; border: 1px solid var(--line); }
.avatar-fb { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-family: var(--f-display); font-weight: 700; font-size: 12px; border: 1px solid var(--line); }
/* escudo com contorno branco seguindo o formato do escudo */
.crest { object-fit: contain; flex: none; }
.crest-fb { display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 9px; border: 1px solid var(--line); color: var(--ink-2); flex: none; }
.pos { font-family: var(--f-mono); font-size: 10.5px; padding: 0 5px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); }
.form { display: inline-flex; gap: 3px; }
.form i { font-style: normal; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 2px; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #0a0a0a; font-family: var(--f-mono); }
.form i.V { background: var(--good); } .form i.E { background: #5b6772; color: #fff; } .form i.D { background: var(--bad); color: #fff; }
.zone-lib td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.zone-sul td:first-child { box-shadow: inset 3px 0 0 var(--s2); }
.zone-reb td:first-child { box-shadow: inset 3px 0 0 var(--s8); }
.legend-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.legend-row span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--c); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px; font-size: 13px; color: var(--ink-2); }
.cat-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 7px 10px; cursor: pointer; font-family: var(--f-body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.cat-tabs button.on { color: var(--champagne); border-bottom-color: var(--gold); }
.tbl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

/* gráficos */
.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.chart-grid.single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 14px; min-width: 0; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 4px 10px; }
.chart-title h3 { font-size: 18px; }
.axis text { fill: var(--ink); font-family: var(--f-mono); font-size: 12px; font-weight: 600; }
.axis path, .axis line { stroke: var(--muted); stroke-width: 1.2; }
.axis-title { font-weight: 700; fill: var(--ink); letter-spacing: .02em; }
.grid line { stroke: rgba(255, 255, 255, .05); }
.grid path { stroke: none; }
.side-list { max-height: 640px; overflow: auto; }
.side-list .row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; cursor: pointer; }
.side-list .row:hover { background: var(--surface-2); }
.side-list .row .v { margin-left: auto; font-family: var(--f-mono); font-size: 12.5px; color: var(--champagne); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ac { position: relative; }
.ac-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 15; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; max-height: 320px; overflow: auto; box-shadow: var(--shadow); min-width: 260px; }
.ac-list div { padding: 6px 9px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ac-list div:hover, .ac-list div.hi { background: var(--surface-2); }
.picked { display: flex; flex-wrap: wrap; gap: 6px; }
.picked .chip { cursor: default; display: inline-flex; align-items: center; gap: 6px; }
.picked .chip button { border: 0; background: none; cursor: pointer; padding: 0; color: var(--muted); }
.note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* mapas */
.maps-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .maps-grid { grid-template-columns: minmax(0, 1fr); } }
.map-menu { display: flex; flex-direction: column; gap: 1px; padding: 8px; }
.map-menu button { text-align: left; border: 0; background: none; padding: 8px 10px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.map-menu button.on { background: var(--accent-soft); color: var(--champagne); box-shadow: inset 2px 0 0 var(--gold); }
.map-menu button:hover { color: var(--champagne); }
.map-menu .grp { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 10px 10px 4px; }
@media (max-width: 900px) { .map-menu { flex-direction: row; flex-wrap: wrap; } .map-menu .grp { width: 100%; padding: 4px; } }
.map-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 16px; min-width: 0; }
.map-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.map-head .ttl { min-width: 0; }
.map-head .ttl b { font-family: var(--f-display); font-stretch: 112%; font-size: 22px; text-transform: uppercase; display: block; line-height: 1.05; }
.map-head .ttl span { font-size: 13px; color: var(--ink-2); }
.map-sub-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.map-canvas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.map-canvas.two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .map-canvas.two { grid-template-columns: minmax(0, 1fr); } }
.map-canvas svg { width: 100%; max-width: 1000px; height: auto; display: block; margin: 0 auto; }
.kpis { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 12px; }
.kpi { display: flex; flex-direction: column; }
.kpi b { font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: 26px; line-height: 1; }
.kpi span { font-size: 11px; color: var(--muted); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; display: inline-flex; align-items: center; gap: 6px; }
.kpi span i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.pitch-bg { fill: var(--pitch); }
.pitch-line { stroke: var(--pitch-line); fill: none; stroke-width: .35; }
.pitch-stripe { fill: var(--pitch-stripe); }
.dir-arrow { fill: var(--muted); font-family: var(--f-mono); font-size: 1.9px; letter-spacing: .05em; }

/* playercard */
.card-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.card-layout > *, .pc-mini > * { min-width: 0; }
@media (max-width: 960px) { .card-layout { grid-template-columns: minmax(0, 1fr); } }
.pc-id { padding: 20px; position: relative; overflow: hidden; }
.pc-id .photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 2px solid var(--gold); }
.pc-id .avatar-fb { width: 120px; height: 120px; font-size: 40px; border: 2px solid var(--gold); }
.pc-id h2 { font-size: 30px; font-stretch: 125%; margin-top: 14px; line-height: .98; }
.pc-id .team { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink-2); }
.pc-id .flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.pc-id .crest-big { position: absolute; right: -10px; top: -6px; opacity: .12; pointer-events: none; }
.pc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.pc-facts div { background: var(--surface); padding: 10px 12px; }
.pc-facts b { display: block; font-family: var(--f-display); font-stretch: 112%; font-size: 23px; line-height: 1; }
.pc-facts span { font-size: 10.5px; color: var(--muted); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.pc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.pc-group { padding: 12px; }
.pc-group h3 { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.pc-group h3 small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .04em; }
.pc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile { border-radius: 3px; padding: 8px 9px 7px; min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.tile .tl { font-size: 11.5px; line-height: 1.2; font-weight: 600; }
.tile .tv { font-family: var(--f-display); font-stretch: 112%; font-size: 23px; font-weight: 600; line-height: 1; margin-top: 6px; }
.tile .tp { font-family: var(--f-mono); font-size: 10.5px; opacity: .85; }
.tile.na { background: var(--surface-2); color: var(--muted); }
.pc-scale { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.pc-scale .bar { width: 180px; height: 10px; border-radius: 2px; }
.pc-mini { padding: 12px; }
.pc-mini svg { width: 100%; height: auto; display: block; }
.pc-mini .map-canvas.two { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 520px) { .pc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dl-panel { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: end; padding: 12px 14px; }

/* comparação */
.cmp-table td.cell { text-align: center; padding: 6px 8px; }
.cmp-table td.cell .v { font-family: var(--f-mono); font-size: 13px; }
.cmp-table td.cell .p { font-family: var(--f-mono); font-size: 10px; opacity: .8; }
.cmp-table td.best { box-shadow: inset 0 0 0 2px #ffffff; font-weight: 600; }
.cmp-table th.ent { text-align: center; white-space: normal; min-width: 92px; }
.cmp-table th.ent .who { flex-direction: column; gap: 4px; }
.cmp-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.cmp-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.cmp-maps .mp { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 10px; }
.cmp-maps .mp .who { margin-bottom: 6px; }
.cmp-maps svg { width: 100%; height: auto; display: block; }

/* início */
.hero { padding-block: 40px 30px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.hero h1 { font-size: clamp(34px, 6vw, 72px); }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 64ch; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.home-card { display: block; padding: 18px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 4px; }
.home-card:hover { border-color: var(--gold); }
.home-card b { display: block; font-family: var(--f-display); font-stretch: 112%; font-size: 18px; text-transform: uppercase; letter-spacing: .05em; color: var(--champagne); margin-bottom: 6px; }
.home-card span { color: var(--ink-2); font-size: 14px; }

/* dicionário */
.dict-cat { margin-top: 26px; }
.dict-cat h2 { margin-bottom: 10px; }
.dict-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dict-item { background: var(--surface); padding: 12px 14px; }
.dict-item b { font-weight: 600; color: var(--champagne); }
.dict-item p { margin: 4px 0 6px; color: var(--ink-2); font-size: 14px; }
.tag { display: inline-block; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); margin-right: 6px; border-radius: 2px; }
.tag.lo { border-color: var(--s8); color: var(--s8); }
.method { columns: 2 360px; column-gap: 28px; color: var(--ink-2); font-size: 14px; }
.method p { break-inside: avoid; margin: 0 0 12px; }
.method b { color: var(--ink); }

/* tooltip, toasts, loading */
.tip { position: fixed; z-index: 50; pointer-events: none; background: #000; color: var(--ink); border: 1px solid rgba(216, 180, 106, .5); padding: 8px 10px; border-radius: 3px; font-size: 12.5px; max-width: 290px; box-shadow: var(--shadow); line-height: 1.35; }
.tip b { font-weight: 600; }
.tip .tr { display: flex; justify-content: space-between; gap: 14px; font-family: var(--f-mono); font-size: 11.5px; }
.tip .th { display: flex; gap: 8px; align-items: center; margin-bottom: 5px; }
.tip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.tip img.crest { border-radius: 0; object-fit: contain; }
.toast { position: fixed; z-index: 60; bottom: max(16px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: #000; border: 1px solid var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 3px; font-size: 13.5px; max-width: calc(100% - 32px); }
.loading { display: grid; place-items: center; gap: 8px; padding: 120px 0; color: var(--ink-2); }
.ball { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ball { animation: none; } }
.foot { color: var(--muted); font-size: 12.5px; padding-block: 22px 40px; border-top: 1px solid rgba(216, 180, 106, .25); }
.foot p { margin: 4px 0; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* folha de exportação (fora da tela) */
.export-holder { position: fixed; left: -10000px; top: 0; z-index: -1; }
.export-sheet { background: var(--bg); color: var(--ink); padding: 24px; font-family: var(--f-body); }
.export-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid rgba(216, 180, 106, .45); padding-bottom: 12px; margin-bottom: 14px; }
.ex-title { font-family: var(--f-display); font-stretch: 125%; font-size: 26px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.ex-sub { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.ex-brand { font-family: var(--f-display); font-stretch: 125%; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); white-space: nowrap; }
.ex-brand span { border: 1px solid var(--gold); color: var(--gold); padding: 0 5px; margin-left: 4px; font-family: var(--f-mono); letter-spacing: 0; }
.ex-note { color: var(--muted); font-size: 12px; margin-top: 10px; }
.export-sheet .tbl-wrap { overflow: visible; }
.export-sheet .no-export { display: none !important; }
.export-sheet .chart-title { display: none; }
.xg-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--ink); }
.xg-legend .muted { font-size: 12px; max-width: 34ch; }
.map-canvas .xg-legend svg { width: auto; max-width: none; margin: 0; flex: none; }

/* bio na página inicial */
.bio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 26px; padding: 20px; border: 1px solid rgba(216, 180, 106, .45); background: linear-gradient(135deg, rgba(216, 180, 106, .10), rgba(216, 180, 106, 0) 60%), var(--surface); border-radius: 4px; }
@media (max-width: 820px) { .bio { grid-template-columns: minmax(0, 1fr); } }
.bio-text p { font-size: 17px; color: var(--ink-2); margin: 8px 0 0; max-width: 60ch; }
.bio-text b { color: var(--ink); }
.bio-contacts { display: grid; gap: 10px; }
.contact-card { border: 1px solid var(--gold); background: var(--bg); padding: 12px 14px; border-radius: 3px; min-width: 0; }
.contact-val { font-family: var(--f-mono); font-size: 15px; color: var(--champagne); font-weight: 500; user-select: all; overflow-wrap: anywhere; min-width: 0; }

/* painel de cores */
.theme-btn { margin-left: 14px; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line); background: none; color: var(--ink-2); font: inherit; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; cursor: pointer; white-space: nowrap; }
.theme-btn:hover, .theme-btn:focus-visible { border-color: var(--gold); color: var(--champagne); }
.theme-btn .dots { width: 26px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--div-lo), var(--div-mid), var(--div-hi)); }
@media (max-width: 1100px) { .theme-btn { margin-left: auto; } }
.theme-shade { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .55); }
.theme-panel { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.theme-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.theme-title { font-family: var(--f-display); font-stretch: 125%; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.theme-x { background: none; border: 0; color: var(--ink-2); font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.theme-x:hover { color: var(--champagne); }
.theme-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.theme-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 18px; }
.theme-preset { display: grid; grid-template-columns: 1fr; gap: 5px; text-align: left; padding: 9px 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); border-radius: 3px; font: inherit; font-size: 13px; cursor: pointer; }
.theme-preset:hover { border-color: var(--slate-2); }
.theme-preset.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.theme-sw { display: block; height: 7px; border-radius: 4px; }
.theme-group { padding: 14px 0; border-top: 1px solid var(--line-2); }
.theme-gt { font-weight: 600; color: var(--champagne); font-size: 14px; }
.theme-hint { color: var(--muted); font-size: 12.5px; margin: 3px 0 10px; line-height: 1.45; }
.theme-prev { height: 16px; border-radius: 3px; border: 1px solid var(--line); margin-bottom: 10px; background-color: var(--pitch); }
.theme-pickers { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.theme-pick { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.theme-pick input[type="color"] { width: 34px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: none; cursor: pointer; }
.theme-pick input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.theme-pick input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 2px; }
.theme-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.theme-foot .theme-hint { margin: 0; }
.theme-foot .btn { white-space: nowrap; flex: none; }
