/* Same palette as the stats site, so the two read as one product. No script anywhere: the
   content security policy refuses it outright, which also rules out a whole class of attack. */
:root {
  --yellow: #e3a52b;
  --bg: #0d0f11;
  --panel: #15181c;
  --panel2: #1b1f24;
  --line: #262b32;
  --line-soft: #1f242a;
  --text: #dde1e6;
  --muted: #8b939d;
  --good: #5fbf6a;
  --bad: #e0605a;
  --blue: #2a6de0;
  --red: #d4222f;
  --green: #00833f;
  --discord: #5865f2;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --head: "Saira Condensed", "Arial Narrow", "Arial Black", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { color: var(--yellow); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: 0.04em; margin: 0; text-transform: uppercase; }
h1 { font-size: 28px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--muted); }

.tri { height: 4px; display: flex; }
.tri i { flex: 1; }
.tri i:nth-child(1) { background: var(--blue); }
.tri i:nth-child(2) { background: var(--red); }
.tri i:nth-child(3) { background: var(--green); }

/* header */
.top { display: flex; align-items: center; gap: 14px 22px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: rgba(13, 15, 17, 0.95); flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.brand { font: 900 15px/1 "Arial Black", var(--head); letter-spacing: 0.12em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--yellow); }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a.on { color: var(--yellow); }
.out { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

main { max-width: 1180px; margin: 0 auto; padding: 24px 22px 60px; display: flex; flex-direction: column; gap: 18px; }

/* panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.hint { color: var(--muted); font-size: 13px; }
.notice { border-left: 3px solid var(--bad); background: rgba(224, 96, 90, 0.09); padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 0 0 14px; }
.notice.good { border-left-color: var(--good); background: rgba(95, 191, 106, 0.09); }
.notice.warn { border-left-color: var(--yellow); background: rgba(227, 165, 43, 0.09); }

/* forms */
label { display: block; margin: 0 0 12px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { width: 100%; margin-top: 6px; padding: 9px 11px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; font: 14px var(--body); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: -1px; }
textarea { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; min-height: 320px; resize: vertical; }
button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2); color: var(--text); font: 600 13px var(--body); cursor: pointer; }
button:hover { border-color: var(--yellow); color: var(--yellow); }
button.primary { background: var(--yellow); border-color: var(--yellow); color: #17191c; }
button.primary:hover { background: #f0b944; color: #17191c; }
button.danger:hover { border-color: var(--bad); color: var(--bad); }
button.tiny { padding: 3px 8px; font-size: 12px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row label { flex: 1 1 160px; margin-bottom: 0; }
form.inline { display: inline; }

/* tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #aab2bd; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel2); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.026); }
td.n { text-align: right; font-family: var(--mono); }
td.act { text-align: right; white-space: nowrap; }

/* bits */
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); display: inline-block; margin-right: 7px; }
.dot.on { background: var(--good); }
.tag { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; color: var(--muted); }
.tag.now { border-color: var(--good); color: var(--good); }
.tag.next { border-color: var(--yellow); color: var(--yellow); }
.secret { font-family: var(--mono); font-size: 19px; letter-spacing: 0.12em; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; word-break: break-all; }
.uri code { font-size: 11px; color: var(--muted); word-break: break-all; }
.qr { background: #fff; padding: 12px; border-radius: 8px; display: inline-block; line-height: 0; margin: 4px 0 14px; }
.qr svg { width: 208px; height: 208px; display: block; }
.perms { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 14px; }
.perms label { display: flex; align-items: center; gap: 7px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }
.perms input { width: auto; margin: 0; }

/* shared artwork from the stats site */
.brand .logo { height: 30px; width: auto; vertical-align: middle; margin-right: 6px; }
.thumb { width: 80px; height: 45px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); vertical-align: middle; margin-right: 9px; }
.teamicon { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.small { font-size: 11.5px; }

/* when a setting starts working */
.when { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.whenbox { border: 1px solid var(--line); border-left-width: 3px; border-radius: 0 8px 8px 0; padding: 12px 14px; background: var(--panel2); }
.whenbox.good { border-left-color: var(--good); }
.whenbox.warn { border-left-color: var(--yellow); }
.whenbox.bad { border-left-color: var(--bad); }
.whenbox ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; }
.whenbox li { margin-bottom: 7px; }
details summary { cursor: pointer; padding: 6px 0; }

/* the shell: fixed column on the left, work on the right */
.app { display: flex; min-height: 100vh; align-items: stretch; }
.side { width: 300px; flex: none; border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.brand-text { font: 900 15px/1 "Arial Black", var(--head); letter-spacing: 0.1em; }
.brand-text b { color: var(--yellow); font-weight: 900; }
.servers { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.servertab { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding: 6px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); text-decoration: none; }
.servertab.on { border-color: var(--yellow); color: var(--yellow); }
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero img, .hero-blank { display: block; width: 100%; height: 168px; object-fit: cover; background: var(--panel2); }
.hero-body { padding: 12px 16px; }
.hero-name { font-weight: 700; font-size: 14px; line-height: 1.35; }
.hero-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }
.addr { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); }
.sponsor { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sponsor img { width: 100%; border-radius: 4px; display: block; margin-top: 8px; }
.sidelabel { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.sidenav { display: flex; flex-direction: column; gap: 0; padding: 10px 0; }
.sidenav a { padding: 13px 18px; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); text-decoration: none; border-left: 3px solid transparent; }
.sidenav a:hover { color: var(--text); }
.sidenav a.on { color: var(--yellow); border-left-color: var(--yellow); background: rgba(227, 165, 43, 0.07); }
.signout { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--line); }
.signout button { width: 100%; }
.app main { flex: 1; min-width: 0; max-width: none; margin: 0; padding: 22px 26px 60px; }
main.alone { max-width: 460px; margin: 0 auto; padding: 40px 22px; }
.pagetitle { font: 700 13px/1 var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.sectionlabel { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-bottom: 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; }
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } .side { width: 240px; } }

