body {
  font: 300 16px/1.5 -apple-system,BlinkMacSystemFont,"avenir next",avenir, Noto Sans,helvetica,"helvetica neue",sans-serif;
  color: #d3d5d7;
  background-color: #282626;
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 50em;
  padding: 0em;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

p {
  margin:  0 0 1em 0;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0.5em;
  margin-bottom: 0em;
  line-height: 1.2;
  font-weight: 300;
}
a:link, a:visited {
  color: #2a7ae2;
  text-decoration: none;
}
a:hover, a:active, a:focus {
  color: #222629
  text-decoration: underline;
}
h1 a:empty:before, h2 a:empty:before, h3 a:empty:before,
h4 a:empty:before, h5 a:empty:before, h6 a:empty:before {
  content: "#";
}
h1 a:empty, h2 a:empty, h3 a:empty, h4 a:empty, h5 a:empty, h6 a:empty {
  visibility: hidden;
  padding-left: 0.25em;
}
h1:hover a:empty, h2:hover a:empty, h3:hover a:empty,
h4:hover a:empty, h5:hover a:empty, h6:hover a:empty {
  visibility: visible;
}
img {
  max-width: 100%;
}
figure {
  margin: 1em 0;
  text-align: center;
}
figcaption {
  font-size: small;
}
pre, code {
  border: 0px solid #a6a6a6;
  font-size: 14px;
  padding: 3px 6px 3px 6px;
  overflow-x: auto;
  background-color: #3e3b3b;
}

blockquote {
  border-left: medium solid #ccc;
  margin: 1em 0;
}
blockquote :first-child {
  margin-top: 0;
}
blockquote :last-child {
  margin-bottom: 0;
}
table {
  border-collapse: collapse;
}
th, td {
  border: thin solid #999;
  padding: 0.3em 0.4em;
  text-align: left;
}
ul,ol {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  padding-inline-start: 30px;
}
ul ul, ol ol, ul ol, ol ul {
  list-style-type: circle;
  margin-block-start: 0px;
  margin-block-end: 0px;
}

@media (prefers-color-scheme: dark) {
  body {
    color: #bbb;
    background: #222;
  }
  a:link, a:visited {
    color: #9bf;
  }
  a:hover, a:active {
    color: #acf;
  }

  blockquote {
    border-color: #444;
  }
  th, td {
    border-color: #666;
  }
}

.player-details-page {
  width: 100%;
  max-width: none;
  color: #e6edf3;
  background: #0b0f14;
  font-weight: 400;
}

.player-details-page a:link,
.player-details-page a:visited {
  color: #a5b4c4;
}

.player-details-page a:hover,
.player-details-page a:focus-visible {
  color: #72d6a0;
}

.player-details-page .site-header {
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #242b34;
  background: #10151c;
}

.player-details-page .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: calc(100% - 48px);
  max-width: 1180px;
  min-height: 62px;
  margin: 0 auto;
}

.player-details-page .site-brand {
  color: #f0f4f8;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.player-details-page .site-brand span {
  margin-left: 7px;
  color: #72d6a0;
  font-size: 11px;
  letter-spacing: 0.13em;
}

.player-details-page .site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-details-page .page-link {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.player-details-page .page-link:hover,
.player-details-page .page-link:focus-visible {
  background: #1d2823;
  color: #82dfa8;
}

.player-page {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 0 64px;
  box-sizing: border-box;
}

.player-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #7f8b99;
  font-size: 13px;
}

.player-breadcrumb a {
  color: #a5b4c4;
}

.player-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid #29323d;
  border-radius: 14px;
  background: linear-gradient(115deg, #18222b, #121820 72%);
}

.player-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.player-avatar {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border: 2px solid #34414d;
  border-radius: 14px;
  object-fit: cover;
  background: #202933;
}

.player-heading {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: #72d6a0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.player-heading h1,
.section-heading h2 {
  margin: 0;
  color: #f0f4f8;
  font-weight: 650;
}

.player-heading h1 {
  overflow-wrap: anywhere;
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -0.035em;
}

.player-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.player-details-page .player-links a {
  padding: 6px 10px;
  border: 1px solid #303b47;
  border-radius: 6px;
  background: #151d25;
  color: #bac6d2;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.player-details-page .player-links a:hover,
.player-details-page .player-links a:focus-visible {
  border-color: #72d6a0;
  color: #72d6a0;
}

.period-switch {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid #303a45;
  border-radius: 8px;
  background: #0e1319;
}

.player-details-page .period-switch a {
  padding: 9px 12px;
  border-radius: 5px;
  color: #9aa7b4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.player-details-page .period-switch a.is-active {
  background: #27332e;
  color: #89e2ad;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 42px;
}

.player-stat-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #29323d;
  border-radius: 11px;
  background: #131920;
}

.player-stat-card p {
  margin: 0 0 13px;
  color: #8995a2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.player-stat-card strong {
  display: block;
  color: #eef3f7;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 650;
  line-height: 1.1;
}

.player-stat-card strong small {
  margin-left: 2px;
  color: #aab6c2;
  font-size: 17px;
}

.player-stat-card > span {
  display: block;
  margin-top: 9px;
  color: #7f8b98;
  font-size: 12px;
}

.player-stat-card.stat-highlight {
  border-color: #2f5944;
  background: linear-gradient(135deg, #17271f, #131b19);
}

.player-stat-card.stat-highlight strong {
  color: #83e0a9;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

.section-heading h2 {
  font-size: 23px;
}

.stats-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #29323d;
}

.stats-tab {
  position: relative;
  padding: 13px 2px;
  border: 0;
  background: transparent;
  color: #8d99a6;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.stats-tab:hover,
.stats-tab:focus-visible {
  color: #e6edf3;
}

.stats-tab.is-active {
  color: #82dfa8;
}

.stats-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #68d294;
  content: "";
}

.stats-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #29323d;
  border-radius: 11px;
  background: #131920;
}

.stats-panel[hidden] {
  display: none;
}

.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.table-heading h3 {
  margin: 0;
  color: #e6edf3;
  font-size: 15px;
  font-weight: 600;
}

.table-heading > span {
  color: #7f8b98;
  font-size: 12px;
}

.table-scroll {
  overflow-x: auto;
}

.player-details-page table.player-stats-table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  color: #cbd4dd;
  font-size: 13px;
}

