/* Game and menu shell */
:root {
  color-scheme: dark;
  font-family: var(--ui-font);
  color: var(--ui-text);
  background: #090b08;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
.viewport {
  width: var(--window-width);
  height: var(--window-height);
  display: grid;
  place-items: center;
  background: #090b08;
}
.stage {
  --hud-radar-size: 194px;
  position: relative;
  width: 100%;
  height: 100%;
  background: black;
  container-type: inline-size;
  overflow: hidden;
}
#canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  outline: 0;
}
.main-menu {
  position: absolute;
  inset: 0;
  z-index: 2;
  isolation: isolate;
}
.menu-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: -1;
}
nav {
  position: absolute;
  left: 5.2%;
  bottom: 15%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1.2cqw;
}
nav button {
  text-align: left;
}
.menu-gap {
  height: 1.4cqw;
}
.menu-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}
.capture {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 280px;
  padding: 17px 24px;
  color: var(--ui-text);
  z-index: 1;
}
.capture strong {
  display: block;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 7px;
}
.capture span {
  display: block;
  font-size: 11px;
  max-width: 380px;
  line-height: 1.5;
}
.dialog-body {
  padding: 18px 18px 8px;
}
.dialog-body > label {
  display: block;
  margin-bottom: 18px;
  line-height: 1.8;
}
.dialog-body > label > input:not([type='checkbox']),
.dialog-body select {
  display: block;
  width: 100%;
  margin-top: 5px;
}
.checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.help {
  font-size: 11px;
  line-height: 1.65;
  color: #b4beaa;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 12px 12px 9px;
}
.loading-window progress {
  width: 100%;
  height: 17px;
  border: 1px solid #282e22;
  background: #3e4637;
  accent-color: #a4af99;
}
progress::-webkit-progress-bar {
  background: #3e4637;
}
progress::-webkit-progress-value {
  background: var(--ui-accent);
}
output {
  float: right;
  color: white;
}
.diagnostics-window pre {
  margin: 0 0 8px;
  background: #3e4637;
  padding: 8px;
  font: 10px/1.5 var(--ui-font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 280px;
  overflow: auto;
  color: #c7d1bd;
}
#input-diagnostics {
  color: #e1e8d7;
  max-height: 120px;
}
[hidden] {
  display: none !important;
}
body.mouse-locked .menu-button {
  display: none;
}
@media (max-width: 600px) {
  nav {
    gap: 2.5cqw;
    bottom: 13%;
  }
  .dialog-body {
    padding: 10px;
  }
  .dialog-body > label {
    margin-bottom: 10px;
  }
  .capture {
    min-width: 230px;
  }
}

html,
body {
  width: 100%;
  height: 100%;
}
a {
  text-decoration: none;
}
/* The original resource coordinates are replaced by the shared panel layout. */
.game-panel {
  position: absolute;
  inset: 0;
  z-index: 4;
  color: var(--ui-text);
}
.game-panel[hidden],
.menu-button {
  display: none !important;
}

