/* BLACKLINE / DAY OPERATIONS — original menu, settings and combat system. */
:root {
  --accent: #d7ff3e;
  --white: #f4f3e9;
  --muted: #a8b1ac;
  --panel: #151b1e;
  --ink: #0c1114;
  --line: #ffffff24;
  --safe-x: max(3.5vw, env(safe-area-inset-left));
  --menu-image: url("../assets/ui/combat/compound.webp");
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#app {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

#loader,
#lobby,
#settings,
#page-overlay,
#match-loading {
  overflow: hidden;
}

button {
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}

button:disabled {
  cursor: default;
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.accent-button,
.play-button {
  background: var(--accent);
  color: #111713;
  clip-path: none;
  border-radius: 0;
  font-family: Barlow, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.accent-button:hover,
.play-button:hover {
  background: #e5ff85;
  box-shadow: 0 0 26px #d7ff3e25;
}

.dark-button {
  background: #151c20e6;
  border: 1px solid #ffffff24;
  clip-path: none;
  border-radius: 0;
}

.dark-button:hover {
  background: #293337;
  border-color: #d7ff3e80;
}

.text-button:hover {
  color: var(--accent);
}

body:has(#lobby:not(.hidden)) #render-surface,
body:has(#page-overlay:not(.hidden)):not(.layout-editor) #render-surface {
  background: transparent;
}

body:has(#lobby:not(.hidden)) #game-canvas {
  visibility: hidden;
}

.menu-backdrop {
  position: absolute;
  inset: -35px;
  background: var(--menu-image) 50% 45% / cover;
  filter: blur(24px) saturate(0.65);
  transform: scale(1.06);
  z-index: -2;
  pointer-events: none;
}

#lobby {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: transparent;
  pointer-events: auto;
}

#lobby .lobby-vignette {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #16242a75, #202a2999 45%, #0b1119e8),
    linear-gradient(90deg, #0b141854, transparent 60%);
  pointer-events: none;
}

.lobby-header {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  margin: 0 var(--safe-x);
  height: 90px;
  padding: 0;
  gap: 18px;
  border-bottom: 1px solid #ffffff21;
  flex: none;
  background: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup > svg {
  width: 34px;
  height: 42px;
  color: var(--accent);
}

.brand-lockup > span {
  font:
    700 22px/0.84 Barlow,
    sans-serif;
  letter-spacing: 0.04em;
}

.brand-lockup b {
  display: block;
  font:
    600 10px Rajdhani,
    sans-serif;
  letter-spacing: 0.65em;
  margin-top: 7px;
}

.header-divider {
  height: 32px;
  width: 1px;
  background: #ffffff2a;
  margin: 0 4px;
}

.profile-plate {
  padding: 0;
  gap: 10px;
  background: none;
  clip-path: none;
  border: 0;
  min-width: 130px;
}

.profile-plate .profile-badge {
  display: grid;
  place-items: center;
  width: 37px;
  height: 38px;
  background: var(--accent);
  color: #182017;
  font:
    700 24px Barlow,
    sans-serif;
  border: 0;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%);
}

.profile-plate strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.profile-plate small {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #d4d9d0;
  margin-top: 3px;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #d4dcd2;
}

.session-status i,
.lobby-underbar > span > i,
.build-label i,
.live-chip i {
  width: 5px;
  height: 5px;
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px #d7ff3e55;
}

.currency {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 7px 0 14px;
  position: relative;
  min-width: 115px;
  padding: 0 0 11px;
}

.currency .coin {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-size: 13px;
  border: 1px solid #d7ff3e80;
  color: var(--accent);
  background: none;
  transform: none;
}

.currency b {
  font-size: 20px;
  color: var(--white);
}

.currency small {
  position: absolute;
  left: 29px;
  bottom: 0;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #c0c8bd;
}

.lobby-header .icon-button {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid #ffffff20;
  flex-shrink: 0;
}

.lobby-header .icon-button:hover {
  background: #d7ff3e1f;
  border-color: var(--accent);
}

.lobby-header .icon-button svg {
  width: 19px;
  height: 19px;
}

.lobby-workspace {
  width: min(1300px, 86%);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 20px;
  min-height: 0;
  flex: 1;
}

.lobby-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: #d9ded5;
}

.lobby-section-heading > span:first-child {
  color: var(--accent);
}

.lobby-section-heading i {
  display: inline-block;
  height: 8px;
  border-left: 1px solid #ffffff4a;
  margin: 0 10px;
}

#lobby-nav {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 49px;
  flex: none;
  background: #141b20c7;
  border: 1px solid #ffffff0e;
  margin: 0 0 12px;
  padding: 0;
}

#lobby-nav > button {
  flex: 1;
  padding: 10px 14px;
  margin: 0;
  font:
    600 17px Barlow,
    sans-serif;
  letter-spacing: 0.05em;
  color: #d5dacf;
  position: relative;
  background: none;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
}

#lobby-nav > button.active {
  background: var(--accent);
  color: #172016;
}

#lobby-nav > button:after {
  display: none;
}

#lobby-nav > button:hover:not(.active) {
  background: #ffffff13;
  color: #fff;
}

#lobby-nav > button > span {
  font:
    600 8px Rajdhani,
    sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 14px;
  margin-left: 7px;
  background: #ffffff1a;
  color: inherit;
  position: static;
  vertical-align: middle;
}

#lobby-nav > button > i {
  display: inline-block;
  background: var(--accent);
  width: 4px;
  height: 4px;
  position: relative;
  top: -6px;
  margin-left: 4px;
  border-radius: 50%;
}

.lobby-tiles {
  height: clamp(330px, 54vh, 580px);
  display: grid;
  grid-template-columns: 0.8fr 1.8fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 11px;
  flex: none;
}

.tile-column {
  display: grid;
  gap: 11px;
  min-width: 0;
  min-height: 0;
}

.tile-column-left {
  grid-template-rows: minmax(0, 1.05fr) minmax(0, 1fr);
}

.tile-column-right {
  grid-template-rows: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
}

.lobby-tile {
  position: relative;
  overflow: hidden;
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  isolation: isolate;
  border: 1px solid #ffffff20;
}

.lobby-tile:hover {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.tile-number {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: 8px;
  letter-spacing: 0.16em;
  opacity: 0.65;
}

.lobby-tile > svg {
  width: 37px;
  height: 37px;
  margin: 14px 0 10px;
  opacity: 0.7;
}

.lobby-tile strong {
  font:
    700 clamp(24px, 2.55vw, 38px)/0.95 Barlow,
    sans-serif;
  letter-spacing: 0.01em;
}

.tile-caption {
  font:
    600 8px Rajdhani,
    sans-serif;
  letter-spacing: 0.13em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  gap: 8px;
}

.tile-caption > b {
  font-size: 19px;
  line-height: 0.6;
  font-weight: 500;
}

.light-tile {
  background: #efefe5;
  color: #192324;
}

.light-tile:after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border: 25px solid #d8dcd030;
  right: -85px;
  top: -40px;
  transform: rotate(30deg);
  z-index: -1;
}

.light-tile > svg {
  width: 80px;
  stroke-width: 1.2;
}

.training-tile {
  background: #d7ff3e;
  color: #182218;
}

.training-tile:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 60%, #00000007 60%);
  z-index: -1;
}

.feature-tile {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--accent);
  isolation: isolate;
  min-height: 0;
  box-shadow: 0 8px 40px #050a0c24;
}

.feature-art {
  position: absolute;
  inset: 0;
  background: url("../assets/ui/combat/combat.webp") 50% 45% / cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.feature-tile:hover .feature-art {
  transform: scale(1.025);
}

.feature-tile:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #12202b22 10%,
    #11191f22 25%,
    #0a121bcc 60%,
    #0b1118f7 100%
  );
  z-index: -1;
}

.feature-top {
  position: absolute;
  left: 23px;
  right: 22px;
  top: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #11191de6;
  padding: 8px 10px;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.feature-index {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: white;
  text-shadow: 0 1px 4px #000;
}

.feature-copy {
  position: absolute;
  left: 29px;
  right: 29px;
  bottom: 23px;
}

.feature-kicker {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.feature-copy h1 {
  font:
    700 clamp(45px, 4.9vw, 80px)/0.85 Barlow,
    sans-serif;
  letter-spacing: -0.015em;
  color: #faf9ef;
}

.feature-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.feature-copy p {
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.025em;
  color: #c6cec6;
  margin: 14px 0;
}

.feature-rule {
  height: 1px;
  background: #ffffff26;
  margin: 12px 0 4px;
}

.feature-copy .mode-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0 12px;
  background: none;
  border: 0;
  width: 100%;
  gap: 12px;
  text-align: left;
}

.feature-copy .mode-selection strong {
  font:
    600 17px Barlow,
    sans-serif;
  letter-spacing: 0.04em;
}

.feature-copy .mode-selection small {
  font-size: 8px;
  letter-spacing: 0.1em;
  display: block;
  color: #c3cdc3;
  margin-top: 3px;
}

.feature-copy .mode-selection small b {
  color: var(--accent);
  margin: 0 5px;
}

.feature-copy .mode-selection > svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.feature-copy .play-button {
  height: 49px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 19px;
  gap: 13px;
  border: 0;
  margin: 0;
  transform: none;
}

.feature-copy .play-button > svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.feature-copy .play-button > span:not(.play-chevron) {
  font:
    700 22px Barlow,
    sans-serif;
  letter-spacing: 0.06em;
}

.feature-copy .play-chevron {
  margin-left: auto;
  font:
    500 26px Rajdhani,
    sans-serif;
}

.field-tile {
  background: #2d3537 url("../assets/ui/combat/range.webp") center/cover;
  justify-content: flex-end;
  padding: 20px;
}

.field-tile:after,
.map-tile:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #101a2330, #10171def);
  z-index: -1;
}

.field-tile .tile-number {
  color: white;
  opacity: 0.9;
  left: 20px;
  top: 15px;
}

.field-tile-copy {
  width: 100%;
}

.field-tile-copy > small {
  font-size: 7px;
  letter-spacing: 0.15em;
  color: #d7ff3e;
  display: block;
  margin-bottom: 7px;
}

