/* OBA's archive uses the Replay Coach visual language. Loaded last so the
   existing archive, picker, pagination and profile behaviors stay intact. */
:root {
  --page: #101922;
  --paper: #192633;
  --ink: #edf1f5;
  --muted: #a4b1c1;
  --line: #2a3746;
  --rule: #354556;
  --accent: #6fa8f3;
  --brand: #efca75;
  --navy: #0d141c;
  --surface: #21303d;
  --input: #141e29;
  --hover: #203141;
  --green: #8bc5ac;
  --red: #f09e96;
  --white: #edf1f5;
  --sidebar-width: 238px;
  --radius: 10px;
}

html { scroll-padding-top: 28px; }
body.oba-coach-theme { background: var(--page); font: 14px/1.55 var(--sans); }
.oba-coach-theme [hidden] { display: none !important; }
.oba-coach-theme * { scrollbar-color: #3d5063 transparent; }
.oba-coach-theme a { text-underline-offset: 4px; }
.oba-coach-theme :is(button, a, input, select, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.oba-coach-theme .skip { position: fixed; z-index: 60; background: var(--brand); color: var(--navy); border-radius: 6px; }

/* Keep the same navigation links and accessible labels in the archive shell. */
.oba-coach-theme .site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: var(--navy);
  border: 0;
  border-right: 1px solid var(--line);
  z-index: 20;
}
.oba-coach-theme .masthead {
  width: 100%; max-width: none; height: 100dvh; min-height: 0;
  padding: 30px 17px 24px; margin: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  border: 0; overflow-y: auto;
}
.oba-coach-theme .brand {
  padding: 0 13px; margin-bottom: 51px; gap: 11px;
  font: 700 25px/1 var(--sans); letter-spacing: 2.5px;
}
.oba-coach-theme .brand-mark { width: 43px; height: 43px; }
.oba-coach-theme .brand-subtitle {
  display: block; font-size: 7px; font-weight: 500; line-height: 1.4;
  letter-spacing: 1.5px; margin-top: 7px; color: var(--muted);
}
.oba-coach-theme .sidebar-label {
  margin: 0 0 13px; padding: 0 15px;
  color: #8191a5; font-size: 9px; font-weight: 500; letter-spacing: 1.8px;
}
.oba-coach-theme .masthead nav {
  display: flex; flex-direction: column; gap: 4px; margin: 0;
  width: 100%; font-size: 12px; font-weight: 400;
}
.oba-coach-theme .masthead nav a,
.oba-coach-theme .masthead nav a:first-child {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 12px 13px;
  color: var(--muted); border: 0; border-radius: 7px;
}
.oba-coach-theme .masthead nav a svg {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.oba-coach-theme .masthead nav a:hover { background: #17212e; color: var(--ink); text-decoration: none; }
.oba-coach-theme .masthead nav a[aria-current], .oba-coach-theme .masthead nav a.is-current {
  background: #1b2835; color: var(--ink);
}
.oba-coach-theme .masthead nav a[aria-current] svg, .oba-coach-theme .masthead nav a.is-current svg { color: var(--brand); }
.oba-coach-theme .sidebar-bottom {
  margin-top: auto; padding: 20px 12px 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 10px; line-height: 1.6;
}
.oba-coach-theme .sidebar-bottom > span:last-child {
  display: block; margin-top: 8px; color: #8191a5;
}
.oba-coach-theme .archive-dot {
  display: inline-block; width: 6px; height: 6px; margin-right: 7px;
  border-radius: 50%; vertical-align: middle; background: var(--green);
}

/* The spacious canvas, compact headings and flat surfaces match Replay Coach. */
.oba-coach-theme main, .oba-coach-theme #profile-content {
  width: auto; max-width: 1600px;
  margin: 0 0 0 var(--sidebar-width); padding: 0 40px;
}
.oba-coach-theme .site-intro { padding-top: 36px; }
.oba-coach-theme .eyebrow {
  margin: 0 0 9px; color: #8191a5; font-size: 10px;
  font-weight: 700; line-height: 1.3; letter-spacing: 1.8px;
}
.oba-coach-theme h1, .oba-coach-theme .profile-heading h1 {
  font: 500 31px/1.25 var(--sans); letter-spacing: -.9px; margin: 0;
}
.oba-coach-theme :is(h2, .archive-heading h2, .section-heading h2, .profile-section h2, .rival-section .section-heading h2) {
  font: 500 19px/1.35 var(--sans); letter-spacing: -.4px;
}
.oba-coach-theme .site-intro-caption { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.oba-coach-theme .intro {
  min-height: 78px; padding: 23px 0 27px; gap: 20px;
  font-size: 12px;
}
.oba-coach-theme .facts { font-size: 12px; line-height: 1.7; }
.oba-coach-theme .facts b { font-weight: 500; }
.oba-coach-theme .facts span { margin: 0 8px; color: #8191a5; }
.oba-coach-theme .sync { font-size: 11px; gap: 15px; }
.oba-coach-theme .overview {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  gap: 22px; align-items: start; margin-bottom: 32px;
}
.oba-coach-theme :is(.ladder-section, .rival-section, .profile-section, .filters, .profile-totals) {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 23px;
}
.oba-coach-theme .section-heading { min-height: 38px; gap: 16px; }
.oba-coach-theme .ladder-section .section-heading,
.oba-coach-theme .rival-section .section-heading { margin-bottom: 18px; }
.oba-coach-theme .section-identity { gap: 10px; }
.oba-coach-theme .ranked-crown { width: 24px; height: 24px; }
.oba-coach-theme .notice { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 7px; font-size: 12px; }
.oba-coach-theme .empty, .oba-coach-theme .loading-state, .oba-coach-theme .load-error {
  font-size: 13px; color: var(--muted); line-height: 1.7;
}

/* Forms remain native and the searchable player picker retains its layering. */
.oba-coach-theme :is(input, select) {
  min-height: 42px; background: var(--input); border: 1px solid var(--rule);
  border-radius: 6px; color: var(--ink); font: 400 13px/20px var(--sans);
  padding: 10px 12px;
}
.oba-coach-theme select { padding-right: 30px; }
.oba-coach-theme select option { background: var(--input); }
.oba-coach-theme input::placeholder { color: #90a0b4; }
.oba-coach-theme :is(input, select):hover { border-color: #52677d; }
.oba-coach-theme :is(.rival-controls label, .player-field > label, .main-filters label, .profile-controls label, .profile-history-filters > label) {
  color: var(--muted); font-size: 11px; line-height: 1.5;
}
.oba-coach-theme .section-heading select { font-size: 12px; min-height: 38px; max-width: 180px; padding-top: 8px; padding-bottom: 8px; }
.oba-coach-theme .roster-search { margin-bottom: 16px; }
.oba-coach-theme .player-picker::after { top: 10px; }
.oba-coach-theme .player-options {
  background: #182532; border-color: #3e5267; border-radius: 7px;
  box-shadow: 0 14px 28px #0006;
}
.oba-coach-theme .player-choice { padding: 11px 12px; font-size: 13px; line-height: 1.5; }
.oba-coach-theme .player-choice small { font-size: 10px; line-height: 1.5; }
.oba-coach-theme .player-choice[aria-selected="true"] > span { color: var(--brand); }
.oba-coach-theme :is(.refresh, .page-button) {
  min-height: 36px; border: 1px solid #3d5063; border-radius: 6px;
  background: #1e2b38; color: var(--ink); padding: 8px 12px;
  font: 400 12px/18px var(--sans);
}
.oba-coach-theme :is(.refresh, .page-button):hover:not(:disabled) { border-color: var(--brand); background: #263748; }
.oba-coach-theme .refresh span { font-size: 18px; }
.oba-coach-theme .text-button, .oba-coach-theme .source-link { font-size: 12px; line-height: 1.6; }
.oba-coach-theme .text-button:hover, .oba-coach-theme .source-link { color: var(--brand); }

/* Rating and profile tables share the coach comparison-table type scale. */
.oba-coach-theme .standings-table :is(th, td) { padding: 11px 8px; border-color: var(--line); }
.oba-coach-theme .standings-table th {
  background: #17232f; color: var(--muted); font-size: 11px; font-weight: 400;
  line-height: 1.5;
}
.oba-coach-theme .standings-table th:first-child { width: 29px; }
.oba-coach-theme .standings-table th:nth-child(2) { width: 38%; }
.oba-coach-theme .standings-table th:nth-child(3) { width: 17%; }
.oba-coach-theme .standings-table th:nth-child(4) { width: 21%; }
.oba-coach-theme .standings-table td { height: 65px; }
.oba-coach-theme .standings-table td:first-child { font-size: 11px; }
.oba-coach-theme .standings-table .person-name { font-size: 13px; line-height: 1.5; font-weight: 500; }
.oba-coach-theme .standings-table .elo { font: 500 18px/1.4 var(--sans); letter-spacing: -.3px; }
.oba-coach-theme .standings-table tbody tr:first-child .elo { color: var(--brand); }
.oba-coach-theme .standings-table small, .oba-coach-theme .standings-table .elo small { font: 400 10px/1.5 var(--sans); }
.oba-coach-theme :is(.record, .streak) { font: 400 11px/1.6 var(--sans); }
.oba-coach-theme .positive, .oba-coach-theme .won { color: var(--green); }
.oba-coach-theme .negative, .oba-coach-theme .lost { color: var(--red); }
.oba-coach-theme .table-note, .oba-coach-theme .roster-pagination, .oba-coach-theme .pagination {
  color: var(--muted); font: 400 11px/1.65 var(--sans);
}
.oba-coach-theme .rival-controls { gap: 12px; margin-bottom: 16px; }
.oba-coach-theme .rival-controls select { margin-top: 6px; font-size: 13px; }
.oba-coach-theme .pair-picker { gap: 10px; }
.oba-coach-theme .pair-picker .player-picker > input { font-weight: 500; background:var(--input); border-color:var(--rule); }
.oba-coach-theme .score-line { padding: 21px 0; grid-template-columns: minmax(0,1fr) 100px; }
.oba-coach-theme .score { font: 500 32px/1.3 var(--sans); letter-spacing: -.8px; color: var(--muted); }
.oba-coach-theme .score .leading { color: var(--brand); }
.oba-coach-theme .score i { font: 400 19px/1.3 var(--sans); }
.oba-coach-theme .score-label { font-size: 13px; line-height: 1.55; }
.oba-coach-theme .score-label small, .oba-coach-theme .rival-section .result-note { font-size: 11px; line-height: 1.7; }
.oba-coach-theme .encounters h3 { font-size: 10px; font-weight: 500; letter-spacing: .7px; margin-bottom: 8px; }
.oba-coach-theme .encounter { padding-block: 12px; font-size: 12px; line-height: 1.5; }
.oba-coach-theme .encounter small { font-size: 10px; line-height: 1.5; }
.oba-coach-theme .encounter .winner { color: var(--brand); font-size: 11px; white-space: normal; }
.oba-coach-theme .rival-all { font-size: 11px; color: var(--brand); margin-top: 10px; padding-top: 15px; }

/* Match archive: restrained tabs, grouped filters and readable match cards. */
.oba-coach-theme .archive { border: 0; }
.oba-coach-theme .archive-heading { padding: 0 0 15px; align-items: center; }
.oba-coach-theme .archive-heading > span { font-size: 11px; }
.oba-coach-theme .archive-tabs {
  width: 100%; gap: 27px; padding: 0; margin-bottom: 21px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0;
}
.oba-coach-theme .archive-tabs button {
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; padding: 13px 0; font: 400 12px/1.6 var(--sans);
  color: var(--muted); flex: 0 0 auto;
}
.oba-coach-theme .archive-tabs button[aria-pressed="true"] {
  background: transparent; border-bottom-color: var(--brand); color: var(--brand); font-weight: 500;
}
.oba-coach-theme .archive-tabs button:hover { color: var(--ink); }
.oba-coach-theme .filters { margin-bottom: 18px; }
.oba-coach-theme .main-filters { gap: 15px; grid-template-columns: 1fr 1fr 1fr 1.35fr; }
.oba-coach-theme .main-filters input, .oba-coach-theme .main-filters select { font-size: 13px; }
.oba-coach-theme .filter-details > summary { color: var(--brand); font-size: 11px; line-height: 1.6; }
.oba-coach-theme .extra-filters { padding: 16px; gap: 12px; border: 1px solid var(--line); background: #17232f; border-radius: 7px; }
.oba-coach-theme .extra-filters select, .oba-coach-theme .month-filter input { padding: 9px 12px; font-size: 12px; min-height: 40px; }
.oba-coach-theme .extra-filters select { padding-right: 28px; }
.oba-coach-theme .month-filter { font-size: 11px; }
.oba-coach-theme #matches { gap: 13px; }
.oba-coach-theme .match-card {
  min-height: 118px; padding: 22px; gap: 23px;
  grid-template-columns: minmax(190px,.9fr) minmax(0,2fr) 100px;
  background: var(--paper); border-color: var(--line); border-radius: var(--radius);
}
.oba-coach-theme .match-card:hover { background: #1c2b39; border-color: #47607a; }
.oba-coach-theme .match-card .match-map { gap: 15px; }
.oba-coach-theme .match-map b { font: 500 15px/1.4 var(--sans); }
.oba-coach-theme .map-thumbnail { width: 65px; height: 65px; flex: 0 0 65px; border-radius: 7px; background: var(--input); }
.oba-coach-theme .match-map small { margin-top: 6px; font-size: 10px; line-height: 1.6; }
.oba-coach-theme .queue-badge { padding: 2px 6px; border-radius: 4px; font-size: 9px; background: #263b50; color: #9dc5fa; }
.oba-coach-theme .queue-badge.custom { background: #263544; color: var(--muted); }
.oba-coach-theme .match-sides { gap: 8px; grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); }
.oba-coach-theme .match-side { border-radius: 7px; background: #162330; padding: 11px 13px; }
.oba-coach-theme .match-side--win { border-left-color: #699780; }
.oba-coach-theme .match-side--loss { border-left-color: #b67c74; }
.oba-coach-theme .match-side .result-label { font-size: 9px; line-height: 1.6; margin-bottom: 7px; letter-spacing: .4px; }
.oba-coach-theme .result-label.loss { color: var(--red); }
.oba-coach-theme .match-side .player-line { gap: 10px; }
.oba-coach-theme .match-player { gap: 9px; font-size: 12px; line-height: 1.5; }
.oba-coach-theme .match-player a, .oba-coach-theme .match-player b { font-size: 12px; line-height: 1.5; font-weight: 500; }
.oba-coach-theme .match-player small { font-size: 10px; line-height: 1.5; }
.oba-coach-theme .match-player .civ-emblem { width: 36px; height: 36px; flex: 0 0 36px; }
.oba-coach-theme .match-player .player-rating { font-size: 12px; }
.oba-coach-theme .match-versus { font-size: 11px; color: #8191a5; }
.oba-coach-theme .match-card .match-date, .oba-coach-theme .match-card .match-date small { font-size: 10px; line-height: 1.6; }
.oba-coach-theme .match-card .match-link, .oba-coach-theme .match-link { color: var(--brand); font-size: 11px; line-height: 1.6; min-height: 36px; }
.oba-coach-theme .match-card .match-id, .oba-coach-theme .match-id { font-size: 9px; line-height: 1.6; }

/* Profiles and the match dialog are part of the same visual system. */
.oba-coach-theme .profile-heading { padding: 35px 0 26px; gap: 24px; border-bottom: 1px solid var(--line); }
.oba-coach-theme .profile-heading .back-link { font-size: 11px; color: var(--brand); margin-bottom: 16px; }
.oba-coach-theme .profile-heading .facts { margin-top: 11px; }
.oba-coach-theme .profile-picker { width: 270px; }
.oba-coach-theme .profile-controls { padding: 23px 0; gap: 16px; }
.oba-coach-theme .profile-controls select { min-width: 150px; }
.oba-coach-theme .profile-totals { gap: 22px; padding: 25px; margin-bottom: 24px; }
.oba-coach-theme .profile-totals > div + div { padding-left: 24px; }
.oba-coach-theme .profile-totals span, .oba-coach-theme .profile-totals small { font-size: 11px; line-height: 1.7; }
.oba-coach-theme .profile-totals strong { font: 500 29px/1.3 var(--sans); letter-spacing: -.6px; }
.oba-coach-theme .profile-section { margin-bottom: 24px; }
.oba-coach-theme .profile-section .section-heading { padding-bottom: 19px; }
.oba-coach-theme .profile-splits { gap: 22px; }
.oba-coach-theme .form-strip { gap: 7px; }
.oba-coach-theme .form-chip { min-width: 34px; height: 37px; border-radius: 5px; font: 500 12px/1.5 var(--sans); }
.oba-coach-theme .form-chip.win { background: #223d36; }
.oba-coach-theme .form-chip.loss { background: #3b2c30; color: var(--red); border-color: #a57270; }
.oba-coach-theme .stat-table { font-size: 12px; line-height: 1.6; }
.oba-coach-theme .stat-table th { font-size: 10px; background: #17232f; font-weight: 400; }
.oba-coach-theme .stat-table :is(th, td) { padding: 12px 8px; }
.oba-coach-theme .stat-table small { font-size: 10px; }
.oba-coach-theme .stat-table button { color: var(--brand); }
.oba-coach-theme .stat-name { gap: 9px; }
.oba-coach-theme .stat-name .civ-emblem { width: 32px; height: 32px; flex: 0 0 32px; }
.oba-coach-theme .stat-name .map-thumbnail { width: 40px; height: 40px; flex: 0 0 40px; }
.oba-coach-theme .elo-summary { font: 500 23px/1.4 var(--sans); }
.oba-coach-theme .elo-summary small, .oba-coach-theme .elo-svg text { font: 400 11px/1.6 var(--sans); }
.oba-coach-theme .elo-svg .elo-line { stroke: var(--brand); }
.oba-coach-theme .elo-svg a circle { fill: var(--brand); }
.oba-coach-theme .profile-history-filters { gap: 14px; grid-template-columns: 1fr 1.4fr 155px auto; }
.oba-coach-theme .profile-game {
  padding: 18px; margin-top: 13px; gap: 17px; border-radius: 8px;
  background: #162330; font-size: 12px; line-height: 1.6;
  grid-template-columns: 100px 80px minmax(0,1.1fr) minmax(0,1.5fr) 70px;
}
.oba-coach-theme .profile-game small, .oba-coach-theme .profile-game .game-result { font-size: 10px; line-height: 1.6; }
.oba-coach-theme .profile-game .game-players a { color: var(--ink); font-weight: 500; }
.oba-coach-theme .profile-game .game-players a:hover { color: var(--brand); }
.oba-coach-theme .profile-game .game-map { gap: 12px; }
.oba-coach-theme .profile-game .map-thumbnail { width: 56px; height: 56px; flex: 0 0 56px; }
.oba-coach-theme #profile-history { margin-top: 26px; }
.oba-coach-theme dialog {
  border: 1px solid #3c5064; border-radius: 12px; padding: 25px 30px 30px;
  background: var(--paper); color: var(--ink); box-shadow: 0 24px 90px #0008;
}
.oba-coach-theme dialog::backdrop { background: #080d14cf; backdrop-filter: blur(4px); }
.oba-coach-theme .dialog-top { font-size: 11px; line-height: 1.6; }
.oba-coach-theme dialog h2 { font: 500 24px/1.35 var(--sans); letter-spacing: -.5px; }
.oba-coach-theme .close { width: 36px; height: 36px; border-radius: 6px; color: var(--muted); font-size: 24px; }
.oba-coach-theme .match-report-heading .map-thumbnail { width: 96px; height: 96px; flex: 0 0 96px; }
.oba-coach-theme :is(.match-meta, .team h3, .team-player .delta, .setting) { font-size: 12px; line-height: 1.65; }
.oba-coach-theme .team-player { font-size: 13px; line-height: 1.6; }
.oba-coach-theme :is(.team-player small, .setting small, .match-note, .unknown-note, .match-sources .muted) { font-size: 11px; line-height: 1.75; }
.oba-coach-theme .section-label { font: 500 16px/1.5 var(--sans); }
.oba-coach-theme #about-dialog p { font-size: 13px; line-height: 1.85; color: var(--muted); }
.oba-coach-theme footer {
  margin-top: 31px; padding: 25px 0 28px; gap: 12px 19px;
  border-top: 1px solid var(--line); font-size: 10px;
}
.oba-coach-theme .footer-brand { color: var(--ink); font-size: 12px; font-weight: 500; letter-spacing: 1.5px; }
.oba-coach-theme footer p, .oba-coach-theme footer .game-credit { font-size: 10px; line-height: 1.75; }
.oba-coach-theme footer .text-button { font-size: 10px; }

@media (min-width: 1600px) {
  .oba-coach-theme main, .oba-coach-theme #profile-content { padding-inline: 55px; }
  .oba-coach-theme .overview { grid-template-columns: minmax(0,1.65fr) minmax(350px,1fr); gap: 28px; }
}
@media (max-width: 1250px) {
  :root { --sidebar-width: 204px; }
  .oba-coach-theme .masthead { padding-inline: 12px; }
  .oba-coach-theme .brand { padding-inline: 10px; }
  .oba-coach-theme main, .oba-coach-theme #profile-content { padding-inline: 28px; }
  .oba-coach-theme .overview { grid-template-columns: minmax(0,1.3fr) minmax(285px,1fr); gap: 18px; }
  .oba-coach-theme :is(.ladder-section, .rival-section, .profile-section, .filters) { padding: 19px; }
  .oba-coach-theme .match-card { grid-template-columns: minmax(0,1fr) 100px; gap: 17px; }
  .oba-coach-theme .match-card .match-map { grid-column: 1; grid-row: 1; }
  .oba-coach-theme .match-card .match-action { grid-column: 2; grid-row: 1; }
  .oba-coach-theme .match-sides { grid-column: 1 / -1; grid-row: 2; }
  .oba-coach-theme .main-filters { grid-template-columns: 1fr 1fr; }
  .oba-coach-theme .profile-history-filters { grid-template-columns: 1fr 1fr; }
  .oba-coach-theme .profile-game { grid-template-columns: minmax(0,1fr) 100px; gap: 12px 16px; }
  .oba-coach-theme .profile-game .game-map { grid-row: 1; grid-column: 1; }
  .oba-coach-theme .profile-game .match-link { grid-row: 1; grid-column: 2; }
  .oba-coach-theme .profile-game .game-date { grid-row: 2; grid-column: 1; }
  .oba-coach-theme .profile-game .game-result { grid-row: 2; grid-column: 2; text-align: right; }
  .oba-coach-theme .profile-game .game-players { grid-row: 3; grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .oba-coach-theme .overview { grid-template-columns: 1fr; gap: 21px; }
  .oba-coach-theme .rival-section .score-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
  .oba-coach-theme .rival-section .score-lines:has(> .score-line:only-child) { grid-template-columns: 1fr; }
  .oba-coach-theme .profile-splits { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 22px; }
  .oba-coach-theme .site-header { position: static; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .oba-coach-theme .masthead {
    width: 100%; height: auto; padding: 17px 26px;
    flex-direction: row; align-items: center; gap: 25px; overflow: visible;
  }
  .oba-coach-theme .brand { padding: 0; margin: 0; font-size: 23px; gap: 10px; letter-spacing: 2px; }
  .oba-coach-theme .brand-mark { width: 39px; height: 39px; }
  .oba-coach-theme .brand-subtitle { font-size: 6px; letter-spacing: 1.3px; margin-top: 6px; }
  .oba-coach-theme .sidebar-label, .oba-coach-theme .sidebar-bottom { display: none; }
  .oba-coach-theme .masthead nav { flex-direction: row; gap: 5px; width: auto; margin-left: auto; }
  .oba-coach-theme .masthead nav a, .oba-coach-theme .masthead nav a:first-child { padding: 10px 12px; min-height: 40px; gap: 8px; font-size: 12px; }
  .oba-coach-theme .masthead nav a svg { width: 16px; height: 16px; }
  .oba-coach-theme main, .oba-coach-theme #profile-content { margin-left: 0; padding-inline: 26px; width: 100%; }
  .oba-coach-theme .site-intro { padding-top: 30px; }
  .oba-coach-theme .overview { grid-template-columns: minmax(0,1.3fr) minmax(280px,1fr); gap: 18px; }
  .oba-coach-theme .rival-section .score-lines { display: block; }
  .oba-coach-theme .profile-controls { flex-wrap: wrap; }
  .oba-coach-theme .profile-totals { gap: 17px; }
  .oba-coach-theme .profile-totals > div + div { padding-left: 17px; }
}
@media (max-width: 760px) {
  .oba-coach-theme .overview { grid-template-columns: 1fr; gap: 20px; }
  .oba-coach-theme .profile-heading { align-items: flex-start; flex-direction: column; gap: 23px; }
  .oba-coach-theme .profile-picker { width: 100%; }
  .oba-coach-theme .profile-controls .source-link { margin-left: 0; }
  .oba-coach-theme .profile-totals { grid-template-columns: 1fr 1fr; gap: 23px; }
  .oba-coach-theme .profile-totals > div + div { border: 0; padding: 0; }
}
@media (max-width: 600px) {
  .oba-coach-theme .masthead {
    min-height: 0; flex-wrap: wrap; padding: 17px 18px 0; gap: 14px;
  }
  .oba-coach-theme .brand { font-size: 22px; }
  .oba-coach-theme .masthead nav {
    flex-basis: 100%; width: 100%; margin: 0; padding: 0 0 10px;
    justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none;
  }
  .oba-coach-theme .masthead nav a, .oba-coach-theme .masthead nav a:first-child {
    display: flex; padding: 10px 12px; white-space: nowrap; min-height: 42px;
  }
  .oba-coach-theme main, .oba-coach-theme #profile-content { padding-inline: 18px; }
  .oba-coach-theme .site-intro { padding-top: 27px; }
  .oba-coach-theme h1, .oba-coach-theme .profile-heading h1 { font-size: 27px; letter-spacing: -.6px; }
  .oba-coach-theme .site-intro-caption { font-size: 11px; line-height: 1.7; }
  .oba-coach-theme .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .oba-coach-theme .intro { padding: 22px 0 24px; flex-direction: column; align-items: flex-start; gap: 13px; }
  .oba-coach-theme .facts { font-size: 11px; max-width: 100%; }
  .oba-coach-theme .facts span { margin-inline: 4px; }
  .oba-coach-theme .sync { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; gap: 12px; font-size: 10px; }
  .oba-coach-theme .sync > span { max-width: none; text-align: left; }
  .oba-coach-theme :is(.ladder-section, .rival-section, .profile-section, .filters) { padding: 19px 15px; }
  .oba-coach-theme :is(h2, .section-heading h2, .archive-heading h2, .profile-section h2, .rival-section .section-heading h2) { font-size: 18px; }
  .oba-coach-theme .ladder-section .section-heading { flex-wrap: nowrap; gap: 10px; }
  .oba-coach-theme .section-heading select { max-width: 155px; font-size: 12px; }
  .oba-coach-theme :is(input, select, .player-picker > input, .pair-picker .player-picker > input) { font-size: 16px; min-height: 44px; }
  .oba-coach-theme .main-filters input, .oba-coach-theme .main-filters select { font-size: 16px; }
  .oba-coach-theme .standings-table :is(th, td) { padding-inline: 4px; }
  .oba-coach-theme .standings-table th:first-child { width: 23px; }
  .oba-coach-theme .standings-table th:nth-child(2) { width: 37%; }
  .oba-coach-theme .standings-table th:nth-child(3) { width: 17%; }
  .oba-coach-theme .standings-table th:nth-child(4) { width: 23%; }
  .oba-coach-theme .standings-table th { font-size: 10px; }
  .oba-coach-theme .standings-table .person-name { font-size: 14px; }
  .oba-coach-theme .standings-table .elo { font-size: 17px; }
  .oba-coach-theme .standings-table small { font-size: 9px; }
  .oba-coach-theme :is(.record, .streak) { font-size: 10px; }
  .oba-coach-theme .rival-controls select { font-size: 16px; }
  .oba-coach-theme .main-filters { grid-template-columns: 1fr; gap: 14px; }
  .oba-coach-theme .main-filters .search-label, .oba-coach-theme .main-filters > label:nth-child(3) { grid-column: auto; }
  .oba-coach-theme .archive-tabs { gap: 20px; overflow-x: auto; }
  .oba-coach-theme .archive-tabs button { font-size: 11px; white-space: nowrap; padding: 12px 0; }
  .oba-coach-theme .archive-tabs button::after { width: 8px; height: 8px; margin-left: 5px; }
  .oba-coach-theme .extra-filters { padding: 12px; }
  .oba-coach-theme .extra-filters select, .oba-coach-theme .month-filter input { font-size: 16px; width: 100%; }
  .oba-coach-theme .month-filter { gap: 6px; }
  .oba-coach-theme .month-filter input { max-width: 100%; }
  .oba-coach-theme .match-card { padding: 17px 15px; gap: 15px; grid-template-columns: minmax(0,1fr) 82px; }
  .oba-coach-theme .match-card .match-map { gap: 11px; }
  .oba-coach-theme .map-thumbnail { width: 56px; height: 56px; flex: 0 0 56px; }
  .oba-coach-theme .match-map b { font-size: 14px; }
  .oba-coach-theme .match-sides { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .oba-coach-theme .match-versus { display: none; }
  .oba-coach-theme .match-player a, .oba-coach-theme .match-player b { font-size: 14px; }
  .oba-coach-theme .match-player .civ-emblem { width: 37px; height: 37px; flex: 0 0 37px; }
  .oba-coach-theme .profile-heading { padding-top: 27px; }
  .oba-coach-theme .profile-controls label { flex: 1; }
  .oba-coach-theme .profile-controls select { min-width: 0; width: 100%; }
  .oba-coach-theme .profile-controls .source-link { flex-basis: 100%; padding: 0; }
  .oba-coach-theme .profile-totals { padding: 22px; }
  .oba-coach-theme .profile-totals strong { font-size: 28px; }
  .oba-coach-theme .profile-history-filters { gap: 12px; }
  .oba-coach-theme .profile-history-filters > label:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .oba-coach-theme .profile-game { padding: 15px 12px; grid-template-columns: minmax(0,1fr) 85px; gap: 12px; }
  .oba-coach-theme .profile-game .map-thumbnail { width: 52px; height: 52px; flex: 0 0 52px; }
  .oba-coach-theme .profile-game .game-map { gap: 10px; }
  .oba-coach-theme .stat-table :is(th, td) { padding: 12px 6px; }
  .oba-coach-theme .stat-table td:first-child { width: 40%; }
  .oba-coach-theme .stat-name .map-thumbnail { width: 35px; height: 35px; flex: 0 0 35px; }
  .oba-coach-theme dialog { padding: 21px 19px 24px; }
  .oba-coach-theme dialog h2 { font-size: 21px; }
  .oba-coach-theme .match-report-heading { gap: 14px; }
  .oba-coach-theme .match-report-heading .map-thumbnail { width: 74px; height: 74px; flex: 0 0 74px; }
  .oba-coach-theme footer { gap: 10px 16px; padding-bottom: 22px; }
  .oba-coach-theme footer .text-button { margin-left: auto; }
}
@media (max-width: 360px) {
  .oba-coach-theme main, .oba-coach-theme #profile-content { padding-inline: 13px; }
  .oba-coach-theme .masthead { padding-inline: 13px; }
  .oba-coach-theme .masthead nav { gap: 3px; }
  .oba-coach-theme .masthead nav a, .oba-coach-theme .masthead nav a:first-child { padding-inline: 9px; }
  .oba-coach-theme .section-identity { gap: 7px; }
  .oba-coach-theme .ranked-crown { width: 20px; height: 20px; }
  .oba-coach-theme .section-heading select { max-width: 136px; }
  .oba-coach-theme .archive-tabs { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .oba-coach-theme *, html { scroll-behavior: auto; transition: none; }
}
