* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #071012;
  color: #edf4ef;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
}

.shell {
  position: relative;
  width: min(100vw, 1280px);
  height: min(100vh, 720px);
  height: min(100dvh, 720px);
  background: #111;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

#view3d,
#game {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#view3d {
  background: #151918;
}

#game {
  background: transparent;
  cursor: crosshair;
  touch-action: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(7, 16, 18, 0.94), rgba(7, 16, 18, 0.55)),
    radial-gradient(circle at 82% 18%, rgba(237, 92, 45, 0.22), transparent 34%),
    radial-gradient(circle at 72% 88%, rgba(69, 179, 140, 0.18), transparent 30%);
}

.hidden {
  display: none;
}

.firestorm-view.hidden {
  display: none !important;
  pointer-events: none;
}

.briefing {
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(237, 244, 239, 0.18);
  border-radius: 8px;
  background: rgba(9, 15, 16, 0.82);
  backdrop-filter: blur(14px);
}

.briefing.compact {
  width: min(500px, 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: #70d7a4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #fff8ec;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.94;
}

h2 {
  font-size: clamp(40px, 7vw, 72px);
}

.subtitle {
  margin: 16px 0 24px;
  max-width: 520px;
  color: rgba(237, 244, 239, 0.78);
  font-size: 18px;
}

.deploy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.deploy-left,
.deploy-right {
  min-width: 0;
}

.deploy-right {
  display: grid;
  gap: 8px;
  align-content: start;
}

.panel-label {
  margin: 0 0 8px;
  color: rgba(237, 244, 239, 0.64);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 18px;
}

.room-bar label {
  display: grid;
  gap: 5px;
  color: rgba(237, 244, 239, 0.64);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-bar input {
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff8ec;
  font: inherit;
}

.net-status {
  min-width: 88px;
  color: rgba(237, 244, 239, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.loadout {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.team-select {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mode-select {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.loadout-card,
.team-card,
.mode-card,
.weapon-card,
.spawn-card,
.map-card,
.attachment-card,
.secondary,
.primary {
  border: 0;
  color: inherit;
  font: inherit;
}

.loadout-card {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.team-card {
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.mode-card {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.loadout-card span,
.team-card span,
.mode-card span,
.weapon-card span,
.spawn-card span,
.map-card span,
.attachment-card span {
  display: block;
  margin-bottom: 8px;
  color: #fff8ec;
  font-weight: 800;
}

.loadout-card small,
.team-card small,
.mode-card small,
.weapon-card small,
.spawn-card small,
.map-card small,
.attachment-card small {
  display: block;
  color: rgba(237, 244, 239, 0.7);
  line-height: 1.35;
}

.loadout-card.selected,
.team-card.selected,
.mode-card.selected,
.weapon-card.selected,
.spawn-card.selected,
.map-card.selected,
.attachment-card.selected {
  border-color: #70d7a4;
  background: rgba(112, 215, 164, 0.13);
}

.weapon-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 236px;
  overflow: auto;
  padding-right: 2px;
}

.map-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.map-list.pvp-board {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
}

.map-list.operation-board {
  grid-template-columns: 86px minmax(0, 1fr) minmax(190px, 0.34fr);
  gap: 12px;
}

.operation-rail {
  display: grid;
  align-content: start;
  gap: 8px;
}

.operation-rail button {
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(18, 30, 33, 0.88), rgba(7, 16, 18, 0.78));
  color: rgba(237, 244, 239, 0.74);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.operation-rail button.selected {
  border-color: rgba(112, 215, 164, 0.78);
  background: linear-gradient(180deg, rgba(36, 82, 72, 0.72), rgba(12, 30, 29, 0.86));
  color: #fff8ec;
}

.operation-rail strong,
.operation-rail span {
  display: block;
}

.operation-rail strong {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 950;
}

.operation-rail span {
  font-size: 12px;
  font-weight: 800;
}

.pvp-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.operation-map {
  position: relative;
  min-height: 256px;
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6, 16, 21, 0.92), rgba(18, 27, 32, 0.52), rgba(44, 20, 28, 0.62)),
    radial-gradient(ellipse at 22% 62%, rgba(61, 98, 103, 0.7), transparent 30%),
    radial-gradient(ellipse at 56% 40%, rgba(74, 96, 95, 0.58), transparent 28%),
    radial-gradient(ellipse at 84% 42%, rgba(106, 48, 58, 0.52), transparent 28%),
    #10181c;
}

.operation-map::before,
.operation-map::after {
  content: "";
  position: absolute;
  inset: 22px 36px;
  opacity: 0.32;
  background:
    linear-gradient(140deg, transparent 0 18%, rgba(199, 224, 215, 0.18) 18% 19%, transparent 19% 39%, rgba(199, 224, 215, 0.14) 39% 40%, transparent 40%),
    repeating-linear-gradient(25deg, transparent 0 22px, rgba(237, 244, 239, 0.035) 22px 24px);
  clip-path: polygon(6% 70%, 18% 28%, 35% 16%, 55% 34%, 73% 18%, 94% 36%, 86% 78%, 62% 87%, 40% 74%, 22% 88%);
}

.operation-map::after {
  inset: 72px 120px 22px 96px;
  opacity: 0.26;
  clip-path: polygon(0 78%, 28% 22%, 52% 32%, 70% 5%, 100% 35%, 84% 90%, 44% 76%);
}

.operation-title {
  position: absolute;
  left: 18px;
  top: 14px;
  z-index: 2;
  display: grid;
  gap: 3px;
}

.operation-title strong {
  color: #fff8ec;
  font-size: 18px;
  font-weight: 950;
}

.operation-title span,
.operation-zone {
  color: rgba(237, 244, 239, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.operation-zone {
  position: absolute;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
}

.operation-zone.zone-left {
  left: 20%;
  bottom: 16%;
}

.operation-zone.zone-bay {
  left: 49%;
  bottom: 26%;
  color: rgba(126, 199, 255, 0.78);
}

.operation-zone.zone-right {
  right: 12%;
  bottom: 36%;
  color: rgba(255, 120, 130, 0.68);
}

.operation-node {
  position: absolute;
  z-index: 3;
  min-width: 104px;
  padding: 8px 10px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(237, 244, 239, 0.2);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.74);
  color: #edf4ef;
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.operation-node::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(112, 215, 164, 0.15);
}

.operation-node span,
.operation-node small {
  display: block;
}

.operation-node span {
  color: #fff8ec;
  font-size: 13px;
  font-weight: 950;
}

.operation-node small {
  margin-top: 3px;
  color: rgba(237, 244, 239, 0.68);
  font-size: 11px;
  font-weight: 900;
}

.operation-node.hard {
  color: #ff5d5d;
  border-color: rgba(255, 93, 93, 0.5);
}

.operation-node.hard span,
.operation-node.hard small {
  color: #ff5d5d;
}

.operation-node.selected {
  border-color: #70d7a4;
  background: rgba(18, 59, 51, 0.86);
  box-shadow: 0 0 0 2px rgba(112, 215, 164, 0.16), 0 14px 32px rgba(0, 0, 0, 0.42);
}

.operation-node.op-bay {
  border-color: rgba(126, 199, 255, 0.44);
  color: #7ec7ff;
}

.operation-side {
  grid-column: 3;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 256px;
  padding: 14px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 29, 32, 0.9), rgba(7, 16, 18, 0.78));
}

.operation-side > span,
.operation-difficulty-list small {
  color: rgba(237, 244, 239, 0.6);
  font-size: 12px;
  font-weight: 900;
}

.operation-side > strong {
  color: #fff8ec;
  font-size: 20px;
}

.operation-difficulty-list {
  display: grid;
  gap: 8px;
}

.operation-difficulty-list button {
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #edf4ef;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.operation-difficulty-list button.selected {
  border-color: rgba(112, 215, 164, 0.82);
  background: rgba(112, 215, 164, 0.13);
}

.operation-difficulty-list button.hard strong,
.operation-difficulty-list button.hard small {
  color: #ff5d5d;
}

.operation-difficulty-list strong,
.operation-difficulty-list small {
  display: block;
}

.weapon-card,
.spawn-card,
.map-card,
.attachment-card {
  position: relative;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.map-preview-button {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid !important;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0 !important;
  border: 1px solid rgba(255, 210, 131, 0.46);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.64);
  color: #ffd283 !important;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.map-preview-button:hover {
  border-color: #ffd283;
  background: rgba(255, 210, 131, 0.16);
}

.deploy-map-preview {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.32);
}

.deploy-map-panel.hidden {
  display: none;
}

.deploy-map-panel .deploy-map-preview {
  margin-bottom: 8px;
}

.deploy-map-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 6, 7, 0.72);
  backdrop-filter: blur(8px);
}

.deploy-map-modal-card {
  position: relative;
  width: min(940px, 100%);
}

.deploy-map-modal .deploy-map-preview {
  padding: 14px;
  border-color: rgba(255, 210, 131, 0.34);
  background: rgba(8, 17, 19, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.deploy-map-modal .deploy-map-canvas {
  height: min(62vh, 540px);
}

.deploy-map-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(237, 244, 239, 0.22);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.86);
  color: #fff8ec;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.deploy-map-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  align-items: baseline;
}

.deploy-map-head strong {
  color: #fff8ec;
  font-size: 14px;
  font-weight: 950;
}

.deploy-map-head span {
  color: rgba(237, 244, 239, 0.62);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.deploy-map-canvas {
  position: relative;
  height: 210px;
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(237, 244, 239, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(237, 244, 239, 0.035) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, rgba(22, 35, 29, 0.96), rgba(16, 27, 30, 0.96));
}

.deploy-map-canvas i,
.deploy-map-canvas b {
  position: absolute;
  display: block;
  pointer-events: none;
}

.preview-water {
  background: rgba(9, 32, 40, 0.78);
}

.preview-signal {
  border: 1px dashed rgba(255, 210, 131, 0.5);
  background: rgba(255, 210, 131, 0.08);
}

.preview-cover {
  background: rgba(145, 157, 150, 0.35);
}

.preview-building {
  border: 1px solid rgba(237, 244, 239, 0.2);
  background: rgba(237, 244, 239, 0.12);
}

.preview-building.hot {
  border-color: rgba(255, 210, 131, 0.55);
  background: rgba(255, 210, 131, 0.18);
}

.preview-point,
.preview-spawn,
.preview-extract {
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 950;
  line-height: 18px;
  text-align: center;
}

.preview-point {
  background: #ff654a;
  color: #071012;
}

.preview-point.owner-blue {
  background: #4fb1ff;
}

.preview-point.owner-red {
  background: #ff654a;
}

.preview-point.locked {
  opacity: 0.45;
}

.preview-spawn {
  width: 11px;
  height: 11px;
  background: #4fb1ff;
  box-shadow: 0 0 0 3px rgba(79, 177, 255, 0.18);
}

.preview-extract {
  background: #70d7a4;
  color: #071012;
}

.preview-squad,
.preview-respawn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.preview-squad {
  background: #70d7a4;
  color: #071012;
  box-shadow: 0 0 0 4px rgba(112, 215, 164, 0.14);
}

.preview-squad.blocked {
  opacity: 0.45;
  box-shadow: 0 0 0 4px rgba(255, 93, 93, 0.16);
}

.preview-respawn {
  border: 1px solid rgba(255, 248, 236, 0.86);
  background: #4fb1ff;
  color: #071012;
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
  box-shadow: 0 0 0 5px rgba(79, 177, 255, 0.2);
}

.preview-respawn.selected {
  background: #ffd283;
  z-index: 4;
  box-shadow: 0 0 0 5px rgba(255, 210, 131, 0.22);
}

.preview-respawn.disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: grayscale(0.8);
}

.spawn-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.spawn-card.unavailable {
  cursor: not-allowed;
  opacity: 0.43;
}

.spawn-empty {
  padding: 12px;
  border: 1px dashed rgba(237, 244, 239, 0.18);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.24);
  color: rgba(237, 244, 239, 0.66);
  font-size: 12px;
  font-weight: 850;
}

.attachment-list {
  display: block;
  margin-bottom: 10px;
}

.gunsmith-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 24, 27, 0.92), rgba(6, 12, 14, 0.96)),
    radial-gradient(circle at 78% 28%, rgba(78, 220, 224, 0.12), transparent 34%);
}