.field-tile-copy strong {
  font-size: clamp(21px, 2.1vw, 31px);
}

.field-tile .tile-caption {
  font-size: 7px;
  margin-top: 10px;
}

.quick-access {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  background: #ebece3;
  color: #172125;
}

.quick-access button {
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  padding: 8px 16px;
  border-bottom: 1px solid #1d292425;
}

.quick-access button:last-child {
  border: 0;
}

.quick-access button:hover {
  background: #d7ff3e;
}

.quick-access button > svg {
  width: 22px;
  height: 21px;
  color: #4e5c56;
}

.quick-access button > span {
  font:
    600 13px Barlow,
    sans-serif;
  letter-spacing: 0.035em;
}

.quick-access button > span > b {
  font-weight: 500;
  font-size: 11px;
}

.quick-access button > b {
  margin-left: auto;
  font-size: 18px;
}

.map-tile {
  background: #29363c url("../assets/ui/combat/overview.webp") center 48% /
    cover;
  justify-content: flex-end;
  padding: 19px 20px;
}

.map-tile .tile-number {
  left: 20px;
  top: 14px;
  color: white;
  opacity: 0.8;
}

.map-tile strong {
  font-size: clamp(20px, 1.8vw, 28px);
}

.map-tile .tile-caption {
  font-size: 7px;
  margin-top: 9px;
}

.lobby-underbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  color: #c1cabf;
  font-size: 8px;
  letter-spacing: 0.1em;
  gap: 10px;
}

.lobby-underbar > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lobby-underbar b {
  font-weight: 400;
  margin: 0 2px;
  color: #ffffff55;
}

.lobby-underbar > button {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.lobby-underbar svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.lobby-footer {
  position: relative;
  inset: auto;
  display: flex;
  height: 63px;
  align-items: center;
  justify-content: space-between;
  margin: 0 var(--safe-x);
  border-top: 1px solid #ffffff20;
  flex: none;
  background: none;
  padding: 0;
}

.menu-hints {
  display: flex;
  gap: 23px;
  font-size: 8px;
  letter-spacing: 0.05em;
  color: #d0d7ca;
}

.menu-hints span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.menu-hints kbd {
  font-size: 8px;
  min-height: 17px;
  border-color: #c6cfbb66;
  color: #e7ecdf;
}

.lobby-footer-note {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: #b3bdb2;
}

.build-label {
  font-size: 8px;
  letter-spacing: 0.16em;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #c8d0c2;
}

/* Dedicated AI title artwork; the existing title-screen layout is preserved. */
#loader {
  background: #27343d;
}

.loader-city {
  background:
    linear-gradient(0deg, #0a121ae8 0%, #101b2777 42%, #1b344547),
    url("../assets/ui/combat/loader.webp") 50% 43% / cover;
  filter: saturate(0.78);
  animation: menu-drift 30s ease-in-out infinite alternate;
  inset: -2%;
}

.loader-haze {
  background: radial-gradient(ellipse at 50% 48%, #0a121644, transparent 70%);
  animation: none;
}

.loader-top {
  color: #e0e5d6;
  top: 5%;
  font-size: 9px;
}

.loader-top .micro {
  font-size: 9px;
  letter-spacing: 0.18em;
}

.loader-center {
  width: min(730px, 63vw);
  top: 46%;
}

.loader-center img {
  width: 100%;
  filter: drop-shadow(0 12px 18px #04100b55);
  animation: logo-in 0.7s ease-out both;
}

.loader-tagline {
  display: block;
  font-size: 10px;
  letter-spacing: 0.58em;
  color: #e5e9db;
  margin: 17px 0 0;
}

.start-button {
  margin: 35px auto 0;
  padding: 13px 26px;
  background: none;
  color: #f6f7ed;
  font:
    600 15px Rajdhani,
    sans-serif;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  min-height: 44px;
}

.start-button:not(:disabled):hover {
  border-color: #d7ff3e88;
  background: #121d2355;
}

.start-button:disabled {
  opacity: 0;
  pointer-events: none;
}

.start-dot {
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
}

.start-dot:after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.loader-bottom {
  width: min(580px, 60vw);
  bottom: 7%;
}

.loader-progress {
  height: 10px;
  border: 1px solid #e3e9d65c;
  padding: 2px;
  background: #0d17215c;
  overflow: hidden;
}

.loader-progress > div {
  background: var(--accent);
  height: 100%;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 18px #d7ff3e55;
}

.loader-meta {
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-top: 10px;
  color: #e2e8d8;
}

.loader-bottom > p {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #a9b9b0;
  margin-top: 24px;
}

#loader.ready .loader-progress,
#loader.ready .loader-meta {
  opacity: 0;
  transition: opacity 0.5s;
}

@keyframes menu-drift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045) translateX(-0.5%);
  }
}

/* Full-screen pages: image beneath, legible panels above. */
.overlay {
  background: #101920b8;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

#page-overlay,
#settings {
  isolation: isolate;
  background: #101a22bc;
}

