@font-face {
  font-family: Quantico;
  src: url('./assets/fonts/Quantico-Regular.ttf?v=c188a3f8f580') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Quantico;
  src: url('./assets/fonts/Quantico-Bold.ttf?v=c188a3f8f580') format('truetype');
  font-weight: 700;
  font-display: swap;
}
html,
button {
  font-family: Quantico, sans-serif;
}

.infection-label { display: block; font-size: 12px; font-weight: 400; line-height: 1.4; }

/* Programmatic menu/dialog focus must not paint the browser's white ring. */
:is(button, dialog, .menu-link):focus {
  outline: none;
}
:root[data-menu-input='keyboard'] :is(button, .menu-link):focus-visible {
  outline: 1px solid #ead47d;
  outline-offset: 2px;
}

html,
body {
  margin: 0;
  overflow: hidden;
  background: #bdcec4;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
  outline: none;
  touch-action: none;
}

#crosshair {
  --spread: 4px;
  z-index: 7;
  transform: translate(var(--aim-x, 0px), var(--aim-y, 0px));
  position: fixed;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

#crosshair i {
  position: absolute;
  width: 2px;
  height: 5px;
  background: #f1ecd4;
  box-shadow: 1px 1px 0 #293832;
}

#crosshair i:nth-child(1) {
  transform: translate(-1px, calc(-5px - var(--spread)));
}
#crosshair i:nth-child(2) {
  transform: translate(-1px, var(--spread));
}
#crosshair i:nth-child(3) {
  width: 5px;
  height: 2px;
  transform: translate(calc(-5px - var(--spread)), -1px);
}
#crosshair i:nth-child(4) {
  width: 5px;
  height: 2px;
  transform: translate(var(--spread), -1px);
}

#hit-confirmation {
  position: fixed;
  z-index: 8;
  left: calc(50% - 20px);
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  pointer-events: none;
  overflow: visible;
  fill: none;
  stroke: #f1ecd4;
  stroke-width: 2;
  filter: drop-shadow(1px 1px 0 #17221c);
}
#hit-confirmation[hidden],
#hit-confirmation[data-kind='hit'] .hit-extra {
  display: none;
}
#hit-confirmation svg { display: block; width: 100%; height: 100%; }
#hit-confirmation[data-kind='head'] { stroke: #ead47d; }
#hit-confirmation[data-kind='kill'] {
  stroke: #f0cd68;
  stroke-width: 3;
}
#hit-confirmation[data-kind=''] > svg:not(.hit-armor) { visibility: hidden; }
#hit-confirmation .hit-armor {
  position: absolute;
  left: 43px;
  top: 11px;
  width: 14px;
  height: 18px;
  stroke: #b7d3d4;
  stroke-width: 1.5;
}
#hit-confirmation:not([data-armor='hit']):not([data-armor='break']) .hit-armor,
#hit-confirmation[data-armor='hit'] .armor-broken,
#hit-confirmation[data-armor='break'] .armor-intact { display: none; }
#hit-confirmation[data-armor='break'] .hit-armor { stroke: #e6f1e6; }

#error {
  position: absolute;
  inset: 40% 0 auto;
  text-align: center;
  color: #263e32;
  font:
    14px Quantico,
    sans-serif;
}

#hud {
  z-index: 10;
  position: fixed;
  right: 28px;
  bottom: 24px;
  color: #e9d480;
  font:
    48px/1.3 Quantico,
    sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 2px 2px #25342c;
  pointer-events: none;
}
#hud > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
#hud > div[hidden] { display: none; }
#weapon-upgrade {
  align-self: center;
  margin-left: .35em;
  padding: .05em .3em;
  border: 1px solid #d9c57c;
  font-size: .4em;
  line-height: 1.4;
}
#hud svg {
  width: 28px;
  height: 46px;
  fill: #cab980;
  filter: drop-shadow(1px 1px #25342c);
}
#hud .grenades {
  margin-bottom: 10px;
  font-size: 40px;
}
#hud .grenades svg {
  fill: #a5ad80;
}

#player-health {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 10;
}
#player-health b {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  color: #c34a3c;
  font:
    bold 34px Quantico,
    sans-serif;
  text-shadow: 2px 2px #27342c;
}
#player-health > div {
  width: min(360px, 42vw);
  height: 14px;
  background: #3d302b;
  border: 2px solid #633a31;
  box-shadow: 2px 2px #17261f;
}
#health-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: #b83c32;
}
#player-health > #armor-track {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  height: 8px;
  background: #263b3c;
  border-color: #768f8d;
}
#armor-track[hidden] { display: none; }
#armor-track svg {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 20px;
  fill: #96bbb7;
  filter: drop-shadow(2px 2px #17261f);
}
#armor-bar { display: block; width: 100%; height: 100%; background: #96bbb7; }
#player-health > #vehicle-integrity {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  height: 7px;
  background: #3e382b;
  border-color: #9c8757;
}
#vehicle-integrity[hidden] { display: none; }
#vehicle-integrity svg {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #d8bb75;
}
#vehicle-integrity-bar { display: block; height: 100%; background: #d8bb75; }
#navigation {
  position: fixed;
  right: 28px;
  top: 24px;
  z-index: 10;
  color: #e9d480;
  font:
    24px/1.5 Quantico,
    sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 2px 2px #25342c;
  pointer-events: none;
}
#navigation > div:first-child {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  font-size: 30px;
}
#navigation svg {
  width: 32px;
  height: 32px;
}
#coordinates {
  font-size: clamp(12px, 1.6vw, 22px);
  max-inline-size: min(360px, calc(50vw - 28px));
  overflow-wrap: anywhere;
}
#scope {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
#scope[hidden],
#respawn[hidden],
#loadout[hidden],
#death-screen[hidden] {
  display: none;
}
.scope-lens {
  overflow: hidden;
  width: 80vmin;
  height: 80vmin;
  border-radius: 50%;
  border: 4px solid #111713;
  box-shadow: 0 0 0 100vmax #0b100d;
  background: radial-gradient(circle, transparent 48%, #17211b66 100%);
}
.scope-lens svg {
  width: 100%;
  height: 100%;
  transform: translate(var(--aim-x, 0px), var(--aim-y, 0px));
}

#damage-ring {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  background: radial-gradient(
    ellipse,
    transparent 28%,
    #ac18154d 48%,
    #c6221bd9 72%,
    #ed3c30 100%
  );
}
#damage-directions {
  position: fixed;
  left: 50%;
  top: 50%;
  width: clamp(160px, 34vmin, 280px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 11;
}
#damage-directions[hidden] { display: none; }
#damage-directions svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#damage-directions path { fill: none; stroke-linecap: square; }
.damage-direction-shadow { stroke: #101714; stroke-width: 8; }
.damage-direction-arc { stroke: #ee6852; stroke-width: 4; }
#hud .perks {
  gap: 15px;
  margin-bottom: 8px;
  font-size: 28px;
}
#hud .perks span {
  display: flex;
  align-items: center;
  gap: 5px;
}
#hud .perks span[hidden] {
  display: none;
}
#hud .perks b {
  font-weight: normal;
}
#damage-perk svg {
  fill: #c18c65;
}

#crosshair.circle {
  box-sizing: border-box;
  width: calc(var(--spread) * 2);
  height: calc(var(--spread) * 2);
  border: 2px solid #f1ecd4;
  border-radius: 50%;
  margin-left: calc(-1 * var(--spread));
  margin-top: calc(-1 * var(--spread));
  box-shadow: 0 0 1px 1px #293832;
}
#crosshair.circle i {
  display: none;
}
@media (max-width: 700px), (max-height: 420px) {
  #hud {
    font-size: 34px;
    right: 16px;
    bottom: 22px;
  }
  #hud .grenades {
    font-size: 30px;
  }
  #player-health > div {
    width: 32vw;
  }
  #navigation {
    right: 16px;
    top: 12px;
  }
}

.scope-hint {
  position: absolute;
  left: 28px;
  bottom: 32px;
  z-index: 1;
  color: #e9d480;
  font:
    18px Quantico,
    sans-serif;
}

#death-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #640b0b;
  pointer-events: none;
}
#respawn:disabled {
  opacity: 0.65;
  cursor: default;
  color: #b0afa1;
}
#loadout {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: #111b16e8;
}
.loadout-panel {
  width: min(460px, calc(100vw - 32px));
  color: #e9d480;
}
.loadout-panel h1 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 400;
}
.loadout-panel button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #657268;
  background: #252729;
  color: inherit;
  font:
    24px Quantico,
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.loadout-panel button:hover:where(:root[data-menu-pointer='native'] *),
.loadout-panel button.virtual-hover,
.loadout-panel button:focus-visible:where(:root[data-menu-input='keyboard'] *) {
  background: #3d3f41;
  border-color: #c1c29e;
}
.weapon-square {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #1b2821;
  border: 1px solid #536358;
}
#loadout-editor {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #87927b;
  color: #e9d480;
  background: linear-gradient(125deg, #25392d, #101e18);
  font-family: Quantico, sans-serif;
}
#loadout-editor::backdrop {
  background: #08130cbb;
  backdrop-filter: blur(3px);
}
#loadout-editor h1,
#loadout-editor h2,
#loadout-editor h3 {
  margin: 12px 0;
  font-weight: 400;
}
#loadout-editor h1 {
  margin: 0;
  font-size: 36px;
}
#loadout-editor h3 {
  color: #b9b99b;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
#loadout-editor button {
  color: inherit;
  font: inherit;
  background: #202224;
  border: 1px solid #596a58;
  padding: 12px 18px;
  cursor: pointer;
}
#loadout-editor button:hover:where(:root[data-menu-pointer='native'] *),
#loadout-editor
  button:focus-visible:where(:root[data-menu-input='keyboard'] *) {
  border-color: #e4d4a1;
  background: #3d3f41;
}
#loadout-editor button[aria-pressed='true'] {
  border-color: #e4d4a1;
  background: #444644;
  box-shadow: inset 3px 0 #dcc98f;
}
.armory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #53634f;
}
.armory-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.loadout-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loadout-slots button {
  text-align: left;
}
.loadout-slots b,
.loadout-slots span {
  display: block;
}
.loadout-slots span {
  font-size: 13px;
  color: #b9b99b;
  margin-top: 8px;
}
#loadout-editor .armory-workbench > h2 {
  display: inline-block;
  margin: 0 16px 0 0;
  font-size: 26px;
}
.primary-weapons,
[data-grenade-section] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
[data-primary-section],
[data-secondary-section] {
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.weapon-choice-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 8px;
  min-height: 112px;
  transform-origin: top left;
}
.primary-weapons button,
[data-equipment-choices] button {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 112px;
  grid-template-rows: 60px 1fr;
  font-size: 14px;
  line-height: 1.3;
}
.equipped-loadout {
  display: grid;
  gap: 8px;
  margin-top: 0;
}
.equipped-item {
  height: 112px;
  box-sizing: border-box;
  transform-origin: top left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: #202426;
  border: 1px solid #61675b;
}
.armory-details,
[data-grenade-art] {
  min-height: 260px;
  box-sizing: border-box;
  transform-origin: top left;
}
.grenade-stat-row {
  height: 112px;
  margin: 0;
  display: grid;
  place-items: center;
}
[data-grenade-section] {
  gap: 8px;
}
[data-loadout-title] {
  font: 26px Quantico;
  color: #ead47d;
  background: transparent;
  border: 1px solid transparent;
  padding: 0;
  height: 40px;
  box-sizing: border-box;
  width: 100%;
}
[data-loadout-title]:focus {
  outline: none;
  border-bottom-color: #ead47d;
}
.equipped-item > div {
  display: grid;
  grid-template-columns: minmax(100px, 240px) 1fr;
  align-items: center;
  gap: 20px;
}
.equipped-item .weapon-image {
  height: 84px;
}
.equipped-grenade .weapon-image {
  width: min(100%, 240px);
  height: 84px;
  justify-self: center;
}
[data-equipment-picker] {
  box-sizing: border-box;
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 24px;
  color: inherit;
  background: #1c2420;
  border: 1px solid #9b9f85;
  font: inherit;
}
[data-equipment-picker]::backdrop {
  background: #08100cbb;
  backdrop-filter: blur(3px);
}
[data-equipment-picker] section {
  margin-top: 18px;
}
[data-equipment-picker] [hidden] {
  display: none;
}
.grenade-preview .weapon-image {
  display: block;
  width: min(100%, 280px);
  height: 140px;
  margin: 20px auto;
}
.loadout-morph-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}
.loadout-morph-layer > i {
  position: absolute;
  box-sizing: border-box;
  transform-origin: top left;
  background: #202426;
  border: 1px solid #61675b;
}
.armory-details,
.grenade-preview {
  box-sizing: border-box;
  padding: 16px;
  background: #202426;
  border: 1px solid #61675b;
}
.armory-details {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  align-items: center;
  min-height: 260px;
  height: auto;
}
.weapon-preview {
  text-align: center;
}
[data-weapon-preview] {
  width: 100%;
  height: 135px;
}
[data-weapon-preview] canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.weapon-preview h2 {
  margin: 0;
}
.comparison-context {
  min-height: 20px;
  margin-top: 6px;
  color: #c3c9b3;
  font: 14px/20px Quantico;
}
#loadout-editor .weapon-compare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 32px;
  padding: 4px 8px;
  font: 15px Quantico;
  background: transparent;
  border: 1px solid transparent;
}
#loadout-editor .weapon-compare[hidden] {
  display: none;
}
#loadout-editor .weapon-filter {
  width: 164px;
  height: 32px;
  padding: 3px 8px;
  font: 14px Quantico;
  background: #252729;
  border: 1px solid #a99c70;
  color: #ead47d;
  text-align: left;
}
#loadout-editor .weapon-filter::after {
  content: '\25be';
  float: right;
}
.weapon-filter-wrap {
  position: relative;
}
.weapon-filter-choices {
  position: absolute;
  left: 0;
  top: calc(100% + 5px);
  min-width: 190px;
  padding: 4px;
  border: 1px solid #a99c70;
  background: #252729;
  z-index: 20;
  box-shadow: 0 4px 12px #0a141acc;
}
#loadout-editor .weapon-filter-choices button {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  text-align: left;
  font: 14px Quantico;
  border: 1px solid transparent;
}
#loadout-editor .weapon-filter-choices [aria-selected='true'] {
  border-color: #ead47d;
}
#loadout-editor .weapon-filter[hidden] {
  display: none;
}
.equipped-mark {
  position: absolute;
  top: 5px;
  right: 7px;
  color: #f2e2a0;
  font: 11px/16px Quantico;
  border: 1px solid #ad9f67;
  background: #1b2922;
  padding: 0 3px;
}
.weapon-compare > span {
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1px solid #cbb871;
  position: relative;
}
.weapon-compare[aria-checked='true'] > span::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  left: 4px;
  top: 0;
  border: solid #ead47d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.armory-heading [data-armory-level] {
  margin-left: auto;
}
.comparison-mark {
  position: absolute;
  top: 6px;
  left: 8px;
  color: #ead47d;
  font: 13px Quantico;
}
.primary-weapons .comparison-choice {
  border-color: #ead47d;
  box-shadow: inset 3px 0 #ead47d;
}
.weapon-stat {
  margin: 6px 0;
}
.weapon-stat > span {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  color: #cfceb0;
}
.weapon-stat [role='meter'] {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 3px;
}
.weapon-stat i {
  height: 10px;
  background: #101d16;
  border: 1px solid #526149;
}
.weapon-stat i.filled {
  background: #d5c187;
  border-color: #d5c187;
}
[data-loadout-status]:empty {
  display: none;
}
.weapon-image {
  display: block;
  width: 100%;
  height: 42px;
  object-fit: contain;
}
.weapon-choice-art {
  position: relative;
  display: block;
  width: 100%;
}
.art-lock {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.weapon-square .weapon-image {
  height: 100%;
}
.armory-unlocks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
[data-armory-mastery] {
  font-size: 14px;
  color: #bcb486;
}
#loadout-editor :is([data-armory-track-finish], [data-armory-track-attachment],
  [data-armory-track-weapon], [data-armory-track-equipment], [data-armory-track-utility]) {
  padding: 6px 12px;
  font-size: 14px;
}
@media (max-width: 700px) {
  #loadout-editor {
    padding: 16px;
  }
  .armory-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .loadout-slots {
    flex-direction: row;
  }
  #loadout-editor .loadout-slots button {
    flex: 1;
    padding: 10px;
  }
  .loadout-slots span {
    font-size: 11px;
  }
  .equipped-item {
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 8px;
    padding: 10px;
  }
  .equipped-item > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .armory-details {
    gap: 12px;
  }
  #loadout-editor .primary-weapons button {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .weapon-stat i.filled {
    animation: stat-segment-fill 90ms ease-out var(--fill-delay) both;
  }
}
@keyframes stat-segment-fill {
  from {
    background-color: #101d16;
    border-color: #526149;
  }
  to {
    background-color: #d5c187;
    border-color: #d5c187;
  }
}
#film-grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-size: 64px 64px;
  animation: var(--film-static-animation);
}
:root { --film-static-animation: film-static .64s steps(1, end) infinite; }
@keyframes film-static {
  0%, 100% { background-image: var(--film-static-0); }
  12.5% { background-image: var(--film-static-1); }
  25% { background-image: var(--film-static-2); }
  37.5% { background-image: var(--film-static-3); }
  50% { background-image: var(--film-static-4); }
  62.5% { background-image: var(--film-static-5); }
  75% { background-image: var(--film-static-6); }
  87.5% { background-image: var(--film-static-7); }
}
@media (max-width: 480px) {
  .weapon-square {
    width: 56px;
    height: 56px;
  }
  .loadout-panel button {
    font-size: 20px;
    gap: 8px;
  }
}

