/* ============ Arena — dark theme (static, GitHub Pages edition) ============ */
:root {
  --bg: #0a0a0f;
  --bg-soft: #0e0e15;
  --panel: #12121a;
  --panel-2: #16161f;
  --border: #23232e;
  --border-soft: #1b1b24;
  --text: #e9e9f2;
  --muted: #9a9aab;
  --faint: #6b6b7c;
  --accent: #7c6cff;
  --accent-2: #4f8cff;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --good: #34d399;
  --bad: #f87171;
  --gold: #fbbf24;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}

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

html { scrollbar-color: #2c2c3a var(--bg); }

body {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(124, 108, 255, 0.10), transparent 60%),
    radial-gradient(900px 420px at 85% -10%, rgba(79, 140, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: #a99dff; text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(124, 108, 255, 0.35); }

/* ---------- nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #7c6cff, #4f8cff);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 14px rgba(124, 108, 255, 0.35);
}
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.brand-tag {
  font-size: 10px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(124,108,255,.3);
  padding: 2px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: .5px;
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.nav-link {
  color: var(--muted); padding: 7px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 600; transition: all .15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.nav-link.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--border); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.stat-badge {
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px;
  border: 1px solid var(--border); color: var(--muted); background: var(--panel);
  white-space: nowrap;
}

/* ---------- views ---------- */
.view { display: none; padding: 26px 22px 60px; max-width: 1280px; margin: 0 auto; }
.view.active { display: block; animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font); font-size: 14px; font-weight: 700;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 16px; cursor: pointer; color: var(--text);
  background: var(--panel-2); transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: #3a3a4c; background: #1c1c28; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, #7c6cff, #5f6bff);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 16px rgba(124, 108, 255, 0.3);
}
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: rgba(248,113,113,.3); }
.btn.danger:hover { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.5); }
.btn.vote { min-width: 128px; }
.btn.vote-a:hover { border-color: var(--accent); background: var(--accent-soft); color: #cfc8ff; }
.btn.vote-b:hover { border-color: var(--accent-2); background: rgba(79,140,255,.12); color: #c3d6ff; }
.btn.vote-tie:hover { border-color: #8a8a9c; background: rgba(255,255,255,.06); }
.btn.vote-bad:hover { border-color: var(--bad); background: rgba(248,113,113,.1); color: #ffc9c9; }

.chip {
  font-family: var(--font); font-size: 12.5px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 99px; padding: 5px 13px; cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- arena ---------- */
.arena-head { margin-bottom: 18px; }
.arena-title h1 { font-size: 26px; letter-spacing: -0.5px; }
.arena-title p { color: var(--muted); margin-top: 4px; font-size: 14px; max-width: 700px; }
.arena-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.model-picker { display: flex; align-items: center; gap: 8px; }
.pick {
  font-family: var(--font); font-size: 13.5px; color: var(--text);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; max-width: 220px;
  outline: none; cursor: pointer;
}
.pick:focus { border-color: var(--accent); }
.vs-mini { color: var(--faint); font-weight: 800; font-size: 12px; }
.quick-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.quick-label { font-size: 12px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.demo-notice {
  margin-top: 14px; font-size: 13px; color: var(--gold);
  background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.25);
  border-radius: var(--radius-sm); padding: 10px 14px;
}

.battle-grid {
  display: grid; grid-template-columns: 1fr 56px 1fr; gap: 0;
  align-items: stretch;
}
.chat-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  min-height: 420px; box-shadow: var(--shadow);
}
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  background: var(--panel-2);
}
.avatar {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
}
.av-a { background: linear-gradient(135deg, #7c6cff, #5f6bff); box-shadow: 0 3px 12px rgba(124,108,255,.35); }
.av-b { background: linear-gradient(135deg, #4f8cff, #2f6fe0); box-shadow: 0 3px 12px rgba(79,140,255,.35); }
.avatar.revealed { width: 34px; height: 34px; font-size: 13px; border-radius: 50%; }
.panel-id { min-width: 0; }
.pname { font-weight: 800; font-size: 15px; }
.pmeta { font-size: 12px; color: var(--faint); }
.panel-status { margin-left: auto; font-size: 12px; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.panel-status .typing { display: inline-flex; gap: 3px; align-items: center; }
.panel-status .typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  animation: blink 1.2s infinite;
}
.panel-status .typing i:nth-child(2) { animation-delay: .2s; }
.panel-status .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.panel-status .err { color: var(--bad); }
.save-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); font-size: 15px; cursor: pointer; padding: 5px 9px; transition: all .15s;
}
.save-btn:hover { color: var(--gold); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.07); }

.messages { padding: 18px 18px 10px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; max-height: 560px; min-height: 380px; }
.msg-user {
  align-self: flex-end; max-width: 92%;
  background: var(--accent-soft); border: 1px solid rgba(124,108,255,.3);
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  font-size: 14px; white-space: pre-wrap; word-break: break-word;
}
.msg-assistant { align-self: stretch; font-size: 14px; animation: fadeUp .25s ease; }
.msg-assistant .md-body { word-break: break-word; }
.msg-assistant .md-body p { margin: 0 0 10px; }
.msg-assistant .md-body p:last-child { margin-bottom: 0; }
.msg-assistant .md-body h1, .msg-assistant .md-body h2, .msg-assistant .md-body h3 {
  margin: 14px 0 8px; font-size: 15.5px; letter-spacing: -0.2px; line-height: 1.35;
}
.msg-assistant .md-body h1 { font-size: 17px; }
.msg-assistant .md-body ul, .msg-assistant .md-body ol { margin: 0 0 10px; padding-left: 22px; }
.msg-assistant .md-body li { margin: 3px 0; }
.msg-assistant .md-body code {
  font-family: var(--mono); font-size: 12.5px; background: #1a1a26;
  border: 1px solid var(--border-soft); border-radius: 5px; padding: 1.5px 5px;
}
.msg-assistant .md-body pre {
  background: #10101a; border: 1px solid var(--border-soft); border-radius: 10px;
  padding: 13px 15px; overflow-x: auto; margin: 0 0 12px; position: relative;
}
.msg-assistant .md-body pre code { background: transparent; border: none; padding: 0; font-size: 12.5px; line-height: 1.55; color: #d7d7e8; }
.msg-assistant .md-body blockquote {
  border-left: 3px solid var(--accent); padding: 4px 14px; color: var(--muted);
  margin: 0 0 10px; background: rgba(255,255,255,.02); border-radius: 0 8px 8px 0;
}
.msg-assistant .md-body hr { border: none; border-top: 1px solid var(--border-soft); margin: 12px 0; }
.msg-assistant .md-body strong { color: #ffffff; }
.msg-assistant .md-body table { border-collapse: collapse; margin: 0 0 10px; font-size: 13px; }
.msg-assistant .md-body th, .msg-assistant .md-body td { border: 1px solid var(--border-soft); padding: 6px 11px; }
.msg-assistant .md-body th { background: var(--panel-2); }

.vs-col { display: flex; align-items: center; justify-content: center; }
.vs-badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 900; font-size: 13px;
  color: var(--accent); letter-spacing: .5px; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}

.composer {
  display: flex; gap: 10px; margin-top: 16px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.composer textarea {
  flex: 1; resize: none; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font); font-size: 14.5px; line-height: 1.5;
  padding: 6px 8px; max-height: 160px;
}
.composer textarea::placeholder { color: var(--faint); }
.composer .btn { align-self: flex-end; }

.vote-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); animation: fadeUp .25s ease;
}
.vote-label { font-weight: 800; font-size: 14.5px; margin-right: 6px; }
.vote-hint { color: var(--faint); font-size: 12px; margin-left: 4px; }

.result-banner {
  margin-top: 16px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; display: flex;
  align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow);
  animation: fadeUp .3s ease;
}
.result-text { flex: 1; min-width: 240px; font-size: 14px; }
.result-actions { display: flex; gap: 10px; }
.model-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 99px; padding: 3px 12px 3px 4px; font-weight: 700; font-size: 13px;
}
.model-chip .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- analysis panel (formula-based evaluation + auto-judge) ---------- */
.analysis {
  border-top: 1px dashed var(--border); margin: 0 16px 14px; padding-top: 12px;
  animation: fadeUp .3s ease;
}
.an-head { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.an-scores { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.an-score {
  flex: 1; min-width: 92px; background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 7px 10px;
}
.an-score .v { font-size: 17px; font-weight: 800; }
.an-score .v.good { color: var(--good); }
.an-score .v.mid { color: var(--gold); }
.an-score .v.bad2 { color: var(--bad); }
.an-score .l { font-size: 10px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.an-meta { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.an-flag { display: inline-block; font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 2px 9px; margin-right: 6px; }
.an-flag.pii { color: var(--gold); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); }
.an-flag.guard { color: var(--bad); background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3); }
.an-flag.ok { color: var(--good); background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.3); }
.an-verdict { font-size: 12.5px; font-weight: 700; color: #cfc8ff; margin-top: 6px; }

/* ---------- leaderboard ---------- */
.lb-head h1 { font-size: 26px; letter-spacing: -0.5px; }
.lb-head p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.lb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.lb-stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
}
.lb-stat .num { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.lb-stat .lbl { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill {
  font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 99px; padding: 6px 15px; cursor: pointer; transition: all .15s;
}
.pill:hover { color: var(--text); }
.pill.active {
  color: #fff; background: linear-gradient(135deg, #7c6cff, #5f6bff);
  border-color: transparent; box-shadow: 0 4px 14px rgba(124,108,255,.3);
}
.lb-table-wrap {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow);
}
.lb-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.lb-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--faint); padding: 13px 16px; border-bottom: 1px solid var(--border);
  background: var(--panel-2); white-space: nowrap;
}
.lb-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.lb-table tbody tr:last-child td { border-bottom: none; }
.lb-table tbody tr { transition: background .12s; }
.lb-table tbody tr:hover { background: rgba(255,255,255,.025); }
.c-rank { width: 46px; }
.rank-badge {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; background: var(--panel-2); border: 1px solid var(--border-soft);
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1205; border: none; }
.rank-2 { background: linear-gradient(135deg, #d6dae4, #9aa3b5); color: #14161c; border: none; }
.rank-3 { background: linear-gradient(135deg, #d99a6c, #b06a3d); color: #1c0f06; border: none; }
.model-cell { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.m-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.m-name { font-weight: 700; }
.elo-cell { min-width: 210px; }
.elo-num { font-weight: 800; font-size: 15px; display: inline-block; min-width: 58px; }
.elo-bar-wrap { display: inline-block; width: 130px; height: 8px; border-radius: 99px; background: #1b1b24; margin-left: 10px; vertical-align: middle; overflow: hidden; }
.elo-bar {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.ci-cell { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.votes-cell { color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-note { color: var(--faint); font-size: 12.5px; margin-top: 14px; line-height: 1.7; }

/* ---------- models grid ---------- */
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 22px; }
.model-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: all .18s;
}
.model-card:hover { transform: translateY(-3px); border-color: #34344a; box-shadow: var(--shadow); }
.mc-head { display: flex; align-items: center; gap: 12px; }
.mc-head .m-avatar { width: 40px; height: 40px; font-size: 15px; }
.mc-title { font-weight: 800; font-size: 16px; }
.mc-org { font-size: 12.5px; color: var(--faint); }
.mc-desc { font-size: 13px; color: var(--muted); flex: 1; }
.mc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-tag {
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(124,108,255,.25);
  border-radius: 99px; padding: 3px 10px;
}
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-lic { font-size: 11.5px; color: var(--faint); }
.mc-elo { font-size: 13px; font-weight: 800; color: var(--gold); }

/* ---------- history ---------- */
.history-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.history-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hc-prompt { flex: 1; min-width: 220px; font-size: 13.5px; color: var(--muted); }
.hc-prompt b { color: var(--text); font-weight: 600; }
.hc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hc-vote {
  font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 99px;
}
.vote-A { color: #cfc8ff; background: var(--accent-soft); border: 1px solid rgba(124,108,255,.35); }
.vote-B { color: #c3d6ff; background: rgba(79,140,255,.12); border: 1px solid rgba(79,140,255,.35); }
.vote-tie { color: #d5d5e2; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.vote-both_bad { color: #ffc9c9; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); }
.hc-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); border: 1px solid var(--border-soft); border-radius: 99px; padding: 3px 10px;
}
.hc-date { font-size: 12px; color: var(--faint); }
.empty-state { text-align: center; color: var(--faint); padding: 60px 20px; }
.empty-state .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- distillation ---------- */
.distill-actions { display: flex; gap: 10px; margin-top: 16px; }
.distill-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.distill-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.dc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dc-prompt { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dc-prompt b { color: var(--text); }
.dc-body { font-size: 13.5px; }
.dc-body .md-body p { margin: 0 0 8px; }
.dc-body .md-body pre { background: #10101a; border: 1px solid var(--border-soft); border-radius: 8px; padding: 10px 13px; overflow-x: auto; margin: 0 0 8px; }
.dc-body .md-body code { font-family: var(--mono); font-size: 12px; }
.dc-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dc-date { font-size: 11.5px; color: var(--faint); margin-left: auto; }

/* ---------- settings ---------- */
.settings-wrap { max-width: 860px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-top: 18px; box-shadow: var(--shadow);
}
.card-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.toggle-row {
  display: flex; align-items: center; gap: 14px; cursor: pointer; justify-content: space-between;
}
.toggle-row b { display: block; font-size: 14.5px; }
.toggle-row small { color: var(--muted); font-size: 12.5px; }
.toggle {
  appearance: none; width: 46px; height: 26px; border-radius: 99px; background: #2a2a38;
  border: 1px solid var(--border); position: relative; cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.toggle:checked { background: linear-gradient(135deg, #7c6cff, #5f6bff); border-color: transparent; }
.toggle::after {
  content: ""; position: absolute; top: 2.5px; left: 3px; width: 19px; height: 19px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.toggle:checked::after { transform: translateX(19px); }
.hint { color: var(--faint); font-size: 12.5px; margin-top: 8px; line-height: 1.6; }
.hint code { font-family: var(--mono); font-size: 11.5px; background: #1a1a26; border-radius: 4px; padding: 1px 5px; }
.skill-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.skill-list li {
  font-size: 13.5px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--border-soft); border-radius: 9px; padding: 10px 14px;
}
.skill-list li b { color: var(--text); }

/* ---------- footer / toast ---------- */
.site-footer {
  text-align: center; color: var(--faint); font-size: 12.5px;
  padding: 22px; border-top: 1px solid var(--border-soft);
}
#toast-root { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 18px; font-size: 13.5px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow); animation: fadeUp .25s ease; max-width: 360px;
}
.toast.good { border-color: rgba(52,211,153,.45); }
.toast.bad { border-color: rgba(248,113,113,.45); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .battle-grid { grid-template-columns: 1fr; gap: 14px; }
  .vs-col { display: none; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .nav-inner { flex-wrap: wrap; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 560px) {
  .view { padding: 18px 12px 50px; }
  .btn.vote { min-width: 100%; }
  .vote-bar { flex-direction: column; align-items: stretch; }
  .vote-hint { display: none; }
}
