/* ZvZ Battleboard — tema guerra medieval: ferro, pergaminho, ouro e sangue */
:root {
  --ink: #120d09;
  --night: #17110c;
  --wood: #2a1d13;
  --wood-2: #3a2919;
  --iron: #4a4038;
  --parchment: #ecdcb4;
  --parchment-2: #e0cb98;
  --parchment-ink: #2b1c10;
  --parchment-muted: #6d5638;
  --gold: #d4a843;
  --gold-2: #f3d98a;
  --gold-dark: #8c6a23;
  --blood: #8e1b1b;
  --blood-2: #b52a24;
  --moss: #3f6b34;
  --moss-2: #5f9450;
  --text: #ecdcb4;
  --muted: #b39f7a;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55);
  --f-title: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --f-deco: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --f-body: 'IM Fell English', Garamond, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(181, 42, 36, .28), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(212, 168, 67, .10), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #1c140d, #0e0a07);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff1c4; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.muted { color: var(--muted); }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 24px;
  background: linear-gradient(180deg, #2c1e13, #1a120c);
  border-bottom: 3px solid var(--gold-dark);
  box-shadow: 0 2px 0 #000, 0 8px 24px rgba(0,0,0,.6);
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--blood) 0 18px, transparent 18px 22px);
  opacity: .55;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--parchment); }