.player-details-page .player-stats-table th,
.player-details-page .player-stats-table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #252d36;
}

.player-details-page .player-stats-table th {
  color: #85919e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.player-details-page .player-stats-table tbody tr:last-child td {
  border-bottom: 0;
}

.player-details-page .player-stats-table tbody tr:hover {
  background: #182029;
}

.player-details-page .player-stats-table th:not(:first-child),
.player-details-page .player-stats-table td:not(:first-child) {
  text-align: right;
}

.player-details-page .player-stats-table .opponent-cell,
.player-details-page .player-stats-table .weapon-cell {
  white-space: nowrap;
  text-align: left !important;
}

.opponent-cell img {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 7px;
  vertical-align: middle;
  object-fit: cover;
  background: #202933;
}

.player-details-page .opponent-cell a {
  color: #e1e7ed;
  font-weight: 600;
}

.numeric-emphasis {
  color: #83e0a9;
  font-weight: 650;
}

.weapon-cell img {
  display: inline-block;
  width: 42px;
  height: 25px;
  margin-right: 10px;
  vertical-align: middle;
  object-fit: contain;
}

.empty-state {
  padding: 30px 14px !important;
  color: #7f8b98;
  text-align: center !important;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.utility-card {
  min-width: 0;
}

@media (max-width: 760px) {
  .player-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .player-details-page .wrapper {
    width: calc(100% - 28px);
    min-height: 58px;
  }

  .player-details-page .site-nav {
    gap: 1px;
  }

  .player-details-page .page-link {
    padding: 8px 7px;
    font-size: 12px;
  }

  .player-details-page .wrapper,
  .player-page {
    width: calc(100% - 28px);
  }

  .player-page {
    padding-top: 20px;
  }

  .player-hero {
    gap: 20px;
    padding: 19px;
  }

  .player-identity {
    align-items: flex-start;
    gap: 14px;
  }

  .player-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 10px;
  }

  .player-links {
    gap: 6px;
  }

  .player-details-page .player-links a {
    padding: 6px 8px;
    font-size: 11px;
  }

  .period-switch {
    width: 100%;
  }

  .player-details-page .period-switch a {
    flex: 1;
    text-align: center;
  }

  .player-stat-grid {
    gap: 9px;
    margin-bottom: 32px;
  }

  .player-stat-card {
    padding: 15px;
  }

  .stats-tabs {
    gap: 18px;
  }

  .stats-panel {
    padding: 13px;
  }

  .utility-grid {
    grid-template-columns: 1fr;
  }
}

.app-page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  color: #e6edf3;
  background: #0b0f14;
  font-weight: 400;
}

.app-page a:link,
.app-page a:visited {
  color: #a5b4c4;
  text-decoration: none;
}

.app-page a:hover,
.app-page a:focus-visible {
  color: #72d6a0;
}

.app-page .site-header {
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #242b34;
  background: #10151c;
}

.app-page .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: calc(100% - 48px);
  max-width: 1180px;
  min-height: 62px;
  margin: 0 auto;
}

.app-page .site-brand {
  color: #f0f4f8;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.app-page .site-brand span {
  margin-left: 7px;
  color: #72d6a0;
  font-size: 11px;
  letter-spacing: 0.13em;
}

.app-page .site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-page .page-link {
  padding: 8px 11px;
  border-radius: 6px;
  color: #a5b4c4;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease;
}

.app-page .page-link:hover,
.app-page .page-link:focus-visible {
  background: #1d2823;
  color: #82dfa8;
}

.app-main {
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 0 64px;
  box-sizing: border-box;
}

.app-page h1,
.app-page h2,
.app-page h3 {
  color: #f0f4f8;
  font-weight: 650;
}

.app-page h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.035em;
}