.gunsmith-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(520px, calc(100% - 28px));
  margin: 12px 14px 0;
  border-bottom: 1px solid rgba(237, 244, 239, 0.12);
}

.gunsmith-tabs span {
  padding: 9px 6px;
  color: rgba(237, 244, 239, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.gunsmith-tabs .active {
  color: #fff8ec;
  border-bottom: 2px solid #70d7a4;
  background: rgba(112, 215, 164, 0.11);
}

.gunsmith-title {
  position: absolute;
  left: 22px;
  top: 74px;
  z-index: 2;
  display: grid;
  gap: 4px;
}

.gunsmith-title strong {
  color: #fff8ec;
  font-size: 22px;
}

.gunsmith-title small {
  color: rgba(237, 244, 239, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.gunsmith-stage {
  position: absolute;
  inset: 112px 22px 22px;
  min-height: 460px;
}

.gunsmith-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gunsmith-lines line {
  stroke: rgba(237, 244, 239, 0.18);
  stroke-width: 0.18;
}

.weapon-schematic {
  position: absolute;
  left: 12%;
  right: 8%;
  top: 44%;
  height: 98px;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

.weapon-schematic span {
  position: absolute;
  display: block;
}

.schematic-suppressor {
  left: 0;
  top: 34px;
  width: 18%;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef3ed, #8a918e 48%, #f7fbf3);
}

.schematic-barrel {
  left: 16%;
  top: 42px;
  width: 27%;
  height: 10px;
  background: #d7dad2;
}

.schematic-handguard {
  left: 31%;
  top: 28px;
  width: 28%;
  height: 38px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d5c3a0, #6c5d45);
}

.schematic-receiver {
  left: 49%;
  top: 22px;
  width: 22%;
  height: 48px;
  border-radius: 5px;
  background: linear-gradient(180deg, #cb3230, #721a1d 62%, #d7c16c);
}

.schematic-optic {
  left: 54%;
  top: 0;
  width: 16%;
  height: 24px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #cdd6d3, #30393c);
}

.schematic-mag {
  left: 58%;
  top: 66px;
  width: 8%;
  height: 52px;
  transform: skewX(-6deg);
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #273034, #0c1112);
}

.schematic-grip {
  left: 67%;
  top: 64px;
  width: 8%;
  height: 38px;
  transform: skewX(-18deg);
  border-radius: 4px;
  background: #121718;
}

.schematic-stock {
  left: 70%;
  top: 28px;
  width: 30%;
  height: 34px;
  clip-path: polygon(0 26%, 60% 14%, 100% 0, 100% 100%, 68% 86%, 0 76%);
  background: linear-gradient(180deg, #af252d, #5f161a);
}

.attachment-group {
  position: absolute;
  z-index: 2;
  width: 104px;
  transform: translate(-50%, -50%);
}

.attachment-slot-button {
  width: 100%;
  min-height: 46px;
  padding: 6px;
  border: 1px solid rgba(237, 244, 239, 0.18);
  border-radius: 4px;
  background: rgba(13, 22, 25, 0.76);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.attachment-group.active .attachment-slot-button {
  border-color: #70d7a4;
  background: rgba(112, 215, 164, 0.16);
  box-shadow: 0 0 0 1px rgba(112, 215, 164, 0.16);
}

.attachment-slot-button span,
.attachment-slot-button small {
  display: block;
}

.attachment-slot-button span {
  margin-bottom: 4px;
  color: rgba(237, 244, 239, 0.68);
  font-size: 10px;
  font-weight: 900;
}

.attachment-slot-button small {
  overflow: hidden;
  color: #fff8ec;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-popover {
  position: absolute;
  left: 50%;
  z-index: 5;
  width: 184px;
  max-height: 238px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(112, 215, 164, 0.34);
  border-radius: 6px;
  background: rgba(8, 15, 17, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46);
}

.attachment-popover.open-down {
  top: calc(100% + 8px);
  transform: translateX(-50%);
}

.attachment-popover.open-up {
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
}

.attachment-popover.align-left {
  left: 0;
  transform: none;
}

.attachment-popover.align-right {
  left: auto;
  right: 0;
  transform: none;
}

.attachment-card {
  min-height: 56px;
  padding: 8px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 4px;
  background: rgba(13, 22, 25, 0.78);
  text-align: left;
  cursor: pointer;
}

.attachment-card span {
  margin-bottom: 5px;
  font-size: 12px;
}

.attachment-card small {
  font-size: 11px;
}

.gunsmith-plan-picker {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 8px;
  width: min(310px, calc(100% - 36px));
  padding: 10px;
  border: 1px solid rgba(255, 210, 131, 0.24);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.84);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.gunsmith-plan-picker > span {
  grid-column: 1 / -1;
  color: rgba(237, 244, 239, 0.68);
  font-size: 11px;
  font-weight: 950;
}

.gunsmith-plan-picker button {
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(255, 210, 131, 0.32);
  border-radius: 6px;
  background: rgba(255, 210, 131, 0.09);
  color: #fff8ec;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gunsmith-plan-picker strong,
.gunsmith-plan-picker small {
  display: block;
}

.gunsmith-plan-picker strong {
  font-size: 12px;
}

.gunsmith-plan-picker small {
  margin-top: 3px;
  color: rgba(237, 244, 239, 0.62);
  font-size: 10px;
  font-weight: 850;
}

.weapon-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.weapon-stats span {
  padding: 6px 8px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.merit-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(112, 215, 164, 0.24);
  border-radius: 8px;
  background: rgba(112, 215, 164, 0.07);
}

.merit-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.merit-header strong {
  color: #ffd283;
}

.merit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  color: rgba(237, 244, 239, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.merit-grid span {
  padding: 6px 8px;
  border: 1px solid rgba(237, 244, 239, 0.1);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.28);
}

.merit-upgrade {
  min-height: 36px;
  border: 1px solid rgba(255, 210, 131, 0.38);
  border-radius: 6px;
  background: rgba(255, 210, 131, 0.13);
  color: #fff8ec;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.merit-upgrade:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.result-merit {
  max-width: 640px;
  font-size: 14px;
}

.firestorm-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(240, 200, 90, 0.24);
  border-radius: 8px;
  background: rgba(240, 200, 90, 0.075);
}

.detailed-prep {
  grid-template-columns: 1fr;
  width: 100%;
  min-width: 0;
  gap: 12px;
}

.prep-hero-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr) minmax(230px, 0.76fr);
  gap: 14px;
  min-height: 390px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 16, 18, 0.92), rgba(13, 26, 30, 0.62), rgba(7, 16, 18, 0.9)),
    radial-gradient(circle at 52% 22%, rgba(112, 215, 164, 0.16), transparent 34%);
}

.prep-left-slots,
.prep-right-slots {
  display: grid;
  align-content: center;
  gap: 10px;
}

.prep-slot {
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(237, 244, 239, 0.035), rgba(237, 244, 239, 0.015));
  color: #edf4ef;
  font: inherit;
  text-align: left;
}

.prep-slot.equipped {
  border-color: rgba(112, 215, 164, 0.35);
  background: linear-gradient(90deg, rgba(112, 215, 164, 0.1), rgba(237, 244, 239, 0.025));
}

.prep-slot span,
.prep-slot strong,
.prep-slot small {
  display: block;
}

.prep-slot span {
  color: rgba(237, 244, 239, 0.58);
  font-size: 11px;
  font-weight: 950;
}

.prep-slot strong {
  margin: 4px 0;
  color: #fff8ec;
  font-size: 15px;
}

.prep-slot small {
  color: rgba(237, 244, 239, 0.62);
  font-size: 11px;
  line-height: 1.35;
}

.prep-operator {
  position: relative;
  min-height: 360px;
}

.prep-emblem,
.prep-value {
  position: absolute;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  white-space: nowrap;
}

.prep-emblem {
  top: 8px;
  color: #fff8ec;
  font-size: 22px;
  font-weight: 950;
}

.prep-value {
  top: 42px;
  color: rgba(237, 244, 239, 0.64);
  font-size: 12px;
  font-weight: 900;
}

.prep-person {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 210px;
  height: 330px;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.5));
}

.prep-person span {
  position: absolute;
  display: block;
}

.person-head {
  left: 78px;
  top: 0;
  width: 54px;
  height: 62px;
  border-radius: 46% 46% 40% 40%;
  background: linear-gradient(180deg, #8b7662, #49382f);
  box-shadow:
    inset 0 12px 0 rgba(38, 52, 47, 0.92),
    inset 0 18px 0 rgba(69, 82, 74, 0.86),
    0 4px 0 rgba(12, 18, 17, 0.7);
}

.person-body {
  left: 54px;
  top: 62px;
  width: 102px;
  height: 150px;
  border-radius: 22px 22px 14px 14px;
  background: linear-gradient(180deg, #74816f, #47564f);
  border: 1px solid rgba(237, 244, 239, 0.08);
  box-shadow:
    inset 0 18px 0 rgba(120, 137, 120, 0.28),
    inset 0 -46px 0 rgba(26, 39, 35, 0.56);
}

.person-body::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 28px;
  height: 18px;
  background: rgba(30, 41, 37, 0.82);
  box-shadow:
    0 18px 0 rgba(30, 41, 37, 0.62),
    -18px -48px 0 -7px rgba(18, 30, 27, 0.82),
    18px -48px 0 -7px rgba(18, 30, 27, 0.82),
    0 -24px 0 4px rgba(30, 41, 37, 0.56);
}

.person-body::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 24px;
  width: 72px;
  height: 80px;
  border-radius: 14px 14px 10px 10px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255,255,255,0.12) 46%, transparent 50%),
    linear-gradient(180deg, rgba(31, 48, 42, 0.92), rgba(18, 29, 27, 0.88));
  border: 1px solid rgba(237, 244, 239, 0.08);
}

