@font-face {
  font-family: Cond;
  src: url(assets/Barlow-Condensed.ttf);
}
@font-face {
  font-family: Barlow;
  src: url(assets/Barlow.ttf);
}
@font-face {
  font-family: Mono;
  src: url(assets/IBM-Plex-Mono.ttf);
}
:root {
  --amber: #edab48;
  --pale: #e7e6dd;
  --line: #ffffff30;
  --mono: Mono, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #101717;
  color: var(--pale);
  font-family: Barlow, Arial, sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
button svg,
#pin svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#backdrop,
#vignette,
#world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#backdrop {
  background: #34413a url(assets/valley.webp) 60% center/cover no-repeat;
  animation: pan 65s ease-in-out infinite alternate;
}
@keyframes pan {
  to {
    transform: scale(1.035);
  }
}
#vignette {
  background:
    linear-gradient(
      90deg,
      rgba(7, 15, 16, 0.87),
      rgba(9, 17, 18, 0.58) 22%,
      transparent 57%
    ),
    linear-gradient(
      0deg,
      #080e10ec 0%,
      #0b121349 19%,
      transparent 53%,
      #09111224 85%,
      #08101270
    );
}
#shell {
  position: absolute;
  inset: 0;
  padding: 0 clamp(26px, 4.6vw, 94px);
  display: flex;
  flex-direction: column;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