#page-overlay:before,
#settings:before {
  content: "";
  position: absolute;
  inset: -30px;
  background:
    linear-gradient(#18242fa8, #10171edb),
    var(--menu-image) center/cover;
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

.page-shell {
  width: min(1440px, 90%);
  height: 100%;
  margin: auto;
  padding: 4.2vh 0 3vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 0;
  margin-bottom: 20px;
  padding: 0;
  flex: none;
}

.page-header .eyebrow {
  font-size: 8px;
  letter-spacing: 0.22em;
  color: #b4c0b5;
  margin-bottom: 9px;
}

.page-header h2 {
  font:
    600 34px Barlow,
    sans-serif;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-header h2:after {
  display: none;
}

.page-header h2 > svg {
  width: 25px;
  height: 25px;
  color: var(--accent);
}

.close-button {
  font-size: 10px;
  letter-spacing: 0.1em;
  gap: 9px;
  background: #111b2159;
  border: 1px solid #ffffff20;
  padding: 9px 12px;
}

.close-button > svg {
  width: 14px;
  height: 14px;
  color: #b2bfb3;
}

#page-content {
  min-height: 0;
  overflow: auto;
  padding: 0 2px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #17212a;
}

.section-tabs {
  background: #0e171ed9;
  border: 0;
  padding: 0;
  margin: 0 0 23px;
  gap: 0;
  display: flex;
}

.section-tabs button {
  font:
    500 15px Barlow,
    sans-serif;
  letter-spacing: 0.06em;
  padding: 14px 24px;
  border: 0;
  color: #c4cfc1;
}

.section-tabs button.active {
  color: var(--accent);
  background: #090f15;
  border-bottom: 2px solid var(--accent);
}

.loadout-layout {
  gap: 22px;
  grid-template-columns: 200px 1fr 260px;
}

.weapon-list {
  max-height: 64vh;
  background: #111a1cc9;
  scrollbar-color: var(--accent) #152126;
}

.weapon-list > button {
  padding: 12px 14px;
  border-bottom: 1px solid #ffffff14;
  border-left: 2px solid transparent;
  background: none;
  min-height: 58px;
  clip-path: none;
}

.weapon-list > button.selected {
  border-left-color: var(--accent);
  background: #d7ff3e13;
}

.weapon-list > button.selected strong {
  color: var(--accent);
}

.weapon-list > button svg {
  color: #c5cdc4;
}

.weapon-showcase {
  background: radial-gradient(ellipse, #aebfb112, #111a1e66 65%);
  border: 1px solid #ffffff14;
  min-height: 370px;
  position: relative;
}

.weapon-showcase:before {
  content: "FIELD ISSUE / BLACKLINE";
  position: absolute;
  left: 23px;
  top: 20px;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #b5c4b7;
}

.weapon-caption {
  left: 24px;
  bottom: 23px;
}

.weapon-caption h3 {
  font-size: 37px;
  letter-spacing: 0.04em;
}

.weapon-caption p {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.15em;
  margin-top: 6px;
}

.weapon-info {
  background: #10191baf;
  padding: 23px 20px;
  border-top: 2px solid #d7ff3e70;
}

.weapon-info > .eyebrow {
  font-size: 8px;
  letter-spacing: 0.13em;
}

.weapon-info > h3 {
  font-size: 25px;
  margin: 10px 0 20px;
}

.weapon-stat {
  margin: 13px 0;
}

.weapon-stat span {
  font-size: 9px;
  letter-spacing: 0.1em;
}

.weapon-stat > div {
  height: 3px;
  background: #ffffff1c;
}

.weapon-stat i {
  background: #e1e7ce;
}

.optic-options {
  gap: 5px;
  margin-top: 24px;
}

.optic-options button {
  padding: 7px;
  font-size: 8px;
  border: 1px solid #ffffff26;
  background: #151f23;
}

.optic-options button.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: #d7ff3e0b;
}

.weapon-description {
  font-size: 12px;
  line-height: 1.5;
  color: #abbbae;
  margin: 20px 0;
}

.weapon-info > .accent-button {
  width: 100%;
  font-size: 14px;
}

.mode-grid {
  gap: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mode-card {
  height: clamp(240px, 42vh, 450px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 27px;
  text-align: left;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: none;
  border: 1px solid #ffffff2b;
  clip-path: none;
}

.mode-card:before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  transform: none;
  background:
    linear-gradient(0deg, #0b1418f5, #13212750 70%),
    url("../assets/ui/combat/combat.webp") center/cover;
  z-index: -1;
  transition: transform 0.4s;
}

.mode-card[data-mode="ffa"]:before {
  background-image:
    linear-gradient(0deg, #0b1418f5, #13212750 70%),
    url("../assets/ui/combat/courtyard.webp");
}

.mode-card[data-mode="practice"]:before {
  background-image:
    linear-gradient(0deg, #0b1418f5, #13212750 70%),
    url("../assets/ui/combat/range.webp");
}

.mode-card:hover:before {
  transform: scale(1.035);
}

.mode-card.selected {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px #d7ff3e12;
}

.mode-card > small {
  position: absolute;
  top: 23px;
  left: 25px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: white;
}

.mode-card > .selected-label {
  position: absolute;
  top: 48px;
  left: 25px;
  background: var(--accent);
  color: #152215;
  padding: 5px 8px;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.mode-card > svg {
  width: 36px;
  height: 36px;
  margin-bottom: 15px;
  color: var(--accent);
}

.mode-card > h3 {
  font-size: 31px;
  line-height: 0.95;
  margin-bottom: 12px;
}

.mode-card > p {
  font-size: 12px;
  line-height: 1.45;
  color: #c2ccbf;
  max-width: 270px;
}

.match-options {
  margin-top: 20px;
  gap: 18px;
  background: #111a1dd9;
  padding: 19px;
  align-items: center;
  border: 1px solid #ffffff1f;
}

.match-options .map-preview {
  background:
    linear-gradient(90deg, #111b1dd9, #111b1d66),
    url("../assets/ui/combat/overview.webp") center/cover;
  min-height: 95px;
  padding: 14px;
}

.map-preview > .eyebrow {
  font-size: 8px;
}

.map-preview h3 {
  font-size: 22px;
  margin: 6px 0;
}

.map-preview p {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.match-options label {
  font-size: 9px;
  letter-spacing: 0.1em;
}

.match-options select {
  background: #182328;
  border: 1px solid #ffffff3b;
  color: white;
  padding: 10px;
  display: block;
  margin-top: 8px;
  width: 100%;
}

.controls-note {
  font-size: 11px;
  line-height: 1.6;
  color: #aebcb1;
  margin: 20px 0;
}

.profile-identity,
.stat-cell,
.operator-card,
.store-card,
.event-row,
.control-item {
  background: #131e22ca;
  border: 1px solid #ffffff15;
  clip-path: none;
}

.stat-cell {
  padding: 28px 20px;
  border-top: 1px solid #d7ff3e35;
}

.stat-cell > b {
  color: var(--white);
  font-size: 40px;
}

.stat-cell small {
  color: #aabaad;
  font-size: 10px;
}

.profile-identity {
  border-top: 2px solid var(--accent);
}

.profile-identity > svg {
  color: var(--accent);
}

.profile-identity input {
  background: #10191e;
  border: 1px solid #ffffff3b;
  color: var(--white);
}

.career-progress i,
.event-progress i {
  background: var(--accent);
}

.operator-card {
  min-height: 350px;
  padding: 32px;
  background:
    linear-gradient(0deg, #0d161bf5, #1c3036bd),
    url("../assets/ui/combat/courtyard.webp") center/cover;
}

.operator-card.selected {
  border-color: var(--accent);
}

.operator-card > svg {
  color: #d7ff3e88;
  width: 90px;
  height: 100px;
}

.operator-card h3 {
  font-size: 37px;
}

.operator-card p {
  font-size: 12px;
}

.store-grid {
  gap: 17px;
}

.store-card {
  padding: 25px 24px;
  background:
    radial-gradient(
      ellipse at 50% 25%,
      color-mix(in srgb, var(--skin-color), transparent 80%),
      transparent 65%
    ),
    #121d22e8;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.store-card > small {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #abbdb1;
}

.store-card .store-weapon {
  width: 100%;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px #0006);
}

.store-card > svg {
  width: 100%;
  height: 150px;
  color: var(--skin-color);
}

.store-card > h3 {
  font-size: 32px;
  border-top: 1px solid #ffffff20;
  padding-top: 18px;
}

.store-card > p {
  font-size: 12px;
  line-height: 1.5;
  color: #b0c0b2;
  min-height: 50px;
  margin: 10px 0 17px;
}

.store-card > button {
  margin-top: auto;
  width: 100%;
}

.event-row {
  margin-bottom: 11px;
  padding: 25px;
  border-left: 2px solid #d7ff3e55;
}

.event-row > svg {
  color: var(--accent);
}

.event-row h3 {
  font-size: 24px;
}

.event-row p {
  font-size: 11px;
  color: #acbcae;
}

.event-row > span {
  font-size: 12px;
  color: var(--accent);
}

.control-grid {
  gap: 7px;
}

.control-item {
  padding: 16px 19px;
  border-left: 2px solid #ffffff21;
  font-size: 14px;
}

.control-item kbd {
  border-color: #d7ff3e55;
  color: var(--accent);
}

.menu-grid {
  gap: 12px;
}

.menu-grid > button {
  padding: 28px 22px;
  font:
    600 21px Barlow,
    sans-serif;
  letter-spacing: 0.08em;
  background: #142027e6;
  border: 1px solid #ffffff20;
  text-align: left;
  border-left: 2px solid #d7ff3e55;
  clip-path: none;
}

.menu-grid > button:hover {
  background: #d7ff3e;
  color: #172016;
}

.credits-content {
  background: #111c22cf;
  padding: 25px 35px;
}

.credits-content > h3 {
  color: var(--accent);
  font-size: 24px;
}

.credits-content p {
  font-size: 13px;
  line-height: 1.6;
  color: #c2cebf;
}

.loading-art {
  background:
    linear-gradient(90deg, #0a131cf5 5%, #0e1b2577 75%, #12212e22),
    url("../assets/ui/combat/courtyard.webp") center/cover;
}

.loading-content {
  width: min(650px, 78%);
}

.loading-content h2 {
  font-size: clamp(48px, 6vw, 90px);
}

.loading-content .loader-progress {
  height: 10px;
}

.pause-shell {
  background: #101c24d9;
  border-left: 3px solid var(--accent);
  padding: 32px;
  left: 7%;
  width: min(410px, 85vw);
}

.pause-shell h2 {
  font-size: 48px;
  line-height: 0.95;
}

.pause-shell > p {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #b4c4b4;
}

.pause-shell > .accent-button,
.pause-shell > .dark-button {
  padding: 14px 18px;
  font-size: 15px;
}

.results-shell {
  background: #131e26de;
  padding: 35px;
  border-top: 3px solid var(--accent);
}

#result-title {
  color: var(--accent);
  font-size: 70px;
}

.scoreboard-shell {
  background: #111c24eb;
  border-top: 2px solid var(--accent);
  padding: 32px;
}

/* Settings combine a long top category rail, technical rows and contextual help. */
.settings-shell {
  width: min(1500px, 90%);
  padding: 4.2vh 0 3vh;
}

.settings-shell .page-header {
  margin-bottom: 22px;
}

.settings-shell .page-header h2 {
  font-size: 32px;
}

.settings-shell .page-header h2:after {
  display: none;
}

.settings-tab-rail {
  display: flex;
  align-items: stretch;
  background: #101920cf;
  border-bottom: 1px solid #ffffff18;
  flex: none;
}

.settings-tab-step {
  width: 38px;
  flex: none;
  color: #b6c5b8;
  font-size: 11px;
  padding: 0;
}

.settings-tab-step:hover {
  color: var(--accent);
  background: #ffffff0c;
}

#settings-tabs {
  background: none;
  border: 0;
  scroll-behavior: smooth;
}

#settings-tabs > button {
  flex: 1 0 auto;
  padding: 16px 20px;
  font-size: 15px;
  color: #d1d9ca;
  letter-spacing: 0.025em;
}

#settings-tabs > button.active {
  color: var(--accent);
  background: #0a1117;
  border-bottom: 2px solid var(--accent);
}

#settings-tabs > button.active:after {
  display: none;
}

.settings-body {
  grid-template-columns: minmax(0, 1fr) 27%;
  gap: 30px;
  margin: 27px 0;
  min-height: 0;
}

#settings-rows {
  padding-right: 18px;
  scrollbar-width: thin;
  scrollbar-color: #d7ff3e88 #ffffff08;
}

.settings-section-heading {
  font-size: 11px;
  letter-spacing: 0.19em;
  padding: 10px 15px 15px;
  color: #c9d7c4;
  border-color: #ffffff20;
}

.setting-row {
  min-height: 53px;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  padding: 6px 15px;
  border-bottom: 1px solid #ffffff14;
  border-left: 2px solid transparent;
}

.setting-row > label {
  font-size: 18px;
  color: #e3e7da;
  letter-spacing: 0.015em;
}

.setting-row:hover,
.setting-row.selected {
  background: #0c151dcc;
}

.setting-row.selected {
  box-shadow: none;
  border-left-color: var(--accent);
}

.selected > label,
.selected .setting-control output {
  color: var(--accent);
}

.setting-control {
  gap: 22px;
}

.setting-control output {
  font-size: 17px;
  color: #d2dcc9;
  min-width: 38px;
}

.setting-control input[type="range"] {
  height: 3px;
  appearance: none;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    #e9eddb var(--value, 50%),
    #dde3d52c var(--value, 50%)
  );
}

.setting-row.selected input[type="range"] {
  background: linear-gradient(
    90deg,
    var(--accent) var(--value, 50%),
    #d7ff3e33 var(--value, 50%)
  );
}

.setting-control input[type="range"]::-webkit-slider-thumb {
  width: 9px;
  height: 13px;
  border-radius: 0;
  background: #eef2df;
  box-shadow: 0 0 0 3px #0a121866;
}

.setting-row.selected input[type="range"]::-webkit-slider-thumb {
  background: var(--accent);
}

.setting-control input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 13px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
}

.setting-control select {
  border: 1px solid #ffffff20;
  background: #101920b0;
  padding: 8px 10px;
  color: #e3e9d7;
  font-size: 13px;
  border-radius: 0;
}

.setting-control select:focus {
  border-color: var(--accent);
}

.setting-toggle {
  font-size: 17px;
  color: #d2dcc9;
  padding: 7px 10px;
}

.setting-toggle .toggle-track {
  border-radius: 0;
  background: #ffffff20;
  width: 35px;
  height: 15px;
}

.setting-toggle .toggle-track:after {
  border-radius: 0;
  top: 3px;
  width: 10px;
  height: 9px;
  background: #a5b3a3;
}

.setting-toggle.on .toggle-track {
  background: #d7ff3e38;
}

.setting-toggle.on .toggle-track:after {
  left: 22px;
  background: var(--accent);
}

.settings-description {
  background: #0e171dd9;
  border-top: 2px solid #d7ff3e55;
  padding: 25px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.settings-description > .micro {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #a6b8a7;
}

.description-mark {
  display: none;
}

.settings-description h3 {
  font:
    600 25px Barlow,
    sans-serif;
  letter-spacing: 0.04em;
  color: #eef3df;
  margin: 30px 0 18px;
}

.settings-description > p {
  font-size: 14px;
  line-height: 1.7;
  color: #c0ceba;
}

.settings-description:after {
  content: "BL / SYSTEMS";
  position: absolute;
  right: 20px;
  bottom: 16px;
  writing-mode: vertical-rl;
  letter-spacing: 0.25em;
  font-size: 8px;
  color: #ffffff16;
}

.settings-hardware {
  border-top: 1px solid #ffffff1a;
  margin-top: auto;
  padding-top: 22px;
  color: #a5b5a4;
}

.settings-hardware > span {
  font-size: 8px;
  letter-spacing: 0.16em;
}

.settings-hardware > b {
  font-size: 12px;
  line-height: 1.5;
  display: block;
  margin: 8px 0;
  color: #d1dcca;
}

.settings-hardware > small {
  font-size: 10px;
  line-height: 1.5;
  color: #91a48f;
  display: block;
}

.settings-footer {
  gap: 16px;
  border-top: 1px solid #ffffff21;
  padding-top: 18px;
  min-height: 57px;
}

.settings-footer > button {
  font-size: 12px;
}

.settings-footer > span {
  font-size: 8px;
  letter-spacing: 0.1em;
}

.settings-footer .accent-button {
  padding: 12px 20px;
  min-height: 41px;
}

.setting-note {
  font-size: 11px;
  line-height: 1.6;
  background: #111c2277;
  border-left: 2px solid #d7ff3e55;
  padding: 11px 15px;
  color: #b8c9b4;
  margin: 8px 0 13px;
}

.keybind-button {
  min-width: 160px;
  border: 1px solid #ffffff2c;
  background: #10191dbb;
  color: #e0e7d5;
  padding: 9px 15px;
  font-size: 13px;
}

.keybind-button.waiting {
  border-color: var(--accent);
  color: var(--accent);
}

.controller-illustration {
  height: clamp(160px, 29vh, 290px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  border-bottom: 1px solid #ffffff16;
  padding: 5px 23% 12px;
  background: radial-gradient(ellipse, #aebfa310, transparent 66%);
}

.controller-illustration > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 15px #0005);
}

.controller-callouts {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  pointer-events: none;
}

.controller-callout {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #d4dfca;
  letter-spacing: 0.025em;
  position: relative;
}

.controller-callout:nth-child(even) {
  justify-content: flex-end;
}

.controller-callout:after {
  content: "";
  height: 1px;
  background: #d8e2ca48;
  width: clamp(12px, 3vw, 45px);
}

.controller-callout:nth-child(even):after {
  order: -1;
}

.controller-callout kbd {
  font-size: 8px;
  border-color: #d7ff3e55;
  color: var(--accent);
}

.settings-input-actions {
  display: flex;
  gap: 10px;
  padding: 14px 0;
}

.settings-input-actions button {
  padding: 10px 18px;
  font-size: 13px;
}

/* Original circular combat glyphs, crisp at touch size. */
#hud {
  --touch-opacity: 0.72;
}

.hud-team {
  background: linear-gradient(90deg, #111a21b3, #111a2155);
  padding: 10px 13px;
  border-left: 2px solid var(--accent);
  top: 3%;
  left: 2%;
}

.hud-emblem {
  width: 30px;
  height: 40px;
  color: #eff5db;
  margin-right: 12px;
}

.score-stack {
  width: 100px;
}

.score-stack b {
  font-size: 25px;
}

.score-stack > div {
  height: 24px;
}

.team-blue b {
  color: #d7ff3e;
}

.team-red b {
  color: #f09a80;
}

.score-stack small {
  color: #dde8d2;
}

.match-clock {
  left: 55px;
  top: 62px;
  background: #101a2180;
  padding: 4px 10px;
  min-width: 135px;
}

.match-clock > span {
  color: #ecf0df;
  font-size: 15px;
}

.match-clock small {
  font-size: 7px;
  letter-spacing: 0.06em;
}

.hud-compass {
  top: 3%;
  width: 300px;
}

.hud-compass > div {
  color: white;
  text-shadow: 0 1px 4px #000;
  letter-spacing: 0.18em;
}

.hud-map {
  width: 190px;
  top: 3%;
  right: 2%;
  border: 1px solid #e6f0d947;
  background: #111d22c9;
  border-top: 2px solid #d7ff3eb3;
  box-shadow: 0 4px 15px #0003;
}

.map-top {
  color: #d7e3cb;
  font-size: 8px;
  letter-spacing: 0.15em;
  background: #111c20db;
  height: 25px;
}

.map-top button {
  padding: 4px;
}

.map-bottom {
  background: #111c20db;
}

.map-bottom > span {
  color: #e9efdc;
}

.map-bottom > small {
  color: var(--accent);
}

.hud-loadout {
  width: 390px;
  bottom: 3.5%;
}

.ability-slots > button {
  clip-path: none;
  background: #111c25a8;
  border: 1px solid #ffffff30;
  border-bottom: 2px solid #d7ff3e60;
  height: 33px;
}

.ability-slots svg {
  color: #eff5df;
}

.ability-slots kbd {
  color: #e0eacd;
}

.weapon-slot {
  background: #0e1922a6;
  border-color: #ffffff40;
  padding: 10px;
  min-height: 53px;
}

.weapon-slot.active {
  border-color: #f0f3df;
  box-shadow: inset 0 -2px var(--accent);
}

.weapon-slot svg {
  color: #f3f5e8;
}

.weapon-slot b {
  color: #eef3de;
  font-size: 8px;
}

.ammo-counter {
  background: #0e1922ba;
  min-width: 104px;
}

.ammo-counter > b {
  font-size: 34px;
  color: #f7faec;
}

.ammo-counter > span {
  color: #d5e1c8;
}

.ammo-counter > small {
  color: #b9caa9;
}

.health-row > div {
  height: 5px;
  transform: none;
  background: #0e1922ac;
}

.health-row i {
  background: #edf1d9;
}

.health-row > small {
  color: #dce6ce;
}

.health-row > span,
.health-row > b {
  color: white;
  text-shadow: 0 1px 3px #000;
}

#touch-controls button {
  background: #1019234d;
  border: 1.5px solid #eff3e2a6;
  box-shadow:
    inset 0 0 0 3px #0b141b2b,
    0 2px 5px #0002;
  opacity: var(--control-opacity, var(--touch-opacity));
  transform: none;
  width: clamp(40px, 4.4vw, 65px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #f9fced;
  scale: var(--control-scale, var(--touch-scale));
  transform-origin: top left;
  transition: background 0.1s;
}

#touch-controls button:active,
#touch-controls button.is-held {
  background: #d7ff3e38;
  border-color: var(--accent);
}

#touch-controls button svg {
  width: 57%;
  height: 57%;
  stroke-width: 1.65;
  pointer-events: none;
}

#touch-fire {
  right: 7%;
  bottom: 34%;
  width: clamp(65px, 6.8vw, 99px) !important;
  height: auto !important;
  border-width: 2px !important;
}

#touch-fire svg {
  width: 54% !important;
  height: 54% !important;
  transform: none;
}