@media (max-height: 600px) {
  #loadout {
    overflow-y: auto;
    place-items: start center;
  }
  .loadout-panel {
    padding: 20px 0;
  }
}

.menu-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #111b16ed;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
  color: #e9d480;
}
.menu-screen[hidden],
#match-hud[hidden] {
  display: none;
}
.menu-panel {
  width: min(620px, 100%);
  margin: auto;
}
.menu-panel h1 {
  font-size: 36px;
  font-weight: 400;
  margin: 0 0 24px;
}
.menu-panel button,
.home-actions > button,
.pause-heading > button,
dialog button {
  font:
    22px Quantico,
    sans-serif;
  padding: 10px 20px;
  background: #252729;
  border: 1px solid #70706a;
  color: #e9d480;
  cursor: pointer;
}
.menu-panel button:hover:where(:root[data-menu-pointer='native'] *),
.menu-panel button.virtual-hover,
dialog button:hover:where(:root[data-menu-pointer='native'] *) {
  background: #3c3e40;
}
.menu-panel button:disabled {
  opacity: 0.45;
  cursor: default;
}
.title-menu button {
  display: block;
  min-width: 240px;
  text-align: left;
}
.setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.setting-grid label {
  display: grid;
  gap: 5px;
  font-size: 16px;
}
.setting-grid input,
.setting-grid select {
  box-sizing: border-box;
  width: 100%;
  font:
    18px Quantico,
    sans-serif;
  color: #e9d480;
  background: #242628;
  border: 1px solid #63745f;
  padding: 7px;
}
.setting-grid :disabled {
  opacity: 0.4;
}
.check-setting {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.check-setting input {
  width: 22px;
  height: 22px;
}
.menu-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}
#prop-hunt-cover:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: radial-gradient(ellipse at top, #24392d, #0a100d 75%);
}
#match-hud {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font:
    18px Quantico,
    sans-serif;
  color: #ead47d;
  text-shadow: 1px 1px #15251b;
  z-index: 10;
  white-space: nowrap;
}
#match-result table {
  width: 100%;
  text-align: right;
  margin: 20px 0;
  border-collapse: collapse;
}
#match-result td,
#match-result th {
  padding: 3px 10px;
}
#pause-menu button {
  display: block;
  margin: 12px 0;
}
@media (max-height: 800px) {
  .menu-screen {
    place-items: start center;
  }
  .menu-panel h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .setting-grid {
    gap: 8px 16px;
  }
}
@media (min-width: 800px) and (max-height: 800px) {
  .setting-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#boundary-warning {
  position: fixed;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: #ff4940;
  font:
    700 32px Quantico,
    sans-serif;
  text-shadow: 2px 2px #280604;
  pointer-events: none;
}
#boundary-warning[hidden] {
  display: none;
}
.menu-link {
  display: block;
  width: fit-content;
  margin-top: 12px;
  padding: 10px 20px;
  border: 1px solid #70706a;
  background: #252729;
  color: #e9d480;
  font:
    22px Quantico,
    sans-serif;
  text-decoration: none;
}
.menu-link:hover:where(:root[data-menu-pointer='native'] *),
.menu-link.virtual-hover,
.menu-link:focus-visible:where(:root[data-menu-input='keyboard'] *) {
  background: #3c3e40;
}
@media (min-width: 800px) and (max-height: 800px) {
  .setting-grid label {
    font-size: 14px;
    gap: 3px;
  }
  .setting-grid input,
  .setting-grid select {
    font-size: 16px;
    padding: 5px;
  }
}

/* Match presentation shares the existing world render. */
#loadout {
  background: linear-gradient(
    90deg,
    #101a15e8 0%,
    #101a1590 42%,
    transparent 75%
  );
  place-items: center start;
  padding-left: 5vw;
  box-sizing: border-box;
}
.loadout-panel {
  background: #15221cc9;
  padding: 20px;
  border-left: 2px solid #b9bb98;
}
#tour-fade {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: #08100c;
  pointer-events: none;
}
#spawn-countdown {
  position: fixed;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 42;
  color: #ead47d;
  font:
    64px Quantico,
    sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 3px 3px #15251b;
  pointer-events: none;
}
#tour-fade[hidden],
#spawn-countdown[hidden],
#hit-score[hidden],
.medal[hidden],
#scoreboard[hidden] {
  display: none;
}
#match-hud {
  top: 12px;
  font-size: 36px;
  text-align: center;
}
.score-values {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.score-values span {
  background: #14231bb3;
  padding: 1px 6px;
  min-width: 60px;
  font-variant-numeric: tabular-nums;
}
.your-team {
  width: 15px;
  height: 24px;
  display: block;
  box-shadow: 0 0 0 2px #ddd7ba66;
  transform: skewY(-12deg);
}
#match-hud small {
  display: block;
  font-size: 18px;
  color: #d1cfb2;
  line-height: 1;
  white-space: normal;
  max-width: min(680px, calc(100vw - 32px));
  text-wrap: balance;
}
#match-hud small[data-clock-held]::before {
  content: '';
  display: inline-block;
  width: .35em;
  height: .6em;
  margin-right: .35em;
  border-inline: .12em solid currentColor;
  box-sizing: border-box;
}
#hit-score {
  position: fixed;
  left: calc(50% + 45px);
  top: calc(50% + 18px);
  z-index: 12;
  color: #f3d88c;
  font:
    24px Quantico,
    sans-serif;
  font-size: calc(24px * var(--size, 1));
  text-shadow: 2px 2px #202a21;
  pointer-events: none;
  white-space: nowrap;
}
#medals {
  position: fixed;
  left: 50%;
  top: 57%;
  z-index: 12;
  pointer-events: none;
}
.medal {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(var(--slot, 0) * 62px));
  transition: transform 0.25s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font:
    21px Quantico,
    sans-serif;
  color: #f1dfaa;
  text-shadow: 2px 2px #1c2c22;
}
.medal svg {
  width: 54px;
  height: 61px;
}
.medal-emblem {
  filter: drop-shadow(0 3px 2px #111a15);
}
.medal > span {
  padding: 4px 12px 4px 1px;
  background: linear-gradient(90deg, #14231fdd, #14231f00);
}
.rank-icon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}
#scoreboard {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 39;
  width: min(850px, 94vw);
  max-height: 62vh;
  overflow: auto;
  background: #12231be8;
  color: #e9d480;
  border: 1px solid #7d8872;
  font:
    18px Quantico,
    sans-serif;
  pointer-events: none;
}
#scoreboard table,
#match-result table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
#scoreboard td,
#scoreboard th,
#match-result td,
#match-result th {
  padding: 5px 10px;
  text-align: right;
}
#scoreboard td:first-child,
#match-result td:first-child {
  text-align: left;
  border-left: 5px solid var(--team);
}
#match-result th:first-child {
  text-align: left;
  border-left: 5px solid transparent;
}
.your-row {
  background: #c8d0ab20;
}
#match-result .menu-panel {
  width: min(850px, 100%);
}
#match-xp {
  font-size: 26px;
  color: #dfcc90;
}
@media (max-width: 700px) {
  #match-hud {
    font-size: 28px;
  }
  .score-values {
    gap: 10px;
  }
  .score-values span {
    min-width: 38px;
  }
  #scoreboard {
    font-size: 13px;
  }
  #scoreboard td,
  #scoreboard th {
    padding: 4px;
  }
  #loadout {
    padding: 12px;
  }
  #navigation {
    top: 95px;
  }
}
.team-heading th {
  text-align: left !important;
  background: #273c30;
  padding-top: 12px;
  border-top: 2px solid #71806b;
}

#shooter-account[hidden] {
  display: none;
}
#shooter-account {
  margin: 0 0 18px;
}
.cloud-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.title-menu .cloud-actions button {
  font-size: 16px;
  min-width: 0;
  padding: 8px 12px;
}
#shooter-account p {
  font-size: 14px;
  min-height: 1em;
  margin: 6px 0;
}
#account-modal {
  position: relative;
  z-index: 110;
  font-family: Quantico, sans-serif;
}

#account-modal.account-panel {
  position: fixed;
  z-index: 110;
}

[data-career-totals] small,
[data-career-totals] b {
  display: block;
}
[data-career-totals] small {
  color: #c5bb8e;
  font-size: 14px;
}
#calling-card-menu {
  width: min(1260px, calc(100vw - 32px));
  height: min(850px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #777d76;
  background: #171d1e;
  color: #ead17d;
  font-family: Quantico, sans-serif;
}
#calling-card-menu[open] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#calling-card-menu::backdrop {
  background: #090d10d9;
  backdrop-filter: blur(3px);
}
.collection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.collection-heading h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
}
[data-card-count] {
  color: #aeb4a6;
  font-size: 13px;
}
.collection-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 12px;
}
.collection-filters label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #c1bd9d;
}
.collection-filters :is(input, select) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
  background: #25282a;
  border: 1px solid #60675e;
  color: #ead17d;
  font: inherit;
}
.collection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  min-height: 0;
  flex: 1;
}
.collection-browser {
  overflow-y: auto;
  padding: 3px 10px 3px 3px;
  scrollbar-color: #7b806e #222829;
}
[data-card-grid] {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--card-width));
  gap: 10px;
}
#calling-card-menu button {
  color: #ead17d;
  background: #292c2e;
  border: 1px solid #646a61;
  padding: 9px 16px;
  font: inherit;
  cursor: pointer;
}
#calling-card-menu .collection-card {
  position: relative;
  display: block;
  padding: 0;
  min-width: 0;
  width: var(--card-width);
  height: var(--card-height);
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
}
.collection-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-card b,
.collection-card small {
  position: absolute;
  left: 10px;
  max-width: calc(50% - 24px);
  text-shadow: 1px 2px 3px #10171d;
}
.collection-card b {
  top: 5px;
  font-size: 13px;
  line-height: 1.1;
  max-height: 2.2em;
  overflow: hidden;
}
.collection-card small {
  bottom: 5px;
  font-size: 11px;
  color: #dad7c2;
}
#calling-card-menu
  button:is(
    :hover:where(:root[data-menu-pointer='native'] *),
    :focus-visible:where(:root[data-menu-input='keyboard'] *),
    [aria-pressed='true']
  ) {
  border-color: #ebcf76;
  outline-color: #ebcf76;
}
[data-card-detail] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 0 2px 8px;
}
[data-card-detail] h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}
[data-card-player] {
  flex-shrink: 0;
}
[data-card-challenge] {
  margin: 4px 0;
  color: #d4d3bd;
  font-size: 17px;
  line-height: 1.4;
}
[data-card-detail] progress {
  width: 100%;
  height: 8px;
  accent-color: #ddc367;
}
[data-card-progress] {
  color: #b5bba9;
  font-size: 13px;
}
#calling-card-menu button:disabled {
  color: #8d927e;
  cursor: default;
}
@media (max-width: 700px) {
  #calling-card-menu {
    overflow-y: auto;
  }
  .collection-layout {
    display: flex;
    flex-direction: column-reverse;
    min-height: auto;
  }
  .collection-browser,
  [data-card-detail] {
    overflow: visible;
  }
  .collection-filters {
    grid-template-columns: 1fr 1fr;
  }
  .collection-filters label:last-child {
    grid-column: 1 / -1;
  }
}
#rank-notice {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(
    90deg,
    #10201900,
    #172a21f0 15%,
    #172a21f0 85%,
    #10201900
  );
  padding: 16px 48px;
  color: #f5dfa0;
  pointer-events: none;
}
#rank-notice[hidden] {
  display: none;
}
#rank-notice strong,
#rank-notice small {
  display: block;
}
#rank-notice strong {
  font-size: 30px;
}
#rank-notice small {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.rank-flip {
  position: relative;
  width: 70px;
  height: 70px;
  perspective: 200px;
}
.rank-flip span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
}
.rank-flip .rank-icon {
  width: 64px;
  height: 64px;
}
.rank-playing .rank-old {
  animation: rank-out 0.7s 0.35s both;
}
.rank-playing .rank-new {
  animation: rank-in 0.7s 0.35s both;
}
@keyframes rank-out {
  from {
    transform: rotateY(0);
    opacity: 1;
  }
  to {
    transform: rotateY(-180deg);
    opacity: 0;
  }
}
@keyframes rank-in {
  from {
    transform: rotateY(180deg);
    opacity: 0;
  }
  to {
    transform: rotateY(0);
    opacity: 1;
  }
}
#match-result {
  transition: background 0.7s;
  background: #101b16ed;
}
[data-results-stats] {
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.results-fading [data-results-stats] {
  opacity: 0;
  transform: translateY(-18px);
}
#match-result.results-podium {
  background: linear-gradient(0deg, #08110ef0, transparent 60%);
  overflow: hidden;
}
[data-podium] {
  position: absolute;
  left: 0;
  right: 0;
  top: 66%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 12%;
  animation: podium-in 0.7s both;
}
[data-podium][hidden],
[data-results-actions][hidden],
[data-results-stats][hidden] {
  display: none;
}
.podium-player {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: #ead47d;
  border-top: 3px solid var(--team);
  padding-top: 10px;
}
.podium-player strong {
  font-size: 24px;
}
.podium-player small {
  font-size: 16px;
  color: #d1c283;
}
.podium-player span {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.podium-player .rank-icon {
  width: 26px;
  height: 26px;
}
.podium-player i {
  margin: 5px;
}
.podium-player.place-1 {
  transform: translateY(-26px);
  color: #f7d98c;
}
.place-1 > small:first-child {
  letter-spacing: 6px;
  font-size: 23px;
  color: #f7d98c;
}
[data-results-actions] {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  text-align: center;
  animation: podium-in 0.5s both;
}
[data-results-actions] button {
  font:
    20px Quantico,
    sans-serif;
  color: #ead47d;
  background: #252729;
  border: 1px solid #8c9477;
  margin: 5px;
  padding: 10px 22px;
  cursor: pointer;
}
[data-results-actions] button:disabled {
  opacity: 0.4;
  cursor: default;
}
[data-result-error] {
  margin: 0;
}
@keyframes podium-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
body:has(.menu-screen:not([hidden]), #loadout:not([hidden]))
  :is(
    #hud,
    #navigation,
    #player-health,
    #crosshair,
    #hit-confirmation,
    #scope,
    #damage-ring,
    #damage-directions,
    #match-hud,
    #boundary-warning,
    #hit-score,
    #medals
  ) {
  visibility: hidden;
}
@media (max-width: 700px) {
  [data-podium] {
    padding: 0 3%;
    gap: 6px;
  }
  .podium-player strong {
    font-size: 16px;
  }
  .podium-player span {
    font-size: 11px;
  }
  [data-results-actions] button {
    font-size: 16px;
    padding: 9px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rank-playing .rank-old {
    display: none;
  }
  .rank-playing .rank-new,
  [data-podium],
  [data-results-actions] {
    animation: none;
  }
  [data-results-stats] {
    transition: opacity 0.7s;
  }
}

.podium-player {
  grid-row: 1;
}
.podium-player.place-1 {
  grid-column: 2;
}
.podium-player.place-2 {
  grid-column: 1;
}
.podium-player.place-3 {
  grid-column: 3;
}
.results-survival [data-podium] { top: 61%; grid-template-columns: repeat(var(--survivors), minmax(150px, 1fr)); padding: 0 5%; overflow-x: auto; }
.results-survival .player-card { width: 100%; max-width: 320px; box-sizing: border-box; }
.results-survival .player-card-name { font-size: clamp(12px, 1.5vw, 20px); }
.survival-summary { position: absolute; left: 50%; top: 54%; transform: translateX(-50%); color: #ead47d; font: 20px Quantico; text-shadow: 0 2px 3px #000; white-space: nowrap; }
.lobby-open-seat { height: 54px; box-sizing: border-box; border: 1px dashed #899078; display: grid; place-items: center; color: #b4b69c; font: 13px Quantico; }

#shooter-account [hidden] {
  display: none;
}

#scoreboard {
  z-index: 75;
}
[data-results-hint] {
  position: fixed;
  right: 24px;
  top: 47%;
  font:
    18px Quantico,
    sans-serif;
  color: #e9d480;
}
[data-xp-recap] {
  position: fixed;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(580px, 90vw);
  padding: 14px 20px;
  box-sizing: border-box;
  background: #13241bdf;
  border: 1px solid #889078;
  color: #e9d480;
}
[data-xp-recap][hidden],
[data-results-hint][hidden] {
  display: none;
}
[data-xp-rank] {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 160px;
  min-width: 0;
}
[data-xp-rank] strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-xp-rank] svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.xp-progress {
  flex: 1;
  min-width: 0;
}
.xp-track {
  height: 10px;
  background: #071510;
  border: 1px solid #617260;
  margin-bottom: 6px;
  overflow: hidden;
}
[data-xp-fill] {
  display: block;
  height: 100%;
  background: #d9c789;
  transform-origin: left;
}
[data-xp-count],
[data-xp-pending] {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#death-recap {
  position: fixed;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  width: min(680px, 90vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #151615e8;
  color: #e9d480;
  z-index: 43;
  pointer-events: none;
}
#death-recap[hidden] {
  display: none;
}
#death-recap > small {
  grid-column: 1 / -1;
}
@media (min-width: 901px) {
  body:has(#loadout:not([hidden])) #death-recap {
    left: auto;
    right: 5vw;
    top: 50%;
    bottom: auto;
    width: min(600px, 45vw);
    transform: translateY(-50%);
  }
}
[data-xp-pending] {
  flex: 0 0 90px;
  text-align: right;
}
[data-xp-recap] {
  z-index: 3;
  transition:
    top 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s,
    border-color 0.3s;
}
[data-xp-recap].xp-centered {
  top: 48%;
  transform: translate(-50%, -50%) scale(1.18);
  background: #161816f5;
  border-color: #cfbd70;
  box-shadow: 0 15px 80px #0008;
}
[data-xp-recap] > :not([data-xp-promotion]) {
  transition: opacity 0.3s;
}
[data-xp-recap]::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(740px, 85vw);
  height: min(740px, 85vh);
  transform: translate(-50%, -50%) scale(0.8);
  background: radial-gradient(
    circle,
    #080b0afa 0%,
    #080b0ae8 28%,
    #080b0a90 48%,
    transparent 70%
  );
  opacity: 0;
  transition:
    opacity 0.35s,
    transform 0.4s;
  pointer-events: none;
}
[data-xp-recap].xp-promoting::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
[data-xp-promotion] {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(740px, 85vw);
  height: min(740px, 85vh);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
[data-xp-promotion] svg {
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 0 15px #e9d48060);
}
[data-xp-promotion] strong {
  font-size: clamp(22px, 4vw, 36px);
}
[data-xp-recap].xp-promoting {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.xp-promoting > :not([data-xp-promotion]) {
  opacity: 0;
}
.xp-promoting [data-xp-promotion] {
  visibility: visible;
}
.xp-rank-out {
  animation: xp-rank-out 0.7s ease-in both;
}
.xp-rank-in {
  animation: xp-rank-in 2s ease-out both;
}
@keyframes xp-rank-out {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.95);
  }
}
@keyframes xp-rank-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.88);
  }
  20%,
  75% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-xp-recap] {
    transition-duration: 0.1s;
  }
  .xp-rank-out,
  .xp-rank-in {
    animation-timing-function: linear;
  }
}
@media (max-width: 600px) {
  [data-xp-recap] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 10px;
    padding: 10px;
  }
  [data-xp-rank] {
    flex-basis: 100px;
  }
  [data-xp-recap] .xp-progress {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  [data-xp-pending] {
    grid-row: 1;
    grid-column: 2;
  }
  [data-xp-rank] strong {
    font-size: 12px;
  }
  [data-xp-recap].xp-centered {
    transform: translate(-50%, -50%);
  }
  [data-results-hint] {
    right: 12px;
    top: 15%;
    font-size: 14px;
  }
}

