:root {
  --bg: #12131c;
  --bg-2: #181a26;
  --panel: #1c1f2e;
  --panel-2: #232636;
  --line: #31354a;
  --line-strong: #454a66;
  --text: #f4f2ff;
  --muted: #8b90ab;
  --gold: #ffc53d;
  --gold-dim: #b98900;
  --red: #ff5c5c;
  --green: #3ddc84;
  --blue: #4fc3f7;
  --accent: #ffc53d;
  --shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.45);
  --shadow-sm: 3px 3px 0 0 rgba(0, 0, 0, 0.4);
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

::selection { background: var(--gold); color: #111; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 80px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--line);
}

.brand {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}
.brand span { color: var(--gold); }

.topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.nav { display: flex; gap: 4px; align-items: center; }

.nav a, .nav span, .nav button {
  color: var(--muted);
  background: transparent;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.nav a:hover, .nav button:hover { text-decoration: none; color: var(--text); border-color: var(--line); }
.nav a.active, .nav button.active {
  background: var(--panel);
  color: var(--gold);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.nav button.btn-nav-gold {
  background: var(--gold);
  color: #151515;
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-sm);
}
.nav button.btn-nav-gold:hover {
  background: #ffd066;
  color: #111;
  border-color: var(--gold);
}

.userchip { background: var(--panel); border: 2px solid var(--line); }

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 2px solid var(--line-strong);
  color: var(--text);
  padding: 7px 14px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  font-family: inherit;
}
.audio-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translate(-1px, -1px);
}
.audio-btn.playing {
  border-color: var(--gold);
  color: #151515;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 197, 61, 0.4);
}
.audio-icon {
  font-size: 13px;
  line-height: 1;
}
.audio-btn.playing .audio-icon {
  animation: pulse-music 0.8s infinite alternate ease-in-out;
}
@keyframes pulse-music {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

.avatar-initials {
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: inherit;
  user-select: none;
}
.ficha-ava.avatar-initials {
  font-size: 32px;
  display: grid;
  place-items: center;
}
.pava.avatar-initials {
  font-size: 14px;
  font-weight: 900;
}

/* ---------- Hero / Home ---------- */
.hero { padding: 48px 0 26px; text-align: center; }

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.aura-word { color: var(--gold); text-shadow: 4px 4px 0 var(--gold-dim); }

.hero-sub { color: var(--muted); margin-top: 18px; font-size: 16px; }

.cats { margin-top: 30px; }

.cats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.cats-head h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
}
.cat-card:hover {
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.5);
  border-color: var(--gold);
}
.cat-card:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 0 rgba(0,0,0,0.5); }

.cat-stack { display: flex; margin-left: 8px; }

.cat-ava {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  border: 3px solid var(--bg);
  margin-left: -8px;
}

.cat-title { font-size: 22px; font-weight: 900; }

.cat-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.cat-play {
  margin-top: 4px;
  text-align: center;
  background: var(--gold);
  color: #151515;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 9px 0;
  border-radius: var(--radius);
  border: 2px solid var(--gold-dim);
  box-shadow: var(--shadow-sm);
}

/* ---------- Battle page ---------- */
.battle-head { text-align: center; padding: 40px 0 8px; }

.battle-title {
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.battle-tag {
  margin-top: 14px;
  display: inline-block;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.battle-stats { display: flex; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.stat {
  background: var(--panel-2);
  border: 2px solid var(--line-strong);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius);
}
.stat-btn { cursor: pointer; color: var(--gold); }
.stat-btn:hover { border-color: var(--gold); }

/* ---------- Arena / fichas ---------- */
.arena { position: relative; margin: 28px 0 10px; }

/* Level Gamification Bar */
.level-bar-wrap {
  width: 100%;
  max-width: 580px;
  margin: 0 auto 28px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}
.level-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.level-badge {
  background: var(--gold);
  color: #151515;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.level-badge.levelup {
  animation: levelup-pop 0.6s ease;
}
@keyframes levelup-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); background: #35e08a; }
  100% { transform: scale(1); }
}
.level-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.level-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
}
.level-progress-track {
  width: 100%;
  height: 9px;
  background: var(--bg-2);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c5cff, var(--gold));
  border-radius: 6px;
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(255, 197, 61, 0.5);
}

