* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #263943;
  color: #fcf3dc;
  font-family: Arial, Helvetica, sans-serif;
}
#world,
#hud,
#grain,
#damage,
#visor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#world {
  display: block;
}
#hud {
  pointer-events: none;
}
#grain {
  opacity: 0.07;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    #3c321e 2px 3px
  );
  pointer-events: none;
}
header {
  position: absolute;
  top: 5.2%;
  left: 4%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.19em;
  font-weight: 800;
  text-shadow: 0 1px 4px #26353c;
}
.sigil {
  width: 34px;
  height: 34px;
}
.sigil svg {
  fill: #fff4d8;
}
header em {
  color: #ffac57;
  padding: 0 5px;
}
#callsign {
  margin-left: auto;
  border: 1px solid #fcf3dc77;
  padding: 8px 12px;
  letter-spacing: 0.12em;
  font-size: 10px;
}
#panel {
  position: absolute;
  left: 5.4%;
  top: 50%;
  transform: translateY(-44%);
  max-width: min(510px, 80vw);
  text-shadow: 0 2px 20px #1d252247;
}
.edition {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 700 11px/1.3 monospace;
  letter-spacing: 0.16em;
  color: #ffb76a;
}
.edition i {
  width: 32px;
  height: 3px;
  background: currentColor;
}
h1 {
  font-family: Impact, "Arial Narrow", "Liberation Sans Narrow", sans-serif;
  font-weight: 1000;
  font-size: clamp(58px, 9.2vw, 150px);
  letter-spacing: -0.053em;
  line-height: 0.83;
  margin: 22px 0 12px;
  transform-origin: left;
  transform: scaleX(0.89);
  font-style: italic;
}
#sub {
  font-size: clamp(14px, 1.55vw, 23px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
#brief {
  max-width: 330px;
  font-size: 15px;
  line-height: 1.5;
  margin: 18px 0 23px;
  color: #f4eddf;
}
button {
  cursor: pointer;
  pointer-events: auto;
  border: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 15px 22px;
  background: #feb750;
  color: #192a2f;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 95% 100%, 0 100%);
}
button:hover,
button:focus-visible {
  background: #ffe3a6;
}
#restart {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  background: #24363c;
  color: white;
}
#foot {
  position: absolute;
  left: 5.4%;
  bottom: 5%;
  display: flex;
  gap: 19px;
  padding-top: 12px;
  border-top: 1px solid #ffffff57;
  font: 700 10px monospace;
  letter-spacing: 0.08em;
}
#foot b {
  color: #ffb560;
}
#objective {
  position: absolute;
  top: 14%;
  left: 4%;
  border-left: 3px solid #ffb34e;
  background: #182a32e8;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 700;
}
#objective small,
#instruments small {
  display: block;
  letter-spacing: 0.13em;
  font: 700 10px monospace;
  color: #97d8cf;
  margin-bottom: 5px;
}
#cross,
#mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 24px monospace;
  text-shadow: 0 1px 2px #172529;
}
#mark {
  font-size: 33px;
  color: #fcb94f;
}
#radio {
  position: absolute;
  left: 50%;
  bottom: 30%;
  transform: translateX(-50%);
  text-align: center;
  background: #12232cd9;
  color: #f6ebd1;
  padding: 8px 14px;
  font: 600 13px/1.4 Arial;
  max-width: 88%;
  width: max-content;
}
#radio:empty {
  display: none;
}
#instruments {
  position: absolute;
  bottom: max(84px, 12%);
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  text-shadow: 0 2px 4px #182b36;
}
#instruments > div {
  background: #1e3039dc;
  padding: 9px 15px;
  border-bottom: 3px solid #7cd7ca;
}
#instruments strong {
  font: italic 900 34px/1 Arial;
}
#hpbar {
  display: block;
  height: 4px;
  background: #7fe1ce;
  margin-top: 4px;
}
#skills {
  font: 700 11px/1.8 monospace;
  text-align: center;
  white-space: pre-line;
}
#damage {
  box-shadow: inset 0 0 100px #c93828;
  opacity: 0;
}
#visor {
  box-shadow: inset 0 0 65px #37dccc;
  border: 3px solid #85fff0;
  display: none;
}
body.menu #objective,
body.menu #mark,
body.menu #cross,
body.menu #instruments,
body.menu #radio {
  display: none;
}
body.play #panel,
body.play #foot {
  display: none;
}
body.menu #hud {
  background: linear-gradient(
    90deg,
    #11252fe8 0%,
    #132731bb 23%,
    #14263040 47%,
    transparent 65%
  );
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  #panel {
    max-width: 90vw;
    top: 63%;
  }
  #callsign {
    white-space: nowrap;
  }
  h1 {
    font-size: 17vw;
  }
  #brief {
    font-size: 13px;
    max-width: 270px;
  }
  #foot {
    gap: 9px;
    font-size: 8px;
  }
  #skills {
    font-size: 9px;
  }
  header {
    font-size: 9px;
  }
  #instruments {
    bottom: 8%;
  }
  #radio {
    bottom: 27%;
  }
  body.menu #hud {
    background: linear-gradient(90deg, #15252edb, #15252e83 62%, transparent);
  }
}
@media (max-height: 480px) {
  #foot {
    display: none;
  }
  #panel {
    top: 52%;
  }
  h1 {
    font-size: 64px;
    margin: 12px 0;
  }
  #brief {
    margin: 8px 0;
  }
  header {
    top: 3%;
  }
}
