@font-face {
  font-family: Chakra;
  src: url('./assets/chakra-bold-italic.ttf');
}
@font-face {
  font-family: Barlow;
  src: url('./assets/barlow-condensed-bold.ttf');
}
:root {
  color-scheme: dark;
  --orange: #ff8846;
  --text: #f0f1ed;
  --muted: #92a0a6;
  --line: #303a3d;
  --mono: ui-monospace, 'Liberation Mono', monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  font:
    15px Arial,
    sans-serif;
  background: #0b1013;
  min-height: 100svh;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid #99f7e1;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.symbols {
  height: 0;
  width: 0;
  position: absolute;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
header {
  height: 76px;
  margin: 0 clamp(16px, 3.3vw, 66px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark,
.header-actions,
.connection,
.deck-title,
.key-list,
.key-list > div,
.record,
.manual,
.launch-mark,
.eyeline,
.mission-name,
.primary,
footer span {
  display: flex;
  align-items: center;
}
.wordmark {
  gap: 12px;
}
.wordmark .logo {
  color: var(--orange);
  stroke: none;
  width: 37px;
  height: 33px;
}
.wordmark b {
  font:
    italic 700 23px Chakra,
    Arial,
    sans-serif;
  letter-spacing: -1.1px;
}
.wordmark > span {
  border-left: 1px solid var(--line);
  padding-left: 17px;
  margin-left: 5px;
  font: 10px var(--mono);
  letter-spacing: 1.9px;
  color: #a0aaae;
}
.header-actions {
  gap: 8px;
}
.connection {
  color: #bdc8c7;
  gap: 8px;
  font: 9px var(--mono);
  letter-spacing: 1.3px;
  margin-right: 17px;
}
.connection i,
footer i {
  background: #81d4ad;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px #77d2ab55;
}
.icon {
  height: 34px;
  width: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #13191c;
  border-radius: 3px;
}
.icon svg {
  width: 16px;
  height: 16px;
}
.icon:hover,
.manual:hover {
  color: var(--orange);
  border-color: #a66a40;
}
main {
  margin: 0 clamp(16px, 3.3vw, 66px);
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 76px);
}
#stage {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 440px;
  border: 1px solid #3d4546;
  background: #0c131a;
}
#space,
.shade,
.corners,
#effects,
#flash,
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#space {
  background-image: url('./assets/belt.webp');
  background-size: cover;
  background-position: center;
}
#space canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.shade {
  background:
    linear-gradient(
      90deg,
      rgba(9, 15, 19, 0.94),
      rgba(10, 15, 18, 0.75) 24%,
      rgba(9, 14, 18, 0.12) 50%,
      transparent 72%
    ),
    linear-gradient(0deg, #080d12a8, transparent 18%);
}
.corners {
  z-index: 8;
}
.corners i {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: #9b9f98;
}
.corners i:nth-child(1) {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}
.corners i:nth-child(2) {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}
.corners i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}
.corners i:last-child {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}
.corners {
  color: #8f9690;
}
.launch-mark,
.coord,
.ship-tag {
  position: absolute;
  font: 10px var(--mono);
  letter-spacing: 1.3px;
  color: #adbab7;
}
.launch-mark {
  left: 26px;
  top: 22px;
  gap: 10px;
}
.launch-mark em,
footer em,
.ship-tag b {
  font-style: normal;
  color: #626c6c;
}
.signal {
  display: inline-flex;
  gap: 2px;
  align-items: end;
}
.signal i {
  width: 3px;
  background: #aab7af;
  height: 4px;
}
.signal i:nth-child(2) {
  height: 6px;
}
.signal i:nth-child(3) {
  height: 8px;
}
.signal i:nth-child(4) {
  height: 10px;
}
.coord {
  right: 26px;
  top: 21px;
  text-align: right;
  border-right: 2px solid var(--orange);
  padding-right: 11px;
  font-size: 9px;
  line-height: 1.7;
}
.coord b,
.coord span {
  display: block;
}
.coord b {
  color: #f0c39f;
  letter-spacing: 1.8px;
}
#intro {
  position: absolute;
  left: clamp(26px, 5.1vw, 100px);
  top: 51%;
  transform: translateY(-50%);
  z-index: 2;
}
.eyeline {
  gap: 10px;
  color: var(--orange);
  font: 600 10px var(--mono);
  letter-spacing: 2.2px;
}
.eyeline span {
  width: 29px;
  height: 2px;
  background: var(--orange);
}
h1,
h2 {
  font:
    italic 700 clamp(76px, min(8.7vw, 14.3vh), 178px)/0.82 Chakra,
    'Arial Black',
    sans-serif;
  margin: 23px 0;
  color: #f3f2eb;
  letter-spacing: -0.075em;
  text-shadow: 1px 3px 1px #1117;
}
h1 {
  position: relative;
  margin-left: -0.035em;
}
.dimtag {
  font:
    italic 700 0.2em Chakra,
    Arial,
    sans-serif;
  letter-spacing: -0.06em;
  color: var(--orange);
  display: inline-block;
  vertical-align: top;
  margin: 0.22em 0 0 0.42em;
  padding: 0.01em 0.23em;
  border: 1px solid #a66843;
  transform: skewX(-6deg);
}
.mission-name {
  font:
    700 clamp(16px, 1.5vw, 23px) Barlow,
    sans-serif;
  letter-spacing: 0.26em;
  gap: 12px;
  color: #d5d6ce;
}
.mission-name i {
  width: 31px;
  height: 10px;
  transform: skewX(-26deg);
  background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 8px);
}
#intro p {
  color: #bbc3c4;
  line-height: 1.54;
  font-size: clamp(14px, 1.15vw, 19px);
  margin: 18px 0 25px;
}
.primary {
  border: 0;
  background: var(--orange);
  color: #171716;
  gap: 13px;
  padding: 0 20px;
  height: 50px;
  font:
    700 18px Barlow,
    sans-serif;
  letter-spacing: 1.3px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  box-shadow: inset 0 2px #ffc199;
}
.primary:hover {
  background: #ffa66c;
}
.play-triangle {
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.primary kbd {
  color: #59311b;
  border-color: #bd693a;
  background: #ef7b3c;
  margin-left: 13px;
  min-height: 22px;
  font-size: 10px;
}
.manual {
  border: 0;
  background: transparent;
  gap: 8px;
  padding: 12px 1px 0;
  color: #b3bfc1;
  font-size: 12px;
}
.manual svg {
  width: 15px;
  height: 15px;
}
.ship-tag {
  right: 8%;
  bottom: 10%;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  color: #c5cece;
  text-shadow: 0 1px 4px #000;
}
.ship-tag i {
  width: 45px;
  border-top: 1px solid #a3aaa688;
  position: relative;
}
.ship-tag i:before {
  content: '';
  position: absolute;
  width: 25px;
  border-top: 1px solid #a3aaa688;
  transform: rotate(42deg);
  transform-origin: right;
  right: 100%;
}
.ship-tag b {
  padding: 0 4px;
}
.deck {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 14px;
}
.controls-strip,
.record {
  border: 1px solid var(--line);
  background: linear-gradient(110deg, #151c20, #11171b);
}
.controls-strip {
  padding: 18px 24px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.5vw, 70px);
}
.deck-title,
small,
.record small {
  font: 10px var(--mono);
  letter-spacing: 1.4px;
  color: #a6b3b7;
}
.deck-title {
  gap: 10px;
  white-space: nowrap;
}
.deck-title svg,
.record > svg {
  color: var(--orange);
  width: 17px;
  height: 17px;
}
.key-list {
  gap: clamp(10px, 2.35vw, 45px);
}
.key-list > div {
  gap: 3px;
}
.key-list span {
  margin-left: 5px;
  font-size: 13px;
  color: #c4cccd;
}
kbd {
  display: inline-grid;
  place-items: center;
  font: 11px var(--mono);
  min-width: 22px;
  min-height: 23px;
  padding: 2px 5px;
  background: #20282c;
  color: #e2e7e4;
  border: 1px solid #465053;
  border-bottom: 2px solid #4e595c;
  border-radius: 3px;
}
.record {
  min-width: 19%;
  gap: 16px;
  padding: 13px 26px;
}
.record > svg {
  width: 22px;
  height: 22px;
}
.record small,
.record strong {
  display: block;
}
.record strong {
  font:
    24px Barlow,
    sans-serif;
  letter-spacing: 2px;
  line-height: 1;
}
.record small {
  font-size: 9px;
  letter-spacing: 1.7px;
  margin-bottom: 6px;
}
footer {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px var(--mono);
  color: #818f94;
  letter-spacing: 1.1px;
}
footer span {
  gap: 9px;
}
footer i {
  border-radius: 0;
  width: 5px;
  height: 5px;
  background: #7d8b8e;
  box-shadow: none;
}
body.flying .launch-mark,
body.flying .coord,
body.flying #intro,
body.flying .ship-tag {
  display: none;
}
body.flying .shade {
  background: linear-gradient(180deg, #08101780, transparent 20%, transparent 78%, #0810179c);
}
body.flying #stage {
  touch-action: none;
  cursor: crosshair;
}
#hud {
  z-index: 2;
}
.hud-left,
.hud-right,
.meters,
.weapon {
  position: absolute;
  background: #0a1218b3;
  border-left: 2px solid #c57f4d;
  padding: 9px 12px;
}
.hud-left,
.hud-right {
  top: 18px;
}
.hud-left,
.meters {
  left: 20px;
}
.hud-right,
.weapon {
  right: 20px;
  text-align: right;
  border-left: 0;
  border-right: 2px solid #9caaa6;
}
.hud-left small,
.hud-right small,
.weapon small {
  display: block;
  color: #afbcbe;
  font-size: 9px;
}
.hud-left strong,
.hud-right strong,
.weapon strong {
  font:
    30px Barlow,
    sans-serif;
  letter-spacing: 1.5px;
  display: block;
  line-height: 1.05;
}
.hud-left b {
  color: #ffb465;
  font: 12px var(--mono);
}
.hud-right strong {
  font-size: 24px;
}
.progress,
.bar {
  background: #344046;
}
.progress {
  height: 2px;
  width: 108px;
  margin-top: 6px;
}
.bar i,
.progress i {
  display: block;
  height: 100%;
  background: var(--orange);
}
.meters,
.weapon {
  bottom: 18px;
}
.meters {
  display: flex;
  gap: 17px;
}
.meters label {
  display: flex;
  justify-content: space-between;
  font: 10px var(--mono);
  letter-spacing: 1.2px;
  color: #cbd1d0;
}
.bar {
  width: 94px;
  height: 5px;
  margin-top: 6px;
}
.bar i {
  background: #7cdbca;
}
.bar #fuel {
  background: #ffae54;
}
.weapon strong {
  color: #e0e7e1;
  font-size: 19px;
}
.weapon small {
  margin-bottom: 5px;
}
#notice {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  font:
    700 20px Barlow,
    sans-serif;
  letter-spacing: 2px;
  color: #ffbb7a;
  text-shadow: 0 2px 5px #061018;
}
.popup {
  position: absolute;
  color: #fff2c7;
  font:
    700 18px Barlow,
    sans-serif;
  text-shadow: 1px 1px 3px #000;
  animation: rise 0.85s ease-out forwards;
}
@keyframes rise {
  to {
    transform: translateY(-34px);
    opacity: 0;
  }
}
#aim {
  position: absolute;
  width: 25px;
  height: 25px;
  transform: translate(-50%, -50%);
  border: 1px solid #9ff5e599;
  border-radius: 50%;
  box-shadow: 0 0 2px #14191c;
}
#aim:before,
#aim:after {
  content: '';
  position: absolute;
  top: 11px;
  width: 8px;
  border-top: 1px solid #bdfbef;
}
#aim:before {
  right: 98%;
}
#aim:after {
  left: 98%;
}
#aim i {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 3px;
  height: 3px;
  background: #c7fff6;
}
#aim.lock {
  border-color: #ffbd79;
  color: orange;
}
#flash {
  z-index: 4;
  opacity: 0;
  background: radial-gradient(ellipse, transparent 22%, #e53421bb 98%);
  box-shadow: inset 0 0 40px #ff432c;
  pointer-events: none;
}
#modal {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  background: #071014b8;
  backdrop-filter: blur(5px);
  cursor: auto;
}
.modal-card {
  max-height: calc(100% - 22px);
  overflow-y: auto;
  max-width: 92%;
  width: 440px;
  padding: 32px;
  background: linear-gradient(125deg, #202a2f, #10181e);
  border: 1px solid #566466;
  border-top: 3px solid var(--orange);
  box-shadow: 0 16px 80px #0008;
}
.modal-card h2 {
  font-size: clamp(36px, 4vw, 60px);
  line-height: 0.99;
  letter-spacing: -0.06em;
  margin: 16px 0;
}
.modal-card p {
  line-height: 1.5;
  color: #c3cdd0;
  margin: 10px 0;
  font-size: 14px;
}
.modal-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  border-block: 1px solid var(--line);
  padding: 14px 0;
}
.modal-card dd {
  font: 13px var(--mono);
  color: #ffb17a;
}
.modal-card dt {
  font-size: 14px;
}
.modal-card .primary {
  margin-top: 16px;
}
.modal-card .manual {
  display: inline-flex;
  margin-right: 20px;
}
body.modal-open .popup {
  animation-play-state: paused;
}
@media (min-height: 950px) {
  header {
    height: 88px;
  }
  main {
    min-height: calc(100svh - 88px);
  }
  .deck {
    min-height: 85px;
  }
  footer {
    height: 44px;
  }
}
@media (max-width: 950px) {
  .controls-strip {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 17px;
  }
  .key-list {
    gap: 16px;
  }
  .record {
    padding: 12px 20px;
  }
  .wordmark > span {
    display: none;
  }
  .deck-title {
    font-size: 9px;
  }
  .deck-title svg {
    width: 13px;
    height: 13px;
  }
}
@media (max-height: 680px) and (min-width: 701px) {
  header {
    height: 52px;
  }
  main {
    min-height: calc(100svh - 52px);
  }
  #stage {
    min-height: 360px;
  }
  .deck {
    margin-top: 8px;
  }
  .controls-strip {
    padding: 9px 18px;
  }
  .record {
    padding: 8px 22px;
  }
  footer {
    height: 25px;
  }
  #intro {
    top: 53%;
  }
  h1 {
    font-size: min(8vw, 14vh);
    margin: 13px 0;
  }
  .launch-mark {
    top: 14px;
  }
  #intro p {
    margin: 10px 0 15px;
  }
  .primary {
    height: 43px;
  }
}
@media (max-width: 700px) {
  header {
    height: 55px;
  }
  .wordmark b {
    font-size: 19px;
  }
  .wordmark .logo {
    width: 27px;
  }
  .wordmark {
    gap: 7px;
  }
  .connection {
    display: none;
  }
  main {
    min-height: calc(100svh - 55px);
  }
  #stage {
    min-height: 510px;
  }
  .launch-mark {
    top: 15px;
    left: 15px;
    font-size: 8px;
  }
  .coord {
    right: 14px;
    top: 14px;
    font-size: 8px;
  }
  #intro {
    left: 22px;
    top: auto;
    transform: none;
    bottom: 25px;
  }
  h1 {
    font-size: clamp(58px, 11vw, 78px);
    margin: 13px 0;
  }
  .eyeline {
    font-size: 9px;
  }
  .shade {
    background: linear-gradient(70deg, #090e12ed, transparent 70%);
  }
  .ship-tag {
    display: none;
  }
  .deck {
    gap: 7px;
    margin-top: 7px;
  }
  .controls-strip {
    padding: 10px;
  }
  .key-list {
    flex-wrap: wrap;
    gap: 6px 13px;
  }
  .key-list span {
    font-size: 11px;
  }
  .key-list kbd {
    font-size: 9px;
    min-width: 16px;
    min-height: 17px;
    padding: 1px 3px;
  }
  .record {
    padding: 10px;
    gap: 7px;
    min-width: 22%;
  }
  .record > svg {
    display: none;
  }
  .record small {
    font-size: 8px;
  }
  .record strong {
    font-size: 19px;
  }
  footer {
    font-size: 7px;
    height: 29px;
  }
  .meters {
    gap: 9px;
  }
  .bar {
    width: 55px;
  }
  .weapon strong {
    font-size: 14px;
  }
  .hud-left,
  .meters {
    left: 8px;
  }
  .hud-right,
  .weapon {
    right: 8px;
  }
}
</EOF#hazard,
#prize {
  position: absolute;
  font: 9px var(--mono);
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 1px 4px #000;
  background: #091116b5;
  padding: 3px 5px;
}
#hazard {
  color: #ffaf7b;
  transform: translate(-50%, calc(-100% - 18px));
  border-top: 1px solid #ff8c4f;
}
#hazard i {
  display: inline-block;
  width: 0;
  height: 0;
  border-bottom: 6px solid #ff9257;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  margin-right: 4px;
}
#prize {
  color: #adffdf;
  transform: translate(13px, 10px);
  border-left: 1px solid #7fe8c3;
}
@media (max-height: 680px) {
  .modal-card {
    padding: 16px 22px;
  }
  .modal-card h2 {
    font-size: 32px;
    margin: 9px 0;
  }
  .modal-card p {
    font-size: 13px;
    line-height: 1.35;
    margin: 7px 0;
  }
  .modal-card dl {
    gap: 5px;
    margin: 9px 0;
    padding: 8px 0;
  }
  .modal-card .primary {
    height: 38px;
    margin-top: 9px;
  }
}