/* Home career and pause controls share the game's restrained menu language. */
.home-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(300px, 340px);
  justify-content: space-between;
  gap: 24px clamp(40px, 6vw, 120px);
  width: min(1600px, 100%);
  margin: auto;
  align-items: start;
}
.home-layout .menu-panel {
  width: 100%;
  margin: 0;
}
.home-layout > .title-menu {
  grid-column: 1;
  grid-row: 3;
}
.home-layout > #menu-party-strip {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.home-layout h2 {
  font-weight: 400;
  letter-spacing: 2px;
  margin: 0 0 16px;
}
.home-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}
.home-actions[hidden] {
  display: none;
}
.home-navigation {
  position: relative;
  display: grid;
  --home-tile-height: 54px;
}
.home-heading {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(340px, 100%);
}
.home-heading button {
  font:
    18px Quantico,
    sans-serif;
  padding: 6px 12px;
  border: 1px solid #72716a;
  cursor: pointer;
}
.home-navigation > .home-actions {
  grid-area: 1 / 1;
}
.home-navigation > [hidden] {
  display: none;
}
.home-navigation .home-actions > :is(button, a) {
  height: var(--home-tile-height);
}
#home-mode-options button {
  position: relative;
  text-align: left;
}
#home-mode-options .button-label {
  max-width: calc(100% - 70px);
}
#home-mode-options button:disabled {
  opacity: 1;
  color: #b9b08a;
}
.mode-planned {
  position: absolute;
  z-index: 2;
  right: 16px;
  top: 50%;
  translate: 0 -50%;
  font-size: 11px;
}
.home-nav-swipe {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.home-nav-swipe i {
  position: absolute;
  right: auto;
  overflow: hidden;
  clip-path: inset(0);
  background-image: repeating-linear-gradient(
    66deg,
    transparent 0 6px,
    #f0d87dd9 6px 9px,
    transparent 9px 13px
  );
  background-size: 42px 100%;
  background-repeat: no-repeat;
}
.home-actions button,
.home-actions .menu-link {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}
#career-details [data-career-totals] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
#career-details [data-career-totals] div {
  min-width: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #77736340;
  padding: 4px 0;
}
#career-details {
  grid-column: 2;
  grid-row: 3;
  position: relative;
  top: 0;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #777363;
  background: #181d1fdf;
  display: flex;
  flex-direction: column;
}
#career-details [data-career-totals] { min-height: 0; overflow: auto; overscroll-behavior: contain; margin-bottom: 10px; scrollbar-width: thin; scrollbar-color: #8b8d60 transparent; }
.career-review-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 4px; }
.career-review-actions > button { min-width: 0; margin: 0; font-size: 18px; padding-inline: 10px; }
#career-details > :not([data-career-totals]) { flex-shrink: 0; }
@media (min-width: 1051px) {
  #main-menu #career-details { max-height: max(320px, calc(100dvh - clamp(28px, 6vh, 72px) - clamp(28px, 6vh, 72px) - var(--card-height) - 94px)); }
}
#career-details [data-career-totals] b {
  font-size: 22px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#career-details [data-career-totals] small {
  font-size: 13px;
  line-height: 1.2;
}
#main-menu {
  background: linear-gradient(100deg, #101c17f5, #18291ee8 55%, #18291eb8);
  padding: clamp(28px, 6vh, 72px) clamp(24px, 7vw, 150px);
}
#pause-menu {
  background: #0d1b139e;
}
body:has(#pause-menu:not([hidden])) #world {
  filter: blur(3px);
}
body:has(#pause-menu:not([hidden]))
  :is(#death-screen, #death-recap, #death-actions, #respawn-timer, #stock-banner, #scoreboard) {
  visibility: hidden;
}
#visual-options {
  width: min(640px, 90vw);
  box-sizing: border-box;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  background: #17281e;
  color: #e9d480;
  border: 1px solid #87927b;
  font-family: Quantico, sans-serif;
}
#visual-options::backdrop {
  background: #08130cbb;
  backdrop-filter: blur(3px);
}
#visual-options .menu-panel {
  width: 100%;
}
#visual-options h2 {
  margin-top: 0;
  font-weight: 400;
}
#visual-options input[type='range'] {
  accent-color: #d2be82;
  max-width: 100%;
}
.options-tabs {
  display: flex;
  gap: 12px;
  margin: 0 0 20px;
}
[data-options-section][hidden],
#visual-options button[hidden] {
  display: none;
}
.options-tabs {
  flex-wrap: wrap;
}
#visual-options .options-tabs button {
  flex: 1;
  margin: 0;
  padding: 9px 12px;
  font-size: 16px;
}
#visual-options .menu-actions {
  justify-content: flex-end;
}
#visual-options [data-options-reset] {
  margin-right: auto;
}
#visual-options .priority-action {
  border-color: #ead47d;
  box-shadow: inset 3px 0 #ead47d;
  background-image: linear-gradient(90deg, #ead47d20, transparent 75%);
}
#visual-options output {
  color: #e7d29b;
  font-size: 14px;
}
#visual-options .checkbox-setting {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
#visual-options .checkbox-setting input {
  width: auto;
}
select.virtual-hover,
input.virtual-hover {
  outline: 1px solid #ddcb95;
  outline-offset: 2px;
}
.options-tabs [aria-pressed='true'] {
  border-color: #ddcb95;
  background: #444644;
}
[data-control-bindings] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.control-binding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #526149;
}
.control-binding > span {
  font-size: 14px;
}
#visual-options .control-binding button {
  min-width: 100px;
  padding: 7px 10px;
  font-size: 14px;
  margin: 0;
}
[data-control-status]:empty {
  display: none;
}
#escape-binding-warning {
  width: min(430px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 24px;
  background: #1c2c21;
  color: #e9d480;
  border: 1px solid #cbb87d;
  font:
    17px Quantico,
    sans-serif;
}
#escape-binding-warning::backdrop {
  background: #08130ccc;
}
#escape-binding-warning h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}
#escape-binding-warning button {
  padding: 10px 16px;
  background: #344932;
  color: inherit;
  border: 1px solid #87927b;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 560px) {
  [data-control-bindings] {
    grid-template-columns: 1fr;
  }
}
button,
.menu-link {
  position: relative;
  --button-panel-width: min(72px, 30%);
  --button-value-right: calc(10px + 36px - 5px);
  --button-pulse-duration: 1.8s;
  transition:
    translate 0.18s ease-out,
    border-color 0.18s,
    background-color 0.18s;
}
.button-label {
  display: inline-block;
  position: relative;
  z-index: 1;
  /* A restrained stamped edge keeps the full letterforms readable. */
  text-shadow:
    0 1px 0 #141919,
    1px 2px 0 #14191980;
}
.button-sweep {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Clip the entire moving decoration, including its skew and idle shake. */
  clip-path: inset(0 10px 0 calc(100% - 10px - var(--button-panel-width)));
  pointer-events: none;
  opacity: 1;
}
.button-sweep i {
  position: absolute;
  inset: 0;
  transform: translateX(calc(50% - 10px - var(--button-panel-width) - 24px))
    skewX(24deg) scaleX(1);
  --stroke-width: 7px;
}
.button-sweep::before {
  content: '';
  position: absolute;
  inset: 0 10px 0 auto;
  width: var(--button-panel-width);
  background: rgb(0 0 0 / 68%);
}
.button-sweep i::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -30%;
  width: var(--stroke-width);
  height: 160%;
  background: radial-gradient(circle, currentColor 0.8px, transparent 0.9px) 0
    0 / 2px 2px;
}
.button-sweep i:nth-child(2) {
  --stroke-width: 5px;
}
.button-sweep i:nth-child(3) {
  --stroke-width: 3px;
}
:is(button, .menu-link).button-flair-active {
  translate: none;
  outline: 1px solid #e3cc72;
  outline-offset: -1px;
}
.button-hover-border {
  position: absolute;
  inset: -1px;
  border: 1px solid #e3cc72;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
.button-hovered > .button-hover-border {
  opacity: 1;
  animation: button-border-quiver .32s linear infinite;
}
.button-hovered > .button-label {
  transform: translateY(-1.5px);
  text-shadow: 0 2px 1px #080e0e, 0 4px 5px #050909bb;
}
.button-label { transition: transform .16s ease-out, text-shadow .16s ease-out; }
@keyframes button-border-quiver {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(.45px, -.3px); }
  50% { transform: translate(-.35px, .35px); }
  75% { transform: translate(.2px, .1px); }
}
:root[data-menu-animation='0'] .button-hover-border { animation: none; }
:root[data-menu-animation='0'] .button-hovered > .button-label { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .button-hovered > .button-hover-border { animation: none; }
  .button-hovered > .button-label { transform: none; }
}
:is(button, .menu-link).button-flair-active > .button-sweep i::before {
  animation: button-quiver 2.4s linear infinite;
}
:is(button, .menu-link).button-flair-active
  > :is(.button-label, .button-sweep) {
  animation: button-yellow var(--button-pulse-duration) linear infinite;
}
@keyframes button-quiver {
  0%,
  100% {
    translate: 0 0;
  }
  25% {
    translate: 0.35px -0.25px;
  }
  50% {
    translate: -0.35px 0.25px;
  }
  75% {
    translate: 0.2px 0.15px;
  }
}
@keyframes button-yellow {
  0%,
  29%,
  78%,
  100% {
    color: #ead47d;
  }
  36%,
  44%,
  52% {
    color: #fff0a3;
  }
  40%,
  48%,
  64% {
    color: #efd87c;
  }
}
#menu-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 34px;
  z-index: 10000;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 1px #000);
}
#menu-cursor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #f1d969;
  clip-path: polygon(0 0, 0 91%, 28% 70%, 51% 100%, 70% 88%, 48% 59%, 96% 59%);
}
#menu-cursor.slider-cursor {
  width: 30px;
  height: 16px;
  margin-left: -15px;
  margin-top: -8px;
}
#menu-cursor.slider-cursor::before {
  clip-path: polygon(
    0 50%,
    25% 0,
    25% 35%,
    75% 35%,
    75% 0,
    100% 50%,
    75% 100%,
    75% 65%,
    25% 65%,
    25% 100%
  );
}
#menu-cursor[hidden] {
  display: none;
}
@media (max-width: 950px) {
  .home-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 720px;
  }
  .home-heading {
    grid-row: 1;
  }
  .home-layout > .title-menu {
    grid-row: 2;
  }
  .home-layout > #menu-party-strip {
    grid-column: 1;
    grid-row: 3;
    max-width: 340px;
  }
  #career-details {
    grid-column: 1;
    grid-row: 4;
    top: 0;
    max-width: 340px;
  }
  .home-actions {
    grid-template-columns: 1fr 1fr;
  }
  .home-actions button {
    min-width: 0;
  }
}
@media (max-width: 500px) {
  .home-actions {
    grid-template-columns: 1fr;
  }
  .menu-screen {
    padding: 20px;
  }
}
:root[data-menu-animation='0'] .button-sweep i::before,
:root[data-menu-animation='0'] :is(.button-sweep, .button-label) {
  animation: none !important;
}
:root[data-menu-animation='0'] .button-sweep i {
  visibility: hidden;
}
:root[data-menu-animation='0'] .button-flair-active > .button-sweep i {
  visibility: visible;
  transform: translateX(calc(50% - 30px)) skewX(24deg);
}
:root[data-menu-animation='0']
  .button-flair-active
  > .button-sweep
  i:nth-child(2) {
  transform: translateX(calc(50% - 41px)) skewX(24deg);
}
:root[data-menu-animation='0']
  .button-flair-active
  > .button-sweep
  i:nth-child(3) {
  transform: translateX(calc(50% - 52px)) skewX(24deg);
}
.button-flair-active[aria-pressed='true'] {
  translate: none;
}
:root[data-menu-animation='0'] :is(button, .menu-link) {
  transition: none;
  translate: none !important;
}