#touch-fire-left {
  left: 4%;
  top: 35%;
  width: clamp(45px, 5vw, 70px) !important;
}

#touch-aim {
  right: 17%;
  bottom: 44%;
}

#touch-reload {
  right: 19%;
  bottom: 21%;
}

#touch-jump {
  right: 3%;
  bottom: 19%;
}

#touch-crouch {
  right: 10%;
  bottom: 10%;
}

#touch-grenade {
  right: 28%;
  bottom: 15%;
}

#touch-switch {
  right: 29%;
  bottom: 30%;
}

#touch-melee {
  right: 3%;
  bottom: 51%;
}

#touch-sprint {
  left: 10%;
  bottom: 45%;
}

#touch-recon {
  left: 27%;
  bottom: 19%;
}

#touch-interact {
  right: 20%;
  bottom: 61%;
}

#touch-scoreboard {
  left: 23%;
  top: 5%;
}

#touch-stick {
  width: clamp(95px, 10.2vw, 155px);
  height: auto;
  aspect-ratio: 1;
  left: 6%;
  bottom: 15%;
  background: radial-gradient(circle, #dfe8d30a 0 45%, #111b2140 46%);
  border: 1px solid #e9f0dd80;
  box-shadow: inset 0 0 0 7px #111b211a;
  border-radius: 50%;
  opacity: var(--control-opacity, var(--touch-opacity));
  scale: var(--control-scale, 1);
  transform-origin: top left;
}

#touch-stick:before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  border: 1px solid #e9f0dd27;
}

#stick-knob {
  width: 40%;
  height: 40%;
  background: #f1f5df33;
  border: 1px solid #eef2e082;
  box-shadow: 0 0 10px #0002;
}

.touch-mode .hud-brand,
.touch-mode .input-hints,
.touch-mode .hud-bottom-right {
  display: none;
}

.touch-mode .hud-loadout {
  bottom: 3%;
  width: min(345px, 40vw);
}

.touch-mode .ability-slots {
  display: none;
}

.touch-mode .hud-team {
  transform: scale(0.85);
  transform-origin: top left;
}

.touch-mode #kill-feed {
  top: 27%;
  left: 2%;
  max-width: 200px;
}

.touch-mode .feed-entry {
  font-size: 9px;
  padding: 4px 7px;
}

.touch-mode .feed-entry svg {
  width: 25px;
}

.touch-mode .hud-map {
  width: 150px;
  transform: none;
}

.touch-mode .hud-map canvas {
  height: 110px;
}

.touch-mode .hud-loadout .weapon-slot {
  min-width: 50px;
  min-height: 44px;
  padding: 6px;
}

.touch-mode .weapon-slot svg {
  width: 50px;
  height: 22px;
}

.touch-mode .ammo-counter {
  min-width: 87px;
}

.touch-mode .ammo-counter > b {
  font-size: 28px;
}