/* Match windows */
/* Match teams sit side by side; row sizes stay fixed while long lists scroll. */
.scoreboard {
  --score-row: 40px;
  --score-matchup-height: 54px;
  --score-height-rows: var(--score-rows, 8);
  --score-height-teams: var(--score-teams, 1);
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 48px), 1440px);
  height: min(
    calc(100% - 48px),
    calc(
      74px + var(--score-matchup-height) + var(--panel-padding) * 2 + var(--score-height-rows) * var(--score-row) +
        var(--score-height-teams) * 82px + (var(--score-height-teams) - 1) * var(--ui-gap)
    )
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  container-type: size;
  color: var(--panel-text);
  font-family: var(--ui-font);
  font-weight: 400;
  text-shadow: none;
}
.scoreboard-content {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}
.scoreboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
}
.scoreboard-header .scoreboard-server {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}
.scoreboard-map {
  color: var(--ui-accent);
  font-size: 14px;
}
.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 64px 78px 64px;
  align-items: center;
  height: var(--score-row);
  min-height: var(--score-row);
  gap: 8px;
  padding: 0 12px;
}
.score-cell {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.score-cell:nth-child(n + 3) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.score-team-heading {
  display: flex;
}
.score-team-heading .score-cell-0 {
  flex: 1;
}
.score-team-heading .score-cell:not(.score-cell-0, .score-cell-2) {
  display: none;
}
.scoreboard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  align-content: start;
  gap: var(--ui-gap);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  pointer-events: auto;
  scrollbar-width: thin;
}
.score-team {
  min-width: 0;
}
.score-team-3,
.score-team-0 {
  grid-column: 1 / -1;
}
@media (max-width: 1100px) {
  .score-row {
    grid-template-columns: minmax(0, 1fr) 22px 40px 54px 44px;
  }
  .score-columns .ui-control-icon {
    display: none;
  }
  .score-player .score-cell-1 {
    font-size: 0;
  }
  .score-player .score-cell-1 > .ui-icon {
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .scoreboard {
    --score-height-rows: var(--score-stacked-rows, 16);
    --score-height-teams: var(--score-stacked-teams, 2);
    width: calc(100% - 32px);
    height: min(
      calc(100% - 32px),
      calc(
        74px + var(--score-matchup-height) + var(--panel-padding) * 2 + var(--score-height-rows) * var(--score-row) +
          var(--score-height-teams) * 82px + (var(--score-height-teams) - 1) * var(--ui-gap)
      )
    );
  }
  .scoreboard-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .score-row {
    gap: 6px;
    padding-inline: 10px;
  }
}

/* Fixed CSS sizes; native atlases are baked at 16 px with the actual DPI. */

.diagnostics-window pre {
  font-size: 12px;
}
.capture span {
  font-size: 14px;
}

.scoreboard-content {
  font-size: 14px;
}
.score-cell-1 {
  font-size: 1em;
  text-align: right;
}
.video-filter-defs {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}
.stage.video-adjusted :is(#canvas, .video-calibration) {
  filter: url('#game-video-filter');
}
.video-calibration {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 8px;
  border: 1px solid #899780;
}
.stage.video-preview #launch {
  visibility: hidden;
}
.game-choices {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* Game choices use shared controls; these rules only arrange their content. */
.game-choices button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  flex: 0 0 auto;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.game-choice-label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.servers-window .servers-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  padding: 12px;
}
.servers-table-wrap {
  flex: 1;
  min-height: 120px;
}
.servers-table {
  min-width: 700px;
  table-layout: fixed;
}
.servers-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.servers-table th:first-child {
  width: 45%;
}
.servers-table th:nth-child(2) {
  width: 23%;
}
.servers-table th:nth-child(3) {
  width: 14%;
}
.servers-table th:last-child {
  width: 18%;
}
.servers-table tbody tr {
  cursor: pointer;
}
.servers-note {
  margin: 0;
  min-height: 2.8em;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.4;
}
.servers-note:empty {
  display: none;
}
.servers-window .dialog-actions [data-server-refresh] {
  margin-right: auto;
}

/* Game HUD */
.extended-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: var(--ui-text);
  pointer-events: none;
  font-family: var(--ui-font);
  font-variant-numeric: tabular-nums;
}
.extended-hud[data-active='false'] > :not(.hud-chat-panel):not(.hud-crosshair):not(.hud-scope) {
  display: none;
}
.hud-radar {
  position: absolute;
  left: var(--hud-edge);
  top: var(--hud-edge);
  width: var(--hud-radar-size);
}
.hud-radar canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}
.hud-teams {
  position: absolute;
}
.hud-weapon-picker {
  position: absolute;
  width: 260px;
}
.hud-weapon-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 9px 12px;
  margin-top: 5px;
}
.weapon-icon {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 74px;
  height: 38px;
  color: #b9cad4;
  flex-shrink: 0;
}
.hud-weapon-card-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.hud-weapon-card-text strong {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-weapon-card-text small {
  font-size: 10px;
  color: var(--ui-muted);
}
.hud-weapon-card[data-selected='true'] strong,
.hud-weapon-card[data-selected='true'] .weapon-icon {
  color: var(--ui-accent);
}
.hud-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  overflow: visible;
  transform: translate(-50%, -50%);
  shape-rendering: geometricPrecision;
}
.hud-scope {
  --scope-radius: min(43vw, 43vh);
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hud-scope-mask {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(2 * var(--scope-radius));
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 150vmax #000;
  transform: translate(-50%, -50%);
}
.hud-scope:before,
.hud-scope:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #000;
  transform: translate(-50%, -50%);
}
.hud-scope:before {
  width: 100%;
  height: 1px;
}
.hud-scope:after {
  height: 100%;
  width: 1px;
}
.hud-scope i {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff3434;
  transform: translate(-50%, -50%);
}
.hud-killfeed {
  --killfeed-spacing: 8px;
  position: absolute;
  right: var(--hud-edge);
  top: 90px;
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 280px);
  align-items: flex-end;
}
.hud-kill {
  display: flex;
  align-items: center;
  gap: var(--killfeed-spacing);
  padding: var(--killfeed-spacing);
  font-size: 12px;
}
.hud-kill span {
  white-space: nowrap;
  max-width: 190px;
  text-overflow: ellipsis;
  overflow: hidden;
}
.hud-kill [data-team='1'] {
  color: var(--player-team-t);
}
.hud-kill [data-team='2'] {
  color: var(--player-team-ct);
}
.hud-kill .weapon-icon {
  width: 43px;
  height: 23px;
  opacity: 0.8;
}
.hud-headshot {
  color: var(--ui-accent);
  font-size: 18px;
  font-weight: 400;
}
.hud-status {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  font-size: 13px;
  padding: 7px 14px;
  max-width: 70%;
  text-align: center;
  color: #b6d8e8;
}
.hud-status[data-team='1'] {
  color: var(--player-team-t);
}
.hud-status[data-team='2'] {
  color: var(--player-team-ct);
}

