:root {
  --bg: #07090c; --panel: #0d1218; --card: #121820; --card2: #18202a; --line: rgba(255,255,255,.08);
  --text: #eef2f6; --muted: #8a96a3; --dim: #505c68; --green: #5ee6a8; --red: #ff6b6b; --gold: #ffd166;
  --purple: #9d7bff; --blue: #62b6ff; --orange: #ffa94d; --pink: #ff8fb8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.logo { font-family: "Courier New", monospace; font-weight: 700; letter-spacing: .5px; text-shadow: 2px 2px 0 #1a1a1a; }
.logo b { color: #ff5555; } .logo i { color: #ffaa00; font-style: normal; }
main.narrow { max-width: 760px; margin: 32px auto; padding: 0 16px; }
h1 { font-size: 22px; margin: 0 0 6px; }
.muted { color: var(--muted); } .empty { color: var(--dim); padding: 24px 0; }
.fights { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.fight { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.fight:hover { background: var(--card2); }
.fight .when { font-weight: 600; min-width: 150px; } .fight .what { color: var(--muted); flex: 1; }
.fight .go { color: var(--blue); } .fight .tag { color: var(--gold); font-size: 12px; } .fight.held { opacity: .7; }

/* report */
#app { max-width: 1280px; margin: 0 auto; padding: 16px; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 12px; }
.head .back { color: var(--blue); text-decoration: none; }
.head .info { color: var(--muted); }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(94,230,168,.12); color: var(--green); }
.score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; margin-bottom: 12px; }
.team { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); }
.team.ally { background: linear-gradient(90deg, #14382c, #0d1712); } .team.enemy { background: linear-gradient(90deg, #1a0f12, #3d1a1e); text-align: right; }
.team .lbl { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
.team .big { font-size: 40px; font-weight: 800; line-height: 1.1; }
.team.ally .big { color: var(--green); } .team.enemy .big { color: var(--red); }
.team .sub { font-size: 13px; opacity: .85; }
.result { align-self: center; padding: 6px 14px; border-radius: 6px; font-weight: 800; border: 1px solid currentColor; }
.grid { display: grid; grid-template-columns: 230px 1fr; gap: 12px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } .score { grid-template-columns: 1fr; } .team.enemy { text-align: left; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.plist h3 { margin: 6px 0; font-size: 12px; letter-spacing: 1px; } .plist h3.ally { color: var(--green); } .plist h3.enemy { color: var(--red); }
.prow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.prow:hover { background: var(--card2); } .prow.sel { background: rgba(157,123,255,.18); }
.ini { width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #26303a; color: var(--muted); flex: none; }
.prow .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grade { font-size: 11px; font-weight: 800; padding: 1px 5px; border-radius: 3px; color: #0a0e12; }
.prow .s { color: var(--muted); font-size: 12px; min-width: 36px; text-align: right; }
.phead { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
.phead.ally { background: linear-gradient(90deg, #15352a, #0d1410); } .phead.enemy { background: linear-gradient(90deg, #371a1d, #140d0e); }
.phead .bigini { width: 56px; height: 56px; font-size: 26px; }
.phead .who { flex: 1; } .phead .rank { font-size: 12px; letter-spacing: 1px; } .phead .name { font-size: 28px; font-weight: 800; }
.phead .quip { color: #c9d1d9; font-style: italic; }
.phead .gchip { font-size: 26px; font-weight: 900; padding: 6px 12px; border-radius: 6px; color: #0a0e12; }
.titles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.title { padding: 6px 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.title b { margin-right: 6px; } .title.roast { border-color: rgba(255,107,107,.4); }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--card); border-radius: 8px; padding: 10px; }
.tile .k { font-size: 11px; letter-spacing: 1px; color: var(--muted); } .tile .v { font-size: 26px; font-weight: 800; }
.tile .h { font-size: 12px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--card); border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.strip .k { font-size: 11px; color: var(--dim); letter-spacing: 1px; }
canvas { width: 100%; display: block; border-radius: 8px; background: #080d0a; }
.cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.box h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 1px; }
.vs { display: grid; grid-template-columns: 1fr 60px 50px; gap: 4px 8px; align-items: center; font-size: 13px; }
.bar { height: 6px; border-radius: 3px; }
.note { margin-bottom: 8px; font-size: 13px; } .note .t { color: var(--blue); font-size: 12px; margin-right: 4px; }
.mapbox { margin-top: 10px; }
.controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.controls button { background: var(--purple); color: #0b0716; border: 0; border-radius: 6px; padding: 6px 12px; font-weight: 800; cursor: pointer; }
.controls input[type=range] { flex: 1; accent-color: var(--purple); }
.controls .tm { color: var(--muted); min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.feed { font-size: 13px; color: var(--muted); margin-top: 8px; }
.feed div { padding: 2px 0; } .feed .k { color: var(--text); }
.fight .acct { color: var(--green); font-size: 13px; min-width: 110px; }
