:root {
  color-scheme: dark;
  --ink: #f2f1df;
  --muted: #9ea99c;
  --gold: #e1bd73;
  --gold-dark: #ad8747;
  --paper: #101715;
  --line: rgba(215, 224, 202, 0.18);
  --green: #b9cb94;
  --red: #e9715e;
  --shadow: 0 18px 70px #0008;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  font-optical-sizing: auto;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #101715;
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button {
  border: 0;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
select {
  min-width: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #101715ba;
  border-radius: 0;
  padding: 12px;
}
input::placeholder {
  color: #7f8b81;
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
#viewport,
#viewport canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#viewport {
  background: radial-gradient(
    ellipse at 70% 40%,
    #46564a,
    #172620 60%,
    #0e1712
  );
}
.film-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.3' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  z-index: 2;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.5;
}
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(ellipse at center, #27362b, #0a100e 70%);
}
.rook-mark {
  font-size: 54px;
  color: var(--gold);
  margin-bottom: 24px;
}
.boot-screen h1 {
  font-size: clamp(48px, 8vw, 110px);
  letter-spacing: 0.13em;
  margin: 12px 0 30px;
  font-weight: 900;
}
.boot-screen .eyebrow,
.boot-screen small {
  color: #9ba996;
}
.boot-screen p {
  font-size: 12px;
  letter-spacing: 0.05em;
}
.boot-screen small {
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-top: 30px;
}
.boot-track {
  height: 2px;
  width: min(300px, 70vw);
  background: #ffffff18;
}
.boot-track i {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--gold);
  transition: width 0.4s;
}
.menu-shell {
  position: fixed;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      90deg,
      #07100ee8 0%,
      #0b1411bc 28%,
      #0b141121 68%,
      #0b14111c 100%
    ),
    linear-gradient(0deg, #07100ed9, transparent 30%);
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 42px;
  position: relative;
  z-index: 1;
}
.wordmark {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.brand-glyph {
  font-size: 34px;
  color: var(--gold);
}
.wordmark small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.44em;
  color: var(--gold);
  margin-top: 3px;
}
.menu-top nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #c6cfc1;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #10171565;
  font-size: 18px;
  line-height: 1;
}
.icon-button:hover,
.secondary-button:hover {
  background: #d6e4bd18;
  border-color: #d6e4bd50;
}
.lobby-main {
  height: calc(100% - 164px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  width: min(560px, 46vw);
  padding-left: 70px;
}
.lobby-copy h1,
.room-heading h1 {
  font-size: clamp(42px, 5.2vw, 82px);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -0.065em;
  margin: 20px 0 16px;
}
.lobby-copy em,
.room-heading em,
.result-screen em {
  font-style: normal;
  color: var(--gold);
}
.lobby-intro {
  font-size: 13px;
  line-height: 1.75;
  color: #bdc5b9;
  margin: 0;
  max-width: 380px;
}
.issue {
  margin-left: 14px;
  color: #748373;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #bfd596;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px #c0d39388;
}
.lobby-facts {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #acb5a8;
}
.lobby-facts b {
  font-size: 19px;
  color: #e1e8d7;
  margin-right: 4px;
  letter-spacing: -0.03em;
}
.deployment-panel {
  width: 100%;
  max-width: 425px;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.panel-top > .eyebrow {
  color: var(--gold);
  font-size: 9px;
}
.service-status {
  font-size: 9px;
  color: #a4b199;
  letter-spacing: 0.05em;
}
.callsign-label {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #a6b29e;
}
.callsign-label input {
  flex: 1;
  padding: 9px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.mode-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 12px 0;
}
.mode {
  position: relative;
  padding: 12px 5px 11px;
  background: #112019a6;
  border: 1px solid var(--line);
  text-align: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.mode.active {
  border-color: var(--gold);
  background: #b396571c;
}
.mode.active:before {
  content: "";
  position: absolute;
  top: -1px;
  left: 35%;
  right: 35%;
  height: 2px;
  background: var(--gold);
}
.mode-people {
  display: block;
  color: #94a78e;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.2em;
  margin-bottom: 7px;
}
.mode.active .mode-people {
  color: var(--gold);
}
.mode strong {
  font-size: 12px;
  letter-spacing: 0.12em;
}
.mode small {
  display: block;
  font-size: 9px;
  color: #a2ad9b;
  margin-top: 5px;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: 100%;
  background: var(--gold);
  color: #182016;
  padding: 17px 21px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  min-height: 48px;
  box-shadow: 0 5px 25px #0003;
  transition: background 0.2s;
}
.primary-button:hover {
  background: #f1d397;
}
.primary-button > span:last-child {
  font-size: 19px;
  line-height: 1;
}
.secondary-button {
  background: #101a15b3;
  color: #cbd5c3;
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 10px;
  line-height: 1.2;
}
.room-actions {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}
.room-actions button {
  flex: 1;
}
.panel-note {
  font-size: 9px;
  line-height: 1.6;
  color: #a1ad99;
  margin: 10px 0 0;
  max-width: 380px;
}
.menu-status {
  font-size: 11px;
  line-height: 1.5;
  color: var(--gold);
  margin: 7px 0 0;
  min-height: 0;
}
.join-form {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}
.join-form input {
  width: 100%;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
}
.join-form button {
  min-width: 90px;
}
.menu-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 21px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #c3d4b916;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a7b29d;
}
.tiny-rule {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 8px;
}
.text-button {
  background: transparent;
  color: #bfcbb3;
  padding: 10px 0;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.text-button:hover {
  color: var(--gold);
}
kbd {
  font:
    10px Arial,
    Helvetica,
    sans-serif;
  border: 1px solid #c6d4bc55;
  display: inline-block;
  padding: 3px 5px;
  line-height: 1;
  margin: 0 4px;
  background: #10181160;
  color: #e0e8d7;
}
.room-panel {
  height: calc(100% - 168px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin: 0 8%;
}
.room-heading h1 {
  font-size: clamp(45px, 6vw, 85px);
}
.room-heading p {
  font-size: 13px;
  color: #b1bca9;
}
.room-card {
  background: #111c16e8;
  border: 1px solid var(--line);
  padding: 26px;
  width: 390px;
  max-height: 100%;
  box-shadow: var(--shadow);
  overflow: auto;
}
.code-button {
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.code-button b {
  font-size: 16px;
  margin: 0 3px;
}
.room-metrics {
  display: flex;
  gap: 25px;
  font-size: 8px;
  color: #94a38a;
  letter-spacing: 0.1em;
}
.room-metrics b {
  font-size: 23px;
  color: #f0f2e5;
  margin-right: 4px;
}
.room-players {
  margin: 19px 0;
  max-height: 155px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #536449 #172419;
}
.room-player {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff0c;
}
.room-player > .player-avatar {
  display: grid;
  place-items: center;
  width: 25px;
  height: 28px;
  background: #cad3b814;
  color: var(--gold);
  font-weight: 900;
}
.room-player > span:nth-child(2) {
  flex: 1;
}
.room-player small {
  font-size: 8px;
  color: #98a68c;
  display: block;
  margin-top: 3px;
}
.room-player b {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #a6c289;
}
.room-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  border-left: 2px solid var(--gold);
  padding-left: 13px;
}
.room-countdown span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #acb8a0;
}
.room-countdown strong {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
}
.wide {
  width: 100%;
  margin-top: 7px;
}
.room-card > .text-button {
  display: block;
  margin: 5px auto 0;
}
.hud {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  text-shadow: 0 2px 5px #000;
  user-select: none;
}
.hud button {
  pointer-events: auto;
}
.operation-hud {
  position: absolute;
  top: 25px;
  left: 30px;
}
.operation-hud > .eyebrow {
  color: #d9e4c9;
  letter-spacing: 0.28em;
}
.remaining {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}
.remaining b {
  font-size: 25px;
  line-height: 1;
}
.remaining span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d2dbca;
}
.remaining i {
  height: 15px;
  width: 1px;
  background: #ffffff40;
  margin: 0 5px;
}
.phase-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 7px;
  background: #101b1499;
  border-left: 2px solid var(--gold);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.squad-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 22px;
}
.squad-member {
  display: grid;
  grid-template-columns: 18px 110px 25px;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  opacity: 0.95;
}
.squad-member > i {
  display: inline-grid;
  place-items: center;
  border: 1px solid #c5d7b155;
  width: 18px;
  height: 18px;
  font-style: normal;
  color: var(--gold);
  font-size: 9px;
}
.squad-member b {
  display: block;
  height: 3px;
  margin-top: 5px;
  background: #273525;
  overflow: hidden;
}
.squad-member b span {
  display: block;
  height: 100%;
  background: #d2dfb8;
}
.squad-member small {
  font-size: 9px;
  color: #c0caae;
}
.squad-member.dead {
  opacity: 0.45;
}
.squad-member.downed b span {
  background: var(--red);
}
.compass {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  height: 60px;
  text-align: center;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 13%,
    #000 87%,
    transparent
  );
}
#compass-strip {
  position: absolute;
  top: 7px;
  left: 50%;
  display: flex;
  align-items: flex-start;
  gap: 0;
  height: 30px;
  will-change: transform;
}
.compass-tick {
  position: absolute;
  width: 30px;
  margin-left: -15px;
  color: #d9e2cc;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
}
.compass-tick:before {
  content: "";
  display: block;
  margin: 0 auto 6px;
  width: 1px;
  height: 4px;
  background: #d9e2cc99;
}
.compass-tick.cardinal {
  font-size: 12px;
  color: #f2f3df;
}
.compass-tick.cardinal:before {
  height: 7px;
  background: var(--gold);
}
.compass-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: var(--gold);
}
#bearing {
  display: inline-block;
  position: absolute;
  top: 37px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.match-top-right {
  position: absolute;
  top: 24px;
  right: 27px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
}
.match-top-right #net-state {
  color: #bdd49d;
}
.match-top-right #ping-value {
  color: #e1e6d9;
}
.match-top-right .icon-button {
  width: 29px;
  height: 29px;
  font-size: 13px;
  background: #111a14aa;
}
.kill-feed {
  position: absolute;
  top: 73px;
  right: 29px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  max-width: 320px;
}
.kill-line {
  background: linear-gradient(90deg, transparent, #0b1712b8);
  padding: 7px 9px;
  font-size: 10px;
  line-height: 1.4;
  color: #e2e5d7;
  animation: feed-in 0.25s ease-out;
}
.kill-line b {
  color: var(--gold);
}
.kill-line span {
  color: #9daf96;
  margin: 0 8px;
  font-size: 8px;
}
.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 2px #000);
  opacity: 0.8;
}
.crosshair i {
  position: absolute;
  background: #f1f3de;
}
.crosshair i:nth-child(1) {
  width: 1px;
  height: 6px;
  left: 50%;
  top: 0;
}
.crosshair i:nth-child(2) {
  width: 1px;
  height: 6px;
  left: 50%;
  bottom: 0;
}
.crosshair i:nth-child(3) {
  height: 1px;
  width: 6px;
  top: 50%;
  left: 0;
}
.crosshair i:nth-child(4) {
  height: 1px;
  width: 6px;
  top: 50%;
  right: 0;
}
.crosshair.aim {
  width: 8px;
  height: 8px;
}
.crosshair.aim i {
  height: 2px;
  width: 2px;
}
.hit-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 38px;
  color: #f2e4b8;
  opacity: 0;
  transition: opacity 0.15s;
  line-height: 1;
}
.damage-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, transparent 35%, #9d201595);
  opacity: 0;
  transition: opacity 0.25s;
  mix-blend-mode: screen;
}
.zone-banner {
  position: absolute;
  top: 108px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(90deg, transparent, #151b1dc9, transparent);
  padding: 13px 30px;
  text-align: left;
}
.zone-banner .zone-icon {
  color: var(--gold);
  font-size: 28px;
}
.zone-banner strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: #ead9a3;
}
.zone-banner div > span {
  display: block;
  font-size: 10px;
  color: #bfc6b8;
  margin-top: 5px;
}
.center-announcement {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(90vw, 660px);
  background: linear-gradient(90deg, transparent, #0b15115e, transparent);
  padding: 22px;
}
.center-announcement > span {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.center-announcement > strong {
  display: block;
  font-size: clamp(34px, 6vw, 70px);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 10px 0;
}
.center-announcement > small {
  font-size: 11px;
  color: #d0dac3;
  letter-spacing: 0.04em;
}
.bottom-hud {
  position: absolute;
  bottom: 27px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
}
.map-cluster {
  width: 160px;
}
.minimap-frame {
  width: 160px;
  height: 160px;
  border: 1px solid #dbe5cb88;
  position: relative;
  box-shadow: 0 3px 20px #0005;
  background: #13201f;
}
.minimap-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.map-corner {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: var(--gold);
}
.minimap-frame button {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: 1px solid #ffffff66;
  background: #122019dd;
  font-size: 10px;
}
.storm-clock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 8px;
  color: #c4d1ba;
  letter-spacing: 0.08em;
}
.storm-clock strong {
  font-size: 12px;
  color: #edeee1;
  letter-spacing: 0.04em;
}
.vitals-cluster {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(320px, 30vw);
}
.health-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.health-label strong {
  font-size: 14px;
  letter-spacing: 0;
}
.health-label small {
  font-size: 8px;
  color: #adbba2;
}
.health-track {
  height: 8px;
  background: #111910bd;
  border: 1px solid #eff7df66;
  transform: skewX(-10deg);
  overflow: hidden;
}
.health-track i {
  display: block;
  height: 100%;
  background: #e7efd9;
  width: 100%;
  transition: width 0.16s;
}
.health-track.low i {
  background: #eb8060;
}
.armor-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 10px;
  color: #b9d7e2;
}
.armor-line > div {
  height: 3px;
  background: #182326c7;
  flex: 1;
}
.armor-line i {
  display: block;
  width: 0;
  height: 3px;
  background: #88bac9;
  transition: width 0.2s;
}
.armor-line > span:last-child {
  margin-left: 8px;
  color: #c9daba;
}
.stance-label {
  font-size: 8px;
  color: #c4cfbb;
  margin-top: 10px;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.stance-label span {
  color: #9baa90;
  font-size: 7px;
}
.interact-prompt {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #121d17b8;
  border: 1px solid #d1dfba44;
  padding: 11px 16px;
  white-space: nowrap;
  max-width: 90vw;
  font-size: 12px;
  box-shadow: 0 5px 30px #0003;
}
.interact-prompt kbd {
  font-weight: 800;
  color: var(--gold);
  padding: 6px 7px;
}
.action-progress {
  position: absolute;
  bottom: 112px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.action-progress > div {
  margin-top: 8px;
  height: 3px;
  background: #f1ecc824;
}
.action-progress i {
  display: block;
  height: 3px;
  background: var(--gold);
  width: 0;
}
.weapon-cluster {
  width: 200px;
  text-align: right;
}
.weapon-name {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #d6dfca;
  font-weight: 700;
}
.ammo {
  display: flex;
  gap: 9px;
  align-items: baseline;
  justify-content: flex-end;
  margin: 2px 0 10px;
}
.ammo > strong {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.ammo > span {
  font-size: 15px;
  color: #b8c6ad;
}
.ammo > span b {
  font-weight: 400;
}
.weapon-slots {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}
.weapon-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #101b13b0;
  border-bottom: 2px solid #ffffff30;
  padding: 6px 8px;
  font-size: 8px;
  color: #c1ceb7;
}
.weapon-slot.active {
  border-bottom-color: var(--gold);
  color: var(--gold);
}
.weapon-slot kbd {
  font-size: 8px;
  padding: 2px 3px;
  margin: 0;
  border-color: #ffffff30;
}
.equipment-row {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  font-size: 7px;
  color: #bccab1;
  margin-top: 9px;
}
.equipment-row kbd {
  font-size: 8px;
}
.pointer-hint {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(400px, 85vw);
  background: #0a1410df;
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.pointer-hint .primary-button {
  font-size: 10px;
  padding: 17px;
}
.pointer-hint p {
  font-size: 9px;
  color: #a8b59d;
  line-height: 1.6;
  margin-bottom: 0;
}
.connection-banner {
  position: fixed;
  z-index: 55;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #3c2a18f5;
  border: 1px solid #af895e;
  padding: 12px 18px;
  color: #f6dca6;
  font-size: 11px;
  box-shadow: var(--shadow);
  max-width: 90vw;
}
.connection-banner .status-dot {
  background: var(--gold);
  animation: pulse 1s infinite;
}
.spectate-banner {
  position: absolute;
  left: 50%;
  bottom: 145px;
  transform: translateX(-50%);
  text-align: center;
  background: #0d1711cc;
  border: 1px solid var(--line);
  padding: 16px 25px;
  pointer-events: auto;
  min-width: 260px;
}
.spectate-banner > span {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.spectate-banner > strong {
  display: block;
  font-size: 22px;
  margin: 7px 0 14px;
}
.spectate-banner button {
  margin: 0 6px;
}
.result-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(0deg, #09150ff0, #0a1810c0);
  text-align: center;
  padding: 30px;
}
.result-screen > .eyebrow {
  color: var(--gold);
  margin-bottom: 18px;
}
.result-screen h1 {
  font-weight: 950;
  font-size: clamp(44px, 7.5vw, 100px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0;
}
.result-screen > p {
  font-size: 13px;
  color: #c4cebc;
  max-width: 500px;
  line-height: 1.6;
}
.result-stats {
  display: flex;
  gap: 55px;
  margin: 30px 0 40px;
}
.result-stats > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.result-stats b {
  font-size: 44px;
  font-weight: 800;
}
.result-stats span {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #acbaa1;
}
.result-screen > .primary-button {
  max-width: 340px;
}
.result-screen > .text-button {
  margin-top: 15px;
}
dialog {
  color: var(--ink);
  background: #111c16f8;
  border: 1px solid var(--line);
  padding: 30px;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  scrollbar-color: #536449 #172419;
}
dialog::backdrop {
  background: #020805a8;
  backdrop-filter: blur(5px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  color: var(--gold);
}
dialog h2 {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
  margin: 0 0 15px;
}
dialog p {
  font-size: 12px;
  line-height: 1.75;
  color: #b6c0ac;
}
.dialog-note {
  margin: 0 0 25px;
}
.settings-grid {
  display: grid;
  gap: 20px;
}
.settings-grid > label {
  display: grid;
  gap: 9px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ced8c2;
}
.settings-grid select {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  padding: 12px;
}
.range-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.range-row input {
  flex: 1;
  accent-color: var(--gold);
}
.range-row output {
  width: 34px;
  text-align: right;
  color: var(--gold);
  font-size: 11px;
}
.settings-grid > .check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.check-label input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}
.dialog-actions .secondary-button {
  flex: 1;
  white-space: nowrap;
}
.dialog-actions .primary-button {
  flex: 2;
}
.manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  margin: 25px 0;
}
.manual-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #c2cdb6;
}
.manual-grid kbd {
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  padding: 5px;
}
.manual-tip {
  border-left: 2px solid var(--gold);
  padding-left: 15px;
  margin-bottom: 25px;
}
.manual-tip strong {
  color: var(--gold);
}
.map-dialog {
  width: min(720px, calc(100vw - 30px));
  padding: 20px;
}
.map-dialog > .dialog-top {
  margin-bottom: 15px;
}
.map-dialog canvas {
  display: block;
  width: min(100%, calc(100dvh - 185px));
  max-height: calc(100dvh - 185px);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid #b9c9a955;
}
.map-dialog p {
  font-size: 10px;
  text-align: center;
  margin-bottom: 0;
}
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  background: #e1bd73;
  color: #152013;
  font-size: 11px;
  font-weight: 700;
  padding: 13px 20px;
  max-width: 90vw;
  box-shadow: var(--shadow);
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.noscript {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #101715;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}
.touch-controls {
  display: none;
}
.in-match .film-grain {
  opacity: 0.06;
}
.in-match #viewport canvas {
  cursor: none;
}
.fatal-panel {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c1510;
  flex-direction: column;
  text-align: center;
  padding: 25px;
}
.fatal-panel h2 {
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 10px;
}
.fatal-panel p {
  max-width: 480px;
  font-size: 13px;
  line-height: 1.7;
  color: #b9c7af;
}
.fatal-panel a,
.fatal-panel button {
  margin: 10px;
}
.fatal-panel .primary-button {
  max-width: 300px;
}
.reduced-motion * {
  animation: none !important;
  transition: none !important;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
@keyframes feed-in {
  from {
    transform: translateX(15px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .lobby-main {
    padding-left: 7vw;
    width: 620px;
    gap: 36px;
  }
  .deployment-panel {
    max-width: 450px;
  }
  .lobby-copy h1 {
    font-size: 92px;
  }
  .lobby-intro {
    font-size: 15px;
  }
  .mode {
    padding: 16px;
  }
  .primary-button {
    padding: 20px 23px;
  }
  .menu-top {
    padding: 32px 50px;
  }
  .menu-bottom {
    padding: 24px 50px;
  }
}
@media (max-height: 800px) and (min-width: 901px) {
  .lobby-main {
    gap: 18px;
  }
  .lobby-copy h1 {
    font-size: clamp(38px, 4.5vw, 65px);
    margin: 14px 0;
  }
  .lobby-facts {
    margin-top: 15px;
  }
  .lobby-intro {
    font-size: 11px;
  }
  .mode {
    padding: 9px 5px;
  }
  .panel-top {
    margin-bottom: 10px;
    padding-bottom: 9px;
  }
  .primary-button {
    padding: 14px 18px;
  }
  .menu-top {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .menu-bottom {
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .room-card {
    padding: 20px;
  }
  .room-players {
    margin: 12px 0;
    max-height: 125px;
  }
  .room-countdown {
    margin: 12px 0;
  }
}
@media (max-width: 1100px) {
  .lobby-main {
    padding-left: 38px;
    width: 430px;
  }
  .lobby-copy h1 {
    font-size: 58px;
  }
  .lobby-facts {
    gap: 17px;
  }
  .menu-top {
    padding: 22px 28px;
  }
  .menu-bottom {
    padding: 18px 28px;
  }
  .room-panel {
    margin: 0 5%;
    gap: 30px;
  }
  .room-heading h1 {
    font-size: 53px;
  }
  .room-card {
    width: 355px;
  }
  .compass {
    width: 300px;
  }
  .vitals-cluster {
    width: 250px;
  }
  .bottom-hud {
    left: 20px;
    right: 20px;
  }
  .minimap-frame,
  .map-cluster {
    width: 130px;
  }
  .minimap-frame {
    height: 130px;
  }
  .weapon-cluster {
    width: 170px;
  }
}
@media (max-width: 750px) {
  .menu-top {
    padding: 17px 20px;
  }
  .wordmark {
    font-size: 19px;
  }
  .wordmark small {
    font-size: 7px;
  }
  .brand-glyph {
    font-size: 27px;
  }
  .menu-top nav {
    gap: 10px;
  }
  .menu-top nav > a {
    font-size: 10px;
  }
  .menu-top .icon-button {
    width: 29px;
    height: 29px;
    font-size: 16px;
  }
  .menu-shell {
    background:
      linear-gradient(90deg, #07100edc, #0b141180),
      linear-gradient(0deg, #07100ef0, transparent 90%);
  }
  .lobby-main {
    width: min(430px, 100%);
    padding: 0 25px;
    height: calc(100dvh - 125px);
    gap: 21px;
  }
  .lobby-copy h1 {
    font-size: clamp(40px, 9vw, 63px);
    margin: 15px 0;
  }
  .lobby-copy .eyebrow {
    font-size: 8px;
  }
  .lobby-intro {
    font-size: 11px;
  }
  .lobby-facts {
    margin-top: 16px;
    gap: 15px;
    font-size: 7px;
  }
  .lobby-facts b {
    font-size: 17px;
  }
  .menu-bottom {
    padding: 14px 20px;
  }
  .menu-bottom > span:first-child {
    font-size: 6px;
    letter-spacing: 0.05em;
  }
  .menu-bottom #render-label {
    display: none;
  }
  .menu-bottom .text-button {
    font-size: 8px;
  }
  .room-panel {
    height: calc(100dvh - 140px);
    margin: 0 22px;
    gap: 18px;
    flex-direction: column;
    justify-content: center;
  }
  .room-heading {
    align-self: flex-start;
  }
  .room-heading h1 {
    font-size: 32px;
    margin: 10px 0;
  }
  .room-heading h1 br {
    display: none;
  }
  .room-heading p {
    font-size: 10px;
    margin: 6px 0;
  }
  .room-card {
    width: 100%;
    max-width: 410px;
    padding: 18px;
    overflow: auto;
  }
  .room-players {
    max-height: 100px;
    margin: 12px 0;
  }
  .room-countdown {
    margin: 12px 0;
  }
  .room-countdown strong {
    font-size: 28px;
  }
  .operation-hud {
    top: 16px;
    left: 16px;
  }
  .operation-hud > .eyebrow {
    font-size: 8px;
  }
  .remaining {
    gap: 5px;
  }
  .remaining b {
    font-size: 20px;
  }
  .remaining span {
    font-size: 6px;
  }
  .compass {
    top: 12px;
    width: 220px;
  }
  .match-top-right {
    top: 16px;
    right: 15px;
    gap: 8px;
    font-size: 8px;
  }
  .match-top-right #net-state {
    display: none;
  }
  .bottom-hud {
    bottom: 20px;
    left: 15px;
    right: 15px;
  }
  .map-cluster,
  .minimap-frame {
    width: 105px;
  }
  .minimap-frame {
    height: 105px;
  }
  .vitals-cluster {
    width: 220px;
    bottom: 0;
  }
  .health-label {
    font-size: 8px;
  }
  .stance-label {
    font-size: 7px;
  }
  .stance-label span {
    display: none;
  }
  .weapon-cluster {
    width: 125px;
  }
  .ammo > strong {
    font-size: 33px;
  }
  .weapon-name {
    font-size: 8px;
  }
  .weapon-slots {
    gap: 3px;
  }
  .weapon-slot {
    font-size: 7px;
    padding: 5px;
  }
  .equipment-row {
    display: none;
  }
  .kill-feed {
    top: 60px;
    right: 15px;
    max-width: 230px;
  }
  .kill-line {
    font-size: 8px;
  }
  .squad-list {
    margin-top: 12px;
  }
  .squad-member {
    grid-template-columns: 15px 80px 20px;
    gap: 5px;
    font-size: 8px;
  }
  .zone-banner {
    top: 90px;
    padding: 10px 14px;
  }
  .zone-banner strong {
    font-size: 10px;
  }
  .zone-banner div > span {
    font-size: 8px;
  }
  .zone-banner .zone-icon {
    font-size: 22px;
  }
  .result-stats {
    gap: 30px;
    margin: 25px 0 30px;
  }
  .result-stats b {
    font-size: 35px;
  }
  .result-stats span {
    font-size: 7px;
  }
  .result-screen h1 {
    font-size: 52px;
  }
  .result-screen p {
    font-size: 11px;
  }
  .manual-grid {
    gap: 14px;
  }
  .manual-grid > div {
    font-size: 9px;
  }
  .manual-grid kbd {
    font-size: 8px;
  }
  dialog {
    padding: 22px;
  }
  .dialog-top {
    margin-bottom: 19px;
  }
  dialog h2 {
    font-size: 31px;
  }
}
@media (pointer: coarse) {
  .in-match .touch-controls {
    display: block;
    pointer-events: none;
  }
  .touch-stick {
    position: absolute;
    bottom: 115px;
    left: 45px;
    width: 100px;
    height: 100px;
    border: 1px solid #e2efd34d;
    border-radius: 50%;
    background: #10211625;
    pointer-events: auto;
    touch-action: none;
  }
  .touch-stick i {
    position: absolute;
    left: 30px;
    top: 30px;
    width: 40px;
    height: 40px;
    background: #d3dfbf33;
    border: 1px solid #e2efd375;
    border-radius: 50%;
  }
  .touch-look {
    position: absolute;
    left: 35%;
    right: 0;
    top: 15%;
    bottom: 100px;
    pointer-events: auto;
    touch-action: none;
  }
  .touch-action {
    position: absolute;
    width: 49px;
    height: 49px;
    border-radius: 50%;
    border: 1px solid #d5e1c755;
    background: #11201760;
    color: #e5eddc;
    font-size: 23px;
    touch-action: none;
    pointer-events: auto;
    display: grid;
    place-items: center;
  }
  .touch-action.fire {
    bottom: 140px;
    right: 55px;
    width: 65px;
    height: 65px;
    font-size: 42px;
    border-color: #e4c88a90;
    background: #a789422a;
  }
  .touch-action.aim {
    bottom: 220px;
    right: 70px;
  }
  .touch-action.jump {
    bottom: 110px;
    right: 140px;
  }
  .touch-action.interact {
    bottom: 185px;
    right: 145px;
    font-size: 18px;
  }
  .touch-action.reload {
    bottom: 125px;
    right: 220px;
    font-size: 17px;
    width: 40px;
    height: 40px;
  }
  .pointer-hint {
    display: none !important;
  }
  .vitals-cluster {
    bottom: 8px;
  }
  .stance-label {
    display: none;
  }
  .map-cluster,
  .minimap-frame {
    width: 95px;
  }
  .minimap-frame {
    height: 95px;
  }
  .operation-hud {
    top: 15px;
  }
  .squad-list {
    max-height: 100px;
  }
  .weapon-slots {
    display: flex;
    pointer-events: auto;
  }
  .interact-prompt {
    bottom: 90px;
    font-size: 10px;
  }
  .touch-controls .touch-action:active {
    background: #e1bd7355;
  }
  .spectate-banner {
    bottom: 100px;
  }
  .in-match #viewport canvas {
    cursor: default;
  }
}
@media (max-width: 750px) and (min-height: 700px) {
  .lobby-main {
    gap: 28px;
  }
  .lobby-copy h1 {
    font-size: 60px;
  }
  .deployment-panel .mode {
    padding: 13px 5px;
  }
  .vitals-cluster {
    bottom: 117px;
    width: 230px;
  }
  .bottom-hud .weapon-cluster {
    align-self: flex-end;
  }
  .touch-stick {
    bottom: 240px;
    left: 25px;
  }
  .touch-action.fire {
    bottom: 270px;
    right: 25px;
  }
  .touch-action.aim {
    bottom: 350px;
    right: 30px;
  }
  .touch-action.jump {
    bottom: 230px;
    right: 100px;
  }
  .touch-action.interact {
    bottom: 310px;
    right: 105px;
  }
  .touch-action.reload {
    bottom: 225px;
    right: 180px;
  }
  .touch-look {
    bottom: 220px;
    left: 25%;
  }
  .compass {
    top: 70px;
    width: 230px;
  }
  .zone-banner {
    top: 125px;
  }
  .kill-feed {
    top: 170px;
  }
  .spectate-banner {
    bottom: 230px;
    min-width: 240px;
  }
  .result-screen h1 {
    font-size: 46px;
  }
  .result-stats {
    gap: 23px;
  }
}
/* Keep every deployment action clear of the footer on shorter laptops. */
@media (min-width: 751px) and (min-height: 551px) and (max-height: 700px) {
  .lobby-main {
    height: calc(100dvh - 135px);
    width: 100%;
    padding: 0 38px;
    flex-direction: row;
    gap: 35px;
    align-items: center;
  }
  .lobby-copy {
    flex: 1;
    max-width: 400px;
  }
  .lobby-copy h1 {
    font-size: 48px;
  }
  .deployment-panel {
    width: 360px;
    flex: 0 0 360px;
  }
}
@media (max-height: 550px) {
  .menu-top {
    padding: 12px 24px;
  }
  .menu-bottom {
    padding: 10px 24px;
  }
  .menu-bottom .text-button {
    padding: 0;
  }
  .lobby-main {
    height: calc(100dvh - 105px);
    flex-direction: row;
    width: 100%;
    padding: 0 35px;
    gap: 30px;
    align-items: center;
  }
  .lobby-copy {
    flex: 1;
    max-width: 400px;
  }
  .lobby-copy h1 {
    font-size: 43px;
  }
  .lobby-intro {
    font-size: 10px;
  }
  .lobby-facts {
    gap: 12px;
    margin-top: 15px;
    font-size: 6px;
  }
  .lobby-facts b {
    font-size: 15px;
  }
  .deployment-panel {
    width: 310px;
    flex: none;
  }
  .panel-top {
    padding-bottom: 7px;
    margin-bottom: 8px;
  }
  .callsign-label {
    font-size: 8px;
  }
  .callsign-label input {
    padding: 6px 8px;
    font-size: 10px;
  }
  .mode-picker {
    margin: 9px 0;
  }
  .mode {
    padding: 7px 3px;
  }
  .mode-people {
    margin-bottom: 4px;
    font-size: 10px;
  }
  .mode strong {
    font-size: 10px;
  }
  .mode small {
    font-size: 8px;
    margin-top: 3px;
  }
  .primary-button {
    padding: 12px 14px;
    min-height: 39px;
    font-size: 10px;
  }
  .room-actions .secondary-button {
    padding: 10px 7px;
    font-size: 8px;
  }
  .panel-note {
    font-size: 8px;
    margin-top: 7px;
  }
  .room-panel {
    height: calc(100dvh - 105px);
    flex-direction: row;
    margin: 0 6%;
    gap: 30px;
  }
  .room-heading h1 {
    font-size: 40px;
  }
  .room-card {
    width: 320px;
    padding: 14px;
    max-height: 100%;
  }
  .room-players {
    max-height: 78px;
    margin: 7px 0;
  }
  .room-player {
    padding: 6px 0;
  }
  .room-countdown {
    margin: 9px 0;
  }
  .room-countdown strong {
    font-size: 25px;
  }
  .room-metrics b {
    font-size: 17px;
  }
  .room-card > .text-button {
    font-size: 8px;
    padding: 7px;
  }
  .room-card .panel-top {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .minimap-frame,
  .map-cluster {
    width: 85px;
  }
  .minimap-frame {
    height: 85px;
  }
  .bottom-hud {
    bottom: 15px;
  }
  .operation-hud {
    top: 12px;
  }
  .squad-list {
    margin-top: 8px;
    gap: 5px;
  }
  .phase-tag {
    margin-top: 6px;
  }
  .compass {
    top: 9px;
  }
  .zone-banner {
    top: 70px;
  }
  .vitals-cluster {
    width: 230px;
  }
  .weapon-cluster {
    width: 145px;
  }
  .touch-stick {
    bottom: 110px;
    left: 32px;
    width: 90px;
    height: 90px;
  }
  .touch-stick i {
    left: 25px;
    top: 25px;
  }
  .touch-action.fire {
    bottom: 110px;
    right: 35px;
    width: 57px;
    height: 57px;
  }
  .touch-action.aim {
    bottom: 180px;
    right: 40px;
  }
  .touch-action.jump {
    bottom: 100px;
    right: 112px;
  }
  .touch-action.interact {
    bottom: 170px;
    right: 112px;
  }
  .touch-action.reload {
    bottom: 125px;
    right: 180px;
  }
  .kill-feed {
    top: 58px;
  }
  .center-announcement {
    top: 36%;
    padding: 10px;
  }
  .center-announcement > strong {
    font-size: 38px;
  }
  .result-screen h1 {
    font-size: 44px;
  }
  .result-stats {
    margin: 16px 0;
    gap: 38px;
  }
  .result-stats b {
    font-size: 29px;
  }
  .result-screen > .eyebrow {
    margin-bottom: 12px;
  }
  .result-screen > p {
    margin: 10px 0;
    font-size: 10px;
  }
  .result-screen > .primary-button {
    max-width: 300px;
  }
  .result-screen > .text-button {
    margin-top: 5px;
  }
  .spectate-banner {
    bottom: 95px;
    padding: 12px 20px;
  }
  .spectate-banner > strong {
    font-size: 18px;
    margin: 5px 0 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .status-dot,
  .kill-line {
    animation: none;
  }
  .film-grain {
    opacity: 0.07;
  }
}
.nameplates {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nameplate {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  color: #d6e9b6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px #000;
  background: #0d1c1266;
  padding: 3px 6px;
  border-bottom: 1px solid #d6e9b666;
}
.nameplate:before {
  content: "◆";
  font-size: 7px;
  margin-right: 5px;
  color: var(--gold);
}
.nameplate.downed {
  color: #f2a88e;
}
.team-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 8px;
  color: #b6c4aa;
  letter-spacing: 0.13em;
  margin: 15px 0 0;
}
.team-select select {
  font-size: 10px;
  padding: 7px 9px;
  max-width: 180px;
}
.menu-status.error {
  color: #ecab8e;
}

@media (pointer: coarse) {
  .touch-action.camera {
    top: 85px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 13px;
  }
  .touch-action.grenade {
    bottom: 245px;
    right: 145px;
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .touch-action.heal {
    bottom: 185px;
    left: 20px;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .touch-action.crouch {
    bottom: 245px;
    left: 20px;
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
}
@media (pointer: coarse) and (max-height: 550px) {
  .touch-action.camera {
    top: 60px;
    right: 20px;
  }
  .touch-action.grenade {
    bottom: 180px;
    right: 180px;
  }
  .touch-action.heal {
    bottom: 110px;
    left: 145px;
  }
  .touch-action.crouch {
    bottom: 170px;
    left: 145px;
  }
}

/* Persistent operator controls stay compact beside the callsign. */
.profile-row {
  display: flex;
  gap: 9px;
  align-items: center;
}
.profile-row .callsign-label {
  flex: 1;
  min-width: 0;
}
.profile-row .callsign-label input {
  min-width: 0;
  width: 100%;
}
.loadout-button {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d8e0c62c;
  padding: 7px 9px;
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: #0a151680;
}
.loadout-button i {
  width: 10px;
  height: 10px;
  background: #b6c3a5;
  border-radius: 2px;
}
.combatant-control {
  display: block;
  margin: 10px 0 12px;
}
.combatant-control > span {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #b7c4ad;
}
.combatant-control output {
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
}
.combatant-control span small {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 0;
  color: #9eac95;
}
.combatant-control > small {
  display: block;
  font-size: 8px;
  color: #99a78f;
}
.combatant-control input {
  width: 100%;
  height: 15px;
  margin: 4px 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.combatant-control input:disabled {
  cursor: default;
  opacity: 0.65;
}
.loadout-dialog {
  width: 360px;
  margin: 100px auto auto max(25px, 5vw);
}
.loadout-dialog::backdrop {
  background: #020b0738;
  backdrop-filter: none;
}
.skin-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 22px 0;
}
.skin-option {
  border: 1px solid #cedbb72a;
  padding: 15px 9px;
  background: #111c15;
  text-align: left;
  font-size: 11px;
}
.skin-option i {
  display: block;
  width: 34px;
  height: 16px;
  border-radius: 3px;
  margin-bottom: 9px;
  background: var(--skin-colour);
  box-shadow: 0 4px 14px #0005;
}
.skin-option[aria-pressed="true"] {
  border-color: var(--gold);
  background: #a08e3926;
  color: var(--gold);
}
.career-dialog {
  width: min(760px, 95vw);
}
.career-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #d6e0c828;
  border-bottom: 1px solid #d6e0c828;
}
.career-stats span {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #a5b399;
}
.career-stats b {
  display: block;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 4px;
}
.leaderboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}
.leaderboard-heading h3 {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.leaderboard-scroll {
  max-height: min(330px, 38dvh);
  overflow: auto;
}
.leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: right;
}
.leaderboard th {
  position: sticky;
  top: 0;
  background: #132018;
  color: #a9b59d;
  font-size: 8px;
  font-weight: 500;
  padding: 10px 7px;
}
.leaderboard td {
  padding: 11px 7px;
  border-top: 1px solid #dae5c415;
}
.leaderboard th:nth-child(2),
.leaderboard td:nth-child(2) {
  text-align: left;
}
.leaderboard tr.is-you {
  background: #e9c16b12;
  color: var(--gold);
}
.profile-warning {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e7b16d70;
  font-size: 11px;
}
@media (max-width: 600px) {
  .profile-row {
    gap: 5px;
  }
  .loadout-button {
    padding: 6px;
    font-size: 7px;
  }
  .loadout-dialog {
    margin: auto;
    width: min(360px, 94vw);
  }
  .leaderboard {
    font-size: 9px;
  }
  .leaderboard td,
  .leaderboard th {
    padding: 9px 4px;
  }
  .leaderboard th:nth-child(6),
  .leaderboard td:nth-child(6) {
    display: none;
  }
  .menu-bottom #career-score {
    display: none;
  }
}
@media (max-height: 800px) {
  .combatant-control {
    margin: 7px 0 9px;
  }
  .combatant-control > small {
    display: none;
  }
  .lobby-facts {
    margin-top: 10px;
  }
  .career-stats {
    padding: 10px 0;
  }
}
@media (max-height: 550px) {
  .deployment-panel .panel-top,
  .deployment-panel .panel-note,
  .mode-people {
    display: none;
  }
  .combatant-control {
    margin: 5px 0 6px;
  }
  .combatant-control input {
    height: 12px;
    margin: 2px 0;
  }
  .combatant-control > span {
    font-size: 8px;
  }
  .combatant-control output {
    font-size: 12px;
  }
  .profile-row .callsign-label input {
    font-size: 10px;
  }
  .loadout-button {
    padding: 4px 7px;
    font-size: 7px;
  }
  .mode-picker {
    margin: 7px 0;
  }
  .loadout-dialog {
    margin: auto;
  }
  .skin-options {
    margin: 12px 0;
    gap: 6px;
  }
  .skin-option {
    padding: 9px;
  }
  .skin-option i {
    height: 8px;
    margin-bottom: 4px;
  }
  .room-card .combatant-control {
    margin: 4px 0;
  }
  .room-card .room-players {
    max-height: 62px;
  }
}
@media (max-height: 700px) and (min-width: 751px) {
  .room-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 14px;
  }
  .room-card > .panel-top,
  .room-card > .room-metrics,
  .room-card > .combatant-control,
  .room-card > .team-select,
  .room-card > .room-players,
  .room-card > .menu-status {
    grid-column: 1/-1;
  }
  .room-card .panel-top,
  .room-card .room-countdown,
  .room-card .room-players,
  .room-card .combatant-control {
    margin: 0;
  }
  .room-card .room-players {
    max-height: 70px;
  }
  .room-card .room-countdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }
  .room-card .room-countdown strong {
    font-size: 22px;
  }
  .room-card #ready-button {
    font-size: 8px;
    padding: 8px;
    min-height: 38px;
  }
  .room-card #start-button,
  .room-card #leave-lobby {
    margin: 0;
    font-size: 8px;
    padding: 8px 4px;
    min-height: 30px;
  }
}
@media (max-height: 550px) {
  .menu-top {
    height: 56px;
    padding: 8px 24px;
  }
  .menu-bottom {
    height: 28px;
    padding: 4px 24px;
  }
  .lobby-main,
  .room-panel {
    height: calc(100dvh - 84px);
  }
  .combatant-control input {
    min-height: 15px;
    height: 15px;
    padding: 0;
  }
  .room-card {
    padding: 8px;
    gap: 4px;
  }
  .room-card .panel-top {
    padding-bottom: 4px;
    font-size: 8px;
  }
  .room-card .room-metrics {
    gap: 15px;
  }
  .room-card .room-metrics b {
    display: inline;
    font-size: 14px;
    margin-right: 4px;
  }
  .room-card .room-metrics span {
    font-size: 7px;
  }
  .room-card .room-players {
    max-height: 28px;
  }
  .room-card .room-player {
    font-size: 8px;
    padding: 4px 0;
  }
  .room-card .team-select {
    margin: 0;
    font-size: 7px;
  }
  .room-card .team-select select {
    min-height: 22px;
    padding: 2px 5px;
    font-size: 8px;
  }
  .room-card .room-countdown {
    gap: 0;
  }
  .room-card .room-countdown strong {
    font-size: 17px;
  }
  .room-card .room-countdown span {
    font-size: 7px;
  }
  .room-card #ready-button {
    min-height: 30px;
    padding: 6px;
  }
  .room-card #start-button,
  .room-card #leave-lobby {
    min-height: 27px;
    padding: 5px 2px;
  }
}
