/* halo.milenko.org: the game list and carnage reports (server/list_server.py),
in the manner of the game's menus and of Bungie.net's Halo 2 and 3 stats */

:root {
  --bg: #050b16;
  --bg-2: #0a1628;
  --panel: #0b1a30;
  --panel-2: #0f2240;
  --edge: #1f4f8f;
  --edge-bright: #3d8bff;
  --glow: rgba(61, 139, 255, 0.35);
  --text: #d7e6fb;
  --dim: #7f98bd;
  --faint: #4d6587;
  --accent: #4aa3ff;
  --gold: #f2c14e;
  --silver: #c9d6e6;
  --bronze: #d08a4f;
  --open: #57d27a;
  --busy: #f08a4b;
  --red: #e2504c;
  --blue: #3f8cf0;
  --head: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Saira Semi Condensed", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.45 var(--body);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(40, 110, 220, 0.28), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--bg-2), var(--bg) 600px);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #8cc6ff; }
img { display: block; }

/* the bar along the top */
.top {
  border-bottom: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(20, 50, 95, 0.85), rgba(6, 16, 32, 0.9));
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(61, 139, 255, 0.25);
}
.top-inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { height: 58px; width: auto; margin: -8px 0; filter: brightness(1.35) drop-shadow(0 0 12px rgba(80, 160, 255, 0.55)); }
.brand .tag { display: grid; gap: 3px; font: 600 12px/1.1 var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
  border-left: 1px solid var(--edge); padding-left: 12px; white-space: nowrap; }