header {
  height: 11vh;
  min-height: 65px;
  max-height: 96px;
}
.brand,
.utilities,
.build,
.loc,
.eyebrow,
.radio-top,
.radio-bottom,
.navbtn,
.hudtop,
#actions {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
}
.brand svg {
  color: var(--amber);
}
.brand span {
  font-family: Cond, sans-serif;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 2.4px;
}
.brand small {
  display: block;
  font: 8px var(--mono);
  letter-spacing: 3.1px;
  margin-top: 4px;
}
.utilities {
  gap: 20px;
}
.utilities i {
  height: 14px;
  background: var(--line);
  width: 1px;
}
.utilities button {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 10px var(--mono);
  letter-spacing: 1.4px;
  padding: 8px 0;
}
.utilities button:hover {
  color: var(--amber);
}
#menu {
  margin: auto 0;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  padding-bottom: 10px;
}
.eyebrow,
.radio-top {
  font: 11px var(--mono);
  letter-spacing: 2.5px;
  color: var(--amber);
}
.eyebrow {
  gap: 12px;
}
.eyebrow b {
  width: 30px;
  height: 2px;
  background: var(--amber);
}
h1 {
  font:
    clamp(78px, min(9vw, 15vh), 165px)/0.83 Cond,
    Impact,
    sans-serif;
  letter-spacing: -0.027em;
  margin: 17px 0 15px;
  background: url(assets/lettering.webp);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  width: max-content;
}
.tagline {
  color: #d4d7cf;
  font-size: clamp(14px, 1.1vw, 18px);
  margin: 0 0 clamp(22px, 3.6vh, 42px);
  letter-spacing: 0.15px;
}
nav {
  width: clamp(248px, 22.5vw, 350px);
  display: grid;
  gap: 4px;
}
.navbtn {
  text-align: left;
  text-transform: uppercase;
  font-family: Cond, sans-serif;
  font-size: clamp(16px, 2.2vh, 21px);
  letter-spacing: 1.25px;
  gap: 15px;
  width: 100%;
  height: clamp(36px, 5.3vh, 57px);
  padding: 0 18px;
  transition:
    background 0.18s,
    color 0.18s;
}
.navbtn svg {
  width: 19px;
}
.navbtn.primary {
  background: var(--amber);
  color: #141918;
  box-shadow: 0 0 30px #c4831822;
}
.navbtn.primary svg {
  fill: currentColor;
  stroke-width: 1;
}
.navbtn.primary:hover {
  background: #ffc56b;
}
.navbtn:not(.primary):hover:enabled {
  background: #d6ddd114;
}
.navbtn:disabled {
  color: #9ba19e;
}
.navbtn em {
  margin-left: auto;
  font: 9px var(--mono);
  letter-spacing: 0.5px;
  color: #a7a9a4;
}
.navbtn kbd {
  margin-left: auto;
  color: #3a3327;
  border-color: #48361e66;
}
kbd {
  font: 10px var(--mono);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 5px;
  letter-spacing: 0;
}
#transmission {
  position: absolute;
  right: 4.6vw;
  bottom: 14.2vh;
  width: 282px;
  background: linear-gradient(110deg, #101a1de0, #151c1dd9);
  backdrop-filter: blur(8px);
  padding: 18px 20px 13px;
  border: 1px solid #e3ece530;
  border-top: 2px solid #b58c50;
}
.radio-top {
  font-size: 9px;
  letter-spacing: 1.3px;
  gap: 7px;
}
.live-dot,
.build b {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.wave {
  margin-left: auto;
  width: 45px;
  height: 15px;
  display: flex;
  gap: 2px;
  align-items: center;
}
.wave b {
  background: var(--amber);
  width: 2px;
}
.radio-frequency {
  font: 29px Cond;
  letter-spacing: 1px;
  margin: 10px 0 4px;
}
.radio-frequency span {
  color: #a1aaa5;
  font: 11px var(--mono);
  letter-spacing: 0;
}
#transmission p {
  margin: 4px 0 14px;
  font: italic 14px/1.4 Barlow;
  color: #d3d6d0;
}
.radio-bottom {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 1.2px;
  color: #9da8a3;
}
.meter {
  color: #909e89;
  font-size: 11px;
}
footer {
  height: 7.5vh;
  min-height: 40px;
  border-top: 1px solid #c3c7bb38;
  font: 10px var(--mono);
  letter-spacing: 1.25px;
  color: #b3bbb4;
  gap: 20px;
}
.build,
.loc {
  gap: 9px;
}
.build b {
  background: #9eaf8d;
}
.footer-line {
  flex: 1;
}
.loc svg {
  width: 13px !important;
  height: 13px !important;
}
.coord {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  font-size: 9px;
  color: #97a09c;
}
#modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #061013a8;
  backdrop-filter: blur(6px);
  padding: 16px;
}
#modal section {
  width: min(500px, 100%);
  max-height: 90dvh;
  overflow: auto;
  background: linear-gradient(140deg, #202c2c, #11191a);
  border: 1px solid #7e8a794a;
  border-top: 2px solid var(--amber);
  padding: 26px 30px;
  box-shadow: 0 22px 80px #0007;
}
.dialog-head,
.row,
.pair,
.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#close {
  font-size: 28px;
  color: #bdc6bc;
  line-height: 1;
}
h2 {
  font: 44px/0.98 Cond;
  text-transform: uppercase;
  margin: 12px 0 22px;
  letter-spacing: 0.5px;
}
#dialogBody p {
  color: #bec9bf;
  line-height: 1.45;
  margin: 12px 0;
}
.label,
small,
.hint {
  font: 10px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.label {
  display: block;
  color: #b6c1b7;
  margin: 20px 0 8px;
}
.seg {
  display: flex;
  gap: 4px;
}
.seg button,
.btn,
.route {
  border: 1px solid #b6c4b439;
  padding: 10px 14px;
  background: #ffffff06;
}
.seg button {
  flex: 1;
  padding: 9px 4px;
}
.seg .sel,
.btn:hover,
.route:hover {
  color: var(--amber);
  border-color: #d7a252;
}
.btn {
  margin: 3px 2px;
}
.cta {
  width: 100%;
  background: var(--amber);
  color: #1c211f;
  padding: 13px;
  font: 18px Cond;
  letter-spacing: 1.3px;
  margin-top: 22px;
  text-transform: uppercase;
}
.field,
.stat {
  border: 1px solid var(--line);
  background: #121d1d;
  color: #e1e7dd;
  padding: 10px 12px;
  width: 100%;
}
.row {
  border-bottom: 1px solid #cbd3c021;
  padding: 9px 0;
}
.row input {
  accent-color: var(--amber);
}
.pair {
  gap: 6px;
}
.pair .btn {
  margin: 0;
}
.hint {
  color: #adbbaa;
  font-size: 10px;
}
.smallbtn {
  border: 1px solid #98ac9c55;
  padding: 5px 10px;
  color: var(--amber);
}
#toast {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translate(-50%, 8px);
  padding: 10px 18px;
  background: #141f20ed;
  border: 1px solid #8e9b8466;
  color: #e8e9da;
  z-index: 22;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  text-shadow: 0 1px 4px #000;
}
.hudtop,
.hudbottom {
  position: absolute;
  left: 3vw;
  right: 3vw;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hudtop {
  top: 4vh;
}
.hudtop div {
  margin-right: auto;
}
.hudtop strong {
  display: block;
  font: 26px Cond;
  text-transform: uppercase;
}
.hudtop small,
#goal {
  color: #f3d299;
}
.hudtop button,
#actions button,
#touchMove {
  pointer-events: auto;
  background: #101a1ddc;
  border: 1px solid #b5c2b74d;
  padding: 9px 13px;
}
.hudbottom {
  bottom: 4vh;
  justify-content: space-between;
  align-items: flex-end;
}
#actions {
  max-width: 60%;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}
