@font-face {
  font-family: Disket;
  src: url("./fonts/Disket-Mono-Regular.7377dd2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Disket;
  src: url("./fonts/Disket-Mono-Bold.295e11b.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: RobotoLocal;
  src: url("./fonts/Roboto-Regular.a8d6ac0.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: RobotoLocal;
  src: url("./fonts/Roboto-Bold.75371f5.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f0e0c;
  --panel: #181817;
  --panel-2: #242424;
  --panel-3: #2d2d2d;
  --line: rgba(255, 255, 255, .12);
  --muted: rgba(255, 255, 255, .62);
  --text: #fff;
  --red: #ff3838;
  --red-dark: #841f1f;
  --orange: #d96d00;
  --blue: #2f66d7;
  --focus: #fff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: RobotoLocal, Arial, sans-serif;
  font-size: 16px;
  scrollbar-color: var(--red) rgba(255, 255, 255, .18);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(115deg, rgba(255, 56, 56, .12) 0 10%, transparent 10% 48%, rgba(255, 56, 56, .06) 48% 51%, transparent 51%),
    var(--bg);
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .18);
}

body::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 8px;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input {
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 30;
  transform: translateY(-120px);
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px 48px;
  background: #0b0b0a;
  border-bottom: 1px solid rgba(255, 56, 56, .18);
}

.dashboard-header__left {
  display: flex;
  align-items: center;
}

.dashboard-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.dashboard-logo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dashboard-logo {
  display: block;
  width: 104px;
  height: auto;
}

.dashboard-menu {
  display: contents;
}

.dashboard-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px;
  cursor: pointer;
}

.dashboard-menu-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

.dashboard-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dashboard-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.dashboard-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-nav a,
.dashboard-login,
.dashboard-button,
.dashboard-chip,
.dashboard-table a,
.dashboard-empty a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: #fff;
  font-family: Disket, RobotoLocal, sans-serif;
  font-size: .78rem;
  letter-spacing: .12em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.dashboard-nav a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, .74);
}

.dashboard-nav a:hover,
.dashboard-nav a:focus,
.dashboard-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--red);
}

.dashboard-login {
  justify-self: end;
  padding: 11px 16px;
  border-color: rgba(255, 255, 255, .18);
}

#dashboard-player-login {
  display: none;
}

.dashboard-login:hover,
.dashboard-login:focus {
  border-color: var(--red);
  color: var(--red);
}

.dashboard-shell {
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 90px;
}

.dashboard-title,
.dashboard-section-title {
  margin: 0;
  font-family: Disket, RobotoLocal, sans-serif;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dashboard-app {
  display: grid;
  gap: 22px;
}

.dashboard-toolbar,
.dashboard-panel,
.dashboard-card,
.dashboard-match,
.dashboard-loading,
.dashboard-empty,
.dashboard-error {
  background: rgba(24, 24, 23, .94);
  border: 1px solid var(--line);
}

.dashboard-toolbar,
.dashboard-panel {
  padding: 20px;
}

.dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.dashboard-field {
  display: grid;
  gap: 7px;
}

.dashboard-field label,
.dashboard-label {
  color: var(--muted);
  font-family: Disket, RobotoLocal, sans-serif;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dashboard-input,
.dashboard-select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  background: #111;
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.dashboard-select:focus,
.dashboard-button:focus,
.dashboard-chip:focus,
.dashboard-table a:focus,
.dashboard-login:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.dashboard-nav a:focus {
  outline: none;
}

.dashboard-button {
  min-height: 48px;
  padding: 0 18px;
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
}

.dashboard-button:hover {
  background: #fff;
  color: #0b0b0a;
}

.dashboard-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.dashboard-button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .24);
}

.dashboard-button--wide {
  width: 100%;
}

.dashboard-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.dashboard-total {
  white-space: nowrap;
}

.dashboard-total__mobile {
  display: none;
}

.dashboard-title {
  font-size: clamp(1.45rem, 3vw, 2.8rem);
}

.dashboard-section-title {
  font-size: clamp(1.15rem, 2vw, 1.9rem);
}

.dashboard-muted {
  color: var(--muted);
}

.dashboard-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.dashboard-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.dashboard-table--leaderboard {
  table-layout: fixed;
}