nav { display: flex; gap: 2px; margin-left: auto; }
nav a {
  font: 600 15px/1 var(--head); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); padding: 10px 12px; border: 1px solid transparent; border-radius: 3px; white-space: nowrap;
}
nav a:hover { color: var(--text); border-color: var(--edge); }
nav a.here { color: #fff; border-color: var(--edge-bright); background: rgba(61, 139, 255, 0.14); box-shadow: 0 0 12px var(--glow) inset; }
/* (a phone: the links wrap, smaller, rather than run off the side) */
@media (max-width: 960px) { .top-inner { flex-wrap: wrap; } }
@media (max-width: 560px) {
  nav { flex-wrap: wrap; margin-left: 0; gap: 2px; }
  nav a { font-size: 13px; letter-spacing: 0.08em; padding: 8px 9px; }
}

main { max-width: 1080px; margin: 0 auto; padding: 22px 16px 60px; }

/* a page's title, as the menus' headers */
.page-title {
  font: 700 34px/1 var(--head); letter-spacing: 0.06em; text-transform: uppercase;
  color: #2f8cff; margin: 6px 0 4px;
  text-shadow: 0 0 18px rgba(47, 140, 255, 0.55), 0 2px 0 rgba(0, 0, 0, 0.6);
}
.page-sub { color: var(--dim); margin: 0 0 22px; }

/* a panel, as the menus' fields */
.panel {
  background: linear-gradient(180deg, rgba(18, 42, 78, 0.92), rgba(8, 20, 38, 0.95));
  border: 1px solid var(--edge);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 22px rgba(30, 90, 180, 0.18), inset 0 1px 0 rgba(120, 180, 255, 0.12);
  margin-bottom: 22px;
  overflow: hidden;
}
.panel > h2 {
  margin: 0; padding: 9px 14px;
  font: 700 17px/1.2 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: #cfe3ff;
  background: linear-gradient(180deg, rgba(48, 110, 200, 0.45), rgba(16, 40, 76, 0.2));
  border-bottom: 1px solid var(--edge);
  display: flex; align-items: center; gap: 10px;
}
.panel > h2 .note { margin-left: auto; font: 500 13px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--dim); }
.panel-body { padding: 14px; }
.empty { color: var(--dim); padding: 18px 14px; }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* hosted games: a card each, its picture, what it is, and its buttons; the
roster opens below it */
.games { display: grid; gap: 1px; background: rgba(31, 79, 143, 0.45); }
.game {
  display: grid; grid-template-columns: 120px 1fr auto; column-gap: 16px; align-items: center;
  padding: 12px 16px 12px 12px; background: var(--panel);
}
.game:hover, .game.roster-open { background: var(--panel-2); }
.game .shot { width: 120px; height: 76px; object-fit: cover; border: 1px solid var(--edge); border-radius: 3px; display: block; }
/* (a Halo PC map's badge under its picture; every card keeps its room, so
Halo PC and Xbox games' cards are the same height) */
.game-art { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 102px; }
.game-body { min-width: 0; display: grid; gap: 6px; }
.game-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.game .name { font: 700 20px/1.1 var(--head); letter-spacing: 0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game .state, .admin-table .state {
  flex: none; font: 600 11px/1 var(--head); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 10px; border: 1px solid currentColor;
}
.state.open { color: var(--open); background: rgba(80, 220, 120, 0.08); }
.state.busy { color: var(--busy); background: rgba(255, 150, 60, 0.08); }
.state.unverified { color: var(--dim); background: rgba(127, 152, 189, 0.08); cursor: help; }
.state.version { color: var(--dim); background: rgba(127, 152, 189, 0.08); cursor: help; }
.state.version.older { color: var(--busy); background: rgba(255, 150, 60, 0.08); }
.state.region { color: var(--dim); background: rgba(127, 152, 189, 0.08); cursor: help; }
.game .meta { color: var(--text); font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.game .meta .sep { color: var(--dim); margin: 0 6px; }
.game .meta .dim { color: var(--dim); }
.type-icon { width: 22px; height: 18px; object-fit: cover; border-radius: 2px; border: 1px solid var(--edge); }
.seats { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.seats b { color: var(--text); font-weight: 600; }
.seats .bar { width: 140px; height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.seats .fill { height: 100%; background: linear-gradient(90deg, #2f8cff, #7fd0ff); box-shadow: 0 0 8px var(--glow); }
.listed-by { margin-left: auto; font-size: 12px; }

/* the card's buttons, one size */
.game-actions { display: flex; flex-direction: column; gap: 8px; }
.game-button, .join {
  height: 38px; min-width: 122px; padding: 0 14px; border-radius: 3px;
  font: 700 14px/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
.game-button { color: var(--text); background: rgba(61, 139, 255, 0.08); border: 1px solid var(--edge); }
.game-button:hover { border-color: var(--edge-bright); background: rgba(61, 139, 255, 0.16); }
.game-button[disabled] { opacity: 0.35; cursor: default; }
.game-button .chevron { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.game.roster-open .game-button .chevron { transform: translateY(2px) rotate(-135deg); }
.join { color: #fff; border: 1px solid #6fb2ff; background: linear-gradient(180deg, #3a8ef0, #1c5bb0); box-shadow: 0 0 14px var(--glow); }
.join img { width: 18px; height: 18px; }
.join:hover { color: #fff; filter: brightness(1.15); }
.join[aria-disabled="true"] { opacity: 0.35; pointer-events: none; box-shadow: none; }

/* the roster: a column a team (or one), names and, when sent, scores */
.roster-panel { display: none; grid-column: 1 / -1; margin-top: 12px; gap: 12px; }
.game.roster-open .roster-panel { display: grid; }
.roster-panel.teams { grid-template-columns: 1fr 1fr; }
.roster-column { border: 1px solid var(--edge); border-radius: 3px; background: rgba(3, 10, 22, 0.45); }
.roster-column.team-0 { border-color: rgba(226, 80, 76, 0.55); }
.roster-column.team-1 { border-color: rgba(63, 140, 240, 0.6); }
.roster-title { display: flex; justify-content: space-between; padding: 7px 10px; font: 700 13px/1 var(--head);
  letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--edge); }
.team-0 .roster-title { color: var(--red); border-color: rgba(226, 80, 76, 0.35); }
.team-1 .roster-title { color: var(--blue); border-color: rgba(63, 140, 240, 0.35); }
.roster-title .dim, .roster-column > .dim { color: var(--dim); }
.roster-column > .dim { padding: 8px 10px; font-size: 13px; }
.roster-column ol { list-style: none; margin: 0; padding: 4px 0; max-height: 240px; overflow-y: auto;
  columns: 2; column-gap: 0; }
.roster-panel.teams .roster-column ol { columns: 1; }
.roster-column li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 10px; font-size: 14px; break-inside: avoid; }
.roster-column .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-column .score { color: var(--dim); font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .game { grid-template-columns: 76px 1fr; row-gap: 10px; }
  .game .shot { width: 76px; height: 48px; }
  .game-art { height: 74px; }
  .game-actions { grid-column: 1 / -1; flex-direction: row; }
  .game-button, .join { flex: 1; }
  .roster-panel.teams { grid-template-columns: 1fr; }
  .map-warn .map-note { width: min(320px, 80vw); }
}

/* lists of games played */
.history { width: 100%; border-collapse: collapse; }
.history td { padding: 8px 10px; border-top: 1px solid rgba(31, 79, 143, 0.5); vertical-align: middle; }
.history tr:first-child td { border-top: 0; }
.history tr { cursor: pointer; }
.history tr:hover td { background: rgba(61, 139, 255, 0.08); }
.history .thumb { width: 54px; height: 40px; object-fit: cover; border: 1px solid var(--edge); border-radius: 2px; }
.history .what { font: 600 16px/1.15 var(--head); letter-spacing: 0.02em; }
.history .sub { color: var(--dim); font-size: 13px; }
.history .right { text-align: right; white-space: nowrap; color: var(--dim); font-size: 13px; }
.place-1 { color: var(--gold); } .place-2 { color: var(--silver); } .place-3 { color: var(--bronze); }

/* leaders */
.tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--edge); background: rgba(5, 14, 28, 0.5); flex-wrap: wrap; }
.tabs button {
  font: 600 14px/1 var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
  background: transparent; border: 1px solid transparent; border-bottom: 0; padding: 9px 12px; border-radius: 4px 4px 0 0; cursor: pointer;
}
.tabs button.here { color: #fff; background: var(--panel-2); border-color: var(--edge); margin-bottom: -1px; }
.leaders { list-style: none; margin: 0; padding: 4px 0; counter-reset: rank; }
.leaders li { display: grid; grid-template-columns: 30px 28px 1fr auto; gap: 10px; align-items: center; padding: 6px 14px; }
.leaders li:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.leaders .rank { font: 700 18px/1 var(--head); color: var(--faint); text-align: right; }
.leaders li:nth-child(1) .rank { color: var(--gold); } .leaders li:nth-child(2) .rank { color: var(--silver); } .leaders li:nth-child(3) .rank { color: var(--bronze); }
.leaders .figure { width: 22px; height: 34px; object-fit: contain; }
.leaders .who { font: 600 16px/1.1 var(--head); }
.leaders .value { font: 700 18px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }

/* a game's banner */
.banner {
  position: relative; display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: center;
  padding: 18px; border: 1px solid var(--edge); border-radius: 6px; overflow: hidden; margin-bottom: 18px;
  background: var(--panel); box-shadow: 0 0 26px rgba(30, 90, 180, 0.25);
}
.banner::before {
  content: ""; position: absolute; inset: -20px; background: var(--shot) center/cover;
  filter: blur(18px) saturate(1.2) brightness(0.45); transform: scale(1.1);
}
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 10, 22, 0.2), rgba(4, 10, 22, 0.85)); }
.banner > * { position: relative; z-index: 1; }
.banner .shot { width: 220px; height: 150px; object-fit: cover; border: 1px solid var(--edge-bright); border-radius: 4px; box-shadow: 0 0 18px var(--glow); }
.banner .kicker { font: 600 13px/1 var(--head); letter-spacing: 0.24em; text-transform: uppercase; color: #8cc6ff; }
.banner h1 { margin: 6px 0 8px; font: 700 36px/1 var(--head); letter-spacing: 0.04em; text-transform: uppercase; text-shadow: 0 0 16px rgba(47, 140, 255, 0.5); }
.banner .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); font-size: 14px; }
.banner .facts b { color: var(--text); font-weight: 600; }
.banner .type { width: 120px; height: 98px; object-fit: cover; border: 1px solid var(--edge-bright); border-radius: 4px; box-shadow: 0 0 18px var(--glow); }
.winner-line { margin-top: 12px; font: 700 20px/1 var(--head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 12px rgba(242, 193, 78, 0.45); }
@media (max-width: 760px) {
  .banner { grid-template-columns: 1fr; }
  .banner .shot { width: 100%; height: 160px; }
  .banner .type { display: none; }
}

/* the carnage report */
.carnage { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.carnage th {
  font: 600 13px/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  text-align: right; padding: 10px 10px; border-bottom: 1px solid var(--edge); white-space: nowrap;
}
.carnage td { text-align: right; padding: 7px 10px; border-top: 1px solid rgba(31, 79, 143, 0.4); white-space: nowrap; }
.carnage th.left, .carnage td.left { text-align: left; }
.carnage .place { font: 700 20px/1 var(--head); width: 44px; text-align: center; }
.carnage .player { display: flex; align-items: center; gap: 10px; }
.carnage .player img { width: 22px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8)); }
.carnage .player a { font: 600 17px/1.1 var(--head); color: var(--text); }
.carnage .player a:hover { color: #8cc6ff; }
.carnage .big { font: 700 18px/1 var(--head); color: #fff; }
.carnage tr.first { background: linear-gradient(90deg, rgba(242, 193, 78, 0.14), transparent 55%); }
.carnage { table-layout: fixed; min-width: 680px; }
.carnage th.place { width: 56px; }
.carnage th.num { width: 78px; }
.carnage th.medal-col { width: 196px; }
.carnage .medals { display: flex; gap: 3px; justify-content: flex-end; }
.carnage .medals svg { width: 26px; height: 26px; }
.scroll { overflow-x: auto; }
.team-head { display: flex; align-items: center; gap: 12px; }
.team-head .score { margin-left: auto; font: 700 24px/1 var(--head); }
.panel.red { border-color: rgba(226, 80, 76, 0.7); }
.panel.red > h2 { background: linear-gradient(180deg, rgba(200, 60, 56, 0.5), rgba(70, 18, 18, 0.2)); border-color: rgba(226, 80, 76, 0.7); }
.panel.blue > h2 { background: linear-gradient(180deg, rgba(50, 120, 230, 0.55), rgba(16, 40, 80, 0.2)); }

/* medals */
.medal-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 14px; }
.medal-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid rgba(31, 79, 143, 0.6); border-radius: 4px; background: rgba(5, 14, 28, 0.45); }
.medal-card svg { width: 46px; height: 46px; flex: none; }
.medal-card .label { font: 700 16px/1.1 var(--head); letter-spacing: 0.04em; text-transform: uppercase; }
.medal-card .desc { color: var(--dim); font-size: 13px; line-height: 1.3; }
.medal-card .count { margin-left: auto; font: 700 22px/1 var(--head); color: #fff; }
.medal-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.medal-chip { position: relative; }
.medal-chip svg { width: 40px; height: 40px; }
.medal-chip .times { position: absolute; right: -4px; bottom: -4px; font: 700 12px/1 var(--head); background: #0b1a30; border: 1px solid var(--edge); border-radius: 8px; padding: 2px 4px; color: #fff; }
.per-player { width: 100%; border-collapse: collapse; }
.per-player td { padding: 8px 14px; border-top: 1px solid rgba(31, 79, 143, 0.4); vertical-align: middle; }
.per-player tr:first-child td { border-top: 0; }
.per-player .who { width: 220px; }
.per-player .player { display: flex; align-items: center; gap: 10px; }
.per-player .player img { width: 22px; height: 40px; object-fit: contain; }
.per-player .player a { font: 600 17px/1.1 var(--head); color: var(--text); }

/* a player's service record */
.record { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.record .figure-wrap {
  border: 1px solid var(--edge); border-radius: 6px; padding: 16px; display: flex; justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(61, 139, 255, 0.35), transparent 70%), var(--panel);
  box-shadow: 0 0 26px rgba(30, 90, 180, 0.25);
}
.record .figure-wrap img { height: 260px; width: auto; filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.8)); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1px; background: rgba(31, 79, 143, 0.5); }
.stat { background: var(--panel); padding: 12px 14px; }
.stat .n { font: 700 28px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.stat .k { font: 600 12px/1 var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
@media (max-width: 680px) { .record { grid-template-columns: 1fr; } .record .figure-wrap img { height: 200px; } }

footer { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; color: var(--faint); font-size: 13px; }
footer code { color: var(--dim); }

/* a confirmed player's name (their player key confirmed their games) */
a.confirmed::after, span.confirmed::after {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0l2 2.2 3-.4.4 3L16 8l-2.6 3.2-.4 3-3-.4L8 16l-2-2.2-3 .4-.4-3L0 8l2.6-3.2.4-3 3 .4z' fill='%233d8bff'/%3E%3Cpath d='M4.6 8.2l2.2 2.2 4.6-4.8' stroke='%23fff' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
}
.unconfirmed { color: var(--dim); font-size: 13px; }

/* the profile page's forms */
.form { display: grid; gap: 14px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field .label { font: 600 13px/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.field .note, .dim { color: var(--dim); font-size: 13px; }
.form input, .form textarea {
  font: 16px/1.3 var(--body); color: var(--text); background: rgba(3, 10, 22, 0.8);
  border: 1px solid var(--edge); border-radius: 3px; padding: 10px 12px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--edge-bright); box-shadow: 0 0 10px var(--glow); }
.form .join { justify-self: start; cursor: pointer; }
.join[disabled] { opacity: 0.6; cursor: wait; }
.join.quiet { background: transparent; border-color: var(--edge); box-shadow: none; color: var(--dim); cursor: pointer; }
.message { padding: 10px 12px; border-radius: 3px; border: 1px solid var(--edge); background: rgba(61, 139, 255, 0.08); }
.message.bad { border-color: rgba(226, 80, 76, 0.7); background: rgba(226, 80, 76, 0.1); color: #ffc2bf; }
.message.good { border-color: rgba(87, 210, 122, 0.6); background: rgba(87, 210, 122, 0.08); color: #c9f5d5; }
.profile-about { margin: 0 0 18px; color: var(--text); }

/* a hosted game's lister (index.html) */
.listed-by { font-size: 0.8em; font-weight: 500; color: var(--dim, #8fa6c8); }

/* a Halo PC (Custom Edition) map's badge after its name, and a listed
game's note on one (site.js, mapBadge and mapHostNote) */
.map-pc {
  display: inline-block; margin-left: 0.5em; padding: 2px 6px 1px; vertical-align: 0.15em;
  font: 700 10.5px/1.2 var(--head); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold); background: rgba(242, 193, 78, 0.1); border: 1px solid rgba(242, 193, 78, 0.5); border-radius: 3px;
}
/* how a game was reported (site.js, tierBadge): by its players, verified or
not; and the line saying so on its carnage report */
.tier {
  display: inline-block; margin-left: 0.5em; padding: 2px 6px 1px; vertical-align: 0.15em;
  font: 700 10.5px/1.2 var(--head); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  border-radius: 3px; color: var(--dim); border: 1px solid var(--faint);
}
.tier-verified { color: var(--open); background: rgba(87, 210, 122, 0.08); border-color: rgba(87, 210, 122, 0.5); }
.tier-player { color: var(--busy); background: rgba(240, 138, 75, 0.08); border-color: rgba(240, 138, 75, 0.5); }
.tier-line { margin: 0 0 14px; color: var(--dim); font-size: 14px; }
.tier-line .tier { margin-left: 0; }
/* kills by weapon (game and service record pages) */
.weapon-row { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.panel > .weapon-row { padding: 12px 14px; }
.weapon-chip {
  display: inline-flex; gap: 8px; align-items: baseline; padding: 3px 9px; border-radius: 3px;
  background: var(--panel-2); border: 1px solid rgba(31, 79, 143, 0.6); font-size: 13px;
}
.weapon-chip b { font: 700 15px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }

/* (a HaloMD map's, in blue) */
.map-pc.map-md { color: var(--accent); background: rgba(74, 163, 255, 0.1); border-color: rgba(74, 163, 255, 0.5); }
/* (a co-op game's, a campaign level's, in green; with a Halo PC or HaloMD
badge, the two side by side) */
.map-pc.map-coop { color: var(--open); background: rgba(87, 210, 122, 0.1); border-color: rgba(87, 210, 122, 0.5); }
.map-badges { display: inline-flex; gap: 4px; white-space: nowrap; }
.map-badges .map-pc + .map-pc { margin-left: 0; }
.game-art .map-badges .map-pc, .roster-title .map-pc { margin-left: 0; }
.roster-title > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.roster-title .map-pc { vertical-align: 0; }
/* a Halo PC or HaloMD game's notice (mapHostNote): the top notice's look, boxed */
.map-note {
  margin-top: 8px; padding: 7px 10px; display: flex; align-items: center; gap: 9px; max-width: 420px;
  font-size: 13px; line-height: 1.35; color: #f2d68a; overflow-wrap: anywhere;
  background: rgba(240, 190, 60, 0.1); border: 1px solid rgba(240, 190, 60, 0.4); border-radius: 3px;
}
.map-note .notice-icon { width: 18px; height: 18px; }
/* the warning sign of a listed Halo PC game, and its notice, opened over the
rows below it */
.map-warn { position: relative; display: inline-flex; }
.map-warn-sign {
  display: inline-flex; padding: 2px; border: 0; border-radius: 3px; background: none; color: #f0be3c; cursor: pointer;
}
.map-warn-sign:hover, .map-warn.open .map-warn-sign { background: rgba(240, 190, 60, 0.18); }
.map-warn-sign .notice-icon { width: 18px; height: 18px; }
.map-warn .map-note {
  display: none; position: absolute; z-index: 20; top: calc(100% + 6px); left: -12px; width: 320px; margin: 0;
  background: #1d1a10; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
.map-warn.open .map-note { display: flex; }
.map-note-title { font-weight: 600; color: #ffd76a; }
.map-note code { font-size: 12px; color: var(--text); white-space: nowrap; }

/* the notice at the top of every page (site.js, frame) */
.notice { background: rgba(240, 190, 60, 0.12); border-bottom: 1px solid rgba(240, 190, 60, 0.45); color: #f2d68a; }
.notice-inner { max-width: 1080px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; line-height: 1.35; }
.notice-icon { width: 20px; height: 20px; flex: none; color: #f0be3c; }
.notice a { color: #ffd76a; text-decoration: underline; }

/* game history: filters above the list, and the next page below it */
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--edge); }
.filters select {
  font: 15px/1.3 var(--body); color: var(--text); background: rgba(3, 10, 22, 0.8);
  border: 1px solid var(--edge); border-radius: 3px; padding: 7px 10px; min-width: 0; max-width: 100%;
}
.filters select:focus { outline: none; border-color: var(--edge-bright); box-shadow: 0 0 10px var(--glow); }
.filters select[hidden], .filters .toggle[hidden] { display: none; }
/* (the games page's co-op toggle) */
.filters .toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; user-select: none;
  font: 15px/1.3 var(--body); color: var(--text); background: rgba(3, 10, 22, 0.8);
  border: 1px solid var(--edge); border-radius: 3px;
}
.filters .toggle:hover { border-color: var(--edge-bright); }
.filters .toggle input { margin: 0; accent-color: var(--open); }
.more-row { display: flex; justify-content: center; padding: 12px; }
.more-row .join[hidden] { display: none; }

footer .credit { margin-top: 8px; opacity: 0.8; }
footer .powered { margin-top: 4px; opacity: 0.6; font-size: 12px; }

/* charts (site.js: lineChart, barChart) */
.chart { position: relative; padding: 10px 14px 6px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(127, 152, 189, 0.14); stroke-width: 1; }
.chart .axis { stroke: rgba(127, 152, 189, 0.4); stroke-width: 1; }
.chart .tick { fill: var(--dim); font: 500 12px var(--body); }
.chart .line { fill: none; stroke: #4aa3ff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: rgba(74, 163, 255, 0.16); }
.chart .bar { fill: #4aa3ff; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: rgba(74, 163, 255, 0.08); }
.chart .cross { stroke: rgba(215, 230, 251, 0.35); stroke-width: 1; }
.chart .dot { fill: #4aa3ff; stroke: var(--panel); stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; background: #06101f; border: 1px solid var(--edge-bright);
  border-radius: 4px; padding: 6px 9px; font-size: 13px; line-height: 1.3; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.chart-tip .k { color: var(--dim); } .chart-tip .v { color: var(--text); font-weight: 600; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); }

/* plain tables of totals (stats, service records) */
.totals { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.totals th { font: 600 12px/1 var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
  text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--edge); white-space: nowrap; }
.totals td { text-align: right; padding: 7px 12px; border-top: 1px solid rgba(31, 79, 143, 0.4); white-space: nowrap; }
.totals tr:first-child td { border-top: 0; }
.totals th.left, .totals td.left { text-align: left; }
.totals .name { display: flex; align-items: center; gap: 10px; font: 600 16px/1.15 var(--head); }
.totals .thumb { width: 46px; height: 32px; object-fit: cover; border: 1px solid var(--edge); border-radius: 2px; }
.totals .uptime { display: inline-block; width: 70px; height: 6px; margin-right: 8px; vertical-align: middle;
  background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.totals .uptime span { display: block; height: 100%; background: #4aa3ff; }

/* records */
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1px; background: rgba(31, 79, 143, 0.5); }
.records .record-card { background: var(--panel); padding: 12px 14px; display: grid; gap: 4px; }
.records .k { font: 600 12px/1.2 var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.records .n { font: 700 28px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.records .who { font-size: 14px; color: var(--dim); }

.totals .figure-sm { width: 18px; height: 30px; object-fit: contain; }
.totals td.ahead { color: var(--open); font-weight: 600; } .totals td.behind { color: var(--busy); font-weight: 600; }
.stats.tiles { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .stats.tiles { grid-template-columns: repeat(2, 1fr); } }

/* the front page's live line: one quiet row under the title */
.live-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: -12px 0 20px; color: var(--dim); font-size: 14px; }
.live-strip .item { display: inline-flex; align-items: center; }
.live-strip .item + .item::before { content: "·"; margin: 0 10px; color: var(--faint); }
.live-strip b { font: 600 15px/1 var(--body); color: var(--text); font-variant-numeric: tabular-nums; margin-right: 5px; }
.live-strip .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--open); margin-right: 7px; box-shadow: 0 0 6px var(--open); }
.live-strip a.item { color: var(--accent); }
.chart .line.estimated { stroke-dasharray: 5 4; opacity: 0.8; }
.chart .area.estimated { fill: rgba(74, 163, 255, 0.08); }
.chart-legend { display: flex; gap: 18px; padding: 0 14px 10px; color: var(--dim); font-size: 13px; }
.chart-legend .swatch { display: inline-block; width: 22px; height: 0; border-top: 2px solid #4aa3ff; vertical-align: middle; margin-right: 6px; }
.chart-legend .swatch.estimated { border-top-style: dashed; }

/* the admin panel (admin.html) */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: -10px 0 14px; color: var(--dim); font-size: 14px; }
.admin-bar b { color: var(--text); font-weight: 600; }
.admin-bar .join { margin-left: auto; }
.admin-tabs-wrap { margin-bottom: 18px; }
.admin-tabs { padding: 0; background: transparent; }
.admin-filters input, .admin-filters select {
  font: 15px/1.3 var(--body); color: var(--text); background: rgba(3, 10, 22, 0.8);
  border: 1px solid var(--edge); border-radius: 3px; padding: 7px 10px; min-width: 0; max-width: 100%;
}
.admin-filters input[type="number"] { width: 120px; }
.admin-filters input:focus, .admin-filters select:focus, .inline-form input:focus { outline: none; border-color: var(--edge-bright); box-shadow: 0 0 10px var(--glow); }
.admin-filters input::placeholder, .inline-form input::placeholder { color: var(--faint); }
.admin-filters input[type="date"] { color-scheme: dark; }
.admin-filters .check, .check { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 14px; }
.admin-status:not(:empty) { padding: 10px 14px 0; }
.join.small { font-size: 13px; letter-spacing: 0.1em; padding: 7px 11px; box-shadow: none; cursor: pointer; }
.join.danger { background: linear-gradient(180deg, #c8443f, #8a2420); border-color: #e2504c; }
.join.small.quiet { background: transparent; border-color: var(--edge); color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-table td { vertical-align: middle; font-size: 14px; }
.admin-table td.wrap { white-space: normal; overflow-wrap: anywhere; }
.admin-table tr.muted td { color: var(--faint); }
.admin-table tr.refused td { color: #ffc2bf; }
.admin-table tr.detail > td { background: rgba(3, 10, 22, 0.55); padding: 12px 14px; white-space: normal; }
.game-detail { display: grid; gap: 10px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.flag { display: inline-block; font: 600 12px/1 var(--head); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 7px;
  border: 1px solid var(--edge); border-radius: 3px; color: var(--dim); white-space: nowrap; }
.flag.good { color: #c9f5d5; border-color: rgba(87, 210, 122, 0.6); background: rgba(87, 210, 122, 0.08); }
.flag.bad { color: #ffc2bf; border-color: rgba(226, 80, 76, 0.7); background: rgba(226, 80, 76, 0.1); }
.flag.warn { color: #f2d68a; border-color: rgba(240, 190, 60, 0.6); background: rgba(240, 190, 60, 0.1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.form.wide { max-width: none; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input { font: 15px/1.3 var(--body); color: var(--text); background: rgba(3, 10, 22, 0.8);
  border: 1px solid var(--edge); border-radius: 3px; padding: 7px 10px; min-width: 0; width: 260px; max-width: 100%; }
.stat .n.small-n { font-size: 18px; }
dialog.step-up { padding: 0; width: min(440px, calc(100vw - 32px)); color: var(--text); margin: auto; }
dialog.step-up::backdrop { background: rgba(2, 6, 14, 0.7); }
.stats.profile-facts { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 560px) { .stats.profile-facts { grid-template-columns: repeat(2, 1fr); } }