.person-arm {
  top: 78px;
  width: 36px;
  height: 132px;
  border-radius: 20px;
  background: linear-gradient(180deg, #59685f, #27342f);
  box-shadow: inset 0 -34px 0 rgba(17, 25, 24, 0.52);
}

.person-arm.left {
  left: 26px;
  transform: rotate(13deg);
}

.person-arm.right {
  right: 24px;
  transform: rotate(-16deg);
}

.person-arm.right::after {
  content: "";
  position: absolute;
  right: -44px;
  top: 46px;
  width: 82px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(90deg, #111817, #2b3330 62%, #111817);
  transform: rotate(-18deg);
  box-shadow:
    54px 2px 0 -5px rgba(237, 244, 239, 0.55),
    20px 12px 0 -4px #111817;
}

.person-leg {
  bottom: 0;
  width: 45px;
  height: 124px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, #303f3a, #161d1c);
  box-shadow: inset 0 -24px 0 rgba(8, 13, 13, 0.58);
}

.person-leg.left {
  left: 56px;
}

.person-leg.right {
  right: 56px;
}

.prep-shelves {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.prep-lobby-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.48);
}

.prep-lobby-head span,
.prep-section-title span {
  display: block;
  color: rgba(237, 244, 239, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.prep-lobby-head strong,
.prep-section-title strong {
  display: block;
  margin-top: 4px;
  color: #fff8ec;
  font-size: 22px;
}

.prep-lobby-head > div:last-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.prep-lobby-head button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(112, 215, 164, 0.38);
  border-radius: 6px;
  background: rgba(112, 215, 164, 0.1);
  color: #fff8ec;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.prep-expanded-hall {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.28fr);
  gap: 12px;
  align-items: start;
  overflow-x: auto;
}

.prep-expanded-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.38);
}

.prep-section-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
}

.prep-section-title strong {
  margin-top: 0;
  font-size: 18px;
}

.prep-expanded-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.prep-pick-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.prep-pick-block > strong,
.prep-shop-panel > strong {
  color: #fff8ec;
  font-size: 13px;
}

.prep-pick-list,
.prep-buy-strip {
  display: grid;
  gap: 7px;
  max-height: 190px;
  overflow: auto;
}

.prep-pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 6px;
}

.prep-pick-list button,
.prep-buy-strip button,
.stash-item button,
.stash-actions button,
.sell-item {
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.34);
  color: #edf4ef;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.prep-pick-row > button:last-child,
.stash-item button,
.stash-actions button,
.sell-item {
  border-color: rgba(255, 210, 131, 0.3);
  background: rgba(255, 210, 131, 0.09);
  color: #fff8ec;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.prep-pick-list button.selected {
  border-color: #70d7a4;
  background: rgba(112, 215, 164, 0.12);
}

.prep-buy-strip button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.prep-pick-list span,
.prep-pick-list small,
.prep-buy-strip span,
.prep-buy-strip small {
  display: block;
}

.prep-pick-list span,
.prep-buy-strip span {
  color: #fff8ec;
  font-size: 12px;
  font-weight: 900;
}

.prep-pick-list small,
.prep-buy-strip small {
  color: rgba(237, 244, 239, 0.62);
  font-size: 11px;
  line-height: 1.3;
}

.prep-shop-panel {
  display: grid;
  gap: 8px;
}

.prep-buy-strip {
  grid-template-columns: 1fr;
  max-height: none;
  overflow: visible;
}

.prep-market-expanded {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.prep-market-section {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.prep-market-section > strong {
  color: #ffd283;
  font-size: 13px;
}

.prep-market-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 86px;
  gap: 6px;
}

.prep-market-row > button:not(:first-child) {
  min-height: 58px;
  padding: 0 6px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 6px;
  background: rgba(255, 210, 131, 0.09);
  color: #fff8ec;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.prep-market-row > button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.stash-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.stash-actions button {
  min-height: 34px;
  padding: 0 12px;
}

.stash-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.stash-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.36);
}

.stash-item strong,
.stash-item small {
  display: block;
}

.stash-item small {
  color: rgba(237, 244, 239, 0.62);
  font-size: 11px;
}

.firestorm-lobby-mode .briefing {
  position: relative;
  width: min(1280px, 100%);
  padding-right: 34px;
}

.firestorm-lobby-mode .eyebrow,
.firestorm-lobby-mode h1,
.firestorm-lobby-mode .subtitle,
.firestorm-lobby-mode .room-bar,
.firestorm-lobby-mode .panel-label[data-i18n="gameMode"],
.firestorm-lobby-mode .mode-select {
  display: none;
}

.firestorm-operator {
  display: none;
}

.firestorm-lobby-mode .faction-label,
.firestorm-lobby-mode .team-select,
.firestorm-lobby-mode .map-label,
.firestorm-lobby-mode .map-list,
.firestorm-lobby-mode .deploy-grid,
.firestorm-lobby-mode .keys,
.firestorm-lobby-mode .keybind-label,
.firestorm-lobby-mode .keybind-list {
  display: none;
}

.firestorm-lobby-mode .firestorm-operator {
  display: none;
}