/* The HUD editor reuses actual game controls, with a staged, reversible draft. */
.layout-editor #page-overlay {
  background: none;
  backdrop-filter: none;
  pointer-events: none;
  z-index: 25;
}

.layout-editor #page-overlay:before {
  background:
    linear-gradient(#0a131a30, #0a131a30),
    url("../assets/ui/combat/combat.webp") center/cover;
  filter: none;
  inset: 0;
  z-index: -1;
}

.layout-editor #lobby {
  visibility: hidden;
}

.layout-editor #page-overlay .page-shell {
  width: 94%;
  padding: 18px 0;
  position: relative;
}

.layout-editor #page-overlay .page-header {
  pointer-events: auto;
  background: #101a22ed;
  border-bottom: 1px solid #ffffff3c;
  padding: 12px 16px;
  margin: 0;
}

.layout-editor #page-overlay .page-header .eyebrow {
  font-size: 7px;
  margin-bottom: 4px;
}

.layout-editor #page-overlay .page-header h2 {
  font-size: 24px;
}

.layout-editor #page-content {
  pointer-events: none;
  overflow: visible;
}

.layout-editor #hud {
  z-index: 26;
  pointer-events: none;
  opacity: 1;
}

.layout-editor #touch-controls {
  display: block;
}

.layout-editor #touch-look {
  display: none;
}

.layout-editor #touch-controls button,
.layout-editor #touch-stick {
  pointer-events: auto;
  z-index: auto;
  outline: 1px dashed #ffffff5a;
  outline-offset: 5px;
  touch-action: none;
  cursor: move;
  opacity: max(0.25, var(--control-opacity, var(--touch-opacity)));
}

.layout-editor #hud .hud-selected {
  outline: 2px solid var(--accent) !important;
  outline-offset: 5px;
  background-color: #d7ff3e26;
}

.layout-editor #hud .hud-editable {
  pointer-events: auto;
  cursor: move;
  touch-action: none;
}

.layout-editor #hud .hud-editable.is-hidden {
  opacity: 0.2 !important;
  outline-color: #e99074;
}

.layout-editor .hud-team,
.layout-editor .hud-compass,
.layout-editor .hud-map {
  top: 16%;
}

.layout-editor .hud-team,
.layout-editor .hud-map,
.layout-editor .hud-loadout {
  transform: none;
}

.layout-editor .hud-loadout {
  left: 39%;
  width: 32%;
  bottom: 5%;
}

.layout-editor .hud-compass,
.layout-editor #kill-feed,
.layout-editor .hud-bottom-left,
.layout-editor .hud-bottom-right,
.layout-editor #soldier-tags {
  display: none;
}

.hud-editor-panel {
  pointer-events: auto;
  position: fixed;
  z-index: 30;
  left: 31%;
  top: 23%;
  width: 320px;
  background: #152027f5;
  border: 1px solid #ffffff50;
  box-shadow: 0 12px 35px #0005;
  color: #edf2de;
}

.hud-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  background: var(--accent);
  color: #172016;
}

.hud-editor-heading h3 {
  font-size: 20px;
}

.hud-editor-heading > span {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hud-editor-body {
  padding: 16px 19px;
}

.hud-editor-body > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    600 14px Barlow,
    sans-serif;
  letter-spacing: 0.05em;
  margin: 0 0 11px;
}

.hud-editor-body > label > output {
  font:
    500 12px Rajdhani,
    sans-serif;
  color: var(--accent);
}

.hud-editor-body input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin: 2px 0 19px;
  height: 4px;
}

.hud-editor-body select {
  width: 100%;
  background: #0e181e;
  border: 1px solid #ffffff38;
  color: #eef3df;
  padding: 9px;
  font-size: 12px;
  margin-bottom: 15px;
  border-radius: 0;
}

.hud-editor-body > p {
  font-size: 10px;
  color: #adbfad;
  line-height: 1.5;
  margin: 2px 0 13px;
}

.hud-editor-visible {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}

.hud-editor-visible input {
  accent-color: var(--accent);
}

.editor-nudges {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  justify-content: center;
  gap: 4px;
  margin: 13px auto 0;
}

.editor-nudges button {
  height: 27px;
  border: 1px solid #ffffff38;
  background: #101b21;
  color: white;
}

.editor-nudges button:hover {
  background: #d7ff3e;
  color: #172016;
}

.editor-nudges button:first-child {
  grid-column: 2;
}

.editor-nudges button:nth-child(2) {
  grid-column: 1;
}

.hud-editor-footer {
  pointer-events: auto;
  position: fixed;
  z-index: 30;
  bottom: 19px;
  left: 3%;
  right: 3%;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #101a22e8;
  padding: 11px 15px;
  border: 1px solid #ffffff2a;
}

.hud-editor-footer > span {
  font-size: 9px;
  letter-spacing: 0.07em;
  color: #bccab2;
  margin-right: auto;
}

.hud-editor-footer > button {
  font-size: 12px;
  padding: 10px 14px;
}

.hud-editor-footer > select {
  background: #17242a;
  color: #eef3df;
  border: 1px solid #ffffff40;
  padding: 9px;
  font-size: 12px;
}

.hud-editor-collapse {
  display: none;
}

@media (min-width: 1800px) {
  .lobby-tiles {
    height: 57vh;
  }

  .feature-copy h1 {
    font-size: 96px;
  }

  .feature-copy p {
    font-size: 14px;
  }

  .feature-copy .mode-selection strong {
    font-size: 22px;
  }

  .lobby-tile strong {
    font-size: 45px;
  }

  .field-tile-copy strong {
    font-size: 35px;
  }
}

