/* =============================================================================
   CODMETA BR — tema único (Call of Duty / HUD tático)
   Vanilla CSS, zero libs. Mobile-first.
   ============================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* superfícies */
  --bg:        #0a0d10;
  --bg-1:      #0e1216;
  --bg-2:      #12161b;
  --bg-3:      #171d24;
  --bg-4:      #1d252e;
  --line:      #222b34;
  --line-2:    #2f3a45;

  /* texto */
  --txt:       #eef3f8;
  --txt-2:     #aebbc8;
  --txt-3:     #7d8b99;

  /* acentos */
  --accent:    #ff9c1a;   /* laranja COD */
  --accent-2:  #ffbe5c;
  --accent-dk: #8a4f00;
  --tac:       #7fbf3f;   /* verde tático discreto */
  --tac-dk:    #35521c;
  --green:     #4fd18b;
  --red:       #ff5c5c;
  --yellow:    #ffd23f;
  --blue:      #4aa8ff;
  --amber:     #ffb020;

  /* tiers */
  --t-meta:    #ffb020;
  --t-a:       #4fd18b;
  --t-b:       #4aa8ff;
  --t-c:       #9aa7b4;
  --t-d:       #66727e;
  --tier:      var(--t-c);

  /* tipografia */
  --f-head: "Rajdhani", "Barlow Condensed", "Oswald", "Segoe UI", system-ui, sans-serif;
  --f-body: "Barlow", "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  /* métrica */
  --r:   4px;
  --r-2: 8px;
  --gut: 16px;
  --maxw: 1280px;
  --hdr-h: 58px;

  --shadow: 0 12px 32px rgba(0, 0, 0, .55);
  --grid-line: rgba(255, 255, 255, .035);
}

[data-tier="Meta"] { --tier: var(--t-meta); }
[data-tier="A"]    { --tier: var(--t-a); }
[data-tier="B"]    { --tier: var(--t-b); }
[data-tier="C"]    { --tier: var(--t-c); }
[data-tier="D"]    { --tier: var(--t-d); }

/* ---------- 2. Reset / base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -180px, rgba(255, 156, 26, .10), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 100% 42px,
    var(--bg);
  color: var(--txt);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.kicker {
  font-family: var(--f-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--txt-3);
}
.mono { font-family: var(--f-mono); }
.num { font-family: var(--f-head); font-variant-numeric: tabular-nums; }

/* cantoneiras HUD */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 13px; height: 13px;
  pointer-events: none; opacity: .6; border-color: var(--accent); border-style: solid;
  transition: opacity .18s ease;
}
.hud::before { inset: -1px auto auto -1px; border-width: 2px 0 0 2px; }
.hud::after  { inset: auto -1px -1px auto; border-width: 0 2px 2px 0; }
.hud:hover::before, .hud:hover::after { opacity: 1; }

/* ---------- 3. Header / nav ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(10, 13, 16, .97), rgba(10, 13, 16, .90));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header::after {
  content: ""; display: block; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dk) 22%, transparent 42%, transparent 60%, var(--tac-dk) 88%, transparent 100%);
  opacity: .8;
}
.hdr {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--hdr-h); flex-wrap: wrap;
}
.logo {
  font-family: var(--f-head); font-weight: 700; font-size: 22px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--txt);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.logo:hover { color: var(--txt); }
.logo b {
  color: #0a0d10; background: var(--accent); font-weight: 700;
  padding: 0 6px; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.logo i {
  font-style: normal; width: 3px; height: 20px; background: var(--tac); opacity: .7;
  display: inline-block;
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--f-head); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--txt-2); padding: 7px 11px; border: 1px solid transparent; border-radius: var(--r);
}
.nav a:hover { color: var(--txt); background: var(--bg-3); }
.nav a[aria-current="page"] { color: var(--accent); border-color: rgba(255, 156, 26, .35); background: rgba(255, 156, 26, .07); }

.stamp {
  font-family: var(--f-head); font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 5px 9px; background: var(--bg-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.stamp .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--tac);
  box-shadow: 0 0 8px var(--tac); flex: none;
}
.stamp b { color: var(--txt); font-weight: 700; }
@media (max-width: 720px) { .stamp { order: 3; width: 100%; justify-content: flex-start; margin-bottom: 8px; } }

/* banner seed */
.seed-banner {
  background: linear-gradient(90deg, rgba(255, 210, 63, .13), rgba(255, 156, 26, .05));
  border-bottom: 1px solid rgba(255, 210, 63, .28);
  color: #ffe9ad; font-size: 13px;
}
.seed-banner .wrap { padding-block: 8px; display: flex; gap: 9px; align-items: center; }
.seed-banner[hidden] { display: none; }