/* overview */
.scores { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.score { flex: 1 1 130px; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; background: var(--panel2); }
.score-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.score-top b { margin-left: auto; font-family: var(--mono); font-size: 16px; }
.bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; }
table.facts th { background: none; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 13px; padding: 8px 0; }
table.facts td { text-align: right; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.nextmap { margin: 16px 0; }
.nextmap h2 { font-size: 24px; margin: 6px 0 2px; text-transform: none; }
img.wide { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-top: 12px; display: block; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { font-size: 12px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); text-decoration: none; }
.chip.on { border-color: var(--yellow); color: var(--yellow); }
.chip b { font-family: var(--mono); }

/* rotation */
.maprow { display: flex; align-items: center; gap: 11px; }
.thumb.blank { display: inline-block; background: var(--panel2); }
table.rotation td { padding: 11px 12px; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.subtab { padding: 10px 16px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtab:hover { color: var(--text); }
.subtab.on { color: var(--yellow); border-bottom-color: var(--yellow); }

/* Map pictures are wide screenshots, so the thumbnail keeps their shape instead of squashing it. */
.thumb.blank { border-style: dashed; opacity: 0.4; }
.tag.warn { border-color: var(--bad); color: var(--bad); }
.hero img, .hero-blank { height: 150px; object-position: center 40%; }

/* settings as fields */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; margin: 18px 0; }
.field { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--panel2); display: flex; flex-direction: column; }
.fieldhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.fieldhead .sidelabel { margin: 0; }
.field input, .field select { margin-top: 0; }
.field .hint { margin: 9px 0 0; font-size: 12px; line-height: 1.45; }
.field .perms { margin: 0; }
label.bare { margin: 0; display: block; }
.badge { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; padding: 3px 9px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; flex: none; }
.badge.good { border-color: rgba(95, 191, 106, 0.45); color: var(--good); background: rgba(95, 191, 106, 0.08); }
.badge.warn { border-color: rgba(227, 165, 43, 0.45); color: var(--yellow); background: rgba(227, 165, 43, 0.08); }
.badge.bad { border-color: rgba(224, 96, 90, 0.45); color: var(--bad); background: rgba(224, 96, 90, 0.08); }
.changes { margin: 12px 0; padding-left: 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }
.sidehead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sidehead a { font-size: 11px; color: var(--muted); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; }
.sidehead a:hover { color: var(--yellow); }
.urlline { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); word-break: break-all; margin-top: 6px; text-decoration: none; }
.urlline:hover { color: var(--yellow); }
textarea.short { min-height: 90px; }
.field input:disabled { color: var(--muted); background: var(--bg); }
.group { margin-bottom: 22px; }
.grouplabel { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.group .fields { margin: 0; }
.linkbox { font-size: 13px; letter-spacing: 0; line-height: 1.5; user-select: all; }

/* a player as a person */
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-body { min-width: 0; }
.person-name { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.person-name a { text-decoration: none; }
.person-name a:hover { color: var(--yellow); text-decoration: underline; }
.av { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; background: var(--panel2); border: 1px solid var(--line); }
.av-none { display: inline-block; }
.flag { width: 18px; height: 13px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; flex: none; }
.discord { color: var(--discord); text-decoration: none; }
.discord:hover { text-decoration: underline; }
.quiet { font-family: var(--mono); color: var(--muted); }
.quiet.long { color: var(--yellow); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card.action { display: flex; flex-direction: column; }
.card.action form { margin-bottom: 4px; }
.card.action .hint { margin-top: auto; padding-top: 10px; }
.hint.intro { max-width: 760px; margin-bottom: 20px; }