@media (max-width: 1100px) {
  .lobby-header {
    height: 74px;
    gap: 12px;
  }

  .lobby-workspace {
    width: 90%;
  }

  .lobby-tiles {
    height: 54vh;
    min-height: 325px;
    grid-template-columns: 0.8fr 1.85fr 1fr;
    gap: 9px;
  }

  .tile-column {
    gap: 9px;
  }

  .lobby-footer {
    height: 52px;
  }

  .lobby-tile {
    padding: 19px;
  }

  .tile-number {
    left: 18px;
    top: 14px;
    font-size: 7px;
  }

  .lobby-tile > svg {
    width: 29px;
    height: 29px;
    margin: 10px 0;
  }

  .lobby-tile strong {
    font-size: 28px;
  }

  .tile-caption {
    font-size: 7px;
  }

  .feature-copy {
    left: 23px;
    right: 23px;
    bottom: 18px;
  }

  .feature-copy h1 {
    font-size: 57px;
  }

  .feature-copy p {
    font-size: 10px;
    margin: 12px 0;
  }

  .feature-copy .mode-selection strong {
    font-size: 15px;
  }

  .feature-copy .mode-selection small {
    font-size: 7px;
  }

  .feature-copy .play-button {
    height: 44px;
  }

  .feature-top {
    left: 18px;
    right: 18px;
    top: 15px;
  }

  .live-chip {
    font-size: 7px;
  }

  .field-tile-copy strong {
    font-size: 25px;
  }

  .quick-access button {
    padding: 6px 12px;
    gap: 9px;
  }

  .quick-access button > span {
    font-size: 11px;
  }

  .quick-access button > svg {
    width: 19px;
  }

  .map-tile strong {
    font-size: 23px;
  }

  .currency {
    margin: 0;
    min-width: 94px;
  }

  .session-status {
    display: none;
  }

  .lobby-footer-note {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .loadout-layout {
    grid-template-columns: 170px 1fr 230px;
    gap: 12px;
  }

  .weapon-info {
    padding: 20px 15px;
  }

  .settings-body {
    gap: 20px;
  }

  .settings-description {
    padding: 20px;
  }

  .setting-row {
    gap: 20px;
  }

  .setting-row > label {
    font-size: 16px;
  }

  #settings-tabs > button {
    font-size: 14px;
    padding: 14px 17px;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .lobby-header {
    height: 54px;
    gap: 11px;
  }

  .brand-lockup > svg {
    width: 24px;
    height: 30px;
  }

  .brand-lockup > span {
    font-size: 17px;
  }

  .brand-lockup b {
    font-size: 7px;
    letter-spacing: 0.62em;
    margin-top: 4px;
  }

  .header-divider {
    height: 24px;
  }

  .profile-plate .profile-badge {
    height: 29px;
    width: 28px;
    font-size: 19px;
  }

  .profile-plate strong {
    font-size: 13px;
  }

  .profile-plate small {
    font-size: 6px;
  }

  .currency b {
    font-size: 16px;
  }

  .currency small {
    font-size: 6px;
  }

  .currency .coin {
    width: 17px;
    height: 17px;
    font-size: 11px;
  }

  .lobby-header .icon-button {
    height: 29px;
    width: 29px;
  }

  .lobby-header .icon-button svg {
    width: 16px;
  }

  .lobby-workspace {
    padding: 13px 0 9px;
    width: 87%;
    justify-content: center;
  }

  .lobby-section-heading {
    font-size: 7px;
    margin-bottom: 9px;
  }

  #lobby-nav {
    height: 33px;
    margin-bottom: 8px;
  }

  #lobby-nav > button {
    font-size: 13px;
    padding: 6px 10px;
  }

  .lobby-tiles {
    height: 58vh;
    min-height: 210px;
    max-height: 360px;
    gap: 7px;
  }

  .tile-column {
    gap: 7px;
  }

  .lobby-tile {
    padding: 14px 17px;
  }

  .lobby-tile > svg {
    width: 22px;
    height: 22px;
    margin: 12px 0 7px;
  }

  .light-tile > svg {
    width: 56px;
  }

  .lobby-tile strong {
    font-size: 23px;
  }

  .tile-caption {
    font-size: 6px;
    margin-top: 9px;
  }

  .tile-number {
    top: 10px;
    left: 15px;
    font-size: 6px;
  }

  .feature-top {
    top: 12px;
    left: 16px;
    right: 16px;
  }

  .live-chip {
    font-size: 6px;
    padding: 6px 8px;
  }

  .feature-index {
    font-size: 7px;
  }

  .feature-copy {
    left: 20px;
    right: 20px;
    bottom: 14px;
  }

  .feature-kicker {
    font-size: 8px;
    margin-bottom: 7px;
  }

  .feature-copy h1 {
    font-size: 44px;
    line-height: 0.84;
  }

  .feature-copy p {
    display: none;
  }

  .feature-rule {
    margin: 11px 0 0;
  }

  .feature-copy .mode-selection {
    padding: 8px 0;
  }

  .feature-copy .mode-selection strong {
    font-size: 13px;
  }

  .feature-copy .mode-selection small {
    font-size: 6px;
    margin-top: 2px;
  }

  .feature-copy .play-button {
    height: 34px;
    padding: 0 13px;
  }

  .feature-copy .play-button > span:not(.play-chevron) {
    font-size: 17px;
  }

  .feature-copy .play-button > svg {
    width: 12px;
    height: 12px;
  }

  .field-tile-copy strong {
    font-size: 20px;
  }

  .field-tile-copy > small {
    font-size: 6px;
    margin-bottom: 5px;
  }

  .field-tile .tile-number {
    top: 10px;
    left: 14px;
    font-size: 6px;
  }

  .field-tile {
    padding: 14px;
  }

  .field-tile .tile-caption {
    font-size: 6px;
    margin-top: 7px;
  }

  .quick-access button {
    padding: 4px 10px;
    gap: 6px;
  }

  .quick-access button > svg {
    width: 15px;
    height: 15px;
  }

  .quick-access button > span {
    font-size: 10px;
  }

  .quick-access button > span > b {
    font-size: 9px;
  }

  .quick-access button > b {
    font-size: 15px;
  }

  .map-tile {
    padding: 12px 14px;
  }

  .map-tile strong {
    font-size: 19px;
  }

  .map-tile .tile-number {
    font-size: 6px;
    top: 10px;
    left: 14px;
  }

  .map-tile .tile-caption {
    font-size: 5px;
    margin-top: 5px;
  }

  .lobby-underbar {
    font-size: 6px;
    margin-top: 9px;
  }

  .lobby-underbar > button {
    font-size: 7px;
  }

  .lobby-footer {
    height: 33px;
  }

  .menu-hints {
    gap: 17px;
    font-size: 6px;
  }

  .menu-hints kbd {
    font-size: 6px;
    min-height: 13px;
    min-width: 16px;
  }

  .lobby-footer-note,
  .build-label {
    font-size: 6px;
  }

  .page-shell,
  .settings-shell {
    padding: 18px 0 12px;
    width: 91%;
  }

  .page-header,
  .settings-shell .page-header {
    margin-bottom: 12px;
  }

  .page-header h2,
  .settings-shell .page-header h2 {
    font-size: 25px;
  }

  .page-header .eyebrow {
    font-size: 6px;
    margin-bottom: 4px;
  }

  .close-button {
    padding: 6px 9px;
    font-size: 8px;
  }

  .close-button kbd {
    font-size: 8px;
    min-height: 16px;
  }

  .settings-body {
    margin: 15px 0;
    gap: 17px;
    grid-template-columns: minmax(0, 1fr) 25%;
  }

  .settings-description {
    padding: 15px;
  }

  .settings-description > .micro {
    font-size: 6px;
  }

  .settings-description h3 {
    font-size: 19px;
    margin: 15px 0 10px;
  }

  .settings-description > p {
    font-size: 10px;
    line-height: 1.55;
  }

  .settings-hardware {
    padding-top: 10px;
  }

  .settings-hardware > span {
    font-size: 6px;
  }

  .settings-hardware > b {
    font-size: 9px;
    margin: 5px 0;
  }

  .settings-hardware > small {
    font-size: 8px;
  }

  .setting-row {
    min-height: 38px;
    padding: 4px 10px;
    gap: 16px;
  }

  .setting-row > label {
    font-size: 14px;
  }

  .setting-control output {
    font-size: 13px;
    min-width: 26px;
  }

  .setting-control select {
    font-size: 10px;
    padding: 5px 8px;
  }

  .setting-toggle {
    font-size: 13px;
    padding: 4px 8px;
  }

  #settings-tabs > button {
    font-size: 12px;
    padding: 10px 13px;
  }

  .settings-footer {
    padding-top: 10px;
    gap: 11px;
    min-height: 38px;
  }

  .settings-footer > button {
    font-size: 9px;
  }

  .settings-footer > span {
    font-size: 6px;
  }

  .settings-footer .accent-button {
    padding: 8px 12px;
    min-height: 30px;
  }

  .controller-illustration {
    height: 133px;
  }

  .controller-callout {
    font-size: 8px;
  }

  .controller-callout kbd {
    font-size: 6px;
    min-height: 14px;
  }

  .setting-note {
    font-size: 9px;
    padding: 7px 10px;
    margin: 5px 0 10px;
  }

  .settings-section-heading {
    font-size: 9px;
    padding: 7px 10px;
  }

  .section-tabs {
    margin-bottom: 13px;
  }

  .section-tabs button {
    padding: 9px 17px;
    font-size: 12px;
  }

  .loadout-layout {
    grid-template-columns: 145px 1fr 210px;
    gap: 12px;
  }

  .weapon-list {
    max-height: 59vh;
  }

  .weapon-list > button {
    min-height: 44px;
    padding: 8px 10px;
  }

  .weapon-showcase {
    min-height: 220px;
  }

  .weapon-info {
    padding: 13px;
  }

  .weapon-info > h3 {
    font-size: 19px;
    margin: 8px 0 10px;
  }

  .weapon-stat {
    margin: 8px 0;
  }

  .weapon-stat span {
    font-size: 7px;
  }

  .optic-options {
    margin-top: 13px;
  }

  .weapon-description {
    font-size: 9px;
    margin: 12px 0;
  }

  .weapon-info > .accent-button {
    font-size: 10px;
    padding: 9px;
  }

  .weapon-caption h3 {
    font-size: 27px;
  }

  .weapon-caption p {
    font-size: 7px;
  }

  .equipment-line {
    font-size: 8px;
  }

  .mode-card {
    height: 49vh;
    min-height: 180px;
    padding: 18px;
  }

  .mode-card > small {
    font-size: 7px;
    top: 14px;
    left: 16px;
  }

  .mode-card > .selected-label {
    top: 33px;
    left: 16px;
    font-size: 6px;
  }

  .mode-card > svg {
    height: 24px;
    width: 24px;
    margin-bottom: 10px;
  }

  .mode-card > h3 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .mode-card > p {
    font-size: 9px;
  }

  .match-options {
    margin-top: 12px;
    padding: 10px;
    gap: 10px;
  }

  .match-options .map-preview {
    min-height: 65px;
    padding: 9px;
  }

  .map-preview h3 {
    font-size: 17px;
  }

  .map-preview p {
    font-size: 6px;
  }

  .map-preview > .eyebrow {
    font-size: 6px;
  }

  .match-options label {
    font-size: 7px;
  }

  .match-options select {
    font-size: 10px;
    padding: 7px;
  }

  .match-options > .accent-button {
    font-size: 10px;
    padding: 10px;
  }

  .controls-note {
    font-size: 9px;
    margin: 12px 0;
  }

  .store-card {
    min-height: 260px;
    padding: 17px;
  }

  .store-card .store-weapon {
    height: 110px;
  }

  .store-card > h3 {
    font-size: 25px;
    padding-top: 12px;
  }

  .store-card > p {
    font-size: 9px;
    min-height: 30px;
    margin: 7px 0 12px;
  }

  .store-card > button {
    font-size: 10px;
    padding: 9px;
  }

  .event-row {
    padding: 13px;
  }

  .event-row h3 {
    font-size: 19px;
  }

  .event-row p {
    font-size: 9px;
  }

  .event-row > span {
    font-size: 9px;
  }

  .event-row button {
    font-size: 9px;
    padding: 9px;
  }

  .control-item {
    font-size: 11px;
    padding: 10px 13px;
  }

  .pause-shell {
    padding: 21px;
    width: 300px;
  }

  .pause-shell h2 {
    font-size: 34px;
  }

  .pause-shell > .accent-button,
  .pause-shell > .dark-button {
    padding: 9px 14px;
    font-size: 12px;
  }

  .pause-shell > p {
    margin: 14px 0 16px;
  }

  .loader-center {
    width: 55vw;
    top: 44%;
  }

  .loader-tagline {
    font-size: 7px;
    margin-top: 8px;
  }

  .start-button {
    margin-top: 20px;
    font-size: 11px;
    padding: 8px 20px;
  }

  .loader-bottom {
    bottom: 5%;
    width: 48vw;
  }

  .loader-bottom > p {
    font-size: 6px;
    margin-top: 12px;
  }

  .loader-meta {
    font-size: 7px;
    margin-top: 6px;
  }

  .loader-progress {
    height: 8px;
  }

  .loader-top .micro {
    font-size: 7px;
  }

  .hud-editor-panel {
    top: 25%;
    left: 34%;
    width: 260px;
  }

  .hud-editor-heading {
    padding: 8px 12px;
  }

  .hud-editor-heading h3 {
    font-size: 16px;
  }

  .hud-editor-heading > span {
    font-size: 6px;
  }

  .hud-editor-body {
    padding: 10px 13px;
  }

  .hud-editor-body > label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .hud-editor-body input[type="range"] {
    margin: 1px 0 12px;
  }

  .hud-editor-body select {
    padding: 6px;
    font-size: 10px;
    margin-bottom: 9px;
  }

  .hud-editor-body > p {
    font-size: 8px;
    margin-bottom: 8px;
  }

  .hud-editor-visible {
    font-size: 9px;
  }

  .editor-nudges {
    grid-template-columns: repeat(3, 23px);
    margin: 7px auto 0;
    gap: 3px;
  }

  .editor-nudges button {
    height: 20px;
    font-size: 10px;
  }

  .hud-editor-footer {
    bottom: 10px;
    padding: 7px 10px;
    gap: 7px;
  }

  .hud-editor-footer > span {
    font-size: 7px;
  }

  .hud-editor-footer > button,
  .hud-editor-footer > select {
    font-size: 9px;
    padding: 7px 10px;
  }

  .layout-editor #page-overlay .page-shell {
    padding: 10px 0;
  }

  .layout-editor #page-overlay .page-header {
    padding: 8px 12px;
  }

  .layout-editor #page-overlay .page-header h2 {
    font-size: 18px;
  }

  .layout-editor #page-overlay .page-header .eyebrow {
    font-size: 5px;
  }

  .touch-mode .hud-map {
    width: 115px;
  }

  .touch-mode .hud-map canvas {
    height: 75px;
  }

  .map-top {
    height: 19px;
    font-size: 6px;
  }

  .map-bottom > span {
    font-size: 8px;
  }

  .map-bottom > small {
    font-size: 6px;
  }

  .hud-map .map-top > button svg {
    width: 12px;
    height: 12px;
  }

  .touch-mode .hud-loadout {
    width: 30vw;
  }

  .touch-mode .weapon-slot svg {
    width: 39px;
    height: 18px;
  }

  .touch-mode .weapon-slot {
    min-height: 37px !important;
  }

  .touch-mode .weapon-slot b {
    font-size: 6px;
  }

  .touch-mode .ammo-counter {
    min-width: 67px;
  }

  .touch-mode .ammo-counter > b {
    font-size: 23px;
  }

  .touch-mode .ammo-counter > span {
    font-size: 10px;
  }

  .touch-mode .health-row {
    font-size: 8px;
  }

  .touch-mode .hud-team {
    padding: 5px 8px;
    transform: scale(0.7);
  }

  .hud-compass {
    width: 220px;
  }

  .hud-compass > div {
    font-size: 8px;
  }

  .touch-mode #kill-feed {
    top: 25%;
  }

  .touch-mode #touch-stick {
    width: 98px;
    height: 98px;
  }

  .touch-mode #touch-controls button {
    width: 43px;
    height: 43px;
  }

  .touch-mode #touch-fire {
    width: 66px !important;
    height: 66px !important;
  }

  .touch-mode #touch-fire svg {
    width: 54% !important;
    height: 54% !important;
  }

  .touch-mode #touch-stick {
    bottom: 15%;
    left: 6%;
  }

  .touch-mode #touch-aim {
    right: 17%;
    bottom: 44%;
  }

  .touch-mode #touch-fire {
    right: 7%;
    bottom: 34%;
  }

  .touch-mode #touch-reload {
    right: 19%;
    bottom: 21%;
  }

  .touch-mode #touch-jump {
    right: 3%;
    bottom: 19%;
  }

  .touch-mode #touch-crouch {
    right: 10%;
    bottom: 10%;
  }

  .touch-mode #touch-grenade {
    right: 28%;
    bottom: 15%;
  }

  .touch-mode #touch-switch {
    right: 29%;
    bottom: 30%;
  }

  .touch-mode #touch-sprint {
    left: 10%;
    bottom: 45%;
  }

  .touch-mode #touch-melee {
    right: 3%;
    bottom: 56%;
  }
}