/* ---------- 4. Componentes de controle ----------------------------------- */
.tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.tab {
  font-family: var(--f-head); font-weight: 700; font-size: 14px;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--txt-3); background: transparent; border: 0;
  border-bottom: 2px solid transparent; padding: 11px 16px; margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.tab:hover { color: var(--txt); background: rgba(255, 255, 255, .03); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); background: rgba(255, 156, 26, .07); }

.subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.subtab {
  font-family: var(--f-head); font-weight: 600; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--txt-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; transition: .15s ease;
}
.subtab:hover { border-color: var(--line-2); color: var(--txt); }
.subtab[aria-selected="true"] {
  color: #0a0d10; background: var(--tac); border-color: var(--tac); font-weight: 700;
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-block;
  font-family: var(--f-head); font-weight: 600; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--txt-2);
  border-radius: var(--r); padding: 5px 10px; transition: .15s ease;
}
button.chip:hover { border-color: var(--line-2); color: var(--txt); }
.chip.is-on { background: rgba(255, 156, 26, .14); border-color: rgba(255, 156, 26, .55); color: var(--accent-2); }
.chip-cat { color: var(--txt-2); border-color: var(--line-2); }
.chip-game { color: var(--tac); border-color: rgba(127, 191, 63, .4); background: rgba(127, 191, 63, .08); }
.chip-tier {
  color: var(--tier); border-color: color-mix(in srgb, var(--tier) 45%, transparent);
  background: color-mix(in srgb, var(--tier) 12%, transparent);
}
.chip-warn { color: var(--amber); border-color: rgba(255, 176, 32, .5); background: rgba(255, 176, 32, .1); }

.badge {
  font-family: var(--f-head); font-weight: 700; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 2px; border: 1px solid; display: inline-block;
  color: var(--txt-2); border-color: var(--line-2);
}
.badge[data-b="Buff"]   { color: #0a0d10; background: var(--green);  border-color: var(--green); }
.badge[data-b="Nerf"]   { color: #150404; background: var(--red);    border-color: var(--red); }
.badge[data-b="New"]    { color: #150f00; background: var(--yellow); border-color: var(--yellow); }
.badge[data-b="Update"] { color: var(--blue); background: rgba(74, 168, 255, .12); border-color: rgba(74, 168, 255, .5); }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0 10px; min-width: 0; flex: 1 1 220px; max-width: 340px;
}
.search:focus-within { border-color: rgba(255, 156, 26, .55); }
.search svg { width: 15px; height: 15px; fill: var(--txt-3); flex: none; }
.search input {
  border: 0; background: transparent; outline: none; padding: 9px 0;
  width: 100%; min-width: 0; font-size: 14px;
}
.search input::placeholder { color: var(--txt-3); }

.btn {
  font-family: var(--f-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--txt);
  border-radius: var(--r); padding: 8px 14px; transition: .15s ease;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #0a0d10; }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #0a0d10; }
.btn-sm { padding: 5px 9px; font-size: 11px; }
.btn-icon { padding: 5px 8px; line-height: 1; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 42px; height: 22px; border-radius: 999px; flex: none;
  background: var(--bg-4); border: 1px solid var(--line-2); position: relative;
  transition: .18s ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--txt-3); transition: .18s ease;
}
.switch input:checked + .track { background: rgba(255, 156, 26, .25); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--accent); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch .lbl {
  font-family: var(--f-head); font-weight: 600; font-size: 12px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--txt-2);
}
.switch input:checked ~ .lbl { color: var(--accent-2); }

/* range */
.range { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; height: 26px; }
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--bg-4) var(--fill, 50%));
  border: 1px solid var(--line-2);
}
.range::-moz-range-track { height: 6px; border-radius: 2px; background: var(--bg-4); border: 1px solid var(--line-2); }
.range::-moz-range-progress { height: 6px; border-radius: 2px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; margin-top: -7px;
  width: 18px; height: 18px; background: var(--accent); border: 2px solid #0a0d10;
  border-radius: 3px; box-shadow: 0 0 10px rgba(255, 156, 26, .55); cursor: grab;
}
.range::-moz-range-thumb {
  width: 16px; height: 16px; background: var(--accent); border: 2px solid #0a0d10;
  border-radius: 3px; box-shadow: 0 0 10px rgba(255, 156, 26, .55); cursor: grab;
}

