body.dashboard .game-history {
  display: flex;
  width: min(940px, 94vw);
  max-width: 940px;
  max-height: min(86vh, 780px);
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem);
}

body.dashboard .game-history [hidden] {
  display: none !important;
}

body.dashboard .game-history[data-mode="guest"] {
  width: min(520px, 92vw);
}

body.dashboard .game-history__guest {
  position: relative;
  z-index: 1;
  text-align: center;
}

body.dashboard .game-history__guest p {
  max-width: 38rem;
  margin: 1rem auto 1.4rem;
  color: rgba(232, 227, 239, 0.82);
}

body.dashboard .game-history__signin {
  display: inline-flex;
  min-width: 150px;
  align-items: center;
  justify-content: center;
}

body.dashboard .game-history__account {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(229, 189, 99, 0.4) transparent;
}

body.dashboard .game-history__head {
  padding-right: 2.5rem;
}

body.dashboard .game-history__status {
  margin: 1rem 0 0;
  color: rgba(224, 219, 233, 0.72);
  text-align: center;
}

body.dashboard .game-history__status:empty {
  display: none;
}

body.dashboard .game-history__statistics {
  margin-top: 1rem;
}

body.dashboard .game-history__primary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.dashboard .game-history__metric {
  display: grid;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  align-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 13px;
  text-align: center;
}

body.dashboard .game-history__metric strong {
  color: #f3d895;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1;
}