.dashboard-table--leaderboard th:nth-child(1),
.dashboard-table--leaderboard td:nth-child(1) {
  width: 84px;
  padding-right: 8px;
}

.dashboard-table--leaderboard th:nth-child(2),
.dashboard-table--leaderboard td:nth-child(2) {
  width: auto;
  padding-left: 8px;
}

.dashboard-table--leaderboard th:nth-child(3),
.dashboard-table--leaderboard td:nth-child(3) {
  width: 140px;
}

.dashboard-table--leaderboard th:nth-child(4),
.dashboard-table--leaderboard td:nth-child(4) {
  width: 150px;
}

.dashboard-table th,
.dashboard-table td {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  text-align: left;
  vertical-align: middle;
}

.dashboard-table th {
  background: #111;
  color: #fff;
  font-family: Disket, RobotoLocal, sans-serif;
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dashboard-table td {
  background: var(--panel-2);
}

.dashboard-table tr:hover td {
  background: var(--panel-3);
}

.dashboard-table .number,
.dashboard-table th.number {
  text-align: right;
}

.dashboard-table th:last-child,
.dashboard-table td:last-child {
  white-space: nowrap;
}

.dashboard-table a {
  justify-content: flex-start;
  min-height: 30px;
  color: #fff;
  font-size: .76rem;
  text-transform: none;
}

.dashboard-table-action {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: Disket, RobotoLocal, sans-serif;
  font-size: .76rem;
  letter-spacing: .12em;
  padding: 0;
  text-align: left;
  text-transform: none;
}

.dashboard-table a:hover,
.dashboard-table-action:hover,
.dashboard-table-action:focus {
  color: var(--red);
}

.dashboard-player-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-replay-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 3px;
  border: none;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
}

.dashboard-replay-copy:hover,
.dashboard-replay-copy:focus {
  border-color: var(--red);
}

.dashboard-replay-copy img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1) brightness(1.1);
}