.hud-objectives {
  position: absolute;
  display: flex;
}
.hud-progress {
  position: absolute;
  bottom: 165px;
  left: 50%;
  transform: translateX(-50%);
  width: 310px;
  padding: 15px 18px;
}
.hud-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hud-progress strong {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-progress span {
  font-size: 12px;
  color: var(--ui-accent);
  flex-shrink: 0;
}
.hud-progress-track {
  height: 3px;
  background: #ffffff18;
  margin-top: 12px;
  overflow: hidden;
}
.hud-progress-track i {
  display: block;
  height: 100%;
  background: var(--ui-accent);
}
.hud-pickups {
  position: absolute;
  display: flex;
  flex-direction: column;
}
.hud-chat-panel {
  position: absolute;
  bottom: 212px;
  width: min(435px, calc(100% - 330px));
  display: flex;
  flex-direction: column;
}
.hud-chat-lines {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ui-scrollbar) transparent;
}
.hud-chat-line {
  --chat-line-padding: 4px;
  flex: none;
  color: var(--ui-text);
  padding: var(--chat-line-padding);
  overflow-wrap: anywhere;
}
.hud-chat-line strong {
  font-weight: 600;
  color: var(--ui-accent);
  margin-right: 8px;
}
.hud-chat-composer {
  flex: none;
  pointer-events: auto;
}
.hud-chat-form {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  margin: 0;
}
.hud-chat-form label {
  color: var(--ui-accent);
  font-weight: 600;
}
input.hud-chat-input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  outline: 0 !important;
  padding: 0;
  box-shadow: none !important;
}
.extended-hud[data-chat='true'] .hud-chat-lines {
  pointer-events: auto;
}
.hud-radio {
  --radio-available-height: max(0px, calc(100% - var(--hud-side-bottom)));
  --radio-top-clearance: 256px;
  position: absolute;
  left: var(--hud-edge);
  bottom: var(--hud-side-bottom);
  display: grid;
  width: min(var(--hud-radio-width), calc(100% - 2 * var(--hud-edge)));
  max-height: min(
    var(--radio-available-height),
    max(96px, calc(var(--radio-available-height) - min(var(--radio-top-clearance), 45%)))
  );
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ui-scrollbar) transparent;
  padding: 8px;
  pointer-events: auto;
}
.hud-radio-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 6px 8px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hud-radio-title > .ui-control-icon {
  margin: 0;
}
.hud-radio .hud-radio-choice {
  --button-surface: transparent;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  padding: 3px 6px;
  border: 0;
  border-radius: var(--ui-radius);
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
}
.hud-radio-choice + .hud-radio-choice {
  border-top: 1px solid var(--ui-line);
}
.hud-radio-choice > kbd {
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  box-shadow: none;
  font-size: 10px;
}
.hud-radio-choice > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-height: 650px) {
  .stage {
    --hud-radar-size: 160px;
  }
  .hud-team {
    padding: 8px 11px;
  }
  .hud-chat-panel {
    bottom: 193px;
  }
  .hud-weapon-picker {
    width: 240px;
  }
  .hud-weapon-card {
    min-height: 43px;
    padding: 5px 10px;
  }
  .hud-weapon-card .weapon-icon {
    height: 29px;
  }
  .hud-killfeed {
    --killfeed-spacing: 6px;
    top: 80px;
  }
  .hud-kill {
    font-size: 11px;
  }
  .hud-progress {
    bottom: 150px;
  }
}
@media (max-width: 800px) {
  .stage {
    --hud-radar-size: 148px;
  }
  .hud-teams {
    gap: 138px;
  }
  .hud-team {
    padding: 8px;
    min-width: 62px;
    gap: 2px 5px;
  }
  .hud-team small {
    font-size: 7px;
  }
  .hud-killfeed {
    max-width: calc(100% - 185px);
    top: 97px;
  }
  .hud-kill span {
    max-width: 105px;
  }
  .hud-chat-panel {
    width: calc(100% - 290px);
  }
  .hud-weapon-picker {
    width: 240px;
  }
  .hud-progress {
    bottom: 165px;
    width: 250px;
  }
}
@media (max-width: 600px) {
  .stage {
    --hud-radar-size: 118px;
  }
  .hud-team small {
    display: none;
  }
  .hud-team strong {
    font-size: 18px;
  }
  .hud-team {
    min-width: 49px;
    grid-template-columns: auto 19px;
  }
  .hud-teams {
    gap: 125px;
  }
  .hud-chat-panel {
    width: calc(100% - 28px);
    bottom: 166px;
  }
  .hud-weapon-picker {
    width: 215px;
  }
  .hud-weapon-card .weapon-icon {
    width: 61px;
  }
  .hud-weapon-card-text strong {
    font-size: 10px;
  }
  .hud-killfeed {
    --killfeed-spacing: 6px;
    top: 73px;
    max-width: calc(100% - 145px);
  }
  .hud-kill {
    font-size: 10px;
  }
  .hud-kill span {
    max-width: 76px;
  }
  .hud-kill .weapon-icon {
    width: 30px;
  }
  .hud-progress {
    bottom: 152px;
  }
}
.hud-crosshair rect {
  rx: 0;
}
@media (prefers-reduced-motion: reduce) {
  .extended-hud * {
    animation: none !important;
    transition: none !important;
  }
}
.extended-hud[data-active='true']:not([data-chat='true']):has(> .hud-radio:not([hidden]))
  .hud-chat-panel {
  visibility: hidden;
}
.extended-hud[data-chat='true'] > .hud-radio {
  visibility: hidden;
}
@media (max-height: 650px) and (min-width: 681px), (max-width: 600px) {
  .hud-radio {
    --radio-top-clearance: 220px;
  }
}