body.dashboard .game-history__metric span {
  color: rgba(220, 215, 230, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}

body.dashboard .game-history__secondary-metrics {
  margin: 10px 0 0;
  color: rgba(214, 208, 224, 0.66);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

body.dashboard .game-history__secondary-metrics strong {
  color: rgba(244, 232, 210, 0.92);
}

body.dashboard .game-history__dashboard-section {
  margin-top: 1.4rem;
}

body.dashboard .game-history__dashboard-section > h4,
body.dashboard .game-history__recent-title {
  margin: 0;
  color: rgba(244, 232, 210, 0.92);
  font-family: "Cinzel", serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.dashboard .game-history__dashboard-section > p {
  margin: 4px 0 0;
  color: rgba(214, 208, 224, 0.64);
  font-size: 0.72rem;
}

body.dashboard .game-history__chart {
  margin-top: 10px;
  padding: 10px 10px 4px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
}

body.dashboard .game-history__chart-legend {
  display: flex;
  min-width: max-content;
  padding: 2px 8px 6px;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
  color: rgba(226, 220, 234, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
}

body.dashboard .game-history__chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.dashboard .game-history__chart-key {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

body.dashboard .game-history__chart-viewport {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(229, 189, 99, 0.38) transparent;
  touch-action: pan-x pan-y;
}

body.dashboard .game-history__chart-viewport:focus-visible {
  outline: 2px solid rgba(229, 189, 99, 0.42);
  outline-offset: -2px;
}

body.dashboard .game-history__chart svg {
  display: block;
  width: var(--progress-chart-width, 100%);
  min-width: 100%;
  height: auto;
  overflow: visible;
}

body.dashboard .game-history__chart-grid {
  stroke: rgba(229, 225, 240, 0.1);
  stroke-width: 1;
}

body.dashboard .game-history__chart-bar {
  transition: filter 140ms ease, opacity 140ms ease;
}

body.dashboard .game-history__chart-bar--1,
body.dashboard .game-history__chart-key--1 { fill: #e1bb67; background: #e1bb67; }
body.dashboard .game-history__chart-bar--2,
body.dashboard .game-history__chart-key--2 { fill: #a58add; background: #a58add; }
body.dashboard .game-history__chart-bar--3,
body.dashboard .game-history__chart-key--3 { fill: #70a9cf; background: #70a9cf; }
body.dashboard .game-history__chart-bar--4,
body.dashboard .game-history__chart-key--4 { fill: #67b5a4; background: #67b5a4; }
body.dashboard .game-history__chart-bar--5,
body.dashboard .game-history__chart-key--5 { fill: #bd7f9a; background: #bd7f9a; }

body.dashboard .game-history__chart-bar-hit {
  fill: transparent;
  pointer-events: all;
}

body.dashboard .game-history__chart-bar-group {
  cursor: default;
  outline: none;
}

body.dashboard .game-history__chart-bar-group:hover .game-history__chart-bar,
body.dashboard .game-history__chart-bar-group:focus .game-history__chart-bar {
  filter: brightness(1.17);
  opacity: 1;
}

body.dashboard .game-history__chart-bar-group:focus .game-history__chart-bar {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.5px;
}

body.dashboard .game-history__chart-value {
  fill: rgba(247, 241, 229, 0.9);
  font: 700 9px "Space Grotesk", sans-serif;
  pointer-events: none;
}

body.dashboard .game-history__chart-axis-label {
  fill: rgba(214, 208, 224, 0.62);
  font: 11px "Space Grotesk", sans-serif;
}

body.dashboard .game-history__chart-game-label {
  fill: rgba(231, 225, 237, 0.76);
  font-size: 10px;
  font-weight: 600;
}

body.dashboard .game-history__chart-tooltip {
  pointer-events: none;
}

body.dashboard .game-history__chart-tooltip rect {
  fill: rgba(16, 14, 29, 0.97);
  stroke: rgba(229, 189, 99, 0.28);
}

body.dashboard .game-history__chart-tooltip text {
  fill: rgba(244, 239, 247, 0.92);
  font: 10px "Space Grotesk", sans-serif;
}

body.dashboard .game-history__chart-tooltip text:first-of-type {
  fill: #f1d797;
  font-weight: 700;
}

body.dashboard .game-history__table-wrap {
  max-width: 100%;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-color: rgba(229, 189, 99, 0.4) transparent;
}

body.dashboard .game-history__comparison-table,
body.dashboard .game-history__detail-table {
  width: 100%;
  min-width: 570px;
  border-collapse: collapse;
  font-size: 0.76rem;
}

body.dashboard .game-history__comparison-table th,
body.dashboard .game-history__detail-table th,
body.dashboard .game-history__comparison-table td,
body.dashboard .game-history__detail-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(229, 225, 240, 0.08);
  text-align: right;
  white-space: nowrap;
}

body.dashboard .game-history__comparison-table th:first-child,
body.dashboard .game-history__comparison-table td:first-child,
body.dashboard .game-history__detail-table th:first-child,
body.dashboard .game-history__detail-table td:first-child,
body.dashboard .game-history__detail-table th:nth-child(2),
body.dashboard .game-history__detail-table td:nth-child(2) {
  text-align: left;
}

body.dashboard .game-history__comparison-table th,
body.dashboard .game-history__detail-table th {
  color: rgba(229, 189, 99, 0.82);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.dashboard .game-history__comparison-table td,
body.dashboard .game-history__detail-table td {
  color: rgba(235, 230, 240, 0.8);
}

body.dashboard .game-history__comparison-current td {
  background: rgba(229, 189, 99, 0.07);
}

body.dashboard .game-history__comparison-table td:first-child,
body.dashboard .game-history__detail-table td:first-child,
body.dashboard .game-history__detail-table td:nth-child(2),
body.dashboard .game-history__detail-table td:last-child {
  color: rgba(247, 241, 229, 0.96);
  font-weight: 700;
}

body.dashboard .game-history__character-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

body.dashboard .game-history__character-list li {
  display: flex;
  min-width: 0;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

body.dashboard .game-history__character-list strong {
  overflow: hidden;
  color: rgba(247, 241, 229, 0.96);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dashboard .game-history__character-list span,
body.dashboard .game-history__section-empty {
  color: rgba(214, 208, 224, 0.64);
  font-size: 0.7rem;
}

body.dashboard .game-history__recent-title {
  margin: 1.25rem 0 0;
}

body.dashboard .game-history__list {
  display: grid;
  flex: 0 0 auto;
  gap: 12px;
  margin-top: 1rem;
  padding: 2px 8px 8px 2px;
}

body.dashboard .game-history__empty {
  margin: 1.5rem 0;
  color: rgba(232, 227, 239, 0.72);
  text-align: center;
}

body.dashboard .game-history__item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(229, 225, 240, 0.1);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.dashboard .game-history__item[open] {
  background: rgba(255, 255, 255, 0.052);
  border-color: rgba(229, 189, 99, 0.2);
}

body.dashboard .game-history__item-toggle {
  display: grid;
  gap: 11px;
  padding: clamp(14px, 2vw, 20px);
  cursor: pointer;
  list-style: none;
}

body.dashboard .game-history__details-label {
  justify-self: end;
  color: #e5bd63;
  font-size: 0.72rem;
  font-weight: 700;
}

body.dashboard .game-history__item-toggle::-webkit-details-marker {
  display: none;
}

body.dashboard .game-history__item-toggle:focus-visible {
  outline: 2px solid rgba(229, 189, 99, 0.55);
  outline-offset: -3px;
}

body.dashboard .game-history__item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.dashboard .game-history__date {
  margin: 0;
  color: #f4e8d2;
  font-weight: 700;
}

body.dashboard .game-history__all-players {
  color: rgba(218, 213, 227, 0.75);
  font-size: 0.8rem;
  line-height: 1.45;
}

body.dashboard .game-history__all-players strong {
  color: rgba(247, 241, 229, 0.94);
}

body.dashboard .game-history__state {
  flex: 0 0 auto;
  padding: 4px 9px;
  color: rgba(239, 232, 246, 0.78);
  background: rgba(125, 90, 240, 0.12);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.dashboard .game-history__state[data-status="completed"] {
  color: #f2d897;
  background: rgba(229, 189, 99, 0.1);
}

body.dashboard .game-history__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  margin: 0;
}

body.dashboard .game-history__summary > span {
  color: rgba(218, 213, 227, 0.72);
  font-size: 0.82rem;
}

body.dashboard .game-history__summary strong {
  color: rgba(247, 241, 229, 0.95);
}

body.dashboard .game-history__detail {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2vw, 20px);
  border-top: 1px solid rgba(229, 225, 240, 0.09);
}

body.dashboard .game-history__detail-table-wrap {
  margin-top: 0;
}

body.dashboard .game-history__detail-table {
  min-width: max-content;
}

body.dashboard .game-history__detail-table td:first-child {
  position: sticky;
  left: 0;
  background: #151321;
}

body.dashboard .game-history__detail-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #151321;
}

body.dashboard .game-history__stage-winners {
  padding: 12px;
  background: rgba(5, 7, 20, 0.22);
  border-radius: 12px;
}

body.dashboard .game-history__stage-winners h4 {
  margin: 0 0 8px;
  color: rgba(244, 232, 210, 0.92);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.dashboard .game-history__stage-winner-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 5px 16px;
}

body.dashboard .game-history__stage-winner-list p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: rgba(205, 199, 217, 0.7);
  font-size: 0.72rem;
}

body.dashboard .game-history__stage-winner-list strong,
body.dashboard .game-history__overall-winner strong {
  color: rgba(247, 241, 229, 0.95);
}

body.dashboard .game-history__overall-winner {
  margin: 10px 0 0;
  padding-top: 9px;
  color: rgba(218, 213, 227, 0.74);
  border-top: 1px solid rgba(229, 225, 240, 0.08);
  font-size: 0.76rem;
}

body.dashboard .game-history__retry {
  display: block;
  margin: 1rem auto 0;
}

@media (max-width: 699px) {
  body.dashboard .game-history {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 1.25rem 1rem;
    border-radius: 20px;
  }

  body.dashboard .game-history__account {
    padding-right: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.dashboard .game-history__list {
    flex: 0 0 auto;
    max-height: none;
    padding-right: 3px;
    overflow: visible;
  }

  body.dashboard .game-history__primary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dashboard .game-history__character-list {
    grid-template-columns: 1fr;
  }

  body.dashboard .game-history__item-head {
    display: grid;
  }

  body.dashboard .game-history__state {
    justify-self: start;
  }

  body.dashboard .game-history__summary {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.dashboard .game-history {
    animation: none;
  }

  body.dashboard .game-history__chart-bar {
    transition: none;
  }
}



/* Quiet, editorial statistics layout ----------------------------------- */
body.dashboard .game-history {
  width: min(1040px, calc(100vw - 40px));
  max-width: 1040px;
  max-height: min(90dvh, 860px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(214, 220, 244, 0.12);
  border-radius: 18px;
  background: rgba(12, 15, 27, 0.97);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
  animation: none;
}
body.dashboard .game-history::before { display: none; }

body.dashboard .game-history__account { padding-right: clamp(2px, 1vw, 10px); }
body.dashboard .game-history__head { padding: 0 48px 22px 0; border-bottom: 1px solid rgba(220, 225, 245, 0.12); }
body.dashboard .game-history__head .eyebrow { color: rgba(185, 194, 222, 0.64); }
body.dashboard .game-history__head h3 { margin-top: 4px; color: #f3f1f7; background: none; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.025em; text-shadow: none; -webkit-text-fill-color: currentColor; }

body.dashboard .game-history__dashboard-section,
body.dashboard .game-history__performance { margin-top: 0; padding: clamp(24px, 4vw, 36px) 0; border-bottom: 1px solid rgba(220, 225, 245, 0.11); }
body.dashboard .game-history__performance { border-bottom: 0; }
body.dashboard .game-history__dashboard-section > h4,
body.dashboard .game-history__recent-title,
body.dashboard .game-history__performance-toggle {
  margin: 0 0 14px;
  color: rgba(244, 240, 232, 0.94);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
body.dashboard .game-history__performance-toggle { display: flex; margin: 0; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
body.dashboard .game-history__performance-toggle::-webkit-details-marker { display: none; }
body.dashboard .game-history__performance-toggle > span:last-child { color: rgba(229, 189, 99, 0.78); font-size: 1.25rem; font-weight: 400; line-height: 1; transition: transform 180ms ease; }
body.dashboard .game-history__performance[open] .game-history__performance-toggle > span:last-child { transform: rotate(45deg); }
body.dashboard .game-history__performance-toggle:focus-visible { border-radius: 3px; outline: 2px solid rgba(125, 183, 222, 0.62); outline-offset: 5px; }
body.dashboard .game-history__table-wrap { margin-top: 0; overflow-x: auto; }
body.dashboard .game-history__comparison-table { min-width: 480px; font-size: 0.84rem; }
body.dashboard .game-history__comparison-table th,
body.dashboard .game-history__comparison-table td { padding: 11px 8px; border-bottom: 1px solid rgba(220, 225, 245, 0.09); }
body.dashboard .game-history__comparison-table th { color: rgba(179, 188, 216, 0.62); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; }
body.dashboard .game-history__comparison-table td { color: rgba(233, 236, 247, 0.84); }
body.dashboard .game-history__comparison-table td:nth-child(2),
body.dashboard .game-history__comparison-table td:nth-child(3) { color: #f5e2ae; font-variant-numeric: tabular-nums; }
body.dashboard .game-history__comparison-current td { background: rgba(229, 189, 99, 0.035); }

body.dashboard .game-history__games { padding-bottom: clamp(28px, 4vw, 40px); }
body.dashboard .game-history__list { display: block; margin-top: 0; padding: 0; }
body.dashboard .game-history__item { padding: 20px 0; overflow: visible; border: 0; border-bottom: 1px solid rgba(220, 225, 245, 0.09); border-radius: 0; background: transparent; box-shadow: none; }
body.dashboard .game-history__item:last-child { padding-bottom: 0; border-bottom: 0; }
body.dashboard .game-history__item-head { display: flex; margin-bottom: 13px; align-items: baseline; justify-content: space-between; gap: 16px; }
body.dashboard .game-history__date { color: rgba(235, 237, 247, 0.9); font-size: 0.82rem; font-weight: 600; }
body.dashboard .game-history__result { color: rgba(178, 187, 214, 0.68); font-size: 0.74rem; text-align: right; }
body.dashboard .game-history__result strong { color: #e8d6a4; font-weight: 600; }
body.dashboard .game-history__participants { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; list-style: none; }
body.dashboard .game-history__participant { display: grid; min-width: 0; padding: 9px 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid rgba(220, 225, 245, 0.055); }
body.dashboard .game-history__participant-identity,
body.dashboard .game-history__character { display: flex; min-width: 0; align-items: center; gap: 10px; }
body.dashboard .game-history__character-image { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; object-fit: cover; object-position: top center; background: rgba(255, 255, 255, 0.04); }
body.dashboard .game-history__participant-names { display: grid; min-width: 0; line-height: 1.25; }
body.dashboard .game-history__participant-names strong { overflow: hidden; color: rgba(243, 244, 249, 0.92); font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard .game-history__participant-names small { color: rgba(174, 183, 210, 0.6); font-size: 0.68rem; }
body.dashboard .game-history__participant-score { display: grid; color: rgba(236, 225, 196, 0.9); font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
body.dashboard .game-history__participant-score small { color: rgba(229, 189, 99, 0.72); font-size: 0.59rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

body.dashboard .game-history__statistics { margin-top: 0; }
body.dashboard .game-history__performance-toggle + .game-history__statistics { margin-top: 20px; }
body.dashboard .game-history__selected-name { margin: 0 0 14px; color: #f2ead4; font: 600 clamp(1.25rem, 2.6vw, 1.65rem)/1.25 "Space Grotesk", sans-serif; letter-spacing: -0.02em; text-transform: none; }
body.dashboard .game-history__primary-metrics { display: grid; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
body.dashboard .game-history__metric { display: flex; min-height: 0; padding: 4px 18px; align-items: flex-start; flex-direction: column; gap: 3px; border-left: 1px solid rgba(220, 225, 245, 0.11); border-radius: 0; background: transparent; text-align: left; }
body.dashboard .game-history__metric:first-child { padding-left: 0; border-left: 0; }
body.dashboard .game-history__metric dt { color: rgba(177, 185, 211, 0.61); font-size: 0.65rem; font-weight: 600; line-height: 1.35; order: 2; }
body.dashboard .game-history__metric dd { margin: 0; color: #f0dfad; font-size: clamp(1.25rem, 3vw, 1.65rem); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; order: 1; }
body.dashboard .game-history__secondary-metrics { margin: 16px 0 0; color: rgba(173, 182, 208, 0.56); font-size: 0.7rem; text-align: left; }
body.dashboard .game-history__secondary-metrics strong { color: rgba(224, 226, 235, 0.82); font-weight: 600; }

body.dashboard .game-history__performance .game-history__dashboard-section { padding: 28px 0 0; border: 0; }
body.dashboard .game-history__chart { margin-top: 12px; padding: 8px 0 0; border-radius: 0; background: transparent; }
body.dashboard .game-history__character-list { display: block; margin-top: 2px; }
body.dashboard .game-history__character-list li { padding: 10px 0; border-bottom: 1px solid rgba(220, 225, 245, 0.075); border-radius: 0; background: transparent; }
body.dashboard .game-history__character-list li:last-child { border-bottom: 0; }
body.dashboard .game-history__character-list strong { font-size: 0.8rem; }
body.dashboard .game-history__character-list > li > span:last-child { color: rgba(177, 185, 211, 0.62); }

@media (max-width: 699px) {
  body.dashboard .game-history { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 22px 16px 26px; border-radius: 14px; }
  body.dashboard .game-history__head { padding-bottom: 18px; }
  body.dashboard .game-history__dashboard-section,
  body.dashboard .game-history__performance { padding-block: 24px; }
  body.dashboard .game-history__comparison-table { min-width: 390px; font-size: 0.78rem; }
  body.dashboard .game-history__comparison-table th,
  body.dashboard .game-history__comparison-table td { padding-inline: 6px; }
  body.dashboard .game-history__participants { grid-template-columns: 1fr; }
  body.dashboard .game-history__item { padding-block: 18px; }
  body.dashboard .game-history__item-head { display: grid; gap: 4px; }
  body.dashboard .game-history__result { text-align: left; }
  body.dashboard .game-history__primary-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  body.dashboard .game-history__metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  body.dashboard .game-history__metric:nth-child(even) { padding-right: 0; }
  body.dashboard .game-history__character-image { width: 30px; height: 30px; flex-basis: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  body.dashboard .game-history__performance-toggle > span:last-child { transition: none; }
}

/* Full-page statistics view -------------------------------------------- */
body.dashboard .game-history-page {
  position: fixed;
  inset: var(--site-header-height, 70px) 0 0;
  z-index: 900;
  display: block;
  width: 100%;
  height: calc(100dvh - var(--site-header-height, 70px));
  overflow: hidden;
  background: #0c0f1b;
}

body.dashboard .game-history-page.hidden { display: none; }

body.dashboard .game-history-page .game-history {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(28px, 3.5vw, 52px) clamp(24px, 5vw, 80px) clamp(44px, 6vw, 76px);
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #0c0f1b;
  box-shadow: none;
  overflow: hidden;
}

body.dashboard .game-history-page .game-history__close {
  position: absolute;
  top: clamp(18px, 2.5vw, 32px);
  right: clamp(18px, 3.5vw, 48px);
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(220, 225, 245, 0.16);
  border-radius: 50%;
  background: transparent;
  color: rgba(239, 241, 248, 0.86);
  font: 300 1.55rem/1 "Space Grotesk", sans-serif;
  cursor: pointer;
}
body.dashboard .game-history-page .game-history__close:hover,
body.dashboard .game-history-page .game-history__close:focus-visible { color: #fff; border-color: rgba(125, 183, 222, 0.58); outline: none; }
body.dashboard .game-history-page .game-history__page-head h3 { margin: 4px 0 0; }

body.dashboard .game-history-page .game-history__account {
  width: 100%;
  height: 100%;
  padding-right: clamp(4px, 1vw, 14px);
}

body.dashboard .game-history-page .game-history__participants {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body.dashboard .game-history-page .game-history__comparison-table {
  width: 100%;
}

body.dashboard .game-history-page .game-history__participant.is-winner {
  padding-inline: 10px;
  background: rgba(65, 139, 99, 0.12);
}

body.dashboard .game-history-page .game-history__participant.is-loser {
  padding-inline: 10px;
  background: rgba(160, 72, 82, 0.11);
}

body.dashboard .overall-ranking-table tbody tr.is-winner td {
  background-color: rgba(65, 139, 99, 0.12);
}

body.dashboard .overall-ranking-table tbody tr.is-loser td {
  background-color: rgba(160, 72, 82, 0.1);
}

@media (max-width: 699px) {
  body.dashboard .game-history-page .game-history {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 22px 16px 36px;
    border-radius: 0;
  }

  body.dashboard .game-history-page .game-history__account { padding-right: 2px; }
  body.dashboard .game-history-page .game-history__participants { grid-template-columns: 1fr; }
  body.dashboard .game-history-page .game-history__table-wrap { overflow: visible; }
  body.dashboard .game-history-page .game-history__comparison-table { min-width: 0; table-layout: fixed; }
  body.dashboard .game-history-page .game-history__comparison-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(58px, .65fr) minmax(76px, .8fr);
  }
  body.dashboard .game-history-page .game-history__comparison-table th,
  body.dashboard .game-history-page .game-history__comparison-table td {
    display: block;
    min-width: 0;
    padding: 10px 5px;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

/* Light editorial treatment for the full-page statistics view ---------- */
body.dashboard .game-history-page {
  --stats-bg: #282d42;
  --stats-text: #f5f4f1;
  --stats-text-soft: #d5d9e7;
  --stats-text-muted: #aeb7d1;
  --stats-line: rgba(229, 233, 248, 0.17);
  --stats-line-soft: rgba(229, 233, 248, 0.1);
  --stats-accent: #e5bd63;
  background:
    radial-gradient(ellipse 78% 46% at 50% -12%, rgba(229, 189, 99, 0.075), rgba(229, 189, 99, 0.025) 42%, transparent 72%),
    linear-gradient(180deg, #2d3144 0%, #282d40 48%, #222738 100%);
}

body.dashboard .game-history-page .game-history {
  background:
    radial-gradient(ellipse 78% 46% at 50% -12%, rgba(229, 189, 99, 0.075), rgba(229, 189, 99, 0.025) 42%, transparent 72%),
    linear-gradient(180deg, #2d3144 0%, #282d40 48%, #222738 100%);
  color: var(--stats-text);
}

body.dashboard .game-history-page .game-history__account {
  display: grid;
  max-width: 1280px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

body.dashboard .game-history-page .game-history__head {
  padding: 0 56px 26px 0;
  border-bottom-color: var(--stats-line);
}

body.dashboard .game-history-page .game-history__head .eyebrow {
  margin-bottom: 7px;
  color: var(--stats-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

body.dashboard .game-history-page .game-history__head h3 {
  color: var(--stats-text);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
}

body.dashboard .game-history-page .game-history__status,
body.dashboard .game-history-page .game-history__guest p,
body.dashboard .game-history-page .game-history__empty {
  color: var(--stats-text-soft);
}

body.dashboard .game-history-page .game-history__dashboard-section,
body.dashboard .game-history-page .game-history__performance {
  border-bottom-color: var(--stats-line);
}

body.dashboard .game-history-page .game-history__dashboard-section > h4,
body.dashboard .game-history-page .game-history__recent-title,
body.dashboard .game-history-page .game-history__performance-toggle {
  color: var(--stats-text);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

body.dashboard .game-history-page .game-history__dashboard-section > p,
body.dashboard .game-history-page .game-history__secondary-metrics,
body.dashboard .game-history-page .game-history__character-list > li > span:last-child,
body.dashboard .game-history-page .game-history__section-empty {
  color: var(--stats-text-muted);
}

body.dashboard .game-history-page .game-history__overview {
  padding-block: clamp(28px, 4vw, 42px);
}

body.dashboard .game-history-page .game-history__games,
body.dashboard .game-history-page .game-history__performance {
  padding-block: clamp(30px, 4vw, 44px) 0;
  border-bottom: 0;
}

body.dashboard .game-history-page .game-history__table-wrap {
  scrollbar-color: rgba(229, 189, 99, 0.55) transparent;
}

body.dashboard .game-history-page .game-history__comparison-table,
body.dashboard .game-history-page .game-history__detail-table {
  font-size: 0.86rem;
}

body.dashboard .game-history-page .game-history__comparison-table th,
body.dashboard .game-history-page .game-history__detail-table th {
  padding: 13px 10px;
  color: var(--stats-text-muted);
  border-bottom-color: var(--stats-line);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.dashboard .game-history-page .game-history__comparison-table td,
body.dashboard .game-history-page .game-history__detail-table td {
  padding: 14px 10px;
  color: var(--stats-text-soft);
  border-bottom-color: var(--stats-line-soft);
  font-variant-numeric: tabular-nums;
}

body.dashboard .game-history-page .game-history__comparison-table td:nth-child(2),
body.dashboard .game-history-page .game-history__comparison-table td:nth-child(3) {
  color: var(--stats-text-soft);
}

body.dashboard .game-history-page .game-history__comparison-current td {
  color: var(--stats-text);
  background: rgba(229, 189, 99, 0.09);
}

body.dashboard .game-history-page .game-history__comparison-current td:nth-child(2),
body.dashboard .game-history-page .game-history__comparison-current td:nth-child(3) {
  color: #f3dfaa;
}

body.dashboard .game-history-page .game-history__list {
  margin-top: 0;
}

body.dashboard .game-history-page .game-history__item {
  padding-block: 24px;
  border-bottom-color: var(--stats-line);
}

body.dashboard .game-history-page .game-history__date,
body.dashboard .game-history-page .game-history__participant-names strong {
  color: var(--stats-text);
}

body.dashboard .game-history-page .game-history__result,
body.dashboard .game-history-page .game-history__participant-names small {
  color: var(--stats-text-muted);
}

body.dashboard .game-history-page .game-history__result strong {
  color: #f2dda6;
}

body.dashboard .game-history-page .game-history__participant {
  padding-block: 11px;
  border-top-color: var(--stats-line-soft);
}

body.dashboard .game-history-page .game-history__participant-score {
  color: var(--stats-text-soft);
}

body.dashboard .game-history-page .game-history__participant-score small {
  color: var(--stats-accent);
}

body.dashboard .game-history-page .game-history__participant.is-winner,
body.dashboard .game-history-page .overall-ranking-table tbody tr.is-winner td {
  background: rgba(88, 155, 115, 0.17);
}

body.dashboard .game-history-page .game-history__participant.is-loser,
body.dashboard .game-history-page .overall-ranking-table tbody tr.is-loser td {
  background: rgba(176, 90, 99, 0.13);
}

body.dashboard .game-history-page .game-history__selected-name {
  margin-bottom: 18px;
  color: var(--stats-text);
}

body.dashboard .game-history-page .game-history__metric {
  padding-block: 6px;
  border-left-color: var(--stats-line);
}

body.dashboard .game-history-page .game-history__metric dt {
  color: var(--stats-text-muted);
  font-size: 0.68rem;
}

body.dashboard .game-history-page .game-history__metric dd {
  color: var(--stats-text);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
}

body.dashboard .game-history-page .game-history__secondary-metrics strong {
  color: var(--stats-text);
}

body.dashboard .game-history-page .game-history__chart-grid {
  stroke: rgba(229, 233, 248, 0.19);
}

body.dashboard .game-history-page .game-history__chart-value,
body.dashboard .game-history-page .game-history__chart-game-label {
  fill: var(--stats-text-soft);
}

body.dashboard .game-history-page .game-history__chart-axis-label,
body.dashboard .game-history-page .game-history__chart-legend {
  color: var(--stats-text-muted);
  fill: var(--stats-text-muted);
}

body.dashboard .game-history-page .game-history__chart-tooltip rect {
  fill: #343a52;
  stroke: rgba(229, 189, 99, 0.45);
}

body.dashboard .game-history-page .game-history__character-list li {
  padding-block: 12px;
  border-bottom-color: var(--stats-line-soft);
}

body.dashboard .game-history-page .game-history__character-list strong,
body.dashboard .game-history-page .game-history__stage-winner-list strong,
body.dashboard .game-history-page .game-history__overall-winner strong {
  color: var(--stats-text);
}

body.dashboard .game-history-page .game-history__detail {
  border-top-color: var(--stats-line);
}

body.dashboard .game-history-page .game-history__detail-table th:first-child,
body.dashboard .game-history-page .game-history__detail-table td:first-child {
  background: var(--stats-bg);
}

body.dashboard .game-history-page .game-history__stage-winners {
  padding: 18px 0 0;
  border-top: 1px solid var(--stats-line-soft);
  border-radius: 0;
  background: transparent;
}

body.dashboard .game-history-page .game-history__stage-winners h4,
body.dashboard .game-history-page .game-history__stage-winner-list p,
body.dashboard .game-history-page .game-history__overall-winner {
  color: var(--stats-text-muted);
}

body.dashboard .game-history-page .game-history__close {
  color: var(--stats-text-soft);
  border-color: var(--stats-line);
}

body.dashboard .game-history-page .game-history__close:hover,
body.dashboard .game-history-page .game-history__close:focus-visible {
  color: var(--stats-text);
  border-color: rgba(229, 189, 99, 0.58);
}

@media (min-width: 1000px) {
  body.dashboard .game-history-page .game-history__account {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    column-gap: clamp(40px, 5vw, 72px);
  }

  body.dashboard .game-history-page .game-history__head,
  body.dashboard .game-history-page .game-history__status,
  body.dashboard .game-history-page .game-history__overview {
    grid-column: 1 / -1;
  }

  body.dashboard .game-history-page .game-history__games {
    grid-column: 1;
    grid-row: 4;
  }

  body.dashboard .game-history-page .game-history__performance {
    grid-column: 2;
    grid-row: 4;
    padding-left: clamp(34px, 4vw, 58px);
    border-left: 1px solid var(--stats-line);
  }
}

@media (max-width: 699px) {
  body.dashboard .game-history-page {
    --stats-bg: #272c40;
  }

  body.dashboard .game-history-page .game-history {
    padding: 24px 18px 38px;
  }

  body.dashboard .game-history-page .game-history__head {
    padding: 0 48px 22px 0;
  }

  body.dashboard .game-history-page .game-history__dashboard-section,
  body.dashboard .game-history-page .game-history__performance {
    padding-block: 26px;
  }

  body.dashboard .game-history-page .game-history__games,
  body.dashboard .game-history-page .game-history__performance {
    padding-bottom: 0;
  }

  body.dashboard .game-history-page .game-history__comparison-table th,
  body.dashboard .game-history-page .game-history__comparison-table td {
    padding: 12px 6px;
    font-size: 0.76rem;
  }

  body.dashboard .game-history-page .game-history__primary-metrics {
    gap: 22px 0;
  }

  body.dashboard .game-history-page .game-history__metric {
    padding-inline: 14px;
  }

  body.dashboard .game-history-page .game-history__performance-toggle > span:last-child {
    margin-right: 5px;
  }

  body.dashboard .game-history-page .game-history__item {
    padding-block: 21px;
  }
}

body.dashboard .game-history-page .game-history__player-filter {
  display: grid;
  max-width: 360px;
  margin: 22px 0 26px;
  gap: 7px;
}

body.dashboard .game-history-page .game-history__player-filter label {
  color: var(--stats-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.dashboard .game-history-page .game-history__select-wrap {
  position: relative;
}

body.dashboard .game-history-page .game-history__select-wrap::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--stats-accent);
  content: "⌄";
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-58%);
}

body.dashboard .game-history-page .game-history__player-filter select {
  width: 100%;
  min-height: 44px;
  padding: 9px 34px 9px 0;
  border: 0;
  border-bottom: 1px solid var(--stats-line);
  border-radius: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--stats-text);
  font: 600 0.96rem/1.35 "Space Grotesk", sans-serif;
  cursor: pointer;
}

body.dashboard .game-history-page .game-history__player-filter select:hover {
  border-bottom-color: rgba(229, 189, 99, 0.52);
}

body.dashboard .game-history-page .game-history__player-filter select:focus-visible {
  border-bottom-color: var(--stats-accent);
  box-shadow: 0 2px 0 rgba(229, 189, 99, 0.2);
}

body.dashboard .game-history-page .game-history__player-filter select:disabled {
  cursor: default;
  opacity: 0.72;
}

body.dashboard .game-history-page .game-history__player-filter option {
  background: #f3f4f8;
  color: #24283a;
}

@media (max-width: 699px) {
  body.dashboard .game-history-page .game-history__player-filter {
    max-width: none;
    margin-block: 20px 24px;
  }
}

/* Professional dashboard hierarchy ------------------------------------ */
body.dashboard .game-history-page .game-history__overview {
  grid-row: 3;
}

body.dashboard .game-history-page .game-history__performance {
  grid-row: 4;
  border-bottom: 1px solid var(--stats-line);
}

body.dashboard .game-history-page .game-history__games {
  grid-row: 5;
  padding-top: clamp(32px, 4vw, 48px);
}

body.dashboard .game-history-page .game-history__comparison-table {
  min-width: 0;
  table-layout: fixed;
}

body.dashboard .game-history-page .game-history__comparison-table th,
body.dashboard .game-history-page .game-history__comparison-table td {
  overflow-wrap: anywhere;
  white-space: normal;
}

body.dashboard .game-history-page .game-history__comparison-table th:first-child,
body.dashboard .game-history-page .game-history__comparison-table td:first-child {
  width: 44%;
}

body.dashboard .game-history-page .game-history__comparison-table th:nth-child(2),
body.dashboard .game-history-page .game-history__comparison-table td:nth-child(2) {
  width: 20%;
}

body.dashboard .game-history-page .game-history__comparison-table th:nth-child(3),
body.dashboard .game-history-page .game-history__comparison-table td:nth-child(3) {
  width: 36%;
}

body.dashboard .game-history-page .game-history__participant.is-winner,
body.dashboard .game-history-page .overall-ranking-table tbody tr.is-winner td {
  background: rgba(88, 155, 115, 0.12);
}

body.dashboard .game-history-page .game-history__participant.is-loser,
body.dashboard .game-history-page .overall-ranking-table tbody tr.is-loser td {
  background: rgba(176, 90, 99, 0.09);
}

@media (min-width: 1000px) {
  body.dashboard .game-history-page .game-history__account {
    grid-template-columns: minmax(360px, 0.76fr) minmax(0, 1.24fr);
    column-gap: 0;
  }

  body.dashboard .game-history-page .game-history__overview {
    grid-column: 1;
    grid-row: 3;
    padding: clamp(34px, 4vw, 46px) clamp(38px, 4vw, 58px) clamp(36px, 4vw, 48px) 0;
    border-bottom: 1px solid var(--stats-line);
  }

  body.dashboard .game-history-page .game-history__performance {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
    padding: clamp(34px, 4vw, 46px) 0 clamp(36px, 4vw, 48px) clamp(38px, 4vw, 58px);
    border-bottom: 1px solid var(--stats-line);
    border-left: 1px solid var(--stats-line);
  }

  body.dashboard .game-history-page .game-history__games {
    grid-column: 1 / -1;
    grid-row: 4;
    padding-top: clamp(36px, 4vw, 50px);
  }

  body.dashboard .game-history-page .game-history__performance[open] .game-history__statistics {
    margin-top: 4px;
  }

  body.dashboard .game-history-page .game-history__participants {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 0 clamp(24px, 3vw, 40px);
  }
}

@media (min-width: 700px) and (max-width: 999px) {
  body.dashboard .game-history-page .game-history__overview {
    grid-row: 3;
  }

  body.dashboard .game-history-page .game-history__performance {
    grid-row: 4;
  }

  body.dashboard .game-history-page .game-history__games {
    grid-row: 5;
  }
}

@media (max-width: 699px) {
  body.dashboard .game-history-page .game-history__overview {
    grid-row: 3;
  }

  body.dashboard .game-history-page .game-history__comparison-table th:first-child,
  body.dashboard .game-history-page .game-history__comparison-table td:first-child,
  body.dashboard .game-history-page .game-history__comparison-table th:nth-child(2),
  body.dashboard .game-history-page .game-history__comparison-table td:nth-child(2),
  body.dashboard .game-history-page .game-history__comparison-table th:nth-child(3),
  body.dashboard .game-history-page .game-history__comparison-table td:nth-child(3) {
    width: auto;
  }

  body.dashboard .game-history-page .game-history__performance {
    grid-row: 4;
    border-bottom: 1px solid var(--stats-line);
  }

  body.dashboard .game-history-page .game-history__games {
    grid-row: 5;
    padding-top: 28px;
  }
}

/* Compact game history with on-demand match details ------------------ */
body.dashboard .game-history-page .game-history__item {
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--stats-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.dashboard .game-history-page .game-history__item:last-child {
  border-bottom: 0;
}

body.dashboard .game-history-page .game-history__item[open] {
  background: transparent;
  border-color: var(--stats-line);
}

body.dashboard .game-history-page .game-history__games > .game-history__recent-title {
  margin: 0 0 14px;
}

body.dashboard .game-history-page .game-history__item-toggle {
  display: grid;
  padding: 19px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 28px;
  list-style: none;
  cursor: pointer;
}

body.dashboard .game-history-page .game-history__item-toggle::-webkit-details-marker {
  display: none;
}

body.dashboard .game-history-page .game-history__item-toggle:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(229, 189, 99, 0.55);
  outline-offset: 5px;
}

body.dashboard .game-history-page .game-history__game-label {
  grid-column: 1 / -1;
  color: var(--stats-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.dashboard .game-history-page .game-history__compact-players {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 30px;
  list-style: none;
}

body.dashboard .game-history-page .game-history__compact-player {
  display: flex;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  gap: 11px;
}

body.dashboard .game-history-page .game-history__compact-player strong {
  min-width: 0;
  overflow: visible;
  color: var(--stats-text);
  font-size: 0.88rem;
  font-weight: 600;
  text-overflow: clip;
  white-space: nowrap;
}

body.dashboard .game-history-page .game-history__compact-player .game-history__character-image {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

body.dashboard .game-history-page .game-history__details-label {
  position: relative;
  padding-right: 16px;
  justify-self: end;
  color: var(--stats-accent);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

body.dashboard .game-history-page .game-history__details-label::after {
  position: absolute;
  top: 50%;
  right: 0;
  content: "⌄";
  line-height: 1;
  transform: translateY(-58%);
  transition: transform 160ms ease;
}

body.dashboard .game-history-page .game-history__item[open] .game-history__details-label::after {
  transform: translateY(-42%) rotate(180deg);
}

body.dashboard .game-history-page .game-history__detail {
  display: grid;
  padding: 24px 0 30px;
  gap: 30px;
  border-top: 1px solid var(--stats-line-soft);
}

body.dashboard .game-history-page .game-history__item:not([open]) > .game-history__detail {
  display: none;
}

body.dashboard .game-history-page .game-history__detail-meta {
  display: flex;
  margin: 0;
  flex-wrap: wrap;
  gap: 18px clamp(36px, 6vw, 76px);
}

body.dashboard .game-history-page .game-history__detail-meta > div {
  display: grid;
  gap: 4px;
}

body.dashboard .game-history-page .game-history__detail-meta dt,
body.dashboard .game-history-page .game-history__detail-section h5 {
  color: var(--stats-text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.dashboard .game-history-page .game-history__detail-meta dd {
  margin: 0;
  color: var(--stats-text);
  font-size: 0.86rem;
  font-weight: 600;
}

body.dashboard .game-history-page .game-history__detail-section h5 {
  margin: 0 0 10px;
}

body.dashboard .game-history-page .game-history__detail-section {
  min-width: 0;
}

body.dashboard .game-history-page .game-history__detail-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  outline: none;
}

body.dashboard .game-history-page .game-history__detail-table {
  width: 100%;
  min-width: max-content;
}

body.dashboard .game-history-page .game-history__detail-table th:first-child,
body.dashboard .game-history-page .game-history__detail-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 120px;
  background: #252a3d;
}

body.dashboard .game-history-page .game-history__detail-table thead th:first-child {
  z-index: 2;
}

body.dashboard .game-history-page .game-history__detail-table tbody tr.is-winner td {
  background-color: rgba(88, 155, 115, 0.12);
}

body.dashboard .game-history-page .game-history__detail-table tbody tr.is-loser td {
  background-color: rgba(176, 90, 99, 0.08);
}

body.dashboard .game-history-page .game-history__detail-table tbody tr.is-winner td:first-child {
  background-color: #2b3e3d;
}

body.dashboard .game-history-page .game-history__detail-table tbody tr.is-loser td:first-child {
  background-color: #352c40;
}

body.dashboard .game-history-page .game-history__detail-character {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.dashboard .game-history-page .game-history__detail-character .game-history__character-image {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

body.dashboard .game-history-page .game-history__ranking-list {
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.dashboard .game-history-page .game-history__ranking-list li {
  display: grid;
  min-width: 0;
  padding: 11px 8px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--stats-line-soft);
}

body.dashboard .game-history-page .game-history__ranking-list li:last-child {
  border-bottom: 0;
}

body.dashboard .game-history-page .game-history__ranking-list li.is-winner {
  background: rgba(88, 155, 115, 0.12);
}

body.dashboard .game-history-page .game-history__ranking-list li.is-loser {
  background: rgba(176, 90, 99, 0.08);
}

body.dashboard .game-history-page .game-history__ranking-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--stats-text);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dashboard .game-history-page .game-history__rank,
body.dashboard .game-history-page .game-history__ranking-score {
  color: var(--stats-text-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 699px) {
  body.dashboard .game-history-page .game-history__item-toggle {
    padding-block: 18px;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body.dashboard .game-history-page .game-history__compact-players,
  body.dashboard .game-history-page .game-history__details-label {
    grid-column: 1;
  }

  body.dashboard .game-history-page .game-history__compact-players {
    gap: 11px 22px;
  }

  body.dashboard .game-history-page .game-history__compact-player strong {
    max-width: calc(100vw - 92px);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  body.dashboard .game-history-page .game-history__compact-player .game-history__character-image {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  body.dashboard .game-history-page .game-history__detail {
    padding: 22px 0 26px;
    gap: 26px;
  }

  body.dashboard .game-history-page .game-history__detail-meta {
    display: grid;
    gap: 14px;
  }

  body.dashboard .game-history-page .game-history__detail-table th,
  body.dashboard .game-history-page .game-history__detail-table td {
    padding: 11px 8px;
    font-size: 0.74rem;
  }

  body.dashboard .game-history-page .game-history__ranking-list li {
    padding-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dashboard .game-history-page .game-history__details-label::after {
    transition: none;
  }
}