.operator-stage {
  position: relative;
  height: 334px;
  border-bottom: 1px solid rgba(237, 244, 239, 0.15);
  overflow: hidden;
}

.operator-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: 0;
  height: 60px;
  background:
    linear-gradient(90deg, rgba(237, 244, 239, 0.03), rgba(237, 244, 239, 0.14), rgba(237, 244, 239, 0.03));
  transform: skewX(-16deg);
}

.operator-figure {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 190px;
  height: 292px;
  transform: translateX(-50%);
}

.operator-head,
.operator-torso,
.operator-arm,
.operator-gun,
.operator-leg {
  position: absolute;
}

.operator-head {
  left: 73px;
  top: 0;
  width: 48px;
  height: 52px;
  border: 2px solid rgba(237, 244, 239, 0.28);
  border-radius: 45% 45% 38% 38%;
  background:
    linear-gradient(180deg, #293331, #161d1c 62%, #101615);
  box-shadow: inset 0 -8px 0 rgba(112, 215, 164, 0.16);
}

.operator-head::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 20px;
  height: 7px;
  border-radius: 99px;
  background: rgba(112, 215, 164, 0.62);
  box-shadow: 0 0 14px rgba(112, 215, 164, 0.5);
}

.operator-torso {
  left: 55px;
  top: 54px;
  width: 82px;
  height: 126px;
  border: 2px solid rgba(237, 244, 239, 0.2);
  border-radius: 20px 20px 14px 14px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(237, 244, 239, 0.12) 47% 53%, transparent 54%),
    linear-gradient(180deg, #31423b, #17221f);
}

.operator-torso::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  top: 34px;
  height: 36px;
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.44);
  border: 1px solid rgba(255, 210, 131, 0.22);
}

