@font-face {
  font-family: Local;
  src: local('Bahnschrift');
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #15262c;
  --paper: #f1efdb;
  --mint: #c1e88a;
  --blue: #66c7e8;
  --red: #f19a75;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1e3334;
  color: var(--paper);
  font-family: Local, 'Segoe UI', sans-serif;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
select:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
#game {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: auto;
}
kbd {
  display: inline-block;
  border: 1px solid #bdcfcc50;
  border-bottom-width: 2px;
  padding: 3px 5px;
  border-radius: 4px;
  font:
    10px Local,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0.5px;
  color: #ecf3df;
}
.brand {
  font-weight: 850;
  letter-spacing: 2px;
  font-size: 20px;
  text-shadow: 0 2px 8px #0009;
}
.emblem {
  color: var(--mint);
  margin-right: 6px;
}
.brand small {
  display: block;
  font:
    9px Local,
    sans-serif;
  letter-spacing: 5px;
  margin-left: 28px;
  color: #c8d4c8;
}
.blue {
  color: var(--blue);
}
.red {
  color: var(--red);
}
.icon-button {
  border: 1px solid #98aea34d;
  color: var(--paper);
  border-radius: 7px;
  padding: 12px;
  background: #14292be8;
  font-weight: 900;
}
.icon-button span {
  font-size: 10px;
  margin-left: 8px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #bac9bc;
  font-weight: 700;
}
.eyebrow span {
  float: right;
  letter-spacing: 0.3px;
  font-size: 8px;
}
.gun-icon {
  height: 6px;
  width: 49px;
  background: currentColor;
  display: block;
  margin: 17px auto 0;
  position: relative;
  transform: rotate(-10deg);
}
.gun-icon:before {
  content: '';
  position: absolute;
  width: 23px;
  height: 12px;
  left: 7px;
  top: -4px;
  background: currentColor;
  border-radius: 2px;
}
.gun-icon:after {
  content: '';
  position: absolute;
  width: 7px;
  height: 12px;
  left: 18px;
  top: 5px;
  background: currentColor;
  transform: rotate(15deg);
}
.shotgun {
  width: 51px;
  height: 5px;
}
.shotgun:before {
  width: 27px;
  height: 8px;
  left: 0;
  top: -2px;
}
.rocket {
  height: 12px;
  width: 40px;
  border-radius: 3px;
}
.rocket:before {
  width: 12px;
  height: 17px;
  left: 37px;
  border-radius: 1px 7px 7px 1px;
  top: -3px;
}
.help-strip {
  position: absolute;
  bottom: 13px;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 2px #000;
}
.help-strip kbd {
  padding: 2px 4px;
  font-size: 8px;
  background: #15262bc7;
}
.help-strip button {
  font-size: 9px;
  background: #13272de0;
  border: 1px solid #b1c9ac44;
  border-radius: 3px;
  color: #bfcec1;
  padding: 4px 9px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(100deg, #10262cfa 10%, #142c2beb 70%, #1c3535df);
  overflow: auto;
}
.menu-top,
.menu-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 5vw;
}
.wordmark {
  font-weight: 900;
  letter-spacing: 4px;
  font-size: 21px;
}
.wordmark > span {
  color: var(--mint);
  margin-right: 7px;
}
.build-label {
  font:
    10px Local,
    sans-serif;
  letter-spacing: 2px;
  color: #9aafa9;
}
.menu-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8vw;
  max-width: 1170px;
  margin: auto;
  padding: 25px 4vw 20px;
  align-items: center;
}
.mint {
  color: var(--mint);
}
.mint i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 100%;
  margin-right: 8px;
  box-shadow: 0 0 12px #bddf80;
}
h1 {
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 22px 0 17px;
  font-weight: 950;
}
h1 em {
  color: var(--mint);
  font-style: normal;
}
.intro {
  font-size: 17px;
  line-height: 1.6;
  color: #c7d2c9;
  margin: 0 0 20px;
}
.mode-tag {
  display: flex;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 1.2px;
  align-items: center;
  color: #dce5d8;
}
.mode-tag span {
  background: #344c45;
  padding: 6px 9px;
  color: var(--mint);
  border-radius: 3px;
}
.mission {
  font-size: 12px;
  line-height: 1.8;
  color: #9eb5ab;
  max-width: 360px;
  margin: 16px 0 23px;
}
.start-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.primary {
  background: var(--mint);
  color: #182d2a;
  font-weight: 900;
  letter-spacing: 2px;
  border: none;
  border-bottom: 4px solid #90b462;
  border-radius: 6px;
  padding: 17px 23px;
  min-width: 205px;
  display: flex;
  justify-content: space-between;
  gap: 34px;
  font-size: 16px;
  box-shadow: 0 5px 24px #0003;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.primary span {
  font-size: 22px;
  line-height: 18px;
}
.difficulty-label {
  color: #a5b9ad;
  font-size: 8px;
  letter-spacing: 1px;
}
.difficulty-label select {
  display: block;
  color: var(--paper);
  background: #243b3d;
  border: 1px solid #456157;
  border-radius: 4px;
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 12px;
}
.local-note {
  font-size: 9px;
  color: #849e97;
  margin-top: 15px;
}
.local-note span {
  color: var(--mint);
  margin-right: 6px;
}
.field-card {
  border: 1px solid #69877866;
  border-radius: 10px;
  overflow: hidden;
  background: #29423e75;
  transform: rotate(1deg);
  box-shadow: 15px 20px 0 #0b1c1f40;
}
.field-top {
  display: flex;
  justify-content: space-between;
  padding: 16px 21px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #bed3bd;
  border-bottom: 1px solid #69877855;
}
.field-top span:last-child {
  font-size: 8px;
  color: #7f9d91;
}
.illustration {
  background: #233e38;
  padding: 5px 0;
}
.illustration svg {
  display: block;
  width: 100%;
}
.controls {
  margin: 15px 22px;
}
.controls > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #69877844;
}
.controls dt {
  display: flex;
  gap: 4px;
}
.controls kbd {
  padding: 4px 6px;
  font-size: 9px;
}
.controls dd {
  font-size: 10px;
  color: #c0d1c3;
  margin-left: 12px;
}
.field-tip {
  padding: 14px 22px 20px;
  color: #94afa0;
  font-size: 10px;
  line-height: 1.6;
}
.field-tip b {
  color: var(--mint);
  font-size: 8px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}