@media (max-width: 650px) and (orientation: portrait) {
  .lobby-header {
    height: 72px;
    margin: 0 5%;
    gap: 9px;
  }

  .brand-lockup {
    gap: 7px;
  }

  .brand-lockup > svg {
    width: 27px;
    height: 34px;
  }

  .brand-lockup > span {
    font-size: 19px;
  }

  .brand-lockup b {
    font-size: 8px;
  }

  .profile-plate {
    min-width: 0;
    gap: 7px;
  }

  .profile-plate strong {
    font-size: 13px;
  }

  .profile-plate small {
    display: none;
  }

  .profile-plate .profile-badge {
    width: 28px;
    height: 31px;
    font-size: 20px;
  }

  .currency,
  .header-divider,
  #audio-toggle,
  .lobby-header [aria-label="All sections"] {
    display: none;
  }

  .lobby-header .icon-button {
    width: 31px;
    height: 31px;
  }

  .lobby-workspace {
    width: 90%;
    padding: 18px 0 12px;
    justify-content: center;
    overflow: auto;
    scrollbar-width: none;
  }

  .lobby-section-heading {
    font-size: 7px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
  }

  .lobby-section-heading > span:last-child {
    font-size: 6px;
  }

  #lobby-nav {
    height: 40px;
    margin-bottom: 10px;
  }

  #lobby-nav > button {
    font-size: 12px;
    padding: 8px 4px;
  }

  #lobby-nav > button > span {
    display: none;
  }

  .lobby-tiles {
    height: auto;
    max-height: none;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 350px 145px;
    gap: 10px;
  }

  .feature-tile {
    grid-column: 1/3;
    grid-row: 1;
  }

  .tile-column-left {
    grid-row: 2;
    grid-column: 1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 8px;
  }

  .tile-column-right {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tile-column-right > .field-tile {
    display: none;
  }

  .tile-column-right > .quick-access {
    flex: 1;
  }

  .tile-column-right > .map-tile {
    display: none;
  }

  .lobby-tile {
    padding: 15px 10px;
  }

  .tile-number {
    font-size: 5px;
    top: 11px;
    left: 10px;
    letter-spacing: 0.08em;
  }

  .lobby-tile > svg {
    width: 25px;
    height: 25px;
    margin: 10px 0;
  }

  .light-tile > svg {
    width: 37px;
  }

  .lobby-tile strong {
    font-size: 22px;
  }

  .tile-caption {
    font-size: 5px;
    letter-spacing: 0.05em;
    gap: 4px;
    margin-top: 10px;
  }

  .tile-caption > b {
    font-size: 13px;
  }

  .feature-copy {
    left: 24px;
    right: 24px;
    bottom: 21px;
  }

  .feature-copy h1 {
    font-size: 59px;
  }

  .feature-copy p {
    font-size: 10px;
    margin: 12px 0;
  }

  .feature-kicker {
    font-size: 9px;
  }

  .feature-copy .play-button {
    height: 42px;
  }

  .feature-copy .mode-selection strong {
    font-size: 15px;
  }

  .feature-top {
    top: 17px;
  }

  .quick-access button {
    gap: 5px;
    padding: 6px 9px;
  }

  .quick-access button > svg {
    width: 17px;
    height: 18px;
  }

  .quick-access button > span {
    font-size: 10px;
  }

  .quick-access button > span > b {
    font-size: 9px;
  }

  .lobby-underbar {
    font-size: 6px;
    margin-top: 13px;
    gap: 3px;
  }

  .lobby-underbar > span {
    gap: 5px;
  }

  .lobby-underbar > button {
    font-size: 7px;
    gap: 4px;
  }

  .lobby-underbar svg {
    width: 11px;
  }

  .lobby-footer {
    height: 46px;
    margin: 0 5%;
  }

  .lobby-footer-note {
    display: none;
  }

  .menu-hints {
    gap: 10px;
    font-size: 6px;
  }

  .menu-hints kbd {
    font-size: 6px;
    min-height: 14px;
  }

  .build-label {
    font-size: 6px;
    gap: 6px;
  }

  .page-shell,
  .settings-shell {
    width: 92%;
    padding: 25px 0 18px;
  }

  .page-header {
    margin-bottom: 18px;
  }

  .page-header h2,
  .settings-shell .page-header h2 {
    font-size: 25px;
  }

  .page-header .eyebrow {
    font-size: 6px;
  }

  .close-button {
    font-size: 8px;
    padding: 7px;
  }

  .close-button > svg {
    display: none;
  }

  .close-button kbd {
    min-height: 16px;
    font-size: 8px;
  }

  .settings-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 1fr) auto;
    gap: 14px;
    margin: 18px 0;
  }

  .settings-description {
    padding: 14px 16px;
    min-height: 120px;
    max-height: 175px;
  }

  .settings-description > .micro {
    font-size: 7px;
  }

  .settings-description h3 {
    font-size: 20px;
    margin: 9px 0 7px;
  }

  .settings-description > p {
    font-size: 11px;
    line-height: 1.5;
  }

  .settings-hardware {
    display: none;
  }

  .settings-description:after {
    display: none;
  }

  .setting-row {
    min-height: 49px;
    padding: 6px 9px;
    gap: 14px;
    grid-template-columns: 1.1fr 1fr;
  }

  .setting-row > label {
    font-size: 15px;
  }

  .setting-control {
    gap: 10px;
  }

  .setting-control output {
    font-size: 14px;
    min-width: 25px;
  }

  .setting-control select {
    font-size: 10px;
    padding: 7px;
  }

  .setting-toggle {
    font-size: 14px;
    padding: 5px;
  }

  #settings-rows {
    padding-right: 9px;
  }

  #settings-tabs > button {
    font-size: 13px;
    padding: 13px 15px;
  }

  .settings-tab-step {
    width: 26px;
    font-size: 9px;
  }

  .settings-footer {
    gap: 7px;
    flex-wrap: wrap;
    padding-top: 13px;
  }

  .settings-footer > span {
    display: none;
  }

  .settings-footer > button {
    font-size: 9px;
  }

  .settings-footer > .accent-button {
    padding: 10px 11px;
    margin-left: auto;
  }

  .settings-footer > .dark-button {
    padding: 10px;
  }

  .controller-illustration {
    height: 160px;
    padding: 5px 22% 12px;
  }

  .controller-callout {
    font-size: 7px;
    gap: 4px;
  }

  .controller-callout:after {
    width: 15px;
  }

  .controller-callout kbd {
    font-size: 6px;
    min-height: 13px;
  }

  .keybind-button {
    min-width: 100px;
    font-size: 10px;
    padding: 7px;
  }

  .loadout-layout {
    display: flex;
    flex-direction: column;
  }

  .weapon-list {
    display: flex;
    max-height: none;
    overflow: auto;
    flex-wrap: nowrap;
    gap: 5px;
    background: none;
    padding-bottom: 7px;
  }

  .weapon-list > button {
    min-width: 114px;
    padding: 8px;
    min-height: 50px;
    flex: 0 0 auto;
  }

  .weapon-list > .equipment-line {
    display: none;
  }

  .weapon-showcase {
    min-height: 230px;
  }

  .weapon-info {
    padding: 20px;
  }

  .weapon-info > h3 {
    font-size: 23px;
  }

  .weapon-stat {
    display: inline-block;
    width: 45%;
    margin: 9px 2%;
  }

  .weapon-description {
    font-size: 12px;
  }

  .mode-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mode-card {
    height: 240px;
    min-height: 240px;
    padding: 23px;
  }

  .mode-card > h3 {
    font-size: 29px;
  }

  .mode-card > p {
    font-size: 11px;
    max-width: 100%;
  }

  .match-options {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }

  .match-options > .accent-button {
    font-size: 12px;
    padding: 13px;
  }

  .map-preview h3 {
    font-size: 21px;
  }

  .map-preview p {
    font-size: 7px;
  }

  .match-options label {
    font-size: 10px;
  }

  .store-grid,
  .operator-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .store-card {
    min-height: 360px;
  }

  .store-card .store-weapon {
    height: 170px;
  }

  .operator-card {
    min-height: 310px;
  }

  .event-row {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 13px;
    padding: 18px;
  }

  .event-row > span {
    grid-column: 2;
    font-size: 11px;
  }

  .event-row > button {
    grid-column: 2;
    font-size: 11px;
  }

  .event-row h3 {
    font-size: 23px;
  }

  .event-row p {
    font-size: 11px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-grid > button {
    font-size: 17px;
    padding: 21px 16px;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .control-item {
    font-size: 13px;
    padding: 14px;
  }

  .section-tabs button {
    font-size: 11px;
    padding: 12px 10px;
  }

  .loader-center {
    width: 88vw;
    top: 45%;
  }

  .loader-tagline {
    font-size: 8px;
    letter-spacing: 0.4em;
  }

  .start-button {
    margin-top: 30px;
    font-size: 12px;
  }

  .loader-top .micro {
    font-size: 6px;
    letter-spacing: 0.1em;
  }

  .loader-top {
    left: 6%;
    right: 6%;
  }

  .loader-bottom {
    width: 78vw;
    bottom: 10%;
  }

  .loader-meta {
    font-size: 8px;
  }

  .loader-bottom > p {
    font-size: 6px;
  }

  .loader-city {
    background-position: 55% center;
  }

  .hud-compass {
    top: 19%;
    width: 170px;
  }

  .hud-map,
  .touch-mode .hud-map {
    width: 110px;
  }

  .hud-map canvas,
  .touch-mode .hud-map canvas {
    height: 84px;
  }

  .map-top {
    font-size: 6px;
    height: 19px;
  }

  .map-bottom > span {
    font-size: 7px;
  }

  .map-bottom > small {
    font-size: 5px;
  }

  .touch-mode .hud-loadout {
    width: 235px;
    bottom: 3%;
    left: 50%;
  }

  .touch-mode #touch-stick {
    width: 98px;
    height: 98px;
    left: 6%;
    bottom: 18%;
  }

  .touch-mode #touch-controls button {
    width: 43px;
    height: 43px;
  }

  .touch-mode #touch-fire {
    width: 65px !important;
    height: 65px !important;
    right: 7%;
    bottom: 34%;
  }

  .touch-mode #touch-aim {
    right: 25%;
    bottom: 44%;
  }

  .touch-mode #touch-reload {
    right: 27%;
    bottom: 25%;
  }

  .touch-mode #touch-jump {
    right: 3%;
    bottom: 20%;
  }

  .touch-mode #touch-crouch {
    right: 15%;
    bottom: 13%;
  }

  .touch-mode #touch-grenade {
    right: 42%;
    bottom: 13%;
  }

  .touch-mode #touch-switch {
    right: 42%;
    bottom: 26%;
  }

  .touch-mode #touch-sprint {
    left: 13%;
    bottom: 39%;
  }

  .touch-mode #touch-melee {
    right: 4%;
    bottom: 48%;
  }

  .touch-mode #touch-recon {
    left: 9%;
    bottom: 10%;
  }

  .touch-mode #touch-interact {
    right: 26%;
    bottom: 56%;
  }

  .touch-mode #touch-scoreboard {
    left: 5%;
    top: 23%;
  }

  .touch-mode #touch-fire-left {
    left: 4%;
    top: 43%;
  }

  .hud-editor-panel {
    left: 6%;
    top: auto;
    bottom: 105px;
    width: 88%;
  }

  .hud-editor-heading {
    padding: 9px 14px;
  }

  .hud-editor-heading h3 {
    font-size: 17px;
  }

  .hud-editor-body {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
  }

  .hud-editor-body > select {
    grid-column: 1/3;
    margin: 0;
  }

  .hud-editor-body > label {
    font-size: 11px;
    margin: 0;
  }

  .hud-editor-body > label[for="editor-opacity"] {
    grid-column: 2;
    grid-row: 2;
  }

  .hud-editor-body > #editor-scale {
    grid-column: 1;
    grid-row: 3;
  }

  .hud-editor-body > #editor-opacity {
    grid-column: 2;
    grid-row: 3;
  }

  .hud-editor-body input[type="range"] {
    margin: 8px 0 12px;
  }

  .hud-editor-body > p,
  .editor-nudges {
    display: none;
  }

  .hud-editor-visible {
    font-size: 10px;
  }

  .hud-editor-footer {
    left: 3%;
    right: 3%;
    bottom: 14px;
    flex-wrap: wrap;
    padding: 10px;
    gap: 6px;
  }

  .hud-editor-footer > span {
    display: none;
  }

  .hud-editor-footer > select {
    flex: 1;
    font-size: 10px;
    padding: 8px;
  }

  .hud-editor-footer > button {
    font-size: 10px;
    padding: 8px;
  }

  .layout-editor #page-overlay .page-header h2 {
    font-size: 20px;
  }

  .layout-editor .hud-loadout {
    width: 60%;
    left: 20%;
    bottom: 8%;
  }

  .layout-editor #touch-controls button {
    width: 42px;
  }

  .layout-editor .hud-map {
    width: 105px;
  }

  .hud-editor-collapse {
    display: block;
    position: absolute;
    right: 10px;
    top: 8px;
    color: #182415;
    font-size: 17px;
  }

  .hud-editor-panel.collapsed .hud-editor-body {
    display: none;
  }

  .hud-editor-panel.collapsed {
    bottom: 105px;
  }

  .hud-editor-heading > span {
    margin-right: 22px;
  }
}

