/* Lexend (SIL OFL 1.1, ver assets/fonts/OFL.txt), hospedada no próprio site. */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../assets/fonts/lexend-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Tema escuro único, no estilo da tela de atributos do jogo. */
:root {
  color-scheme: dark;
  --bg: #0d1215; --bg2: #141b1f; --panel: rgba(255,255,255,.035); --line: #2a3439; --ink: #e8eef0; --muted: #8d9aa0;
  --track: #2b3236; --cap: #8e979b; --sel: #2ec4c4; --key: #22d36b;
  --t90: #22d36b; --t80: #2f8f4e; --t70: #e0b21a; --t50: #e3741f; --t0: #d9402f;
  --font: "Lexend", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: radial-gradient(1200px 500px at 50% -200px, #1b262b, var(--bg)) fixed, var(--bg); color: var(--ink); font: 15px/1.4 var(--font); min-height: 100vh; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* topo: arquétipos */
.topnav { border-bottom: 1px solid var(--line); background: rgba(0,0,0,.35); }
.topnav .wrap { display: flex; align-items: center; gap: 6px; height: 48px; }
.topnav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 8px; border: 1px solid transparent; }
.topnav a:hover { border-color: var(--line); }
.topnav a.on { color: var(--sel); border-color: var(--sel); }
/* menu: nome do site, FC 27 e FC 26 à esquerda (o jogo aberto fica destacado); bandeiras de idioma à direita */
/* nome do site (não traduzido), leva à página inicial (FC 27) */
.topnav a.brand { padding: 7px 0; margin-right: 16px; border: 0; font-size: 16px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.topnav a.brand:hover { color: var(--sel); border: 0; }
.langs { margin-left: auto; display: flex; gap: 6px; }
.flag { display: grid; place-items: center; padding: 4px; background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; opacity: .6; transition: opacity .12s; }
.flag:hover { opacity: 1; border-color: var(--line); }
.flag.on { opacity: 1; border-color: var(--sel); }
.flag svg { display: block; border-radius: 2px; }
.arch { padding-block: 10px 8px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.groups { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.group { display: grid; gap: 5px; justify-items: center; }
.icons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.gname { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--muted); font-size: 14px; white-space: nowrap; }
.gname::before, .gname::after { content: ""; flex: 1; height: 1px; background: #4a555a; min-width: 18px; }
.ab { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; background: none; padding: 0; cursor: pointer; color: #d9dfe1; opacity: .8; transition: transform .12s, opacity .12s; }
.ab:hover { opacity: 1; transform: translateY(-2px); }
.ab svg, .ab img { width: 100%; height: 100%; display: block; }
.ab img { object-fit: contain; }
.ab[aria-pressed="true"] img { filter: brightness(1.25); } /* cinza #ccc do ícone vira branco, como no desenho de reserva */
.ab[aria-pressed="true"] { opacity: 1; color: #fff; transform: scale(1.12); }
.ab[aria-pressed="true"] .ring { stroke: #fff; }
.ab[aria-pressed="true"]::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(46,196,196,.55), rgba(46,196,196,0) 70%); z-index: -1; }
.ab[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -4px; left: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--key); color: #06200f; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.ab .tip { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-size: 11px; color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.ab:hover .tip, .ab:focus-visible .tip { opacity: 1; }

/* barra do nível */
.ctrl { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding-block: 12px 10px; }
@media (max-width: 1000px) { .ctrl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ctrl .box:first-child { grid-column: 1 / -1; } }
@media (max-width: 620px) { .ctrl { grid-template-columns: minmax(0, 1fr); } }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; display: grid; gap: 9px; align-content: start; min-width: 0; }
.box h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lv { display: flex; align-items: center; gap: 10px; }
.lv label { font-weight: 600; }
.lv input[type=range] { flex: 1; accent-color: var(--sel); min-width: 80px; }
.lv input[type=number] { width: 64px; height: 36px; text-align: center; font-size: 20px; font-weight: 700; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; -moz-appearance: textfield; }
.body { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.f { display: grid; gap: 4px; }
.lbl { font-size: 11px; color: var(--muted); }
.f select { height: 32px; background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.aphero { display: flex; align-items: baseline; gap: 10px; }
.aphero b { font-size: 40px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.aphero b.zero { color: var(--t90); }
.aphero b.neg { color: var(--t0); }
.aphero span { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.stat { display: grid; }
.stat b { font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: 11px; color: var(--muted); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.accel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.accel .t { font-size: 18px; font-weight: 700; letter-spacing: .05em; padding: 4px 12px; border-radius: 8px; }
.accel .t.exp { background: rgba(224,178,26,.18); color: #f2c94c; }
.accel .t.len { background: rgba(80,140,255,.18); color: #8fb4ff; }
.accel .t.con { background: rgba(34,211,107,.15); color: var(--t90); }
.accel .t.na { background: var(--bg2); color: var(--muted); }
.accel .hint { font-size: 12px; color: var(--muted); }
.req { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.req li { display: flex; justify-content: space-between; gap: 10px; }
.req li.ok { color: var(--t90); }
.req li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.num { display: inline-flex; }
.num button { width: 26px; height: 32px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; padding: 0; font-size: 16px; }
.num button:first-child { border-radius: 8px 0 0 8px; }
.num button:last-child { border-radius: 0 8px 8px 0; }
.num input { width: 52px; height: 32px; text-align: center; font-size: 17px; font-weight: 700; background: var(--bg2); border: 1px solid var(--line); border-left: 0; border-right: 0; -moz-appearance: textfield; }
.num input::-webkit-inner-spin-button, .num input::-webkit-outer-spin-button, .lv input::-webkit-inner-spin-button, .lv input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nx { flex: none; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; border: 1px solid currentColor; line-height: 1.4; }
.nx.ok { color: var(--t90); }
.nx.no { color: var(--t0); }
.nx.max { color: var(--muted); border-color: transparent; font-weight: 400; }
/* painéis: zerar o AP, loadouts */
.panel { margin-bottom: 10px; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; min-width: 0; }
.phead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 28px; }
.phead h3 { margin: 0; font-size: 15px; font-weight: 700; }
.phead .hint { font-size: 12px; color: var(--muted); }
.phead .pact { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.phead .pact input[type=number] { width: 52px; height: 28px; text-align: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; font-weight: 600; -moz-appearance: textfield; }
.phead .apleft { font-size: 13px; color: var(--muted); }
.phead .apleft b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 6px; }
.phead .apleft b.zero { color: var(--t90); }
.phead .apleft b.neg { color: var(--t0); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.lolist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .lolist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lo { position: relative; min-width: 0; height: 74px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.lo:hover, .lo.on { border-color: var(--sel); }
.lo.on { background: rgba(46,196,196,.08); }
.lo .lo-main { display: grid; gap: 2px; align-content: center; text-align: left; width: 100%; height: 100%; min-width: 0; padding: 8px 60px 8px 11px; background: none; border: 0; cursor: pointer; }
.lo .lo-main b, .lo .lo-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lo .lo-main b { font-size: 13.5px; }
.lo.on .lo-main b { color: var(--sel); }
.lo .lo-main span { font-size: 12px; color: var(--muted); }
.lo.empty { border-style: dashed; background: none; }
.lo.empty .lo-main { justify-items: center; padding-right: 11px; color: var(--muted); font-weight: 600; font-size: 13px; }
.lo.empty .lo-main:hover { color: var(--sel); }
.lo .lo-act { position: absolute; top: 7px; right: 7px; display: flex; gap: 4px; }
.lo .lo-act button { min-width: 24px; height: 24px; padding: 0 5px; font-size: 13px; line-height: 1; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.lo .lo-act button:hover { border-color: var(--sel); }
.lo .lo-act button.confirm { font-size: 11px; font-weight: 600; color: var(--t0); border-color: var(--t0); }
.fitlist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, 54px); gap: 8px; }
@media (max-width: 1000px) { .fitlist { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, 54px); } }
.fitslot { border: 1px dashed var(--line); border-radius: 8px; }
.fitempty { grid-area: 1 / 1 / -1 / -1; display: grid; place-items: center; text-align: center; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }
.fitopt { display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 2px 6px; overflow: hidden; line-height: 1.25; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px 6px 10px; cursor: pointer; font-size: 13px; text-align: left; }
.fitopt:hover { border-color: var(--sel); }
.fitopt .up { color: var(--t90); font-weight: 600; }
.fitopt .down { color: var(--t0); font-weight: 600; }
.mod { font-size: 13px; font-weight: 600; margin-right: 6px; vertical-align: 3px; }
.mod.up { color: var(--t90); }
.mod.down { color: var(--t0); }
.btn { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; white-space: nowrap; position: relative; }
.btn:hover { border-color: var(--sel); }
.btn.on { border-color: var(--sel); color: var(--sel); }
.btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }


/* atributos */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 34px; padding-block: 10px 18px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } .ab { width: 52px; height: 52px; } .groups { gap: 18px; } }
.cat h2 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 6px 10px 8px; margin: 0 -10px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer; user-select: none; }
.row:hover { background: var(--panel); }
.row.sel { border-color: var(--sel); background: rgba(46,196,196,.06); }
.row .nm { font-size: 17px; font-weight: 300; color: #c9d1d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.row.key .nm { color: var(--key); font-weight: 400; }
.row.pts .nm, .row.pts .val { font-weight: 700; color: #fff; }
.row.key.pts .nm { color: var(--key); }
.row .kd { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--key); position: relative; display: none; }
.row .kd::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--key); }
.row.key .kd { display: inline-block; }
.row .val { font-size: 20px; font-weight: 300; font-variant-numeric: tabular-nums; }
.row.sel .val, .row.sel .nm { font-weight: 700; color: #fff; }
.bar { grid-column: 1 / -1; position: relative; height: 4px; margin-top: 4px; background: var(--track); border-radius: 2px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.bar .mx { background: var(--cap); opacity: .55; }
.bar .cv { transition: width .12s; }
.pm { display: none; gap: 6px; grid-column: 1 / -1; grid-row: 3; margin-top: 12px; justify-content: flex-start; }
.row.sel .pm { display: flex; }
.pm button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-size: 18px; line-height: 1; padding: 0; }
.pm button:hover { border-color: var(--sel); }
.pm button.txt { width: auto; padding: 0 7px; font-size: 12px; font-weight: 600; }
.stars { display: flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 0 1px; cursor: pointer; font-size: 24px; line-height: 1; color: #4a4a40; }
.stars button.on { color: #d8b25a; }
.stars button:disabled { cursor: default; }
.other .row { cursor: default; }

/* builds salvos */

.row .ct { font-size: 11px; color: var(--muted); position: absolute; right: 10px; bottom: -4px; }
/* linha de controles compacta (Jogador, Pontos de atributo, Tipo de aceleração) */
.ctrl { gap: 10px; padding-block: 10px 8px; }
.ctrl .box { padding: 7px 12px 8px; gap: 6px; }
.ctrl .box h3 { font-size: 11px; }
.ctrl .lv { gap: 8px; }
.ctrl .lv label { font-size: 13px; width: 46px; flex: none; }
.ctrl .lv input[type=number] { width: 52px; height: 24px; font-size: 15px; }
.ctrl [data-fold="jogador"] { gap: 3px; }
.ctrl [data-fold="jogador"] h3 { margin-bottom: 3px; }
.unit { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.unit small { width: 18px; font-size: 11px; color: var(--muted); }
.ctrl .lv > input[type=number] { margin-right: 22px; } /* alinha com as caixas que têm unidade */
/* Pontos de atributo: à esquerda o AP disponível (em cima) e gasto · total · próximo nível (embaixo), espalhados na altura
   do painel; à direita o botão Zerar pontos ocupando toda a altura. A altura do painel não muda (vem da linha .ctrl). */
.ctrl [data-fold="pontos"] { grid-template-rows: auto 1fr; }
.apbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30%); gap: 12px; min-height: 0; }
.apinfo { display: flex; flex-direction: column; justify-content: space-evenly; min-width: 0; }
.apinfo .apstats { white-space: normal; } /* no painel estreito, quebra em vez de cortar (ex.: alemão) */
.btn.apreset { width: 100%; height: 100%; padding: 6px 10px; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; white-space: normal; }
.ctrl .aphero { gap: 8px; }
.ctrl .aphero b { font-size: 28px; }
.ctrl .aphero span { font-size: 12px; }
.apstats { margin: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apstats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ctrl .accel .t { font-size: 14px; line-height: 1.25; padding: 2px 9px; }
.ctrl .req { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 1px 14px; font-size: 12px; line-height: 1.3; }
.ctrl .req li { gap: 6px; min-width: 0; }
.ctrl .req li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* blocos recolhíveis: clique no título (os atributos ficam sempre abertos) */
.foldbtn { all: unset; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.foldbtn::before { content: "▾"; width: 1em; font-size: .95em; color: var(--muted); }
.folded .foldbtn::before { content: "▸"; }
.foldbtn:hover { color: var(--sel); }
.foldbtn:focus-visible { outline: 2px solid var(--sel); outline-offset: 2px; border-radius: 4px; }
.box.folded > :not(h3), .panel.folded > :not(.phead) { display: none; }
.box.folded { align-self: start; } /* aberto: os boxes da linha ficam da mesma altura; fechado: só o título */
.panel.folded .phead > :not(h3) { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.other .row .nm { white-space: normal; line-height: 1.2; } /* nomes longos (ex.: Spezialbewegungen) quebram em vez de cortar */
/* rodapé: aviso legal (traduzido) e crédito (igual nos 3 idiomas) */
footer.credit { text-align: center; font-size: 12px; color: var(--muted); padding: 10px 16px 22px; border-top: 1px solid var(--line); }
footer.credit p { margin: 0 auto 6px; }
footer.credit .legal { max-width: 760px; font-size: 11.5px; line-height: 1.5; margin-bottom: 10px; }
footer.credit .heart { width: 12px; height: 12px; vertical-align: -1px; fill: #e5484d; }