.home-title {
  grid-column: 1 / -1;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

/* Shared controls stay neutral; team and calling-card colors belong to player tags. */
body :is(button, a.menu-link, select, input) {
  color: #ead47d;
  background-color: #252729;
  border-color: #72716a;
}
body
  :is(button, a.menu-link):is(
    :hover:where(:root[data-menu-pointer='native'] *),
    :focus-visible:where(:root[data-menu-input='keyboard'] *),
    .virtual-hover
  ):not(:disabled) {
  background-color: #3d3f41;
  border-color: #e3cc72;
}
body :is(button, .menu-link).button-hovered.button-flair-active {
  outline: none;
  border-color: transparent;
}
/* One compact calling-card silhouette for every player identity surface. */
#career-profile {
  margin: 0 0 24px;
}
.player-card {
  position: relative;
  display: grid;
  grid-template-columns: var(--card-badge-size) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 15px;
  align-items: center;
  gap: 0 9px;
  width: var(--card-width);
  max-width: 100%;
  height: var(--card-height);
  box-sizing: border-box;
  padding: 4px 10px;
  border: 2px solid #e0d599;
  box-shadow:
    inset 0 0 0 3px #28352f,
    0 0 0 1px #78877c;
  background-image:
    linear-gradient(90deg, #131b21e6, #131b2180 48%, #131b2100 78%),
    var(--card-art, none),
    linear-gradient(
      125deg,
      #202225 67%,
      var(--ribbon-b) 68%,
      var(--ribbon-a) 82%
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f0d87d;
  text-align: left;
  font-family: Quantico, sans-serif;
}
.player-card .player-card-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--card-name-size);
  line-height: 1.1;
  text-shadow: 1px 1px #171b18;
}
.player-card .player-card-badge {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
.player-card .rank-icon {
  width: var(--card-badge-size);
  height: var(--card-badge-size);
}
.player-card .player-card-rank {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
#scoreboard {
  width: min(1000px, 94vw);
  max-height: 82vh;
  top: 8%;
}
#scoreboard td {
  padding-top: 2px;
  padding-bottom: 2px;
}
#scoreboard.death-teams:not([hidden]) {
  inset: 6vh clamp(20px, 5vw, 100px) auto;
  transform: none;
  width: auto;
  height: auto;
  max-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--card-width) minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: 18px;
  background: none;
  border: 0;
  overflow: visible;
  pointer-events: none;
}
#scoreboard.death-teams > table {
  display: none;
}
.scoreboard-side {
  width: min(100%, calc(var(--card-width) + 244px));
  min-width: 0;
  max-height: 88vh;
  align-self: start;
  overflow: auto;
  pointer-events: auto;
  background: #12231be8;
  border: 1px solid #7d8872;
}
.scoreboard-side[hidden] {
  display: none;
}
.scoreboard-side:nth-last-child(2) {
  grid-column: 1;
  justify-self: start;
}
.scoreboard-side:last-child {
  grid-column: 3;
  justify-self: end;
}
#scoreboard.death-teams table {
  table-layout: fixed;
  width: 100%;
  min-width: calc(var(--card-width) + 216px);
}
.scoreboard-side thead,
#scoreboard.death-board > table > thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #172a21;
}
#scoreboard.death-teams :is(td, th) {
  box-sizing: border-box;
  padding: 4px 6px;
  font-variant-numeric: tabular-nums;
}
#scoreboard.death-teams td {
  font-size: 18px;
}
#scoreboard.death-teams th {
  font-size: 16px;
}
#scoreboard.death-teams :is(td, th):first-child {
  width: calc(100% - 204px);
}
#scoreboard.death-teams :is(td, th):nth-child(2) {
  width: 72px;
}
#scoreboard.death-teams :is(td, th):nth-child(n + 3) {
  width: 44px;
}
#scoreboard.death-teams .team-heading th {
  width: auto;
  padding: 7px 6px;
}
#scoreboard.death-teams .player-card {
  width: min(var(--card-width), 100%);
  min-width: 0;
}
#scoreboard.death-teams tbody tr:not(.team-heading):nth-child(even) {
  background: #bdc8a51c;
}
#scoreboard.death-teams tbody tr:not(.team-heading):nth-child(odd) {
  background: #07140d45;
}
#scoreboard.death-teams tbody tr.your-row {
  background: #d8d09a2b;
}
#scoreboard:not(.death-teams) {
  pointer-events: auto;
}
#scoreboard {
  overscroll-behavior: contain;
}
#scoreboard.death-teams th:first-child {
  text-align: left;
}
body:has(#scoreboard.death-teams:not([hidden])) #death-recap {
  width: var(--card-width);
  box-sizing: border-box;
  padding: 0;
  gap: 4px;
  grid-template-columns: 1fr;
  background: none;
  bottom: calc(8% + var(--menu-button-height) + 18px);
}
.menu-tile-snapshot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.match-ending-slow {
  animation: match-end-color 2.6s ease-in forwards;
}
@keyframes match-end-color {
  from {
    filter: grayscale(0) brightness(1);
  }
  to {
    filter: grayscale(1) brightness(0.65);
  }
}
.player-card[data-player-career] {
  pointer-events: auto;
}
.player-social-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.player-social-actions button {
  min-height: var(--menu-button-height);
  font-size: 18px;
}
.player-conversation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}
.player-conversation[hidden] {
  display: none;
}
.message-history {
  grid-column: 1 / -1;
  max-height: 160px;
  overflow-y: auto;
}
.message-history p {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.message-history b {
  display: block;
  color: #ead47d;
  font-size: 14px;
}
.message-history span {
  color: #f4f3e8;
  font-size: 16px;
  white-space: pre-wrap;
}
.message-input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  height: var(--menu-button-height);
  padding: 10px 14px;
  border: 1px solid #777463;
  background: #252729;
  color: #f4f3e8;
  font: 18px Quantico;
}
.message-input::placeholder {
  color: #ead47d;
}
.podium-player .player-card {
  margin: 8px 0;
}
#world.match-frozen {
  filter: grayscale(1) brightness(0.65);
}
#match-ending {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-content: center;
  justify-items: center;
  pointer-events: none;
  color: #efd582;
  text-align: center;
  background: #15171944;
}
#match-ending[hidden] {
  display: none;
}
#match-ending h1 {
  font-size: clamp(40px, 7vw, 100px);
  margin: 0;
  letter-spacing: 0.1em;
}
#match-ending h2 {
  font-size: clamp(24px, 3vw, 44px);
  text-transform: uppercase;
}

.friend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.friend-row button {
  font-size: 16px;
  padding: 5px 10px;
}

#account-modal :is(button, input) {
  background: #252729;
  color: #ead47d;
  border-color: #72716a;
}
#account-modal
  button:is(
    :hover:where(:root[data-menu-pointer='native'] *),
    :focus-visible:where(:root[data-menu-input='keyboard'] *),
    .virtual-hover
  ) {
  background: #3d3f41;
  border-color: #e3cc72;
}

/* Unified match setup: options replace mode tiles, previews and roster fill the workspace. */
#main-menu.configuring-match :is(#menu-party-strip, #career-details) {
  display: none;
}
#lobby {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
#lobby {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(235px, 0.9fr);
  align-items: start;
  gap: clamp(18px, 2vw, 36px);
}
#lobby[hidden],
#multiplayer-menu[hidden] {
  display: none;
}
#match-settings {
  gap: 12px;
}
.match-setting-rows {
  display: grid;
  gap: 7px;
}
.match-setting {
  position: relative;
  min-width: 0;
}
.match-setting > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  height: auto;
  min-height: 44px;
  text-align: left;
  font-size: 18px;
}
.match-setting > button span {
  color: #c3ba8d;
}
.match-setting > button b {
  font-size: 16px;
  font-weight: 400;
}
.match-setting > button i {
  font: 12px Quantico;
  color: #f0d578;
}
.match-setting > button[aria-expanded='true'] {
  border-color: #ead47d;
}
.match-team-colors {
  display: flex;
  gap: 12px;
}
.match-team-colors label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.match-team-colors input {
  width: 30px;
  height: 24px;
  padding: 0;
  border: 0;
}
[data-lobby-status]:empty,
[data-lobby-code]:empty {
  display: none;
}
.map-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.map-gallery[hidden],
.map-time-choices[hidden] {
  display: none;
}
.map-time-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  height: var(--menu-button-height);
  margin: 0 0 12px;
}
.map-time-choices > button {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 4px;
  font-size: clamp(12px, 1.2vw, 18px);
}
[data-lobby-launch]:is(.lobby-ready, .lobby-unready)::after {
  position: absolute;
  right: var(--button-value-right);
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  z-index: 3;
}
[data-lobby-launch].lobby-ready::after {
  content: '\2713';
  color: #e4f1c3;
  font-weight: 700;
}
[data-lobby-launch].lobby-unready::after {
  content: '\00d7';
  color: #fff0c7;
  text-shadow: 0 1px 2px #20160f;
  font-size: 30px;
  font-weight: 700;
}
.match-locked .search-globe {
  visibility: hidden;
}
.choosing-map .map-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.map-gallery button {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 0;
  width: 100%;
  min-width: 0;
  text-align: left;
  transition: border-color 0.15s;
}
.map-gallery button[aria-pressed='true'] {
  border-color: #ead47d;
}
.map-gallery button[hidden] {
  display: none;
}
.map-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.map-gallery button span {
  position: absolute;
  inset: auto 0 0;
  padding: 16px 10px 6px;
  background: linear-gradient(transparent, #10171cf0);
  font-size: 15px;
}
[data-map-gallery][data-time='midday'] img[data-time='midday'],
[data-map-gallery][data-time='sunset'] img[data-time='sunset'],
[data-map-gallery][data-time='midnight'] img[data-time='midnight'] {
  opacity: 1;
}
[data-map-gallery][data-time='cycle'] img {
  animation: preview-day-cycle 12s linear infinite;
}
[data-map-gallery][data-time='cycle'] img[data-time='sunset'] {
  animation-delay: -8s;
}
[data-map-gallery][data-time='cycle'] img[data-time='midnight'] {
  animation-delay: -4s;
}
@keyframes preview-day-cycle {
  0%,
  25% {
    opacity: 1;
  }
  33%,
  91% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.map-time-button {
  width: 100%;
  margin: 0 0 12px;
  font-size: 18px;
  height: var(--menu-button-height);
}
.lobby-roster-column h2,
[data-map-gallery] > h2 {
  font-size: var(--menu-heading-size);
  line-height: 1.15;
  margin-bottom: 10px;
}
.lobby-roster-column h2 small {
  font-size: inherit;
  white-space: nowrap;
}
[data-lobby-roster] {
  display: grid;
  gap: 12px;
}
.lobby-team {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.lobby-team h3 {
  margin: 0;
  font-size: 14px;
  line-height: 16px;
}
.lobby-player {
  position: relative;
  min-width: 0;
  border-left: 3px solid var(--team);
}
.lobby-player > small {
  position: absolute;
  right: 6px;
  bottom: 3px;
  font-size: 9px;
  text-shadow: 1px 1px #111;
}
@media (max-width: 1150px) {
  #main-menu {
    padding: 26px 30px;
  }
  #lobby {
    grid-template-columns: minmax(175px, 1fr) minmax(205px, 1fr);
    gap: 16px;
  }
}
@media (max-width: 850px) {
  #lobby {
    grid-template-columns: 1fr;
  }
  [data-lobby-roster] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .roster-ffa > .lobby-team {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #lobby {
    grid-column: 1;
    grid-row: 3;
  }
}

#match-settings .match-setting > button {
  padding-right: 86px;
  grid-template-columns: minmax(0, 1fr) auto;
}
#match-settings .match-setting > button > i {
  display: none;
}
#match-settings .match-setting > button > .button-sweep {
  position: absolute;
}
#match-settings .match-setting > button > span {
  padding: 0;
}
#match-settings .match-setting > button > b {
  position: relative;
  z-index: 2;
}
#main-menu.configuring-options #career-details {
  display: none;
}
#visual-options.home-options-panel {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  inset: auto;
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.home-options-panel .options-tabs,
.home-options-panel .options-heading {
  display: none;
}
.home-options-panel form {
  width: 100%;
  max-width: none;
  padding: 0;
}
#main-menu.configuring-match .home-actions {
  grid-template-columns: 1fr;
}
#main-menu.configuring-options .home-actions {
  grid-template-columns: 1fr;
}
@media (max-width: 600px) {
  #visual-options.home-options-panel {
    grid-column: 1;
    grid-row: 3;
  }
}

#match-settings .match-setting > button {
  min-width: 0;
}
.home-options-panel .setting-grid {
  align-items: start;
}

/* Stable anchors and shared dimensions: content length never recenters navigation. */
:root {
  --menu-heading-size: 34px;
  --menu-button-width: 320px;
  --menu-button-height: 54px;
  --card-width: var(--menu-button-width);
  --card-height: var(--menu-button-height);
  --card-name-size: 18px;
  --card-badge-size: 24px;
}
#main-menu {
  display: block;
  scrollbar-gutter: stable;
}
#main-menu[hidden] {
  display: none;
}
#main-menu .home-layout {
  grid-template-columns: var(--menu-button-width) minmax(0, 1fr);
  grid-template-rows: var(--card-height) 54px auto;
  gap: 20px clamp(28px, 4vw, 70px);
  max-width: 1600px;
  margin: 0 auto;
}
#main-menu .home-heading {
  grid-column: 1;
  grid-row: 2;
  width: var(--menu-button-width);
  height: 54px;
}
/* Match setup uses the top edge; an absent search tile leaves no empty row. */
#main-menu.configuring-match {
  --menu-button-height: clamp(40px, 5.78dvh, 54px);
  --card-height: var(--menu-button-height);
  --match-content-top: 140px;
  padding-top: 12px;
  padding-bottom: 12px;
}
#main-menu.configuring-match .home-layout {
  row-gap: 10px;
}
#main-menu.configuring-match:has([data-matchmaking][hidden]) .home-layout {
  grid-template-rows: 0 54px auto;
}
#main-menu.configuring-match:has([data-matchmaking][hidden]) {
  --match-content-top: 86px;
}
@media (min-width: 1051px) {
  #main-menu.configuring-match #match-settings {
    max-height: calc(100dvh - var(--match-content-top) - 12px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    padding: 10px;
    margin: -10px;
    width: calc(100% + 20px);
    box-sizing: border-box;
  }
}
@media (min-width: 1051px) and (max-height: 800px) {
  #main-menu.configuring-match {
    --menu-button-height: 40px;
  }
  #main-menu.configuring-match #match-settings {
    gap: 8px;
  }
  #main-menu.configuring-match .match-setting-rows {
    gap: 4px;
  }
}
#main-menu.configuring-match
  :is(.lobby-roster-column > h2, [data-map-gallery] > h2) {
  bottom: calc(100% + 10px + (54px - 1.15em) / 2);
}
#main-menu.configuring-match [data-match-countdown] {
  bottom: calc(100% + 10px + (54px - 1.2em) / 2);
}
#main-menu.configuring-match .lobby-roster-column > [data-lobby-code] {
  bottom: calc(100% + 58px);
}
#main-menu .home-title {
  font-size: var(--menu-heading-size);
  margin: 0;
  white-space: nowrap;
}
#main-menu .title-menu {
  grid-column: 1;
  grid-row: 3;
  width: var(--menu-button-width);
}
#main-menu #menu-party-strip {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  display: flex;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 2px;
  box-sizing: border-box;
}
#menu-party-strip > #career-profile,
#party-panel > .player-card {
  flex: 0 0 var(--card-width);
}
#party-panel {
  display: flex;
  gap: 10px;
  min-width: 0;
}
#party-panel[hidden] {
  display: none;
}
#main-menu #career-details {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  max-width: var(--card-width);
}
#main-menu :is(#lobby, .home-options-panel) {
  grid-column: 2;
  grid-row: 3;
}
#main-menu .home-actions {
  grid-template-columns: 1fr;
}
#main-menu .home-actions > :is(button, a),
#match-settings .match-setting > button {
  height: var(--menu-button-height);
  width: var(--menu-button-width);
  box-sizing: border-box;
}
#match-settings {
  position: relative;
}
.match-setting-rows,
.match-setting-choices {
  grid-area: 1 / 1;
}
.match-setting-rows[hidden],
.match-setting-choices[hidden] {
  display: none;
}
.match-setting-choices button {
  text-align: left;
}
#match-settings .editing-slider {
  background-image: linear-gradient(
    90deg,
    #dcc86a40 var(--setting-fill),
    transparent var(--setting-fill)
  );
  cursor: ew-resize;
  border-color: #ead47d;
}
#match-settings .editing-slider.button-flair-active {
  translate: none;
}
#lobby {
  grid-template-columns: minmax(210px, 1fr) calc(var(--card-width) + 27px);
}
.lobby-roster-column {
  position: relative;
  width: var(--card-width);
  justify-self: end;
  translate: 0 calc(-1 * var(--roster-rise, 0px));
  margin-right: 27px;
  margin-bottom: calc(-1 * var(--roster-rise, 0px));
}
.connection-bars {
  position: absolute;
  left: calc(100% + 7px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: end;
  gap: 2px;
  height: 20px;
  width: 20px;
  color: #838c85;
}
.connection-bars i {
  width: 3px;
  height: 5px;
  background: currentColor;
  opacity: 0.22;
}
.connection-bars i:nth-child(2) {
  height: 10px;
}
.connection-bars i:nth-child(3) {
  height: 15px;
}
.connection-bars i:nth-child(4) {
  height: 20px;
}
.connection-bars[data-bars='1'] {
  color: #e86660;
}
.connection-bars[data-bars='3'] {
  color: #ead47d;
}
.connection-bars[data-bars='4'] {
  color: #83cd8a;
}
.connection-bars[data-bars='1'] i:first-child,
.connection-bars[data-bars='3'] i:not(:last-child),
.connection-bars[data-bars='4'] i {
  opacity: 1;
}
[data-map-gallery] {
  position: relative;
}
.lobby-roster-column > h2,
[data-map-gallery] > h2 {
  position: absolute;
  bottom: calc(100% + 20px + (54px - 1.15em) / 2);
  left: 0;
  margin: 0;
}
.lobby-roster-column > [data-lobby-code] {
  position: absolute;
  right: 0;
  bottom: calc(100% + 68px);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.lobby-team:first-child {
  position: relative;
}
.lobby-team:first-child > h3 {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 0;
}
.lobby-player {
  width: var(--card-width);
  border-left: 0;
}
.lobby-player > small {
  right: 9px;
  bottom: 8px;
  font-size: 10px;
}
#main-menu .home-navigation {
  --home-tile-height: var(--menu-button-height);
}
@media (max-width: 1050px) {
  #main-menu #lobby {
    grid-template-columns: 1fr;
  }
  .lobby-roster-column {
    justify-self: start;
    margin-top: 90px;
  }
  #main-menu [data-lobby-roster] {
    grid-template-columns: 1fr;
  }
  #main-menu .roster-ffa > .lobby-team {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  :root {
    --menu-button-width: min(320px, calc(100vw - 48px));
    --card-width: var(--menu-button-width);
  }
  #main-menu {
    padding: 24px;
  }
  #main-menu .home-layout {
    grid-template-columns: 1fr;
  }
  #main-menu #menu-party-strip {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  #main-menu #career-details {
    grid-column: 1;
    grid-row: 5;
    justify-self: start;
  }
  #main-menu :is(#lobby, .home-options-panel) {
    grid-column: 1;
    grid-row: 4;
  }
  #main-menu [data-map-gallery] {
    margin-top: 72px;
  }
}