@media (max-height: 450px) and (orientation: landscape) {
  .lobby-tiles {
    height: calc(100dvh - 186px);
    min-height: 0;
    max-height: none;
  }

  .lobby-tile {
    padding: 11px 14px;
    min-height: 0;
  }

  .lobby-tile > svg {
    height: 18px;
    margin: 9px 0 5px;
  }

  .light-tile > svg {
    width: 45px;
  }

  .lobby-tile strong {
    font-size: 20px;
  }

  .tile-caption {
    font-size: 5px;
    margin-top: 7px;
  }

  .tile-number {
    font-size: 5px;
    top: 8px;
    left: 13px;
  }

  .feature-top {
    top: 10px;
    left: 14px;
    right: 14px;
  }

  .live-chip {
    font-size: 5px;
    padding: 5px 7px;
  }

  .feature-copy {
    left: 18px;
    right: 18px;
    bottom: 12px;
  }

  .feature-kicker {
    font-size: 7px;
    margin-bottom: 5px;
  }

  .feature-copy h1 {
    font-size: 39px;
  }

  .feature-rule {
    margin-top: 8px;
  }

  .feature-copy .mode-selection {
    padding: 7px 0;
  }

  .feature-copy .mode-selection strong {
    font-size: 12px;
  }

  .feature-copy .mode-selection small {
    font-size: 5px;
  }

  .feature-copy .play-button {
    height: 32px;
  }

  .feature-copy .play-button > span:not(.play-chevron) {
    font-size: 16px;
  }

  .field-tile-copy > small {
    display: none;
  }

  .field-tile-copy strong {
    font-size: 18px;
  }

  .field-tile .tile-number {
    font-size: 5px;
    left: 12px;
    top: 8px;
  }

  .field-tile {
    padding: 11px 12px;
  }

  .field-tile .tile-caption {
    font-size: 5px;
    margin-top: 6px;
  }

  .quick-access button {
    padding: 3px 8px;
  }

  .quick-access button > span {
    font-size: 9px;
  }

  .quick-access button > span > b {
    font-size: 8px;
  }

  .quick-access button > svg {
    width: 13px;
    height: 13px;
  }

  .map-tile {
    padding: 9px 12px;
  }

  .map-tile .tile-number {
    font-size: 5px;
    left: 12px;
    top: 7px;
  }

  .map-tile strong {
    font-size: 16px;
  }

  .map-tile .tile-caption {
    font-size: 5px;
    margin-top: 4px;
  }

  .hud-editor-body > p,
  .hud-editor-body .editor-nudges {
    display: none;
  }

  .hud-editor-collapse {
    display: block;
    position: absolute;
    right: 8px;
    top: 4px;
    color: #182415;
  }

  .hud-editor-heading > span {
    margin-right: 19px;
  }

  .hud-editor-panel.collapsed .hud-editor-body {
    display: none;
  }

  .layout-editor #touch-scoreboard {
    top: 19%;
    left: 23%;
  }

  .layout-editor .hud-loadout {
    bottom: 16%;
    width: 30%;
    left: 36%;
  }
}

.layout-editor #minimap {
  background: url("../assets/ui/combat/overview.webp") center/cover;
}

.layout-editor .hud-editor-heading {
  position: relative;
}

.layout-editor .page-header {
  position: relative;
  z-index: 28;
}

.layout-editor .hud-loadout .ability-slots {
  display: none;
}

.hud-quick-pause {
  display: none;
  position: absolute;
  left: 32%;
  top: 3%;
  width: 33px;
  height: 33px;
  background: #111d2380;
  border: 1px solid #eff3df80;
  pointer-events: auto;
  touch-action: manipulation;
}

.hud-quick-pause > svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.touch-mode .hud-quick-pause {
  display: grid;
  place-items: center;
}

.layout-editor .hud-quick-pause {
  display: none;
}

@media (max-width: 650px) and (orientation: portrait) {
  .hud-quick-pause {
    left: 5%;
    top: 15%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
