:root {
  color-scheme: dark;
  --mint: #82ffd5;
  --muted: #77869b;
  --line: #263143;
  --bg: #090e19;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #080c14;
  color: #eaf2fb;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--line);
  background: #111a29;
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #203243;
  border-color: #6b9b97;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
#app {
  max-width: 1600px;
  margin: auto;
  padding: 0 36px;
}
header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand {
  color: #f1f7fb;
  text-decoration: none;
  letter-spacing: 3px;
  font-size: 20px;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  color: var(--mint);
  font-size: 31px;
}
.brand small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 8px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-right: 16px;
}
.live i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 6px;
}
.arena {
  height: calc(100dvh - 150px);
  min-height: 390px;
  max-height: 1000px;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
}
canvas:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 50%, #0b1725b8, #080d18e8);
  padding: 24px;
  overflow: auto;
}
.overlay.hidden,
.hidden {
  display: none !important;
}
.panel {
  max-width: 800px;
  width: 100%;
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 22px;
}
.eyebrow:before {
  content: "—";
  margin-right: 12px;
}
h1 {
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.95;
  letter-spacing: -4px;
  margin: 0 0 22px;
  font-weight: 900;
}
h1 span {
  color: var(--mint);
}
h2 {
  font-size: 38px;
  letter-spacing: -1.5px;
  margin: 10px 0 12px;
}
.subtitle {
  font-size: 13px;
  line-height: 1.8;
  color: #91a3ba;
  max-width: 450px;
  margin: 0 auto 26px;
}
.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #09251f;
  padding: 16px 30px;
  letter-spacing: 2px;
  font-size: 12px;
  box-shadow: 0 0 36px #82ffd515;
}
.primary:hover {
  background: #b0ffe6;
  color: #09251f;
  transform: translateY(-2px);
}
.best {
  margin-top: 23px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.best b {
  color: #e7c781;
  margin-left: 10px;
}
.features {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 35px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #24304080;
  font-size: 10px;
  letter-spacing: 1px;
  color: #99aabd;
}
.features span {
  color: var(--mint);
  margin-right: 7px;
}
.hud {
  position: absolute;
  inset: 24px 26px;
  pointer-events: none;
}
.vitals {
  width: 220px;
}
.hud-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #aab8c9;
}
.hud-label b {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #eaf2fb;
}
.bar {
  height: 6px;
  background: #263044;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--mint);
  transition: width 0.12s;
}
.xp-label {
  margin-top: 18px;
}
.xp {
  height: 3px;
}
.xp i {
  background: #a697ff;
}
.run-stats {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  gap: 35px;
}
.run-stats div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: right;
}
.run-stats small {
  font-size: 8px;
  letter-spacing: 2px;
  color: #92a1b5;
}
.run-stats strong {
  font:
    24px Consolas,
    monospace;
  letter-spacing: 1px;
}
.dash-state {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--mint);
}
footer {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  gap: 12px;
}
kbd {
  font:
    9px Segoe UI,
    sans-serif;
  padding: 4px 5px;
  background: #151e2c;
  border: 1px solid #2b3547;
  border-radius: 3px;
  margin-right: 3px;
  color: #afbacb;
}
footer em {
  font-style: normal;
  color: #39475d;
  margin: 0 12px;
}
footer b {
  font-weight: 400;
  font-size: 8px;
}
footer i {
  color: var(--mint);
  margin: 0 15px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0;
}
.card {
  text-align: left;
  padding: 24px 20px;
  background: #101c2b;
  font-size: 12px;
  letter-spacing: 0;
  min-height: 175px;
}
.card .glyph {
  display: block;
  color: var(--mint);
  font-size: 27px;
  margin-bottom: 18px;
}
.card strong {
  font-size: 16px;
  display: block;
  margin-bottom: 12px;
}
.card p {
  line-height: 1.65;
  color: #93a6bc;
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}
.card small {
  float: right;
  color: #6c7c92;
}
.summary {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin: 30px 0;
}
.summary span {
  display: block;
  font-size: 9px;
  color: #93a6bc;
  letter-spacing: 2px;
  margin-bottom: 9px;
}
.summary b {
  font:
    28px Consolas,
    monospace;
}
.secondary {
  margin-left: 10px;
}
#toast {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--mint);
  letter-spacing: 2px;
  text-align: center;
  pointer-events: none;
  width: 90%;
}
.hint {
  color: #77869b;
  font-size: 10px;
  letter-spacing: 1px;
}
@media (max-width: 720px) {
  #app {
    padding: 0 12px;
  }
  header {
    height: 66px;
  }
  .brand {
    font-size: 15px;
  }
  .brand small,
  .live,
  footer > span:last-child {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  button {
    padding: 10px;
  }
  .arena {
    height: calc(100dvh - 120px);
  }
  footer {
    font-size: 8px;
    justify-content: center;
  }
  .hud {
    inset: 18px 15px;
  }
  .vitals {
    width: 140px;
  }
  .run-stats {
    gap: 12px;
  }
  .run-stats strong {
    font-size: 17px;
  }
  .run-stats div:last-child {
    display: none;
  }
  .cards {
    gap: 8px;
  }
  .card {
    padding: 14px 10px;
    min-height: 170px;
  }
  .card strong {
    font-size: 13px;
  }
  .card p {
    font-size: 10px;
  }
  .features {
    gap: 13px;
    font-size: 8px;
  }
  h1 {
    letter-spacing: -2px;
  }
  .summary {
    gap: 20px;
  }
}