/* ---------- 5. Silhuetas -------------------------------------------------- */
/* a cor vem sempre do container (currentColor), nunca do próprio <svg> */
.wsvg { display: block; width: 100%; height: auto; fill: currentColor; }
.wcard:hover .wcard-fig { color: var(--accent); }

/* ---------- 6. Estados ---------------------------------------------------- */
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--amber);
  background: rgba(255, 176, 32, .07); color: #ffe0a8;
  padding: 12px 14px; border-radius: var(--r); font-size: 14px;
}
.errorbox {
  border: 1px solid rgba(255, 92, 92, .4); background: rgba(255, 92, 92, .07);
  border-radius: var(--r-2); padding: 28px 22px; text-align: center; margin: 32px 0;
}
.errorbox h2 { font-size: 22px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.errorbox p { color: var(--txt-2); margin: 0 0 16px; }
.empty {
  text-align: center; color: var(--txt-3); padding: 46px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-2);
}
.skeleton {
  border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-2);
  height: 118px; position: relative; overflow: hidden;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  animation: sweep 1.25s infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 7. Rankings --------------------------------------------------- */
.page-head { padding: 26px 0 16px; }
.page-head h1 {
  font-size: clamp(28px, 6vw, 42px); text-transform: uppercase; letter-spacing: .04em;
}
.page-head h1 span { color: var(--accent); }
.page-head p { color: var(--txt-2); margin: 8px 0 0; max-width: 62ch; font-size: 14.5px; }

.toolbar {
  position: sticky; top: var(--hdr-h); z-index: 40;
  background: linear-gradient(180deg, rgba(10, 13, 16, .98), rgba(10, 13, 16, .93));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 0; }
.toolbar-row + .toolbar-row { border-top: 1px dashed var(--line); }
.results-count {
  font-family: var(--f-head); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--txt-3); margin-left: auto; white-space: nowrap;
}

.tier-block { margin-bottom: 26px; }
.tier-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
  border-left: 4px solid var(--tier); padding: 6px 0 6px 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 13%, transparent), transparent 55%);
}
.tier-head h2 {
  font-size: 20px; letter-spacing: .18em; text-transform: uppercase; color: var(--tier);
}
.tier-head .tier-sub { font-size: 12px; color: var(--txt-3); letter-spacing: .1em; text-transform: uppercase; font-family: var(--f-head); }
.tier-head .tier-count {
  margin-left: auto; font-family: var(--f-head); font-size: 12px; letter-spacing: .12em;
  color: var(--txt-3); text-transform: uppercase;
}

.cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.wcard {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-left: 3px solid var(--tier);
  border-radius: var(--r); padding: 12px 14px; color: var(--txt);
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.wcard:hover {
  transform: translateY(-2px); border-color: var(--line-2); border-left-color: var(--tier);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  color: var(--txt);
}
.wcard-fig { color: var(--txt-3); transition: color .14s ease; }
.wcard-body { min-width: 0; }
.wcard-name {
  display: block;
  font-family: var(--f-head); font-weight: 700; font-size: 19px; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wcard-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.wcard-rank {
  font-family: var(--f-head); font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tier);
}
.wcard-stats {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 7px;
  font-size: 11.5px; color: var(--txt-3); font-family: var(--f-head);
  letter-spacing: .08em; text-transform: uppercase;
}
.wcard-stats b { color: var(--txt-2); font-weight: 700; }
.wcard-idx { text-align: right; }
.wcard-idx .v {
  display: block;
  font-family: var(--f-head); font-weight: 700; font-size: 34px; line-height: 1;
  color: var(--tier); font-variant-numeric: tabular-nums;
}
.wcard-idx .k {
  display: block;
  font-size: 9.5px; letter-spacing: .2em; color: var(--txt-3); text-transform: uppercase; font-family: var(--f-head);
}

/* ---------- 8. Página da arma: hero e nav de âncoras ---------------------- */
.hero {
  display: grid; gap: 18px; padding: 22px 0 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); align-items: center; } }
.hero-main { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-fig {
  color: var(--accent); flex: none; width: min(240px, 60vw);
  filter: drop-shadow(0 6px 18px rgba(255, 156, 26, .18));
}
.hero-txt { min-width: 0; }
.hero-txt h1 {
  font-size: clamp(30px, 7vw, 50px); text-transform: uppercase; letter-spacing: .03em;
}
.hero-line { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 9px; }
.hero-pick { font-size: 13px; color: var(--txt-2); margin-top: 8px; }
.hero-pick b { color: var(--txt); }

.modecards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); }
.modecard {
  border: 1px solid var(--line); border-top: 2px solid var(--tier);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 8%, var(--bg-2)), var(--bg-1));
  border-radius: var(--r); padding: 10px 12px;
}
.modecard .m {
  display: block;
  font-family: var(--f-head); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-3);
}
.modecard .v {
  display: block;
  font-family: var(--f-head); font-weight: 700; font-size: 30px; line-height: 1.05;
  color: var(--tier); font-variant-numeric: tabular-nums;
}
.modecard .b { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }

.anchornav {
  position: sticky; top: var(--hdr-h); z-index: 45;
  background: linear-gradient(180deg, rgba(10, 13, 16, .98), rgba(10, 13, 16, .92));
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.anchornav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.anchornav a {
  font-family: var(--f-head); font-weight: 600; font-size: 12px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--txt-3); padding: 11px 13px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.anchornav a:hover { color: var(--txt); }
.anchornav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.section { scroll-margin-top: calc(var(--hdr-h) + 52px); margin-bottom: 40px; }
.section-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 16px;
}
.section-head h2 {
  font-size: 22px; letter-spacing: .16em; text-transform: uppercase;
}
.section-head h2::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px;
  background: var(--accent); transform: rotate(45deg);
}
.section-head .hint { color: var(--txt-3); font-size: 13px; }

/* ---------- 9. Builds ----------------------------------------------------- */
.build-shell {
  border: 1px solid var(--line-2); border-radius: var(--r-2);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 14px; box-shadow: var(--shadow);
}
.build-controls { display: grid; gap: 14px; margin-bottom: 16px; }
.ctl-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.levelbox {
  border: 1px solid var(--line); background: var(--bg-1); border-radius: var(--r);
  padding: 11px 14px 8px; flex: 1 1 320px; min-width: 240px;
}
.levelbox-top { display: flex; align-items: baseline; gap: 10px; }
.levelbox-top .lv {
  font-family: var(--f-head); font-weight: 700; font-size: 21px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}
