:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #f3f5df;
  background: #183a38;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  font-weight: 900;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#lobby {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 34, 32, 0.97),
    rgba(10, 34, 32, 0.84) 30%,
    rgba(10, 34, 32, 0.08) 70%
  );
  padding: 35px 4.5vw;
  display: flex;
  flex-direction: column;
}
header,
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 950;
  font-size: 34px;
  letter-spacing: -2px;
  color: #f6f5df;
  text-decoration: none;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 3px;
}
.edition,
.tiny,
.eyebrow,
footer,
.chips,
label,
small {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
}
.edition {
  display: flex;
  align-items: center;
  gap: 12px;
}
.edition i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a5ef8f;
}
.intro {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 620px;
}
.eyebrow {
  color: #a9c2a9;
  font-size: 10px;
  letter-spacing: 2px;
}
h1 {
  position: relative;
  font-size: clamp(72px, 8.8vw, 146px);
  font-weight: 950;
  letter-spacing: -8px;
  line-height: 0.83;
  margin: 27px 0;
  color: #eff2d8;
}
h1 em {
  color: #ff8b3d;
  font-style: normal;
}
.star {
  position: absolute;
  font-size: 82px;
  transform: rotate(-15deg);
  top: 2px;
  margin-left: 25px;
  color: #b9e585;
}
.tagline {
  font-size: 18px;
  line-height: 1.5;
  color: #c8d6c4;
  margin: 25px 0;
}
#join {
  max-width: 445px;
  margin-top: 30px;
}
label {
  display: block;
  color: #b5caba;
}
.entry {
  display: flex;
  margin-top: 10px;
  border: 1px solid #829b7a;
  background: #183c35;
  padding: 5px;
}
.entry input {
  width: 48%;
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: #fff;
  padding: 14px 12px;
  outline-offset: 0;
}
.entry button,
.panel > button {
  background: #c6ef9a;
  color: #193a30;
  padding: 16px 23px;
  white-space: nowrap;
}
.entry button span {
  font-size: 23px;
  padding-left: 18px;
}
#status {
  font-family: monospace;
  font-size: 11px;
  color: #afc2ac;
  min-height: 14px;
}
.chips {
  display: flex;
  gap: 8px;
  margin-top: 26px;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.chips span {
  border: 1px solid #69866b;
  padding: 7px 9px;
}
.captains {
  position: absolute;
  right: 5vw;
  bottom: 17%;
  width: 280px;
}
.captains > div {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  border-left: 3px solid #ff8b3d;
  padding-left: 13px;
  text-shadow: 0 2px 8px #123;
}
.captains b {
  font-size: 25px;
}
.captains div span {
  font-size: 12px;
  margin-top: 5px;
}
footer {
  border-top: 1px solid #a7c49255;
  padding-top: 20px;
  font-size: 10px;
}
footer button {
  background: none;
  color: #eff2d8;
  font-family: monospace;
  font-size: 11px;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  text-shadow: 0 2px 3px #123;
}
.scoreboard {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 5px;
}
.pip,
.pop {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 25px;
  background: #10352ed9;
  border-bottom: 3px solid #9ce0b1;
  font-weight: 900;
}
.pop {
  background: #592e26d9;
  border-color: #ffa15b;
}
.scoreboard b {
  font-size: 32px;
}
.clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #18332cdb;
  padding: 6px 20px;
}
.clock small {
  font-size: 8px;
}
.clock b {
  font-size: 22px;
  margin-top: 4px;
}
#objective {
  position: absolute;
  top: 100px;
  text-align: center;
  width: 100%;
  font: 700 12px monospace;
  color: #e5efb4;
  letter-spacing: 2px;
}
#telemetry {
  position: absolute;
  top: 20px;
  right: 20px;
  font: 10px monospace;
  color: #e2ebd6;
}
#feed {
  position: absolute;
  right: 20px;
  top: 65px;
  font: 12px monospace;
  text-align: right;
  line-height: 1.8;
}
#crosshair,
#hit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
}
#hit {
  color: #ffb062;
  opacity: 0;
  font-size: 50px;
}
#toast {
  position: absolute;
  top: 29%;
  width: 100%;
  text-align: center;
  color: #f2ffc6;
  font-size: 20px;
  font-weight: bold;
}
.vitals {
  position: absolute;
  bottom: 50px;
  left: 35px;
  right: 35px;
  display: flex;
  justify-content: space-between;
}
.vitals small {
  display: block;
  font-size: 9px;
  margin-bottom: 7px;
}
.vitals strong {
  font-size: 54px;
}
.vitals span {
  font: 12px monospace;
  margin-left: 8px;
}
.ammo {
  text-align: right;
}
#controls {
  position: absolute;
  bottom: 18px;
  width: 100%;
  text-align: center;
  font: 10px monospace;
  opacity: 0.8;
}
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0a2429b8;
  z-index: 5;
}
.panel {
  background: #133a35;
  border: 1px solid #839a77;
  max-width: 590px;
  width: 90%;
  padding: 35px;
  box-shadow: 10px 10px 0 #0d252b66;
}
.panel h2 {
  font-size: 35px;
  letter-spacing: -1px;
  margin: 18px 0;
}
.panel p {
  color: #b8cdbb;
  line-height: 1.6;
  font-size: 14px;
}
.panel > button {
  margin-top: 10px;
}
.panel button.secondary {
  background: none;
  color: #bacab7;
}
.settings {
  border-top: 1px solid #708f65;
  margin-top: 25px;
  padding-top: 20px;
}
.settings label {
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0;
}
.settings select {
  background: #21473b;
  color: #fff;
  border: 1px solid #81936d;
  padding: 5px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 10px 5px;
  border-bottom: 1px solid #496858;
}
th {
  font: 9px monospace;
}
.wide {
  max-width: 750px;
}
#death {
  position: fixed;
  top: 43%;
  width: 100%;
  text-align: center;
  font-size: 35px;
  font-weight: 900;
  color: #ffb378;
  text-shadow: 0 3px 6px #123;
}
@media (max-width: 800px) {
  #lobby {
    padding: 24px;
  }
  .edition {
    display: none;
  }
  .intro {
    max-width: 95%;
  }
  h1 {
    font-size: 90px;
    letter-spacing: -5px;
  }
  .star {
    font-size: 50px;
    margin-left: 8px;
  }
  .captains {
    display: none;
  }
  .tagline {
    font-size: 16px;
  }
  footer span:nth-child(2) {
    display: none;
  }
  .chips {
    font-size: 8px;
  }
  .scoreboard {
    top: 10px;
  }
  .pip,
  .pop {
    padding: 8px 12px;
    gap: 10px;
  }
  #telemetry {
    top: auto;
    bottom: 8px;
    right: 8px;
  }
  #controls {
    display: none;
  }
}