#match-settings [data-lobby-launch][hidden] {
  display: none;
}

/* Labels remain military yellow; selected values occupy the dark end panel. */
#match-settings .match-setting > button {
  padding-right: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}
#match-settings .match-setting > button > .button-label {
  color: #ead47d;
}
#match-settings .match-setting > button > b {
  position: absolute;
  right: var(--button-value-right);
  color: #f4f3e8;
  max-width: 155px;
  text-align: right;
}
#career-details [data-career-totals] b {
  color: #f4f3e8;
}
#career-details [data-career-totals] small {
  color: #ead47d;
}
.map-gallery button {
  transform-origin: top left;
}
.map-time-button[hidden] {
  display: none;
}
[data-map-gallery]:not(.choosing-map) .map-gallery {
  position: relative;
  z-index: 1;
}
.map-gallery {
  align-content: start;
}

/* Native settings retain form semantics; every visible control is a shared tile. */
.button-field {
  display: block !important;
  font-size: 0 !important;
  margin: 0;
}
.button-field > :not(button) {
  display: none !important;
}
.field-tile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: var(--menu-button-width);
  height: var(--menu-button-height);
  box-sizing: border-box;
  padding: 10px 14px;
  margin: 0;
  font:
    18px Quantico,
    sans-serif;
  text-align: left;
}
.field-tile > .button-label {
  color: #ead47d;
  font-size: 17px;
}
.field-tile > b {
  color: #f4f3e8;
  font-size: 16px;
  font-weight: 400;
  position: absolute;
  right: var(--button-value-right);
  max-width: 155px;
  text-align: right;
  z-index: 2;
}
.field-tile[data-inline-slider].editing-slider::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(
    90deg,
    #dcc86a55 var(--setting-fill),
    transparent var(--setting-fill)
  );
  pointer-events: none;
}
.field-tile.editing-slider {
  cursor: ew-resize;
  border-color: #ead47d;
}
.field-tile.editing-slider > .button-sweep {
  visibility: hidden;
}
.options-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
#visual-options .options-heading h2 {
  margin: 0;
}
#visual-options .options-heading button {
  padding: 10px 16px;
}
.field-tile.editing-slider.button-flair-active {
  translate: none;
}
.field-choice-list {
  grid-template-columns: repeat(auto-fit, var(--menu-button-width));
}
#visual-options .setting-grid,
.field-choice-list {
  display: grid;
  align-content: start;
  justify-content: space-between;
  gap: 16px;
}
#visual-options .setting-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--menu-button-width)), var(--menu-button-width)));
}
#visual-options .setting-grid[hidden],
.collection-filters[hidden] {
  display: none;
}
#visual-options .field-tile {
  max-width: 100%;
  padding: 10px 14px;
  font-size: 18px;
}
#visual-options [data-visual-optimize] {
  grid-template-columns: minmax(max-content, 1fr) minmax(0, auto);
}
#visual-options [data-optimization-status] {
  position: relative;
  right: auto;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.field-choice-list button {
  width: var(--menu-button-width);
  height: var(--menu-button-height);
  font-size: 18px;
  padding: 10px 14px;
  text-align: left;
}
.field-choice-list [aria-pressed='true'] {
  border-color: #ead47d;
}
#main-menu .workspace-navigation {
  grid-area: 1 / 1;
}
#main-menu .workspace-navigation[hidden] {
  display: none;
}
#main-menu.configuring-workspace #career-details {
  display: none;
}
#main-menu :is(#loadout-editor, #calling-card-menu).home-workspace {
  display: block;
  position: static;
  grid-column: 2;
  grid-row: 3;
  inset: auto;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  transform-origin: top left;
  overflow: visible;
}
#main-menu .home-workspace:not([open]) {
  display: none;
}
.home-workspace > .armory-heading,
.home-workspace > .collection-heading :is(h1, button) {
  display: none;
}
.home-workspace > .collection-heading {
  display: none;
}
.home-workspace .armory-layout {
  display: block;
}
.home-workspace .equipped-item {
  min-height: 0;
}
.home-workspace [data-picker-gun] {
  margin-top: 8px;
}
.home-workspace [data-picker-back] {
  display: none;
}
.home-workspace .armory-workbench {
  position: relative;
}
.home-workspace [data-loadout-title] {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
}
.home-workspace [data-equipment-picker] > .armory-heading {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 100%;
  height: 40px;
  margin: 0;
}
.home-workspace [data-equipment-picker] section {
  margin-top: 0;
}
.home-workspace [data-equipment-picker] > section {
  min-height: 0;
  max-height: 38dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.home-workspace [data-picker-gun] {
  min-height: 0;
}
.home-workspace .armory-details {
  height: auto;
  min-height: 280px;
  align-items: center;
}
#main-menu.configuring-loadouts #menu-party-strip {
  grid-column: 1;
  grid-row: 1;
  width: var(--card-width);
  max-height: 132px;
  flex-direction: column;
  overflow: auto;
}
#main-menu.configuring-loadouts #party-panel {
  flex-direction: column;
}
#main-menu.configuring-loadouts #menu-party-strip > #career-profile {
  flex-basis: var(--card-height);
}
#main-menu.configuring-loadouts .workspace-navigation {
  max-height: calc(100dvh - 210px);
  overflow-y: auto;
  align-content: start;
}
.home-workspace .armory-unlocks {
  padding-bottom: 14px;
}
.workspace-navigation [data-loadout-slots] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
#main-menu.configuring-loadouts .home-navigation {
  --home-tile-height: 82px;
}
.workspace-navigation [data-loadout-slots] button {
  width: var(--menu-button-width);
  height: 82px;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 19px;
}
.workspace-navigation [data-loadout-slots] button span {
  display: block;
  font-size: 13px;
  color: #f4f3e8;
  margin-top: 5px;
}
.workspace-navigation .collection-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}
.workspace-navigation .collection-filters[hidden] {
  display: none;
}
.workspace-navigation .collection-filters label {
  margin: 0;
}
.workspace-navigation .collection-filters .field-tile {
  width: var(--menu-button-width);
  height: var(--menu-button-height);
  padding: 10px 14px;
}
.workspace-navigation .collection-filters input[type='search'] {
  width: var(--menu-button-width);
  height: var(--menu-button-height);
  box-sizing: border-box;
  font: 18px Quantico;
}
.card-search-field {
  display: block;
  margin: 0;
}
.card-search-field input {
  padding: 10px 14px;
  color: #f4f3e8;
}
.card-search-field input::placeholder {
  color: #ead47d;
  opacity: 1;
}
.workspace-navigation .field-choice-list {
  grid-template-columns: 1fr;
  gap: 10px;
}
.home-workspace .collection-layout {
  grid-template-columns: repeat(auto-fill, var(--card-width));
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: calc(100dvh - 280px);
}
#main-menu #calling-card-menu.home-workspace {
  grid-row: 3;
}
.home-workspace .collection-browser {
  grid-row: 2;
  grid-column: 1 / -1;
  min-height: 0;
  width: calc(100% + 18px);
  padding: 0;
}
.home-workspace [data-card-detail] {
  position: relative;
  grid-row: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--card-width) var(--card-width);
  grid-template-areas: 'tag unlock';
  align-items: start;
  justify-content: start;
  gap: 4px 10px;
  padding: 0;
  overflow: visible;
}
.home-workspace [data-card-detail] h2 {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  font-size: 22px;
  margin: 0;
}
.home-workspace [data-card-player] {
  grid-area: tag;
}
.home-workspace [data-card-unlock] {
  grid-area: unlock;
}
[data-card-unlock] {
  position: relative;
  width: var(--card-width);
  min-height: var(--card-height);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 4px 14px auto;
  gap: 2px;
}
[data-card-unlock] [data-card-count] {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
}
[data-card-unlock] [data-card-challenge] {
  margin: 0;
  font-size: 13px;
  line-height: 15px;
}
[data-card-unlock] progress {
  width: 100%;
  height: 4px;
  margin: 0;
}
[data-card-unlock] [data-card-progress] {
  font-size: 11px;
  line-height: 14px;
}
#calling-card-menu [data-card-track] {
  justify-self: start;
  padding: 5px 12px;
  font: 13px Quantico;
}
#calling-card-menu [data-card-track][hidden] { display: none; }
#calling-card-menu [data-card-track][aria-pressed='true'] { border-color: #d2b968; }
.home-workspace [data-equipment-picker][open] {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - var(--workspace-top, 220px));
  display: grid;
  grid-template-rows: minmax(112px, 1fr) auto;
  gap: 12px;
  overflow-y: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
@media (min-width: 851px) {
  #main-menu.configuring-loadouts {
    --workspace-top: 140px;
  }
  #main-menu.configuring-loadouts .home-layout {
    grid-template-rows: 54px auto;
  }
  #main-menu.configuring-loadouts .home-heading {
    grid-row: 1;
  }
  #main-menu.configuring-loadouts .title-menu,
  #main-menu.configuring-loadouts #loadout-editor.home-workspace {
    grid-row: 2;
  }
  #main-menu.configuring-loadouts .workspace-navigation {
    max-height: calc(100dvh - 140px);
  }
}
.home-workspace:has([data-equipment-picker][open])
  :is(.equipped-loadout, [data-loadout-title], [data-loadout-status]) {
  display: none;
}
@media (max-width: 1150px) {
  .home-workspace [data-card-detail] {
    grid-template-columns: 1fr;
    grid-template-areas: 'tag' 'unlock';
    row-gap: 10px;
  }
  .home-workspace [data-card-unlock] {
    height: auto;
    min-height: var(--card-height);
    grid-template-rows: auto auto 4px 14px auto;
    gap: 4px;
  }
  .home-workspace [data-card-count] {
    position: static;
    font-size: 12px;
    line-height: 16px;
  }
}
@media (max-width: 800px) {
  #main-menu :is(#loadout-editor, #calling-card-menu).home-workspace {
    grid-column: 1;
    grid-row: 4;
  }
}

.title-menu .field-tile {
  display: grid;
}
#main-menu
  .home-workspace:has([data-equipment-picker][open])
  [data-loadout-title] {
  display: none;
}

#main-menu [data-matchmaking] {
  display: contents;
}
#main-menu [data-matchmaking][hidden],
#main-menu:not(.configuring-match) [data-matchmaking] {
  display: none;
}
.home-actions > [data-match-search] {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: var(--menu-button-width);
  height: var(--menu-button-height);
  padding: 10px 52px 10px 14px;
  text-align: left;
  font: 17px Quantico;
  color: #e9dfb4;
  border: 1px solid #63899b;
  background: #254b64;
  animation: lobby-search-pulse 3.4s ease-in-out infinite;
}
[data-match-search]:disabled {
  opacity: 1;
  cursor: default;
}
.room-join-menu [data-room-search] {
  opacity: 1;
  color: #e9dfb4;
  border-color: #63899b;
  background: #254b64;
  animation: lobby-search-pulse 3.4s ease-in-out infinite;
  cursor: default;
}
.room-join-menu [data-room-search].search-empty {
  background: #703b37;
  border-color: #b67d6d;
  animation: none;
}
.search-empty .search-globe {
  animation: none;
  visibility: hidden;
}
.room-join-menu {
  position: relative;
}
:root[data-menu-animation='0'] [data-room-search] {
  animation: none;
}
[data-match-search] .button-sweep::before {
  background: #14364cb3;
}
[data-match-search].match-found {
  color: #e6efc1;
  border-color: #8cab78;
  background: #355b3c;
  animation: none;
}
[data-match-search].match-found .button-sweep::before {
  background: #193b27b3;
}
[data-match-search].match-locked {
  animation: none;
}
[data-match-countdown] {
  position: absolute;
  right: 0;
  bottom: calc(100% + 20px + (54px - 1.2em) / 2);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  padding: 8px 14px;
  border: 1px solid #e3cc72;
  background: #252729;
  box-sizing: border-box;
  white-space: nowrap;
  color: #e9dfb4;
  font: 24px/1.2 Quantico;
}
[data-match-countdown][hidden] {
  display: none;
}
[data-match-time] {
  display: inline-block;
  width: 5ch;
  flex: 0 0 5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.search-globe {
  position: absolute;
  width: 28px;
  height: 28px;
  right: 16px;
  top: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: search-orbit 3s linear infinite;
}
.search-globe i {
  position: absolute;
  inset: -1px 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.search-globe i:nth-child(2) {
  inset: 5px -1px;
}
.search-globe i:nth-child(3) {
  inset: -1px;
  transform: rotateY(65deg);
}
.match-found .search-globe {
  animation-play-state: paused;
}
@keyframes lobby-search-pulse {
  0%,
  100% {
    background-color: #254b64;
  }
  50% {
    background-color: #36667d;
  }
}
.search-dots {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  width: 3ch;
}
.search-dots > span {
  display: block;
  width: max-content;
  clip-path: inset(0 66.666% 0 0);
  animation: search-dots 1.2s step-end infinite;
}
@keyframes search-orbit {
  to {
    transform: rotateY(360deg);
  }
}
@keyframes search-dots {
  0%,
  100% {
    clip-path: inset(0 66.666% 0 0);
  }
  33% {
    clip-path: inset(0 33.333% 0 0);
  }
  66% {
    clip-path: inset(0);
  }
}
.menu-feedback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
  background: #1c3229f5;
  color: #b4ef98;
  font: 20px Quantico;
  pointer-events: none;
}

/* Pause shares the existing tile controls and options workspace. */
#pause-menu {
  place-items: start;
  padding: clamp(28px, 6vh, 72px) clamp(24px, 7vw, 150px);
}
.pause-layout {
  width: 100%;
  display: grid;
  grid-template-columns: var(--menu-button-width) minmax(0, 1fr);
  gap: 24px 64px;
  align-content: start;
}
.pause-heading {
  grid-column: 1 / -1;
  display: flex;
  gap: 24px;
  align-items: center;
}
.pause-heading h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
}
.pause-heading button {
  padding: 8px 14px;
  font:
    18px Quantico,
    sans-serif;
}
.pause-layout > .home-actions {
  grid-column: 1;
  grid-row: 2;
}
#pause-menu #visual-options.home-options-panel {
  grid-column: 2;
  grid-row: 2;
}
#pause-menu .home-actions > :is(button, .menu-link) {
  text-align: left;
  box-sizing: border-box;
  width: var(--menu-button-width);
  height: var(--menu-button-height);
  margin: 0;
}
.ready-mark {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #d86c5e;
}
.ready-mark::before,
.ready-mark::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 3px;
  background: currentColor;
  transform: rotate(45deg);
  transition:
    transform 0.18s ease,
    color 0.18s ease;
}
.ready-mark::after {
  transform: rotate(-45deg);
}
.ready-mark[data-ready='true'] {
  color: #83bd83;
}
.ready-mark[data-ready='true']::before {
  top: 4px;
  left: 2px;
  width: 13px;
  height: 7px;
  background: none;
  border-left: 3px solid;
  border-bottom: 3px solid;
  transform: rotate(-45deg);
}
.ready-mark[data-ready='true']::after {
  transform: scaleX(0);
}
[data-lobby-roster] {
  width: calc(100% + 61px);
  box-sizing: border-box;
  padding: 2px 27px 2px 26px;
  margin-left: -26px;
  max-height: var(--roster-height, calc(100dvh - 180px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
[data-lobby-roster]::-webkit-scrollbar {
  width: 8px;
}
[data-lobby-roster]::-webkit-scrollbar-thumb {
  background: #a99d68;
}
[data-lobby-roster] .lobby-player {
  width: var(--card-width);
  max-width: 100%;
}
@media (max-width: 800px) {
  .pause-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  #pause-menu #visual-options.home-options-panel {
    grid-column: 1;
    grid-row: 3;
  }
}

.lobby-map-column {
  position: relative;
  min-width: 0;
}
#main-menu.configuring-match [data-lobby-actions] {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#main-menu [data-lobby-actions] > button {
  --button-panel-width: 32px;
  --button-value-right: 11px;
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  font-size: clamp(14px, 1.3vw, 20px);
  white-space: nowrap;
  text-align: left;
}
#main-menu [data-lobby-actions] > [data-lobby-launch] { padding-right: 38px; }
@media (max-width: 1050px) {
  [data-match-countdown] {
    font-size: 18px;
  }
}
@media (max-width: 680px) {
  #main-menu.configuring-match [data-lobby-actions] {
    gap: 10px;
    grid-template-columns: 1fr;
  }
  #main-menu [data-lobby-actions] > button {
    --button-panel-width: 40px;
    --button-value-right: 12px;
    padding: 8px 10px;
    font-size: 16px;
  }
  #main-menu [data-lobby-actions] > [data-lobby-launch] {
    padding-right: 40px;
  }
}
#main-menu [data-lobby-actions][hidden] {
  display: none;
}
[data-lobby-launch].lobby-ready,
[data-lobby-launch].lobby-unready {
  color: #f1e9ce;
}
[data-lobby-launch].lobby-ready {
  --ready-tint: #355b3c;
  border-color: #8cab78;
  background: var(--ready-tint);
}
[data-lobby-launch].lobby-unready {
  --ready-tint: #673a35;
  border-color: #b98775;
  background: var(--ready-tint);
}
[data-lobby-launch].lobby-ready .button-sweep::before {
  background: #193b27b3;
}
[data-lobby-launch].lobby-unready .button-sweep::before {
  background: #391f1ab3;
}
.ready-fill {
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  background: var(--ready-tint);
}
.menu-feedback.negative {
  background: #492d28f5;
  color: #f0c0a9;
}