/* Tactical interface */
/* XTCS tactical interface. UI pixels stay independent of engine resolution. */
:root {
  font-family: var(--ui-font);
  color: var(--ui-text);
  color-scheme: dark;
}
:focus-visible {
  outline: 2px solid var(--ui-accent) !important;
  outline-offset: 3px;
}
#canvas:focus-visible {
  outline: 0 !important;
}
.main-menu {
  background: #101418;
}
.menu-background {
  filter: none;
  object-position: 50% center;
  transform: none;
}
.menu-topbar {
  position: absolute;
  top: 35px;
  left: 48px;
  right: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font: 700 28px/1 var(--ui-font);
  letter-spacing: 5px;
}
.brand svg {
  width: 40px;
  height: 40px;
  fill: var(--ui-accent);
}
.brand small {
  display: block;
  margin-top: 8px;
  font: 600 9px/1 var(--ui-font);
  letter-spacing: 2.3px;
  color: #b6c0c8;
}
.menu-copy {
  position: absolute;
  left: 6%;
  top: 23%;
  max-width: 720px;
}
.menu-eyebrow {
  color: var(--ui-accent);
  font-size: 11px;
  letter-spacing: 2.6px;
  font-weight: 600;
  margin: 0 0 20px;
}
.menu-copy h1 {
  font: 700 58px/0.98 var(--ui-font);
  letter-spacing: -1.4px;
  margin: 0;
  color: #f3f4ef;
}
.menu-copy h1 em {
  color: var(--ui-accent);
  font-style: normal;
  display: inline-block;
  margin-top: 9px;
}
.menu-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ui-muted);
  margin-top: 24px;
}
.main-menu nav {
  left: 6%;
  bottom: 23%;
  width: 330px;
  gap: 10px;
}
.main-menu nav :is(button, a) {
  position: relative;
  width: 100%;
}
.main-menu nav button:disabled {
  transform: none;
}
.main-menu .menu-gap {
  height: 0;
}
.main-menu:has(#resume:not([hidden])) .menu-copy {
  top: 19%;
}
.main-menu:has(#resume:not([hidden])) .menu-copy h1 {
  font-size: 43px;
}
.main-menu:has(#resume:not([hidden])) .menu-description {
  display: none;
}