#world {
  touch-action: none;
}
#touch-controls {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
#stick,
#touch-jump,
#touch-fire {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  background: #183a38aa;
  border: 2px solid #e0efb6aa;
  color: #fff;
  border-radius: 50%;
  font: 10px monospace;
  display: grid;
  place-items: center;
}
#stick {
  bottom: 35px;
  left: 25px;
  width: 110px;
  height: 110px;
}
#touch-fire {
  right: 25px;
  bottom: 45px;
  width: 80px;
  height: 80px;
}
#touch-jump {
  right: 120px;
  bottom: 35px;
  width: 60px;
  height: 60px;
}

#fps {
  position: absolute;
  left: 16px;
  top: 16px;
  font: 10px monospace;
  opacity: 0.8;
}
#health-bar {
  height: 10px;
  width: 190px;
  background: #162e32;
  border: 1px solid #c6e4c1;
  margin-top: 8px;
}
#health-fill {
  height: 100%;
  width: 100%;
  background: #73efb1;
  transition: width 0.1s linear;
}
#healing {
  margin-top: 7px;
  font: 9px monospace;
}
#hit-location {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translateX(-50%);
  font: bold 14px monospace;
  opacity: 0;
}
#damage-flash {
  position: fixed;
  inset: 0;
  box-shadow: inset 0 0 100px 25px #ed4b4080;
  opacity: 0;
  pointer-events: none;
}
#damage-direction {
  position: absolute;
  top: 35%;
  left: calc(50% - 12px);
  height: 30%;
  transform-origin: 50% 50%;
  color: #ff6458;
  font-size: 24px;
}
.damage-number {
  position: absolute;
  left: 0;
  top: 0;
  font: 900 25px monospace;
  text-shadow: 0 2px 4px #102c30;
  pointer-events: none;
}
#encounter {
  position: absolute;
  bottom: 160px;
  width: 100%;
  text-align: center;
  font: 12px monospace;
  color: #ffe2a0;
}
#toast {
  font-size: 14px;
  max-width: 700px;
  left: 50%;
  transform: translateX(-50%);
  top: 23%;
  line-height: 1.5;
}
#touch-interact {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  right: 125px;
  bottom: 110px;
  width: 50px;
  height: 50px;
  background: #173b32bb;
  color: #ffe2a0;
  border: 1px solid #e0efb6;
  border-radius: 50%;
  font: 10px monospace;
}
.settings {
  max-height: 42vh;
  overflow: auto;
}
.panel {
  max-height: 95vh;
  overflow: auto;
}