.operator-arm {
  width: 32px;
  height: 112px;
  border-radius: 999px;
  background: linear-gradient(180deg, #31423b, #151d1b);
  transform-origin: top center;
}

.operator-arm-left {
  left: 38px;
  top: 62px;
  transform: rotate(34deg);
}

.operator-arm-right {
  right: 34px;
  top: 66px;
  transform: rotate(-48deg);
}

.operator-gun {
  left: 88px;
  top: 112px;
  width: 152px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(180deg, #4a5450, #18201e);
  transform: rotate(-10deg);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.operator-barrel {
  position: absolute;
  right: -54px;
  top: 6px;
  width: 58px;
  height: 6px;
  border-radius: 99px;
  background: #6a7470;
}

.operator-stock {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 36px;
  height: 18px;
  border-radius: 4px;
  background: #202927;
  transform: skewX(-14deg);
}

.operator-leg {
  top: 174px;
  width: 34px;
  height: 118px;
  border-radius: 999px 999px 9px 9px;
  background: linear-gradient(180deg, #26332f, #101615);
}

.operator-leg-left {
  left: 62px;
  transform: rotate(5deg);
}

.operator-leg-right {
  right: 58px;
  transform: rotate(-8deg);
}

.operator-info {
  align-self: center;
  display: grid;
  gap: 8px;
}

.operator-info span {
  color: rgba(237, 244, 239, 0.64);
  font-size: 12px;
  font-weight: 900;
}

.operator-info strong {
  color: #fff8ec;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 0.98;
}

.operator-info small {
  color: rgba(237, 244, 239, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.firestorm-lobby-mode .firestorm-panel {
  position: static;
  width: 100%;
  max-height: none;
  overflow: auto;
  margin-top: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 210, 131, 0.11), rgba(7, 16, 18, 0.56)),
    rgba(13, 18, 17, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.firestorm-prep-mode .mode-select,
.firestorm-prep-mode .map-label,
.firestorm-prep-mode .map-list,
.firestorm-prep-mode #meritPanel {
  display: none;
}

.firestorm-prep-mode .briefing {
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(6, 13, 15, 0.96), rgba(9, 20, 24, 0.86)),
    radial-gradient(circle at 52% 20%, rgba(112, 215, 164, 0.12), transparent 34%);
}

.firestorm-prep-mode .firestorm-panel {
  display: block;
  width: 100%;
  margin-top: 8px;
  border-color: rgba(237, 244, 239, 0.13);
  background:
    linear-gradient(90deg, rgba(6, 13, 15, 0.92), rgba(11, 25, 29, 0.84), rgba(6, 13, 15, 0.92));
}

.firestorm-prep-mode .firestorm-lobby-head,
.firestorm-prep-mode .firestorm-grid,
.firestorm-prep-mode .firestorm-merit-row {
  display: none;
}

.firestorm-prep-mode .firestorm-tabs {
  display: none;
}

.firestorm-prep-mode .prep-hero-panel {
  min-height: 470px;
  background:
    linear-gradient(90deg, rgba(6, 13, 15, 0.96), rgba(9, 24, 29, 0.7), rgba(6, 13, 15, 0.96)),
    radial-gradient(circle at 52% 18%, rgba(126, 199, 255, 0.14), transparent 30%),
    radial-gradient(circle at 52% 70%, rgba(112, 215, 164, 0.12), transparent 38%);
}

.firestorm-prep-mode .prep-person {
  width: 250px;
  height: 395px;
}

.firestorm-prep-mode .person-head {
  left: 96px;
  width: 62px;
  height: 70px;
}

.firestorm-prep-mode .person-body {
  left: 67px;
  top: 72px;
  width: 118px;
  height: 180px;
}

.firestorm-prep-mode .person-arm {
  top: 94px;
  height: 158px;
}

.firestorm-prep-mode .person-leg {
  height: 148px;
}

.firestorm-hall {
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
}

.firestorm-hall .hall-tabs {
  width: min(420px, 100%);
  margin: 0 auto 8px;
}

.compact-hall-stats {
  max-width: 720px;
  margin: 0 auto 8px;
  opacity: 0.78;
}

.firestorm-hall .firestorm-view {
  min-height: 520px;
}

.hall-card,
.loadout-card-shell {
  position: relative;
  width: min(760px, 100%);
  min-height: 492px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(237, 244, 239, 0.18);
  border-radius: 8px;
  background: rgba(8, 14, 13, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.hall-copy strong,
.loadout-title strong,
.stash-title-block strong {
  display: block;
  color: #fff8ec;
  font-size: 27px;
  line-height: 1;
}

.hall-copy span,
.loadout-title span,
.stash-title-block span {
  display: block;
  margin-top: 8px;
  color: rgba(237, 244, 239, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.hall-body-with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 18px;
  margin-top: 28px;
}

.hall-scroll-list {
  min-height: 360px;
  max-height: 366px;
  overflow: auto;
  padding: 10px;
  background: rgba(237, 244, 239, 0.04);
}

.hall-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 210, 131, 0.2);
  border-radius: 6px;
  background: rgba(237, 244, 239, 0.045);
}

.hall-row strong,
.hall-row small {
  display: block;
}

.hall-row strong {
  color: #fff8ec;
  font-size: 15px;
}

.hall-row small {
  margin-top: 5px;
  color: rgba(237, 244, 239, 0.68);
  font-size: 11px;
  line-height: 1.35;
}

.hall-row button,
.hall-side-rail button,
.hall-back,
.loadout-bottom-actions button {
  min-height: 38px;
  border: 2px solid rgba(237, 244, 239, 0.18);
  border-radius: 6px;
  background: rgba(8, 14, 13, 0.78);
  color: #fff8ec;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.hall-row button:first-of-type,
.hall-side-rail button.selected,
.hall-back + button,
.loadout-bottom-actions button:last-child {
  border-color: rgba(224, 166, 53, 0.86);
  background: #dda437;
  color: #120f08;
}

.hall-row button:disabled,
.hall-side-rail button:disabled,
.map-hall-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.hall-side-rail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.hall-side-rail button {
  min-height: 48px;
}

.map-hall-card {
  width: min(1040px, 100%);
  min-height: 610px;
}

.map-hall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: 16px;
  margin-top: 24px;
  padding-bottom: 62px;
}

.map-hall-board {
  min-height: 410px;
}

.map-hall-side {
  grid-column: auto;
  min-height: 410px;
}

.map-hall-side > small {
  color: rgba(237, 244, 239, 0.66);
  font-size: 12px;
  font-weight: 850;
}

.map-hall-actions {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.map-hall-actions button {
  min-width: 148px;
  min-height: 42px;
  border: 2px solid rgba(237, 244, 239, 0.18);
  border-radius: 6px;
  background: rgba(8, 14, 13, 0.78);
  color: #fff8ec;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.map-hall-actions button:last-child {
  border-color: rgba(224, 166, 53, 0.86);
  background: #dda437;
  color: #120f08;
}

.hall-side-rail small {
  display: block;
  margin-top: 5px;
  color: rgba(237, 244, 239, 0.58);
  font-size: 10px;
}

.item-icon {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(224, 166, 53, 0.78);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 40%, rgba(0, 0, 0, 0.45) 41% 59%, transparent 60%),
    #dca536;
}

.loot-icon {
  background:
    linear-gradient(135deg, rgba(237, 244, 239, 0.22), transparent 38%),
    rgba(237, 244, 239, 0.08);
}

.stash-title-block b {
  display: block;
  margin: 6px 0 4px;
  color: #dda437;
  font-size: 32px;
  line-height: 1;
}

.stash-hall-card .hall-body-with-rail {
  grid-template-columns: minmax(0, 1fr) 142px;
  margin-top: 14px;
}

.stash-row-list {
  min-height: 278px;
  max-height: 278px;
}

.stash-row {
  grid-template-columns: 46px minmax(0, 1fr) 130px;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: rgba(255, 210, 131, 0.075);
}

.stash-detail-box {
  min-height: 108px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(237, 244, 239, 0.13);
  border-radius: 6px;
  background: rgba(237, 244, 239, 0.04);
  color: rgba(237, 244, 239, 0.56);
  font-size: 14px;
  font-weight: 850;
}

.stash-empty-large {
  display: block;
  padding: 22px;
  color: rgba(237, 244, 239, 0.62);
  font-size: 15px;
  font-weight: 900;
}

.warehouse-item-modal {
  width: min(620px, 100%);
}

.warehouse-item-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 8px;
  background: rgba(237, 244, 239, 0.045);
}

.warehouse-item-icon {
  width: 70px;
  height: 70px;
  border: 2px solid rgba(255, 210, 131, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(237, 244, 239, 0.16), transparent),
    rgba(7, 16, 18, 0.72);
}

.warehouse-item-body strong,
.warehouse-item-body small {
  display: block;
}

.warehouse-item-body strong {
  color: #fff8ec;
  font-size: 15px;
}

.warehouse-item-body small {
  margin-top: 8px;
  color: rgba(237, 244, 239, 0.66);
  font-size: 12px;
  font-weight: 850;
}

.warehouse-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.warehouse-item-actions button {
  min-width: 118px;
  min-height: 40px;
  border: 2px solid rgba(237, 244, 239, 0.18);
  border-radius: 6px;
  background: rgba(8, 14, 13, 0.78);
  color: #fff8ec;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.warehouse-item-actions button:last-child {
  border-color: rgba(224, 166, 53, 0.86);
  background: #dda437;
  color: #120f08;
}

.fire-gunsmith-modal {
  width: min(1120px, 100%);
  max-height: min(760px, calc(100dvh - 26px));
  overflow: auto;
}

.fire-gunsmith-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(420px, 1fr) minmax(190px, 0.32fr);
  gap: 14px;
  margin-top: 16px;
}

.fire-gunsmith-slots,
.fire-gunsmith-options,
.fire-gunsmith-plans,
.fire-gunsmith-stats {
  display: grid;
  gap: 8px;
}

.fire-gunsmith-slots {
  max-height: 560px;
  overflow: auto;
}

.fire-gunsmith-slots button,
.fire-gunsmith-options button,
.fire-gunsmith-plans button {
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 6px;
  background: rgba(237, 244, 239, 0.045);
  color: #edf4ef;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fire-gunsmith-slots button.selected,
.fire-gunsmith-options button.selected {
  border-color: rgba(112, 215, 164, 0.72);
  background: rgba(112, 215, 164, 0.13);
}

.fire-gunsmith-slots span,
.fire-gunsmith-slots small,
.fire-gunsmith-options span,
.fire-gunsmith-options small,
.fire-gunsmith-plans span,
.fire-gunsmith-plans strong,
.fire-gunsmith-plans small {
  display: block;
}

.fire-gunsmith-slots span,
.fire-gunsmith-options strong,
.fire-gunsmith-plans > span {
  color: #fff8ec;
  font-size: 13px;
  font-weight: 950;
}

.fire-gunsmith-slots small,
.fire-gunsmith-options small,
.fire-gunsmith-plans small {
  margin-top: 4px;
  color: rgba(237, 244, 239, 0.62);
  font-size: 11px;
  font-weight: 850;
}

.fire-gunsmith-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.fire-gunsmith-weapon {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 24, 27, 0.92), rgba(6, 12, 14, 0.96)),
    radial-gradient(circle at 78% 28%, rgba(78, 220, 224, 0.12), transparent 34%);
}

.fire-gunsmith-weapon .weapon-schematic {
  left: 7%;
  right: 6%;
  top: 50%;
}

.fire-gunsmith-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fire-gunsmith-stats span {
  padding: 9px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 6px;
  background: rgba(237, 244, 239, 0.045);
  color: rgba(237, 244, 239, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.fire-gunsmith-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  max-height: 280px;
  overflow: auto;
}

.fire-gunsmith-options > strong {
  grid-column: 1 / -1;
}

.fire-gunsmith-plans {
  align-content: end;
}

.fire-gunsmith-plans button {
  border-color: rgba(255, 210, 131, 0.32);
  background: rgba(255, 210, 131, 0.09);
}

.hall-back {
  position: absolute;
  left: 22px;
  bottom: 18px;
  min-width: 128px;
}

.loadout-card-shell {
  width: min(820px, 100%);
  min-height: 492px;
}

.loadout-hall {
  display: block;
}

.loadout-main-grid {
  display: grid;
  grid-template-columns: 300px minmax(240px, 1fr) minmax(280px, 360px);
  gap: 22px;
  margin-top: 34px;
}

.loadout-slot-stack {
  display: grid;
  gap: 8px;
}

.loadout-slot-stack .prep-slot {
  min-height: 64px;
  border-width: 2px;
  border-color: rgba(224, 166, 53, 0.28);
  background: rgba(237, 244, 239, 0.045);
}

.loadout-slot-stack .prep-slot.selected {
  border-color: #dda437;
  background: rgba(221, 164, 55, 0.14);
  box-shadow: inset 3px 0 0 #dda437;
}

.loadout-slot-stack .prep-slot span {
  color: #dda437;
}

.loadout-slot-stack .prep-slot strong {
  font-size: 16px;
}

.loadout-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.loadout-figure-panel {
  position: relative;
  min-height: 330px;
}

.loadout-fill {
  position: absolute;
  top: -6px;
  right: 4px;
  display: flex;
  gap: 16px;
  align-items: center;
  color: rgba(237, 244, 239, 0.76);
  font-size: 13px;
  font-weight: 900;
}

.loadout-fill button {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(237, 244, 239, 0.24);
  border-radius: 6px;
  background: transparent;
}

.loadout-fill button.selected {
  border-color: #dda437;
  background: rgba(221, 164, 55, 0.25);
}

.loadout-person-frame {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 120px;
  height: 238px;
  border: 3px solid #dda437;
  transform: translateX(-50%);
}

.loadout-person-frame .prep-person {
  left: 50%;
  bottom: 0;
  width: 170px;
  height: 255px;
  transform: translateX(-50%) scale(0.68);
  transform-origin: bottom center;
}

.firestorm-prep-mode .loadout-person-frame .prep-person {
  left: 50%;
  bottom: 0;
  width: 170px;
  height: 255px;
  transform: translateX(-50%) scale(0.68);
  transform-origin: bottom center;
}

.loadout-slot-panel {
  display: grid;
  align-self: stretch;
  gap: 12px;
  min-width: 0;
  max-height: calc(100vh - 220px);
  max-height: calc(100dvh - 220px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.38);
}

.slot-panel-head {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(237, 244, 239, 0.1);
}

.slot-panel-head span,
.loadout-slot-panel section > strong {
  color: rgba(237, 244, 239, 0.64);
  font-size: 11px;
  font-weight: 950;
}

.slot-panel-head strong {
  color: #fff8ec;
  font-size: 18px;
}

.slot-panel-head small {
  color: #dda437;
  font-size: 12px;
  font-weight: 850;
}

.loadout-slot-panel section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.slot-panel-list {
  display: grid;
  gap: 7px;
}

.slot-panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 58px;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.slot-panel-row.selected {
  border-color: rgba(112, 215, 164, 0.62);
  background: rgba(112, 215, 164, 0.12);
}

.slot-panel-row span,
.slot-panel-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.slot-panel-row span {
  color: #fff8ec;
  font-size: 12px;
  font-weight: 950;
}

.slot-panel-row small {
  color: rgba(237, 244, 239, 0.62);
  font-size: 11px;
  line-height: 1.3;
}

.slot-panel-row button {
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 6px;
  background: rgba(255, 210, 131, 0.1);
  color: #fff8ec;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.slot-panel-row button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.loadout-bottom-actions {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.loadout-bottom-actions button {
  min-width: 132px;
  min-height: 38px;
  pointer-events: auto;
}

.detailed-bag-window {
  width: min(1180px, 100%);
  max-height: min(690px, calc(100dvh - 24px));
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(5, 12, 15, 0.98), rgba(14, 30, 32, 0.93)),
    rgba(7, 16, 18, 0.98);
}

.detailed-bag-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  gap: 16px;
  align-items: start;
}

.bag-operator-column {
  display: grid;
  gap: 12px;
}

.bag-operator-figure {
  position: relative;
  min-height: 285px;
  border-bottom: 1px solid rgba(237, 244, 239, 0.12);
}

.bag-operator-figure .person-head,
.bag-operator-figure .person-body,
.bag-operator-figure .person-arm,
.bag-operator-figure .person-leg {
  position: absolute;
}

.bag-operator-figure .person-head {
  left: 88px;
  top: 18px;
}

.bag-operator-figure .person-body {
  left: 64px;
  top: 84px;
}

.bag-operator-figure .person-arm.left {
  left: 34px;
  top: 100px;
}

.bag-operator-figure .person-arm.right {
  right: 34px;
  top: 100px;
}

.bag-operator-figure .person-leg.left {
  left: 68px;
}

.bag-operator-figure .person-leg.right {
  right: 68px;
}

.bag-equipped-mini {
  display: grid;
  gap: 8px;
}

.bag-equipped-mini .prep-slot {
  min-height: 48px;
  padding: 8px 10px;
}

.bag-grid-column {
  display: grid;
  gap: 12px;
}

.detailed-bag-layout .inventory-columns {
  grid-template-columns: minmax(150px, 0.48fr) minmax(0, 1.52fr);
}

.detailed-bag-layout .inventory-grid {
  --cell: 44px;
  border-radius: 4px;
  background: rgba(6, 10, 10, 0.72);
}

.raid-gear-strip {
  display: grid;
  gap: 8px;
}

.raid-gear-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.raid-gear-card {
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(237, 244, 239, 0.13);
  border-radius: 6px;
  background: rgba(237, 244, 239, 0.045);
  color: #edf4ef;
  font: inherit;
  text-align: left;
}

.raid-gear-card span,
.raid-gear-card small {
  display: block;
}

.raid-gear-card span {
  font-size: 12px;
  font-weight: 950;
}

.raid-gear-card small {
  margin-top: 4px;
  color: rgba(237, 244, 239, 0.62);
  font-size: 10px;
}

.bag-detail-panel {
  min-height: 360px;
  padding: 14px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  background: rgba(9, 14, 15, 0.76);
}

.bag-detail-panel span,
.bag-detail-panel small,
.bag-detail-panel p {
  display: block;
  color: rgba(237, 244, 239, 0.65);
  font-size: 12px;
  line-height: 1.45;
}

.bag-detail-panel strong {
  display: block;
  margin: 12px 0 6px;
  color: #fff8ec;
  font-size: 18px;
}

.bag-detail-icon {
  width: 118px;
  height: 118px;
  margin-top: 12px;
  border: 2px solid var(--item-color, rgba(237, 244, 239, 0.24));
  background:
    linear-gradient(135deg, rgba(237, 244, 239, 0.18), transparent 42%),
    rgba(237, 244, 239, 0.05);
}

.bag-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.bag-detail-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(221, 166, 55, 0.55);
  border-radius: 6px;
  background: rgba(221, 166, 55, 0.18);
  color: #fff8ec;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.firestorm-lobby-mode.overlay {
  padding: 0;
}

