@font-face {
  font-family: Barlow;
  src: url("/assets/barlow-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/assets/barlow-semibold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: Condensed;
  src: url("/assets/barlow-condensed-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111311;
  --panel: #1a1c19;
  --border: #373a32;
  --muted: #a9afa4;
  --gold: #ffcd38;
  --text: #f4f4ed;
  --title: Condensed, "Arial Narrow", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    1rem/1.45 Barlow,
    Arial,
    sans-serif;
  min-height: 100svh;
}
body:has(.login-page) {
  background: #10120f;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
input {
  font: inherit;
}
button,
a,
select,
input {
  touch-action: manipulation;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  display: block;
  border-radius: 6px;
}
.brand b {
  font: 700 2.15rem/0.9 var(--title);
  letter-spacing: -0.045em;
}
.primary,
.secondary,
.star,
.quiet,
.nav-item,
.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}
.primary {
  background: var(--gold);
  border: 0;
  border-radius: 5px;
  color: #17170d;
  font-weight: 700;
  padding: 0 23px;
}
.primary:hover {
  background: #ffdb65;
}
.secondary {
  border: 1px solid #494c40;
  background: #242720;
  border-radius: 5px;
  padding: 0 16px;
  font-weight: 600;
}
.secondary:hover,
.quiet:hover,
.star:hover {
  background: #30332a;
}
.quiet,
.star {
  padding: 0 12px;
  color: #c3c6b9;
  border: 0;
  background: transparent;
  border-radius: 4px;
}
.muted,
.note,
.meta,
.pending,
.login-foot,
footer {
  color: var(--muted);
}
.error {
  color: #ffa696;
}
.error:empty {
  display: none;
}
.initial,
.notice {
  padding: 24px;
}
.notice {
  margin: 20px 0;
  background: #29251d;
  border: 1px solid #564c30;
  border-radius: 8px;
}
.notice button {
  margin-left: 10px;
}
.rule {
  width: 25px;
  height: 3px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow,
.map-legend span,
.map-legend small {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.metric strong,
.big-kd {
  font-family: var(--title);
  font-weight: 700;
  line-height: 1.04;
}
h1 {
  font-size: clamp(3.35rem, 6.4vw, 5.25rem);
  letter-spacing: -0.025em;
}
h2 {
  font-size: 2.05rem;
}
h3 {
  font-size: 1.55rem;
}
.login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 76px);
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  width: min(100%, 1080px);
  min-height: min(705px, 84svh);
  overflow: hidden;
  border: 1px solid #47483a;
  border-radius: 12px;
  background: #1a1c18;
  box-shadow: 0 30px 90px #0005;
}
.login-main {
  padding: clamp(28px, 4.4vw, 66px);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.login-inner {
  margin: auto 0;
  width: 100%;
  padding: 48px 0;
}
.login-inner h1 {
  margin-top: 16px;
}
.login-inner h1 span {
  color: var(--gold);
}
.lead {
  font-size: 1.14rem;
  color: #bac0b4;
  margin: 12px 0 34px;
}
label {
  font-weight: 600;
}
.password {
  margin: 9px 0 18px;
  display: flex;
  align-items: center;
  border: 1px solid #515449;
  border-radius: 5px;
  background: #111310;
  padding-left: 13px;
  color: var(--muted);
}
.password input,
.searchbar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 12px;
}
.password:focus-within,
.searchbar:focus-within {
  border-color: var(--gold);
}
.password input:focus,
.searchbar input:focus {
  outline: none;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  color: #d4d7cd;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.wide {
  width: 100%;
  margin-top: 25px;
  font-size: 1.05rem;
  min-height: 49px;
}
.login-foot {
  font-size: 0.875rem;
}
.login-map,
.mast {
  position: relative;
  background-color: #202016;
  isolation: isolate;
  overflow: hidden;
}
.login-map {
  background-image:
    linear-gradient(0deg, #11130bd9, transparent 52%),
    url("/assets/erangel-portrait.webp");
  background-size: cover;
  background-position: center;
}
.map-border {
  position: absolute;
  inset: 20px;
  border: 1px solid #f4cf4f48;
}
.map-legend {
  position: absolute;
  bottom: 40px;
  left: 45px;
  display: grid;
  gap: 4px;
  color: #ffd45b;
}
.map-legend strong {
  font: 700 clamp(3rem, 5vw, 5rem)/1 var(--title);
  letter-spacing: 0.025em;
}
.map-legend small {
  color: #d2c49c;
}
header {
  background: #171916;
  border-bottom: 1px solid #34362f;
}
.bar,
.page,
footer {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 45px);
  padding-right: clamp(16px, 4vw, 45px);
}
.bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.bar nav {
  align-self: stretch;
  display: flex;
  gap: 22px;
}
.nav-item {
  position: relative;
  color: #b4b8af;
  font-weight: 600;
}
.nav-item.active {
  color: var(--gold);
}
.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}
.logout {
  margin-left: auto;
}
.page {
  min-height: calc(100svh - 160px);
  padding-top: 27px;
  padding-bottom: 24px;
}
.searchbar {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 5px 5px 15px;
  background: #1d201b;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.searchbar > .icon {
  color: var(--muted);
}
.searchbar input {
  padding: 9px;
  min-height: 44px;
}
.searchbar select {
  background: #20231c;
  border: 0;
  border-left: 1px solid var(--border);
  color: #e4e6da;
  padding: 8px;
  min-height: 44px;
  max-width: 135px;
}
.searchbar .primary {
  margin-left: 6px;
}
.mast {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 184px;
  padding: clamp(22px, 3.8vw, 40px);
  border: 1px solid #514d34;
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, #1d201beb, #1b1d1755 64%, #1b1d1710),
    url("/assets/erangel-wide.webp");
  background-size: cover;
  background-position: center 55%;
}
.mast h1 {
  margin: 8px 0;
  font-size: clamp(3rem, 5.7vw, 4.5rem);
  overflow-wrap: anywhere;
}
.mast p {
  color: #c7cbbd;
}
.mast-action {
  align-self: center;
}
.mast .star {
  background: #24251b;
  border: 1px solid #56563c;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 29px 0 15px;
}
.switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  background: #191b17;
  border-radius: 6px;
}
.switch button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 600;
}
.switch .selected {
  background: #373829;
  color: #ffdd6b;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(345px, 100%), 1fr));
  gap: 14px;
}
.card,
.detail-card,
.empty,
.table-wrap,
.totals {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.card {
  padding: 16px 21px 0;
  min-width: 0;
}
.card:hover {
  border-color: #686545;
}
.card-line,
.player-name,
.detail-title,
.card-end,
.back {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-line,
.detail-title,
.card-end {
  justify-content: space-between;
}
.player-name {
  flex-wrap: wrap;
  gap: 7px 10px;
}
.player-name strong {
  font: 700 1.8rem/1 var(--title);
  overflow-wrap: anywhere;
}
.badge,
.tag,
.current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  font:
    600 0.82rem/1.3 Barlow,
    sans-serif;
  letter-spacing: 0;
  border-radius: 20px;
  padding: 4px 8px;
  white-space: nowrap;
}
.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.good {
  color: #8ce4a5;
  background: #22392b;
}
.temp {
  color: #ffdc63;
  background: #3c3420;
}
.perm {
  color: #ffa092;
  background: #492826;
}
.unknown,
.tag {
  color: #c1c6b8;
  background: #33372d;
}
.current {
  background: #38351d;
  color: var(--gold);
  font-size: 0.75rem;
}
.star.saved {
  color: var(--gold);
}
.star.saved .icon {
  fill: currentColor;
}
.meta {
  font-size: 0.88rem;
  margin: 5px 0 15px;
}
.small-metrics,
.totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.metric {
  display: grid;
  gap: 5px;
}
.metric span,
.mini-grid,
.note,
.pending {
  font-size: 0.9rem;
}
.metric span {
  color: #b6bcaf;
}
.metric strong {
  font-size: 2.2rem;
}
.metric:first-child strong,
.big-kd {
  color: var(--gold);
}
.mini-grid {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 10px;
}
.mini-grid > div {
  display: grid;
  grid-template-columns: 0.7fr repeat(3, 1fr);
  gap: 4px;
  margin: 3px 0;
  color: #bdc1b6;
}
.mini-grid b {
  color: #e1e3d9;
}
.mini-grid em {
  font-style: normal;
  color: var(--text);
}
.card-end {
  padding: 10px 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  color: #f1d464;
  font-weight: 600;
}
.card-body {
  display: block;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 38px 16px;
}
.empty-icon {
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #5b5231;
  border-radius: 12px;
  color: var(--gold);
  background: #2b291c;
}
.empty p {
  color: var(--muted);
  margin: 9px 0 18px;
}
.back {
  display: inline-flex;
  color: #c3c7b9;
  margin-bottom: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: right;
  padding: 11px 15px;
}
th:first-child {
  text-align: left;
}
thead th {
  color: #bfc3b7;
  font-weight: 600;
  font-size: 0.87rem;
  background: #22251e;
}
thead tr:first-child th:not(:first-child) {
  color: var(--gold);
  text-align: center;
  border-left: 1px solid var(--border);
}
tbody tr {
  border-top: 1px solid var(--border);
  cursor: pointer;
}
tbody tr:hover {
  background: #282b22;
}
tbody th a {
  display: block;
}
tbody td:nth-child(2),
tbody td:nth-child(5) {
  border-left: 1px solid var(--border);
}
.note,
#progress {
  font-size: 0.88rem;
  color: #afb5a8;
  margin-top: 13px;
}
.totals {
  grid-template-columns: repeat(4, 1fr);
  padding: 20px;
  margin-bottom: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}