.checkbox input {
  width: 17px;
}
.crosshair-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-bottom: 22px;
}
.crosshair-settings label {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
}
.crosshair-settings select {
  display: block;
  width: 100%;
}
@media (max-width: 600px) {
  .crosshair-settings {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

.video-calibration {
  border-color: #ffffff28;
  border-radius: 4px;
}
.loading-window .dialog-body {
  padding-block: 32px;
}
.loading-window progress {
  height: 4px;
  border: 0;
  background: #ffffff10;
  border-radius: 4px;
}
progress::-webkit-progress-bar {
  background: #ffffff10;
}
progress::-webkit-progress-value {
  background: var(--ui-accent);
}
progress::-moz-progress-bar {
  background: var(--ui-accent);
}
.diagnostics-window pre {
  background: #0a1116;
  color: #b0c3ce;
  border: 1px solid var(--ui-line);
  border-radius: 4px;
  padding: 14px;
  font: 12px/1.6 var(--ui-font);
}
.servers-window .servers-body {
  padding: 20px 24px;
  gap: 16px;
}
.servers-note {
  color: var(--ui-muted);
  font-size: 12px;
  min-height: 2.8em;
}
.game-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04090db3;
  font-family: var(--ui-font);
}
.game-panel .game-content {
  position: relative;
  inset: auto;
  margin: auto;
  container-type: normal;
  padding: 30px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px 30px;
}
.game-panel .game-outline,
.game-panel .game-divider {
  display: none;
}
.game-panel .game-choices {
  position: static;
  grid-column: 1;
  grid-row: 3;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px;
  scrollbar-color: var(--ui-scrollbar) transparent;
}
.game-panel .game-choices button {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  text-overflow: clip;
  white-space: normal;
}
.game-panel .game-choices button.game-back {
  margin-top: 8px;
}
.game-panel[data-kind='buy'] .game-choices {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 12px;
}
.game-panel[data-kind='buy'] .game-back {
  grid-column: 1/-1;
}

.tactical-hud {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  font-family: var(--ui-font);
  color: var(--ui-text);
  font-variant-numeric: tabular-nums;
}
.hud-observer {
  display: none;
}
.tactical-hud[data-observer='true'] .hud-vitals,
.tactical-hud[data-observer='true'] .hud-loadout {
  display: none;
}
.tactical-hud[data-observer='true'] .hud-observer {
  display: block;
}
.game-panel .game-choices button {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}
.game-choice-price {
  color: var(--ui-accent);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (min-height: 900px) {
  .menu-copy h1 {
    font-size: 76px;
  }
  .main-menu nav {
    bottom: 25%;
  }
}
@media (max-height: 650px) {
  .menu-topbar {
    top: 23px;
  }
  .menu-copy {
    top: 21%;
  }
  .menu-copy h1 {
    font-size: 44px;
  }
  .menu-description {
    display: none;
  }
  .main-menu nav {
    bottom: 19%;
    gap: 7px;
  }
  .game-panel .game-content {
    padding: 21px;
    gap: 12px 24px;
  }
  .game-panel .game-choices {
    gap: 6px;
  }
}
@media (max-width: 900px) {
  .menu-topbar {
    left: 30px;
    right: 30px;
  }
  .menu-copy h1 {
    font-size: 47px;
  }
  .main-menu nav {
    width: 280px;
  }
  .game-panel .game-content {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 16px 20px;
  }
}
@media (max-width: 600px) {
  .menu-topbar {
    left: 24px;
    right: 24px;
    top: 24px;
  }
  .brand {
    font-size: 23px;
  }
  .brand svg {
    width: 30px;
    height: 30px;
  }
  .menu-copy {
    left: 24px;
    right: 24px;
    top: 24%;
  }
  .menu-copy h1 {
    font-size: 37px;
  }
  .menu-eyebrow {
    font-size: 9px;
  }
  .menu-description {
    font-size: 14px;
  }
  .main-menu nav {
    left: 24px;
    width: calc(100% - 48px);
    bottom: 24%;
  }
  .game-panel .game-content {
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 12px;
  }
  .game-panel[data-kind='buy'] .game-choices {
    display: flex;
  }
}

.menu-disclaimer {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 28px;
  max-width: 900px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #aebbc5;
  text-wrap: pretty;
}

@media (max-width: 600px) {
  .menu-disclaimer {
    left: 24px;
    right: 24px;
  }
}
