:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #0e1116;
  color: #e6e9ef;
  margin: 0;
}
body { margin: 0; padding: 24px 16px 48px; }
.wrap { max-width: 980px; margin: 0 auto; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: 1px; }
h1 .v { color: #8b93a3; font-size: 15px; }
.sub { color: #8b93a3; font-size: 13px; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 12px; align-items: stretch; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } .vs { display: none; } }
.panel { background: #161b23; border: 1px solid #232a36; border-radius: 10px; padding: 14px; }
.panel h2 { font-size: 14px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.panel.sideA h2 { color: #6ea8fe; }
.panel.sideB h2 { color: #ff7b72; }
select, button {
  font: inherit; background: #1d242f; color: #e6e9ef;
  border: 1px solid #333d4d; border-radius: 8px; padding: 8px 10px; width: 100%;
  box-sizing: border-box; cursor: pointer;
}
select { margin-bottom: 8px; }
select optgroup { color: #8b93a3; font-style: normal; }
.vs { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: #8b93a3; }
.stats { margin-top: 10px; font-size: 13px; }
.stat { margin: 7px 0; }
.stat .lbl { display: flex; justify-content: space-between; color: #aab3c2; }
.bar { height: 8px; background: #232a36; border-radius: 4px; overflow: hidden; margin-top: 3px; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.panel.sideA .bar i { background: #6ea8fe; }
.panel.sideB .bar i { background: #ff7b72; }
.note { color: #6c7686; font-size: 11px; margin-top: 8px; }
.ctrl { margin: 18px 0 6px; background: #161b23; border: 1px solid #232a36; border-radius: 10px; padding: 14px; }
.ctrl .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ctrlgrp { display: inline-flex; gap: 8px; align-items: center; border: 1px solid #333d4d; border-radius: 8px; padding: 6px 10px; }
.ctrl label { font-size: 13px; color: #aab3c2; }
input[type=range] { width: 160px; accent-color: #6ea8fe; }
#techVal { font-weight: 700; color: #e6e9ef; }
.hint { font-size: 12px; color: #8b93a3; }
.btn-main { background: #b6232a; border-color: #b6232a; font-weight: 800; font-size: 16px; padding: 12px; letter-spacing: 1px; }
.btn-main:hover { background: #d13a41; }
.btn-sec { flex: 0 0 auto; width: auto; background: #1d242f; }
#battle { display: none; margin-top: 16px; background: #161b23; border: 1px solid #232a36; border-radius: 10px; padding: 14px; }
#matchupTitle { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: #e6e9ef; }
.hp { margin-bottom: 14px; }
.hp .lbl { font-size: 12px; color: #aab3c2; display: flex; justify-content: space-between; }
.hp .bar { height: 14px; }
.hpA .bar i { background: #6ea8fe; }
.hpB .bar i { background: #ff7b72; }
#log { max-height: 260px; overflow-y: auto; font-size: 13px; background: #0e1116; border: 1px solid #232a36; border-radius: 8px; padding: 10px; line-height: 1.6; }
#log .round { color: #8b93a3; font-weight: 700; }
#verdict { display: none; margin-top: 14px; padding: 14px; border-radius: 8px; font-size: 17px; font-weight: 800; text-align: center; letter-spacing: 0.5px; }
.verdict-a { background: rgba(110,168,254,.15); border: 1px solid #6ea8fe; color: #9cc3ff; }
.verdict-b { background: rgba(255,123,114,.15); border: 1px solid #ff7b72; color: #ffaba5; }
.verdict-d { background: rgba(139,147,163,.15); border: 1px solid #8b93a3; color: #b6bdc9; }
#verdict .detail { font-size: 13px; font-weight: 400; margin-top: 6px; color: #aab3c2; }
footer { margin-top: 22px; font-size: 11px; color: #6c7686; line-height: 1.6; }
#backboneInfo { color: #8b93a3; }