.dashboard-copy-toast {
  position: fixed;
  z-index: 80;
  max-width: min(320px, calc(100vw - 24px));
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(12, 12, 11, .96);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  font-family: RobotoLocal, Arial, sans-serif;
  font-size: .9rem;
  line-height: 1.25;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.dashboard-copy-toast.is-fading {
  opacity: 0;
  transform: translateY(-4px);
}

.dashboard-table--selectable tbody tr {
  cursor: pointer;
}

.dashboard-table--selectable tbody tr:focus td,
.dashboard-table--selectable tbody tr:hover td {
  background: var(--panel-3);
}

.dashboard-win {
  color: #35c84a;
}

.dashboard-loss {
  color: #ff3838;
}

.dashboard-flag {
  display: inline-flex;
  align-items: center;
}

.dashboard-flag img {
  display: block;
  width: 34px;
  height: 24px;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.dashboard-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.dashboard-stat {
  display: grid;
  gap: 9px;
  align-content: center;
  min-height: 104px;
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  text-align: center;
}

.dashboard-stat strong {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
}

.dashboard-stat strong.dashboard-stat-value--text {
  font-size: clamp(1rem, 1.7vw, 1.55rem);
  overflow-wrap: normal;
  white-space: nowrap;
}

.dashboard-stat span {
  color: var(--muted);
  font-family: Disket, RobotoLocal, sans-serif;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-profile-head,
.dashboard-versus {
  display: grid;
  gap: 18px;
}

.dashboard-profile-head {
  grid-template-columns: minmax(0, 1fr) minmax(560px, .78fr);
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.dashboard-player-name {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 3.25rem);
  line-height: 1;
  text-transform: none;
  word-break: break-word;
}

.dashboard-profile-head .dashboard-stats {
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  gap: 10px;
}

.dashboard-profile-head .dashboard-stat {
  min-height: 78px;
  padding: 12px 10px;
  gap: 7px;
}

.dashboard-profile-head .dashboard-stat strong {
  font-size: clamp(1.25rem, 2.2vw, 2.15rem);
}

.dashboard-profile-head .dashboard-stat strong.dashboard-stat-value--text {
  font-size: clamp(.9rem, 1.45vw, 1.45rem);
}

.dashboard-chart {
  min-height: 300px;
}

.dashboard-chart-frame {
  position: relative;
  touch-action: pan-y;
}

.dashboard-chart svg {
  display: block;
  width: 100%;
  height: 300px;
  cursor: crosshair;
  touch-action: pan-y;
  user-select: none;
}

.dashboard-chart path,
.dashboard-chart polyline {
  vector-effect: non-scaling-stroke;
}

.dashboard-chart-hit {
  fill: transparent;
  pointer-events: all;
}

.dashboard-chart-line,
.dashboard-chart-point,
.dashboard-chart-tooltip {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.dashboard-chart-frame.is-chart-active .dashboard-chart-line,
.dashboard-chart-frame.is-chart-active .dashboard-chart-point,
.dashboard-chart-frame.is-chart-active .dashboard-chart-tooltip {
  opacity: 1;
}

.dashboard-chart-line {
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .78);
  transform: translateX(-1px);
}

.dashboard-chart-point {
  width: 11px;
  height: 11px;
  border: 2px solid #0b0b0a;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
}

.dashboard-chart-tooltip {
  display: grid;
  gap: 6px;
  min-width: 150px;
  font-family: RobotoLocal, Arial, sans-serif;
  color: #fff;
  line-height: 1.15;
}

.dashboard-chart-tooltip strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.dashboard-chart-tooltip span,
.dashboard-chart-tooltip em {
  color: #fff;
  font-size: .95rem;
  font-style: normal;
  font-weight: 700;
}

.dashboard-chart-detail {
  display: none;
}

.dashboard-modal-open {
  overflow: hidden;
}

.dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.dashboard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.dashboard-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  border: 1px solid var(--line);
  background: #111;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.dashboard-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: Disket, RobotoLocal, sans-serif;
  font-size: 1rem;
}

.dashboard-modal__close:hover,
.dashboard-modal__close:focus {
  border-color: var(--red);
  color: var(--red);
}

.dashboard-modal__body .dashboard-match-list {
  gap: 0;
}

.dashboard-match-list {
  display: grid;
  gap: 14px;
}

.dashboard-match {
  padding: 12px;
}

.dashboard-mobile-match {
  display: none;
}

.dashboard-match__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: .9rem;
}

.dashboard-chip {
  min-height: 34px;
  padding: 8px 10px;
  border-color: var(--red);
  background: var(--red);
}

.dashboard-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.dashboard-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.dashboard-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-selected .dashboard-chip {
  text-transform: none;
}

.dashboard-versus {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  text-align: center;
  min-height: 146px;
}

.dashboard-versus h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.dashboard-versus__player {
  display: grid;
  gap: 8px;
}

.dashboard-versus__player--left {
  justify-items: end;
  text-align: right;
}

.dashboard-versus__player--right {
  justify-items: start;
  text-align: left;
}

.dashboard-versus__player strong {
  font-size: clamp(1.75rem, 2.9vw, 3rem);
  line-height: 1;
}

.dashboard-versus__score {
  display: grid;
  grid-template-columns: 116px auto 116px;
  align-items: center;
  gap: 26px;
}

.dashboard-versus__wins {
  display: grid;
  min-height: 104px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
}

.dashboard-loading,
.dashboard-empty,
.dashboard-error {
  padding: 26px;
}

.dashboard-error {
  border-color: rgba(255, 56, 56, .55);
  color: #ffd7d7;
}

.dashboard-empty a {
  color: var(--red);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .dashboard-header {
    min-height: 88px;
    grid-template-columns: auto 44px;
    justify-items: stretch;
    padding: 16px 20px;
  }

  .dashboard-header__left {
    justify-self: start;
  }

  .dashboard-logo {
    width: 84px;
  }

  .dashboard-menu-toggle {
    display: inline-grid;
    align-content: center;
    justify-self: end;
  }

  .dashboard-menu {
    position: fixed;
    top: 96px;
    right: 14px;
    z-index: 35;
    display: grid;
    width: min(78vw, 320px);
    max-height: calc(100dvh - 112px);
    gap: 14px;
    overflow: auto;
    padding: 20px;
    border: 1px solid rgba(255, 56, 56, .24);
    background: rgba(8, 8, 7, .96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 24px));
    transition: transform .24s ease, opacity .24s ease;
  }

  .dashboard-header.is-menu-open .dashboard-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .dashboard-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .dashboard-nav a,
  .dashboard-login {
    width: 100%;
    justify-content: flex-start;
    padding-left: 0;
  }

  .dashboard-login {
    justify-self: stretch;
    border-color: rgba(255, 255, 255, .24);
    padding-left: 14px;
  }

  .dashboard-shell {
    width: min(100% - 28px, 1500px);
    padding-top: 34px;
  }

  .dashboard-profile-head,
  .dashboard-toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-profile-head {
    gap: 14px;
  }

  .dashboard-toolbar {
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .dashboard-total__desktop {
    display: none;
  }

  .dashboard-total__mobile {
    display: inline;
  }

  .dashboard-nav a,
  .dashboard-login,
  .dashboard-button,
  .dashboard-chip {
    font-size: .68rem;
    letter-spacing: .08em;
  }

  .dashboard-table {
    min-width: 0;
    table-layout: fixed;
  }

  .dashboard-panel--leaderboard {
    padding-left: 0;
    padding-right: 0;
  }

  .dashboard-panel--leaderboard .dashboard-title-row,
  .dashboard-panel--leaderboard .dashboard-button--wide {
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
  }

  .dashboard-table--leaderboard th:nth-child(1),
  .dashboard-table--leaderboard td:nth-child(1) {
    width: 42px;
    padding-right: 4px;
    text-align: left;
  }

  .dashboard-table--leaderboard th:nth-child(2),
  .dashboard-table--leaderboard td:nth-child(2) {
    width: auto;
    padding-left: 4px;
  }

  .dashboard-table--leaderboard th:nth-child(3),
  .dashboard-table--leaderboard td:nth-child(3) {
    width: 52px;
  }

  .dashboard-table--leaderboard th:nth-child(4),
  .dashboard-table--leaderboard td:nth-child(4) {
    width: 76px;
    white-space: nowrap;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 14px 8px;
    overflow-wrap: anywhere;
  }

  .dashboard-table th {
    font-size: .62rem;
  }

  .dashboard-table a {
    font-size: .72rem;
    letter-spacing: .08em;
  }

  .dashboard-table-action {
    font-size: .72rem;
    letter-spacing: .08em;
  }

  .dashboard-flag img {
    width: 28px;
    height: 20px;
  }

  .dashboard-profile-head {
    padding: 12px;
    gap: 10px;
  }

  .dashboard-profile-head .dashboard-muted {
    margin: 6px 0 0;
    font-size: .86rem;
  }

  .dashboard-player-name {
    font-size: clamp(1.35rem, 8vw, 2rem);
    line-height: 1.05;
  }

  .dashboard-profile-head .dashboard-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .dashboard-versus {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
  }

  .dashboard-versus__player,
  .dashboard-versus__player--left,
  .dashboard-versus__player--right {
    justify-items: center;
    text-align: center;
  }

  .dashboard-versus__score {
    grid-template-columns: 78px auto 78px;
    gap: 12px;
    justify-content: center;
  }

  .dashboard-versus__wins {
    min-height: 72px;
    font-size: 1.85rem;
  }

  .dashboard-profile-head .dashboard-stat {
    min-height: 52px;
    padding: 6px 3px;
    gap: 4px;
  }

  .dashboard-profile-head .dashboard-stat strong {
    font-size: clamp(.88rem, 4.3vw, 1.2rem);
  }

  .dashboard-profile-head .dashboard-stat span {
    font-size: .43rem;
    letter-spacing: .06em;
  }

  .dashboard-chart-tooltip {
    min-width: 132px;
  }

  .dashboard-chart-tooltip strong {
    font-size: .92rem;
  }

  .dashboard-chart-tooltip span,
  .dashboard-chart-tooltip em {
    font-size: .82rem;
  }

  .dashboard-chart-detail {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .55);
    cursor: pointer;
    pointer-events: auto;
    padding: 0;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .dashboard-chart-detail img {
    display: block;
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: invert(1) brightness(1.1);
  }

  .dashboard-modal {
    align-items: center;
    padding: 16px;
  }

  .dashboard-modal__panel {
    max-height: 82vh;
    padding: 18px 12px 12px;
  }

  .dashboard-match {
    padding: 0;
    overflow: hidden;
  }

  .dashboard-match > .dashboard-table-wrap,
  .dashboard-match > .dashboard-match__meta {
    display: none;
  }

  .dashboard-replay-copy {
    display: none;
  }

  .dashboard-mobile-match {
    display: grid;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(16, 16, 15, .72);
  }

  .dashboard-mobile-match__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    color: var(--muted);
    font-family: Disket, RobotoLocal, sans-serif;
    font-size: clamp(.55rem, 2.8vw, .78rem);
    letter-spacing: .08em;
    line-height: 1.2;
  }

  .dashboard-mobile-match__top > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .6rem;
  }

  .dashboard-mobile-match__status {
    flex: 0 0 auto;
    color: var(--red);
    text-transform: uppercase;
    font-size: .7rem;
  }

  .dashboard-mobile-match__names {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 45%);
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .dashboard-mobile-match__player {
    min-width: 0;
  }

  .dashboard-mobile-match__player--right {
    text-align: right;
  }

  .dashboard-mobile-match__flag {
    display: none;
  }

  .dashboard-mobile-match__flag .dashboard-flag img {
    width: clamp(28px, 9vw, 44px);
    height: clamp(20px, 6.4vw, 32px);
  }

  .dashboard-mobile-match__name {
    --name-fit-min: .22rem;
    --name-fit-max: 1.08rem;
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-family: Disket, RobotoLocal, sans-serif;
    font-size: clamp(.7rem, 4.2vw, 1.08rem);
    letter-spacing: .05em;
    line-height: 1.05;
    text-decoration: none;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
  }

  .dashboard-mobile-match__name--long {
    --name-fit-min: .2rem;
    --name-fit-max: .92rem;
    font-size: clamp(.62rem, 3.4vw, .92rem);
    letter-spacing: .035em;
  }

  .dashboard-mobile-match__name--xlong {
    --name-fit-min: .18rem;
    --name-fit-max: .78rem;
    font-size: clamp(.52rem, 2.7vw, .78rem);
    letter-spacing: .02em;
  }

  .dashboard-mobile-match__elo {
    display: flex;
    gap: .45em;
    min-width: 0;
    overflow: hidden;
    font-family: RobotoLocal, Arial, sans-serif;
    font-size: clamp(.72rem, 3.6vw, .98rem);
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
  }

  .dashboard-mobile-match__elo--right {
    justify-content: flex-end;
    text-align: right;
  }

  .dashboard-mobile-match__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(5px, 2vw, 10px);
    min-width: 0;
  }

  .dashboard-mobile-match__score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(4px, 1.6vw, 8px);
    min-width: 56px;
    font-family: Disket, RobotoLocal, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: .9;
    white-space: nowrap;
  }

  .dashboard-mobile-match__score span:nth-child(2) {
    color: var(--muted);
    font-size: .58em;
  }

  .dashboard-mobile-match__rounds {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, 1vw, 6px);
    min-width: 0;
    overflow: hidden;
  }

  .dashboard-mobile-match__round {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: clamp(1px, .6vw, 3px);
    min-width: 0;
    max-width: 86px;
    padding: clamp(3px, 1.2vw, 5px) clamp(3px, 1.4vw, 8px);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--muted);
    font-family: Disket, RobotoLocal, sans-serif;
    font-size: clamp(.48rem, 2.6vw, .86rem);
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
  }

  .dashboard-mobile-match--many-rounds .dashboard-mobile-match__summary {
    gap: 5px;
  }

  .dashboard-mobile-match--many-rounds .dashboard-mobile-match__score {
    min-width: 48px;
    font-size: clamp(1.15rem, 7vw, 1.9rem);
  }

  .dashboard-mobile-match--many-rounds .dashboard-mobile-match__round {
    padding: 3px clamp(2px, 1vw, 5px);
    font-size: clamp(.42rem, 2.2vw, .68rem);
  }

  .dashboard-mobile-match--lots-of-rounds .dashboard-mobile-match__round {
    padding: 3px 2px;
    font-size: clamp(.36rem, 1.8vw, .56rem);
  }

  .dashboard-mobile-match--lots-of-rounds .dashboard-mobile-match__flag .dashboard-flag img {
    width: 28px;
    height: 20px;
  }

  .dashboard-mobile-match--lots-of-rounds .dashboard-mobile-match__name {
    font-size: clamp(.52rem, 2.8vw, .76rem);
  }

  .dashboard-mobile-match__action {
    justify-self: start;
    max-width: 100%;
    min-height: 1rem;
    height: 1.4rem;
  }
}
