@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --paper: #f4f3eb;
  --ink: #282e27;
  --muted: #7f8378;
  --line: #dddfd3;
  --lime: #c9ed78;
  --arena: #202923;
  --mono: "Courier New", monospace;
  --display: "Manrope", "Trebuchet MS", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Trebuchet MS", sans-serif;
  font-size: 14px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid #8eb147;
  outline-offset: 5px;
}
button {
  transition:
    background 0.18s,
    transform 0.18s;
}
.site-shell {
  max-width: 1320px;
  margin: auto;
  padding: 0 56px;
}
.site-header {
  height: 105px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: -1.4px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 25px;
  margin-right: 10px;
  letter-spacing: 0;
}
.brand-light {
  font-weight: 500;
}
.brand-dot {
  color: #87a949;
}
.header-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.tiny-label,
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  color: #70776b;
}
.availability span,
.live-dot {
  width: 6px;
  height: 6px;
  background: #a8cf68;
  border-radius: 50%;
  display: inline-block;
}
.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 17px;
  color: var(--ink);
}
.icon-button:hover {
  background: #e7e9dd;
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 47px 0 39px;
}
.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  color: #747969;
}
.eyebrow-line {
  width: 22px;
  height: 2px;
  background: #8aa65c;
}
h1 {
  font-family: var(--display);
  font-size: 65px;
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -3.8px;
  margin: 20px 0 18px;
}
.alive {
  position: relative;
  display: inline-block;
}
.alive svg {
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 100%;
  height: 14px;
  fill: none;
  stroke: #a8c968;
  stroke-width: 6;
}
.intro-description {
  color: #72796c;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
.mobile-break {
  display: none;
}
.intro-note {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 35px 50px 0 0;
}
.note-star {
  font-size: 76px;
  line-height: 1;
  color: #a7be82;
  transform: rotate(-10deg);
}
.intro-note p {
  font-size: 14px;
  line-height: 1.8;
  color: #7c8072;
}
.intro-note strong {
  font-weight: 500;
  color: #464e3f;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
}
.arena-frame {
  border-radius: 15px;
  background: var(--arena);
  overflow: hidden;
  border: 1px solid #354037;
  box-shadow: 0 8px 20px #2932220a;
  align-self: start;
}
.arena-toolbar {
  height: 48px;
  border-bottom: 1px solid #3b443b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  color: #d5dfc5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
}
.arena-name {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}
.version {
  color: #74816c;
  margin-left: 5px;
}
.arena-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  color: #8f9b87;
  font-size: 8px;
  letter-spacing: 1px;
}
.arena-icon {
  border: 0;
  background: transparent;
  color: #bccaaa;
  width: 20px;
  height: 23px;
  padding: 0;
  display: grid;
  place-items: center;
}
.arena-icon svg {
  width: 14px;
}
.canvas-wrap {
  position: relative;
  aspect-ratio: 900/560;
  background: #202923;
  isolation: isolate;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.arena-corner {
  position: absolute;
  color: #75866b;
  font: 8px var(--mono);
  letter-spacing: 1px;
  pointer-events: none;
}
.arena-corner span {
  color: #708165;
  margin-left: 7px;
}
.top-left {
  top: 20px;
  left: 23px;
}
.bottom-left {
  bottom: 20px;
  left: 23px;
  font-size: 13px;
}
.bottom-left span {
  font-size: 8px;
}
.bottom-right {
  bottom: 23px;
  right: 22px;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #20292380;
  backdrop-filter: blur(1.5px);
  padding: 20px;
  text-align: center;
}
.game-overlay[hidden] {
  display: none;
}
.overlay-content {
  color: #ecf1e3;
}
.orbit-emblem {
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
}
.orbit-emblem svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.orbit-emblem ellipse {
  fill: none;
  stroke: #798c68;
  stroke-width: 0.8;
}
.orbit-emblem circle {
  fill: var(--lime);
}
.orbit-emblem path {
  fill: var(--lime);
}
.overlay-kicker {
  font-size: 8px;
  color: #a3b293;
  letter-spacing: 1.5px;
}
.overlay-content h2 {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 700;
  margin: 13px 0 12px;
}
.overlay-content p {
  font-size: 12px;
  line-height: 1.8;
  color: #a6b09d;
  margin: 0 auto 24px;
  max-width: 330px;
}
.primary-button {
  border: 0;
  border-radius: 7px;
  background: var(--lime);
  color: #2f3c21;
  padding: 15px 24px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  gap: 38px;
  align-items: center;
}
.primary-button:hover {
  background: #d7f493;
  transform: translateY(-2px);
}
.primary-button span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.start-hint {
  display: block;
  font: 8px var(--mono);
  letter-spacing: 1.2px;
  color: #819275;
  margin-top: 16px;
}
.arena-footer {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 21px;
  border-top: 1px solid #3b443b;
  color: #8c9a82;
  font-size: 9px;
}
.key {
  border: 1px solid #4c5847;
  border-radius: 3px;
  padding: 4px 5px;
  font: 8px var(--mono);
  color: #bfccb0;
  letter-spacing: 1px;
}
.or {
  margin: 0 5px;
  font-size: 8px;
  color: #6f7b68;
}
.control-description {
  margin-left: 7px;
}
.desktop-dash {
  display: flex;
  align-items: center;
  gap: 7px;
}
.touch-instruction {
  display: none;
  font: 9px var(--mono);
  letter-spacing: 1px;
}
.dash-button {
  display: none;
  background: #c9ed78;
  color: #283b20;
  border: 0;
  border-radius: 4px;
  padding: 8px 13px;
  font: 10px var(--mono);
  font-weight: 700;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.score-card {
  background: #e6edda;
  border: 1px solid #d5dfc9;
  border-radius: 11px;
  padding: 22px 22px 17px;
}
.score-card > .tiny-label {
  display: flex;
  justify-content: space-between;
  color: #738060;
}
.score-card > .tiny-label span {
  font-size: 17px;
}
.score-number {
  font-family: var(--display);
  font-weight: 600;
  font-size: 60px;
  letter-spacing: -3px;
  line-height: 1.1;
  margin: 15px 0 22px;
  font-variant-numeric: tabular-nums;
}
.score-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #d0d9c3;
  padding-top: 14px;
  font: 9px var(--mono);
  letter-spacing: 0.7px;
  color: #78816c;
}
.score-bottom strong {
  color: #4c5a3a;
  font-size: 12px;
  letter-spacing: 1px;
}
.telemetry {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 7px 21px 18px;
}
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e2e3d8;
  font-size: 11px;
  color: #7f8575;
}
.stat-row strong {
  font: 12px var(--mono);
  color: #444c3c;
}
.wave-label {
  font-size: 8px;
  color: #8d947e;
}
.hearts {
  display: flex;
  gap: 5px;
}
.hearts span {
  width: 9px;
  height: 13px;
  background: #8ea862;
  border-radius: 2px;
  transform: skew(-12deg);
}
.hearts span.lost {
  background: #d9ddce;
}
.dash-meter {
  margin-top: 15px;
}
.dash-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #7f8575;
  font-size: 11px;
}
.dash-meter strong {
  font: 8px var(--mono);
  letter-spacing: 0.5px;
  color: #7b9653;
}
.meter-track {
  margin-top: 10px;
  height: 4px;
  background: #e1e5d6;
  border-radius: 4px;
  overflow: hidden;
}
#dash-fill {
  height: 100%;
  background: #a5bc77;
  transform-origin: left;
  transform: scaleX(1);
}
.field-guide {
  padding: 8px 2px 0;
}
.field-guide > .tiny-label {
  color: #8b907e;
  font-size: 9px;
  letter-spacing: 1px;
}
.guide-item {
  display: flex;
  gap: 13px;
  margin-top: 20px;
  align-items: center;
}
.guide-icon {
  width: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.spark-icon {
  font-size: 27px;
  color: #8fa953;
}
.meteor-icon {
  width: 17px;
  height: 18px;
  background: #a78e75;
  clip-path: polygon(23% 0, 75% 4%, 100% 32%, 89% 77%, 51% 100%, 5% 72%, 0 28%);
  margin: 0 4px 0 5px;
}
.dash-icon {
  font-size: 28px;
  color: #68775a;
}
.guide-item strong {
  font-size: 11px;
  font-weight: 600;
}
.guide-item p {
  font-size: 10px;
  color: #8a8e80;
  margin: 4px 0 0;
}
.sidebar-note {
  margin-top: 4px;
  color: #979a8c;
  font-size: 10px;
  line-height: 1.9;
  padding-left: 25px;
  position: relative;
}
.sidebar-note > span {
  position: absolute;
  left: 0;
  font-size: 20px;
}
.sidebar-note strong {
  font-weight: 500;
  color: #78806a;
}
.bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 29px 0 38px;
  gap: 15px;
}
.bottom-strip > .tiny-label {
  font-size: 9px;
  color: #8b8f7f;
}
.bottom-strip > div {
  display: flex;
  gap: 7px;
}
.pill {
  border: 1px solid #dbded0;
  border-radius: 20px;
  padding: 7px 11px;
  font: 8px var(--mono);
  color: #8b907c;
  letter-spacing: 0.5px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 28px;
  display: flex;
  justify-content: space-between;
  color: #929686;
  font-size: 10px;
}
.site-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 13px;
}
.site-footer > span:last-child > span {
  color: #96ab70;
  font-size: 16px;
}
.hit-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  border: 8px solid #d69f79;
  transition: opacity 0.15s;
}
.hit-flash.active {
  opacity: 0.7;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  max-width: 470px;
  width: calc(100% - 36px);
  padding: 30px;
  box-shadow: 0 20px 80px #17271e35;
}
dialog::backdrop {
  background: #192b22a6;
  backdrop-filter: blur(5px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-top > .tiny-label {
  color: #7f8970;
}
dialog h2 {
  font: 800 30px/1.2 var(--display);
  letter-spacing: -1px;
}
dialog p {
  font-size: 13px;
  color: #727969;
  line-height: 1.7;
}
dialog .primary-button {
  margin-top: 12px;
}
button:not(:disabled):active {
  transform: translateY(2px);
}
@media (min-width: 1450px) {
  .site-shell {
    max-width: 1400px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .intro {
    padding: 52px 0 42px;
  }
}
@media (max-width: 1100px) {
  .site-shell {
    padding: 0 30px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 18px;
  }
  h1 {
    font-size: 58px;
  }
  .intro-note {
    padding-right: 15px;
  }
  .score-number {
    font-size: 51px;
  }
  .sidebar {
    gap: 12px;
  }
  .score-card {
    padding: 18px;
  }
  .telemetry {
    padding: 5px 16px 15px;
  }
  .stat-row {
    padding: 11px 0;
  }
  .guide-item {
    margin-top: 16px;
  }
  .sidebar-note {
    display: none;
  }
  .overlay-content h2 {
    font-size: 27px;
  }
  .orbit-emblem {
    width: 64px;
    height: 64px;
  }
  .overlay-content p {
    margin-bottom: 18px;
  }
  .arena-footer {
    padding: 0 13px;
  }
  .control-description {
    display: none;
  }
}
@media (max-width: 800px) {
  .site-shell {
    padding: 0 24px;
  }
  .site-header {
    height: 82px;
  }
  .availability {
    display: none;
  }
  .intro {
    padding: 33px 0 30px;
  }
  h1 {
    font-size: 52px;
    margin: 15px 0 19px;
  }
  .intro-note {
    gap: 13px;
    padding-right: 0;
  }
  .note-star {
    font-size: 55px;
  }
  .intro-note p {
    font-size: 12px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .canvas-wrap {
    aspect-ratio: 900/580;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 16px;
  }
  .score-card {
    padding: 20px;
  }
  .score-number {
    font-size: 49px;
    margin: 12px 0 15px;
  }
  .telemetry {
    padding: 5px 20px 15px;
  }
  .field-guide {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
  }
  .field-guide > .tiny-label {
    display: none;
  }
  .guide-item {
    gap: 8px;
    margin-top: 0;
    align-items: flex-start;
  }
  .guide-item strong {
    font-size: 10px;
  }
  .guide-item p {
    font-size: 9px;
    max-width: 120px;
    line-height: 1.5;
  }
  .guide-icon {
    width: 21px;
  }
  .meteor-icon {
    width: 15px;
    margin-right: 1px;
  }
  .bottom-strip {
    margin: 26px 0;
  }
  .overlay-content h2 {
    font-size: 32px;
  }
  .orbit-emblem {
    width: 80px;
    height: 80px;
  }
  .overlay-content p {
    font-size: 13px;
  }
  .arena-footer {
    padding: 0 20px;
  }
  .control-description {
    display: inline;
  }
}
@media (pointer: coarse) {
  .arena-footer > span:first-child,
  .arena-footer > .desktop-dash {
    display: none;
  }
  .touch-instruction,
  .dash-button {
    display: block;
  }
}
@media (max-width: 500px) {
  .site-shell {
    padding: 0 17px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }
  .header-right {
    gap: 8px;
  }
  .intro {
    padding: 29px 0 26px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  h1 {
    font-size: 47px;
    letter-spacing: -2.8px;
  }
  .intro-description {
    font-size: 12px;
  }
  .intro-note {
    display: none;
  }
  .canvas-wrap {
    aspect-ratio: 4/4.1;
  }
  .arena-toolbar {
    padding: 0 14px;
    height: 43px;
  }
  .arena-actions {
    gap: 8px;
  }
  .arena-actions > span {
    font-size: 6px;
  }
  .arena-name {
    font-size: 8px;
  }
  .version {
    margin-left: 0;
  }
  .overlay-content h2 {
    font-size: 27px;
  }
  .overlay-content p {
    font-size: 11px;
  }
  .overlay-kicker {
    font-size: 7px;
  }
  .arena-footer {
    height: 48px;
    padding: 0 13px;
  }
  .arena-footer .key {
    font-size: 7px;
    padding: 4px 3px;
  }
  .arena-footer .control-description {
    display: none;
  }
  .desktop-dash {
    font-size: 8px;
  }
  .sidebar {
    gap: 10px;
  }
  .score-card {
    padding: 17px 15px;
  }
  .score-number {
    font-size: 45px;
  }
  .score-bottom {
    font-size: 7px;
  }
  .telemetry {
    padding: 3px 13px 13px;
  }
  .stat-row {
    font-size: 10px;
    padding: 10px 0;
  }
  .wave-label {
    font-size: 7px;
  }
  .dash-meter {
    margin-top: 12px;
  }
  .dash-meter > div:first-child {
    font-size: 10px;
  }
  .field-guide {
    gap: 10px;
    margin-top: 5px;
  }
  .guide-item {
    display: block;
  }
  .guide-icon {
    margin-bottom: 8px;
    height: 22px;
  }
  .guide-item p {
    font-size: 9px;
  }
  .guide-item strong {
    font-size: 10px;
  }
  .meteor-icon {
    height: 19px;
    margin-top: 2px;
    margin-bottom: 9px;
  }
  .bottom-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }
  .pill {
    padding: 6px 9px;
    font-size: 7px;
  }
  .site-footer {
    font-size: 9px;
    gap: 12px;
  }
  .site-footer > span:last-child {
    max-width: 140px;
    text-align: right;
    gap: 6px;
  }
  .top-left {
    top: 15px;
    left: 15px;
    font-size: 7px;
  }
  .bottom-left {
    bottom: 15px;
    left: 15px;
  }
  .bottom-right {
    bottom: 18px;
    right: 15px;
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  .hit-flash {
    transition: none;
  }
}

.touch-controls .arena-footer > span:first-child,
.touch-controls .arena-footer > .desktop-dash {
  display: none;
}

.touch-controls .touch-instruction,
.touch-controls .dash-button {
  display: block;
}