.levelbox-top .max { font-family: var(--f-head); font-size: 11px; letter-spacing: .14em; color: var(--txt-3); text-transform: uppercase; margin-left: auto; }
.ticks { position: relative; height: 12px; margin-top: -2px; }
.ticks i {
  position: absolute; top: 0; width: 2px; height: 6px; background: var(--tac); opacity: .65;
  transform: translateX(-1px);
}
.ticks i::after {
  content: attr(data-l); position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-head); font-size: 9px; color: var(--txt-3);
}
.toggles { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

.build-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .build-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }

.atts { display: grid; gap: 9px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .atts { grid-template-columns: repeat(2, 1fr); } }
.att {
  border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--r);
  padding: 11px 12px; position: relative;
}
.att-top { display: flex; align-items: flex-start; gap: 8px; }
.att-name {
  font-family: var(--f-head); font-weight: 700; font-size: 15.5px; letter-spacing: .05em;
  text-transform: uppercase; line-height: 1.15;
}
.att-alt { margin-left: auto; flex: none; }
.att-line { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 7px; }
.att-deltas { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 3px; }
.att-deltas li { font-size: 12.5px; display: flex; gap: 6px; align-items: baseline; }
.att-deltas li::before { content: "▸"; color: var(--txt-3); font-size: 9px; }
.att-note { margin: 8px 0 0; font-size: 12px; color: var(--txt-3); font-style: italic; }
.att-empty { color: var(--txt-3); font-size: 13px; }

.delta-up   { color: var(--green); }
.delta-down { color: var(--red); }
.delta-flat { color: var(--txt-2); }

/* popover de alternativas */
.popover {
  position: absolute; z-index: 30; right: 8px; top: 40px; width: min(300px, calc(100% - 16px));
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 11px 12px;
}
.popover h4 {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.popover .close { position: absolute; top: 6px; right: 7px; background: none; border: 0; color: var(--txt-3); font-size: 16px; line-height: 1; }
.popover .close:hover { color: var(--txt); }
.popover ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.popover li { border-top: 1px solid var(--line); padding-top: 8px; }
.popover li:first-child { border-top: 0; padding-top: 0; }
.popover .an { font-family: var(--f-head); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; }
.popover .ad { font-size: 11.5px; display: block; }

/* painel key stats */
.aside-stack { display: grid; gap: 12px; }
.panel {
  border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--r); padding: 13px;
}
.panel h3 {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--txt-3);
  margin-bottom: 11px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.bigidx { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.bigidx .v {
  font-family: var(--f-head); font-weight: 700; font-size: 52px; line-height: .9;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.bigidx .k { font-family: var(--f-head); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-3); padding-bottom: 5px; line-height: 1.5; }
.panel[data-tier] { border-top: 2px solid var(--tier); }
.panel[data-tier] .bigidx .v { color: var(--tier); }
.prose .panel h3 { margin-top: 0; }

.stat-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline;
  padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.stat-row:last-child { border-bottom: 0; }
.stat-row .n { color: var(--txt-2); }
.stat-row .v { font-family: var(--f-head); font-weight: 700; color: var(--txt); font-variant-numeric: tabular-nums; }
.stat-row .d { font-size: 11.5px; font-family: var(--f-head); font-weight: 600; min-width: 52px; text-align: right; }

.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 78px 1fr 30px; gap: 8px; align-items: center; font-size: 11.5px; }
.bar-row .n { color: var(--txt-2); font-family: var(--f-head); letter-spacing: .08em; text-transform: uppercase; }
.bar-row .t { height: 7px; background: var(--bg-4); border-radius: 2px; overflow: hidden; }
.bar-row .t i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-dk), var(--accent)); }
.bar-row .v { font-family: var(--f-head); font-weight: 700; text-align: right; color: var(--txt); }

.buildcode {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  border: 1px dashed var(--line-2); border-radius: var(--r); padding: 10px 12px; margin-top: 14px;
  background: var(--bg-1);
}
.buildcode .code {
  font-family: var(--f-mono); font-size: 14px; letter-spacing: .06em; color: var(--accent-2);
  word-break: break-all;
}
.buildcode .lbl { font-family: var(--f-head); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-3); }
.copied { color: var(--green); font-size: 12px; font-family: var(--f-head); letter-spacing: .1em; text-transform: uppercase; }