.firestorm-lobby-mode .briefing {
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: rgba(5, 10, 10, 0.98);
}

.firestorm-lobby-mode .firestorm-panel {
  height: calc(100% - 0px);
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.firestorm-hall .hall-tabs {
  width: 360px;
  margin: 0 0 10px;
}

.compact-hall-stats {
  max-width: none;
  margin: 0 0 10px;
}

.firestorm-hall .firestorm-view {
  min-height: calc(100% - 84px);
}

.firestorm-hall.view-lobby .firestorm-view {
  min-height: 100%;
}

.raidline-lobby {
  position: relative;
  min-height: calc(100vh - 36px);
  min-height: calc(100dvh - 36px);
  overflow: hidden;
  background: #030806;
}

.raidline-info {
  position: absolute;
  left: clamp(24px, 3vw, 52px);
  top: clamp(22px, 3vw, 48px);
  z-index: 3;
  width: min(470px, 46vw);
  color: #edf4ef;
}

.raidline-owner,
.raidline-label {
  display: block;
  color: #dda637;
  font-size: 18px;
  font-weight: 950;
}

.raidline-info strong {
  display: block;
  margin-top: 2px;
  margin-bottom: 34px;
  color: #fff8ec;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.92;
  letter-spacing: 0;
}

.raidline-info p {
  margin: 14px 0 28px;
  color: rgba(237, 244, 239, 0.8);
  font-size: 20px;
  font-weight: 950;
}

.raidline-rule {
  width: 100%;
  height: 2px;
  margin-bottom: 22px;
  background: rgba(237, 244, 239, 0.12);
}

.raidline-info b {
  display: block;
  margin: 4px 0 10px;
  color: #dda637;
  font-size: 54px;
  line-height: 1;
}

.raidline-info small {
  display: block;
  color: rgba(237, 244, 239, 0.75);
  font-size: 14px;
  font-weight: 950;
}

.raidline-info .room-title {
  margin-top: 18px;
}

.raidline-room-actions {
  display: flex;
  gap: 10px;
  margin: 10px 0 8px;
}

.raidline-room-actions button {
  min-width: 150px;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid rgba(237, 244, 239, 0.22);
  border-radius: 8px;
  background: rgba(237, 244, 239, 0.035);
  color: #fff8ec;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.raidline-info em {
  color: rgba(237, 244, 239, 0.68);
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.raidline-top-actions {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 4;
  display: flex;
  gap: 12px;
}

.raidline-icon {
  position: relative;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(237, 244, 239, 0.35);
  border-radius: 9px;
  background: rgba(237, 244, 239, 0.055);
  color: #fff8ec;
  font: inherit;
  font-size: 34px;
  font-weight: 950;
  cursor: pointer;
}

.raidline-icon:hover,
.raidline-room-actions button:hover,
.raidline-prep-button:hover {
  border-color: rgba(221, 166, 55, 0.72);
}

.home-icon span,
.home-icon::before,
.home-icon::after {
  position: absolute;
  content: "";
  display: block;
}

.home-icon::before {
  left: 15px;
  top: 16px;
  width: 30px;
  height: 30px;
  border: 5px solid #fff8ec;
  border-top: 0;
}

.home-icon::after {
  left: 14px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-left: 5px solid #fff8ec;
  border-top: 5px solid #fff8ec;
  transform: rotate(45deg);
}

.home-icon span {
  left: 27px;
  bottom: 14px;
  width: 10px;
  height: 16px;
  background: #030806;
}

.money-icon {
  display: grid;
  place-items: center;
}

.money-icon::before {
  position: absolute;
  inset: 12px;
  content: "";
  border: 4px solid #fff8ec;
  border-radius: 999px;
}

.raidline-operator-frame {
  position: absolute;
  left: 62%;
  bottom: 120px;
  z-index: 2;
  width: 150px;
  height: 360px;
  border: 5px solid #dda637;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.62));
}

.raidline-operator-frame::after {
  position: absolute;
  left: -42px;
  right: -42px;
  bottom: -28px;
  height: 36px;
  content: "";
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  z-index: -1;
}

.raidline-operator-frame .prep-person {
  bottom: 12px;
  width: 230px;
  height: 330px;
}

.raidline-prep-button {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 4;
  min-width: 224px;
  min-height: 64px;
  border: 1px solid rgba(221, 166, 55, 0.78);
  border-radius: 8px;
  background: #dda637;
  color: #111714;
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.hall-card,
.loadout-card-shell {
  width: 100%;
  min-height: calc(100vh - 118px);
  min-height: calc(100dvh - 118px);
  margin: 0;
  border-radius: 0;
}

.loadout-card-shell {
  min-height: calc(100vh - 118px);
  min-height: calc(100dvh - 118px);
}

.loadout-main-grid {
  grid-template-columns: minmax(280px, 400px) minmax(220px, 1fr) minmax(300px, 390px);
}

.loadout-slot-stack {
  max-width: 420px;
}

.loadout-figure-panel {
  min-height: 430px;
}

.loadout-person-frame {
  width: 150px;
  height: 310px;
}

.firestorm-prep-mode .loadout-person-frame .prep-person {
  transform: translateX(-50%) scale(0.82);
}

.stash-row-list,
.hall-scroll-list {
  min-height: calc(100vh - 300px);
  max-height: calc(100vh - 300px);
  min-height: calc(100dvh - 300px);
  max-height: calc(100dvh - 300px);
}

.market-row-list {
  min-height: calc(100vh - 220px);
  max-height: calc(100vh - 220px);
  min-height: calc(100dvh - 220px);
  max-height: calc(100dvh - 220px);
}

.firestorm-lobby-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.firestorm-lobby-head span {
  display: block;
  margin-bottom: 4px;
  color: rgba(237, 244, 239, 0.64);
  font-size: 11px;
  font-weight: 900;
}

.firestorm-lobby-head strong {
  color: #fff8ec;
  font-size: 22px;
}

.firestorm-cash {
  min-width: 108px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 210, 131, 0.22);
  border-radius: 6px;
  background: rgba(255, 210, 131, 0.08);
  color: #ffd283;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.firestorm-tabs,
.market-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.market-categories {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 8px;
}

.firestorm-tabs button,
.market-categories button,
.market-actions button,
.prep-deploy {
  min-height: 34px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf4ef;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.firestorm-tabs button.selected,
.market-categories button.selected {
  border-color: rgba(112, 215, 164, 0.62);
  background: rgba(112, 215, 164, 0.16);
}

.market-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.market-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(237, 244, 239, 0.11);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.34);
}

.market-item strong,
.market-item small {
  display: block;
}

.market-item strong {
  margin-bottom: 4px;
  color: #fff8ec;
  font-size: 13px;
}

.market-item small {
  color: rgba(237, 244, 239, 0.62);
  font-size: 11px;
  line-height: 1.35;
}

.market-actions {
  display: grid;
  gap: 5px;
  min-width: 72px;
}

.market-actions span {
  color: #ffd283;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.market-actions button {
  min-height: 29px;
  padding: 0 7px;
}

.market-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.prep-view {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

.prep-view.detailed-prep {
  grid-template-columns: 1fr;
}

.prep-view.loadout-hall {
  display: block;
  grid-template-columns: none;
}

.prep-list {
  display: grid;
  gap: 6px;
}

.prep-list span {
  padding: 7px 8px;
  border: 1px solid rgba(237, 244, 239, 0.1);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.28);
  color: rgba(237, 244, 239, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.prep-section {
  display: grid;
  gap: 7px;
}

.squad-fill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(237, 244, 239, 0.1);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.26);
}

.squad-fill-row span {
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.squad-fill-row button {
  min-width: 78px;
  min-height: 32px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf4ef;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.squad-fill-row button.selected {
  border-color: rgba(112, 215, 164, 0.62);
  background: rgba(112, 215, 164, 0.16);
}

.prep-section > strong {
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.prep-gear-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 178px;
  overflow: auto;
}

.prep-gear-list button,
.prep-empty {
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.3);
  color: #edf4ef;
  font: inherit;
  text-align: left;
}

.prep-gear-list button {
  cursor: pointer;
}

.prep-gear-list button.selected {
  border-color: rgba(112, 215, 164, 0.62);
  background: rgba(112, 215, 164, 0.15);
}

.prep-gear-list button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.prep-gear-list span,
.prep-gear-list small {
  display: block;
}

.prep-gear-list span {
  margin-bottom: 3px;
  color: #fff8ec;
  font-size: 12px;
  font-weight: 900;
}

.prep-gear-list small,
.prep-empty {
  color: rgba(237, 244, 239, 0.62);
  font-size: 11px;
  line-height: 1.3;
}

.prep-deploy {
  grid-column: 1 / -1;
  justify-self: end;
  width: 180px;
  min-height: 42px;
  border-color: rgba(237, 92, 45, 0.72);
  background: rgba(237, 92, 45, 0.3);
  color: #fff8ec;
  font-size: 14px;
}

.firestorm-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.firestorm-header strong {
  color: #ffd283;
}

.firestorm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  color: rgba(237, 244, 239, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.firestorm-grid span,
.loot-strip span {
  padding: 6px 8px;
  border: 1px solid rgba(237, 244, 239, 0.1);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.28);
}

.firestorm-merit-row {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(112, 215, 164, 0.18);
  border-radius: 8px;
  background: rgba(112, 215, 164, 0.07);
  color: rgba(237, 244, 239, 0.76);
  font-size: 12px;
  font-weight: 850;
}

.loot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
}

.secondary {
  height: 38px;
  padding: 0 13px;
  border-radius: 6px;
  background: rgba(112, 215, 164, 0.16);
  color: #edf4ef;
  font-weight: 900;
  cursor: pointer;
}

.language-toggle {
  min-width: 58px;
}

.primary {
  width: 180px;
  height: 48px;
  border-radius: 6px;
  background: #ed5c2d;
  color: #fff8ec;
  font-weight: 900;
  cursor: pointer;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.keys span {
  padding: 7px 9px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(237, 244, 239, 0.72);
  font-size: 13px;
}

.keybind-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.keybind-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.keybind-card span {
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.keybind-card button {
  min-width: 58px;
  height: 30px;
  border: 1px solid rgba(112, 215, 164, 0.28);
  border-radius: 6px;
  background: rgba(7, 16, 18, 0.58);
  color: #fff8ec;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.keybind-card button.listening {
  border-color: #ed5c2d;
  color: #ffd0c2;
}

.mobile-control-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 8px;
  background: rgba(237, 244, 239, 0.045);
  color: rgba(237, 244, 239, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.mobile-control-toggle input {
  appearance: none;
  position: relative;
  width: 48px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(237, 244, 239, 0.22);
  border-radius: 999px;
  background: rgba(7, 16, 18, 0.72);
  cursor: pointer;
}

.mobile-control-toggle input::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(237, 244, 239, 0.74);
  transition: transform 0.16s ease, background 0.16s ease;
}

.mobile-control-toggle input:checked {
  border-color: rgba(112, 215, 164, 0.72);
  background: rgba(112, 215, 164, 0.24);
}

.mobile-control-toggle input:checked::after {
  transform: translateX(22px);
  background: #70d7a4;
}

.rotate-prompt {
  display: none;
}

.touch-controls {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
}

.container-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 16, 18, 0.58);
  backdrop-filter: blur(3px);
}

.container-overlay.hidden {
  display: none;
}

.container-window {
  width: min(920px, 100%);
  max-height: min(620px, calc(100dvh - 32px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(237, 244, 239, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(237, 244, 239, 0.055), rgba(7, 16, 18, 0.22)),
    rgba(13, 18, 17, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.container-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.container-header span,
.container-capacity {
  color: rgba(237, 244, 239, 0.64);
  font-size: 12px;
  font-weight: 900;
}

.container-header strong {
  display: block;
  margin-top: 4px;
  color: #fff8ec;
  font-size: 24px;
}

.container-header button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(237, 244, 239, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff8ec;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.container-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.container-items button,
.container-item-card,
.bag-item,
.container-empty {
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.42);
  color: #edf4ef;
  font: inherit;
  text-align: left;
}

.container-items button {
  cursor: pointer;
}

.bag-item {
  cursor: grab;
}

.bag-item.dragging {
  cursor: grabbing;
  opacity: 0.58;
}

.container-item-card {
  display: grid;
  gap: 7px;
}

.container-item-card span,
.container-item-card small {
  display: block;
}

.container-item-card small {
  color: rgba(237, 244, 239, 0.64);
  font-size: 11px;
}

.container-item-card > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.container-item-card button {
  min-height: 30px;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 950;
}

.container-items button:active {
  transform: scale(0.98);
}

.bag-item .rotate-item,
.bag-item .move-item,
.bag-item .drop-item {
  width: 100%;
  min-height: 28px;
  margin-top: 8px;
  padding: 0 8px;
  border-color: rgba(221, 166, 55, 0.32);
  background: rgba(221, 166, 55, 0.1);
  color: #fff8ec;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.bag-item .drop-item {
  border-color: rgba(255, 101, 74, 0.38);
  background: rgba(255, 101, 74, 0.12);
}

.carried-panel {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(237, 244, 239, 0.12);
}

.compact-items {
  max-height: 190px;
}

.inventory-columns {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1.45fr);
  gap: 12px;
  align-items: start;
}

.inventory-columns.compact-grid {
  grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1.4fr);
}

.inventory-grid-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.inventory-grid-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.inventory-grid-title small {
  color: rgba(255, 210, 131, 0.82);
}

.inventory-grid {
  --cell: 54px;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(32px, var(--cell)));
  grid-template-rows: repeat(var(--rows), minmax(32px, var(--cell)));
  grid-auto-flow: row dense;
  gap: 4px;
  position: relative;
  overflow: auto;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(237, 244, 239, 0.12);
  border-radius: 8px;
  background: rgba(7, 16, 18, 0.34);
}

.inventory-grid.drag-over {
  outline: 2px solid rgba(221, 166, 55, 0.7);
  outline-offset: 3px;
  background: rgba(221, 166, 55, 0.07);
}

.grid-cell {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(237, 244, 239, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}

.grid-loot {
  z-index: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 7px;
}

.grid-loot span {
  font-size: 12px;
  line-height: 1.15;
}

.grid-loot small {
  font-size: 10px;
}

.bag-item .move-item {
  width: 100%;
  min-height: 26px;
  margin-top: 6px;
  padding: 0 6px;
  border: 1px solid rgba(112, 215, 164, 0.38);
  border-radius: 6px;
  background: rgba(112, 215, 164, 0.12);
  color: #fff8ec;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.container-items span,
.container-items small {
  display: block;
}

.container-items span {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 900;
}

.container-items small,
.container-empty {
  color: rgba(237, 244, 239, 0.66);
  font-size: 12px;
  line-height: 1.35;
}

.container-tools {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.container-tools button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(112, 215, 164, 0.42);
  border-radius: 6px;
  background: rgba(112, 215, 164, 0.15);
  color: #fff8ec;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.unlock-window {
  width: min(420px, 100%);
  place-items: center;
}

.unlock-ring {
  --progress: 0;
  width: 188px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(13, 18, 17, 0.96) 0 58%, transparent 59%),
    conic-gradient(#ffd283 calc(var(--progress) * 1turn), rgba(237, 244, 239, 0.12) 0);
  box-shadow: inset 0 0 22px rgba(255, 210, 131, 0.12), 0 14px 38px rgba(0, 0, 0, 0.34);
}

.unlock-ring div {
  display: grid;
  gap: 6px;
  text-align: center;
}

.unlock-ring strong {
  color: #fff8ec;
  font-size: 34px;
}

.unlock-ring span {
  max-width: 126px;
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.container-tools span {
  color: rgba(237, 244, 239, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.touch-device {
  place-items: stretch;
}

.touch-device .shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  box-shadow: none;
}

.touch-device .touch-controls {
  display: block;
}

.touch-controls-hidden .touch-controls {
  display: none !important;
}

.touch-device .overlay:not(.hidden) ~ .touch-controls {
  display: none;
}

.touch-move,
.touch-actions {
  pointer-events: auto;
  position: absolute;
}

.touch-move {
  left: max(28px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: 216px;
  height: 112px;
  border: 1px solid rgba(237, 244, 239, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(237, 244, 239, 0.13) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(237, 244, 239, 0.13) 49% 51%, transparent 51%),
    rgba(7, 16, 18, 0.24);
  backdrop-filter: blur(4px);
}

.touch-actions {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 286px;
  height: 238px;
}

.move-track,
.move-knob,
.touch-actions button {
  position: absolute;
}

.move-track {
  inset: 8px;
  border: 1px solid rgba(237, 244, 239, 0.15);
  border-radius: 999px;
  background: rgba(237, 244, 239, 0.055);
}

.move-knob {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(237, 244, 239, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 255, 255, 0.22), transparent 30%),
    rgba(237, 244, 239, 0.16);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  touch-action: none;
}

.touch-controls button {
  min-width: 0;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(237, 244, 239, 0.27);
  border-radius: 50%;
  background: rgba(7, 16, 18, 0.58);
  color: #fff8ec;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  touch-action: none;
  user-select: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(7px);
}

.touch-controls button:active {
  background: rgba(112, 215, 164, 0.32);
  border-color: #70d7a4;
  transform: scale(0.96);
}

.touch-actions .action-fire {
  right: 12px;
  bottom: 8px;
  width: 92px;
  height: 92px;
  border-color: rgba(237, 92, 45, 0.78);
  background: rgba(237, 92, 45, 0.34);
  font-size: 18px;
}

.touch-actions .action-ads {
  right: 126px;
  bottom: 60px;
  width: 66px;
  height: 66px;
}

.touch-actions .action-reload {
  right: 108px;
  bottom: 0;
}

.touch-actions .action-kit {
  right: 64px;
  bottom: 112px;
}

.touch-actions .action-interact {
  right: 72px;
  bottom: 170px;
  width: 58px;
  height: 58px;
  border-color: rgba(112, 215, 164, 0.54);
}

.touch-actions .action-revive {
  right: 0;
  bottom: 114px;
}

.touch-actions .action-deploy {
  right: 178px;
  bottom: 14px;
  width: 58px;
  height: 58px;
}

.touch-actions .action-map {
  right: 194px;
  bottom: 86px;
  width: 58px;
  height: 58px;
  border-color: rgba(79, 177, 255, 0.48);
}

.touch-actions .action-bag {
  right: 188px;
  bottom: 150px;
  width: 54px;
  height: 54px;
  border-color: rgba(112, 215, 164, 0.48);
}

.touch-actions .action-sort {
  right: 106px;
  bottom: 174px;
  width: 52px;
  height: 52px;
  border-color: rgba(255, 210, 131, 0.5);
}

.touch-actions .action-primary {
  right: 244px;
  bottom: 20px;
  width: 54px;
  height: 54px;
}

.touch-actions .action-melee {
  right: 238px;
  bottom: 142px;
  width: 58px;
  height: 58px;
  border-color: rgba(255, 210, 131, 0.5);
}

.touch-actions .action-giveup {
  right: 150px;
  bottom: 128px;
  width: 58px;
  height: 58px;
  color: #ffd0c2;
  border-color: rgba(237, 92, 45, 0.46);
}

@media (hover: none) and (pointer: coarse) {
  .shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-shadow: none;
  }

  .overlay {
    padding: 10px;
    place-items: stretch;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .briefing {
    max-height: none;
    padding: 16px;
    overflow: visible;
  }

  h1,
  h2 {
    font-size: 40px;
  }

  .subtitle {
    margin: 10px 0 14px;
    font-size: 14px;
  }

  .loadout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .team-select {
    grid-template-columns: 1fr;
  }

  .mode-select {
    grid-template-columns: 1fr;
  }

  .deploy-grid,
  .room-bar {
    grid-template-columns: 1fr;
  }

  .firestorm-lobby-mode .briefing {
    width: 100%;
    padding-right: 16px;
  }

  .firestorm-lobby-mode .firestorm-panel {
    position: static;
    width: auto;
    max-height: none;
    margin: 12px 0;
  }

  .firestorm-lobby-mode .firestorm-operator {
    display: none;
  }

  .market-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-list,
  .prep-view {
    grid-template-columns: 1fr;
  }

  .loadout-main-grid {
    grid-template-columns: 1fr;
  }

  .loadout-slot-panel {
    max-height: none;
  }

  .container-window {
    width: 100%;
  }

  .inventory-columns,
  .inventory-columns.compact-grid {
    grid-template-columns: 1fr;
  }

  .inventory-grid {
    --cell: 46px;
  }

  .weapon-list,
  .map-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .map-list.pvp-board {
    grid-template-columns: 86px minmax(360px, 1fr);
    overflow-x: auto;
  }

  .map-list.operation-board {
    grid-template-columns: 86px minmax(360px, 1fr) minmax(180px, 0.45fr);
    overflow-x: auto;
  }

  .map-hall-layout {
    grid-template-columns: minmax(360px, 1fr) minmax(180px, 0.45fr);
    overflow-x: auto;
  }

  .operation-map {
    min-height: 230px;
  }

  .operation-node {
    min-width: 94px;
    padding: 7px 8px;
  }

  .pvp-map-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .prep-hero-panel {
    grid-template-columns: minmax(190px, 0.7fr) minmax(240px, 1fr) minmax(190px, 0.7fr);
    min-width: 760px;
  }

  .prep-shelves,
  .prep-buy-strip {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }

  .prep-expanded-hall {
    grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
    min-width: 920px;
  }

  .prep-expanded-grid,
  .prep-market-expanded {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .prep-market-section .prep-buy-strip {
    grid-template-columns: 1fr;
  }

  .gunsmith-panel {
    min-height: 720px;
    overflow: auto;
  }

  .gunsmith-stage {
    inset: 112px 16px 18px;
    min-width: 740px;
    min-height: 560px;
  }

  .keys {
    display: none;
  }

  .primary {
    width: 100%;
  }
}

.touch-device .rotate-prompt {
  display: none;
}

@media (orientation: portrait) {
  .touch-device .rotate-prompt {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: grid;
    place-items: center;
    background: rgba(7, 16, 18, 0.84);
    color: #fff8ec;
    font-size: 22px;
    font-weight: 900;
  }

  .touch-device .rotate-prompt div {
    padding: 16px 22px;
    border: 1px solid rgba(237, 244, 239, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (orientation: landscape) {
  .touch-device .rotate-prompt {
    display: none;
  }

  .touch-device .briefing {
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }

  .touch-device .keybind-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 760px) {
  .touch-move {
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 184px;
    height: 96px;
  }

  .touch-controls button {
    width: 48px;
    height: 48px;
    font-size: 13px;
  }

  .move-knob {
    width: 52px;
    height: 52px;
  }

  .touch-actions {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 244px;
    height: 214px;
  }

  .touch-actions .action-fire {
    right: 8px;
    bottom: 6px;
    width: 80px;
    height: 80px;
    font-size: 16px;
  }

  .touch-actions .action-ads {
    right: 108px;
    bottom: 54px;
    width: 58px;
    height: 58px;
  }

  .touch-actions .action-reload {
    right: 94px;
    bottom: 0;
  }

  .touch-actions .action-kit {
    right: 56px;
    bottom: 102px;
  }

  .touch-actions .action-interact {
    right: 62px;
    bottom: 154px;
    width: 50px;
    height: 50px;
  }

  .touch-actions .action-revive {
    right: 0;
    bottom: 104px;
  }

  .touch-actions .action-deploy {
    right: 154px;
    bottom: 10px;
  }

  .touch-actions .action-map {
    right: 166px;
    bottom: 80px;
  }

  .touch-actions .action-bag {
    right: 158px;
    bottom: 138px;
    width: 48px;
    height: 48px;
  }

  .touch-actions .action-sort {
    right: 88px;
    bottom: 158px;
    width: 46px;
    height: 46px;
  }

  .touch-actions .action-primary {
    right: 190px;
    bottom: 16px;
  }

  .touch-actions .action-melee {
    right: 188px;
    bottom: 128px;
  }

  .touch-actions .action-giveup {
    right: 132px;
    bottom: 118px;
  }
}