/* Social views reuse the navigation tiles; no connection panel covers the world. */
#multiplayer-menu.social-menu {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  gap: 10px;
  color: #ead47d;
  background: none;
  border: 0;
}
#multiplayer-menu[hidden] {
  display: none;
}
.home-actions > [hidden],
.lobby-roster-column > [data-lobby-code][hidden] {
  display: none;
}
.menu-text-field {
  display: block;
  margin: 0;
  width: 100%;
  min-width: 0;
}
.menu-text-field input {
  display: block;
  width: 100%;
  height: var(--menu-button-height);
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #777463;
  background: #202225e8;
  color: #f4f3e8;
  font: 18px Quantico;
}
.menu-text-field input::placeholder {
  color: #ead47d;
  opacity: 1;
}
.menu-text-field input:focus {
  outline: 1px solid #ead47d;
  outline-offset: -1px;
}
.room-join-menu > p:empty,
.social-menu > p:empty {
  display: none;
}
.social-menu > p,
.room-join-menu > p {
  margin: 0;
  font-size: 15px;
}
#main-menu #multiplayer-menu button,
#pause-menu #multiplayer-menu button {
  width: 100%;
}
.friends-box {
  position: absolute;
  left: calc(100% + 24px);
  top: 0;
  width: var(--menu-button-width);
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #a99d68;
  background: #202225e8;
}
.friends-box > h2 {
  margin: 0 0 10px;
  font: 17px Quantico;
  letter-spacing: 0;
}
[data-friends] {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 490px);
  overflow-y: auto;
}
.friends-empty {
  min-height: 82px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  color: #b8bca8;
  font-size: 16px;
}
#main-menu.showing-friends #career-details {
  display: none;
}
.social-menu button {
  position: relative;
  overflow: hidden;
  border: 1px solid #777463;
  background: #202225e8;
  color: #ead47d;
  font: 18px Quantico;
}
.social-menu .friend-row {
  min-height: 82px;
  box-sizing: border-box;
  padding: 4px 0;
  border-bottom: 1px solid #52614966;
}
.social-menu .friend-row button {
  min-width: 0;
}
.friend-person {
  min-width: 0;
}
.friend-person > button {
  display: block;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-menu .friend-person > button {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 18px;
}
.friend-person small {
  display: block;
  font-size: 13px;
}
.friend-online {
  color: #9bd99a;
}
.friend-offline {
  color: #a5aba5;
}
.friend-actions {
  display: grid;
  gap: 5px;
}
.social-menu .friend-actions button {
  --button-panel-width: 24px;
  min-height: 34px;
  padding: 5px 10px;
  font-size: 15px;
}
.player-card[data-player-career] {
  cursor: pointer;
}
.player-card[data-player-career]:is(
    :focus-visible:where(:root[data-menu-input='keyboard'] *),
    .virtual-hover,
    :hover:where(:root[data-menu-pointer='native'] *)
  ) {
  outline: 1px solid #fff5c1;
  outline-offset: 2px;
}
[data-copy-code] {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 4px;
  margin: 0;
  background: none;
  color: #ead47d;
  border: 1px solid #777463;
}
[data-copy-code] svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
[data-code-status] {
  position: absolute;
  right: 0;
  bottom: 100%;
  font-size: 13px;
  white-space: nowrap;
}
.vote-feedback {
  position: fixed;
  z-index: 110;
  pointer-events: none;
  margin: 0;
  color: #66dc75;
  font: 700 19px Quantico;
  white-space: nowrap;
  text-shadow: 0 1px 3px #102518;
}
dialog.player-career-menu {
  inset: 8vh 4vw auto auto;
  width: min(640px, 84vw);
  max-height: 80dvh;
  padding: 20px;
  border: 1px solid #777463;
  background: #172b26f5;
  color: #ead47d;
}
.player-career-menu::backdrop {
  background: #09151155;
}
.player-career-menu header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 20px;
}
.player-career-menu h2 {
  font-size: var(--menu-heading-size);
  margin: 0;
}
.player-career-menu .player-card {
  width: min(var(--card-width), 100%);
  height: var(--card-height);
  box-sizing: border-box;
}
.public-career-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 220px;
  align-content: start;
  gap: 14px;
  margin: 18px 0;
}
.public-career-totals small {
  display: block;
  font-size: 14px;
  color: #ead47d;
}
.public-career-totals b {
  font-size: 22px;
  color: #f4f3e8;
}
.player-career-menu > p {
  min-height: 1.5em;
  margin: 10px 0 0;
  font-size: 16px;
}
@media (max-width: 680px) {
  .public-career-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lobby-roster-column > [data-lobby-code] {
    font-size: 15px;
  }
}
@media (max-width: 760px) {
  .friends-box {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
  [data-friends] {
    max-height: 40vh;
  }
}
.party-leave-prompt {
  width: min(460px, 82vw);
  padding: 26px;
  border: 1px solid #d4c57d;
  background: #172b26fa;
  color: #ead47d;
  box-shadow: 0 12px 60px #07110bd0;
}
.party-leave-prompt::backdrop {
  background: #07110ba8;
  backdrop-filter: blur(3px);
}
.party-leave-prompt h2 {
  margin: 0 0 12px;
  font: 30px Quantico;
}
.party-leave-prompt p {
  margin: 0 0 24px;
  color: #f4f3e8;
  font-size: 18px;
  line-height: 1.5;
}
.party-leave-prompt nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.party-leave-prompt button {
  min-height: var(--menu-button-height);
  font-size: 18px;
}
.party-leave-prompt button:last-child {
  background: #673a35;
}
:root[data-menu-animation='0'] [data-match-search],
:root[data-menu-animation='0'] .search-globe {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-match-search],
  [data-room-search],
  .search-globe {
    animation: none;
  }
}

.home-actions > [hidden] {
  display: none;
}

#death-actions {
  position: fixed;
  z-index: 42;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(520px, calc(100vw - 36px));
}
#death-actions[hidden],
#respawn-timer[hidden],
#stock-banner[hidden] {
  display: none;
}
#death-actions:has(#death-loadout[hidden]) {
  grid-template-columns: 1fr;
  width: min(250px, calc(100vw - 36px));
}
#death-actions button {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: var(--menu-button-height);
  padding: 8px 14px;
  font: 20px Quantico;
  color: #ead47d;
}
#death-actions .respawn-brackets {
  background: transparent;
  border: 0;
  overflow: visible;
}
.respawn-brackets::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(currentColor, currentColor) left top/26px 3px no-repeat,
    linear-gradient(currentColor, currentColor) left top/3px 14px no-repeat,
    linear-gradient(currentColor, currentColor) right top/26px 3px no-repeat,
    linear-gradient(currentColor, currentColor) right top/3px 14px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom/26px 3px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom/3px 14px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom/26px 3px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom/3px 14px no-repeat;
  animation: respawn-brackets 1.6s ease-in-out infinite alternate;
}
@keyframes respawn-brackets {
  from {
    transform: scaleX(0.98) scaleY(0.97);
  }
  to {
    transform: scaleX(1.02) scaleY(1.03);
  }
}
#death-actions .respawn-queued {
  color: #b5df9e;
}
#respawn-timer {
  position: fixed;
  z-index: 43;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  white-space: nowrap;
  color: #ead47d;
  font: 22px Quantico;
  background: #18231bd9;
  border: 1px solid #a99d68;
  font-variant-numeric: tabular-nums;
  min-width: 160px;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}