.brand:hover { text-decoration: none; color: #fff; }
.brand-shield { width: 40px; height: 40px; flex: none; }
.brand-shield path { fill: var(--blood); stroke: var(--gold); stroke-width: 4; }
.brand-shield .x { fill: none; stroke: var(--parchment); stroke-width: 5; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.brand-title { font-family: var(--f-deco); font-size: 20px; letter-spacing: .04em; color: var(--gold-2); text-shadow: 0 2px 0 #000; }
.brand-sub { font-family: var(--f-title); font-size: 11px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  font-family: var(--f-title); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--parchment); padding: 8px 12px; border: 1px solid transparent; border-radius: var(--radius);
}
.nav a:hover { text-decoration: none; border-color: var(--gold-dark); background: rgba(212,168,67,.08); }
.nav a.active { color: var(--ink); background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: #000; box-shadow: inset 0 -2px 0 var(--gold-dark); }

.lang { display: flex; gap: 2px; border: 1px solid var(--gold-dark); border-radius: var(--radius); padding: 2px; background: rgba(0,0,0,.3); }
.lang button {
  font-family: var(--f-title); font-weight: 700; font-size: 12px; letter-spacing: .08em;
  background: none; border: 0; color: var(--muted); padding: 6px 9px; cursor: pointer; border-radius: 2px;
}
.lang button:hover { color: var(--parchment); }
.lang button.active { background: var(--blood); color: var(--gold-2); }
.menu-toggle { display: none; margin-left: auto; background: none; color: var(--gold-2); border: 1px solid var(--gold-dark); font-size: 20px; padding: 4px 12px; border-radius: var(--radius); cursor: pointer; }

/* ---------- aviso de falha na coleta ---------- */
.sync-alert {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 1240px; margin: 20px auto 0; padding: 12px 18px; width: calc(100% - 48px);
  border-radius: var(--radius); font-size: 16px; line-height: 1.4;
  color: #fde9d9; background: linear-gradient(180deg, #7a1515, #5a0f0f); border: 1px solid #000;
  box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 0 0 1px rgba(243,217,138,.35);
}
.sync-alert.warn { color: var(--parchment-ink); background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.sync-alert[hidden] { display: none; }
.sync-alert-icon { font-size: 20px; line-height: 1; }
@media (max-width: 860px) { .sync-alert { width: calc(100% - 32px); } }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 24px 48px; flex: 1; }

.hero {
  position: relative; overflow: hidden;
  padding: 56px 40px 48px; margin-bottom: 32px; text-align: center;
  border: 2px solid var(--gold-dark); border-radius: var(--radius);
  background:
    radial-gradient(ellipse at center, rgba(142,27,27,.35), transparent 70%),
    linear-gradient(180deg, rgba(42,29,19,.92), rgba(18,13,9,.95));
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(0,0,0,.35), inset 0 0 0 7px rgba(212,168,67,.35);
}
.hero-swords { width: 96px; height: 96px; margin: 0 auto 8px; display: block; }
.hero-swords .blade { fill: #cfc7b8; stroke: #2a2420; stroke-width: 1.5; }
.hero-swords .guard { fill: var(--gold); stroke: #2a2420; stroke-width: 1.5; }
.hero-swords .grip { fill: var(--blood); stroke: #2a2420; stroke-width: 1.5; }
.kicker { font-family: var(--f-title); letter-spacing: .4em; text-transform: uppercase; font-size: 12px; color: var(--gold); margin: 0 0 6px; }
.hero h1 { font-family: var(--f-deco); font-size: clamp(30px, 5vw, 54px); line-height: 1.1; margin: 0 0 14px; color: var(--parchment); text-shadow: 0 3px 0 #000, 0 0 30px rgba(181,42,36,.6); }
.hero p { max-width: 640px; margin: 0 auto 24px; color: var(--muted); font-size: 19px; font-style: italic; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--f-title); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid #000;
  color: var(--gold-2); background: linear-gradient(180deg, var(--blood-2), var(--blood));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 0 #3d0a0a;
}
.btn:hover { text-decoration: none; color: #fff; filter: brightness(1.1); }
.btn.ghost { background: transparent; border-color: var(--gold-dark); color: var(--parchment); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: default; filter: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.stat { padding: 12px; border-top: 1px solid rgba(212,168,67,.35); }
.stat-label { font-family: var(--f-title); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--f-title); font-weight: 700; font-size: 22px; color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* ---------- títulos com ornamento ---------- */
.section-title {
  display: flex; align-items: center; gap: 14px; margin: 36px 0 16px;
  font-family: var(--f-title); font-weight: 900; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2);
}
.section-title::before, .section-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-dark)); }
.section-title::after { background: linear-gradient(90deg, var(--gold-dark), transparent); }
.section-title .orn { color: var(--blood-2); font-size: 16px; }
.section-title a { font-size: 12px; letter-spacing: .15em; font-weight: 700; }
.page-title { font-family: var(--f-deco); font-size: clamp(26px, 4vw, 40px); color: var(--parchment); margin: 0 0 6px; text-shadow: 0 2px 0 #000; }
.page-sub { color: var(--muted); font-style: italic; margin: 0 0 20px; }

/* ---------- pergaminho ---------- */
.scroll {
  position: relative;
  color: var(--parchment-ink);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(120,80,30,.22), transparent 55%),
    linear-gradient(180deg, var(--parchment), var(--parchment-2));
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 40px rgba(110, 70, 20, .35);
  border: 1px solid #5a4024;
}
.scroll a { color: var(--blood); font-weight: 700; }
.scroll a:hover { color: #5c0d0d; }
.scroll .muted { color: var(--parchment-muted); }

/* ---------- filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-family: var(--f-title); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field select, .field input {
  font-family: var(--f-body); font-size: 16px; color: var(--parchment);
  background: #1d150e; border: 1px solid var(--gold-dark); border-radius: var(--radius); padding: 8px 10px; min-width: 150px;
}
.field input { min-width: 220px; }
#f-weapon { min-width: 260px; max-width: 340px; }
.seg { display: inline-flex; border: 1px solid var(--gold-dark); border-radius: var(--radius); overflow: hidden; }
.seg button { font-family: var(--f-title); font-size: 12px; font-weight: 700; letter-spacing: .08em; background: #1d150e; color: var(--muted); border: 0; padding: 9px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--gold-dark); }
.seg button.active { background: var(--blood); color: var(--gold-2); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th {
  font-family: var(--f-title); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-align: left; padding: 12px 10px; color: var(--parchment-muted); border-bottom: 2px solid rgba(43,28,16,.5); white-space: nowrap;
}
td { padding: 9px 10px; border-bottom: 1px dashed rgba(43,28,16,.25); vertical-align: middle; }
tbody tr:hover { background: rgba(142,27,27,.07); }
.num { text-align: right; white-space: nowrap; }
td.num { font-family: var(--f-title); font-size: 15px; }
th.num { text-align: right; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--blood); }
th.sortable::after { content: '⇅'; margin-left: 5px; font-size: 10px; opacity: .35; }
th.sortable[data-dir='asc']::after { content: '▲'; opacity: 1; color: var(--blood); }
th.sortable[data-dir='desc']::after { content: '▼'; opacity: 1; color: var(--blood); }
th.sortable[data-dir] { color: var(--parchment-ink); }
.rank { font-family: var(--f-title); font-weight: 900; width: 44px; color: var(--parchment-muted); }
.rank-1, .rank-2, .rank-3 { font-size: 0; }
.rank-1::before, .rank-2::before, .rank-3::before {
  content: attr(data-r); display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: 13px;
  clip-path: polygon(50% 0, 100% 18%, 100% 60%, 50% 100%, 0 60%, 0 18%);
}
.rank-1::before { background: linear-gradient(180deg, #f7dd85, #b6871f); color: #3d2a05; }
.rank-2::before { background: linear-gradient(180deg, #e6e4df, #8d8a83); color: #2b2a27; }
.rank-3::before { background: linear-gradient(180deg, #e2a46a, #8d5222); color: #2f1806; }
.kills { color: var(--moss); font-weight: 700; }
.deaths { color: var(--blood); font-weight: 700; }
.fame { font-weight: 700; }
.sub { display: block; font-size: 13px; color: var(--parchment-muted); }
.pill { display: inline-block; font-family: var(--f-title); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 2px; background: rgba(43,28,16,.12); border: 1px solid rgba(43,28,16,.25); }

.items { display: flex; gap: 2px; align-items: center; }
.item { width: 44px; height: 44px; flex: none; image-rendering: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.item.lg { width: 64px; height: 64px; }
.item.sm { width: 34px; height: 34px; }
table .items .item:not(.sm) { width: 40px; height: 40px; }
.tooltip {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; opacity: 0;
  max-width: 280px; padding: 6px 10px; border-radius: var(--radius);
  font-family: var(--f-title); font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--gold-2);
  background: linear-gradient(180deg, #2c1e13, #17110c); border: 1px solid var(--gold-dark);
  box-shadow: 0 6px 18px rgba(0,0,0,.6); transition: opacity .12s;
}
.tooltip.show { opacity: 1; }
.only-weapon { margin-left: 6px; font-style: italic; }
.item-empty { width: 34px; height: 34px; display: inline-block; border: 1px dashed rgba(43,28,16,.3); border-radius: 3px; }

/* ---------- cards de batalha ---------- */
.battle-list { display: grid; gap: 12px; }
.battle-card {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center;
  padding: 14px 18px; color: var(--parchment-ink);
}
.battle-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,.65), inset 0 0 40px rgba(110,70,20,.35); }
.battle-when { font-family: var(--f-title); font-weight: 700; font-size: 15px; color: var(--parchment-ink); }
.battle-when .sub { font-family: var(--f-body); font-weight: 400; }
.sides { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.side { font-family: var(--f-title); font-weight: 700; font-size: 15px; color: var(--parchment-ink); }
.side small { font-family: var(--f-body); font-weight: 400; color: var(--parchment-muted); }
.matches { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.match { font-size: 14px; padding: 2px 8px; border-radius: 2px; background: rgba(142,27,27,.1); border: 1px solid rgba(142,27,27,.35); color: var(--parchment-ink); }
.match b { font-family: var(--f-title); }
.vs { font-family: var(--f-deco); color: var(--blood); font-size: 13px; }
.battle-nums { display: flex; gap: 18px; text-align: right; }
.battle-nums div { display: flex; flex-direction: column; }
.battle-nums b { font-family: var(--f-title); font-size: 17px; color: var(--parchment-ink); }
.battle-nums span { font-size: 11px; font-family: var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--parchment-muted); }

/* ---------- seleção / análise combinada ---------- */
.battle-row { display: flex; align-items: stretch; gap: 10px; }
.battle-row .battle-card { flex: 1; min-width: 0; }
.pick-box { display: grid; place-items: center; width: 44px; flex: none; cursor: pointer; border: 1px solid var(--gold-dark); border-radius: var(--radius); background: rgba(0,0,0,.3); }
.pick-box:hover { background: rgba(212,168,67,.12); }
.pick { width: 20px; height: 20px; accent-color: var(--blood-2); cursor: pointer; }
.pick-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; font-style: italic; }
.merge-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: var(--radius); border: 2px solid var(--gold-dark);
  background: linear-gradient(180deg, #2c1e13, #17110c); box-shadow: 0 10px 30px rgba(0,0,0,.7);
}
.merge-bar[hidden] { display: none; }
.merge-count { font-family: var(--f-title); font-weight: 700; color: var(--gold-2); letter-spacing: .06em; }
.merge-hint { color: var(--muted); font-style: italic; font-size: 15px; }
body.has-merge-bar .footer { padding-bottom: 90px; }
.merged-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; }
.merged-list .comp-sub { margin: 0 6px 0 0; color: var(--muted); }
.merged-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: var(--radius); border: 1px solid var(--gold-dark); background: rgba(0,0,0,.35); font-size: 15px; }
.merged-chip b { font-family: var(--f-title); color: var(--ink); background: var(--gold); border-radius: 50%; width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 12px; }
.chip-x { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chip-x:hover { color: var(--blood-2); }

/* ---------- batalha de facção ---------- */
.faction-tag { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 2px; font-family: var(--f-title); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #4a5f7a; font-style: normal; }
.page-sub .faction-tag { margin: 0 0 0 8px; vertical-align: middle; }

/* ---------- grid home ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mini { padding: 6px 4px; }
.mini td { padding: 7px 10px; }

/* ---------- detalhe ---------- */
.detail-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.kpis { display: flex; flex-wrap: wrap; gap: 10px; }
.kpi { min-width: 120px; padding: 10px 14px; border: 1px solid var(--gold-dark); border-radius: var(--radius); background: rgba(0,0,0,.35); }
.kpi b { display: block; font-family: var(--f-title); font-size: 20px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.kpi span { font-family: var(--f-title); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bar { height: 6px; background: rgba(43,28,16,.15); border-radius: 3px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blood), var(--blood-2)); }
.bar.heal i { background: linear-gradient(90deg, var(--moss), var(--moss-2)); }

.tabs { display: flex; gap: 6px; margin-bottom: -1px; flex-wrap: wrap; }
.tabs button {
  font-family: var(--f-title); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 16px; cursor: pointer; border: 1px solid var(--gold-dark); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: #1d150e; color: var(--muted);
}
.tabs button.active { background: var(--parchment); color: var(--parchment-ink); }

/* ---------- composição ---------- */
.comp { margin: 8px 10px 14px; padding: 14px 16px; border: 1px solid rgba(43,28,16,.35); border-radius: var(--radius); background: rgba(255,255,255,.22); }
.comp-title { margin: 0 0 10px; font-family: var(--f-title); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--blood); }
.comp .kpi { background: rgba(43,28,16,.88); }
.comp-sub { margin: 16px 0 8px; font-family: var(--f-title); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.role { padding: 8px 10px; border-radius: var(--radius); background: rgba(43,28,16,.07); border: 1px solid rgba(43,28,16,.18); }
.role-head { display: flex; align-items: center; gap: 6px; font-family: var(--f-title); font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.role-head b { margin-left: auto; font-size: 20px; }
.role-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; background: var(--role); }
.role .bar i { background: var(--role); }
.role-tank { --role: #4a5f7a; } .role-healer { --role: #3f7d3a; } .role-support { --role: #7a4f8c; }
.role-melee { --role: #a8382e; } .role-ranged { --role: #b37a1f; } .role-unknown { --role: #7d7066; }
.weapon-groups { display: grid; gap: 8px; }
.weapon-group { display: grid; grid-template-columns: 190px 1fr; gap: 10px; align-items: center; padding-top: 8px; border-top: 1px dashed rgba(43,28,16,.2); }
.weapon-group:first-child { border-top: 0; padding-top: 0; }
.weapon-group-label { display: flex; align-items: center; gap: 6px; font-family: var(--f-title); font-weight: 700; font-size: 13px; }
@media (max-width: 700px) { .weapon-group { grid-template-columns: 1fr; } }
.weapon-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 3px; background: rgba(43,28,16,.07); border: 1px solid rgba(43,28,16,.2); border-left: 3px solid var(--role); font-family: var(--f-title); font-size: 14px; }

/* ---------- builds do jogador ---------- */
.player-builds { padding: 6px 16px 16px; }
.show-more { margin: 12px auto 0; display: flex; color: var(--parchment-ink); border-color: rgba(43,28,16,.4); }
.show-more:hover { color: var(--blood); }
.player-builds .comp-sub:first-child { margin-top: 10px; }
.role-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-title); font-weight: 700; font-size: 13px; white-space: nowrap; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.slot-card { padding: 8px 10px; border-radius: var(--radius); background: rgba(43,28,16,.07); border: 1px solid rgba(43,28,16,.18); }
.slot-card h4 { margin: 0 0 6px; font-family: var(--f-title); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--parchment-muted); }
.slot-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; font-size: 15px; line-height: 1.2; padding: 2px 0; }
.slot-item b { font-family: var(--f-title); }

/* ---------- regear ---------- */
.regear { padding: 12px 14px 16px; }
.regear-note { margin: 0 0 12px; font-style: italic; color: var(--parchment-muted); font-size: 15px; }
.regear .kpi { background: rgba(43,28,16,.88); }
.regear .seg button { background: rgba(43,28,16,.88); }
.regear .seg button.active { background: var(--blood); }
.regear-row { cursor: pointer; }
.regear-row[aria-expanded='true'] { background: rgba(142,27,27,.1); }
.regear-row[aria-expanded='true'] .expander { display: inline-block; transform: rotate(90deg); }
.expander { color: var(--blood); transition: transform .15s; }
.regear-detail > td { padding: 0 0 10px 44px; background: rgba(43,28,16,.05); }
.regear-deaths table td { padding: 6px 10px; }
.priced.no-price .item { opacity: .35; filter: grayscale(1); }
.warn-notice { color: var(--parchment-ink); background: rgba(212,168,67,.3); border-left-color: var(--gold-dark); }

/* ---------- registro de abates ---------- */
.kill-tools { display: flex; align-items: center; gap: 12px; padding: 12px 10px 4px; flex-wrap: wrap; }
.kill-filter { flex: 0 1 380px; font-family: var(--f-body); font-size: 16px; color: var(--parchment-ink); background: rgba(255,255,255,.35); border: 1px solid rgba(43,28,16,.4); border-radius: var(--radius); padding: 7px 10px; }
.player-filter { font-family: var(--f-body); font-size: 16px; color: var(--parchment-ink); background: rgba(255,255,255,.35); border: 1px solid rgba(43,28,16,.4); border-radius: var(--radius); padding: 7px 10px; max-width: 100%; min-width: 260px; }
.fighter { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.fighter.killer a { color: var(--moss); }
.fighter.victim a { color: var(--blood); }
.kill-arrow { color: var(--blood); font-size: 18px; text-align: center; width: 28px; padding: 0; }
.kill-time { font-family: var(--f-title); font-weight: 700; white-space: nowrap; }

/* ---------- paginação / estados ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px 0; flex-wrap: wrap; }
.state { text-align: center; padding: 48px 16px; font-style: italic; color: var(--muted); }
.state.scroll { color: var(--parchment-muted); }
.spinner { width: 34px; height: 34px; margin: 0 auto 12px; border: 3px solid rgba(212,168,67,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(212,168,67,.08); font-style: italic; color: var(--muted); }

.footer { padding: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.footer p { margin: 4px 0; }
.footer .credit { font-family: var(--f-title); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--parchment); }
.footer .credit b { color: var(--gold-2); }
.footer-rule { height: 2px; max-width: 420px; margin: 0 auto 16px; background: linear-gradient(90deg, transparent, var(--gold-dark), transparent); }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .grid-2 { grid-template-columns: 1fr; }
  .battle-card { grid-template-columns: 1fr; gap: 10px; }
  .battle-nums { justify-content: flex-start; text-align: left; }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .menu-toggle { display: block; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; }
  .nav.open { display: flex; }
  .lang { order: 2; }
  .container { padding: 24px 16px 40px; }
  .hero { padding: 36px 18px 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .field, .field select, .field input { min-width: 0; width: 100%; }
  .filters > * { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