.app-page h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-heading .eyebrow,
.section-page-heading .eyebrow {
  margin: 0 0 7px;
  color: #72d6a0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.page-description {
  margin: 8px 0 0;
  color: #8d99a6;
  font-size: 14px;
}

.result-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #303a45;
  border-radius: 7px;
  color: #aab6c2;
  background: #131920;
  font-size: 12px;
  font-weight: 600;
}

.content-card {
  overflow: hidden;
  border: 1px solid #29323d;
  border-radius: 11px;
  background: #131920;
}

.table-scroll {
  overflow-x: auto;
}

.app-page table.app-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  color: #cbd4dd;
  font-size: 13px;
}

.app-page .app-table th,
.app-page .app-table td {
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #252d36;
  vertical-align: middle;
}

.app-page .app-table th {
  color: #85919e;
  background: #11171e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-page .app-table tbody tr:last-child td {
  border-bottom: 0;
}

.app-page .app-table tbody tr:hover {
  background: #182029;
}

.player-name-cell {
  min-width: 170px;
  white-space: nowrap;
}

.player-name-cell a {
  color: #e1e7ed !important;
  font-weight: 600;
  vertical-align: middle;
}

.table-avatar {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-right: 11px;
  border-radius: 8px;
  vertical-align: middle;
  object-fit: cover;
  background: #202933;
}

.table-link {
  color: #a5b4c4 !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.table-link:hover {
  color: #72d6a0 !important;
}

.kills-cell {
  white-space: nowrap;
}

.kills-cell img {
  width: 21px;
  height: 21px;
  margin-right: 8px;
  vertical-align: middle;
  object-fit: contain;
}

.kills-cell span,
.numeric-emphasis {
  color: #83e0a9;
  font-weight: 650;
}

.empty-state {
  padding: 34px 16px !important;
  color: #7f8b98;
  text-align: center;
}

.filter-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #252d36;
}

.filter-form label {
  margin-right: 4px;
  color: #aab6c2;
  font-size: 13px;
  font-weight: 600;
}

.app-page input[type="date"] {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #35404b;
  border-radius: 6px;
  outline: none;
  color: #e6edf3;
  color-scheme: dark;
  background: #0e1319;
  font: inherit;
  font-size: 13px;
}

.app-page input[type="date"]:focus {
  border-color: #72d6a0;
  box-shadow: 0 0 0 3px rgb(114 214 160 / 12%);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.app-page .primary-action {
  color: #0b1710;
  background: #78d99d;
}

.app-page .primary-action:hover,
.app-page .primary-action:focus-visible {
  color: #08110c;
  background: #94e6b2;
}

.app-page .secondary-action {
  border-color: #394651;
  color: #cbd4dd;
  background: #151d25;
}

.app-page .secondary-action:hover,
.app-page .secondary-action:focus-visible {
  border-color: #72d6a0;
  color: #82dfa8;
}

.date-cell {
  color: #aeb9c4;
  white-space: nowrap;
}

.map-cell {
  min-width: 140px;
  white-space: nowrap;
}

.map-cell img {
  width: 46px;
  height: 30px;
  margin-right: 9px;
  border-radius: 4px;
  vertical-align: middle;
  object-fit: cover;
  background: #202933;
}

.map-cell .detail-map-image {
  width: 72px;
  height: 46px;
}

.score-cell {
  color: #f0f4f8 !important;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.app-breadcrumb {
  display: flex;
  gap: 10px;
  margin: 0 0 22px;
  color: #7f8b99;
  font-size: 13px;
}

.app-breadcrumb a {
  color: #a5b4c4 !important;
}

.match-summary {
  margin-bottom: 34px;
}

.detail-section {
  margin-top: 32px;
}

.section-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.table-card {
  padding: 0;
}

.home-main,
.error-main {
  display: grid;
  min-height: calc(100vh - 63px);
  place-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.welcome-card {
  display: flex;
  width: min(100%, 640px);
  flex-direction: column;
  align-items: center;
  padding: 48px 36px;
  border: 1px solid #29323d;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, #1c2c25 0, #141b21 55%, #131920 100%);
  text-align: center;
}

.welcome-card .eyebrow {
  margin: 0 0 22px;
  color: #72d6a0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.welcome-logo {
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  border: 2px solid #34414d;
  border-radius: 20px;
  object-fit: cover;
}

.welcome-card h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.welcome-card > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #9aa7b4;
  font-size: 15px;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.error-card {
  background: linear-gradient(145deg, #1a2028, #131920);
}

@media (max-width: 600px) {
  .app-page .wrapper,
  .app-main {
    width: calc(100% - 28px);
  }

  .app-page .wrapper {
    min-height: 58px;
  }

  .app-page .site-nav {
    gap: 1px;
  }

  .app-page .page-link {
    padding: 8px 7px;
    font-size: 12px;
  }

  .app-main {
    padding-top: 28px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading .result-count {
    margin-top: 22px;
  }

  .app-page .app-table th,
  .app-page .app-table td {
    padding: 11px 12px;
  }

  .filter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-form label {
    margin-bottom: 0;
  }

  .welcome-card {
    padding: 36px 22px;
  }
}