#stock-banner {
  position: fixed;
  z-index: 42;
  top: 135px;
  left: 50%;
  transform: translateX(-50%);
  color: #ead47d;
  font: 18px Quantico;
  text-shadow: 1px 2px 3px #080e0a;
  pointer-events: none;
  white-space: nowrap;
}
#scoreboard.death-board {
  top: 172px;
  max-height: calc(100dvh - 400px);
}
#scoreboard.death-board:not(.death-teams) {
  max-height: max(44px, calc(94dvh - 410px));
}
#scoreboard.death-teams:not([hidden]) {
  top: 172px;
  max-height: calc(100dvh - 400px);
}
#scoreboard.death-teams .scoreboard-side {
  max-height: calc(100dvh - 400px);
}
#scoreboard th:first-child {
  text-align: left;
  border-left: 5px solid transparent;
}
body:has(#scoreboard.death-board:not([hidden])) #death-recap {
  bottom: calc(6vh + var(--menu-button-height) + 24px);
}
#loadout-editor.in-match-loadout {
  width: min(1512px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  box-sizing: border-box;
  overflow: auto;
}
#loadout-editor.in-match-loadout::backdrop {
  background: #091511a8;
}
#loadout-editor.in-match-loadout [data-equipment-picker] {
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.score-values > [data-match-score] {
  position: relative;
}
.stock-icons {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 5px;
  height: 22px;
  color: #ead47d;
}
.stock-icons[hidden] {
  display: none;
}
.stock-icons > div {
  display: flex;
  justify-content: end;
  gap: 4px;
  width: 68px;
}
.stock-icons i {
  flex: 0 0 14px;
  height: 20px;
  background: currentColor;
  clip-path: polygon(
    28% 0,
    72% 0,
    80% 25%,
    65% 40%,
    100% 55%,
    100% 100%,
    0 100%,
    0 55%,
    35% 40%,
    20% 25%
  );
}
.stock-icons b {
  font: 14px Quantico;
  min-width: 25px;
  text-align: right;
}
@media (max-width: 1150px) {
  #scoreboard.death-teams:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    left: 16px;
    right: 16px;
  }
  .scoreboard-side:last-child {
    grid-column: 2;
  }
}
@media (max-width: 600px) {
  #death-actions {
    gap: 12px;
  }
  #death-actions button {
    font-size: 16px;
  }
  #scoreboard.death-teams table {
    min-width: 360px;
  }
  #scoreboard.death-teams .player-card {
    --card-width: 220px;
  }
  .stock-icons {
    right: calc(100% + 4px);
  }
  .stock-icons > div {
    width: 44px;
    gap: 2px;
  }
  .stock-icons i {
    flex-basis: 9px;
    height: 15px;
  }
}
:root[data-menu-animation='0'] .respawn-brackets::before {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .respawn-brackets::before {
    animation: none;
  }
}
@media (max-width: 1150px) {
  body:has(#scoreboard.death-board:not([hidden])) #death-recap {
    width: min(680px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding: 0;
    background: none;
  }
  body:has(#scoreboard.death-board:not([hidden])) #death-recap .player-card {
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-height: 650px) {
  #respawn-timer {
    top: 54px;
    font-size: 18px;
    padding: 3px 12px;
  }
  #stock-banner {
    top: 92px;
    font-size: 15px;
  }
  #scoreboard.death-board,
  #scoreboard.death-teams:not([hidden]) {
    top: 120px;
    max-height: max(44px, calc(94dvh - 358px));
  }
  #scoreboard.death-teams .scoreboard-side {
    max-height: max(44px, calc(94dvh - 358px));
  }
  body:has(#death-actions:not([hidden])) #match-hud {
    top: 4px;
    font-size: 26px;
  }
  body:has(#death-actions:not([hidden])) #match-hud small {
    font-size: 14px;
  }
  body:has(#death-actions:not([hidden])) #match-hud .score-values {
    line-height: 1;
  }
}
#world.respawn-preview {
  filter: grayscale(1) brightness(0.82);
}
@media (max-height: 450px) {
  #respawn-timer {
    top: 46px;
  }
  #stock-banner {
    top: 84px;
  }
  #death-actions {
    bottom: 12px;
  }
  #death-actions button {
    height: 40px;
    font-size: 16px;
  }
  #scoreboard.death-board,
  #scoreboard.death-board:not(.death-teams),
  #scoreboard.death-teams:not([hidden]),
  #scoreboard.death-teams .scoreboard-side {
    /* Reserve the timer, recap, action row, borders and gaps at short heights. */
    max-height: max(44px, calc(100dvh - 264px));
  }
  #scoreboard.death-board,
  #scoreboard.death-teams:not([hidden]) {
    top: 108px;
    --card-height: 32px;
    --card-name-size: 14px;
    --card-badge-size: 16px;
  }
  #scoreboard.death-board :is(td, th),
  #scoreboard.death-teams .team-heading th {
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 12px;
    line-height: 1.2;
  }
  #scoreboard.death-board .player-card {
    padding: 2px 8px;
    grid-template-rows: minmax(0, 1fr) 12px;
  }
  #scoreboard.death-board .player-card-rank {
    font-size: 10px;
  }
  body:has(#scoreboard.death-board:not([hidden])) #death-recap {
    bottom: 68px;
    gap: 3px;
    padding: 4px;
    font-size: 12px;
    line-height: 1.2;
    --card-height: 36px;
    --card-name-size: 14px;
    --card-badge-size: 16px;
  }
  body:has(#scoreboard.death-board:not([hidden])) #death-recap .player-card {
    padding: 2px 8px;
    grid-template-rows: minmax(0, 1fr) 12px;
  }
  body:has(#scoreboard.death-board:not([hidden])) #death-recap .player-card-rank {
    font-size: 10px;
  }
  body:has(#scoreboard.death-board:not([hidden])) #death-recap .death-cause {
    margin-top: 0;
  }
  body:has(#scoreboard.death-board:not([hidden])) #death-recap .death-cause svg {
    width: 16px;
    height: 16px;
  }
}
body:has(#world.respawn-preview) #death-recap,
body:has(#world.respawn-preview) #scoreboard {
  visibility: hidden;
}
body:has(#world.respawn-preview) :is(#damage-ring, #damage-directions) {
  visibility: hidden;
}
.weapon-handling {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 10px;
  color: #ead47d;
  font: 14px Quantico;
}
.career-medals-open {
  width: 100%;
  margin: 12px 0 4px;
}
dialog.career-matches {
  width: min(1100px, calc(100vw - 32px));
  height: min(720px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 20px;
  color: #ead47d;
  background: #192a25f5;
  border: 1px solid #b9aa72;
  overflow: hidden;
}
dialog.career-matches[open] { display: flex; flex-direction: column; gap: 12px; }
.career-matches header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.career-matches h2, .career-matches p { margin: 0; }
.career-matches [hidden] { display: none !important; }
.match-review-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 10px; }
.match-review-filters label { display: flex; flex-direction: column; min-width: 0; gap: 5px; font-size: 13px; }
.match-review-filters select { width: 100%; min-width: 0; font: inherit; padding: 8px; color: #ead47d; background: #23372d; border: 1px solid #667965; }
.career-matches nav { display: flex; gap: 8px; flex-wrap: wrap; }
.career-matches nav button[aria-pressed='true'] { border-color: #ead47d; background-color: #4c5036; }
.match-review-context, .career-matches [role='status'] { font-size: 13px; overflow-wrap: anywhere; }
.match-review-body { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8b8d60 transparent; }
.match-review-body table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.match-review-body th { position: sticky; top: 0; background: #23372d; text-align: left; }
.match-review-body :is(th, td) { padding: 9px 12px; border-bottom: 1px solid #485c4c; }
.match-review-body tbody tr:nth-child(even) { background: #ffffff05; }
.match-review-body p { margin-top: 12px; font-size: 13px; }
.match-review-body canvas { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.match-route-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.match-route-controls label { display: flex; flex: 1 1 180px; flex-direction: column; min-width: 0; gap: 5px; font-size: 13px; }
.match-route-controls :is(select, input) { box-sizing: border-box; margin: 0; min-width: 0; width: 100%; }
.match-route-controls select { font: inherit; padding: 8px; color: #ead47d; background: #23372d; border: 1px solid #667965; }
.match-route-controls input { accent-color: #ead47d; }
@media (max-width: 600px) {
  dialog.career-matches { padding: 12px; }
  .match-review-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-review-filters label:first-child { grid-column: 1 / -1; }
}
@media (max-height: 540px) {
  dialog.career-matches[open] { gap: 6px; padding: 10px; }
  .career-matches header h2 { font-size: 22px; }
  .match-review-filters label { gap: 2px; }
  .career-matches nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .career-matches nav button { min-width: 0; height: 38px; padding: 6px; font-size: 16px; }
  .career-matches header button { height: 40px; padding: 6px 14px; font-size: 18px; }
}
dialog.career-medals {
  width: min(960px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  box-sizing: border-box;
  padding: 20px;
  color: #ead47d;
  background: #192a25f5;
  border: 1px solid #b9aa72;
  overflow: hidden;
}
dialog.career-medals[open] {
  display: flex;
  flex-direction: column;
}
.career-medals header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.career-medals h2 {
  margin: 0;
}
.career-medal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.career-medal {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #647266;
  background: #25362e;
  font: 14px/20px Quantico;
}
.career-medal svg {
  display: block;
  width: 48px;
  height: 54px;
}
.career-medal b {
  color: #f4f3e8;
  font-size: 20px;
}
.career-medal.unearned > div {
  opacity: 0.45;
}
.weapon-handling b {
  color: #f4f3e8;
  font-weight: normal;
  margin-left: 3px;
}
.weapon-handling > span {
  white-space: nowrap;
}
.weapon-handling .handling-delta {
  margin-left: 1px;
  font-size: 0.9em;
}
/* Row-sized selection targets remain siblings of the independent build tiles. */
#loadout-editor {
  container: loadout-panel / inline-size;
}
#loadout-editor .equipped-item {
  position: relative;
  isolation: isolate;
  padding: 12px;
  gap: 16px;
}
#loadout-editor .equipped-weapon {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 52%);
}
#loadout-editor .equipped-equipment {
  grid-template-columns: 1fr;
}
#loadout-editor .weapon-row-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  z-index: 0;
}
#loadout-editor .equipped-item > div {
  position: relative;
  z-index: 1;
  min-width: 0;
  pointer-events: none;
}
#loadout-editor
  .equipped-item:has(> .weapon-row-open:is(.virtual-hover, :focus-visible)) {
  border-color: #ead47d;
}
:root[data-menu-pointer='native']
  #loadout-editor
  .equipped-item:has(> .weapon-row-open:hover) {
  border-color: #ead47d;
}
#loadout-editor .equipped-item > .gun-build {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: stretch;
  gap: 8px;
}
#loadout-editor .gun-build button {
  pointer-events: auto;
}
#loadout-editor .skin-button {
  display: grid;
  place-content: center;
  gap: 4px;
  height: 76px;
  min-width: 0;
  padding: 4px;
  font: 15px/20px Quantico;
}
.skin-button b {
  color: #f4f3e8;
  font: 14px/18px Quantico;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skin-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(152px, auto);
  gap: 8px;
  align-content: start;
}
.home-workspace [data-equipment-picker] > [data-finish-section] {
  min-height: min(152px, 38dvh);
}
.skin-choices button {
  display: grid;
  grid-template-rows: 64px 1fr minmax(36px, auto);
  gap: 5px;
  min-width: 0;
  padding: 10px;
  font: 15px Quantico;
}
.skin-choices small {
  color: #b4bca9;
  font: 12px/18px Quantico;
  white-space: normal;
}
.skin-choice-art {
  position: relative;
}
.skin-choice-art .weapon-image {
  width: 100%;
  height: 64px;
  object-fit: contain;
}
.skin-choice-art .art-lock {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
[data-equipment-picker]:has([data-finish-section]:not([hidden]))
  .armory-details {
  grid-template-columns: 1fr;
  min-height: 220px;
}
[data-equipment-picker]:has([data-finish-section]:not([hidden]))
  .comparison-context {
  display: none;
}
.attachment-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
#loadout-editor .attachment-slots button {
  display: grid;
  place-items: center;
  height: 76px;
  min-width: 0;
  padding: 4px;
  font: 28px/1 Quantico;
}
#loadout-editor .attachment-slots .attachment-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
@container loadout-panel (max-width: 720px) {
  #loadout-editor .equipped-weapon {
    grid-template-columns: minmax(110px, 1fr) minmax(310px, 56%);
  }
  #loadout-editor .weapon-summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  #loadout-editor .weapon-summary .weapon-image {
    height: 56px;
  }
  #loadout-editor .equipped-item > .gun-build {
    grid-template-columns: minmax(0, 1fr) 80px;
  }
}
@container loadout-panel (max-width: 540px) {
  #loadout-editor .equipped-weapon {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 184px;
    gap: 10px;
  }
  #loadout-editor .weapon-summary {
    grid-template-columns: minmax(80px, 150px) 1fr;
  }
  #loadout-editor .attachment-slots button,
  #loadout-editor .skin-button {
    height: 64px;
  }
}
.attachment-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 30dvh;
  overflow-y: auto;
}
.attachment-choices button {
  min-height: 156px;
  font-size: 17px;
  display: grid;
  grid-template-rows: 50px minmax(40px, 1fr) 18px;
  gap: 6px;
  padding: 12px;
}
.attachment-choices .attachment-choice-name {
  font-size: 16px;
  line-height: 1.2;
  align-self: center;
}
.attachment-choices button[data-attachment=''] {
  display: block;
}
.attachment-choices span {
  display: block;
  font-size: 24px;
}
.weapon-stat.stat-up > span {
  color: #95c989;
}
.weapon-stat.stat-down > span {
  color: #d17e6b;
}
@media (max-width: 720px) {
  .equipped-item {
    grid-template-columns: minmax(0, 1fr) 180px;
  }
  .attachment-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#hud #streak-hud {
  position: relative;
  gap: 7px;
  margin-bottom: 14px;
  pointer-events: auto;
}
#streak-hud .streak-controls {
  position: absolute;
  right: 0;
  bottom: calc(100% + 5px);
  color: #dac986;
  font: 11px/15px Quantico;
  white-space: pre;
  text-shadow: 1px 1px 2px #101713;
  pointer-events: none;
}
#streak-hud button {
  position: relative;
  width: 83px;
  height: 75px;
  padding: 5px;
  background: #1b2729ed;
  border: 1px solid #637067;
  color: #798078;
  text-shadow: 1px 1px #111;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