.fb { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.fb .q { font-family: var(--f-head); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-3); }
.fb button.is-on { border-color: var(--tac); color: var(--tac); }
.fb .thanks { font-size: 12px; color: var(--tac); }

/* ---------- 10. Gráfico TTK ---------------------------------------------- */
.chart-card { border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--r-2); padding: 14px; position: relative; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12px; color: var(--txt-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 18px; height: 0; border-top-width: 2px; border-top-style: solid; display: inline-block; }
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 150px;
  background: rgba(10, 13, 16, .96); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 8px 10px; font-size: 12px; box-shadow: var(--shadow); transform: translate(-50%, -108%);
}
.chart-tip b { font-family: var(--f-head); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; color: var(--accent); display: block; margin-bottom: 5px; }
.chart-tip div { display: flex; justify-content: space-between; gap: 12px; }
.chart-tip[hidden] { display: none; }

/* ---------- 11. Tabelas --------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
table.tbl th {
  text-align: left; font-family: var(--f-head); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--txt-3);
  background: var(--bg-3); padding: 9px 12px; border-bottom: 1px solid var(--line-2);
  white-space: nowrap; position: sticky; top: 0;
}
table.tbl th.sortable { cursor: pointer; user-select: none; }
table.tbl th.sortable:hover { color: var(--txt); }
table.tbl th .arrow { color: var(--accent); }
table.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, .014); }
table.tbl tbody tr:hover { background: rgba(255, 156, 26, .05); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl .nm { font-family: var(--f-head); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.eff-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 12.5px; }

/* ---------- 12. Timeline patches ------------------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; padding: 0 0 20px 6px; }
.tl-item::before {
  content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--dotc, var(--txt-3));
}
.tl-item[data-kind="buff"] { --dotc: var(--green); }
.tl-item[data-kind="nerf"] { --dotc: var(--red); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-date { font-family: var(--f-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.tl-item ul { margin: 7px 0 0; padding-left: 18px; color: var(--txt-2); font-size: 13.5px; }
.tl-item li { margin-bottom: 2px; }

/* ---------- 13. FAQ ------------------------------------------------------- */
.faq { display: grid; gap: 8px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2);
  padding: 0 14px;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 12px 0;
  font-family: var(--f-head); font-weight: 600; font-size: 15.5px; letter-spacing: .02em;
  display: flex; gap: 10px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-size: 18px; width: 14px; flex: none; }
.faq details[open] summary::before { content: "–"; }
.faq details > p { margin: 0 0 13px 24px; color: var(--txt-2); font-size: 14px; }

/* ---------- 14. Metodologia (conteúdo de texto) --------------------------- */
.prose { max-width: 74ch; }
.prose h2 {
  font-size: 21px; letter-spacing: .12em; text-transform: uppercase;
  margin: 30px 0 10px; color: var(--txt);
  border-left: 3px solid var(--accent); padding-left: 11px;
}
.prose h3 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; margin: 20px 0 6px; color: var(--accent-2); }
.prose p, .prose li { color: var(--txt-2); font-size: 14.5px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 5px; }
.prose strong { color: var(--txt); }
.formula {
  font-family: var(--f-mono); font-size: 13px; color: var(--accent-2);
  background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent-dk);
  border-radius: var(--r); padding: 11px 13px; overflow-x: auto; margin: 10px 0;
}
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 15. Rodapé ---------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35));
}
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer .f-top { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.site-footer .f-logo { font-family: var(--f-head); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-2); }
.site-footer nav { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.site-footer nav a { font-family: var(--f-head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.site-footer .disclaimer { color: var(--txt-3); font-size: 12.5px; max-width: 78ch; }

/* ---------- 16. Utilidades ------------------------------------------------ */
.stack-8  > * + * { margin-top: 8px; }
.stack-14 > * + * { margin-top: 14px; }
.muted { color: var(--txt-3); }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