.menu-bottom {
  color: #78968e;
  font-size: 8px;
  letter-spacing: 1.5px;
  border-top: 1px solid #78968820;
  margin: 20px 5vw 0;
  padding: 20px 0;
}
.compact {
  display: grid;
  place-items: center;
  background: #10232be6;
  backdrop-filter: blur(5px);
  padding: 24px;
}
.dialog {
  max-width: 540px;
  width: 100%;
  text-align: center;
  border: 1px solid #7695844d;
  background: #1d3335;
  border-radius: 12px;
  padding: 38px;
}
.dialog h2 {
  font-size: 38px;
  letter-spacing: -1px;
  margin: 18px 0;
}
.dialog p {
  color: #a9beb1;
  font-size: 12px;
  line-height: 1.7;
}
.dialog .primary {
  margin: 24px auto 10px;
  min-width: 250px;
}
.secondary {
  border: 1px solid #657e6f88;
  color: #bbd0bd;
  background: transparent;
  border-radius: 5px;
  padding: 11px 20px;
  font-size: 10px;
  letter-spacing: 1px;
}
.dialog .small {
  font-size: 10px;
  margin: 24px 0 0;
}
.final-score {
  font-size: 34px;
  font-weight: 900;
  color: var(--blue);
}
.final-score span {
  color: var(--red);
}
.personal-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 18px 0;
  border-block: 1px solid #65816f44;
  margin: 18px 0;
}
.personal-stats b {
  display: block;
  font-size: 27px;
  color: var(--mint);
}
.personal-stats small {
  font-size: 9px;
  color: #b0c5b7;
}
.score-table {
  font-size: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.score-table p {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  font-size: 10px;
}
.score-table .you {
  color: var(--mint);
}
#mapOverlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #12292cf7;
  border: 1px solid #a8c4a577;
  border-radius: 10px;
  width: min(75vw, 830px);
  padding: 24px;
  box-shadow: 0 12px 80px #0009;
  pointer-events: none;
}
#mapOverlay canvas {
  width: 100%;
  display: block;
  margin-top: 18px;
}
#mapOverlay p {
  font-size: 10px;
  color: #a7bcae;
  margin-bottom: 0;
}
@keyframes pulse {
  to {
    border-color: #ffe2a0;
    color: #ffe2a0;
  }
}
@media (max-height: 760px) and (min-width: 800px) {
  .menu-top {
    padding-top: 20px;
    padding-bottom: 15px;
  }
  .menu-layout {
    padding-top: 15px;
    padding-bottom: 5px;
    max-width: 1080px;
    gap: 6vw;
  }
  h1 {
    font-size: 55px;
    margin-top: 15px;
  }
  .intro {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .mission {
    margin: 12px 0 18px;
  }
  .field-card {
    max-width: 370px;
  }
  .illustration svg {
    max-height: 185px;
  }
  .controls {
    margin: 10px 20px;
  }
  .controls > div {
    padding: 7px 0;
  }
  .field-tip {
    padding-bottom: 15px;
  }
  .menu-bottom {
    margin-top: 15px;
  }
  .dialog {
    padding: 24px;
  }
  .result-dialog h2 {
    margin: 10px 0;
  }
  .result-dialog .primary {
    margin-top: 14px;
  }
  .personal-stats {
    padding: 10px 0;
    margin: 10px 0;
  }
}
@media (max-width: 1000px) {
  .brand {
    font-size: 15px;
  }
  .brand small {
    font-size: 7px;
  }
  .gun-icon {
    transform: rotate(-10deg) scale(0.8);
  }
  .menu-layout {
    gap: 4vw;
  }
  .field-card {
    transform: none;
  }
}
@media (max-width: 730px) {
  .menu-layout {
    grid-template-columns: 1fr;
    padding: 20px 8vw;
  }
  .field-card {
    max-width: 450px;
  }
  .menu-bottom {
    display: none;
  }
  .menu-top {
    padding: 20px 8vw;
  }
  .build-label {
    font-size: 8px;
  }
  .brief h1 {
    font-size: 50px;
  }
  .brand {
    display: none;
  }
  .gun-icon {
    margin-top: 17px;
  }
  .help-strip {
    gap: 8px;
    font-size: 7px;
  }
  .help-strip kbd {
    font-size: 7px;
  }
  .result-dialog {
    padding: 18px;
  }
  .dialog h2 {
    font-size: 28px;
  }
  .controls {
    margin: 12px 20px;
  }
}

/* Compact SMG silhouette and room for a fourth weapon. */
.smg {
  width: 34px;
  height: 7px;
}
.smg:before {
  width: 20px;
  height: 11px;
  left: 2px;
  top: -3px;
}
.smg:after {
  left: 12px;
  height: 14px;
  width: 6px;
  transform: rotate(6deg);
}