.arena-row {
  display: flex;
  gap: 70px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  position: relative;
}

.arena-row.locked { pointer-events: none; }

.ficha {
  flex: 1 1 260px;
  max-width: 360px;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.08s, box-shadow 0.08s, border-color 0.08s;
  user-select: none;
}
.ficha:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.5);
  border-color: var(--gold);
}
.ficha:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 0 rgba(0,0,0,0.5); }

.ficha.loading { cursor: default; pointer-events: none; }

.ficha.won {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green), 5px 5px 0 0 rgba(0,0,0,0.5);
  animation: winpulse 0.7s ease;
}
.ficha.lost { filter: grayscale(0.7); opacity: 0.55; }

.ficha-ava {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 46px;
  border: 3px solid var(--line-strong);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}

.ficha-ava img,
.pava img,
.avatar img,
.cat-ava img,
.duel-item .ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-upload-box {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  background: var(--bg-2);
  margin-top: 8px;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.img-upload-box:hover {
  border-color: var(--gold);
}
.img-preview-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  background: var(--panel);
  display: grid;
  place-items: center;
}
.img-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ficha-name { font-size: 26px; font-weight: 900; }

.ficha-role { color: var(--muted); font-size: 13px; margin-top: 2px; min-height: 18px; }

.ficha-elo {
  display: inline-block;
  margin-top: 14px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--gold);
  background: var(--bg-2);
  border: 2px solid var(--line);
  padding: 5px 14px;
  border-radius: var(--radius);
}

.vs-note {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 50%;
  font-weight: 900;
  font-size: 20px;
  z-index: 5;
  box-shadow: var(--shadow);
}

/* pop elo overlay */
.pop {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(18, 19, 28, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 2;
}
.pop.show { opacity: 1; }
.pop .pop-old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.pop .pop-num { font-size: 42px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ac); }
.pop .pop-delta { font-size: 18px; font-weight: 900; }
.pop.up .pop-num, .pop.up .pop-delta { color: var(--green); }
.pop.down .pop-num, .pop.down .pop-delta { color: var(--red); }

/* ring + sparks */
.ring {
  position: absolute;
  inset: 8px;
  border-radius: var(--radius);
  border: 4px solid var(--green);
  animation: ring 0.7s ease-out forwards;
  z-index: 3;
  pointer-events: none;
}
@keyframes ring { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: spark 0.9s ease-out forwards;
  z-index: 3;
  pointer-events: none;
}
@keyframes spark {
  from { transform: translate(-50%, -50%) translate(0,0); opacity: 1; }
  to { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)); opacity: 0; }
}
@keyframes winpulse {
  0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); }
}

/* ---------- bottom sections ---------- */
.battle-bottom { margin-top: 50px; }

.feed { margin-bottom: 40px; }
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.feed-head h2 { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.feed-total { color: var(--muted); font-size: 13px; font-weight: 700; }

.feed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }

.duel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  animation: itemIn 0.3s ease;
}
@keyframes itemIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.duel-item .ava {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; background: var(--bg-2); border: 2px solid var(--line);
  flex-shrink: 0;
}
.duel-item .names { flex: 1; min-width: 0; }
.duel-item .names b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duel-item .w { color: var(--green); }
.duel-item .l { color: var(--muted); }
.duel-item .when { color: var(--muted); font-size: 11px; }
.duel-item .res { text-align: right; font-weight: 900; font-size: 12px; flex-shrink: 0; }
.duel-item .res .up { color: var(--green); }
.duel-item .res .down { color: var(--red); }

