* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080e1d;
  color: #e4f3ff;
  font:
    16px/1.6 system-ui,
    "Microsoft JhengHei",
    sans-serif;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: #e4f3ff;
  border: 1px solid #365d77;
  background: #14283e;
  border-radius: 10px;
  padding: 12px 20px;
  transition: background 0.15s;
}
button:hover,
button:focus-visible {
  background: #244968;
  border-color: #65e8ed;
  outline: 2px solid #65e8ed;
  outline-offset: 3px;
}
header {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: #0b1529e8;
  border: 1px solid #29465d;
  border-radius: 12px;
  pointer-events: none;
}
header[hidden] {
  display: none;
}
header button {
  margin-left: auto;
  padding: 4px 12px;
  pointer-events: auto;
}
header strong {
  color: #69e8e3;
  margin-right: 16px;
}
.xp-track {
  width: 100%;
  height: 4px;
  background: #26354b;
}
.xp-track i {
  display: block;
  height: 100%;
  background: #68efd8;
  width: 0;
  transition: width 0.15s;
}
footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: #8da6bf;
  font-size: 13px;
  pointer-events: none;
}
.overlay {
  z-index: 2;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #030914a6;
  padding: 24px;
  overflow: auto;
}
.overlay[hidden] {
  display: none;
}
section {
  width: min(830px, 100%);
  background: #0c172bef;
  border: 1px solid #355775;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 24px 100px #0009;
}
section:focus {
  outline: none;
}
h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 8px 0 20px;
}
h2 {
  margin: 6px 0 16px;
}
.eyebrow {
  color: #62e8df;
  letter-spacing: 3px;
  font-size: 12px;
}
.muted {
  color: #9db3cc;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.card {
  text-align: left;
  padding: 22px 18px;
  min-height: 170px;
}
.card b {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
}
.card small {
  display: block;
  color: #a6bfd2;
  line-height: 1.7;
}
.weapon-grid .card {
  min-height: 128px;
  padding: 14px;
}
.weapon-grid .card b {
  font-size: 18px;
  margin-bottom: 6px;
}
.weapon-grid .glyph {
  font-size: 22px;
}
.weapon-grid .card small {
  font-size: 12px;
}
.glyph {
  font-size: 28px;
  color: #77e6ef;
}
label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 8px 18px 8px 0;
  color: #a9bfd5;
}
select {
  background: #14283e;
  color: #e4f3ff;
  border: 1px solid #365d77;
  border-radius: 6px;
  padding: 4px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.stats div {
  background: #14243a;
  padding: 14px;
  border-radius: 9px;
}
.stats b {
  display: block;
  font-size: 26px;
  color: #75e8df;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.loadout {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: #a9bfd5;
  font-size: 12px;
}
.contribution {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  text-align: left;
  font-size: 14px;
}
.contribution th,
.contribution td {
  padding: 5px 8px;
  border-bottom: 1px solid #29465d;
}
.contribution th {
  color: #9db3cc;
  font-weight: normal;
}
@media (max-width: 700px) {
  section {
    padding: 20px;
  }
  h1 {
    font-size: 30px;
  }
  .cards {
    gap: 8px;
  }
  .card {
    padding: 12px 10px;
  }
  .card b {
    font-size: 18px;
  }
  header {
    gap: 10px;
    font-size: 13px;
    left: 10px;
    right: 10px;
  }
}