#streak-hud button svg {
  width: 37px;
  height: 38px;
  fill: currentColor;
  opacity: 0.6;
}
#streak-hud button span {
  display: block;
  font: 11px Quantico;
  white-space: nowrap;
}
#streak-hud button b {
  position: absolute;
  right: 5px;
  top: 3px;
  font: 11px Quantico;
}
#streak-hud .streak-ready {
  color: #ead681;
  border-color: #b4a56d;
  background: #374638ed;
}
#streak-hud .streak-ready svg {
  opacity: 1;
}
#streak-hud .streak-selected {
  border-color: #fff0ae;
  box-shadow: inset 3px 0 #ead681;
}
@media (max-width: 720px), (max-height: 420px) {
  #hud #streak-hud { gap: 5px; }
  #streak-hud button {
    width: 64px;
    height: 58px;
    padding: 3px;
  }
  #streak-hud button svg { width: 27px; height: 27px; }
  #streak-hud button span { font-size: 9px; }
}
.attachment-choices small {
  display: block;
  color: #a6b0a0;
  font: 12px/18px Quantico;
}
.attachment-choice-art {
  position: relative;
  display: block;
  height: 50px;
}
.attachment-choice-art .art-lock {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-workspace
  [data-equipment-picker][open]:has(.attachment-choices:not([hidden])) {
  display: block;
  overflow: visible;
  max-height: none;
}
.home-workspace
  [data-equipment-picker]:has(.attachment-choices:not([hidden]))
  [data-picker-gun] {
  display: grid;
  grid-template-rows: minmax(100px, 1fr) auto auto;
  gap: 10px;
  height: calc(100dvh - 145px);
  margin: 0;
}
.home-workspace .attachment-choices {
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.home-workspace
  [data-equipment-picker]:has(.attachment-choices:not([hidden]))
  .armory-details {
  height: auto;
  min-height: 304px;
}
#minimap {
  position: fixed;
  right: 28px;
  top: 24px;
  width: 192px;
  height: 192px;
  z-index: 10;
  border: 1px solid #b5aa70;
  box-shadow: 0 2px 9px #10221da6;
  pointer-events: none;
  image-rendering: pixelated;
}
#kill-feed {
  position: fixed;
  top: 228px;
  right: 28px;
  width: min(430px, 45vw);
  z-index: 11;
  pointer-events: none;
  font-size: 13px;
  color: #e4ce80;
  text-shadow: 1px 1px 2px #000;
}
#kill-feed[hidden] { display: none; }
.kill-feed-row {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  padding: 5px 7px;
  margin-top: 3px;
  background: linear-gradient(90deg, transparent, #14201bdd 30%);
  animation: kill-arrival 180ms ease-out;
}
.kill-feed-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kill-feed-row small { max-width: 110px; line-height: 1.1; }
.kill-feed-row { transition: opacity 350ms ease-out; }
.kill-feed-leaving { opacity: 0; }
.kill-feed-row svg, .death-cause svg { width: 26px; height: 22px; fill: currentColor; flex: 0 0 auto; }
.death-cause { display: flex; gap: 8px; align-items: center; justify-content: center; grid-column: 1 / -1; margin-top: 8px; }
#drop-prompt {
  position: fixed;
  left: 50%;
  top: 63%;
  transform: translateX(-50%);
  z-index: 12;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  padding: 7px 14px;
  border: 1px solid #b9a969;
  border-radius: 0;
  background: #18251eee;
  color: #ead47d;
  font: 700 14px/1.4 Quantico, sans-serif;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  cursor: pointer;
}
#drop-prompt:is(:hover, :active, .virtual-hover) {
  border-color: #ead47d;
  background: #26352aee;
}
#drop-prompt[hidden] { display: none; }
[data-xp-sources] {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: #eedb99;
  text-shadow: 0 2px 4px #000;
  transition: opacity .22s;
}
[data-xp-sources][hidden] { display: none; }
[data-xp-sources].xp-source-leaving {
  opacity: 0;
  translate: 0 40px;
  transition: opacity .22s ease-in, translate .22s ease-in;
}
[data-tracked-summary] { display: grid; gap: 6px; margin: 12px 0; color: #e2ce81; }
[data-tracked-summary][hidden] { display: none; }
[data-tracked-summary] b { color: #eee8d2; font-size: 13px; }
[data-tracked-summary] progress { width: 100%; height: 6px; accent-color: #d9c16f; }
.reward-earned b { color: #9bc786; }
[data-xp-goal] { position: absolute; top: calc(100% + 12px); left: 0; width: 100%; text-align: center; color: #b7d8a3; font-size: 14px; }
#reward-picker { box-sizing: border-box; width: min(760px, 90vw); max-height: 80vh; overflow: hidden; background: #172c25; color: #e3ce7e; border: 1px solid #baae75; font: inherit; padding: 20px; }
#reward-picker[open] { display: flex; flex-direction: column; }
#reward-picker::backdrop { background: #0c1819bb; }
#reward-picker header { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 16px; }
#reward-picker h2 { min-width: 0; margin: 0; font-size: 22px; overflow-wrap: anywhere; }
[data-reward-list] { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; min-height: 0; overflow: auto; max-height: 55vh; padding: 14px 3px 3px; scrollbar-gutter: stable; }
[data-reward-list] button { min-height: 54px; padding: 8px 14px; text-align: left; font-size: 15px; }
#reward-picker .reward-choice { display: grid; gap: 7px; padding-right: calc(var(--button-panel-width) + 12px); }
.reward-choice .reward-name { overflow-wrap: anywhere; }
.reward-choice small { color: #d8d7c4; font-size: 12px; }
.reward-choice progress { width: 100%; height: 5px; accent-color: #d9c16f; }
.reward-choice[aria-pressed='true'] { border-color: #ead47d; }
@media (max-width: 600px) { [data-reward-list] { grid-template-columns: 1fr; } }
@keyframes kill-arrival { from { opacity: 0; transform: translateX(12px); } }
@media (max-height: 600px), (max-width: 720px) {
  #kill-feed { top: 173px; right: 14px; font-size: 11px; }
  .kill-feed-row small { display: none; }
}
html[data-menu-animation='0'] .kill-feed-row { animation: none; }
.nemesis-mark {
  position: absolute;
  right: 8px;
  bottom: 4px;
  padding: 4px 8px;
  border: 1px solid #e2aa65;
  color: #ffe0a0;
  background: #782b25ed;
  font: bold 12px/1 Quantico;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 2px #210d0b;
  box-shadow: 0 1px 5px #0008;
  transform: rotate(-3deg);
  pointer-events: none;
}
.killer-stamp { animation: killer-stamp 240ms cubic-bezier(.2,.75,.3,1) both; }
@keyframes killer-stamp {
  from { opacity: 0; transform: scale(1.1) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}
html[data-menu-animation='0'] .killer-stamp { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .kill-feed-row, .killer-stamp { animation: none; }
}
#navigation {
  left: 28px;
  right: auto;
}
@media (max-height: 600px), (max-width: 720px) {
  #minimap {
    top: 14px;
    right: 14px;
    width: 148px;
    height: 148px;
  }
  #navigation {
    top: 14px;
    left: 14px;
  }
}
@media (max-height: 420px) {
  #minimap { width: 110px; height: 110px; }
  #kill-feed {
    top: 104px;
    left: 14px;
    right: auto;
    width: min(240px, 40vw);
  }
}
.attachment-image {
  display: block;
  width: 100%;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}
.home-workspace
  [data-equipment-picker]:has(.attachment-choices:not([hidden]))
  [data-picker-gun] {
  row-gap: 18px;
}
.weapon-handling b.stat-up {
  color: #95c989;
}
.weapon-handling b.stat-down {
  color: #d17e6b;
}
#minimap[hidden],
#hud #streak-hud[hidden] {
  display: none;
}
.home-workspace .attachment-choices {
  align-content: start;
  grid-auto-rows: minmax(156px, auto);
}
.attachment-choices .attachment-image {
  height: 50px;
}
@media (max-height: 650px) {
  .home-workspace
    [data-equipment-picker]:has(.attachment-choices:not([hidden]))
    [data-picker-gun] {
    height: calc(100dvh - 120px);
  }
  .home-workspace
    [data-equipment-picker]:has(.attachment-choices:not([hidden]))
    .armory-details {
    min-height: 250px;
    padding: 10px;
  }
  .home-workspace .weapon-stat {
    margin: 3px 0;
  }
  .home-workspace .weapon-stat > span {
    margin-bottom: 2px;
  }
}
.equipped-utility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 112px;
}
.utility-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  padding: 6px 10px;
  text-align: center;
  border: 1px solid #68705c;
  background: #222728;
}
.utility-slots button {
  min-width: 0;
  padding: 7px 3px;
}
.equipped-utility b {
  grid-column: 1/-1;
  font: 15px Quantico;
}
.equipped-utility svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: #ead47d;
  margin: auto;
}
.equipped-utility small {
  display: block;
  color: #f4f3e8;
  font: 11px Quantico;
  white-space: nowrap;
}
.equipped-utility .unavailable {
  opacity: 0.4;
}
.utility-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.utility-choices svg {
  display: block;
  width: 42px;
  height: 42px;
  fill: #ead47d;
  margin: auto auto 8px;
}
.utility-choices button {
  min-height: 110px;
  font: 16px Quantico;
}
.utility-choices span,
.utility-choices small {
  display: block;
}
.utility-choices small {
  color: #f4f3e8;
  font: 12px Quantico;
  margin-top: 6px;
}
.utility-choice-art {
  position: relative;
  display: block;
  height: 50px;
}
.utility-choice-art .art-lock {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.utility-choices[hidden] {
  display: none;
}
.unlock-reveal {
  position: fixed;
  z-index: 85;
  left: 50%;
  top: 29%;
  transform: translateX(-50%);
  width: min(400px, 82vw);
  pointer-events: none;
}
.unlock-reveal[hidden] { display: none; }
.unlock-card {
  position: relative;
  border: 2px solid #dfbb52;
  background: #14231ff5;
  color: #f0dda0;
  text-align: center;
  padding: 18px 24px;
  box-shadow: inset 0 0 0 2px #554a27, 0 8px 32px #0009, 0 0 18px #ddbc4c30;
  animation: unlock-stamp .38s cubic-bezier(.2,.65,.3,1) both;
  transition: opacity .24s, translate .24s;
}
.unlock-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 3px;
  background: linear-gradient(110deg, #a97d28 15%, #f0ce65 35%, #fff7ca 49%, #ddae38 61%, #fff0aa 80%);
  background-size: 250% 100%;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: unlock-sweep 1.5s ease-out both;
  pointer-events: none;
}
.unlock-card small { display: block; font: 13px Quantico; color: #ebd17c; text-transform: uppercase; letter-spacing: 3px; }
.unlock-card img { display: block; object-fit: contain; width: 100%; height: 120px; margin: 8px auto; }
.unlock-card svg { display: block; width: 110px; height: 120px; margin: 8px auto; fill: #ead47d; }
.unlock-card strong { display: block; font: 24px Quantico; }
.unlock-card > span { display: block; margin-top: 5px; font: 14px Quantico; color: #c4c8b4; }
.unlock-card.unlock-leaving { opacity: 0; translate: 0 -8px; }
@keyframes unlock-stamp {
  0% { opacity: 0; transform: scale(.82); }
  42% { opacity: 1; transform: scale(1.015); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes unlock-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
html[data-menu-animation='0'] .unlock-card,
html[data-menu-animation='0'] .unlock-card::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .unlock-card, .unlock-card::after { animation: none; }
  .unlock-card, [data-xp-sources], [data-xp-sources].xp-source-leaving { transition: none; }
}
[data-utility-section] {
  display: grid;
  gap: 14px;
}
.home-workspace
  [data-equipment-picker][open]:has([data-grenade-section]:not([hidden])) {
  display: block;
  overflow: visible;
  max-height: none;
}
.home-workspace [data-equipment-picker] > [data-grenade-section] {
  max-height: none;
  overflow: visible;
  gap: 18px;
}
.home-workspace
  [data-equipment-picker][open]:has([data-utility-section]:not([hidden])) {
  display: block;
  overflow: visible;
  max-height: none;
}
.home-workspace [data-equipment-picker] > [data-utility-section] {
  max-height: none;
  overflow: visible;
}
.utility-description {
  color: #d5d9c6;
  font-size: 14px;
  min-height: 36px;
  margin: 6px 0;
}
@media (max-width: 680px) {
  #main-menu:has([data-equipment-picker][open] > [data-utility-section]:not([hidden])) {
    padding: 16px 24px;
    overflow: hidden;
  }
  #main-menu:has([data-equipment-picker][open] > [data-utility-section]:not([hidden]))
    :is(#menu-party-strip, .title-menu) {
    display: none;
  }
  #main-menu:has([data-equipment-picker][open] > [data-utility-section]:not([hidden])) .home-layout {
    height: calc(100dvh - 32px);
    margin: 0;
    grid-template-rows: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
  }
  #main-menu:has([data-equipment-picker][open] > [data-utility-section]:not([hidden])) .home-heading {
    grid-row: 1;
    height: 48px;
  }
  #main-menu:has([data-equipment-picker][open] > [data-utility-section]:not([hidden]))
    #loadout-editor.home-workspace {
    grid-row: 2;
    height: 100%;
    min-height: 0;
  }
  #main-menu:has([data-equipment-picker][open] > [data-utility-section]:not([hidden]))
    :is(.armory-layout, .armory-workbench) {
    height: 100%;
    min-height: 0;
  }
  #main-menu .home-workspace [data-equipment-picker][open]:has(> [data-utility-section]:not([hidden])) {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    gap: 12px;
  }
  #main-menu .home-workspace [data-equipment-picker]:has(> [data-utility-section]:not([hidden])) > .armory-heading {
    position: static;
    height: auto;
    margin: 0;
    flex: none;
  }
  #main-menu .home-workspace [data-equipment-picker]:has(> [data-utility-section]:not([hidden])) > .armory-heading h2 {
    margin: 0;
  }
  #main-menu .home-workspace [data-equipment-picker] > [data-utility-section]:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  #main-menu .home-workspace [data-utility-section] .utility-choices {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-content: start;
  }
  #main-menu .home-workspace .utility-description {
    flex: none;
    min-height: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
  }
}
[data-equipment-choices] {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  height: auto;
}
#loadout-editor [data-equipment-choices] button {
  height: 126px;
  padding: 6px 8px;
  grid-template-rows: 60px auto 28px;
  gap: 2px;
}
[data-equipment-choices] small {
  display: block;
  color: #c4c8b4;
  font: 11px Quantico;
}
[data-grenade-section] .grenade-stat-row {
  height: auto;
  min-height: 36px;
  font-size: 14px;
  text-align: center;
}
[data-grenade-art] {
  min-height: 0;
  height: 220px;
  display: grid;
  place-items: center;
}
.grenade-preview .weapon-image {
  margin: 0;
  height: 180px;
}
/* Objective markers remain independent of the score/death/menu layout. */
.flag-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 12; }
.flag-marker { position: absolute; left: 0; top: 0; font: 700 16px Quantico, sans-serif; text-shadow: 0 2px 3px #000, 1px 0 #000; white-space: nowrap; }
.flag-prompt { position: absolute; left: 50%; top: 63%; transform: translateX(-50%); color: #e4cd74; text-shadow: 0 2px 3px #000; font: 700 17px Quantico, sans-serif; }
.flag-prompt i { display: block; height: 4px; margin-top: 6px; background: #e4cd74; transform-origin: left; }
.area-meter { position: absolute; left: 50%; top: 58%; width: 180px; transform: translateX(-50%); text-align: center; color: #dac986; font: 11px/15px Quantico; text-shadow: 1px 1px 2px #101713; }
.area-meter > div { height: 5px; margin-top: 5px; background: #09120dd9; box-shadow: 0 0 0 1px #d5c27b66; }
.area-meter i { display: block; height: 100%; background: #e2cd7b; transform-origin: left; }
.zombie-down { background: radial-gradient(ellipse, transparent 35%, #09120d70); }
.zombie-down-state { position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%); color: #e2cd7b; font: 18px Quantico; text-shadow: 0 2px 3px #000; white-space: nowrap; }
.zombie-self-revive { position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%); width: min(280px, 85vw); min-height: 48px; pointer-events: auto; touch-action: none; }
.zombie-watching { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: min(360px, 90vw); color: #e2cd7b; text-shadow: 0 2px 3px #000; font: 16px Quantico; }
.zombie-watching[hidden] { display: none; }
.zombie-watching span { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zombie-watching button { width: 40px; min-width: 40px; height: 40px; padding: 0; pointer-events: auto; font: 24px Quantico; }
body:has(.zombie-down:not([hidden])) :is(#hud, #player-health, #crosshair, #scope) { visibility: hidden; }
.area-marker { width: 34px; height: 34px; font-variant-numeric: tabular-nums; }
.area-badge { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; background: #102019e6; border-radius: 50%; box-shadow: 0 1px 4px #0009; }
.area-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.area-ring-track { stroke: currentColor; stroke-width: 1; opacity: .4; }
.area-ring-fill { stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.area-label { position: relative; font-size: 16px; }
.area-badge::after { content: ''; position: absolute; inset: -3px; border: 1px solid var(--area-progress, currentColor); border-radius: 50%; opacity: 0; }
.area-marker.is-contested .area-badge::after { animation: objective-contested 1.2s ease-in-out infinite alternate; }
@keyframes objective-contested { from { opacity: .25; } to { opacity: .9; } }
.area-countdown { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); min-width: 5ch; padding-inline: .3em; white-space: nowrap; text-align: center; font-size: 14px; line-height: 18px; background: #102019e6; border: 1px solid #9a9d7866; border-radius: 2px; }
.area-marker.is-next .area-badge { outline: 1px dashed currentColor; outline-offset: 2px; }
.area-countdown[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .area-marker.is-contested .area-badge::after { animation: none; opacity: .8; }
}
/* Controller focus shares the existing hover treatment and stays on its tile. */
.controller-focus:focus {
  outline: 1px solid #e0cd79;
  outline-offset: 3px;
}
.control-devices {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--menu-button-width));
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
#visual-options .control-devices > button {
  width: var(--menu-button-width);
  height: var(--menu-button-height);
  margin: 0;
  text-align: left;
}
[data-control-device-panel][hidden] {
  display: none;
}
.controller-bindings {
  margin-top: 16px;
  margin-bottom: 16px;
}
.controller-keyboard,
.controller-color,
.controller-test {
  width: min(740px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  box-sizing: border-box;
  overflow: auto;
  padding: 20px;
  color: #ead47d;
  background: #1d3028;
  border: 1px solid #afa77b;
}
.controller-keyboard::backdrop,
.controller-color::backdrop,
.controller-test::backdrop {
  background: #08110bcc;
}
.controller-keyboard h2,
.controller-color h2,
.controller-test h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.controller-color {
  width: min(460px, calc(100vw - 24px));
}
.controller-option-actions,
.controller-stick-tests,
.controller-trigger-tests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.controller-option-actions button {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.controller-test { width: min(620px, calc(100vw - 24px)); }
.controller-test .controller-option-actions button { text-align: left; }
.controller-test p { margin: 8px 0 12px; font-size: 14px; }
.controller-stick-tests figure { margin: 0; text-align: center; min-width: 0; }
.controller-stick-plane {
  position: relative;
  width: min(100%, 160px);
  aspect-ratio: 1;
  margin: 8px auto;
  border: 1px solid #8d9777;
  border-radius: 50%;
  background: #13251e;
}
.controller-stick-plane i {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.controller-stick-deadzone { border: 1px solid #8d9777; background: #60735344; }
.controller-stick-raw { width: 12px; height: 12px; border: 2px solid #d1d7d0; }
.controller-stick-output { width: 7px; height: 7px; background: #ead47d; }
.controller-stick-tests output { display: block; font-size: 12px; overflow-wrap: anywhere; }
.controller-test-key { display: flex; justify-content: center; gap: 16px; }
.controller-test-key span:first-child { color: #d1d7d0; }
.controller-trigger-tests label { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.controller-trigger-tests meter { width: 100%; min-width: 0; accent-color: #ead47d; }
.controller-trigger-tests meter::-webkit-meter-bar { background: #13251e; border: 1px solid #68765e; }
.controller-trigger-tests meter::-webkit-meter-optimum-value { background: #ead47d; }
.controller-trigger-tests meter::-moz-meter-bar { background: #ead47d; }
.controller-test button:disabled { opacity: .45; }
.controller-button-tests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 14px 0; }
.controller-button-tests span { min-width: 0; padding: 4px; text-align: center; font-size: 12px; border: 1px solid #68765e; color: #b6b99b; }
.controller-button-tests .pressed { border-color: #ead47d; color: #ead47d; background: #5d6244; }
@media (max-height: 560px) {
  .controller-test { padding: 12px; }
  .controller-test h2 { font-size: 18px; line-height: 22px; margin-bottom: 6px; }
  .controller-test p { font-size: 11px; line-height: 14px; margin: 4px 0 6px; }
  .controller-stick-tests figcaption { font-size: 12px; line-height: 16px; }
  .controller-stick-plane { width: 80px; margin: 4px auto; }
  .controller-stick-tests output { font-size: 10px; line-height: 12px; }
  .controller-button-tests { gap: 3px; margin: 8px 0; }
  .controller-button-tests span { padding: 2px; font-size: 11px; line-height: 14px; }
  .controller-test .controller-option-actions button { min-height: 36px; font-size: 14px; padding: 6px 12px; }
}
.controller-color .setting-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.controller-color .color-preview {
  height: 48px;
  margin-bottom: 14px;
  border: 1px solid #afa77b;
}
.color-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.controller-color button {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.controller-keyboard .keyboard-preview {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 10px;
  font: 20px Quantico, sans-serif;
  color: #ead47d;
  background: #111c17;
  border: 1px solid #7a805f;
  min-height: 48px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.keyboard-caret {
  display: inline-block;
  height: 1em;
  border-left: 2px solid #ead47d;
  vertical-align: -0.1em;
}
.keyboard-selection {
  background: #ead47d44;
}
.keyboard-keys,
.keyboard-row {
  display: grid;
  gap: 6px;
}
.controller-keyboard button {
  width: 100%;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 6px;
  font: 18px Quantico, sans-serif;
  text-align: center;
  color: #ead47d;
  border: 1px solid #7a805f;
  background-color: #263b30;
}
.keyboard-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

/* Replay presents its own camera and identity, without the live player's HUD. */
#final-kill { position: fixed; inset: 0; z-index: 18; pointer-events: none; color: #ead47d; }
#final-kill[hidden], .replay-victim[hidden] { display: none; }
#final-kill h2 { position: absolute; top: 5%; width: 100%; margin: 0; text-align: center; font-size: clamp(20px, 2vw, 30px); text-shadow: 0 2px 4px #000; }
#final-kill [data-replay-card] { position: absolute; left: clamp(16px, 4vw, 64px); top: 50%; transform: translateY(-50%); width: min(320px, 34vw); }
#final-kill [data-replay-labels] { position: absolute; inset: 0; }
.replay-victim {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 0 0 4px #000;
}
#final-kill [data-replay-skip] { position: absolute; right: 4vw; bottom: 5%; width: auto; min-width: 130px; padding: 10px 20px; pointer-events: auto; }
.final-kill-playing :is(#hud, #player-health, #crosshair, #scope, #scoreboard, #match-hud, #navigation, #hit-score, #medals, #damage-ring, #damage-directions, #death-screen, #death-recap, #respawn-timer, #death-actions, #stock-banner) { visibility: hidden !important; }
@media (max-width: 700px) {
  #final-kill [data-replay-card] { top: auto; bottom: 5%; transform: none; width: min(240px, 48vw); }
}
/* Shared military artwork treatment. All overlays are backgrounds: they never
   intercept input or tint the actual controls, typography or weapon previews. */
#main-menu:not(.configuring-match),
#pause-menu:has(#visual-options[open]),
#loadout-editor.in-match-loadout,
#visual-options:not(.home-options-panel),
#loadout-editor:not(.home-workspace) {
  --menu-art: url('./assets/menu/main.webp?v=c188a3f8f580');
  background-color: #101d16;
  background-image:
    radial-gradient(ellipse at 70% 42%, #0000 12%, #010604eb 100%),
    linear-gradient(100deg, #060c0aef, #0b1611c7 58%, #09110d86),
    linear-gradient(#434a46f0, #434a46f0),
    var(--menu-art);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-blend-mode: normal, normal, color, normal;
}
#main-menu.configuring-options,
#pause-menu:has(#visual-options[open]) {
  --menu-art: url('./assets/menu/command.webp?v=c188a3f8f580');
}
#main-menu.configuring-loadouts,
#loadout-editor.in-match-loadout {
  --menu-art: url('./assets/menu/armory.webp?v=c188a3f8f580');
}
/* Native dialogs use the same treatment in the browser top layer. */
#visual-options:not(.home-options-panel) {
  --menu-art: url('./assets/menu/command.webp?v=c188a3f8f580');
}
#loadout-editor:not(.home-workspace) {
  --menu-art: url('./assets/menu/armory.webp?v=c188a3f8f580');
}

/* Background-only static stays behind controls and never intercepts input. */
:is(
  #main-menu:not(.configuring-match),
  #pause-menu:has(#visual-options[open]),
  #visual-options:not(.home-options-panel),
  #loadout-editor:not(.home-workspace)
)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--film-static-0);
  background-size: 192px 128px;
  image-rendering: pixelated;
  /* Keep the signal most apparent over the artwork. */
  mask-image: linear-gradient(100deg, #0003 10%, #0009 48%, #000 84%);
  opacity: var(--menu-grain-strength, .105);
  animation: var(--film-static-animation);
  animation-duration: .48s;
}
body:has(#main-menu:not([hidden]):not(.configuring-match),
  #pause-menu:not([hidden]) #visual-options[open],
  #loadout-editor.in-match-loadout[open]) #film-grain {
  visibility: hidden;
  animation: none;
}
html[data-film-grain='0'] :is(#main-menu, #pause-menu, #visual-options, #loadout-editor)::before {
  display: none;
}
html[data-menu-animation='0'] {
  --film-static-animation: none;
}
@media (prefers-reduced-motion: reduce) {
  :root { --film-static-animation: none; }
}
