:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1d212a;
  --line: #2a2f3b;
  --text: #e8eaef;
  --muted: #8d95a6;
  --accent: #ffa31a;
  --accent-ink: #1a1100;
  --ok: #3ecf8e;
  --bad: #ff6b6b;
  --idle: #7d8597;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
/* the installed app (src/layout.php): no double-tap zoom (iOS wants it on the element tapped) */
html.app, html.app * { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.top { border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.brand img { display: block; border-radius: 7px; }
.brand b { color: var(--accent); font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand:hover img { filter: brightness(1.1); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
nav a.on { color: var(--accent-ink); background: var(--accent); }

main.wrap { padding-top: 28px; padding-bottom: 40px; min-height: 70vh; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 28px 0 10px; }
.lead { font-size: 18px; color: var(--muted); margin-top: 0; }
.crumb { margin: 0 0 8px; font-size: 14px; }

.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 40px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 24px; }
.card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; color: var(--text); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card.feature { grid-column: 1 / -1; }
.card h2 { margin: 0; font-size: 20px; }
.card p { margin: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .more { margin-top: auto; color: var(--accent); font-size: 14px; }
.big { font-size: 34px; font-weight: 700; line-height: 1.1; }
.big span { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 6px; }

/* "bot" next to a name on the scoreboard */
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; vertical-align: 1px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.badge.on { color: var(--ok); border-color: var(--ok); background: rgba(62, 207, 142, .1); }
.badge.off { color: var(--bad); border-color: var(--bad); background: rgba(255, 107, 107, .1); }
.badge.idle { color: var(--idle); border-color: var(--idle); }

.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-row h1 { margin: 0; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 16px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kv span { display: block; font-size: 13px; }
.kv b { font-size: 18px; word-break: break-word; }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; user-select: all; }

.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
/* the CS scoreboard's team headings: a stripe in the team's colour */
.table tr.team-head th { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text, inherit); border-left: 3px solid var(--line); }
.table tr.team-ct th { border-left-color: #4a90e2; }
.table tr.team-t th { border-left-color: #e2574a; }
/* a name with its avatar, and a time, stay whole: a narrow column wraps between words, never inside one */
.table .who, .table time span { white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .empty td { color: var(--muted); text-align: center; padding: 18px; }

.two { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.two > section { min-width: 0; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; gap: 0; } .hero h1 { font-size: 32px; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 16px 0; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stats b { display: block; font-size: 26px; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13px; }
/* A player's page for all games (src/profile.php): a card per game, the one shown marked */
.profile-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.profile-games a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--text); text-decoration: none; }
.profile-games a:hover { border-color: var(--muted); }
.profile-games a.on { border-color: var(--accent); background: var(--panel-2); }
.profile-games .title { display: block; font-weight: 600; margin-bottom: 4px; }
.profile-games a.on .title { color: var(--accent); }
.profile-games .nums { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.profile-games .nums b { color: var(--text); font-size: 17px; }
.profile-game > .title-row h2, .profile-game > h2 { margin-top: 18px; }

.steps, .notes { padding-left: 22px; }
.steps li, .notes li { margin: 8px 0; max-width: 70ch; }
.rooms th, .rooms code { white-space: nowrap; }
.rooms code { padding: 2px 6px; }
@media (max-width: 480px) { .rooms th, .rooms td { padding: 9px 8px; } }
.room-row { cursor: pointer; }
.room-row:hover td { background: var(--panel-2); }
.room-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.room-btn .caret { color: var(--muted); width: 1em; }
.room-details > td { background: var(--panel-2); }
.race-head { margin: 0 0 10px; }
.race h3 { font-size: 15px; margin: 14px 0 6px; }
.table.drivers { background: var(--panel); }
.drivers .ok { color: var(--ok); }
.race-nav { margin: 4px 0 18px; }
.play-panel { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.play-panel .kv { flex: 1 1 260px; }
.btn.play { font-size: 20px; padding: 12px 30px; }
.play-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.rooms .join { margin-left: 8px; padding: 3px 12px; font-size: 13px; }
.game-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 16, .9); }
.game-overlay[hidden] { display: none; }
.game-overlay iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; }
.game-overlay.playing { background: #000; }
.game-overlay.playing iframe { opacity: 1; pointer-events: auto; }
.game-overlay.playing .game-loading { display: none; }
.game-loading { position: relative; z-index: 1; width: min(92vw, 420px); padding: 24px 28px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.game-loading h2 { margin-top: 0; }
.game-loading progress { width: 100%; height: 10px; accent-color: var(--accent, #f5a623); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 18px 0; }
.stats b.car-stat { font-size: 17px; line-height: 1.3; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); margin-right: 6px; vertical-align: -1px; }
.race-chat { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.race-chat li { display: flex; gap: 8px; padding: 3px 0; overflow-wrap: anywhere; }
.race-chat time { color: var(--muted); font-size: 13px; flex: none; }
.race-chat b { flex: none; }
.race-chat .tag { flex: none; align-self: center; }
/* the race list sits in the page's narrow column: the map on top, the running order under it */
.live-map { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 8px 0 14px; }
.live-map canvas { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.live-map .live-order { margin: 0; padding-left: 22px; }
.live-map .live-order li { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.live-map .live-order .muted { margin-left: auto; font-size: 13px; }
.live-map > p { grid-column: 1 / -1; margin: 0; }
.race-say { display: flex; gap: 8px; margin-top: 10px; }
.race-say input { flex: 1; min-width: 0; }
.race-say-error { color: var(--bad); margin: 6px 0 0; }
pre.cmd { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin: 8px 0;
  overflow-x: auto; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }

.foot { color: var(--muted); font-size: 13px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--line); }


/* Players-online chart */
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 10px; }
.chart-head h2 { margin: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.seg button { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chart { position: relative; margin-top: 0; padding: 12px 14px 6px; }
.chart-sub { margin: 0 0 6px; font-size: 13px; }
.chart-plot { height: 220px; transition: opacity .15s; }
.chart-plot.loading { opacity: .5; }
.chart-plot svg { display: block; width: 100%; height: 220px; touch-action: pan-y; }
.chart-tip { position: absolute; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; white-space: nowrap; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.chart-tip b { display: block; font-size: 15px; }
.chart-tip span { color: var(--muted); }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-axis { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.c-empty { fill: var(--muted); font-size: 14px; }
.c-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-area { fill: var(--accent); opacity: .1; }
.c-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.c-cross { stroke: var(--muted); stroke-width: 1; }
.chart-table { margin-top: 8px; font-size: 14px; }
.chart-table summary { cursor: pointer; color: var(--muted); }
.chart-table table { margin-top: 8px; }

/* Header: menu + account link */
.bar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who { display: flex; gap: 4px; }
.who a { color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 14px; border: 1px solid var(--line); }
.who a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.who a.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* Forms and buttons */
.small { font-size: 13px; }
.auth { max-width: 420px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
textarea { resize: vertical; min-height: 120px; }
/* Groups of checkboxes (apply.php) */
.checks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checks legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 4px; }
.form .checks label { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 15px; }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.apply { max-width: 720px; }
.apply ul { padding-left: 20px; }
.application { margin-bottom: 12px; }
.who .count { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; font-size: 12px; font-weight: 700; text-align: center; color: var(--accent-ink); background: var(--accent); }
.who a.on .count { color: var(--accent); background: var(--accent-ink); }
.application.is-new { border-color: var(--accent); }
.app-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-about { white-space: normal; overflow-wrap: anywhere; border-left: 3px solid var(--line); padding-left: 10px; }
.application .actions { display: flex; gap: 6px; flex-wrap: wrap; }
input:not([type="hidden"]):not([type="checkbox"]), select, textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.btn {
  display: inline-block; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center;
  color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 16px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn.ghost { color: var(--text); background: transparent; border-color: var(--line); font-weight: 500; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { font-size: 13px; padding: 4px 10px; }
.btn.danger { color: var(--bad); }
.btn.steam { display: block; color: #fff; background: #1b2838; border-color: #3d5a75; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.notice { padding: 10px 14px; border-radius: 8px; border: 1px solid; font-size: 14px; }
.notice.ok { color: var(--ok); border-color: var(--ok); background: rgba(62, 207, 142, .08); }
.notice.error { color: var(--bad); border-color: var(--bad); background: rgba(255, 107, 107, .08); }
.actions form { display: flex; gap: 6px; flex-wrap: wrap; }
form.inline { margin: 0; }
/* admin page: an account's game ID (players without Steam) */
.game-id-form { display: flex; gap: 6px; margin-top: 4px; }
.game-id-form input { min-width: 0; width: 13em; }
.table-scroll { overflow-x: auto; }
/* a table wider than the screen scrolls sideways in its box (layout.php wraps each one) */
.table-scroll > .table { min-width: 100%; }
@media (max-width: 600px) {
  .table th, .table td { padding: 8px 5px; }
  .table th:first-child, .table td:first-child { padding-left: 10px; }
  .table th:last-child, .table td:last-child { padding-right: 10px; }
  .table th { font-size: 11px; letter-spacing: .02em; }
  .table { font-size: 14px; }
  /* columns a phone leaves out: the row's own page has them */
  .table .wide { display: none; }
}
.add-admin { margin-top: 12px; }
.table select { padding: 4px 8px; font-size: 13px; width: auto; }

/* Live chat */
.chat { padding: 0; margin-top: 0; overflow: hidden; }
.chat-log { list-style: none; margin: 0; padding: 10px 14px; height: 300px; overflow-y: auto; font-size: 14px; }
.chat-log li { display: flex; gap: 6px; align-items: baseline; padding: 2px 0; overflow-wrap: anywhere; }
.chat-log li.empty { color: var(--muted); justify-content: center; padding-top: 120px; }
.chat-log time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.chat-log b { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log b::after { content: ":"; }
.chat-log span { flex: 1; min-width: 0; }
.chat-log i { flex: none; font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.chat-hide { flex: none; margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; visibility: hidden; }
.chat-log li:hover .chat-hide, .chat-hide:focus-visible { visibility: visible; }
.chat-hide:hover { color: var(--bad); }
.chat-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }
.chat-foot { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-error { margin: 0; padding: 0 14px 10px; color: var(--bad); }
.chat-log li.cmd span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.chat-log li.reply span { color: var(--muted); }
.chat-log li.cmd i, .chat-log li.reply i { border-style: dashed; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-suggest[hidden] { display: none; }
.chat-suggest button {
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.chat-suggest button:hover, .chat-suggest button:focus-visible { border-color: var(--accent); }

/* Phone menu: the links fold behind a ☰ button */
.menu-btn { display: none; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px; cursor: pointer; line-height: 0; }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 700px) {
  .js .menu-btn { display: inline-block; margin-left: auto; }
  .js .bar-right { display: none; }
  .js .bar-right.open { display: flex; }
  .bar-right { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 4px 0 12px; }
  .bar-right nav, .bar-right .who { flex-direction: column; gap: 4px; }
  .bar-right nav a, .bar-right .who a { padding: 10px 12px; font-size: 16px; }
  .bar-right .who { border-top: 1px solid var(--line); padding-top: 8px; }
  .bar-right .who a { border: 0; }
}
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.who button.install { font: inherit; font-size: 14px; color: var(--accent); background: none; border: 1px solid var(--accent); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.who button.install[hidden] { display: none; }
@media (max-width: 700px) { .bar-right .who button.install { padding: 10px 12px; font-size: 16px; text-align: left; } }
.play-row { margin: 8px 0; }
.play-row label { font-size: 14px; }
.play-row select { width: auto; padding: 4px 8px; margin: 0 4px; }
.follow-list { list-style: none; padding: 0; margin: 6px 0 0; }
.follow-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.inline-form { margin: 0 0 0 auto; }
.title-row form { margin: 0; }

/* Period tabs (links) and the kill feed */
.seg a { font-size: 13px; color: var(--muted); border-radius: 999px; padding: 4px 12px; }
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a[aria-current="page"] { background: var(--panel-2); color: var(--text); }
.killfeed { list-style: none; margin: 0; padding: 8px 14px; font-size: 14px; min-height: 60px; }
.killfeed li { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; flex-wrap: wrap; }
.killfeed li.empty { justify-content: center; padding: 14px 0; }
.killfeed .weapon { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.killfeed time { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.table.weapons { max-width: 420px; }

/* Game nights */
.events { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.event { display: flex; align-items: center; gap: 16px; margin-top: 0; flex-wrap: wrap; }
.event-when { font-weight: 700; color: var(--accent); min-width: 130px; }
.event-what { flex: 1; min-width: 200px; }
.event-what p { margin: 2px 0 0; }
.event form { margin: 0; }

/* account avatars (src/avatars.php): a name with its face */
.avatar { border-radius: 50%; object-fit: cover; vertical-align: middle; background: var(--line); flex: none; }
.who { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
h1.who { display: flex; gap: 12px; }
.avatar-row { display: flex; gap: 14px; align-items: center; }

/* Red Alert 2's battles (public/ra2.php) */
.ra2-room { margin-bottom: 12px; }
.ra2-room.mine { border-color: var(--accent, #f5a623); }
.ra2-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.ra2-members { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.ra2-members li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ra2-members .ok { color: var(--ok); }
.ra2-members select, .ra2-settings select { width: auto; min-width: 0; padding: 4px 8px; }
.ra2-members label, .ra2-settings label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.ra2-members input[type=checkbox] { width: auto; }
.ra2-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; }
.ra2-settings { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0 10px; }
.ra2-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.game-close { position: absolute; top: 6px; right: 6px; z-index: 2; opacity: .6; }
.game-close:hover { opacity: 1; }
.game-full { position: absolute; top: 6px; right: 48px; z-index: 2; opacity: .6; }
.game-full:hover { opacity: 1; }
/* a touch screen's game has its sidebar's buttons in the top right corner: the close button keeps out of their way,
   in the battlefield's corner, faint */
@media (pointer: coarse) { .game-close { right: auto; left: 6px; opacity: .35; } }

/* A CS game's rounds (match.php): who won each, in order */
.rounds { display: flex; flex-wrap: wrap; gap: 3px; margin: 14px 0 0; }
.round { min-width: 22px; padding: 1px 4px; border-radius: 4px; font-size: 12px; font-weight: 600; text-align: center; }
.round.ct { background: rgba(74, 144, 226, .2); color: #4a90e2; }
.round.t { background: rgba(226, 87, 74, .2); color: #e2574a; }
.round.draw { background: var(--line); color: var(--muted); }