#instruments {
  background: #152021e6;
  border-left: 2px solid var(--amber);
  padding: 10px 16px;
  font: 12px var(--mono);
  line-height: 1.7;
}
#instruments b {
  font: 38px Cond;
  color: var(--amber);
}
#goal {
  position: absolute;
  top: 15vh;
  left: 3vw;
  font: 13px var(--mono);
  max-width: 80%;
}
#reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #fff;
  font-size: 22px;
}
#touchMove {
  display: none;
  position: absolute;
  left: 20px;
  bottom: 20%;
  width: 84px;
  height: 84px;
  touch-action: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #d9dcd866 0 22%,
    #12202588 25% 61%,
    #c3d4c788 63%,
    #12202588 66%
  );
}
#world {
  touch-action: none;
}
.route {
  width: 100%;
  margin: 6px 0;
  text-align: left;
}
.route span {
  display: block;
  font: 11px var(--mono);
  color: #b7c3b3;
  margin-top: 4px;
}
.route.selected {
  border-color: var(--amber);
}
.bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bars div {
  font-size: 12px;
}
.bars progress {
  width: 100%;
  height: 5px;
  accent-color: #d7aa64;
}
a {
  color: var(--amber);
}
@media (pointer: coarse) {
  #touchMove {
    display: block;
  }
}
@media (max-width: 700px) {
  #shell {
    padding: 0 6vw;
  }
  #backdrop {
    background-position: 62% center;
  }
  #vignette {
    background:
      linear-gradient(90deg, #081113dc, transparent 86%),
      linear-gradient(0deg, #071011, transparent 60%);
  }
  h1 {
    font-size: clamp(84px, 14vh, 135px);
  }
  #transmission {
    display: none;
  }
  .coord {
    display: none;
  }
  .utilities {
    gap: 14px;
  }
  .loc,
  footer {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  nav {
    width: 245px;
  }
  #dialogBody {
    font-size: 15px;
  }
  .hudbottom {
    flex-wrap: wrap;
  }
  #actions {
    max-width: 100%;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  header {
    min-height: 38px;
  }
  .brand svg {
    width: 26px;
    height: 26px;
  }
  .brand span {
    font-size: 12px;
  }
  #menu {
    padding: 2px 0;
  }
  h1 {
    font-size: 15vh;
    margin: 6px 0;
  }
  .tagline {
    margin: 4px 0 8px;
    font-size: 12px;
  }
  .navbtn {
    height: 6.8vh;
    min-height: 24px;
    font-size: 14px;
  }
  nav {
    gap: 0;
  }
  .eyebrow {
    font-size: 9px;
  }
  footer {
    min-height: 23px;
    font-size: 8px;
  }
  #transmission {
    bottom: 12vh;
    transform: scale(0.8);
    transform-origin: right bottom;
  }
  #modal section {
    padding: 12px 18px;
  }
  .label {
    margin-top: 9px;
  }
  .hudtop {
    top: 2vh;
  }
  .hudbottom {
    bottom: 2vh;
  }
}