.detail-card {
  padding: 18px;
}
.detail-card .muted {
  margin: 16px 0;
}
.big-kd {
  display: block;
  font-size: 2.65rem;
  margin: 14px 0;
}
.big-kd small {
  font-size: 0.95rem;
  color: var(--muted);
}
dl {
  margin: 0;
}
dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-top: 1px solid #34372d;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
}
.card .pending {
  padding: 18px 0;
}
footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #92988c;
  font-size: 0.82rem;
  padding-top: 17px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid #2d3029;
}
footer span {
  font: 700 1.2rem var(--title);
  color: #a7ad9e;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #e5e6da;
  color: #20251b;
  border-radius: 6px;
  padding: 10px 16px;
  visibility: hidden;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
#toast.show {
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (max-width: 670px) {
  .login-page {
    padding: 15px;
  }
  .login-shell {
    display: flex;
    flex-direction: column-reverse;
    min-height: auto;
  }
  .login-main {
    padding: 26px;
  }
  .login-map {
    min-height: 156px;
    background-image:
      linear-gradient(90deg, #1a1b13bb, transparent),
      url("/assets/erangel-wide.webp");
    background-position: center 54%;
  }
  .map-border {
    inset: 10px;
  }
  .map-legend {
    left: 24px;
    bottom: 20px;
  }
  .map-legend strong {
    font-size: 2.7rem;
  }
  .map-legend small {
    display: none;
  }
  .login-inner {
    padding: 30px 0;
  }
  .lead {
    margin-bottom: 23px;
  }
  .login-foot {
    display: none;
  }
  .bar {
    min-height: 62px;
    gap: 20px;
  }
  .bar .brand {
    gap: 7px;
  }
  .brand b {
    font-size: 1.75rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .bar nav {
    gap: 13px;
  }
  .nav-item {
    font-size: 0.9rem;
    gap: 4px;
  }
  .nav-item .icon {
    width: 16px;
  }
  .logout {
    padding: 0 5px;
  }
  .page {
    padding-top: 16px;
  }
  .searchbar {
    flex-wrap: wrap;
    gap: 0;
    padding: 4px 4px 4px 8px;
    margin-bottom: 14px;
  }
  .searchbar > .icon {
    width: 16px;
  }
  .searchbar input {
    width: 60px;
    padding: 6px;
  }
  .searchbar select {
    width: 78px;
    font-size: 0.86rem;
    padding: 3px;
  }
  .searchbar .primary {
    padding: 0 12px;
    margin-left: 2px;
  }
  .mast {
    min-height: 150px;
    padding: 19px;
    background-position: 60% center;
  }
  .mast h1 {
    font-size: 2.85rem;
  }
  .mast p {
    font-size: 0.95rem;
  }
  .mast-action {
    align-self: flex-start;
  }
  .section-head {
    margin: 21px 0 12px;
  }
  h2 {
    font-size: 1.72rem;
  }
  .switch button {
    padding: 0 11px;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 11px 5px;
    font-size: 0.87rem;
  }
  .table-wrap th:first-child {
    padding-left: 8px;
  }
  .current {
    display: block;
    width: max-content;
    font-size: 0.66rem;
    padding: 1px 5px;
  }
  .totals {
    padding: 14px;
    gap: 6px;
  }
  .metric strong {
    font-size: 1.8rem;
  }
  .login-inner h1 {
    font-size: 3.75rem;
  }
  .map-legend span {
    font-size: 0.72rem;
  }
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-card {
    padding: 12px;
  }
  .detail-card dl {
    font-size: 0.88rem;
  }
  .login-inner .brand b {
    font-size: 2rem;
  }
}
@media (max-width: 365px) {
  .nav-item .icon {
    display: none;
  }
  .bar {
    gap: 13px;
  }
  .searchbar .primary {
    padding: 0 8px;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
#search-help {
  display: none;
  margin: -10px 0 15px;
  color: var(--muted);
  font-size: 0.875rem;
}
.searchbar:focus-within + #search-help {
  display: block;
}

.brand b span {
  color: var(--gold);
}

/* Compact player statistics */
.mast {
  min-height: 0;
  background: #1a1c19;
  border-color: var(--border);
  padding: 18px 22px;
}
.mast h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 5px 0;
}
.login-map {
  display: none;
}
.login-shell {
  display: block;
  width: min(100%, 490px);
  min-height: 0;
}
thead th small {
  display: block;
  color: var(--muted);
  font-size: 0.73rem;
}
.table-wrap thead th:not(:first-child) {
  text-align: right;
}
.table-wrap td {
  border-left: 0;
}
.kd-number {
  display: inline-grid;
  vertical-align: middle;
  line-height: 1.2;
  gap: 4px;
  text-align: right;
}
.kd-number meter {
  display: block;
  appearance: none;
  width: 2.5rem;
  max-width: 100%;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: #42443b;
}
meter::-webkit-meter-bar {
  background: #42443b;
  border: 0;
  border-radius: 4px;
  height: 4px;
}
meter::-webkit-meter-optimum-value {
  background: var(--gold);
  border-radius: 4px;
}
meter::-moz-meter-bar {
  background: var(--gold);
}
@media (max-width: 670px) {
  .kd-number meter {
    width: 1.8rem;
  }
  .mast {
    padding: 14px 16px;
  }
  .login-main {
    padding: 28px;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 8px 4px;
  }
}
