@import url('/fonts.css');
:root {
  color-scheme: dark;
  --bg: #171d1b;
  --panel: #19201dee;
  --ink: #eeeede;
  --muted: #8e9a8e;
  --accent: #edab66;
  --line: #b8c4ac23;
  --green: #a1bc8c;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'Arial',
    -apple-system,
    BlinkMacSystemFont,
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body {
  touch-action: none;
  overscroll-behavior: none;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #111813ed 0%, #11181399 31%, #11181335 65%, #11181392),
    linear-gradient(0deg, #101613d9, transparent 45%);
}
body.playing #vignette {
  display: none;
}
/* Re-blurring the moving canvas behind every HUD panel is costly on phones. */
body.playing :is(.ranking, .vitals, .weapon-panel, .action-button, .overlay) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#damage-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  box-shadow: inset 0 0 100px #ff4030;
  opacity: 0;
  transition: opacity 0.1s;
}
.brandbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 102px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) 4.5vw 0;
  pointer-events: none;
}
.brandbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 2.4px;
}
.brand small {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 4px;
}
.brandmark {
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
  font-weight: 900;
  position: relative;
  width: 28px;
  letter-spacing: -4px;
}
.brandmark > span {
  position: absolute;
  right: 0;
  top: 2px;
  width: 7px;
  height: 13px;
  background: var(--accent);
  opacity: 0.5;
}
.server-status {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: #b8c6b2;
  letter-spacing: 0.3px;
}
.status-dot,
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8bf8e;
  display: inline-block;
  box-shadow: 0 0 10px #a8bf8e45;
}
.version {
  margin-left: 22px;
  border: 1px solid var(--line);
  padding: 7px 10px;
  letter-spacing: 1.5px;
  font-size: 9px;
}
.lobby {
  position: absolute;
  inset: 0;
  padding: 142px 7vw 75px;
  display: grid;
  grid-template-columns: 1fr 348px;
  grid-template-rows: 1fr auto;
  gap: 42px 50px;
  overflow: auto;
  touch-action: pan-y;
}
.intro {
  align-self: center;
  max-width: 600px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.4px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow > span {
  height: 1px;
  width: 24px;
  background: var(--accent);
}
h1 {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 950;
  font-size: clamp(78px, 9.4vw, 144px);
  line-height: 0.86;
  letter-spacing: -7px;
  margin: 30px 0 28px;
}
h1 > span {
  color: var(--accent);
}
.intro-ko {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin: 0 0 14px;
}
.intro-description {
  font-size: 13px;
  line-height: 1.9;
  color: #a6b2a3;
}
.field-tag {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 35px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.crosshair-icon {
  font-size: 25px;
  color: var(--accent);
}
.field-tag b {
  color: #d0d5c9;
  font-weight: 400;
  margin-left: 8px;
}
.tag-coord {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 8px;
}
.deploy-card {
  align-self: center;
  background: linear-gradient(150deg, #243029ed, #171f1cee);
  border: 1px solid #bfd0b62b;
  box-shadow: 0 16px 55px #0003;
  padding: 27px;
  border-radius: 4px;
  backdrop-filter: blur(18px);
}
.card-kicker {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1.4px;
  display: flex;
  justify-content: space-between;
}
.card-kicker > span {
  color: var(--accent);
  font-size: 18px;
  line-height: 10px;
}
.deploy-card h2 {
  font-size: 22px;
  letter-spacing: -0.8px;
  margin: 20px 0;
}
.population {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a6b2a3;
  margin-bottom: 26px;
}
.population b {
  font-weight: 500;
  color: var(--ink);
}
.population-separator {
  height: 9px;
  border-left: 1px solid var(--line);
  margin: 0 3px;
}
.capacity {
  margin-left: auto;
  font-size: 9px;
  color: #7e8e80;
}
label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #b0bdab;
  margin-bottom: 10px;
}
label span {
  letter-spacing: 0;
  font-size: 10px;
  color: #81907f;
}
input {
  border: 1px solid #a2b19538;
  background: #10181295;
  color: var(--ink);
  height: 50px;
  padding: 0 14px;
  border-radius: 3px;
  width: 100%;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
input:focus {
  border-color: var(--accent);
}
input::placeholder {
  color: #6e7f6d;
  font-size: 13px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #26281d;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  height: 54px;
  padding: 0 18px;
  box-shadow: inset 0 -2px #704b1920;
  transition:
    background 0.15s,
    transform 0.15s;
}
form .primary {
  margin-top: 12px;
}
.primary:hover {
  background: #ffc184;
}
.primary:active {
  transform: scale(0.98);
}
.primary > span {
  font-size: 22px;
}
.entry-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #8e9b88;
}
.entry-note > span {
  color: #d1ad74;
}
.card-divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0 20px;
}
.records-title {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #bfcab7;
}
.records-title > span:last-child {
  font-size: 9px;
  letter-spacing: 0;
  color: #7e8e80;
}
.record-list {
  margin-top: 13px;
  min-height: 53px;
}
.record-row {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  padding: 8px 0;
}
.record-row > span:first-child {
  color: #72826f;
  font-size: 9px;
  min-width: 12px;
}
.record-row > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-row > b {
  font-weight: 400;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: #d6cbb1;
  letter-spacing: 1px;
}
.empty-records {
  color: #7f8e7b;
  font-size: 11px;
  padding: 15px 0;
}
.field-guide {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 23px;
  gap: 25px;
}
.field-guide > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.guide-number {
  font-size: 11px;
  color: var(--accent);
  align-self: flex-start;
  margin-top: 5px;
}
.field-guide p {
  margin: 0;
}
.field-guide b {
  font-size: 12px;
  font-weight: 500;
  display: block;
  margin: 2px 0 8px;
}
.field-guide p span {
  color: #8c9b85;
  font-size: 10px;
  line-height: 1.5;
}
.lobby-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5vw var(--safe-bottom);
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #70816b;
  background: linear-gradient(0deg, #121a14b3, transparent);
}
.text-button {
  background: none;
  border: 0;
  font-size: 10px;
  padding: 12px;
  color: #a7b29e;
  letter-spacing: 0;
}
body.playing .brandbar {
  height: 70px;
  padding-left: 24px;
  padding-right: 24px;
}
body.playing .brand {
  font-size: 15px;
  letter-spacing: 2px;
}
body.playing .brandmark {
  font-size: 28px;
  width: 23px;
}
body.playing .brand small {
  font-size: 6px;
  letter-spacing: 2px;
}
body.playing .server-status {
  position: absolute;
  top: 75px;
  left: 25px;
  font-size: 10px;
}
body.playing .version {
  display: none;
}
.icon-button {
  border: 1px solid var(--line);
  background: #18221ad9;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 19px;
}
.run-clock {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 14px #000;
  pointer-events: none;
}
.run-clock > span {
  font-size: 8px;
  letter-spacing: 3px;
  color: #bac8ae;
}
.run-clock > strong {
  display: block;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.run-clock > div {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #becdb1;
}
.rank-pill {
  position: fixed;
  right: 80px;
  top: 25px;
  background: #1b271ddd;
  border: 1px solid var(--line);
  border-radius: 7px;
  height: 37px;
  padding: 0 13px;
  font-size: 11px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.rank-pill > span:first-child {
  color: var(--accent);
  font-size: 16px;
}
.ranking {
  position: fixed;
  right: 24px;
  top: 88px;
  width: 207px;
  padding: 16px;
  background: #172019d6;
  border: 1px solid var(--line);
  border-radius: 5px;
  backdrop-filter: blur(12px);
}
.ranking-heading {
  font-size: 9px;
  letter-spacing: 1.7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b7c2a8;
  margin-bottom: 9px;
}
.ranking-heading > span {
  font-size: 8px;
  letter-spacing: 0;
  color: #819179;
}
.live-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  padding: 8px 0;
  color: #b6c4a8;
}
.live-row:first-child {
  color: #edbf86;
}
.live-row > span:first-child {
  font-size: 8px;
  opacity: 0.6;
  width: 9px;
}
.live-row > b {
  font-weight: 400;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.live-row > time {
  font-variant-numeric: tabular-nums;
}
.vitals {
  position: fixed;
  left: 28px;
  bottom: 57px;
  width: 215px;
  background: #19231bbb;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  backdrop-filter: blur(8px);
}
.vital-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.vital-row > span {
  width: 12px;
  font-size: 17px;
  font-weight: bold;
  color: #afd896;
}
.vital-row.hunger > span {
  color: #e4b970;
}
.meter {
  height: 5px;
  background: #a1b89220;
  border-radius: 8px;
  flex: 1;
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  width: 100%;
  background: #b1cd99;
  border-radius: 8px;
  transition: width 0.15s;
}
.hunger .meter > i {
  background: #dab177;
}
.vital-row > b {
  font-size: 10px;
  font-weight: 500;
  width: 23px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.vital-caption {
  display: flex;
  justify-content: space-between;
  color: #9fae92;
  font-size: 8px;
  letter-spacing: 0.5px;
  margin-top: 10px;
}
.weapon-panel {
  position: fixed;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  background: #18231bd9;
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 230px;
  backdrop-filter: blur(8px);
}
.weapon-glyph {
  color: var(--accent);
  font-size: 28px;
  transform: rotate(-9deg);
  letter-spacing: -7px;
  padding-right: 10px;
}
#weapon-icon {
  width: 48px;
  height: 32px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
#starting-weapon {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #a2b19538;
  border-radius: 6px;
  background: #172019;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
#starting-weapon:focus-visible {
  outline: 2px solid var(--accent);
}
.loadout-label {
  margin-top: 12px;
}
.loadout-hint {
  margin: 7px 0 12px;
  min-height: 24px;
  line-height: 1.5;
  font-size: 10px;
  color: #acb99e;
}
.weapon-glyph > span {
  font-size: 24px;
}
.weapon-panel > div > span {
  font-size: 9px;
  color: #a6b69b;
}
.weapon-panel strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.weapon-panel small {
  font-size: 13px;
  color: #8f9e84;
}
.weapon-panel > #reload-status {
  font-size: 10px;
  color: var(--accent);
}
#minimap {
  position: fixed;
  right: 25px;
  bottom: 50px;
  width: 160px;
  height: 110px;
  border: 1px solid #b7c6a543;
  border-radius: 5px;
  background: #18231bf0;
  box-shadow: 0 4px 20px #0003;
}
.desktop-hint {
  position: fixed;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 9px;
  color: #a1b493;
}
kbd {
  font: inherit;
  background: #172319;
  border: 1px solid var(--line);
  padding: 4px 6px;
  border-radius: 3px;
  margin-left: 9px;
  color: #d6dfce;
}
#toasts {
  position: fixed;
  top: 145px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  pointer-events: none;
  z-index: 12;
}
.toast {
  padding: 9px 16px;
  color: #e9dcc1;
  background: #1e2b20ef;
  border: 1px solid #a2b28f38;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
  animation: toast-in 0.2s ease-out;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.connection-warning {
  position: fixed;
  left: 50%;
  top: 115px;
  transform: translateX(-50%);
  padding: 12px;
  background: #753f26f5;
  font-size: 11px;
  z-index: 30;
  border-radius: 5px;
  max-width: 90%;
  text-align: center;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #111a14c9;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  touch-action: pan-y;
}
.result-card,
.menu-card {
  width: 355px;
  background: #1c281eee;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 20px 90px #0005;
}
.result-card .eyebrow,
.menu-card .eyebrow {
  justify-content: center;
  font-size: 8px;
  letter-spacing: 2px;
}
.result-card h2 {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -1px;
  margin: 25px 0 15px;
}
.result-card h2 span {
  color: var(--accent);
}
.result-time {
  font-size: 61px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--accent);
}
.result-caption {
  font-size: 10px;
  color: #8d9d80;
  margin-top: 3px;
}
.result-stats {
  display: flex;
  justify-content: space-around;
  border-block: 1px solid var(--line);
  margin-top: 24px;
  padding: 16px 0;
}
.result-stats > div > span {
  font-size: 10px;
  color: #9ead94;
  display: block;
}
.result-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
  margin-top: 9px;
}
.result-card > p {
  font-size: 11px;
  color: #a9b49c;
  margin: 17px 0;
}
.secondary {
  width: 100%;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  color: #b7c5ad;
  margin-top: 10px;
}
.menu-card h2 {
  font-size: 22px;
  margin: 23px 0 15px;
}
.menu-card > p {
  font-size: 12px;
  line-height: 1.9;
  color: #9dac94;
  margin-bottom: 23px;
}
#touch-controls {
  display: none;
}
.joystick {
  position: fixed;
  width: 128px;
  height: 128px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.stick-ring {
  position: absolute;
  inset: 7px;
  border: 1px solid #d5e5be42;
  border-radius: 50%;
  background: #bccba010;
  box-shadow: inset 0 0 22px #0b130b44;
}
.stick-ring:before,
.stick-ring:after {
  content: '';
  position: absolute;
  background: #d6e4c021;
}
.stick-ring:before {
  width: 1px;
  height: 90px;
  left: 50%;
  top: 10px;
}
.stick-ring:after {
  height: 1px;
  width: 90px;
  top: 50%;
  left: 10px;
}
.stick-knob {
  position: absolute;
  width: 48px;
  height: 48px;
  left: 40px;
  top: 40px;
  border: 1px solid #d5e2bd80;
  border-radius: 50%;
  background: #c2d0ab40;
  box-shadow: 0 4px 12px #0002;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stick-knob i {
  font-size: 26px;
  font-style: normal;
  color: #eac599;
}
.joystick > span {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  text-align: center;
  color: #c6d0b56b;
  font-size: 7px;
  letter-spacing: 2px;
}
.aim-stick .stick-ring {
  border-color: #edab6654;
}
.aim-stick .stick-knob {
  background: #edab6629;
  border-color: #edab668c;
}
.joystick.active .stick-ring {
  border-color: #eecc91aa;
  background: #edab661a;
}
.joystick.active .stick-knob {
  background: #edab6655;
}
.action-button {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid #cbd5b65c;
  background: #1d2a1fba;
  border-radius: 50%;
  touch-action: none;
  user-select: none;
  backdrop-filter: blur(8px);
}
.action-button > span {
  font-size: 24px;
  line-height: 1;
}
.action-button small {
  font-size: 8px;
  margin-top: 3px;
  color: #bcc7ac;
}
.action-button:active {
  background: #b68f5277;
}
.pickup {
  border-color: var(--accent);
  color: var(--accent);
  border-radius: 12px;
  width: 64px;
}
@media (max-width: 1050px) {
  .lobby {
    grid-template-columns: 1fr 310px;
    gap: 30px;
    padding: 125px 5vw 73px;
  }
  .deploy-card {
    padding: 23px;
  }
  h1 {
    font-size: 100px;
    letter-spacing: -6px;
  }
  .intro-ko {
    font-size: 20px;
  }
  .intro-description {
    font-size: 12px;
  }
  .tag-coord {
    display: none;
  }
  .field-guide {
    gap: 15px;
  }
  .field-guide > div {
    gap: 10px;
  }
  .field-guide p span {
    font-size: 9px;
  }
}
@media (pointer: coarse), (max-width: 700px) {
  body.playing #touch-controls {
    display: block;
  }
  .desktop-hint {
    display: none;
  }
  body.playing .brandbar {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    height: 65px;
    padding-top: env(safe-area-inset-top);
  }
  body.playing .brand {
    font-size: 12px;
    gap: 8px;
  }
  body.playing .brandmark {
    font-size: 23px;
    width: 19px;
  }
  body.playing .brandmark > span {
    width: 5px;
    height: 10px;
  }
  body.playing .brand small {
    font-size: 5px;
    letter-spacing: 1.3px;
  }
  body.playing .server-status {
    left: max(17px, env(safe-area-inset-left));
    top: calc(63px + env(safe-area-inset-top));
    font-size: 8px;
  }
  .run-clock {
    top: calc(14px + env(safe-area-inset-top));
  }
  .run-clock > span {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .run-clock > strong {
    font-size: 31px;
    line-height: 1.25;
  }
  .run-clock > div {
    font-size: 8px;
  }
  .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    font-size: 16px;
  }
  .rank-pill {
    right: 68px;
    top: calc(18px + env(safe-area-inset-top));
    height: 32px;
    font-size: 9px;
    padding: 0 9px;
    gap: 5px;
  }
  .ranking {
    top: calc(68px + env(safe-area-inset-top));
    right: 16px;
    width: 180px;
    padding: 13px;
  }
  .vitals {
    bottom: calc(173px + var(--safe-bottom));
    left: max(24px, env(safe-area-inset-left));
    width: 143px;
    padding: 10px;
    background: #17231b99;
  }
  .vital-row {
    gap: 6px;
    margin-bottom: 5px;
  }
  .vital-row > span {
    font-size: 13px;
    width: 9px;
  }
  .vital-row > b {
    font-size: 9px;
  }
  .meter {
    height: 4px;
  }
  .vital-caption {
    font-size: 7px;
    margin-top: 7px;
  }
  .weapon-panel {
    bottom: calc(25px + var(--safe-bottom));
    padding: 8px 12px;
    min-width: 119px;
    gap: 9px;
    z-index: 1;
  }
  .weapon-panel strong {
    font-size: 23px;
  }
  .weapon-panel small {
    font-size: 10px;
  }
  .weapon-panel > div > span {
    font-size: 8px;
  }
  #weapon-icon {
    display: none;
  }
  .weapon-panel > #reload-status {
    font-size: 8px;
    max-width: 35px;
  }
  #minimap {
    top: calc(110px + env(safe-area-inset-top));
    bottom: auto;
    right: 17px;
    width: 105px;
    height: 72px;
    opacity: 0.85;
  }
  #move-stick {
    left: max(17px, env(safe-area-inset-left));
    bottom: calc(28px + var(--safe-bottom));
  }
  #aim-stick {
    right: max(17px, env(safe-area-inset-right));
    bottom: calc(28px + var(--safe-bottom));
  }
  #reload-button {
    right: max(46px, env(safe-area-inset-right));
    bottom: calc(175px + var(--safe-bottom));
  }
  #pickup-button {
    right: max(113px, env(safe-area-inset-right));
    bottom: calc(174px + var(--safe-bottom));
  }
  #toasts {
    top: calc(111px + env(safe-area-inset-top));
  }
  .toast {
    font-size: 10px;
    padding: 8px 11px;
  }
  .connection-warning {
    top: calc(91px + env(safe-area-inset-top));
    width: 85%;
    font-size: 10px;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  .brandbar {
    height: 83px;
    padding: env(safe-area-inset-top) 24px 0;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brandmark {
    font-size: 31px;
    width: 25px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .server-status {
    font-size: 9px;
    gap: 6px;
  }
  .version {
    display: none;
  }
  .lobby {
    display: flex;
    flex-direction: column;
    padding: calc(105px + env(safe-area-inset-top)) 26px calc(65px + var(--safe-bottom));
    gap: 27px;
  }
  .intro {
    align-self: stretch;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
  }
  h1 {
    font-size: clamp(71px, 20vw, 102px);
    letter-spacing: -5px;
    margin: 21px 0 18px;
    line-height: 0.87;
  }
  .intro-ko {
    font-size: 19px;
    margin-bottom: 8px;
  }
  .intro-description {
    font-size: 11px;
    line-height: 1.8;
    margin-bottom: 0;
  }
  .field-tag {
    display: none;
  }
  .deploy-card {
    align-self: stretch;
    padding: 22px;
  }
  .card-kicker {
    font-size: 7px;
  }
  .deploy-card h2 {
    font-size: 20px;
    margin: 15px 0;
  }
  .population {
    margin-bottom: 20px;
  }
  .card-divider {
    margin: 20px 0 16px;
  }
  .record-list {
    min-height: 0;
  }
  .record-row:nth-child(n + 3) {
    display: none;
  }
  .field-guide {
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding-top: 22px;
  }
  .field-guide > div {
    gap: 14px;
  }
  .field-guide p span {
    font-size: 10px;
  }
  .field-guide b {
    margin-bottom: 4px;
  }
  .lobby-footer {
    padding-inline: 24px;
    height: 45px;
    background: #141d16f5;
    font-size: 6px;
    letter-spacing: 1px;
  }
  .lobby-footer .text-button {
    font-size: 9px;
  }
  .rank-pill {
    right: 17px;
    top: calc(70px + env(safe-area-inset-top));
    font-size: 9px;
  }
  .ranking {
    top: calc(109px + env(safe-area-inset-top));
    z-index: 5;
  }
  #minimap {
    top: calc(115px + env(safe-area-inset-top));
    width: 92px;
    height: 63px;
  }
  .run-clock > strong {
    font-size: 35px;
  }
  .run-clock {
    top: calc(17px + env(safe-area-inset-top));
  }
  .vitals {
    left: 22px;
    bottom: calc(177px + var(--safe-bottom));
    width: 132px;
  }
  .weapon-panel {
    bottom: calc(18px + var(--safe-bottom));
    min-width: 97px;
    border: 0;
    background: #17231b88;
    padding: 7px 11px;
  }
  .weapon-panel > #reload-status {
    position: absolute;
    top: -19px;
    max-width: none;
    left: 0;
    right: 0;
    text-align: center;
    white-space: nowrap;
  }
  .weapon-panel strong {
    font-size: 21px;
  }
  .joystick {
    width: 120px;
    height: 120px;
  }
  .stick-knob {
    left: 36px;
    top: 36px;
  }
  .stick-ring:before {
    height: 84px;
  }
  .stick-ring:after {
    width: 84px;
  }
  #move-stick {
    left: 15px;
    bottom: calc(42px + var(--safe-bottom));
  }
  #aim-stick {
    right: 15px;
    bottom: calc(42px + var(--safe-bottom));
  }
  #reload-button {
    right: 45px;
    bottom: calc(181px + var(--safe-bottom));
  }
  #pickup-button {
    right: 111px;
    bottom: calc(183px + var(--safe-bottom));
    width: 56px;
    height: 52px;
  }
  #toasts {
    top: calc(108px + env(safe-area-inset-top));
    max-width: 58%;
  }
  .toast {
    font-size: 9px;
  }
  .result-card {
    padding: 27px;
  }
  .result-card h2 {
    font-size: 26px;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  .brandbar {
    height: 64px;
    padding-inline: max(28px, env(safe-area-inset-left));
  }
  .brand {
    font-size: 16px;
  }
  .brandmark {
    font-size: 28px;
    width: 23px;
  }
  .brand small {
    font-size: 6px;
  }
  .server-status {
    font-size: 9px;
  }
  .version {
    font-size: 7px;
    padding: 5px 7px;
  }
  .lobby {
    padding: 83px max(35px, env(safe-area-inset-left)) 45px;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    align-items: start;
  }
  .intro {
    align-self: center;
  }
  h1 {
    font-size: 79px;
    letter-spacing: -5px;
    margin: 18px 0 16px;
  }
  .eyebrow {
    font-size: 7px;
  }
  .intro-ko {
    font-size: 18px;
  }
  .intro-description {
    font-size: 10px;
  }
  .field-tag {
    margin-top: 16px;
    font-size: 7px;
  }
  .crosshair-icon {
    font-size: 19px;
  }
  .deploy-card {
    padding: 18px;
    align-self: start;
  }
  .card-kicker {
    font-size: 6px;
  }
  .deploy-card h2 {
    font-size: 18px;
    margin: 12px 0;
  }
  .population {
    font-size: 9px;
    margin-bottom: 13px;
  }
  .capacity {
    font-size: 8px;
  }
  label {
    font-size: 7px;
    margin-bottom: 7px;
  }
  input {
    height: 42px;
  }
  .primary {
    height: 46px;
    font-size: 12px;
  }
  .entry-note {
    font-size: 8px;
    margin-top: 10px;
  }
  .card-divider,
  .records-title,
  .record-list,
  .field-guide {
    display: none;
  }
  .lobby-footer {
    height: 32px;
    font-size: 6px;
  }
  .lobby-footer .text-button {
    font-size: 8px;
  }
  .vitals {
    bottom: calc(172px + var(--safe-bottom));
    left: 26px;
  }
  .run-clock > strong {
    font-size: 29px;
  }
  .run-clock > div {
    font-size: 7px;
  }
  #minimap {
    top: 84px;
    width: 92px;
    height: 63px;
  }
  #toasts {
    top: 99px;
  }
  .result-card {
    width: 470px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
    text-align: left;
  }
  .result-card .eyebrow {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .result-card h2 {
    font-size: 22px;
    margin: 6px 0;
    grid-column: 1;
    grid-row: 2/4;
  }
  .result-time {
    font-size: 42px;
    grid-column: 2;
    text-align: center;
  }
  .result-caption {
    grid-column: 2;
    text-align: center;
  }
  .result-stats {
    grid-column: 1;
    margin: 0;
    padding: 12px 0;
  }
  .result-stats strong {
    font-size: 17px;
  }
  .result-card > p {
    font-size: 10px;
    align-self: center;
    grid-column: 2;
    margin: 0;
  }
  .result-card .primary {
    grid-column: 1;
  }
  .result-card .secondary {
    grid-column: 2;
    margin: 0;
    height: 46px;
  }
  .menu-card {
    width: 400px;
    padding: 20px;
  }
  .menu-card h2 {
    margin: 15px 0 10px;
    font-size: 20px;
  }
  .menu-card > p {
    font-size: 10px;
    margin-bottom: 15px;
  }
  .menu-card .secondary {
    height: 38px;
  }
}