/* ---------- tables ---------- */
.table-wrap { background: var(--panel); border: 3px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; font-size: 14px; }
th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted);
  background: var(--bg-2);
  border-bottom: 2px solid var(--line);
}
td { border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 197, 61, 0.05); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.pos {
  width: 34px; height: 34px; border-radius: var(--radius);
  display: grid; place-items: center;
  font-weight: 900;
  background: var(--bg-2); border: 2px solid var(--line);
}
.pos.top1 { color: var(--gold); border-color: var(--gold-dim); }
.pos.top2 { color: #cfd6e6; border-color: var(--line-strong); }
.pos.top3 { color: #ff9d5c; border-color: var(--line-strong); }

.pava {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  background: var(--bg-2); border: 2px solid var(--line);
  flex-shrink: 0;
}
.name { font-weight: 700; }
.role { color: var(--muted); font-size: 12px; }
.elo-cell { font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--gold); }

/* ---------- forms / admin ---------- */
.admin-panel {
  max-width: 640px;
  margin: 34px auto;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.admin-panel h2 { font-size: 22px; font-weight: 900; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.admin-panel h2, .admin-panel h3 { color: var(--gold); }
.admin-panel .desc { color: var(--muted); margin-bottom: 20px; font-size: 14px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

input[type="text"], input[type="password"], input[type="number"], input[type="email"], input[type="color"], select {
  width: 100%;
  background: var(--bg-2);
  border: 2px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
input:focus, select:focus { border-color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: var(--gold);
  color: #151515;
  border: 2px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 rgba(0,0,0,0.45); text-decoration: none; }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 rgba(0,0,0,0.4); }
.btn.secondary { background: var(--panel-2); color: var(--text); border-color: var(--line-strong); }
.btn.danger { background: var(--panel-2); color: var(--red); border-color: var(--red); }
.btn.small { padding: 7px 13px; font-size: 12px; }

.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.row { display: flex; gap: 20px; flex-wrap: wrap; }
.row .field { flex: 1; min-width: 140px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

/* admin + gest list items */
.admin-list { margin-top: 26px; }
.admin-list .item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--panel-2);
  flex-wrap: wrap;
}
.admin-list .item .pava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--bg); border: 2px solid var(--line); flex-shrink: 0; }
.admin-list .item .info { flex: 1; min-width: 0; }
.admin-list .item .info b { display: block; }
.admin-list .item .info small { color: var(--muted); }
.admin-list .item .elo { font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- misc ---------- */
.empty { text-align: center; color: var(--muted); padding: 50px 20px; font-size: 16px; }
.hint { text-align: center; color: var(--muted); font-size: 13px; min-height: 20px; margin-top: 12px; }
kbd { background: var(--panel); border: 2px solid var(--line); border-bottom-width: 3px; border-radius: 5px; padding: 2px 7px; font-size: 12px; color: var(--text); }

.loader { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18,19,28,0.6); opacity: 0; pointer-events: none; z-index: 4; }
.ficha.loading .loader { opacity: 1; }
.spinner {
  width: 28px; height: 28px;
  border: 4px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--panel-2);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 22px;
  font-weight: 800;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 1100;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--red); color: var(--red); }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 18, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--panel);
  border: 3px solid var(--line-strong);
  border-radius: var(--radius);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.94);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal-card {
  transform: scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 2px solid var(--line);
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  font-family: inherit;
}
.modal-close:hover {
  color: var(--text);
  background: var(--panel-2);
}
.modal-body {
  padding: 22px;
}
.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
}
.modal-tab {
  flex: 1;
  background: var(--bg-2);
  border: 2px solid var(--line);
  color: var(--muted);
  padding: 9px 12px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: inherit;
}
.modal-tab.active {
  background: var(--panel-2);
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .arena-row { gap: 40px; }
  .ficha { flex: 1 1 200px; padding: 22px 14px 18px; }
  .ficha-ava { width: 70px; height: 70px; font-size: 32px; }
  .ficha-name { font-size: 20px; }
  .vs-note { width: 46px; height: 46px; font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  th, td { padding: 9px 10px; }
}