/* Generated from styles/src by tools/build_css.py. Do not hand-edit. */
:root {
  --viewport-w: 100vw;
  --viewport-h: 100vh;
  --stage-x: 0px;
  --stage-y: 0px;
  --stage-w: 100vw;
  --stage-h: 100vh;
  --safe-top: 0px;
  --safe-right: 0px;
  --safe-bottom: 0px;
  --safe-left: 0px;
  --ui-scale: 1;
  --control-size-compact: 44px;
  --control-size-regular: 48px;
  --control-size-large: 54px;
  --z-world: 0;
  --z-hud: 200;
  --z-panel: 300;
  --z-modal: 400;
  --z-prompt: 500;
  --z-drag: 600;
  --z-critical: 700;
}

/* 1.3.6 mobile-safe skin merchant: isolated component styles */
.cosmetics-shop-v135{position:relative;display:grid!important;grid-template-columns:minmax(250px,38%) minmax(0,62%);gap:0!important;min-height:0!important;height:100%;padding:0!important;overflow:hidden;background:#17130f var(--cosmetics-bg) center/cover no-repeat!important;color:#fff}
.cosmetics-shop-v135:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,rgba(8,7,6,.22),rgba(8,7,6,.66) 46%,rgba(8,7,6,.9));pointer-events:none}
.cosmetics-preview-v135,.cosmetics-catalog-v135{position:relative;z-index:1;min-width:0;min-height:0}
.cosmetics-preview-v135{display:flex;flex-direction:column;justify-content:flex-end;padding:clamp(12px,2vw,28px)}
.cosmetics-preview-stage-v135{display:flex;align-items:center;justify-content:center;min-height:0;height:68%;filter:drop-shadow(0 14px 18px rgba(0,0,0,.5))}
.cosmetics-preview-stage-v135 img{display:block;max-width:92%;max-height:100%;object-fit:contain}.cosmetics-preview-stage-v135 canvas{display:block;max-width:92%;max-height:100%;width:auto;height:auto;object-fit:contain}

.cosmetics-preview-copy-v135{padding:10px 14px;border-left:4px solid #ffcf36;background:linear-gradient(90deg,rgba(9,10,11,.9),rgba(9,10,11,.28))}
.cosmetics-preview-copy-v135 span{color:#ffcf36;font-size:12px;font-weight:900}.cosmetics-preview-copy-v135 h2{margin:3px 0;font-size:clamp(18px,2vw,30px)}.cosmetics-preview-copy-v135 p{margin:0;color:#d5d8d9;font-size:12px}
.cosmetics-catalog-v135{display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:clamp(10px,1.4vw,18px);background:rgba(9,12,14,.76);backdrop-filter:blur(5px)}
.cosmetics-tabs-v135{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:8px}.cosmetics-tabs-v135 button{min-height:40px;border:1px solid rgba(255,255,255,.22);background:rgba(17,22,25,.9);color:#d8dde0;font-weight:900}.cosmetics-tabs-v135 button.active{border-color:#ffcf36;background:#f2c42f;color:#17120b}
.cosmetics-grid-v135{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(122px,1fr);gap:7px;overflow:auto;overscroll-behavior:contain;padding:2px}
.cosmetics-card-v135{position:relative;display:grid;grid-template-rows:minmax(76px,1fr) auto auto;min-width:0;overflow:hidden;border:2px solid rgba(255,255,255,.14);background:linear-gradient(145deg,rgba(42,48,51,.94),rgba(18,21,23,.96));color:#fff;text-align:left;padding:6px}.cosmetics-card-v135.selected{border-color:#ffe331;box-shadow:0 0 0 2px rgba(255,227,49,.2) inset}.cosmetics-card-v135.locked{filter:saturate(.45);opacity:.62}
.cosmetics-card-art-v135{display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;background:radial-gradient(circle,rgba(255,255,255,.12),rgba(255,255,255,.01) 68%)}.cosmetics-card-art-v135 img{display:block;max-width:100%;max-height:100%;object-fit:contain}.cosmetics-card-art-v135 canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.cosmetics-card-v135 strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;margin-top:4px}.cosmetics-card-v135 small{color:#c8cdd0;font-size:10px}
.cosmetics-detail-v135{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;margin-top:8px;padding:7px 9px;border-top:1px solid rgba(255,255,255,.2);background:rgba(4,6,7,.76)}.cosmetics-detail-v135 div{min-width:0}.cosmetics-detail-v135 small{display:block;color:#ffcf36;font-weight:900}.cosmetics-detail-v135 strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cosmetics-detail-v135 button{min-width:112px;min-height:40px;border:1px solid #ffe260;background:#f0c333;color:#17120c;font-weight:900}.cosmetics-detail-v135 button:disabled{border-color:#666;background:#31363a;color:#9ba1a5}
@media (max-width:900px),(max-height:520px){.cosmetics-shop-v135{grid-template-columns:34% 66%}.cosmetics-preview-v135{padding:9px}.cosmetics-preview-stage-v135{height:64%}.cosmetics-preview-copy-v135 p{display:none}.cosmetics-catalog-v135{padding:8px}.cosmetics-tabs-v135 button{min-height:34px}.cosmetics-grid-v135{grid-auto-rows:106px}.cosmetics-detail-v135{min-height:46px;margin-top:5px}.cosmetics-detail-v135 button{min-height:34px}}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[data-facility-view="facility_operator"] .facility-body.operator-single-v52 {
  display: grid !important;
  grid-template-columns: minmax(300px,.82fr) minmax(520px,1.5fr);
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: linear-gradient(135deg,rgba(7,27,31,.96),rgba(8,17,28,.98));
}

[data-facility-view="facility_operator"] .operator-single-profile-v52 {
  min-width: 0;
  border: 1px solid rgba(86,225,183,.24);
  border-radius: 16px;
  background: rgba(7,18,29,.78);
  overflow: hidden;
}

[data-facility-view="facility_operator"] .operator-single-abilities-v52 {
  min-width: 0;
  border: 1px solid rgba(86,225,183,.24);
  border-radius: 16px;
  background: rgba(7,18,29,.78);
  overflow: hidden;
}

[data-facility-view="facility_operator"] .operator-single-profile-v52 {
  display: grid;
  grid-template-columns: minmax(120px,.75fr) 1.25fr;
  min-height: 0;
}

[data-facility-view="facility_operator"] .operator-single-portrait-v52 {
  position: relative;
  min-height: 260px;
  background: radial-gradient(circle at 50% 28%,rgba(71,214,172,.2),transparent 55%),#07141d;
  overflow: hidden;
}

[data-facility-view="facility_operator"] .operator-single-portrait-v52 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

[data-facility-view="facility_operator"] .operator-single-copy-v52 {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

[data-facility-view="facility_operator"] .operator-single-copy-v52>span {
  font-size: 11px;
  letter-spacing: .18em;
  color: #64e6bb;
}

[data-facility-view="facility_operator"] .operator-single-copy-v52 h2 {
  font-size: 34px;
  line-height: 1;
  margin: 10px 0 8px;
  color: #f0f7f5;
}

[data-facility-view="facility_operator"] .operator-single-copy-v52 strong {
  font-size: 15px;
  color: #9fb3ba;
}

[data-facility-view="facility_operator"] .operator-single-copy-v52 p {
  font-size: 13px;
  line-height: 1.55;
  color: #82969f;
  margin: 14px 0;
}

[data-facility-view="facility_operator"] .operator-loadout-v52 {
  display: flex;
  flex-wrap: wrap;
  --flex-row-gap: 7px;
  --flex-column-gap: 7px;
}

[data-facility-view="facility_operator"] .operator-loadout-v52 em {
  font-style: normal;
  font-size: 11px;
  padding: 6px 9px;
  border: 1px solid rgba(86,225,183,.25);
  border-radius: 999px;
  color: #acebd6;
  background: rgba(39,143,116,.12);
}

[data-facility-view="facility_operator"] .operator-single-abilities-v52 {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

[data-facility-view="facility_operator"] .operator-single-abilities-v52 .operator-ability-list {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-auto-rows: minmax(112px,1fr);
  gap: 12px;
  min-height: 0;
  overflow: visible;
}

[data-facility-view="facility_operator"] .operator-single-abilities-v52 .operator-ability {
  min-width: 0;
  min-height: 0;
  padding: 15px;
  border: 1px solid rgba(104,153,176,.22);
  border-radius: 12px;
  background: linear-gradient(145deg,rgba(11,30,40,.95),rgba(7,19,31,.92));
}

[data-facility-view="facility_operator"] .operator-single-abilities-v52 .operator-ability em {
  display: inline-flex;
  width: auto;
  font-size: 10px;
  color: #72e9c2;
  border: 1px solid rgba(82,220,179,.28);
  border-radius: 999px;
  padding: 3px 7px;
}

[data-facility-view="facility_operator"] .operator-single-abilities-v52 .operator-ability strong {
  font-size: 17px;
  color: #e9f5f2;
  margin: 8px 0 5px;
}

[data-facility-view="facility_operator"] .operator-single-abilities-v52 .operator-ability span {
  font-size: 12px;
  line-height: 1.45;
  color: #91a8af;
}

@media (max-width:980px) {
  [data-facility-view="facility_operator"] .facility-body.operator-single-v52 {
    grid-template-columns: 1fr;
  }
}

@media (max-width:980px) {
  [data-facility-view="facility_operator"] .operator-single-profile-v52 {
    min-height: 260px;
  }
}

@media (max-height:650px) {
  [data-facility-view="facility_operator"] .facility-body.operator-single-v52 {
    overscroll-behavior: contain;
  }
}

@media (max-height:650px) {
  [data-facility-view="facility_operator"] .operator-single-portrait-v52 {
    min-height: 220px;
  }
}

@media (max-height:650px) {
  [data-facility-view="facility_operator"] .operator-single-copy-v52 {
    padding: 15px;
  }
}

@media (max-height:650px) {
  [data-facility-view="facility_operator"] .operator-single-abilities-v52 .operator-ability-list {
    grid-auto-rows: minmax(96px,auto);
  }
}

html {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #191728;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #191728;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #191728;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

:root {
  --safe-top: 0px;
  --safe-right: 0px;
  --safe-bottom: 0px;
  --safe-left: 0px;
  --touch-size: 46px;
  --equip-item-top: 24px;
  --game-ui-scale: 1;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.screen {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
  padding: 2px;
}

.screen.active {
  display: flex;
}

.loader-card {
  width: 520px;
  padding: 34px 28px;
  border-radius: 24px;
  background: rgba(43, 42, 58, .92);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .45);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .1);
}

.home-card {
  width: 520px;
  padding: 34px 28px;
  border-radius: 24px;
  background: rgba(43, 42, 58, .92);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .45);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .1);
}

.result-card {
  width: 520px;
  padding: 34px 28px;
  border-radius: 24px;
  background: rgba(43, 42, 58, .92);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .45);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .1);
}

.guide-card {
  width: 520px;
  padding: 34px 28px;
  border-radius: 24px;
  background: rgba(43, 42, 58, .92);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .1);
}

.loader-card h1 {
  margin: 14px 0 8px;
  font-size: 32px;
}

.home-card h1 {
  margin: 14px 0 8px;
  font-size: 32px;
}

.result-card h1 {
  margin: 14px 0 8px;
  font-size: 32px;
}

.guide-card h1 {
  margin: 14px 0 8px;
  font-size: 32px;
}

.loader-card p {
  line-height: 1.65;
  color: #d9d9e5;
}

.home-card p {
  line-height: 1.65;
  color: #d9d9e5;
}

.result-card p {
  line-height: 1.65;
  color: #d9d9e5;
}

.guide-card p {
  line-height: 1.65;
  color: #d9d9e5;
}

.primary {
  display: block;
  width: 100%;
  height: 52px;
  border-radius: 15px;
  margin: 14px 0 0;
  color: #fff;
  font-weight: 800;
}

.secondary {
  display: block;
  width: 100%;
  height: 52px;
  border-radius: 15px;
  margin: 14px 0 0;
  color: #fff;
  font-weight: 800;
}

.primary {
  background: #ef5a60;
  box-shadow: 0 8px 0 #9f3337;
}

.secondary {
  background: #5a586b;
  box-shadow: 0 8px 0 #393747;
}

.fps-setting {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  grid-gap: 8px;
  align-items: center;
  margin: 20px 0 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(22, 21, 35, .58);
}

.fps-setting span {
  padding: 0 6px;
  color: #d9d9e5;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  z-index: 300;
}

.fps-option {
  height: 36px;
  border-radius: 9px;
  background: rgba(90, 88, 107, .85);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.fps-option.active {
  background: #ef5a60;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16);
}

.safe-logo {
  position: relative;
  margin: 0 auto;
  width: 104px;
  height: 92px;
  border-radius: 13px;
  background: #777773;
  border: 6px solid #171721;
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, .18);
}

.home-logo {
  position: relative;
  margin: 0 auto;
  width: 104px;
  height: 92px;
  border-radius: 13px;
  background: #777773;
  border: 6px solid #171721;
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, .18);
}

.safe-logo:before {
  content: "";
  position: absolute;
  left: 28px;
  top: 28px;
  width: 34px;
  height: 34px;
  border: 8px solid #dce4ec;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #252535;
}

.home-logo:before {
  content: "";
  position: absolute;
  left: 28px;
  top: 28px;
  width: 34px;
  height: 34px;
  border: 8px solid #dce4ec;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #252535;
}

.safe-logo:after {
  content: "";
  position: absolute;
  left: 8px;
  top: 30px;
  width: 12px;
  height: 24px;
  border: 5px solid #252535;
  border-right: 0;
}

.home-logo:after {
  content: "";
  position: absolute;
  left: 8px;
  top: 30px;
  width: 12px;
  height: 24px;
  border: 5px solid #252535;
  border-right: 0;
}

.bar {
  height: 14px;
  border-radius: 999px;
  background: #383749;
  overflow: hidden;
  margin: 24px 0 10px;
}

.bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: #6cd64d;
  border-radius: inherit;
  transition: width .25s;
}

.guide-card {
  text-align: left;
}

.guide-card h1 {
  text-align: center;
}

.guide-card code {
  background: #141320;
  border-radius: 6px;
  padding: 2px 6px;
  color: #9ee270;
}

.guide-card li {
  margin: 8px 0;
  color: #e7e5ef;
}

#stageWrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: #171525;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#gameFrame {
  position: relative;
  width: 100vw;
  height: 56.25vw;
  overflow: visible;
}

#gameCanvas {
  background: #1a1929;
  box-shadow: none;
  touch-action: none;
  display: block;
}

#toast {
  position: fixed;
  left: 50%;
  top: calc(var(--safe-top) + 18px);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s;
  z-index: 500;
}

#toast.show {
  opacity: 1;
}

#hudText {
  position: fixed;
  z-index: 200;
  left: 50%;
  top: calc(var(--safe-top) + 88px);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  max-width: 82vw;
  line-height: 1.18;
  text-align: center;
  pointer-events: none;
  opacity: .95;
  white-space: nowrap;
}

#fpsText {
  position: absolute;
  right: 3.5%;
  bottom: 4.5%;
  font-size: 15px;
  text-align: right;
  color: rgba(255, 255, 255, .82);
  font-weight: 800;
  text-shadow: 0 2px 0 #36313b;
  pointer-events: none;
}

.joy {
  position: absolute;
  left: 10.5%;
  bottom: 13%;
  border-radius: 50%;
  touch-action: none;
}

.joy i {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
}

.round-btn {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
}

.round-btn.switch {
  border: 8px solid rgba(220, 232, 240, .78);
  background: rgba(36, 37, 45, .45);
  color: rgba(255, 255, 255, .9);
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 0 0 10px rgba(0, 0, 0, .16);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .36);
}

.round-btn.attack:before {
  content: "";
  position: absolute;
  top: 27px;
  right: 27px;
  bottom: 27px;
  left: 27px;
  border: 9px solid rgba(255, 255, 255, .85);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
}

.round-btn.attack:after {
  content: "";
  position: absolute;
  border: 9px solid rgba(255, 255, 255, .85);
  border-left-color: transparent;
  border-right-color: transparent;
}

.round-btn.attack:after {
  top: 41px;
  right: 41px;
  bottom: 41px;
  left: 41px;
  border-width: 0;
  border-top: 6px solid rgba(255, 255, 255, .75);
  border-bottom: 6px solid rgba(255, 255, 255, .75);
  border-radius: 0;
}

.round-btn.action {
  background: transparent;
  text-shadow: none;
}

.hidden {
  display: none !important;
}

#quickbar {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

#quickbar button {
  font-size: 28px;
  font-weight: 900;
}

#quickbar button + button {
  margin-left: 14px;
}

#quickbar .weapon-slot {
  position: relative;
  text-align: center;
  display: grid;
  grid-gap: 0;
}

#quickbar .heal-slot {
  position: relative;
  display: grid;
  grid-gap: 0;
}

#quickbar .heal-slot.ready {
  box-shadow: inset 0 0 0 3px rgba(255, 220, 220, .45), 3px 3px 0 rgba(0, 0, 0, .28);
}

#quickbar .heal-slot.active {
  color: #171721;
}

#quickbar #btnBag {
  text-align: center;
  padding: 7px 6px;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(16, 16, 24, .45);
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  height: 100vh;
  overflow: hidden;
  padding: calc(var(--safe-top) + 10px)
    calc(var(--safe-right) + 14px)
    calc(var(--safe-bottom) + 14px)
    calc(var(--safe-left) + 64px);
}

.bag-panel {
  flex: 1 1 0;
  min-width: 0;
  max-height: 100%;
  background: rgba(135, 132, 144, .95);
  border: 3px solid #15151f;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .65);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.source-panel {
  flex-basis: 39%;
  max-width: 520px;
}

.backpack-panel {
  flex-basis: 58%;
  max-width: 700px;
}

.bag-panel h2 {
  flex: 0 0 auto;
  height: 26px;
  margin: 0 0 6px;
  text-align: center;
  font-size: 21px;
  line-height: 26px;
  color: #f6f6f6;
  text-shadow: 0 3px 0 #32323a, 2px 0 0 #32323a, -2px 0 0 #32323a;
  white-space: nowrap;
}

.warehouse-actions {
  flex: 0 0 auto;
  margin: 0 0 6px;
  text-align: center;
}

.warehouse-actions button {
  min-width: 132px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #76d95d;
  color: #171721;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .32);
}

.panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 2px 5px calc(var(--safe-bottom) + 10px);
  border-radius: 8px;
  scrollbar-width: thin;
}

.panel-scroll::-webkit-scrollbar {
  width: 7px;
}

.panel-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .12);
  border-radius: 999px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .28);
  border-radius: 999px;
}

.close-btn {
  position: absolute;
  left: calc(var(--safe-left) + 10px);
  top: calc(var(--safe-top) + 10px);
  width: var(--touch-size);
  height: var(--touch-size);
  border-radius: 8px;
  background: #f05f69;
  color: #15151f;
  font-size: 38px;
  line-height: 40px;
  border: 4px solid #15151f;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .45);
  z-index: 3;
}

.grid {
  display: grid;
  grid-gap: 8px;
}

.source-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 42px;
  align-content: flex-start;
}

.bag-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: 38px;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 3fr;
  grid-template-rows: 60px 60px;
  grid-gap: 10px;
  margin-bottom: 10px;
}

.slot {
  position: relative;
  border-radius: 9px;
  background: rgba(113, 107, 119, .88);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
  font-weight: 900;
  padding: 0;
  overflow: visible;
  min-height: 0;
}

.equip-slot {
  overflow: hidden;
}

.slot.hl {
  background: rgba(84, 144, 72, .92);
  box-shadow: inset 0 0 0 3px rgba(135, 237, 100, .8);
}

.slot.occupied {
  background: rgba(96, 91, 104, .78);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08);
}

.slot.blocked {
  background: rgba(151, 62, 72, .84);
  box-shadow: inset 0 0 0 3px rgba(240, 95, 105, .82);
}

.item {
  position: absolute;
  left: 7px;
  top: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.04;
  padding: 1px 3px;
  font-size: 10px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: clip;
  background: #535258;
  border: 3px solid #23232a;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .28);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  z-index: 1;
}

.item.dragging {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  opacity: .94;
  left: 0;
  top: 0;
  will-change: transform;
  cursor: grabbing;
}

.item.w2 {
  width: calc(100% - 14px);
}

.item.money {
  background: #d7a94d;
}

.item.gun {
  background: #6c6d68;
}

.item.med {
  background: #d86565;
}

.item.rare {
  background: #c9c1d6;
}

.item.gear {
  background: #7182a0;
}

.item.equipped {
  height: 28px;
  font-size: 10px;
}

.item.label-len-1 {
  font-size: 10px;
}

.item.label-len-2 {
  font-size: 10px;
}

.item.label-len-3 {
  font-size: 9px;
}

.item.label-len-4 {
  font-size: 8px;
  letter-spacing: -0.05em;
}

.item.label-len-5 {
  font-size: 8px;
  letter-spacing: -0.05em;
}

.item.label-len-long {
  font-size: 8px;
  letter-spacing: -0.05em;
}

.item.w2 {
  letter-spacing: -0.01em;
}

.slot-label {
  position: absolute;
  left: 6px;
  top: 5px;
  max-width: calc(100% - 12px);
  font-size: 9px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, .72);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}

.loot-list {
  min-height: 80px;
  display: flex;
  justify-content: center;
  --flex-row-gap: 12px;
  --flex-column-gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.loot-pill {
  padding: 8px 12px;
  border-radius: 12px;
  background: #555367;
  font-weight: 800;
}

.result-card {
  max-height: 88vh;
  overflow: auto;
}

@media (max-aspect-ratio: 16/9) {
  #hudText {
    top: 17%;
    font-size: 34px;
  }
}

@media (max-aspect-ratio: 16/9) {
  .joy {
    left: 9%;
    bottom: 12%;
    width: 142px;
    height: 142px;
  }
}

@media (max-aspect-ratio: 16/9) {
  .joy i {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
  }
}

@media (max-aspect-ratio: 16/9) {
  .round-btn {
    width: 98px;
    height: 98px;
  }
}

@media (max-aspect-ratio: 16/9) {
  .round-btn.attack {
    right: 8%;
    bottom: 11%;
  }
}

@media (max-aspect-ratio: 16/9) {
  .round-btn.switch {
    right: 16.5%;
    bottom: 14%;
    width: 66px;
    height: 66px;
    border-width: 7px;
    font-size: 29px;
  }
}

@media (max-aspect-ratio: 16/9) {
  .round-btn.action {
    right: 15%;
    bottom: 30%;
    width: 88px;
    height: 88px;
    font-size: 48px;
  }
}

@media (max-aspect-ratio: 16/9) {
  #quickbar {
    bottom: 5%;
    --flex-row-gap: 9px;
    --flex-column-gap: 9px;
  }
}

@media (max-aspect-ratio: 16/9) {
  #quickbar button {
    width: 58px;
    height: 50px;
    font-size: 22px;
  }
}

@media (max-aspect-ratio: 16/9) {
  #quickbar .weapon-slot {
    grid-template-rows: 12px 1fr;
    padding: 3px 4px;
  }
}

@media (max-aspect-ratio: 16/9) {
  #quickbar .heal-slot {
    grid-template-rows: 12px 1fr;
    padding: 3px 4px;
  }
}

@media (max-aspect-ratio: 16/9) {
  #quickbar .weapon-slot .slot-num {
    font-size: 11px;
    line-height: 11px;
  }
}

@media (max-aspect-ratio: 16/9) {
  #quickbar .heal-slot .slot-num {
    font-size: 11px;
    line-height: 11px;
  }
}

@media (max-aspect-ratio: 16/9) {
  #quickbar .weapon-slot .slot-icon {
    font-size: 20px;
    line-height: 22px;
  }
}

@media (max-aspect-ratio: 16/9) {
  #quickbar .heal-slot .slot-icon {
    font-size: 20px;
    line-height: 22px;
  }
}

@media (max-aspect-ratio: 16/9) {
  #quickbar #btnBag {
    width: 64px;
    font-size: 17px;
    line-height: 18px;
    padding: 6px 4px;
  }
}

@media (max-aspect-ratio: 16/9) {
  .overlay {
    --flex-row-gap: 8px;
    --flex-column-gap: 8px;
  }
}

@media (max-aspect-ratio: 16/9) {
  .bag-panel {
    padding: 10px;
  }
}

@media (max-aspect-ratio: 16/9) {
  .bag-panel h2 {
    text-shadow: 0 2px 0 #32323a, 2px 0 0 #32323a, -2px 0 0 #32323a;
  }
}

@media (max-aspect-ratio: 16/9) {
  .equip-grid {
    grid-gap: 10px;
  }
}

@media (max-aspect-ratio: 16/9) {
  .close-btn {
    --touch-size: 46px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #hudText {
    top: 15%;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .joy {
    left: 8%;
    bottom: 12%;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .round-btn {
    width: 96px;
    height: 96px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .round-btn.action {
    font-size: 46px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar button {
    font-size: 22px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .weapon-slot {
    padding: 3px 4px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .heal-slot {
    grid-template-rows: 12px 1fr;
    padding: 3px 4px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .weapon-slot .slot-icon {
    font-size: 20px;
    line-height: 22px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .heal-slot .slot-icon {
    font-size: 20px;
    line-height: 22px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar #btnBag {
    font-size: 17px;
    line-height: 18px;
    padding: 6px 4px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #fpsText {
    bottom: 3.5%;
    font-size: 13px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .overlay {
    --flex-row-gap: 10px;
    --flex-column-gap: 10px;
    padding: calc(var(--safe-top) + 8px)
        calc(var(--safe-right) + 10px)
        calc(var(--safe-bottom) + 10px)
        calc(var(--safe-left) + 58px);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .bag-panel h2 {
    height: 28px;
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 28px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .warehouse-actions button {
    min-height: 36px;
    font-size: 15px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .source-grid {
    grid-auto-rows: 36px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .bag-grid {
    grid-auto-rows: 34px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .item {
    font-size: 8px;
    border-width: 2px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .item.label-len-3 {
    font-size: 8px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .item.label-len-4 {
    font-size: 7px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .item.label-len-5 {
    font-size: 7px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .item.label-len-long {
    font-size: 7px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .slot-label {
    font-size: 8px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .close-btn {
    --touch-size: 44px;
    font-size: 34px;
    line-height: 38px;
  }
}

body[data-modal="backpack"] .overlay.inventory-only .source-panel {
  display: none;
}

body[data-modal="backpack"] .overlay.inventory-only .backpack-panel {
  flex: 0 1 78vw;
  max-width: 760px;
}

.round-btn.locked {
  opacity: .42;
  -webkit-filter: grayscale(.55);
  filter: grayscale(.55);
}

body[data-game-mode="healing"] #btnHeal {
  opacity: 1;
  -webkit-filter: none;
  filter: none;
}

body[data-game-mode="searching"] #joystick {
  opacity: .45;
}

body[data-modal="container"] #joystick {
  opacity: .45;
}

body[data-modal="backpack"] #joystick {
  opacity: .45;
}

body[data-modal="container"] #btnAttack {
  pointer-events: none;
}

body[data-modal="backpack"] #btnAttack {
  pointer-events: none;
}

body[data-modal="container"] #btnSwitchWeapon {
  pointer-events: none;
}

body[data-modal="backpack"] #btnSwitchWeapon {
  pointer-events: none;
}

body[data-modal="container"] #quickbar {
  pointer-events: none;
}

body[data-modal="backpack"] #quickbar {
  pointer-events: none;
}

#gameFrame {
  --ui-safe-bottom: 0px;
  --ui-safe-right: 0px;
}

.joy {
  z-index: 8;
}

#quickbar {
  z-index: 18;
  justify-content: center;
  --flex-row-gap: 6px;
  --flex-column-gap: 6px;
}

.round-btn {
  z-index: 24;
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar {
    max-width: 56%;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .round-btn.switch {
    border-width: 6px;
    font-size: 25px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  body[data-modal="backpack"] .overlay.inventory-only .backpack-panel {
    flex-basis: 78vw;
    max-width: 720px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .overlay {
    padding: calc(var(--safe-top) + 6px)
        calc(var(--safe-right) + 8px)
        calc(var(--safe-bottom) + 8px)
        calc(var(--safe-left) + 54px);
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .bag-panel {
    padding: 8px;
    border-width: 3px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .bag-panel h2 {
    height: 24px;
    font-size: 19px;
    line-height: 24px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .warehouse-actions button {
    min-height: 34px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .source-grid {
    grid-auto-rows: 34px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .bag-grid {
    grid-auto-rows: 32px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .item {
    left: 5px;
    top: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    font-size: 8px;
    padding: 0 2px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .item.label-len-3 {
    font-size: 7px;
    letter-spacing: -0.06em;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .item.label-len-4 {
    font-size: 7px;
    letter-spacing: -0.06em;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .item.label-len-5 {
    font-size: 7px;
    letter-spacing: -0.06em;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .item.label-len-long {
    font-size: 7px;
    letter-spacing: -0.06em;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .item.equipped {
    height: 24px;
    font-size: 8px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  .slot-label {
    left: 5px;
    top: 4px;
    font-size: 8px;
  }
}

@media (orientation: portrait) {
  .overlay {
    flex-direction: column;
    --flex-row-gap: 10px;
    --flex-column-gap: 10px;
    padding: calc(var(--safe-top) + 58px)
        calc(var(--safe-right) + 12px)
        calc(var(--safe-bottom) + 12px)
        calc(var(--safe-left) + 12px);
  }
}

@media (orientation: portrait) {
  .source-panel {
    width: 100%;
    max-width: none;
  }
}

@media (orientation: portrait) {
  .backpack-panel {
    width: 100%;
    max-width: none;
  }
}

@media (orientation: portrait) {
  .source-panel {
    flex: 0 1 43%;
  }
}

@media (orientation: portrait) {
  .backpack-panel {
    flex: 1 1 57%;
  }
}

@media (orientation: portrait) {
  body[data-modal="backpack"] .overlay.inventory-only {
    padding-top: calc(var(--safe-top) + 58px);
  }
}

@media (orientation: portrait) {
  body[data-modal="backpack"] .overlay.inventory-only .backpack-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
}

@media (orientation: portrait) {
  .bag-panel h2 {
    height: 30px;
    font-size: 22px;
    line-height: 30px;
  }
}

@media (orientation: portrait) {
  .source-grid {
    grid-auto-rows: 34px;
  }
}

@media (orientation: portrait) {
  .bag-grid {
    grid-auto-rows: 32px;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .joy {
    left: 7%;
    bottom: 24%;
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .joy i {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  #quickbar {
    -webkit-transform: translateX(-58%);
    transform: translateX(-58%);
    max-width: 54%;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .round-btn.switch {
    right: calc(24% + var(--ui-safe-right));
  }
}

#quickbar .heal-slot .slot-icon {
  -webkit-transform-origin: center;
  transform-origin: center;
}

body:not([data-screen="game"]) #hudText {
  display: none;
}

#fpsText {
  display: none !important;
}

#gameCanvas {
  -webkit-touch-callout: none;
}

#gameFrame {
  -webkit-touch-callout: none;
}

.panel-scroll {
  -webkit-touch-callout: none;
}

.item {
  -webkit-touch-callout: none;
}

.bag-panel {
  contain: layout paint;
}

.panel-scroll {
  contain: layout paint;
}

.cap-legacy-layout #gameFrame {
  width: 100%;
  height: 100%;
}

.cap-legacy-layout .joy {
  left: 8%;
  bottom: 13%;
  width: 138px;
  height: 138px;
  z-index: 40;
}

.cap-legacy-layout .joy i {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
}

.cap-legacy-layout .round-btn {
  width: 96px;
  height: 96px;
  z-index: 60;
}

.cap-legacy-layout .round-btn.attack {
  right: 7%;
  bottom: 20%;
}

.cap-legacy-layout .round-btn.attack:before {
  top: 23px;
  right: 23px;
  bottom: 23px;
  left: 23px;
  border-width: 7px;
}

.cap-legacy-layout .round-btn.attack:after {
  top: 36px;
  right: 36px;
  bottom: 36px;
  left: 36px;
  border-top-width: 5px;
  border-bottom-width: 5px;
}

.cap-legacy-layout .round-btn.switch {
  right: 18%;
  bottom: 23%;
  width: 64px;
  height: 64px;
  border-width: 6px;
  font-size: 27px;
  line-height: 1;
}

.cap-legacy-layout .round-btn.action {
  right: 9%;
  bottom: 42%;
  width: 86px;
  height: 86px;
  font-size: 44px;
}

.cap-legacy-layout #quickbar {
  bottom: 4%;
  z-index: 55;
}

.cap-legacy-layout #quickbar button {
  width: 56px;
  height: 48px;
  font-size: 20px;
}

.cap-legacy-layout #quickbar #btnBag {
  font-size: 15px;
  line-height: 16px;
}

.cap-legacy-layout #quickbar .weapon-slot {
  grid-template-rows: 12px 1fr;
  padding: 3px 4px;
}

.cap-legacy-layout #quickbar .weapon-slot .slot-icon {
  font-size: 14px;
  line-height: 22px;
}

.cap-legacy-layout #hudText {
  top: 15%;
  font-size: 30px;
}

.cap-legacy-layout #toast {
  font-size: 22px;
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout .joy {
    left: 7%;
    bottom: 14%;
    width: 116px;
    height: 116px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout .joy i {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout .round-btn.attack {
    right: 6%;
    bottom: 22%;
    width: 86px;
    height: 86px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout .round-btn.switch {
    right: 19%;
    bottom: 25%;
    width: 56px;
    height: 56px;
    font-size: 24px;
    border-width: 5px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout .round-btn.action {
    right: 8%;
    bottom: 46%;
    width: 76px;
    height: 76px;
    font-size: 40px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout #quickbar {
    bottom: 3%;
    --flex-row-gap: 6px;
    --flex-column-gap: 6px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout #quickbar button {
    width: 50px;
    height: 44px;
    font-size: 18px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout #quickbar #btnBag {
    width: 58px;
    font-size: 13px;
    line-height: 14px;
  }
}

#quickbar .heal-slot {
  overflow: hidden;
  text-align: center;
}

#quickbar .heal-slot .slot-num {
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
}

#quickbar .heal-slot .slot-icon {
  text-overflow: clip;
}

.cap-legacy-layout #quickbar .heal-slot {
  min-width: 64px;
  height: 46px;
  padding: 4px 3px;
  grid-template-rows: 11px 1fr;
}

.cap-legacy-layout #quickbar .heal-slot .slot-num {
  font-size: 9px;
  line-height: 10px;
  letter-spacing: -0.04em;
}

.cap-legacy-layout #quickbar .heal-slot .slot-icon {
  font-size: 10px;
  line-height: 17px;
  letter-spacing: -0.08em;
}

.cap-legacy-layout .bag-panel .equip-grid:not(.hidden) {
  display: grid;
  grid-template-rows: 58px 58px;
  grid-gap: 8px;
  margin-bottom: 10px;
}

.cap-legacy-layout .bag-panel .equip-slot .slot-label {
  font-size: 10px;
  line-height: 11px;
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout #quickbar .heal-slot {
    width: 60px;
    min-width: 60px;
    height: 44px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout #quickbar .heal-slot .slot-num {
    font-size: 8px;
    line-height: 9px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout #quickbar .heal-slot .slot-icon {
    font-size: 9px;
    line-height: 16px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout .bag-panel .equip-grid:not(.hidden) {
    grid-template-rows: 46px 46px;
    grid-gap: 6px;
    margin-bottom: 8px;
  }
}

#bagOverlay .bag-panel {
  border-color: #12161a;
}

#bagOverlay .source-panel {
  max-width: 500px;
}

#bagOverlay .backpack-panel {
  max-width: 720px;
}

#bagOverlay .bag-panel h2 {
  margin-bottom: 9px;
}

#bagOverlay .warehouse-actions {
  margin-bottom: 9px;
}

#bagOverlay .warehouse-actions button {
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease, -webkit-transform .14s ease, -webkit-filter .14s ease;
}

#bagOverlay .close-btn {
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease, -webkit-transform .14s ease, -webkit-filter .14s ease;
}

#bagOverlay .warehouse-actions button:active {
  box-shadow: 0 2px 0 rgba(0, 0, 0, .42);
}

#bagOverlay .close-btn:active {
  -webkit-transform: translateY(1px) scale(.98);
  transform: translateY(1px) scale(.98);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .42);
}

#bagOverlay .close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: #12161a;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

#bagOverlay .panel-scroll {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055);
}

#bagOverlay .slot {
  border: 1px solid rgba(255, 255, 255, .07);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease, -webkit-filter .16s ease;
}

#bagOverlay .slot.hl {
  border-color: rgba(166, 229, 126, .82);
}

#bagOverlay .slot.blocked {
  border-color: rgba(235, 116, 105, .88);
}

#bagOverlay .item {
  border-width: 2px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform .16s ease, opacity .16s ease, filter .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease, -webkit-transform .16s ease, -webkit-filter .16s ease;
  -webkit-animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both;
  animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both;
  contain: paint;
}

#bagOverlay .item.label-len-1 {
  font-size: 12px;
}

#bagOverlay .item.label-len-2 {
  font-size: 12px;
}

#bagOverlay .item.label-len-3 {
  font-size: 11px;
}

#bagOverlay .item.label-len-4 {
  font-size: 10px;
  letter-spacing: 0;
}

#bagOverlay .item.label-len-5 {
  font-size: 10px;
  letter-spacing: 0;
}

#bagOverlay .item.label-len-long {
  font-size: 10px;
  letter-spacing: 0;
}

#bagOverlay .item.w2 {
  letter-spacing: 0;
}

#bagOverlay .equip-slot .item.equipped {
  top: auto;
  bottom: 7px;
  height: 28px;
  font-size: 10px;
  line-height: 1;
}

#bagOverlay .item.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  z-index: 600;
  pointer-events: none;
  margin: 0;
  opacity: .96;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  will-change: transform;
  -webkit-animation: itemDragLift .14s cubic-bezier(.2, .8, .2, 1) both;
  animation: itemDragLift .14s cubic-bezier(.2, .8, .2, 1) both;
  transition: opacity .14s ease, filter .14s ease, box-shadow .14s ease, border-color .14s ease, background-color .14s ease, -webkit-filter .14s ease;
}

#bagOverlay .item.drag-ghost.drop-ok {
  border-color: #b7f08d;
  box-shadow: 0 8px 18px rgba(59, 95, 45, .32), 0 0 0 2px rgba(170, 239, 129, .44), inset 0 1px 0 rgba(255, 255, 255, .2);
  -webkit-filter: brightness(1.08) saturate(1.08);
  filter: brightness(1.08) saturate(1.08);
}

#bagOverlay .item.drag-ghost.drop-blocked {
  border-color: #ee8175;
  box-shadow: 0 8px 18px rgba(95, 39, 39, .36), 0 0 0 2px rgba(238, 129, 117, .46), inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-filter: saturate(.92) brightness(.92);
  filter: saturate(.92) brightness(.92);
}

@-webkit-keyframes itemEnter{from {
    opacity: 0;
    -webkit-transform: translate3d(0, 4px, 0) scale(.97);
            transform: translate3d(0, 4px, 0) scale(.97);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0) scale(1);
            transform: translate3d(0, 0, 0) scale(1);
  }}

@keyframes itemEnter{from {
    opacity: 0;
    -webkit-transform: translate3d(0, 4px, 0) scale(.97);
            transform: translate3d(0, 4px, 0) scale(.97);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0) scale(1);
            transform: translate3d(0, 0, 0) scale(1);
  }}

@-webkit-keyframes itemDragLift{from {
    opacity: .72;
    -webkit-filter: brightness(.96);
            filter: brightness(.96);
  }
  to {
    opacity: .96;
    -webkit-filter: brightness(1.04);
            filter: brightness(1.04);
  }}

@-webkit-keyframes itemPlaced{0% {
    opacity: .86;
    -webkit-transform: scale(.94);
            transform: scale(.94);
  }
  70% {
    opacity: 1;
    -webkit-transform: scale(1.035);
            transform: scale(1.035);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }}

@media (max-height: 380px) and (orientation: landscape) {
  #bagOverlay .bag-panel h2 {
    height: 24px;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 24px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  #bagOverlay .panel-scroll {
    padding: 3px 5px calc(var(--safe-bottom) + 8px);
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  #bagOverlay .grid {
    grid-gap: 6px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  #bagOverlay .item {
    font-size: 9px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  #bagOverlay .item.label-len-3 {
    font-size: 8px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  #bagOverlay .item.label-len-4 {
    font-size: 8px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  #bagOverlay .item.label-len-5 {
    font-size: 8px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  #bagOverlay .item.label-len-long {
    font-size: 8px;
  }
}

@media (max-height: 380px) and (orientation: landscape) {
  #bagOverlay .equip-slot .item.equipped {
    bottom: 5px;
    max-width: 108px;
    height: 22px;
    font-size: 8px;
  }
}

@media (max-width: 900px), (max-height: 520px) {
  #bagOverlay .close-btn {
    font-size: 30px;
    line-height: 1;
  }
}

@media (max-width: 900px), (max-height: 520px) {
  #bagOverlay .item.label-len-1 {
    font-size: 8px;
  }
}

@media (max-width: 900px), (max-height: 520px) {
  #bagOverlay .item.label-len-2 {
    font-size: 8px;
  }
}

@media (max-width: 900px), (max-height: 520px) {
  #bagOverlay .item.label-len-3 {
    font-size: 7px;
  }
}

@media (max-width: 900px), (max-height: 520px) {
  #bagOverlay .item.label-len-4 {
    font-size: 7px;
  }
}

@media (max-width: 900px), (max-height: 520px) {
  #bagOverlay .item.label-len-5 {
    font-size: 7px;
  }
}

@media (max-width: 900px), (max-height: 520px) {
  #bagOverlay .item.label-len-long {
    font-size: 7px;
  }
}

.cap-legacy-layout #bagOverlay .bag-panel h2 {
  letter-spacing: 0;
}

.cap-legacy-layout #bagOverlay .slot-label {
  font-size: 10px;
  letter-spacing: 0;
}

.cap-legacy-layout #bagOverlay .item {
  font-size: 8px;
  letter-spacing: 0;
}

.cap-legacy-layout #bagOverlay .item.label-len-1 {
  font-size: 8px;
}

.cap-legacy-layout #bagOverlay .item.label-len-2 {
  font-size: 8px;
}

.cap-legacy-layout #bagOverlay .item.label-len-3 {
  font-size: 7px;
  letter-spacing: 0;
}

.cap-legacy-layout #bagOverlay .item.label-len-4 {
  font-size: 7px;
  letter-spacing: 0;
}

.cap-legacy-layout #bagOverlay .item.label-len-5 {
  font-size: 7px;
  letter-spacing: 0;
}

.cap-legacy-layout #bagOverlay .item.label-len-long {
  font-size: 7px;
  letter-spacing: 0;
}

.cap-legacy-layout #bagOverlay .equip-slot .item.equipped {
  font-size: 8px;
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .item.drag-ghost {
    -webkit-animation: none;
    animation: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .item.placed {
    -webkit-animation: none;
    animation: none;
    transition: none;
  }
}

#bagOverlay .item.item-square {
  align-items: center;
  justify-items: center;
  padding: 0 2px;
}

#bagOverlay .item.item-square.med {
  -webkit-animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both, itemSurfacePulse .7s ease-out both;
  animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both, itemSurfacePulse .7s ease-out both;
}

#bagOverlay .item.item-square.gear {
  -webkit-animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both, itemSurfacePulse .7s ease-out both;
  animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both, itemSurfacePulse .7s ease-out both;
}

#bagOverlay .item.item-square.money {
  -webkit-animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both, itemSurfacePulse .7s ease-out both;
  animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both, itemSurfacePulse .7s ease-out both;
}

#bagOverlay .item.item-square.rare {
  -webkit-animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both, itemSurfacePulse .7s ease-out both;
  animation: itemEnter .18s cubic-bezier(.2, .8, .2, 1) both, itemSurfacePulse .7s ease-out both;
}

#quickbar {
  --quickbar-key-size: 12px;
  --quickbar-item-size: 18px;
}

#quickbar button {
  text-align: center;
  letter-spacing: 0;
}

#quickbar .weapon-slot .slot-icon {
  max-width: 100%;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  -webkit-transform: none;
  transform: none;
}

#quickbar .heal-slot .slot-icon {
  max-width: 100%;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  -webkit-transform: none;
  transform: none;
}

#quickbar .weapon-slot.active {
  -webkit-animation: quickbarItemReady .22s cubic-bezier(.2, .8, .2, 1) both;
  animation: quickbarItemReady .22s cubic-bezier(.2, .8, .2, 1) both;
}

#quickbar .heal-slot.ready {
  -webkit-animation: quickbarItemReady .22s cubic-bezier(.2, .8, .2, 1) both;
  animation: quickbarItemReady .22s cubic-bezier(.2, .8, .2, 1) both;
}

#quickbar .heal-slot.active {
  -webkit-animation: quickbarItemReady .22s cubic-bezier(.2, .8, .2, 1) both;
  animation: quickbarItemReady .22s cubic-bezier(.2, .8, .2, 1) both;
}

@-webkit-keyframes itemSurfacePulse{0% {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .1);
  }
  100% {
    box-shadow: 0 3px 0 rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .16);
  }}

@keyframes itemSurfacePulse{0% {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .1);
  }
  100% {
    box-shadow: 0 3px 0 rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .16);
  }}

@-webkit-keyframes quickbarItemReady{0% {
    -webkit-transform: translate3d(0, 2px, 0) scale(.96);
            transform: translate3d(0, 2px, 0) scale(.96);
    opacity: .86;
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) scale(1);
            transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }}

@keyframes quickbarItemReady{0% {
    -webkit-transform: translate3d(0, 2px, 0) scale(.96);
            transform: translate3d(0, 2px, 0) scale(.96);
    opacity: .86;
  }
  100% {
    -webkit-transform: translate3d(0, 0, 0) scale(1);
            transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar {
    --quickbar-key-size: 11px;
    --quickbar-item-size: 16px;
  }
}

.cap-legacy-layout #quickbar {
  --quickbar-key-size: 10px;
  --quickbar-item-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .item.item-square.med {
    -webkit-animation: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .item.item-square.gear {
    -webkit-animation: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .item.item-square.money {
    -webkit-animation: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .item.item-square.rare {
    -webkit-animation: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #quickbar .weapon-slot.active {
    -webkit-animation: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #quickbar .heal-slot.ready {
    -webkit-animation: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #quickbar .heal-slot.active {
    -webkit-animation: none;
    animation: none;
  }
}

#bagOverlay .item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}

body > .item.drag-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}

#bagOverlay .item.item-square {
  display: flex;
}

body > .item.drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  z-index: 600;
  pointer-events: none;
  margin: 0;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  will-change: transform;
  transition: opacity .14s ease, filter .14s ease, box-shadow .14s ease, border-color .14s ease, background-color .14s ease, -webkit-filter .14s ease;
}

#bagOverlay .item .item-art {
  position: relative;
  flex: 0 0 auto;
}

body > .item.drag-ghost .item-art {
  position: relative;
  flex: 0 0 auto;
}

#quickbar .slot-art {
  position: relative;
  flex: 0 0 auto;
}

#bagOverlay .equip-slot .item.equipped .item-art {
  max-width: 112px;
  min-height: 14px;
}

body > .item.drag-ghost.equipped .item-art {
  max-width: 112px;
  min-height: 14px;
}

body > .item.drag-ghost.drop-ok .item-art {
  opacity: 1;
}

#bagOverlay .item.drag-origin .item-art {
  opacity: .45;
  -webkit-filter: saturate(.8) brightness(.9) drop-shadow(0 2px 0 rgba(0, 0, 0, .28));
  filter: saturate(.8) brightness(.9) drop-shadow(0 2px 0 rgba(0, 0, 0, .28));
}

#quickbar .weapon-slot .slot-icon {
  height: 100%;
  font-size: 0;
  line-height: 0;
}

#quickbar .heal-slot .slot-icon {
  height: 100%;
  font-size: 0;
  line-height: 0;
}

#quickbar .slot-count {
  position: absolute;
  letter-spacing: 0;
  text-shadow: none;
}

#quickbar .slot-empty {
  color: rgba(255, 255, 255, .55);
  font-size: 18px;
  line-height: 20px;
}

[data-item-art="body-armor"] .item-art::before {
  box-shadow: 34px 0 0 #6e87a2;
}

[data-item-art="body-armor"] .slot-art::before {
  box-shadow: 34px 0 0 #6e87a2;
}

[data-item-art="body-armor"] .item-art::after {
  border: 2px solid rgba(35, 43, 52, .55);
}

[data-item-art="body-armor"] .slot-art::after {
  border: 2px solid rgba(35, 43, 52, .55);
}

@-webkit-keyframes itemArtPop{from {
    opacity: 0;
    -webkit-filter: brightness(.9) drop-shadow(0 2px 0 rgba(0, 0, 0, .2));
            filter: brightness(.9) drop-shadow(0 2px 0 rgba(0, 0, 0, .2));
  }
  to {
    opacity: 1;
    -webkit-filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .28));
            filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .28));
  }}

@-webkit-keyframes itemArtDrag{from {
    opacity: .8;
    -webkit-filter: brightness(.96) drop-shadow(0 2px 0 rgba(0, 0, 0, .22));
            filter: brightness(.96) drop-shadow(0 2px 0 rgba(0, 0, 0, .22));
  }
  to {
    opacity: 1;
    -webkit-filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .28));
            filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .28));
  }}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .slot-count {
    font-size: 9px;
    line-height: 11px;
  }
}

#bagOverlay .item {
  --item-edge: #101419;
  --item-glint: rgba(255, 255, 255, .22);
  --item-shadow: rgba(0, 0, 0, .42);
  --item-deep-shadow: rgba(0, 0, 0, .58);
  border-color: #11161b;
}

body > .item.drag-ghost {
  --item-edge: #101419;
  --item-glint: rgba(255, 255, 255, .22);
  --item-shadow: rgba(0, 0, 0, .42);
  --item-deep-shadow: rgba(0, 0, 0, .58);
  border-color: #11161b;
}

body > .item.drag-ghost.med {
  background: radial-gradient(circle at 72% 18%, rgba(255, 255, 255, .22), transparent 24%),
    linear-gradient(180deg, #d96058 0%, #9f3336 100%);
}

body > .item.drag-ghost.money {
  background: radial-gradient(circle at 68% 18%, rgba(255, 238, 176, .34), transparent 26%),
    linear-gradient(180deg, #d3a848 0%, #866327 100%);
}

body > .item.drag-ghost.gun {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 34%),
    linear-gradient(180deg, #686d65 0%, #3f453f 100%);
}

body > .item.drag-ghost.rare {
  background: radial-gradient(circle at 74% 20%, rgba(255, 255, 255, .32), transparent 24%),
    linear-gradient(180deg, #c8c0d5 0%, #82789c 100%);
}

body > .item.drag-ghost.gear {
  background: radial-gradient(circle at 70% 18%, rgba(201, 229, 255, .2), transparent 25%),
    linear-gradient(180deg, #6f879e 0%, #3f5367 100%);
}

body > .item.drag-ghost {
  opacity: .97;
  -webkit-animation: itemDragLift .16s cubic-bezier(.2, .8, .2, 1) both;
  animation: itemDragLift .16s cubic-bezier(.2, .8, .2, 1) both;
}

body > .item.drag-ghost.drop-ok {
  border-color: #aee879;
  box-shadow: 0 14px 28px rgba(30, 65, 26, .44),
    0 0 0 2px rgba(172, 237, 114, .62),
    0 0 18px rgba(152, 224, 98, .36),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  -webkit-filter: brightness(1.08) saturate(1.12);
  filter: brightness(1.08) saturate(1.12);
}

body > .item.drag-ghost.drop-blocked {
  border-color: #ee746c;
  box-shadow: 0 14px 28px rgba(83, 20, 21, .45),
    0 0 0 2px rgba(238, 116, 108, .62),
    0 0 16px rgba(238, 90, 82, .28),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  -webkit-filter: saturate(.78) brightness(.9);
  filter: saturate(.78) brightness(.9);
}

#bagOverlay .item.drag-origin {
  opacity: .25;
  -webkit-filter: saturate(.65) brightness(.75);
  filter: saturate(.65) brightness(.75);
  -webkit-transform: scale(.94);
  transform: scale(.94);
}

#bagOverlay .item.placed {
  -webkit-animation: itemPlaced .2s cubic-bezier(.18, .9, .24, 1) both;
  animation: itemPlaced .2s cubic-bezier(.18, .9, .24, 1) both;
}

#bagOverlay .item .item-art {
  width: 76%;
  height: 76%;
  min-width: 18px;
  min-height: 18px;
  max-width: 46px;
  max-height: 46px;
  -webkit-filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .34))
    drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .34))
    drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
  -webkit-animation: itemArtPop .18s cubic-bezier(.2, .8, .2, 1) both;
  animation: itemArtPop .18s cubic-bezier(.2, .8, .2, 1) both;
}

body > .item.drag-ghost .item-art {
  width: 76%;
  height: 76%;
  min-width: 18px;
  min-height: 18px;
  max-width: 46px;
  max-height: 46px;
  -webkit-filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .34))
    drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .34))
    drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
}

#quickbar .slot-art {
  -webkit-filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .34))
    drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .34))
    drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
  -webkit-animation: itemArtPop .18s cubic-bezier(.2, .8, .2, 1) both;
  animation: itemArtPop .18s cubic-bezier(.2, .8, .2, 1) both;
}

#bagOverlay .item.w2 .item-art {
  width: 88%;
  height: 58%;
  max-width: 104px;
  max-height: 36px;
}

body > .item.drag-ghost.w2 .item-art {
  width: 88%;
  height: 58%;
  max-width: 104px;
  max-height: 36px;
}

#bagOverlay .equip-slot .item.equipped .item-art {
  width: 82%;
  height: 68%;
  max-height: 22px;
}

body > .item.drag-ghost.equipped .item-art {
  width: 82%;
  height: 68%;
  max-height: 22px;
}

body > .item.drag-ghost .item-art {
  -webkit-animation: itemArtDrag .16s cubic-bezier(.2, .8, .2, 1) both;
  animation: itemArtDrag .16s cubic-bezier(.2, .8, .2, 1) both;
}

body > .item.drag-ghost.drop-ok .item-art {
  -webkit-filter: brightness(1.12)
    drop-shadow(0 2px 0 rgba(0, 0, 0, .3))
    drop-shadow(0 0 8px rgba(172, 237, 114, .34));
  filter: brightness(1.12)
    drop-shadow(0 2px 0 rgba(0, 0, 0, .3))
    drop-shadow(0 0 8px rgba(172, 237, 114, .34));
}

body > .item.drag-ghost.drop-blocked .item-art {
  opacity: .82;
  -webkit-filter: grayscale(.24)
    brightness(.9)
    drop-shadow(0 2px 0 rgba(0, 0, 0, .3));
  filter: grayscale(.24)
    brightness(.9)
    drop-shadow(0 2px 0 rgba(0, 0, 0, .3));
}

#quickbar .slot-art {
  width: 36px;
  height: 26px;
  min-width: 24px;
  min-height: 18px;
  max-width: 50px;
  max-height: 34px;
}

#bagOverlay .item .item-art::before {
  position: absolute;
  box-sizing: border-box;
}

#bagOverlay .item .item-art::after {
  position: absolute;
  box-sizing: border-box;
}

body > .item.drag-ghost .item-art::before {
  position: absolute;
  box-sizing: border-box;
}

body > .item.drag-ghost .item-art::after {
  position: absolute;
  box-sizing: border-box;
}

#quickbar .slot-art::before {
  position: absolute;
  box-sizing: border-box;
}

#quickbar .slot-art::after {
  position: absolute;
  box-sizing: border-box;
}

[data-item-art="medkit"] .item-art {
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0 11%, rgba(84, 28, 28, .45) 11% 17%, transparent 17% 83%, rgba(84, 28, 28, .45) 83% 89%, transparent 89%),
    linear-gradient(180deg, rgba(255, 255, 255, .26) 0 14%, transparent 14% 72%, rgba(64, 13, 15, .22) 72% 100%),
    linear-gradient(180deg, #f0796f 0%, #b83e3f 100%);
  box-shadow: inset 0 0 0 2px rgba(97, 23, 25, .5),
    inset 0 -3px 0 rgba(84, 22, 25, .38);
}

[data-item-art="medkit"] .slot-art {
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0 11%, rgba(84, 28, 28, .45) 11% 17%, transparent 17% 83%, rgba(84, 28, 28, .45) 83% 89%, transparent 89%),
    linear-gradient(180deg, rgba(255, 255, 255, .26) 0 14%, transparent 14% 72%, rgba(64, 13, 15, .22) 72% 100%),
    linear-gradient(180deg, #f0796f 0%, #b83e3f 100%);
  box-shadow: inset 0 0 0 2px rgba(97, 23, 25, .5),
    inset 0 -3px 0 rgba(84, 22, 25, .38);
}

[data-item-art="medkit"] .item-art::before {
  left: 43%;
  top: 20%;
  width: 14%;
  height: 60%;
  border-radius: 2px;
  background: #fff5e8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}

[data-item-art="medkit"] .slot-art::before {
  left: 43%;
  top: 20%;
  width: 14%;
  height: 60%;
  border-radius: 2px;
  background: #fff5e8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}

[data-item-art="medkit"] .item-art::after {
  left: 20%;
  top: 43%;
  width: 60%;
  height: 14%;
  border-radius: 2px;
  background: #fff5e8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}

[data-item-art="medkit"] .slot-art::after {
  left: 20%;
  top: 43%;
  width: 60%;
  height: 14%;
  border-radius: 2px;
  background: #fff5e8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
}

[data-item-art="pistol"] .item-art {
  width: 70%;
  height: 34%;
  min-height: 11px;
  border-radius: 6px 8px 6px 5px;
  background: linear-gradient(90deg, rgba(255, 230, 151, .34) 0 22%, transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, .24) 0 28%, transparent 28% 62%, rgba(44, 30, 15, .32) 62% 100%),
    linear-gradient(180deg, #d6a94b 0%, #8a6426 100%);
  -webkit-transform: rotate(-8deg);
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 1px rgba(53, 39, 20, .42);
}

[data-item-art="pistol"] .slot-art {
  width: 70%;
  height: 34%;
  min-height: 11px;
  border-radius: 6px 8px 6px 5px;
  background: linear-gradient(90deg, rgba(255, 230, 151, .34) 0 22%, transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, .24) 0 28%, transparent 28% 62%, rgba(44, 30, 15, .32) 62% 100%),
    linear-gradient(180deg, #d6a94b 0%, #8a6426 100%);
  -webkit-transform: rotate(-8deg);
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 1px rgba(53, 39, 20, .42);
}

[data-item-art="pistol"] .item-art::before {
  right: -30%;
  top: 27%;
  width: 38%;
  height: 24%;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #364047, #151b1f);
  box-shadow: -34px 9px 0 -3px rgba(34, 39, 43, .85);
}

[data-item-art="pistol"] .slot-art::before {
  right: -30%;
  top: 27%;
  width: 38%;
  height: 24%;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #364047, #151b1f);
  box-shadow: -34px 9px 0 -3px rgba(34, 39, 43, .85);
}

[data-item-art="pistol"] .item-art::after {
  left: 22%;
  top: 66%;
  width: 24%;
  height: 72%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #283036, #12171b);
  -webkit-transform: skew(-12deg);
  transform: skew(-12deg);
}

[data-item-art="pistol"] .slot-art::after {
  left: 22%;
  top: 66%;
  width: 24%;
  height: 72%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #283036, #12171b);
  -webkit-transform: skew(-12deg);
  transform: skew(-12deg);
}

[data-item-id="gold_pistol"] .item-art {
  background: linear-gradient(90deg, rgba(255, 238, 166, .42) 0 24%, transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, .32) 0 30%, transparent 30% 62%, rgba(80, 48, 12, .34) 62% 100%),
    linear-gradient(180deg, #f3c75c 0%, #996719 100%);
}

[data-item-id="gold_pistol"] .slot-art {
  background: linear-gradient(90deg, rgba(255, 238, 166, .42) 0 24%, transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, .32) 0 30%, transparent 30% 62%, rgba(80, 48, 12, .34) 62% 100%),
    linear-gradient(180deg, #f3c75c 0%, #996719 100%);
}

[data-item-art="rifle"] .item-art {
  width: 84%;
  height: 30%;
  min-height: 11px;
  border-radius: 5px;
  background: linear-gradient(90deg, #2b3338 0 12%, transparent 12% 70%, rgba(25, 31, 35, .78) 70% 84%, transparent 84%),
    linear-gradient(180deg, rgba(228, 236, 226, .22) 0 28%, transparent 28% 66%, rgba(0, 0, 0, .24) 66% 100%),
    linear-gradient(180deg, #7c8379 0%, #485048 100%);
  box-shadow: inset 0 0 0 1px rgba(20, 25, 24, .55);
}

[data-item-art="rifle"] .slot-art {
  width: 84%;
  height: 30%;
  min-height: 11px;
  border-radius: 5px;
  background: linear-gradient(90deg, #2b3338 0 12%, transparent 12% 70%, rgba(25, 31, 35, .78) 70% 84%, transparent 84%),
    linear-gradient(180deg, rgba(228, 236, 226, .22) 0 28%, transparent 28% 66%, rgba(0, 0, 0, .24) 66% 100%),
    linear-gradient(180deg, #7c8379 0%, #485048 100%);
  box-shadow: inset 0 0 0 1px rgba(20, 25, 24, .55);
}

[data-item-art="rifle"] .item-art::before {
  right: -23%;
  top: 37%;
  width: 30%;
  height: 16%;
  border-radius: 0 4px 4px 0;
  background: #11171a;
  box-shadow: -94px 1px 0 3px #20282d;
}

[data-item-art="rifle"] .slot-art::before {
  right: -23%;
  top: 37%;
  width: 30%;
  height: 16%;
  border-radius: 0 4px 4px 0;
  background: #11171a;
  box-shadow: -94px 1px 0 3px #20282d;
}

[data-item-art="rifle"] .item-art::after {
  left: 25%;
  top: 70%;
  width: 13%;
  height: 68%;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #252d31, #101519);
  -webkit-transform: skew(-9deg);
  transform: skew(-9deg);
  box-shadow: 34px -3px 0 -3px rgba(24, 30, 34, .9);
}

[data-item-art="rifle"] .slot-art::after {
  left: 25%;
  top: 70%;
  width: 13%;
  height: 68%;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #252d31, #101519);
  -webkit-transform: skew(-9deg);
  transform: skew(-9deg);
  box-shadow: 34px -3px 0 -3px rgba(24, 30, 34, .9);
}

[data-item-art="heavy"] .item-art {
  width: 86%;
  height: 42%;
  min-height: 15px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(216, 170, 54, .9) 0 18%, transparent 18% 79%, rgba(24, 29, 30, .88) 79% 93%, transparent 93%),
    linear-gradient(180deg, rgba(239, 244, 223, .2) 0 26%, transparent 26% 62%, rgba(0, 0, 0, .28) 62% 100%),
    linear-gradient(180deg, #848b7f 0%, #4e574e 100%);
  box-shadow: inset 0 0 0 1px rgba(18, 24, 22, .56);
}

[data-item-art="heavy"] .slot-art {
  width: 86%;
  height: 42%;
  min-height: 15px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(216, 170, 54, .9) 0 18%, transparent 18% 79%, rgba(24, 29, 30, .88) 79% 93%, transparent 93%),
    linear-gradient(180deg, rgba(239, 244, 223, .2) 0 26%, transparent 26% 62%, rgba(0, 0, 0, .28) 62% 100%),
    linear-gradient(180deg, #848b7f 0%, #4e574e 100%);
  box-shadow: inset 0 0 0 1px rgba(18, 24, 22, .56);
}

[data-item-art="heavy"] .item-art::before {
  right: -18%;
  top: 29%;
  width: 24%;
  height: 38%;
  border-radius: 0 7px 7px 0;
  background: linear-gradient(180deg, #2a3334, #111719);
}

[data-item-art="heavy"] .slot-art::before {
  right: -18%;
  top: 29%;
  width: 24%;
  height: 38%;
  border-radius: 0 7px 7px 0;
  background: linear-gradient(180deg, #2a3334, #111719);
}

[data-item-art="heavy"] .item-art::after {
  left: 34%;
  top: 70%;
  width: 18%;
  height: 54%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #242b2d, #101416);
  -webkit-transform: skew(-8deg);
  transform: skew(-8deg);
}

[data-item-art="heavy"] .slot-art::after {
  left: 34%;
  top: 70%;
  width: 18%;
  height: 54%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #242b2d, #101416);
  -webkit-transform: skew(-8deg);
  transform: skew(-8deg);
}

[data-item-art="harddisk"] .item-art {
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0 66%, rgba(62, 55, 83, .3) 66% 71%, transparent 71%),
    linear-gradient(180deg, rgba(255, 255, 255, .3) 0 16%, transparent 16% 76%, rgba(55, 47, 74, .26) 76% 100%),
    linear-gradient(180deg, #d7d0e9 0%, #8f85aa 100%);
  box-shadow: inset 0 0 0 2px rgba(59, 52, 79, .42),
    inset 0 -3px 0 rgba(55, 47, 73, .25);
}

[data-item-art="harddisk"] .slot-art {
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0 66%, rgba(62, 55, 83, .3) 66% 71%, transparent 71%),
    linear-gradient(180deg, rgba(255, 255, 255, .3) 0 16%, transparent 16% 76%, rgba(55, 47, 74, .26) 76% 100%),
    linear-gradient(180deg, #d7d0e9 0%, #8f85aa 100%);
  box-shadow: inset 0 0 0 2px rgba(59, 52, 79, .42),
    inset 0 -3px 0 rgba(55, 47, 73, .25);
}

[data-item-art="harddisk"] .item-art::before {
  left: 13%;
  top: 18%;
  width: 60%;
  height: 17%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .76) 0 48%, rgba(255, 255, 255, .24) 48% 100%);
  box-shadow: 0 15px 0 -5px rgba(61, 55, 79, .34);
}

[data-item-art="harddisk"] .slot-art::before {
  left: 13%;
  top: 18%;
  width: 60%;
  height: 17%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .76) 0 48%, rgba(255, 255, 255, .24) 48% 100%);
  box-shadow: 0 15px 0 -5px rgba(61, 55, 79, .34);
}

[data-item-art="harddisk"] .item-art::after {
  right: 16%;
  bottom: 15%;
  width: 25%;
  height: 25%;
  border: 3px solid rgba(51, 45, 69, .74);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .42) 0 22%, transparent 24%);
}

[data-item-art="harddisk"] .slot-art::after {
  right: 16%;
  bottom: 15%;
  width: 25%;
  height: 25%;
  border: 3px solid rgba(51, 45, 69, .74);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .42) 0 22%, transparent 24%);
}

[data-item-art="chip"] .item-art {
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(247, 241, 255, .7) 0 6%, transparent 6% 94%, rgba(247, 241, 255, .7) 94% 100%),
    linear-gradient(180deg, #cfc6df 0%, #837799 100%);
  box-shadow: inset 0 0 0 3px rgba(61, 54, 80, .45),
    inset 0 -2px 0 rgba(44, 38, 59, .24);
}

[data-item-art="chip"] .slot-art {
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(247, 241, 255, .7) 0 6%, transparent 6% 94%, rgba(247, 241, 255, .7) 94% 100%),
    linear-gradient(180deg, #cfc6df 0%, #837799 100%);
  box-shadow: inset 0 0 0 3px rgba(61, 54, 80, .45),
    inset 0 -2px 0 rgba(44, 38, 59, .24);
}

[data-item-art="chip"] .item-art::before {
  left: 24%;
  top: 24%;
  width: 52%;
  height: 52%;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .52), transparent 42%),
    linear-gradient(180deg, #f3edff, #aa9fc4);
  box-shadow: inset 0 0 0 1px rgba(62, 55, 82, .3);
}

[data-item-art="chip"] .slot-art::before {
  left: 24%;
  top: 24%;
  width: 52%;
  height: 52%;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .52), transparent 42%),
    linear-gradient(180deg, #f3edff, #aa9fc4);
  box-shadow: inset 0 0 0 1px rgba(62, 55, 82, .3);
}

[data-item-art="chip"] .item-art::after {
  left: -3px;
  top: 18%;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: rgba(242, 235, 255, .82);
  box-shadow: 0 10px 0 rgba(242, 235, 255, .82),
    0 20px 0 rgba(242, 235, 255, .82),
    calc(100% + 5px) 0 0 rgba(242, 235, 255, .82),
    calc(100% + 5px) 10px 0 rgba(242, 235, 255, .82),
    calc(100% + 5px) 20px 0 rgba(242, 235, 255, .82);
}

[data-item-art="chip"] .slot-art::after {
  left: -3px;
  top: 18%;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: rgba(242, 235, 255, .82);
  box-shadow: 0 10px 0 rgba(242, 235, 255, .82),
    0 20px 0 rgba(242, 235, 255, .82),
    calc(100% + 5px) 0 0 rgba(242, 235, 255, .82),
    calc(100% + 5px) 10px 0 rgba(242, 235, 255, .82),
    calc(100% + 5px) 20px 0 rgba(242, 235, 255, .82);
}

[data-item-art="tool"] .item-art {
  background: transparent;
}

[data-item-art="tool"] .slot-art {
  background: transparent;
}

[data-item-art="tool"] .item-art::before {
  left: 49%;
  top: 18%;
  width: 13%;
  height: 82%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(180deg, #394147, #171d21);
  -webkit-transform: rotate(38deg);
  transform: rotate(38deg);
  -webkit-transform-origin: 50% 18%;
  transform-origin: 50% 18%;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .32);
}

[data-item-art="tool"] .slot-art::before {
  left: 49%;
  top: 18%;
  width: 13%;
  height: 82%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(180deg, #394147, #171d21);
  -webkit-transform: rotate(38deg);
  transform: rotate(38deg);
  -webkit-transform-origin: 50% 18%;
  transform-origin: 50% 18%;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .32);
}

[data-item-art="tool"] .item-art::after {
  left: 18%;
  top: 16%;
  width: 66%;
  height: 18%;
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 36%),
    linear-gradient(180deg, #e2dbeb, #827997);
  -webkit-transform: rotate(-18deg);
  transform: rotate(-18deg);
  box-shadow: 0 2px 0 rgba(41, 38, 52, .34);
}

[data-item-art="tool"] .slot-art::after {
  left: 18%;
  top: 16%;
  width: 66%;
  height: 18%;
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 36%),
    linear-gradient(180deg, #e2dbeb, #827997);
  -webkit-transform: rotate(-18deg);
  transform: rotate(-18deg);
  box-shadow: 0 2px 0 rgba(41, 38, 52, .34);
}

[data-item-art="helmet"] .item-art {
  background: transparent;
}

[data-item-art="helmet"] .slot-art {
  background: transparent;
}

[data-item-art="helmet"] .item-art::before {
  left: 9%;
  top: 16%;
  width: 82%;
  height: 55%;
  border-radius: 52% 52% 13px 13px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .28) 0 22%, transparent 23%),
    linear-gradient(180deg, #8aa5c1 0%, #4b627d 100%);
  box-shadow: inset 0 -3px 0 rgba(30, 40, 52, .34);
}

[data-item-art="helmet"] .slot-art::before {
  left: 9%;
  top: 16%;
  width: 82%;
  height: 55%;
  border-radius: 52% 52% 13px 13px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .28) 0 22%, transparent 23%),
    linear-gradient(180deg, #8aa5c1 0%, #4b627d 100%);
  box-shadow: inset 0 -3px 0 rgba(30, 40, 52, .34);
}

[data-item-art="helmet"] .item-art::after {
  left: 15%;
  top: 58%;
  width: 70%;
  height: 15%;
  border-radius: 5px;
  background: linear-gradient(180deg, #303e4b, #18212a);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
}

[data-item-art="helmet"] .slot-art::after {
  left: 15%;
  top: 58%;
  width: 70%;
  height: 15%;
  border-radius: 5px;
  background: linear-gradient(180deg, #303e4b, #18212a);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
}

[data-item-art="clothing"] .item-art {
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(90deg, transparent 0 38%, rgba(39, 50, 61, .28) 38% 45%, transparent 45% 55%, rgba(39, 50, 61, .28) 55% 62%, transparent 62%),
    linear-gradient(180deg, rgba(219, 239, 255, .22) 0 24%, transparent 24% 72%, rgba(17, 25, 34, .24) 72% 100%),
    linear-gradient(180deg, #84a0bb 0%, #4e657f 100%);
}

[data-item-art="clothing"] .slot-art {
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(90deg, transparent 0 38%, rgba(39, 50, 61, .28) 38% 45%, transparent 45% 55%, rgba(39, 50, 61, .28) 55% 62%, transparent 62%),
    linear-gradient(180deg, rgba(219, 239, 255, .22) 0 24%, transparent 24% 72%, rgba(17, 25, 34, .24) 72% 100%),
    linear-gradient(180deg, #84a0bb 0%, #4e657f 100%);
}

[data-item-art="gear"] .item-art {
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(90deg, transparent 0 38%, rgba(39, 50, 61, .28) 38% 45%, transparent 45% 55%, rgba(39, 50, 61, .28) 55% 62%, transparent 62%),
    linear-gradient(180deg, rgba(219, 239, 255, .22) 0 24%, transparent 24% 72%, rgba(17, 25, 34, .24) 72% 100%),
    linear-gradient(180deg, #84a0bb 0%, #4e657f 100%);
}

[data-item-art="gear"] .slot-art {
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(90deg, transparent 0 38%, rgba(39, 50, 61, .28) 38% 45%, transparent 45% 55%, rgba(39, 50, 61, .28) 55% 62%, transparent 62%),
    linear-gradient(180deg, rgba(219, 239, 255, .22) 0 24%, transparent 24% 72%, rgba(17, 25, 34, .24) 72% 100%),
    linear-gradient(180deg, #84a0bb 0%, #4e657f 100%);
}

[data-item-art="clothing"] .item-art::before {
  left: -13%;
  top: 12%;
  width: 33%;
  height: 43%;
  border-radius: 7px;
  background: linear-gradient(180deg, #6f8aa5, #3e5367);
  -webkit-transform: rotate(12deg);
  transform: rotate(12deg);
  box-shadow: 36px -7px 0 -1px #5d7894;
}

[data-item-art="clothing"] .slot-art::before {
  left: -13%;
  top: 12%;
  width: 33%;
  height: 43%;
  border-radius: 7px;
  background: linear-gradient(180deg, #6f8aa5, #3e5367);
  -webkit-transform: rotate(12deg);
  transform: rotate(12deg);
  box-shadow: 36px -7px 0 -1px #5d7894;
}

[data-item-art="gear"] .item-art::before {
  left: -13%;
  top: 12%;
  width: 33%;
  height: 43%;
  border-radius: 7px;
  background: linear-gradient(180deg, #6f8aa5, #3e5367);
  -webkit-transform: rotate(12deg);
  transform: rotate(12deg);
  box-shadow: 36px -7px 0 -1px #5d7894;
}

[data-item-art="gear"] .slot-art::before {
  left: -13%;
  top: 12%;
  width: 33%;
  height: 43%;
  border-radius: 7px;
  background: linear-gradient(180deg, #6f8aa5, #3e5367);
  -webkit-transform: rotate(12deg);
  transform: rotate(12deg);
  box-shadow: 36px -7px 0 -1px #5d7894;
}

[data-item-art="clothing"] .item-art::after {
  left: 26%;
  top: 18%;
  width: 48%;
  height: 68%;
  border-radius: 5px;
  border: 2px solid rgba(35, 45, 56, .34);
}

[data-item-art="clothing"] .slot-art::after {
  left: 26%;
  top: 18%;
  width: 48%;
  height: 68%;
  border-radius: 5px;
  border: 2px solid rgba(35, 45, 56, .34);
}

[data-item-art="gear"] .item-art::after {
  left: 26%;
  top: 18%;
  width: 48%;
  height: 68%;
  border-radius: 5px;
  border: 2px solid rgba(35, 45, 56, .34);
}

[data-item-art="gear"] .slot-art::after {
  left: 26%;
  top: 18%;
  width: 48%;
  height: 68%;
  border-radius: 5px;
  border: 2px solid rgba(35, 45, 56, .34);
}

[data-item-art="body-armor"] .item-art {
  border-radius: 9px 9px 7px 7px;
  background: linear-gradient(90deg, transparent 0 31%, rgba(30, 38, 47, .36) 31% 38%, transparent 38% 62%, rgba(30, 38, 47, .36) 62% 69%, transparent 69%),
    linear-gradient(180deg, rgba(229, 243, 255, .18) 0 22%, transparent 22% 72%, rgba(12, 18, 24, .3) 72% 100%),
    linear-gradient(180deg, #7f99b4 0%, #43596f 100%);
  -webkit-clip-path: polygon(21% 0, 79% 0, 96% 29%, 82% 100%, 18% 100%, 4% 29%);
  clip-path: polygon(21% 0, 79% 0, 96% 29%, 82% 100%, 18% 100%, 4% 29%);
}

[data-item-art="body-armor"] .slot-art {
  border-radius: 9px 9px 7px 7px;
  background: linear-gradient(90deg, transparent 0 31%, rgba(30, 38, 47, .36) 31% 38%, transparent 38% 62%, rgba(30, 38, 47, .36) 62% 69%, transparent 69%),
    linear-gradient(180deg, rgba(229, 243, 255, .18) 0 22%, transparent 22% 72%, rgba(12, 18, 24, .3) 72% 100%),
    linear-gradient(180deg, #7f99b4 0%, #43596f 100%);
  -webkit-clip-path: polygon(21% 0, 79% 0, 96% 29%, 82% 100%, 18% 100%, 4% 29%);
  clip-path: polygon(21% 0, 79% 0, 96% 29%, 82% 100%, 18% 100%, 4% 29%);
}

[data-item-art="body-armor"] .item-art::before {
  left: 21%;
  top: 20%;
  width: 58%;
  height: 62%;
  border-radius: 5px;
  border: 2px solid rgba(30, 40, 50, .56);
  background: linear-gradient(90deg, transparent 0 47%, rgba(31, 40, 50, .38) 47% 53%, transparent 53%),
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent);
}

[data-item-art="body-armor"] .slot-art::before {
  left: 21%;
  top: 20%;
  width: 58%;
  height: 62%;
  border-radius: 5px;
  border: 2px solid rgba(30, 40, 50, .56);
  background: linear-gradient(90deg, transparent 0 47%, rgba(31, 40, 50, .38) 47% 53%, transparent 53%),
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent);
}

[data-item-art="body-armor"] .item-art::after {
  left: 33%;
  top: 14%;
  width: 34%;
  height: 10%;
  border-radius: 4px;
  background: rgba(31, 40, 50, .56);
}

[data-item-art="body-armor"] .slot-art::after {
  left: 33%;
  top: 14%;
  width: 34%;
  height: 10%;
  border-radius: 4px;
  background: rgba(31, 40, 50, .56);
}

[data-item-art="leg-armor"] .item-art {
  background: transparent;
}

[data-item-art="leg-armor"] .slot-art {
  background: transparent;
}

[data-item-art="leg-armor"] .item-art::before {
  top: 11%;
  width: 31%;
  height: 78%;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 42%),
    linear-gradient(180deg, #84a0bb, #43586f);
  box-shadow: inset 0 -3px 0 rgba(22, 31, 41, .3),
    0 2px 0 rgba(0, 0, 0, .26);
}

[data-item-art="leg-armor"] .slot-art::before {
  top: 11%;
  width: 31%;
  height: 78%;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 42%),
    linear-gradient(180deg, #84a0bb, #43586f);
  box-shadow: inset 0 -3px 0 rgba(22, 31, 41, .3),
    0 2px 0 rgba(0, 0, 0, .26);
}

[data-item-art="leg-armor"] .item-art::after {
  top: 11%;
  width: 31%;
  height: 78%;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 42%),
    linear-gradient(180deg, #84a0bb, #43586f);
  box-shadow: inset 0 -3px 0 rgba(22, 31, 41, .3),
    0 2px 0 rgba(0, 0, 0, .26);
}

[data-item-art="leg-armor"] .slot-art::after {
  top: 11%;
  width: 31%;
  height: 78%;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 42%),
    linear-gradient(180deg, #84a0bb, #43586f);
  box-shadow: inset 0 -3px 0 rgba(22, 31, 41, .3),
    0 2px 0 rgba(0, 0, 0, .26);
}

[data-item-art="leg-armor"] .item-art::before {
  left: 16%;
  -webkit-transform: rotate(-3deg);
  transform: rotate(-3deg);
}

[data-item-art="leg-armor"] .slot-art::before {
  left: 16%;
  -webkit-transform: rotate(-3deg);
  transform: rotate(-3deg);
}

[data-item-art="leg-armor"] .item-art::after {
  right: 16%;
  -webkit-transform: rotate(3deg);
  transform: rotate(3deg);
}

[data-item-art="leg-armor"] .slot-art::after {
  right: 16%;
  -webkit-transform: rotate(3deg);
  transform: rotate(3deg);
}

[data-item-art="boots"] .item-art {
  background: transparent;
}

[data-item-art="boots"] .slot-art {
  background: transparent;
}

[data-item-art="boots"] .item-art::before {
  bottom: 12%;
  width: 39%;
  height: 36%;
  border-radius: 7px 6px 10px 3px;
  background: linear-gradient(180deg, rgba(197, 224, 245, .2) 0 22%, transparent 22%),
    linear-gradient(180deg, #738eaa, #334557);
  box-shadow: inset 0 -3px 0 rgba(12, 18, 24, .36);
}

[data-item-art="boots"] .slot-art::before {
  bottom: 12%;
  width: 39%;
  height: 36%;
  border-radius: 7px 6px 10px 3px;
  background: linear-gradient(180deg, rgba(197, 224, 245, .2) 0 22%, transparent 22%),
    linear-gradient(180deg, #738eaa, #334557);
  box-shadow: inset 0 -3px 0 rgba(12, 18, 24, .36);
}

[data-item-art="boots"] .item-art::after {
  bottom: 12%;
  width: 39%;
  height: 36%;
  border-radius: 7px 6px 10px 3px;
  background: linear-gradient(180deg, rgba(197, 224, 245, .2) 0 22%, transparent 22%),
    linear-gradient(180deg, #738eaa, #334557);
  box-shadow: inset 0 -3px 0 rgba(12, 18, 24, .36);
}

[data-item-art="boots"] .slot-art::after {
  bottom: 12%;
  width: 39%;
  height: 36%;
  border-radius: 7px 6px 10px 3px;
  background: linear-gradient(180deg, rgba(197, 224, 245, .2) 0 22%, transparent 22%),
    linear-gradient(180deg, #738eaa, #334557);
  box-shadow: inset 0 -3px 0 rgba(12, 18, 24, .36);
}

[data-item-art="boots"] .item-art::before {
  left: 10%;
}

[data-item-art="boots"] .slot-art::before {
  left: 10%;
}

[data-item-art="boots"] .item-art::after {
  right: 10%;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

[data-item-art="boots"] .slot-art::after {
  right: 10%;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

[data-item-art="gloves"] .item-art {
  background: transparent;
}

[data-item-art="gloves"] .slot-art {
  background: transparent;
}

[data-item-art="gloves"] .item-art::before {
  top: 25%;
  width: 37%;
  height: 50%;
  border-radius: 52% 52% 10px 10px;
  background: radial-gradient(circle at 42% 18%, rgba(219, 239, 255, .28), transparent 26%),
    linear-gradient(180deg, #82a0bc, #42576d);
  box-shadow: inset 0 -3px 0 rgba(21, 30, 40, .28),
    0 2px 0 rgba(0, 0, 0, .24);
}

[data-item-art="gloves"] .slot-art::before {
  top: 25%;
  width: 37%;
  height: 50%;
  border-radius: 52% 52% 10px 10px;
  background: radial-gradient(circle at 42% 18%, rgba(219, 239, 255, .28), transparent 26%),
    linear-gradient(180deg, #82a0bc, #42576d);
  box-shadow: inset 0 -3px 0 rgba(21, 30, 40, .28),
    0 2px 0 rgba(0, 0, 0, .24);
}

[data-item-art="gloves"] .item-art::after {
  top: 25%;
  width: 37%;
  height: 50%;
  border-radius: 52% 52% 10px 10px;
  background: radial-gradient(circle at 42% 18%, rgba(219, 239, 255, .28), transparent 26%),
    linear-gradient(180deg, #82a0bc, #42576d);
  box-shadow: inset 0 -3px 0 rgba(21, 30, 40, .28),
    0 2px 0 rgba(0, 0, 0, .24);
}

[data-item-art="gloves"] .slot-art::after {
  top: 25%;
  width: 37%;
  height: 50%;
  border-radius: 52% 52% 10px 10px;
  background: radial-gradient(circle at 42% 18%, rgba(219, 239, 255, .28), transparent 26%),
    linear-gradient(180deg, #82a0bc, #42576d);
  box-shadow: inset 0 -3px 0 rgba(21, 30, 40, .28),
    0 2px 0 rgba(0, 0, 0, .24);
}

[data-item-art="gloves"] .item-art::before {
  left: 10%;
  -webkit-transform: rotate(-13deg);
  transform: rotate(-13deg);
}

[data-item-art="gloves"] .slot-art::before {
  left: 10%;
  -webkit-transform: rotate(-13deg);
  transform: rotate(-13deg);
}

[data-item-art="gloves"] .item-art::after {
  right: 10%;
  -webkit-transform: rotate(13deg);
  transform: rotate(13deg);
}

[data-item-art="gloves"] .slot-art::after {
  right: 10%;
  -webkit-transform: rotate(13deg);
  transform: rotate(13deg);
}

[data-item-art="loot"] .item-art {
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0 18%, rgba(57, 51, 75, .3) 18% 24%, transparent 24% 76%, rgba(57, 51, 75, .3) 76% 82%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0 18%, transparent 18% 76%, rgba(53, 47, 72, .24) 76% 100%),
    linear-gradient(180deg, #cfc7df, #877d9d);
  box-shadow: inset 0 0 0 2px rgba(58, 52, 78, .38);
}

[data-item-art="loot"] .slot-art {
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0 18%, rgba(57, 51, 75, .3) 18% 24%, transparent 24% 76%, rgba(57, 51, 75, .3) 76% 82%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0 18%, transparent 18% 76%, rgba(53, 47, 72, .24) 76% 100%),
    linear-gradient(180deg, #cfc7df, #877d9d);
  box-shadow: inset 0 0 0 2px rgba(58, 52, 78, .38);
}

[data-item-art="default"] .item-art {
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0 18%, rgba(57, 51, 75, .3) 18% 24%, transparent 24% 76%, rgba(57, 51, 75, .3) 76% 82%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0 18%, transparent 18% 76%, rgba(53, 47, 72, .24) 76% 100%),
    linear-gradient(180deg, #cfc7df, #877d9d);
  box-shadow: inset 0 0 0 2px rgba(58, 52, 78, .38);
}

[data-item-art="default"] .slot-art {
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 0 18%, rgba(57, 51, 75, .3) 18% 24%, transparent 24% 76%, rgba(57, 51, 75, .3) 76% 82%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0 18%, transparent 18% 76%, rgba(53, 47, 72, .24) 76% 100%),
    linear-gradient(180deg, #cfc7df, #877d9d);
  box-shadow: inset 0 0 0 2px rgba(58, 52, 78, .38);
}

[data-item-art="loot"] .item-art::before {
  left: 18%;
  top: 22%;
  width: 64%;
  height: 16%;
  border-radius: 3px;
  background: rgba(255, 255, 255, .38);
}

[data-item-art="loot"] .slot-art::before {
  left: 18%;
  top: 22%;
  width: 64%;
  height: 16%;
  border-radius: 3px;
  background: rgba(255, 255, 255, .38);
}

[data-item-art="default"] .item-art::before {
  left: 18%;
  top: 22%;
  width: 64%;
  height: 16%;
  border-radius: 3px;
  background: rgba(255, 255, 255, .38);
}

[data-item-art="default"] .slot-art::before {
  left: 18%;
  top: 22%;
  width: 64%;
  height: 16%;
  border-radius: 3px;
  background: rgba(255, 255, 255, .38);
}

[data-item-art="loot"] .item-art::after {
  right: 18%;
  bottom: 17%;
  width: 20%;
  height: 20%;
  border-radius: 4px;
  background: rgba(50, 45, 67, .58);
}

[data-item-art="loot"] .slot-art::after {
  right: 18%;
  bottom: 17%;
  width: 20%;
  height: 20%;
  border-radius: 4px;
  background: rgba(50, 45, 67, .58);
}

[data-item-art="default"] .item-art::after {
  right: 18%;
  bottom: 17%;
  width: 20%;
  height: 20%;
  border-radius: 4px;
  background: rgba(50, 45, 67, .58);
}

[data-item-art="default"] .slot-art::after {
  right: 18%;
  bottom: 17%;
  width: 20%;
  height: 20%;
  border-radius: 4px;
  background: rgba(50, 45, 67, .58);
}

@keyframes itemArtPop{from {
    opacity: 0;
    -webkit-transform: translate3d(0, 3px, 0) scale(.92);
            transform: translate3d(0, 3px, 0) scale(.92);
    -webkit-filter:
      brightness(.88)
      drop-shadow(0 2px 0 rgba(0, 0, 0, .18));
            filter:
      brightness(.88)
      drop-shadow(0 2px 0 rgba(0, 0, 0, .18));
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0) scale(1);
            transform: translate3d(0, 0, 0) scale(1);
    -webkit-filter:
      drop-shadow(0 2px 0 rgba(0, 0, 0, .34))
      drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
            filter:
      drop-shadow(0 2px 0 rgba(0, 0, 0, .34))
      drop-shadow(0 4px 6px rgba(0, 0, 0, .22));
  }}

@keyframes itemArtDrag{from {
    opacity: .82;
    -webkit-transform: translate3d(0, 1px, 0) scale(.96);
            transform: translate3d(0, 1px, 0) scale(.96);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0) scale(1.03);
            transform: translate3d(0, 0, 0) scale(1.03);
  }}

@keyframes itemDragLift{from {
    opacity: .74;
    -webkit-filter: brightness(.94);
            filter: brightness(.94);
  }
  to {
    opacity: .97;
    -webkit-filter: brightness(1.05);
            filter: brightness(1.05);
  }}

@keyframes itemPlaced{0% {
    opacity: .88;
    -webkit-transform: scale(.94);
            transform: scale(.94);
  }
  68% {
    opacity: 1;
    -webkit-transform: scale(1.025);
            transform: scale(1.025);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .slot-art {
    width: 31px;
    height: 22px;
    min-width: 21px;
    min-height: 16px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #bagOverlay .item .item-art {
    min-width: 17px;
    min-height: 17px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  body > .item.drag-ghost .item-art {
    min-width: 17px;
    min-height: 17px;
  }
}

.cap-legacy-layout #quickbar .slot-art {
  width: 29px;
  height: 21px;
  min-width: 20px;
  min-height: 15px;
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .item {
    -webkit-animation: none;
    animation: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .item .item-art {
    -webkit-animation: none;
    animation: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > .item.drag-ghost {
    -webkit-animation: none;
    animation: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > .item.drag-ghost .item-art {
    -webkit-animation: none;
    animation: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #quickbar .slot-art {
    -webkit-animation: none;
    animation: none;
    transition: none;
  }
}

#bagOverlay .item .item-art {
  display: none !important;
  background: none;
  box-shadow: none;
}

body > .item.drag-ghost .item-art {
  display: none !important;
  background: none;
  box-shadow: none;
}

#quickbar .slot-art {
  display: none !important;
  background: none;
  box-shadow: none;
}

#bagOverlay .item .item-art::before {
  content: none;
  display: none !important;
}

#bagOverlay .item .item-art::after {
  content: none;
  display: none !important;
}

body > .item.drag-ghost .item-art::before {
  content: none;
  display: none !important;
}

body > .item.drag-ghost .item-art::after {
  content: none;
  display: none !important;
}

#quickbar .slot-art::before {
  content: none;
  display: none !important;
}

#quickbar .slot-art::after {
  content: none;
  display: none !important;
}

#bagOverlay .item-art-img {
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
}

body > .item.drag-ghost .item-art-img {
  display: block;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
}

#quickbar .slot-art-img {
  display: block;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
}

#bagOverlay .item.w2 .item-art-img {
  height: 100%;
}

body > .item.drag-ghost.w2 .item-art-img {
  width: 100%;
  height: 100%;
}

body > .item.drag-ghost.equipped .item-art-img {
  width: 100%;
  height: 100%;
}

body > .item.drag-ghost.drop-ok .item-art-img {
  -webkit-filter: brightness(1.08) drop-shadow(0 0 8px rgba(172, 237, 114, .34));
  filter: brightness(1.08) drop-shadow(0 0 8px rgba(172, 237, 114, .34));
}

body > .item.drag-ghost.drop-blocked .item-art-img {
  opacity: .78;
  -webkit-filter: grayscale(.2) brightness(.88) drop-shadow(0 3px 5px rgba(0, 0, 0, .34));
  filter: grayscale(.2) brightness(.88) drop-shadow(0 3px 5px rgba(0, 0, 0, .34));
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .slot-art-img {
    width: 31px;
    min-width: 21px;
    min-height: 16px;
  }
}

.cap-legacy-layout #quickbar .slot-art-img {
  width: 29px;
  height: 21px;
  min-width: 20px;
  min-height: 15px;
}

@media (max-width: 900px), (max-height: 520px) {
  body[data-modal="backpack"] #bagOverlay.overlay.inventory-only {
    padding-top: calc(var(--safe-top) + 10px);
  }
}

@media (max-width: 900px), (max-height: 520px) {
  body[data-modal="backpack"] #bagOverlay.overlay.inventory-only .backpack-panel {
    flex: 1 1 57%;
    width: auto;
    max-width: none;
  }
}

#bagOverlay .equip-slot .item.equipped {
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

#bagOverlay .equip-slot .item.equipped-gear {
  border-radius: 8px;
}

#bagOverlay .equip-slot .item.equipped-weapon {
  border-radius: 8px;
}

#bagOverlay .equip-slot .item.equipped-weapon.weapon-visual-pistol .item-art-img {
  width: 82%;
  height: 82%;
}

body > .item.drag-ghost.equipped-weapon.weapon-visual-pistol .item-art-img {
  width: 82%;
  height: 82%;
}

#bagOverlay .equip-slot .item.equipped-gear .item-art-img {
  width: 84%;
  height: 84%;
}

body > .item.drag-ghost.equipped-gear .item-art-img {
  width: 84%;
  height: 84%;
}

body > .item.drag-ghost {
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

:root {
  --inv-bg: #071018;
  --inv-panel: #0c151d;
  --inv-panel-2: #101c25;
  --inv-cell: #12202a;
  --inv-line: rgba(144, 168, 181, .19);
  --inv-line-strong: rgba(172, 194, 205, .34);
  --inv-text: #d9e1e5;
  --inv-muted: #788995;
  --inv-green: #12846f;
  --inv-green-bright: #28aa8c;
  --inv-red: #a8555a;
}

#bagOverlay.overlay {
  display: block;
  padding: calc(var(--safe-top) + 70px)
    calc(var(--safe-right) + 18px)
    calc(var(--safe-bottom) + 64px)
    calc(var(--safe-left) + 76px);
  background: radial-gradient(circle at 62% 15%, rgba(32, 67, 78, .18), transparent 34%),
    linear-gradient(180deg, rgba(4, 11, 17, .97), rgba(7, 16, 24, .985));
  color: var(--inv-text);
  grid-gap: 0;
  isolation: isolate;
}

#bagOverlay.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

#bagOverlay.overlay::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

#bagOverlay.overlay::before {
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
}

#bagOverlay.overlay::after {
  background: linear-gradient(90deg, rgba(0,0,0,.26), transparent 10%, transparent 90%, rgba(0,0,0,.28)),
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 15%, transparent 82%, rgba(0,0,0,.34));
}

.tactical-topbar {
  position: absolute;
  left: calc(var(--safe-left) + 0px);
  right: calc(var(--safe-right) + 0px);
  top: var(--safe-top);
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(159, 183, 196, .14);
  background: linear-gradient(180deg, rgba(12, 23, 32, .98), rgba(7, 15, 22, .92));
  z-index: 8;
}

.tactical-title-block {
  display: flex;
  align-items: center;
  min-width: 300px;
  height: 100%;
  padding-left: calc(var(--safe-left) + 64px);
  --flex-row-gap: 16px;
  --flex-column-gap: 16px;
}

.tactical-title-block strong {
  position: relative;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
  color: #cfd8dd;
  text-shadow: 0 1px 0 rgba(255,255,255,.04);
}

.tactical-title-block strong::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 5px;
  height: 26px;
  -webkit-transform: translateY(-50%) skewX(-16deg);
  transform: translateY(-50%) skewX(-16deg);
  background: var(--inv-green-bright);
  box-shadow: 0 0 10px rgba(40, 170, 140, .2);
}

.tactical-title-block i {
  display: block;
  width: 120px;
  height: 16px;
  opacity: .24;
  background: repeating-linear-gradient(-45deg, rgba(154,177,189,.38) 0 3px, transparent 3px 7px);
}

.tactical-summary {
  margin-left: auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding-right: 14px;
  --flex-row-gap: 12px;
  --flex-column-gap: 12px;
}

.tactical-summary > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  grid-column-gap: 9px;
  min-width: 132px;
  padding-left: 18px;
  border-left: 1px solid rgba(157,178,190,.15);
}

.tactical-summary span {
  color: var(--inv-muted);
  font-size: 10px;
  white-space: nowrap;
}

.tactical-summary strong {
  color: #cfd7dc;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .035em;
  white-space: nowrap;
}

#bagOverlay .close-btn {
  position: absolute;
  left: calc(var(--safe-left) + 10px);
  top: 9px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #c5d0d5;
  font-size: 0;
  z-index: 12;
}

#bagOverlay .close-btn span {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 55px;
  line-height: 37px;
  font-weight: 300;
  text-align: center;
  -webkit-transform: scaleX(.85);
  transform: scaleX(.85);
  text-shadow: 0 1px 0 #000;
}

#bagOverlay .close-btn:active {
  background: rgba(26, 132, 110, .18);
}

.tactical-rail {
  position: absolute;
  left: var(--safe-left);
  top: calc(var(--safe-top) + 64px);
  bottom: calc(var(--safe-bottom) + 58px);
  width: 62px;
  border-right: 1px solid rgba(150,174,187,.13);
  background: rgba(7, 15, 22, .84);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 14px;
  z-index: 5;
}

.rail-item {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71828d;
  border-bottom: 1px solid rgba(142,165,177,.08);
}

.rail-item svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  opacity: .9;
}

body[data-modal="backpack"] .rail-bag {
  color: #d8e4e8;
  background: linear-gradient(90deg, rgba(19,130,108,.36), rgba(12,50,47,.14));
}

body[data-modal="container"] .rail-loot {
  color: #d8e4e8;
  background: linear-gradient(90deg, rgba(19,130,108,.36), rgba(12,50,47,.14));
}

body[data-modal="warehouse"] .rail-storage {
  color: #d8e4e8;
  background: linear-gradient(90deg, rgba(19,130,108,.36), rgba(12,50,47,.14));
}

body[data-modal="backpack"] .rail-bag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--inv-green-bright);
  box-shadow: 0 0 9px rgba(40,170,140,.28);
}

body[data-modal="container"] .rail-loot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--inv-green-bright);
  box-shadow: 0 0 9px rgba(40,170,140,.28);
}

body[data-modal="warehouse"] .rail-storage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--inv-green-bright);
  box-shadow: 0 0 9px rgba(40,170,140,.28);
}

.inventory-shell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  min-width: 0;
  min-height: 0;
}

#bagOverlay .bag-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  max-height: 100%;
  padding: 0;
  border: 1px solid var(--inv-line);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(17, 29, 39, .96), rgba(8, 17, 24, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025),
    0 10px 28px rgba(0,0,0,.18);
  overflow: hidden;
  contain: layout paint;
}

.panel-heading {
  position: relative;
  flex: 0 0 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 7px;
  border-bottom: 1px solid var(--inv-line);
  background: linear-gradient(90deg, rgba(24, 42, 53, .95), rgba(11, 22, 31, .92));
}

.panel-heading::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 8px;
  width: 32%;
  height: 7px;
  opacity: .14;
  background: repeating-linear-gradient(-45deg, rgba(158,181,193,.45) 0 2px, transparent 2px 5px);
}

.panel-kicker {
  display: block;
  margin-bottom: 2px;
  color: #58717e;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .22em;
}

#bagOverlay .bag-panel h2 {
  height: auto;
  margin: 0;
  color: #cbd5da;
  font-size: 18px;
  line-height: 1.15;
  text-align: left;
  font-weight: 850;
  text-shadow: none;
  letter-spacing: .015em;
}

.panel-capacity {
  position: relative;
  z-index: 1;
  min-width: 74px;
  padding-top: 12px;
  color: #7f919b;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}

#bagOverlay .warehouse-actions {
  flex: 0 0 38px;
  margin: 0;
  padding: 5px 10px;
  text-align: right;
  border-bottom: 1px solid var(--inv-line);
  background: rgba(6, 14, 20, .7);
}

#bagOverlay .warehouse-actions button {
  min-width: 118px;
  min-height: 28px;
  height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(51,181,150,.5);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(19,137,112,.86), rgba(12,101,84,.84));
  color: #d9f3eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

#bagOverlay .warehouse-actions button:active {
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
  -webkit-filter: brightness(.9);
  filter: brightness(.9);
}

#bagOverlay .panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 8px calc(var(--safe-bottom) + 12px);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.012), transparent 32%),
    rgba(7, 15, 22, .32);
}

#bagOverlay .panel-scroll::-webkit-scrollbar {
  width: 5px;
}

#bagOverlay .panel-scroll::-webkit-scrollbar-track {
  background: rgba(3, 9, 14, .5);
  border-radius: 0;
}

#bagOverlay .panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(91,117,129,.68);
  border-radius: 0;
}

.section-strip {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -8px 6px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid rgba(144,168,181,.15);
  background: linear-gradient(90deg, rgba(15, 29, 38, .98), rgba(8, 17, 24, .94));
  color: #8fa0a9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

.section-strip span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 11px;
  margin-right: 7px;
  vertical-align: -1px;
  background: var(--inv-green);
}

.section-strip b {
  color: #617984;
  font-size: 11px;
  font-weight: 600;
}

#bagOverlay .grid {
  display: grid;
  grid-gap: 2px;
  border-top: 1px solid rgba(142,165,177,.08);
  border-left: 1px solid rgba(142,165,177,.08);
  background: rgba(5, 12, 18, .35);
}

#bagOverlay .source-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: flex-start;
}

#bagOverlay .bag-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

#bagOverlay .equip-grid {
  display: grid;
  margin: 0 0 10px;
  border-top: 1px solid rgba(142,165,177,.08);
  border-left: 1px solid rgba(142,165,177,.08);
  background: rgba(5,12,18,.38);
}

#bagOverlay .slot {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  border-right: 1px solid rgba(142,165,177,.12);
  border-bottom: 1px solid rgba(142,165,177,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.018), transparent 56%),
    var(--inv-cell);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
  color: #9aabb3;
  overflow: visible;
}

#bagOverlay .slot.hl {
  background: linear-gradient(135deg, rgba(38,170,140,.15), transparent 60%),
    rgba(14, 68, 59, .9);
  box-shadow: inset 0 0 0 1px rgba(40,170,140,.9), 0 0 8px rgba(22,132,111,.12);
}

#bagOverlay .slot.occupied {
  background: linear-gradient(135deg, rgba(255,255,255,.012), transparent 55%),
    #0f1b24;
}

#bagOverlay .slot.blocked {
  background: rgba(82, 31, 36, .72);
  box-shadow: inset 0 0 0 1px rgba(184,81,89,.75);
}

#bagOverlay .slot-label {
  left: 7px;
  top: 6px;
  max-width: calc(100% - 14px);
  color: #6f838e;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .03em;
  text-shadow: none;
}

#bagOverlay .item {
  position: absolute;
  left: 2px;
  top: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(149, 171, 181, .18);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(25, 39, 49, .93), rgba(13, 24, 32, .95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02),
    0 2px 4px rgba(0,0,0,.18);
  overflow: hidden;
  color: var(--inv-text);
  text-align: left;
}

#bagOverlay .item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(118,139,149,.42);
  z-index: 3;
}

#bagOverlay .item[data-item-rarity="rare"]::before {
  background: #8498aa;
}

#bagOverlay .item[data-item-rarity="epic"]::before {
  background: #6f8e9f;
  box-shadow: 0 0 7px rgba(111,142,159,.24);
}

#bagOverlay .item.money {
  background: linear-gradient(180deg, rgba(25,39,49,.94), rgba(12,23,31,.96));
}

#bagOverlay .item.gun {
  background: linear-gradient(180deg, rgba(25,39,49,.94), rgba(12,23,31,.96));
}

#bagOverlay .item.med {
  background: linear-gradient(180deg, rgba(25,39,49,.94), rgba(12,23,31,.96));
}

#bagOverlay .item.rare {
  background: linear-gradient(180deg, rgba(25,39,49,.94), rgba(12,23,31,.96));
}

#bagOverlay .item.gear {
  background: linear-gradient(180deg, rgba(25,39,49,.94), rgba(12,23,31,.96));
}

#bagOverlay .item:active {
  border-color: rgba(40,170,140,.72);
  background: linear-gradient(180deg, rgba(21,63,57,.95), rgba(10,40,36,.97));
}

#bagOverlay .item.drag-origin {
  border-color: rgba(40,170,140,.72);
  background: linear-gradient(180deg, rgba(21,63,57,.95), rgba(10,40,36,.97));
}

#bagOverlay .item-art-img {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 21%;
  bottom: 16%;
  width: 84%;
  height: 63%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  opacity: .92;
  -webkit-filter: saturate(.74) contrast(.96) brightness(.92) drop-shadow(0 3px 2px rgba(0,0,0,.48));
  filter: saturate(.74) contrast(.96) brightness(.92) drop-shadow(0 3px 2px rgba(0,0,0,.48));
}

#bagOverlay .item.w2 .item-art-img {
  left: 4%;
  width: 92%;
}

#bagOverlay .equip-slot .item.equipped .item-art-img {
  left: 8%;
  top: 22%;
  width: 84%;
  height: 65%;
}

#bagOverlay .item-name {
  position: absolute;
  left: 6px;
  right: 5px;
  top: 4px;
  z-index: 4;
  overflow: hidden;
  color: #aebbc1;
  font-size: 7px;
  line-height: 1.05;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(0,0,0,.72);
}

body > .item.drag-ghost .item-name {
  position: absolute;
  left: 6px;
  right: 5px;
  top: 4px;
  z-index: 4;
  overflow: hidden;
  color: #aebbc1;
  font-size: 7px;
  line-height: 1.05;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(0,0,0,.72);
}

#bagOverlay .item-value {
  position: absolute;
  right: 5px;
  bottom: 3px;
  z-index: 4;
  color: #9ba9af;
  font-size: 7px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 1px 1px #000;
}

body > .item.drag-ghost .item-value {
  position: absolute;
  right: 5px;
  bottom: 3px;
  z-index: 4;
  color: #9ba9af;
  font-size: 7px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 1px 1px #000;
}

#bagOverlay .item-value:not(:empty)::before {
  content: "◆";
  margin-right: 3px;
  color: #758d98;
  font-size: .85em;
}

body > .item.drag-ghost .item-value:not(:empty)::before {
  content: "◆";
  margin-right: 3px;
  color: #758d98;
  font-size: .85em;
}

#bagOverlay .item-size {
  position: absolute;
  left: 5px;
  bottom: 3px;
  z-index: 4;
  color: #526a75;
  font-size: 6px;
  line-height: 1;
  font-weight: 700;
}

body > .item.drag-ghost .item-size {
  position: absolute;
  left: 5px;
  bottom: 3px;
  z-index: 4;
  color: #526a75;
  font-size: 6px;
  line-height: 1;
  font-weight: 700;
}

#bagOverlay .item.equipped .item-name {
  top: 3px;
  font-size: 8px;
}

#bagOverlay .item.equipped .item-value {
  display: none;
}

#bagOverlay .item.equipped .item-size {
  display: none;
}

#bagOverlay .item.item-square .item-value {
  font-size: 6px;
}

#bagOverlay .item.item-square .item-size {
  font-size: 6px;
}

#bagOverlay .item.item-square .item-name {
  font-size: 7px;
}

body > .item.drag-ghost {
  border-radius: 0;
  border: 1px solid rgba(40,170,140,.8);
  background: linear-gradient(180deg, rgba(22,53,49,.98), rgba(9,29,27,.98));
  box-shadow: 0 8px 20px rgba(0,0,0,.5), 0 0 0 1px rgba(40,170,140,.18);
}

body > .item.drag-ghost .item-art-img {
  position: absolute;
  left: 8%;
  top: 20%;
  width: 84%;
  height: 64%;
  object-fit: contain;
  opacity: .95;
  -webkit-filter: saturate(.8) brightness(.96) drop-shadow(0 5px 4px rgba(0,0,0,.5));
  filter: saturate(.8) brightness(.96) drop-shadow(0 5px 4px rgba(0,0,0,.5));
}

.tactical-footer {
  position: absolute;
  left: calc(var(--safe-left) + 76px);
  right: calc(var(--safe-right) + 18px);
  bottom: var(--safe-bottom);
  height: 58px;
  display: flex;
  align-items: center;
  --flex-row-gap: 10px;
  --flex-column-gap: 10px;
  border-top: 1px solid rgba(150,174,187,.14);
  background: linear-gradient(180deg, rgba(8,17,24,.86), rgba(5,12,18,.98));
  z-index: 7;
}

.capacity-readout {
  min-width: 155px;
  display: flex;
  align-items: baseline;
  --flex-row-gap: 10px;
  --flex-column-gap: 10px;
  padding-left: 8px;
}

.capacity-readout span {
  color: #6e818b;
  font-size: 11px;
  font-weight: 700;
}

.capacity-readout strong {
  color: #c3cdd2;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .04em;
}

.footer-hint {
  flex: 1;
  min-width: 0;
  color: #526872;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tactical-footer button {
  min-width: 116px;
  height: 38px;
  border: 1px solid rgba(144,168,181,.28);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(23,36,45,.96), rgba(10,20,28,.96));
  color: #c2cdd2;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .05em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.tactical-footer button:last-child {
  border-color: rgba(31,150,126,.52);
  background: linear-gradient(180deg, rgba(20,101,86,.72), rgba(10,57,50,.74));
  color: #d3ede6;
}

.tactical-footer button:active {
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
  -webkit-filter: brightness(.88);
  filter: brightness(.88);
}

body[data-modal="backpack"] #bagOverlay.overlay.inventory-only .source-panel {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}

body[data-modal="backpack"] #bagOverlay.overlay.inventory-only .backpack-panel {
  max-width: none;
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay.overlay {
    padding: calc(var(--safe-top) + 56px)
        calc(var(--safe-right) + 10px)
        calc(var(--safe-bottom) + 50px)
        calc(var(--safe-left) + 58px);
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-topbar {
    height: 50px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-title-block {
    min-width: 240px;
    padding-left: calc(var(--safe-left) + 54px);
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-title-block strong {
    font-size: 22px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-title-block strong::before {
    height: 22px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-summary > div {
    min-width: 108px;
    padding-left: 10px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-summary strong {
    font-size: 18px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-summary span {
    font-size: 9px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .close-btn {
    top: 4px;
    left: calc(var(--safe-left) + 5px);
    width: 42px;
    height: 42px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-rail {
    top: calc(var(--safe-top) + 50px);
    bottom: calc(var(--safe-bottom) + 46px);
    width: 50px;
    padding-top: 5px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .rail-item {
    height: 44px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .rail-item svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .panel-heading {
    flex-basis: 46px;
    min-height: 46px;
    padding: 6px 10px 5px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .panel-kicker {
    font-size: 7px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .bag-panel h2 {
    font-size: 17px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .panel-capacity {
    padding-top: 8px;
    font-size: 11px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .section-strip {
    height: 24px;
    margin-bottom: 4px;
    font-size: 9px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .source-grid {
    grid-auto-rows: 39px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .bag-grid {
    grid-auto-rows: 37px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-footer {
    left: calc(var(--safe-left) + 58px);
    right: calc(var(--safe-right) + 10px);
    height: 46px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .tactical-footer button {
    min-width: 92px;
    height: 32px;
    font-size: 12px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .capacity-readout {
    min-width: 125px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .capacity-readout strong {
    font-size: 15px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .footer-hint {
    font-size: 9px;
  }
}

@media (orientation: portrait) {
  #bagOverlay.overlay {
    padding: calc(var(--safe-top) + 64px)
        calc(var(--safe-right) + 8px)
        calc(var(--safe-bottom) + 58px)
        calc(var(--safe-left) + 52px);
  }
}

@media (orientation: portrait) {
  .tactical-topbar {
    height: 56px;
  }
}

@media (orientation: portrait) {
  .tactical-title-block {
    min-width: 0;
    padding-left: calc(var(--safe-left) + 54px);
  }
}

@media (orientation: portrait) {
  .tactical-title-block i {
    display: none;
  }
}

@media (orientation: portrait) {
  .tactical-summary {
    --flex-row-gap: 4px;
    --flex-column-gap: 4px;
    padding-right: 7px;
  }
}

@media (orientation: portrait) {
  .tactical-summary > div {
    min-width: 86px;
    grid-template-columns: 1fr;
    grid-gap: 0;
    padding-left: 8px;
  }
}

@media (orientation: portrait) {
  .tactical-summary span {
    font-size: 8px;
  }
}

@media (orientation: portrait) {
  .tactical-summary strong {
    font-size: 14px;
  }
}

@media (orientation: portrait) {
  .tactical-rail {
    top: calc(var(--safe-top) + 56px);
    bottom: calc(var(--safe-bottom) + 52px);
    width: 44px;
  }
}

@media (orientation: portrait) {
  .rail-item {
    height: 48px;
  }
}

@media (orientation: portrait) {
  .rail-item svg {
    width: 20px;
    height: 20px;
  }
}

@media (orientation: portrait) {
  .inventory-shell {
    flex-direction: column;
    --flex-row-gap: 6px;
    --flex-column-gap: 6px;
  }
}

@media (orientation: portrait) {
  #bagOverlay .source-panel {
    width: 100%;
    max-width: none;
  }
}

@media (orientation: portrait) {
  #bagOverlay .backpack-panel {
    width: 100%;
    max-width: none;
  }
}

@media (orientation: portrait) {
  #bagOverlay .source-panel {
    flex: 0 1 42%;
  }
}

@media (orientation: portrait) {
  #bagOverlay .backpack-panel {
    flex: 1 1 58%;
  }
}

@media (orientation: portrait) {
  body[data-modal="backpack"] #bagOverlay.overlay.inventory-only .source-panel {
    display: none;
  }
}

@media (orientation: portrait) {
  .tactical-footer {
    left: calc(var(--safe-left) + 52px);
    right: calc(var(--safe-right) + 8px);
    height: 52px;
  }
}

@media (orientation: portrait) {
  .footer-hint {
    display: none;
  }
}

@media (orientation: portrait) {
  .capacity-readout {
    flex: 1;
    min-width: 0;
  }
}

@media (orientation: portrait) {
  .tactical-footer button {
    min-width: 78px;
    padding: 0 8px;
  }
}

.cap-legacy-layout #bagOverlay.overlay {
  padding-top: 58px;
  padding-right: 10px;
  padding-bottom: 50px;
  padding-left: 58px;
}

.cap-legacy-layout .panel-heading {
  min-height: 44px;
  flex-basis: 44px;
}

.cap-legacy-layout #bagOverlay .bag-panel h2 {
  font-size: 17px;
}

#bagOverlay .source-grid {
  grid-auto-rows: var(--inventory-cell-size, 48px);
}

#bagOverlay .source-grid > .slot {
  width: 100%;
  height: var(--inventory-cell-size, 48px);
  box-sizing: border-box;
}

#bagOverlay .bag-grid > .slot {
  width: 100%;
  height: var(--inventory-cell-size, 48px);
  box-sizing: border-box;
}

#gameFrame {
  --hud-green: #28c9a3;
  --hud-green-soft: rgba(40, 201, 163, .34);
  --hud-ink: rgba(7, 14, 19, .86);
  --hud-panel: rgba(13, 23, 30, .78);
  --hud-panel-2: rgba(24, 35, 43, .72);
  --hud-line: rgba(198, 216, 225, .26);
  --hud-line-soft: rgba(198, 216, 225, .12);
  --hud-white: rgba(236, 244, 247, .94);
  --hud-muted: rgba(188, 204, 213, .66);
}

#quickbar {
  grid-gap: 3px;
  border-top: 1px solid rgba(214, 229, 235, .18);
  border-bottom: 1px solid rgba(0, 0, 0, .5);
  isolation: isolate;
}

#quickbar::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

#quickbar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

#quickbar::before {
  left: -7px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-left: 1px solid rgba(213, 229, 235, .28);
  border-top: 1px solid rgba(213, 229, 235, .28);
  border-bottom: 1px solid rgba(213, 229, 235, .28);
}

#quickbar::after {
  right: -7px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-right: 1px solid rgba(213, 229, 235, .28);
  border-top: 1px solid rgba(213, 229, 235, .28);
  border-bottom: 1px solid rgba(213, 229, 235, .28);
}

#quickbar button {
  position: relative;
  width: 58px;
  height: 64px;
  min-width: 0;
  margin: 0;
  padding: 4px 5px 5px;
  overflow: hidden;
  border: 1px solid var(--hud-line-soft);
  border-radius: 0;
  color: var(--hud-white);
  background: linear-gradient(180deg, rgba(44, 57, 66, .69), rgba(11, 19, 25, .86)),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px);
  box-shadow: inset 0 1px rgba(255, 255, 255, .055),
    inset 0 -1px rgba(0, 0, 0, .55);
  text-shadow: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: border-color .13s ease, background-color .13s ease, filter .13s ease, transform .08s ease, -webkit-filter .13s ease, -webkit-transform .08s ease;
}

#quickbar button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(191, 209, 218, .15);
  pointer-events: none;
}

#quickbar button::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(220, 234, 239, .2);
  border-bottom: 1px solid rgba(220, 234, 239, .2);
  pointer-events: none;
}

#quickbar button:active:not(:disabled) {
  -webkit-transform: translateY(1px) scale(.985);
  transform: translateY(1px) scale(.985);
  -webkit-filter: brightness(1.09);
  filter: brightness(1.09);
}

#quickbar .weapon-slot {
  width: 126px;
  grid-template-rows: 15px 1fr;
  align-items: stretch;
  justify-items: stretch;
  padding: 3px 8px 5px;
}

#quickbar .weapon-slot .slot-num {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin: 0;
  color: var(--hud-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  letter-spacing: .5px;
  text-align: left;
  white-space: nowrap;
}

#quickbar .heal-slot .slot-num {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin: 0;
  color: var(--hud-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  letter-spacing: .5px;
  text-align: left;
  white-space: nowrap;
}

#quickbar .hud-key {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin: 0;
  color: var(--hud-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  letter-spacing: .5px;
  text-align: left;
  white-space: nowrap;
}

#quickbar .weapon-slot .slot-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

#quickbar .heal-slot .slot-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

#quickbar .slot-art-img {
  width: 92%;
  height: 38px;
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  -webkit-filter: grayscale(.1) brightness(.95) drop-shadow(0 2px 1px rgba(0,0,0,.5));
  filter: grayscale(.1) brightness(.95) drop-shadow(0 2px 1px rgba(0,0,0,.5));
}

#quickbar .weapon-slot.active {
  border-color: rgba(60, 221, 181, .72);
  background: linear-gradient(180deg, rgba(21, 88, 76, .78), rgba(11, 30, 31, .91)),
    repeating-linear-gradient(-45deg, rgba(85,255,208,.035) 0 2px, transparent 2px 6px);
  color: var(--hud-white);
  box-shadow: inset 0 0 0 1px rgba(54, 226, 182, .16),
    inset 0 -1px rgba(0,0,0,.5),
    0 0 10px rgba(23, 163, 130, .12);
}

#quickbar .weapon-slot.active::before {
  height: 3px;
  background: var(--hud-green);
  box-shadow: 0 0 7px rgba(40, 201, 163, .36);
}

#quickbar .heal-slot.ready::before {
  height: 3px;
  background: var(--hud-green);
  box-shadow: 0 0 7px rgba(40, 201, 163, .36);
}

#quickbar .heal-slot.active::before {
  height: 3px;
  background: var(--hud-green);
  box-shadow: 0 0 7px rgba(40, 201, 163, .36);
}

#quickbar .weapon-slot.active::after {
  left: 8px;
  right: 8px;
  bottom: 3px;
  width: auto;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, rgba(235,243,246,.92) 0 68%, rgba(235,243,246,.14) 68% 100%);
}

#quickbar .weapon-slot.active .slot-num {
  color: rgba(228, 248, 243, .9);
}

#quickbar .weapon-slot.active .slot-art-img {
  -webkit-filter: brightness(1.08) drop-shadow(0 2px 1px rgba(0,0,0,.5));
  filter: brightness(1.08) drop-shadow(0 2px 1px rgba(0,0,0,.5));
}

#quickbar .weapon-slot.empty {
  opacity: .68;
}

#quickbar .heal-slot.empty {
  opacity: .68;
}

#quickbar .utility-slot {
  opacity: .68;
}

#quickbar .heal-slot {
  width: 62px;
  grid-template-rows: 14px 1fr;
  align-items: stretch;
  justify-items: stretch;
  padding: 3px 6px 5px;
}

#quickbar .heal-slot.ready {
  opacity: 1;
  border-color: rgba(74, 211, 177, .58);
  background: linear-gradient(180deg, rgba(33, 76, 69, .74), rgba(12, 27, 28, .9));
}

#quickbar .heal-slot.active {
  opacity: 1;
  border-color: rgba(74, 211, 177, .58);
  background: linear-gradient(180deg, rgba(33, 76, 69, .74), rgba(12, 27, 28, .9));
}

#quickbar .heal-slot .slot-art-img {
  width: 37px;
  height: 35px;
}

#quickbar .slot-count {
  right: 0;
  bottom: 0;
  min-width: 15px;
  padding: 1px 3px;
  border: 1px solid rgba(218,230,235,.18);
  border-radius: 0;
  background: rgba(4, 9, 12, .8);
  color: rgba(238, 244, 247, .94);
  font-size: 9px;
  line-height: 12px;
}

#quickbar #btnBag {
  display: grid;
  grid-template-rows: 14px 1fr;
  align-items: center;
  justify-items: center;
}

#quickbar .utility-slot {
  display: grid;
  grid-template-rows: 14px 1fr;
  align-items: center;
  justify-items: center;
}

#quickbar #btnBag {
  width: 62px;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
}

#quickbar .quickbar-svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: rgba(224, 235, 239, .82);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-filter: drop-shadow(0 2px 1px rgba(0,0,0,.34));
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.34));
}

#quickbar #btnBag .quickbar-svg {
  width: 31px;
  height: 31px;
}

#quickbar .utility-slot {
  width: 54px;
}

#quickbar .utility-slot .hud-key {
  position: absolute;
  left: 5px;
  top: 3px;
  width: auto;
}

#quickbar .utility-slot .quickbar-svg {
  width: 30px;
  height: 30px;
  opacity: .8;
}

#quickbar button.locked {
  opacity: .38 !important;
  -webkit-filter: grayscale(.65) brightness(.8);
  filter: grayscale(.65) brightness(.8);
}

#quickbar button:disabled {
  opacity: .38 !important;
  -webkit-filter: grayscale(.65) brightness(.8);
  filter: grayscale(.65) brightness(.8);
}

.joy {
  width: 142px;
  height: 142px;
  border: 5px solid rgba(255,255,255,.48);
  background: rgba(67,61,57,.30);
  box-shadow: 0 4px 0 rgba(70,48,34,.18), inset 0 0 0 7px rgba(255,255,255,.12);
  backdrop-filter: blur(2px);
}

.joy::before,
.joy::after {
  display: none !important;
}

.joy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  opacity: .5;
}

.joy::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  opacity: .5;
}

.joy::before {
  width: 76%;
  height: 1px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent 0 10%, rgba(218,231,236,.26) 10% 14%, transparent 14% 86%, rgba(218,231,236,.26) 86% 90%, transparent 90%);
}

.joy::after {
  width: 1px;
  height: 76%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent 0 10%, rgba(218,231,236,.26) 10% 14%, transparent 14% 86%, rgba(218,231,236,.26) 86% 90%, transparent 90%);
}

.joy i {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border: 4px solid rgba(255,255,255,.62);
  background: rgba(91,84,78,.64);
  box-shadow: 0 5px 0 rgba(62,40,29,.22), inset 0 0 0 5px rgba(255,255,255,.11);
}

.round-btn {
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: visible;
  border: 1px solid rgba(219, 232, 237, .2);
  background: radial-gradient(circle, rgba(44, 56, 63, .42) 0 55%, rgba(7, 13, 17, .42) 56% 100%);
  color: rgba(236, 244, 247, .94);
  box-shadow: inset 0 0 0 7px rgba(5, 11, 15, .14),
    inset 0 1px rgba(255,255,255,.045),
    0 3px 14px rgba(0,0,0,.16);
  text-shadow: none;
  transition: transform .08s ease, background-color .12s ease, border-color .12s ease, -webkit-transform .08s ease;
}

.round-btn:active:not(:disabled) {
  -webkit-transform: scale(.95);
  transform: scale(.95);
  background: radial-gradient(circle, rgba(50, 88, 80, .52) 0 55%, rgba(7, 17, 18, .5) 56% 100%);
  border-color: rgba(65, 216, 178, .44);
}

.round-btn .hud-action-icon {
  width: 54%;
  height: 54%;
  fill: none;
  stroke: rgba(236, 244, 247, .91);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  -webkit-filter: drop-shadow(0 2px 1px rgba(0,0,0,.35));
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.35));
}

.round-btn.attack {
  width: 106px;
  height: 106px;
  right: calc(5.8% + var(--ui-safe-right));
  bottom: calc(18.4% + var(--ui-safe-bottom));
}

.round-btn.attack::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  border: 0;
  border-radius: 50%;
  pointer-events: none;
}

.round-btn.attack::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.round-btn.attack::before {
  background: linear-gradient(rgba(229,239,243,.42), rgba(229,239,243,.42)) 50% 0 / 1px 7px no-repeat,
    linear-gradient(rgba(229,239,243,.42), rgba(229,239,243,.42)) 50% 100% / 1px 7px no-repeat,
    linear-gradient(90deg, rgba(229,239,243,.42), rgba(229,239,243,.42)) 0 50% / 7px 1px no-repeat,
    linear-gradient(90deg, rgba(229,239,243,.42), rgba(229,239,243,.42)) 100% 50% / 7px 1px no-repeat;
}

.round-btn.attack::after {
  top: 15px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  border: 1px solid rgba(224, 235, 239, .08);
}

.round-btn.switch {
  width: 66px;
  height: 66px;
  right: calc(17.8% + var(--ui-safe-right));
  bottom: calc(21.5% + var(--ui-safe-bottom));
  border-width: 1px;
  font-size: 0;
}

.round-btn.switch .hud-action-icon {
  width: 54%;
  height: 54%;
  stroke-width: 4;
}

.round-btn.action {
  width: 90px;
  height: 90px;
  right: calc(8.3% + var(--ui-safe-right));
  bottom: calc(39.5% + var(--ui-safe-bottom));
  font-size: 0;
}

.round-btn.action .hud-action-icon {
  width: 58%;
  height: 58%;
  stroke-width: 3;
}

.round-btn.action:not(.hidden) {
  border: 0;
  box-shadow: none;
}

.round-btn.action:not(.hidden)::before,
.round-btn.action:not(.hidden)::after {
  content: none;
  display: none;
}

.round-btn.switch.disabled {
  opacity: .28;
}

#toast {
  padding: 8px 18px;
  border: 1px solid rgba(194, 214, 223, .2);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(9,17,22,.9), rgba(24,36,43,.86), rgba(9,17,22,.9));
  color: rgba(231, 241, 244, .96);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.75);
  box-shadow: 0 6px 16px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.03);
}

#hudText {
  padding: 6px 16px;
  border-left: 2px solid rgba(40, 201, 163, .75);
  background: linear-gradient(90deg, rgba(7,14,19,.76), rgba(7,14,19,.2));
  color: rgba(232, 241, 244, .95);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: .4px;
  text-shadow: 0 2px 3px rgba(0,0,0,.72);
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar {
    bottom: calc(2.2% + var(--ui-safe-bottom));
    --flex-row-gap: 2px;
    --flex-column-gap: 2px;
    padding: 2px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar button {
    width: 46px;
    height: 52px;
    padding: 3px 4px 4px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .weapon-slot {
    width: 96px;
    grid-template-rows: 12px 1fr;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .heal-slot {
    width: 50px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar #btnBag {
    width: 50px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .utility-slot {
    width: 43px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .weapon-slot .slot-num {
    font-size: 8px;
    line-height: 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .heal-slot .slot-num {
    font-size: 8px;
    line-height: 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .hud-key {
    font-size: 8px;
    line-height: 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .slot-art-img {
    height: 30px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .heal-slot .slot-art-img {
    width: 29px;
    height: 28px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .quickbar-svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .joy {
    width: 118px;
    height: 118px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .joy i {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .round-btn.attack {
    width: 86px;
    height: 86px;
    right: calc(4.8% + var(--ui-safe-right));
    bottom: calc(20.5% + var(--ui-safe-bottom));
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .round-btn.switch {
    width: 54px;
    height: 54px;
    right: calc(19.6% + var(--ui-safe-right));
    bottom: calc(23.5% + var(--ui-safe-bottom));
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .round-btn.action {
    width: 74px;
    height: 74px;
    right: calc(7.4% + var(--ui-safe-right));
    bottom: calc(43.5% + var(--ui-safe-bottom));
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #hudText {
    font-size: 18px;
  }
}

.cap-legacy-layout #quickbar {
  grid-gap: 2px;
  padding: 2px;
}

.cap-legacy-layout #quickbar button {
  background-color: rgba(12, 22, 28, .9);
}

.cap-legacy-layout #quickbar .weapon-slot {
  width: 96px;
}

.cap-legacy-layout #quickbar #btnBag {
  width: 50px;
}

.cap-legacy-layout #quickbar .heal-slot {
  width: 50px;
}

.cap-legacy-layout #quickbar .utility-slot {
  width: 42px;
}

.cap-legacy-layout .round-btn {
  background-color: rgba(10, 18, 23, .48);
}

.cap-legacy-layout .joy {
  background-color: rgba(10, 18, 23, .48);
}

@media (prefers-reduced-motion: reduce) {
  #quickbar button {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .round-btn {
    transition: none;
  }
}

#quickbar {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#quickbar::before {
  display: none !important;
}

#quickbar::after {
  display: none !important;
}

#quickbar #btnHeal.medical-round {
  order: 0;
  position: relative;
  display: grid !important;
  align-items: center;
  justify-items: center;
  grid-template-rows: 1fr;
  width: 60px;
  height: 60px;
  min-width: 60px;
  flex: 0 0 60px;
  margin: 0 7px 0 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(222, 235, 240, .26);
  border-radius: 50%;
  -webkit-clip-path: none;
  clip-path: none;
  background: radial-gradient(circle at 42% 34%, rgba(68, 85, 94, .78) 0 22%, rgba(20, 31, 38, .9) 48%, rgba(6, 12, 16, .94) 100%);
  box-shadow: inset 0 0 0 5px rgba(5, 11, 15, .25),
    inset 0 1px rgba(255, 255, 255, .075),
    0 4px 12px rgba(0, 0, 0, .28);
  opacity: .72 !important;
}

#quickbar #btnHeal.medical-round::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  left: 6px;
  width: auto;
  height: auto;
  border: 1px solid rgba(223, 235, 239, .13);
  border-radius: 50%;
  background: linear-gradient(rgba(224, 236, 240, .26), rgba(224, 236, 240, .26)) 50% 0 / 1px 4px no-repeat,
    linear-gradient(rgba(224, 236, 240, .26), rgba(224, 236, 240, .26)) 50% 100% / 1px 4px no-repeat,
    linear-gradient(90deg, rgba(224, 236, 240, .26), rgba(224, 236, 240, .26)) 0 50% / 4px 1px no-repeat,
    linear-gradient(90deg, rgba(224, 236, 240, .26), rgba(224, 236, 240, .26)) 100% 50% / 4px 1px no-repeat;
  pointer-events: none;
}

#quickbar #btnHeal.medical-round::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  right: auto;
  bottom: auto;
  width: 12px;
  height: 3px;
  border: 0;
  background: rgba(205, 221, 228, .38);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  pointer-events: none;
}

#quickbar #btnHeal.medical-round.ready {
  opacity: 1 !important;
  border-color: rgba(65, 218, 179, .64);
  background: radial-gradient(circle at 42% 34%, rgba(48, 111, 96, .86) 0 22%, rgba(18, 53, 48, .94) 48%, rgba(6, 20, 20, .96) 100%);
  box-shadow: inset 0 0 0 5px rgba(8, 48, 41, .25),
    inset 0 1px rgba(255, 255, 255, .075),
    0 0 0 1px rgba(40, 201, 163, .1),
    0 4px 12px rgba(0, 0, 0, .28);
}

#quickbar #btnHeal.medical-round.active {
  border-color: rgba(65, 218, 179, .64);
  background: radial-gradient(circle at 42% 34%, rgba(48, 111, 96, .86) 0 22%, rgba(18, 53, 48, .94) 48%, rgba(6, 20, 20, .96) 100%);
  box-shadow: inset 0 0 0 5px rgba(8, 48, 41, .25),
    inset 0 1px rgba(255, 255, 255, .075),
    0 0 0 1px rgba(40, 201, 163, .1),
    0 4px 12px rgba(0, 0, 0, .28);
}

#quickbar #btnHeal.medical-round.empty:disabled {
  opacity: .42 !important;
}

#quickbar #btnHeal.medical-round.locked:not(.active) {
  opacity: .42 !important;
}

#quickbar #btnHeal.medical-round.active {
  opacity: 1 !important;
}

#quickbar #btnHeal.medical-round.ready::after {
  background: var(--hud-green);
  box-shadow: 0 0 6px rgba(40, 201, 163, .38);
}

#quickbar #btnHeal.medical-round.active::after {
  background: var(--hud-green);
  box-shadow: 0 0 6px rgba(40, 201, 163, .38);
}

#quickbar #btnHeal.medical-round .slot-num {
  display: none !important;
}

#quickbar #btnHeal.medical-round .slot-icon {
  position: relative;
  z-index: 2;
  display: grid !important;
  align-items: center;
  justify-items: center;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}

#quickbar #btnHeal.medical-round .slot-art-img {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  -webkit-filter: brightness(.98) drop-shadow(0 2px 1px rgba(0, 0, 0, .48));
  filter: brightness(.98) drop-shadow(0 2px 1px rgba(0, 0, 0, .48));
}

#quickbar #btnHeal.medical-round .slot-count {
  right: -3px;
  bottom: -3px;
  z-index: 4;
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 3px;
  border: 1px solid rgba(224, 235, 239, .28);
  border-radius: 10px;
  background: rgba(5, 11, 15, .94);
  color: rgba(240, 246, 248, .96);
  font-size: 9px;
  line-height: 17px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
}

#quickbar #btnHeal.medical-round .slot-empty {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  color: transparent;
  font-size: 0;
  opacity: .6;
}

#quickbar #btnHeal.medical-round .slot-empty::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 1px;
  background: rgba(218, 231, 236, .72);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

#quickbar #btnHeal.medical-round .slot-empty::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 1px;
  background: rgba(218, 231, 236, .72);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

#quickbar #btnHeal.medical-round .slot-empty::before {
  width: 7px;
  height: 22px;
}

#quickbar #btnHeal.medical-round .slot-empty::after {
  width: 22px;
  height: 7px;
}

#quickbar #btnBag {
  order: 1;
  margin-right: 5px;
}

#quickbar #btnWeaponMain {
  order: 2;
}

#quickbar #btnWeaponSub {
  order: 3;
}
#quickbar #btnWeaponMelee {
  order: 4;
}


#quickbar .utility-armor {
  display: none !important;
}

#quickbar .utility-item {
  display: none !important;
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar #btnHeal.medical-round {
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-basis: 50px;
    margin-right: 4px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar #btnHeal.medical-round::before {
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar #btnHeal.medical-round .slot-art-img {
    width: 31px;
    height: 31px;
    max-width: 31px;
    max-height: 31px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar #btnHeal.medical-round .slot-count {
    min-width: 17px;
    height: 17px;
    font-size: 8px;
    line-height: 15px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar #btnBag {
    margin-right: 3px;
  }
}

.cap-legacy-layout #quickbar #btnHeal.medical-round {
  width: 52px;
  height: 52px;
  min-width: 52px;
  flex-basis: 52px;
  padding: 0;
  -webkit-clip-path: none;
  clip-path: none;
}

#btnAttack {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#btnAttack:active:not(:disabled) {
  -webkit-transform: none;
  transform: none;
}

#btnAttack.aiming {
  -webkit-transform: none;
  transform: none;
}

#btnAttack .attack-aim-knob {
  position: absolute;
  z-index: 1;
  left: 26%;
  top: 26%;
  width: 48%;
  height: 48%;
  border: 1px solid rgba(226, 238, 242, .2);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, rgba(86, 103, 111, .62) 0 28%, rgba(24, 36, 43, .76) 52%, rgba(7, 14, 18, .9) 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06),
    0 3px 9px rgba(0, 0, 0, .3);
  pointer-events: none;
  will-change: transform;
  transition: transform .1s ease-out, border-color .1s ease, background-color .1s ease, -webkit-transform .1s ease-out;
}

#btnAttack .attack-icon {
  position: relative;
  z-index: 2;
  width: 38%;
  height: 38%;
  will-change: transform;
  transition: transform .1s ease-out, stroke .1s ease, -webkit-transform .1s ease-out;
}

#btnAttack .attack-weapon-label {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: calc(100% + 5px);
  min-width: 72px;
  max-width: 112px;
  padding: 2px 7px 3px;
  overflow: hidden;
  border-left: 1px solid rgba(40, 201, 163, .48);
  background: linear-gradient(90deg, rgba(7, 14, 19, .78), rgba(7, 14, 19, .18));
  color: rgba(224, 235, 239, .78);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  letter-spacing: .35px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  pointer-events: none;
}

#btnAttack.armed .attack-weapon-label {
  color: rgba(230, 242, 245, .94);
  border-left-color: rgba(40, 201, 163, .8);
}

#btnAttack.aiming {
  border-color: rgba(72, 221, 183, .68);
  background: radial-gradient(circle, rgba(39, 87, 76, .56) 0 55%, rgba(5, 17, 18, .56) 56% 100%);
  box-shadow: inset 0 0 0 7px rgba(10, 67, 55, .17),
    inset 0 1px rgba(255, 255, 255, .06),
    0 0 0 1px rgba(40, 201, 163, .12),
    0 3px 14px rgba(0, 0, 0, .2);
}

#btnAttack.aiming .attack-aim-knob {
  border-color: rgba(84, 228, 191, .58);
  background: radial-gradient(circle at 42% 36%, rgba(69, 136, 119, .76) 0 28%, rgba(20, 65, 57, .88) 52%, rgba(5, 23, 22, .94) 100%);
  transition: none;
}

#btnAttack.aiming .attack-icon {
  stroke: rgba(240, 250, 249, .98);
  transition: none;
}

#btnAttack.aiming::after {
  border-color: rgba(62, 214, 176, .24);
}

#btnAttack.locked .attack-aim-knob {
  opacity: .48;
}

#btnAttack.locked .attack-icon {
  opacity: .48;
}

@media (max-height: 520px) and (orientation: landscape) {
  #btnAttack .attack-weapon-label {
    top: calc(100% + 3px);
    min-width: 64px;
    max-width: 94px;
    padding: 1px 5px 2px;
    font-size: 8px;
    line-height: 11px;
  }
}

.cap-legacy-layout #btnAttack .attack-aim-knob {
  width: 46%;
  height: 46%;
  left: 27%;
  top: 27%;
  background-color: rgba(20, 36, 42, .92);
}

.cap-legacy-layout #btnAttack .attack-weapon-label {
  font-size: 8px;
  line-height: 10px;
}

@media (prefers-reduced-motion: reduce) {
  #btnAttack .attack-aim-knob {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #btnAttack .attack-icon {
    transition: none;
  }
}

#quickbar .weapon-slot .weapon-ammo {
  position: absolute;
  z-index: 5;
  right: 6px;
  bottom: 5px;
  display: block;
  min-width: 42px;
  padding: 1px 4px 2px;
  border-left: 1px solid rgba(40, 201, 163, .58);
  background: linear-gradient(90deg, rgba(4, 10, 13, .84), rgba(4, 10, 13, .38));
  color: rgba(235, 243, 246, .94);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 12px;
  letter-spacing: .2px;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .72);
}

#quickbar .weapon-slot.active .weapon-ammo {
  border-left-color: rgba(70, 230, 190, .86);
  background: linear-gradient(90deg, rgba(3, 18, 18, .9), rgba(3, 18, 18, .42));
  color: #f1faf7;
}

#quickbar .weapon-slot.empty .weapon-ammo:empty {
  display: none;
}

.round-btn.reload {
  --reload-progress: 0deg;
  overflow: visible;
}

.round-btn.reload .reload-progress {
  position: absolute;
  z-index: 0;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: conic-gradient(from -90deg, rgba(44, 216, 174, .86) 0 var(--reload-progress), rgba(210, 226, 231, .08) var(--reload-progress) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 66%, #000 67% 100%);
  mask: radial-gradient(circle, transparent 0 66%, #000 67% 100%);
}

.round-btn.reload .reload-icon {
  position: relative;
  z-index: 2;
  width: 49%;
  height: 49%;
  stroke-width: 3.2;
}

.round-btn.reload .reload-caption {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: calc(100% + 3px);
  min-width: 38px;
  padding: 1px 5px 2px;
  border-left: 1px solid rgba(40, 201, 163, .42);
  background: linear-gradient(90deg, rgba(7, 14, 19, .76), rgba(7, 14, 19, .14));
  color: rgba(224, 235, 239, .72);
  font-size: 9px;
  font-weight: 700;
  line-height: 11px;
  letter-spacing: .2px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  pointer-events: none;
}

.round-btn.reload.ready {
  opacity: 1 !important;
  border-color: rgba(64, 211, 174, .52);
}

.round-btn.reload.reloading {
  opacity: 1 !important;
  border-color: rgba(72, 226, 187, .72);
  background: radial-gradient(circle, rgba(34, 78, 69, .58) 0 55%, rgba(5, 18, 18, .62) 56% 100%);
  box-shadow: inset 0 0 0 7px rgba(10, 67, 55, .17), 0 0 0 1px rgba(40, 201, 163, .14), 0 3px 14px rgba(0, 0, 0, .2);
}

.round-btn.reload.reloading .reload-icon {
  -webkit-animation: tacticalReloadSpin .72s linear infinite;
  animation: tacticalReloadSpin .72s linear infinite;
  stroke: rgba(242, 251, 249, .98);
}

.round-btn.reload.reloading .reload-caption {
  color: rgba(219, 250, 240, .96);
  border-left-color: rgba(52, 220, 179, .88);
}

@-webkit-keyframes tacticalReloadSpin{to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }}

@keyframes tacticalReloadSpin{to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }}

@media (max-height: 520px) and (orientation: landscape) {
  #quickbar .weapon-slot .weapon-ammo {
    right: 4px;
    bottom: 3px;
    min-width: 36px;
    padding: 0 3px 1px;
    font-size: 8px;
    line-height: 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .round-btn.reload .reload-caption {
    top: calc(100% + 2px);
    font-size: 7px;
    line-height: 9px;
  }
}

.cap-legacy-layout .round-btn.reload .reload-progress {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .round-btn.reload.reloading .reload-icon {
    -webkit-animation: none;
    animation: none;
  }
}

#bagOverlay .item.ammo-item {
  background: linear-gradient(180deg, rgba(28, 42, 49, .97), rgba(11, 22, 28, .98));
  border-color: rgba(111, 137, 146, .46);
}

body > .item.drag-ghost.ammo-item {
  background: linear-gradient(180deg, rgba(28, 42, 49, .97), rgba(11, 22, 28, .98));
  border-color: rgba(111, 137, 146, .46);
}

#bagOverlay .item.ammo-item::before {
  content: "AMMO";
  position: absolute;
  z-index: 3;
  right: 4px;
  top: 4px;
  padding-left: 4px;
  border-left: 1px solid rgba(43, 190, 157, .66);
  color: rgba(138, 169, 177, .82);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 5px;
  font-weight: 800;
  line-height: 7px;
  letter-spacing: .7px;
  pointer-events: none;
}

body > .item.drag-ghost.ammo-item::before {
  content: "AMMO";
  position: absolute;
  z-index: 3;
  right: 4px;
  top: 4px;
  padding-left: 4px;
  border-left: 1px solid rgba(43, 190, 157, .66);
  color: rgba(138, 169, 177, .82);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 5px;
  font-weight: 800;
  line-height: 7px;
  letter-spacing: .7px;
  pointer-events: none;
}

#bagOverlay .item.ammo-item .item-art-img {
  left: 12%;
  top: 21%;
  width: 76%;
  height: 55%;
  opacity: .96;
  -webkit-filter: saturate(.76) contrast(1.03) brightness(.94) drop-shadow(0 3px 2px rgba(0,0,0,.46));
  filter: saturate(.76) contrast(1.03) brightness(.94) drop-shadow(0 3px 2px rgba(0,0,0,.46));
}

body > .item.drag-ghost.ammo-item .item-art-img {
  left: 12%;
  top: 21%;
  width: 76%;
  height: 55%;
  opacity: .96;
  -webkit-filter: saturate(.76) contrast(1.03) brightness(.94) drop-shadow(0 3px 2px rgba(0,0,0,.46));
  filter: saturate(.76) contrast(1.03) brightness(.94) drop-shadow(0 3px 2px rgba(0,0,0,.46));
}

#bagOverlay .item.ammo-item .item-size {
  display: none;
}

body > .item.drag-ghost.ammo-item .item-size {
  display: none;
}

#bagOverlay .item-stack {
  position: absolute;
  z-index: 5;
  left: 4px;
  bottom: 3px;
  min-width: 20px;
  padding: 1px 4px 2px;
  border-left: 1px solid rgba(43, 201, 164, .76);
  background: linear-gradient(90deg, rgba(4, 13, 17, .9), rgba(4, 13, 17, .28));
  color: rgba(232, 241, 243, .96);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 8px;
  font-weight: 900;
  line-height: 9px;
  letter-spacing: .1px;
  text-align: left;
  text-shadow: 0 1px 1px rgba(0,0,0,.8);
  pointer-events: none;
}

body > .item.drag-ghost .item-stack {
  position: absolute;
  z-index: 5;
  left: 4px;
  bottom: 3px;
  min-width: 20px;
  padding: 1px 4px 2px;
  border-left: 1px solid rgba(43, 201, 164, .76);
  background: linear-gradient(90deg, rgba(4, 13, 17, .9), rgba(4, 13, 17, .28));
  color: rgba(232, 241, 243, .96);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 8px;
  font-weight: 900;
  line-height: 9px;
  letter-spacing: .1px;
  text-align: left;
  text-shadow: 0 1px 1px rgba(0,0,0,.8);
  pointer-events: none;
}

#bagOverlay .item.ammo-item .item-value {
  font-size: 6px;
  opacity: .82;
}

body > .item.drag-ghost.ammo-item .item-value {
  font-size: 6px;
  opacity: .82;
}

.cap-legacy-layout body > .item.drag-ghost .item-stack {
  font-size: 7px;
  line-height: 8px;
}

#hudText:empty {
  display: none !important;
}

#bagOverlay .source-panel.loot-revealing .section-strip {
  border-bottom-color: rgba(43, 174, 143, .28);
}

#bagOverlay .source-panel.loot-revealing .section-strip::after {
  margin-left: auto;
  padding-left: 13px;
  color: rgba(113, 213, 188, .8);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  background: linear-gradient(90deg, transparent, rgba(30, 140, 116, .09));
}

#bagOverlay .source-grid .slot.search-target {
  z-index: 7;
  border-color: rgba(91, 202, 174, .34);
  background: linear-gradient(135deg, rgba(31, 148, 121, .12), transparent 54%),
    rgba(18, 31, 40, .96);
  box-shadow: inset 0 0 0 1px rgba(83, 188, 161, .12),
    inset 0 0 18px rgba(22, 139, 112, .08);
  -webkit-animation: lootTargetPulse .72s ease-in-out infinite alternate;
  animation: lootTargetPulse .72s ease-in-out infinite alternate;
}

#bagOverlay .search-scanner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .48));
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .48));
}

#bagOverlay .search-scanner svg {
  position: relative;
  z-index: 2;
  width: 74%;
  height: 74%;
  overflow: visible;
  fill: none;
  stroke: rgba(230, 241, 242, .94);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-animation: lootScannerWiggle .56s cubic-bezier(.44, .05, .55, .95) infinite;
  animation: lootScannerWiggle .56s cubic-bezier(.44, .05, .55, .95) infinite;
}

#bagOverlay .search-scanner .scanner-glint {
  stroke: rgba(104, 221, 191, .94);
  stroke-width: 2.2;
}

#bagOverlay .search-scanner-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 72%;
  border: 1px solid rgba(74, 201, 169, .36);
  border-radius: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 13px rgba(48, 181, 148, .16);
  -webkit-animation: lootScannerPulse .72s ease-out infinite;
  animation: lootScannerPulse .72s ease-out infinite;
}

#bagOverlay .item.search-discovered {
  -webkit-animation: lootDiscovered .34s cubic-bezier(.14, .86, .23, 1.18) both;
  animation: lootDiscovered .34s cubic-bezier(.14, .86, .23, 1.18) both;
}

#bagOverlay .source-panel.loot-reveal-complete {
  box-shadow: inset 0 0 0 1px rgba(57, 186, 154, .18),
    0 10px 28px rgba(0, 0, 0, .18);
}

@-webkit-keyframes lootScannerWiggle{0%   { -webkit-transform: translate3d(-3px, 1px, 0) rotate(-13deg) scale(.96); transform: translate3d(-3px, 1px, 0) rotate(-13deg) scale(.96); }
  35%  { -webkit-transform: translate3d(2px, -2px, 0) rotate(6deg) scale(1.03); transform: translate3d(2px, -2px, 0) rotate(6deg) scale(1.03); }
  68%  { -webkit-transform: translate3d(3px, 2px, 0) rotate(13deg) scale(1); transform: translate3d(3px, 2px, 0) rotate(13deg) scale(1); }
  100% { -webkit-transform: translate3d(-3px, 1px, 0) rotate(-13deg) scale(.96); transform: translate3d(-3px, 1px, 0) rotate(-13deg) scale(.96); }}

@keyframes lootScannerWiggle{0%   { -webkit-transform: translate3d(-3px, 1px, 0) rotate(-13deg) scale(.96); transform: translate3d(-3px, 1px, 0) rotate(-13deg) scale(.96); }
  35%  { -webkit-transform: translate3d(2px, -2px, 0) rotate(6deg) scale(1.03); transform: translate3d(2px, -2px, 0) rotate(6deg) scale(1.03); }
  68%  { -webkit-transform: translate3d(3px, 2px, 0) rotate(13deg) scale(1); transform: translate3d(3px, 2px, 0) rotate(13deg) scale(1); }
  100% { -webkit-transform: translate3d(-3px, 1px, 0) rotate(-13deg) scale(.96); transform: translate3d(-3px, 1px, 0) rotate(-13deg) scale(.96); }}

@-webkit-keyframes lootScannerPulse{0%   { opacity: .75; -webkit-transform: translate(-50%, -50%) scale(.72); transform: translate(-50%, -50%) scale(.72); }
  100% { opacity: 0; -webkit-transform: translate(-50%, -50%) scale(1.42); transform: translate(-50%, -50%) scale(1.42); }}

@keyframes lootScannerPulse{0%   { opacity: .75; -webkit-transform: translate(-50%, -50%) scale(.72); transform: translate(-50%, -50%) scale(.72); }
  100% { opacity: 0; -webkit-transform: translate(-50%, -50%) scale(1.42); transform: translate(-50%, -50%) scale(1.42); }}

@-webkit-keyframes lootTargetPulse{from { -webkit-filter: brightness(.96); filter: brightness(.96); }
  to   { -webkit-filter: brightness(1.08); filter: brightness(1.08); }}

@keyframes lootTargetPulse{from { -webkit-filter: brightness(.96); filter: brightness(.96); }
  to   { -webkit-filter: brightness(1.08); filter: brightness(1.08); }}

@-webkit-keyframes lootDiscovered{0%   { opacity: 0; -webkit-transform: translate3d(0, 3px, 0) scale(.68); transform: translate3d(0, 3px, 0) scale(.68); -webkit-filter: brightness(1.6); filter: brightness(1.6); }
  55%  { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1.08); transform: translate3d(0, 0, 0) scale(1.08); -webkit-filter: brightness(1.18); filter: brightness(1.18); }
  100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); transform: translate3d(0, 0, 0) scale(1); -webkit-filter: brightness(1); filter: brightness(1); }}

@keyframes lootDiscovered{0%   { opacity: 0; -webkit-transform: translate3d(0, 3px, 0) scale(.68); transform: translate3d(0, 3px, 0) scale(.68); -webkit-filter: brightness(1.6); filter: brightness(1.6); }
  55%  { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1.08); transform: translate3d(0, 0, 0) scale(1.08); -webkit-filter: brightness(1.18); filter: brightness(1.18); }
  100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); transform: translate3d(0, 0, 0) scale(1); -webkit-filter: brightness(1); filter: brightness(1); }}

@-webkit-keyframes lootScanLabel{0%, 48% { opacity: .42; }
  49%, 100% { opacity: .9; }}

@keyframes lootScanLabel{0%, 48% { opacity: .42; }
  49%, 100% { opacity: .9; }}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .search-scanner svg {
    -webkit-animation: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .search-scanner-pulse {
    -webkit-animation: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .source-grid .slot.search-target {
    -webkit-animation: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bagOverlay .source-panel.loot-revealing .section-strip::after {
    -webkit-animation: none;
    animation: none;
  }
}

#hudText {
  display: none !important;
}

#toast {
  max-width: 78vw;
  line-height: 1.22;
  text-align: center;
  white-space: normal;
}

body:not([data-screen="game"]) #toast {
  display: none !important;
}

#bagOverlay .backpack-panel {
  order: 1;
  flex-basis: 57%;
}

#bagOverlay .source-panel {
  order: 2;
  flex-basis: 43%;
}

body[data-modal="backpack"] #bagOverlay.overlay.inventory-only .inventory-shell {
  justify-content: flex-start;
}

body[data-modal="backpack"] #bagOverlay.overlay.inventory-only .backpack-panel {
  flex: 0 1 57%;
  width: 57%;
}

body[data-modal="backpack"] #bagOverlay.overlay.inventory-only .source-panel {
  flex: 1 1 43%;
}

#bagOverlay .rig-section {
  display: block;
  margin: 0 0 8px;
}

#bagOverlay .rig-section.hidden {
  display: none !important;
}

#bagOverlay .rig-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

#bagOverlay .rig-grid > .slot {
  width: 100%;
  height: var(--inventory-cell-size, 48px);
  box-sizing: border-box;
}

#bagOverlay .rig-strip {
  position: relative;
  top: auto;
}

#bagOverlay .bag-strip {
  position: relative;
  top: auto;
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .equip-grid {
    margin-bottom: 5px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .equip-slot {
    min-height: 43px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .rig-section {
    margin-bottom: 5px;
  }
}

@media (orientation: portrait) {
  #bagOverlay .backpack-panel {
    order: 1;
  }
}

@media (orientation: portrait) {
  #bagOverlay .source-panel {
    order: 2;
  }
}

@media (orientation: portrait) {
  body[data-modal="backpack"] #bagOverlay.overlay.inventory-only .backpack-panel {
    flex: 1 1 100%;
    width: 100%;
  }
}

.cap-legacy-layout #bagOverlay .rig-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: var(--inventory-cell-size, 42px);
}

#bagOverlay .container-gear-section {
  display: block;
  margin: 0 0 10px;
}

#bagOverlay .container-gear-layout {
  display: flex;
  --flex-row-gap: 7px;
  --flex-column-gap: 7px;
  min-width: 0;
  padding: 0 0 1px;
}

#bagOverlay .container-equip-host {
  position: relative;
  box-sizing: border-box;
}

#bagOverlay .container-equip-host.hidden {
  display: none !important;
}

#bagOverlay .container-equip-slot {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(161,183,193,.26);
  background: linear-gradient(145deg,rgba(255,255,255,.028),transparent 58%),#0f1c25;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2),inset 0 0 22px rgba(0,0,0,.18);
}

#bagOverlay .rig-container-slot {
  background: linear-gradient(145deg,rgba(122,137,102,.12),transparent 60%),#121d1c;
  border-color: rgba(145,161,127,.28);
}

#bagOverlay .bag-container-slot {
  background: linear-gradient(145deg,rgba(87,119,131,.13),transparent 60%),#101d26;
  border-color: rgba(128,159,171,.28);
}

#bagOverlay .container-slot-label {
  top: auto;
  bottom: 6px;
  left: 7px;
  color: rgba(126,145,154,.7);
  font-size: 9px;
  letter-spacing: .06em;
}

#bagOverlay .container-storage-wrap {
  position: relative;
  min-width: 0;
  min-height: 62px;
}

#bagOverlay .container-empty-note {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border: 1px dashed rgba(133,155,166,.22);
  background: repeating-linear-gradient(-45deg,rgba(255,255,255,.018) 0 4px,transparent 4px 9px),rgba(7,14,20,.52);
  color: #657984;
  font-size: 11px;
  letter-spacing: .05em;
  pointer-events: none;
}

#bagOverlay .container-empty-note.hidden {
  display: none !important;
}

#bagOverlay .container-gear-section.no-container-equipped .grid {
  min-height: 62px;
  opacity: .34;
}

#bagOverlay .rig-grid {
  width: 100%;
  grid-auto-rows: var(--inventory-cell-size,48px);
  align-content: flex-start;
}

#bagOverlay .bag-grid {
  width: 100%;
  grid-auto-rows: var(--inventory-cell-size,48px);
  align-content: flex-start;
}

#bagOverlay .rig-grid>.slot {
  width: 100%;
  height: var(--inventory-cell-size,48px);
  box-sizing: border-box;
}

#bagOverlay .bag-grid>.slot {
  width: 100%;
  height: var(--inventory-cell-size,48px);
  box-sizing: border-box;
}

#bagOverlay .rig-grid .slot {
  background: linear-gradient(135deg,rgba(154,166,130,.024),transparent 58%),#14201f;
}

#bagOverlay .bag-grid {
  background: rgba(7,15,22,.46);
}

#bagOverlay .bag-grid .slot {
  background: linear-gradient(135deg,rgba(109,146,159,.024),transparent 58%),#12202a;
}

#bagOverlay .rig-strip span::before {
  background: #74886e;
}

#bagOverlay .bag-strip span::before {
  background: var(--inv-green);
}

#bagOverlay .container-equip-slot .item.equipped-container-gear {
  border-color: rgba(152,176,186,.23);
  background: linear-gradient(180deg,rgba(26,41,49,.92),rgba(12,23,30,.96));
}

#bagOverlay .rig-container-slot .item.equipped-container-gear {
  background: linear-gradient(180deg,rgba(39,48,38,.94),rgba(18,28,25,.97));
}

#bagOverlay .container-equip-slot .item.equipped-container-gear .item-art-img {
  opacity: .96;
  -webkit-filter: saturate(.72) contrast(1.02) brightness(.94) drop-shadow(0 3px 2px rgba(0,0,0,.5));
  filter: saturate(.72) contrast(1.02) brightness(.94) drop-shadow(0 3px 2px rgba(0,0,0,.5));
}

#bagOverlay .container-equip-slot .item.equipped-container-gear .item-value {
  display: none;
}

#bagOverlay .container-equip-slot .item.equipped-container-gear .item-size {
  display: none;
}

#bagOverlay .storage-capacity-tag {
  position: absolute;
  right: 5px;
  bottom: 4px;
  z-index: 5;
  padding: 2px 4px;
  border: 1px solid rgba(64,174,147,.4);
  background: rgba(7,39,34,.8);
  color: #9dd4c5;
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}

body>.item.drag-ghost .storage-capacity-tag {
  position: absolute;
  right: 5px;
  bottom: 4px;
  z-index: 5;
  padding: 2px 4px;
  border: 1px solid rgba(64,174,147,.4);
  background: rgba(7,39,34,.8);
  color: #9dd4c5;
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}

#bagOverlay .item.container-gear .item-art-img {
  top: 18%;
  bottom: 13%;
  height: 69%;
}

#bagOverlay .container-gear-section.post-extract-grid .container-gear-layout {
  display: block;
}

#bagOverlay .container-gear-section.post-extract-grid .container-storage-wrap {
  width: 100%;
}

#bagOverlay .container-gear-section.post-extract-grid .container-empty-note {
  display: none !important;
}

@media (max-height:540px) and (orientation:landscape) {
  #bagOverlay .container-gear-section {
    margin-bottom: 6px;
  }
}

@media (max-height:540px) and (orientation:landscape) {
  #bagOverlay .container-gear-layout {
    --flex-row-gap: 5px;
    --flex-column-gap: 5px;
  }
}

@media (max-height:540px) and (orientation:landscape) {
  #bagOverlay .container-equip-host {
    min-width: 56px;
    min-height: 56px;
  }
}

@media (max-height:540px) and (orientation:landscape) {
  #bagOverlay .container-empty-note {
    min-height: 56px;
    font-size: 9px;
  }
}

@media (orientation:portrait) {
  #bagOverlay .container-gear-layout {
    --flex-row-gap: 5px;
    --flex-column-gap: 5px;
  }
}

@media (orientation:portrait) {
  #bagOverlay .container-equip-host {
    min-width: 58px;
    min-height: 58px;
  }
}

.cap-legacy-layout #bagOverlay .container-equip-host {
  min-width: 56px;
  min-height: 56px;
}

#bagOverlay .container-equip-host {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  min-width: 48px;
  min-height: 48px;
}

#bagOverlay .container-gear-layout {
  justify-content: flex-start;
  align-items: flex-start;
}

#bagOverlay .container-storage-wrap {
  flex: 0 1 auto;
  width: auto;
}

#bagOverlay .container-equip-slot .item.equipped-container-gear {
  left: 4px;
  top: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
}

#bagOverlay .container-equip-slot .item.equipped-container-gear .item-art-img {
  left: 8%;
  top: 18%;
  width: 84%;
  height: 64%;
}

#bagOverlay .container-equip-slot .item.equipped-container-gear .item-name {
  top: 3px;
  left: 5px;
  right: 5px;
  font-size: 7px;
}

#bagOverlay .equip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: minmax(76px, 76px);
  grid-auto-rows: 76px;
  min-height: 76px;
  height: 76px;
  grid-gap: 3px;
  margin-bottom: 9px;
  align-items: stretch;
}

#bagOverlay .equip-slot {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.024), transparent 58%),
    #101d26;
}

#bagOverlay .equip-slot.has-item .slot-label {
  display: none !important;
}

#bagOverlay .equip-slot.empty-slot .slot-label {
  left: 7px;
  top: 7px;
  color: rgba(115,136,146,.74);
  font-size: 8px;
}

#bagOverlay .equip-slot .item.equipped:not(.equipped-container-gear) {
  left: 3px;
  top: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-color: rgba(145,169,180,.22);
  background: linear-gradient(180deg, rgba(25,40,50,.94), rgba(12,23,31,.97));
}

#bagOverlay .equip-slot .item.equipped:not(.equipped-container-gear) .item-art-img {
  left: 6%;
  top: 20%;
  width: 88%;
  height: 68%;
  object-fit: contain;
  opacity: .98;
  -webkit-filter: saturate(.72) contrast(1.05) brightness(.96) drop-shadow(0 3px 2px rgba(0,0,0,.5));
  filter: saturate(.72) contrast(1.05) brightness(.96) drop-shadow(0 3px 2px rgba(0,0,0,.5));
}

#bagOverlay .equip-slot .item.equipped-weapon .item-art-img {
  left: 4%;
  top: 25%;
  width: 92%;
  height: 60%;
}

#bagOverlay .equip-slot .item.equipped .item-name {
  top: 5px;
  left: 6px;
  right: 6px;
  font-size: 7px;
}

#bagOverlay .equip-slot .item.equipped .item-value {
  display: none !important;
}

#bagOverlay .equip-slot .item.equipped .item-size {
  display: none !important;
}

#bagOverlay .equip-slot .item.equipped .storage-capacity-tag {
  display: none !important;
}

#bagOverlay .pocket-section {
  display: block;
  margin: 0 0 9px;
}

#bagOverlay .pocket-section.hidden {
  display: none !important;
}

#bagOverlay .pocket-strip {
  position: relative;
  top: auto;
}

#bagOverlay .pocket-strip span::before {
  background: #78949e;
}

#bagOverlay .pocket-storage-wrap {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

#bagOverlay .pocket-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: var(--inventory-cell-size, 44px);
  align-content: flex-start;
  width: auto;
  background: rgba(10,18,24,.55);
}

#bagOverlay .pocket-grid > .slot {
  width: var(--inventory-cell-size, 44px);
  height: var(--inventory-cell-size, 44px);
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(128,157,169,.026), transparent 58%),
    #122029;
}

#bagOverlay .item-detail-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 14px)
    calc(var(--safe-right) + 14px)
    calc(var(--safe-bottom) + 14px)
    calc(var(--safe-left) + 14px);
  background: rgba(2,8,12,.64);
}

#bagOverlay .item-detail-overlay.hidden {
  display: none !important;
}

#bagOverlay .item-detail-card {
  position: relative;
  width: 360px;
  max-height: 540px;
  overflow: auto;
  border: 1px solid rgba(137,165,178,.36);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(18,31,40,.99), rgba(7,15,21,.995));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035),
    inset 3px 0 0 rgba(31,156,128,.72),
    0 18px 52px rgba(0,0,0,.52);
  color: #c8d3d8;
}

#bagOverlay .item-detail-card::after {
  content: "";
  position: absolute;
  right: 48px;
  top: 13px;
  width: 92px;
  height: 7px;
  opacity: .14;
  background: repeating-linear-gradient(-45deg, rgba(160,184,195,.55) 0 2px, transparent 2px 5px);
  pointer-events: none;
}

#bagOverlay .item-detail-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  --flex-row-gap: 12px;
  --flex-column-gap: 12px;
  padding: 9px 10px 8px 14px;
  border-bottom: 1px solid rgba(137,164,177,.18);
  background: linear-gradient(90deg, rgba(27,44,54,.94), rgba(11,22,30,.94));
}

#bagOverlay .item-detail-rarity {
  display: block;
  margin-bottom: 3px;
  color: #718995;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
}

#bagOverlay .item-detail-rarity[data-rarity="rare"] {
  color: #69a9ca;
}

#bagOverlay .item-detail-rarity[data-rarity="epic"] {
  color: #a38bc5;
}

#bagOverlay .item-detail-header h3 {
  margin: 0;
  color: #d5dfe3;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .02em;
}

#bagOverlay .item-detail-close {
  position: relative;
  z-index: 2;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(139,164,176,.16);
  border-radius: 0;
  background: transparent;
  color: #91a2aa;
  font-size: 31px;
  line-height: 34px;
  font-weight: 300;
}

#bagOverlay .item-detail-close:active {
  background: rgba(255,255,255,.04);
  color: #e2ebee;
}

#bagOverlay .item-detail-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  grid-gap: 12px;
  padding: 13px 14px 11px;
}

#bagOverlay .item-detail-preview {
  position: relative;
  min-height: 148px;
  border: 1px solid rgba(135,160,172,.17);
  background: linear-gradient(135deg, rgba(255,255,255,.018), transparent 58%),
    #0d1921;
  overflow: hidden;
}

#bagOverlay .item-detail-preview::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: .14;
  background: linear-gradient(rgba(126,151,163,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,151,163,.15) 1px, transparent 1px);
  background-size: 16px 16px;
}

#bagOverlay .item-detail-preview img {
  position: absolute;
  left: 8%;
  top: 9%;
  width: 84%;
  height: 82%;
  object-fit: contain;
  -webkit-filter: saturate(.8) contrast(1.03) drop-shadow(0 5px 3px rgba(0,0,0,.55));
  filter: saturate(.8) contrast(1.03) drop-shadow(0 5px 3px rgba(0,0,0,.55));
}

#bagOverlay .item-detail-quantity {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  padding: 3px 6px;
  border: 1px solid rgba(63,175,147,.38);
  background: rgba(5,37,31,.82);
  color: #b5ddd2;
  font-size: 13px;
  font-weight: 800;
}

#bagOverlay .item-detail-quantity.hidden {
  display: none !important;
}

#bagOverlay .item-detail-summary {
  min-width: 0;
}

#bagOverlay .item-detail-price {
  padding: 3px 0 10px;
  border-bottom: 1px solid rgba(137,164,177,.14);
}

#bagOverlay .item-detail-price span {
  display: block;
  margin-bottom: 3px;
  color: #6e838e;
  font-size: 10px;
  letter-spacing: .05em;
}

#bagOverlay .item-detail-price strong {
  color: #c8d4d9;
  font-size: 23px;
  font-weight: 750;
}

#bagOverlay .item-detail-price strong::before {
  content: "◆";
  margin-right: 6px;
  color: #7e939e;
  font-size: 13px;
  vertical-align: 2px;
}

#bagOverlay .item-detail-facts {
  padding-top: 6px;
}

#bagOverlay .item-detail-facts > div {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  --flex-row-gap: 10px;
  --flex-column-gap: 10px;
  border-bottom: 1px solid rgba(137,164,177,.08);
  font-size: 11px;
}

#bagOverlay .item-detail-facts span {
  color: #687d88;
}

#bagOverlay .item-detail-facts strong {
  color: #aebdc4;
  font-weight: 650;
  text-align: right;
}

#bagOverlay .item-detail-description {
  margin: 0;
  padding: 10px 14px 13px;
  border-top: 1px solid rgba(137,164,177,.12);
  color: #758b96;
  font-size: 12px;
  line-height: 1.55;
}

#bagOverlay .item-detail-actions {
  display: flex;
  justify-content: flex-start;
  padding: 10px 14px 13px;
  border-top: 1px solid rgba(137,164,177,.13);
  background: rgba(4,10,14,.38);
}

#bagOverlay .item-detail-discard {
  min-width: 126px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(143,161,168,.29);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(28,39,45,.92), rgba(13,22,27,.95));
  color: #b6c2c7;
  font-size: 14px;
  font-weight: 750;
}

#bagOverlay .item-detail-discard:active {
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
  border-color: rgba(180,91,91,.48);
  background: linear-gradient(180deg, rgba(61,34,37,.94), rgba(34,20,23,.96));
}

#bagOverlay .discard-icon {
  position: relative;
  width: 13px;
  height: 15px;
  border: 2px solid currentColor;
  border-top: 0;
  opacity: .8;
}

#bagOverlay .discard-icon::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -5px;
  width: 15px;
  border-top: 2px solid currentColor;
}

#bagOverlay .discard-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -8px;
  width: 5px;
  height: 3px;
  border: 2px solid currentColor;
  border-bottom: 0;
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .equip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 50px;
    grid-auto-rows: 50px;
    min-height: 50px;
    height: 50px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .pocket-section {
    margin-bottom: 5px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .container-gear-section {
    margin-bottom: 5px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .item-detail-card {
    width: 420px;
    max-height: 90vh;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .item-detail-body {
    grid-template-columns: 135px 1fr;
    padding-top: 9px;
    padding-bottom: 8px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .item-detail-preview {
    min-height: 118px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .item-detail-description {
    padding-top: 7px;
    padding-bottom: 8px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  #bagOverlay .item-detail-actions {
    padding-top: 7px;
    padding-bottom: 8px;
  }
}

@media (orientation: portrait) {
  #bagOverlay .equip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 72px);
    grid-auto-rows: 72px;
    min-height: 147px;
    height: 147px;
  }
}

@media (orientation: portrait) {
  #bagOverlay .item-detail-card {
    width: 390px;
  }
}

@media (orientation: portrait) {
  #bagOverlay .item-detail-body {
    grid-template-columns: 42% 1fr;
  }
}

#bagOverlay .source-grid {
  justify-content: flex-start;
  justify-items: stretch;
}

#bagOverlay .rig-grid {
  justify-content: flex-start;
  justify-items: stretch;
}

#bagOverlay .pocket-grid {
  justify-content: flex-start;
  justify-items: stretch;
}

#bagOverlay .bag-grid {
  justify-content: flex-start;
  justify-items: stretch;
}

#bagOverlay .source-grid {
  justify-self: flex-start;
  align-self: flex-start;
}

#bagOverlay .source-scroll {
  overflow-x: hidden;
}

#bagOverlay .bag-scroll {
  overflow-x: hidden;
}

.cap-legacy-layout #joystick {
  display: flex !important;
  visibility: visible !important;
}

.cap-legacy-layout #btnAttack {
  display: flex !important;
  visibility: visible !important;
}

.cap-legacy-layout #btnSwitchWeapon {
  display: flex !important;
  visibility: visible !important;
}

.cap-legacy-layout #quickbar {
  visibility: visible !important;
}

.cap-legacy-layout #btnAction:not(.hidden) {
  display: grid !important;
  visibility: visible !important;
}

.cap-legacy-layout #quickbar {
  --flex-row-gap: 0;
  --flex-column-gap: 0;
  max-width: none;
}

.cap-legacy-layout #quickbar button {
  flex-shrink: 0;
}

.cap-legacy-layout #quickbar button + button {
  margin-left: 2px;
}

.cap-legacy-layout #quickbar #btnHeal.medical-round {
  margin-right: 2px;
}

.cap-legacy-layout #quickbar .slot-art-img {
  max-width: 94%;
  max-height: 34px;
  object-fit: contain;
}

.cap-legacy-layout .round-btn {
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout .joy {
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout #bagOverlay.overlay {
  grid-gap: 0;
}

.cap-legacy-layout #bagOverlay .inventory-shell {
  --flex-row-gap: 0;
  --flex-column-gap: 0;
}

.cap-legacy-layout #bagOverlay .backpack-panel {
  order: 1;
}

.cap-legacy-layout #bagOverlay .source-panel {
  order: 2;
}

.cap-legacy-layout #bagOverlay .equip-grid {
  display: grid !important;
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay.overlay {
    padding: 52px 8px 44px 52px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout .tactical-topbar {
    height: 46px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout .tactical-rail {
    top: 46px;
    bottom: 42px;
    width: 46px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout .tactical-footer {
    left: 52px;
    right: 8px;
    height: 42px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .equip-grid {
    grid-template-rows: 50px;
    grid-auto-rows: 50px;
    min-height: 50px;
    height: 50px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .equip-slot {
    min-height: 50px;
    height: 50px;
  }
}

#bagOverlay .source-panel.enemy-loadout-mode {
  max-width: 560px;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-generic-section {
  display: none;
}

#bagOverlay .source-panel:not(.enemy-loadout-mode) .source-loadout-sections {
  display: none;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-sections {
  display: block;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-sections .equip-grid {
  margin-bottom: 12px;
}

#bagOverlay .source-panel.enemy-loadout-mode .carry-section {
  margin-bottom: 12px;
}

#bagOverlay .source-panel.enemy-loadout-mode .carry-section:last-child {
  margin-bottom: 0;
}

#bagOverlay .source-panel.enemy-loadout-mode .container-empty-note {
  display: none !important;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-equip-grid {
  justify-content: flex-start;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-rig-grid {
  justify-content: flex-start;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-pocket-grid {
  justify-content: flex-start;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-bag-grid {
  justify-content: flex-start;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-slot {
  position: relative;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-container-slot {
  position: relative;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-slot.has-item .slot-label {
  display: none;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-container-slot.has-item .slot-label {
  display: none;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-slot .slot-label {
  pointer-events: none;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-container-slot .slot-label {
  pointer-events: none;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-rig-grid {
  min-height: 0;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-bag-grid {
  min-height: 0;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-pocket-grid {
  min-height: 0;
}

.cap-legacy-layout #joystick {
  position: absolute;
  -webkit-transform: none;
  transform: none;
}

.cap-legacy-layout #btnAttack {
  position: absolute;
  -webkit-transform: none;
  transform: none;
}

.cap-legacy-layout #btnSwitchWeapon {
  position: absolute;
  -webkit-transform: none;
  transform: none;
}

.cap-legacy-layout #btnAction {
  position: absolute;
  -webkit-transform: none;
  transform: none;
}

.cap-legacy-layout #quickbar {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  pointer-events: auto !important;
}

.cap-legacy-layout #quickbar button {
  float: none;
  box-sizing: border-box;
  -webkit-animation: none;
  animation: none;
  transition: none;
}

.cap-legacy-layout #quickbar .weapon-slot {
  border-radius: 2px;
  box-shadow: inset 0 1px rgba(255,255,255,.05), inset 0 -1px rgba(0,0,0,.55);
}

.cap-legacy-layout #quickbar #btnBag {
  border-radius: 2px;
  box-shadow: inset 0 1px rgba(255,255,255,.05), inset 0 -1px rgba(0,0,0,.55);
}

.cap-legacy-layout #quickbar .weapon-slot .slot-num {
  position: absolute;
  left: 5px;
  top: 3px;
  right: auto;
  bottom: auto;
  width: auto;
  height: 11px;
  display: block !important;
  color: rgba(217,229,234,.78);
  font-size: 9px;
  line-height: 11px;
  text-align: left;
  white-space: nowrap;
  z-index: 4;
}

.cap-legacy-layout #quickbar #btnBag .hud-key {
  position: absolute;
  left: 5px;
  top: 3px;
  right: auto;
  bottom: auto;
  width: auto;
  height: 11px;
  display: block !important;
  color: rgba(217,229,234,.78);
  font-size: 9px;
  line-height: 11px;
  text-align: left;
  white-space: nowrap;
  z-index: 4;
}

.cap-legacy-layout #quickbar .weapon-slot .slot-icon {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 14px;
  bottom: 4px;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  z-index: 2;
}

.cap-legacy-layout #quickbar .weapon-slot .slot-art-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.cap-legacy-layout #quickbar .weapon-slot .slot-empty {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: block !important;
  color: rgba(214,226,231,.45);
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.cap-legacy-layout #quickbar .weapon-slot .weapon-ammo {
  position: absolute;
  right: 4px;
  bottom: 3px;
  min-width: 34px;
  height: 12px;
  padding: 1px 3px;
  color: #eef6f7;
  background: rgba(3,10,13,.88);
  border-left: 1px solid rgba(45,205,167,.72);
  font-size: 8px;
  line-height: 10px;
  text-align: right;
  z-index: 6;
}

.cap-legacy-layout #quickbar #btnBag .quickbar-svg {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 28px;
  height: 28px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout #quickbar #btnHeal.medical-round {
  display: block !important;
}

.cap-legacy-layout #quickbar #btnHeal.medical-round .slot-icon {
  position: absolute;
  left: 5px;
  top: 5px;
  right: 5px;
  bottom: 5px;
  width: auto;
  height: auto;
  display: block !important;
}

.cap-legacy-layout #quickbar #btnHeal.medical-round .slot-art-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout #quickbar #btnHeal.medical-round .slot-count {
  display: block !important;
  right: -2px;
  bottom: -2px;
}

.cap-legacy-layout #bagOverlay .inventory-shell {
  contain: none;
}

.cap-legacy-layout #bagOverlay .bag-panel {
  contain: none;
}

.cap-legacy-layout #bagOverlay .inventory-shell {
  display: flex !important;
  justify-content: flex-start;
}

.cap-legacy-layout #bagOverlay .bag-panel {
  height: 100%;
  overflow: hidden;
}

.cap-legacy-layout #bagOverlay .panel-heading {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.cap-legacy-layout #bagOverlay .panel-scroll {
  display: block !important;
}

.cap-legacy-layout #bagOverlay .tactical-summary > div {
  display: flex !important;
  align-items: baseline;
}

.cap-legacy-layout #bagOverlay .source-panel.enemy-loadout-mode .source-loadout-sections {
  display: block !important;
}

.cap-legacy-layout #bagOverlay .source-panel.enemy-loadout-mode .source-equip-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 3px;
}

.cap-legacy-layout #bagOverlay .source-panel.enemy-loadout-mode .container-gear-layout {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
}

#legacyHudRoot {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 200;
  contain: none;
  -webkit-transform: none;
  transform: none;
}

#legacyHudRoot > * {
  pointer-events: auto;
}

.cap-legacy-layout #stageWrap {
  display: block !important;
}

.cap-legacy-layout #gameFrame {
  contain: none;
}

.cap-legacy-layout #gameCanvas {
  display: block !important;
}

.cap-legacy-layout #quickbar {
  display: block !important;
  isolation: auto;
  contain: none;
}

.cap-legacy-layout #quickbar::before {
  display: none !important;
}

.cap-legacy-layout #quickbar::after {
  display: none !important;
}

.cap-legacy-layout #quickbar button::after {
  display: none !important;
}

.cap-legacy-layout #quickbar button {
  display: block !important;
  background: rgba(16, 29, 37, .98);
  border: 1px solid rgba(145, 174, 186, .28);
  box-shadow: inset 0 1px rgba(255,255,255,.04), inset 0 -1px rgba(0,0,0,.48);
  -webkit-clip-path: none;
  clip-path: none;
  contain: none;
}

.cap-legacy-layout #quickbar .weapon-slot.active {
  background: rgba(13, 58, 51, .98);
  border-color: rgba(47, 208, 168, .78);
}

.cap-legacy-layout #quickbar .weapon-slot .slot-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.cap-legacy-layout #quickbar .weapon-slot .slot-art-img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.cap-legacy-layout #quickbar #btnHeal .slot-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.cap-legacy-layout #quickbar #btnHeal .slot-art-img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.cap-legacy-layout #quickbar .weapon-slot .weapon-ammo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.cap-legacy-layout #quickbar #btnHeal.medical-round {
  border-radius: 50%;
  overflow: visible;
}

.cap-legacy-layout #joystick {
  contain: none;
}

.cap-legacy-layout #btnAttack {
  contain: none;
}

.cap-legacy-layout #btnSwitchWeapon {
  contain: none;
}

.cap-legacy-layout #btnAction {
  contain: none;
}

.cap-legacy-layout #bagOverlay {
  font-size: 11px;
}

.cap-legacy-layout #bagOverlay .tactical-title-block strong {
  font-size: 22px;
  line-height: 26px;
}

.cap-legacy-layout #bagOverlay .tactical-summary {
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
}

.cap-legacy-layout #bagOverlay .tactical-summary > div {
  padding: 0 7px;
}

.cap-legacy-layout #bagOverlay .tactical-summary span {
  font-size: 8px;
}

.cap-legacy-layout #bagOverlay .tactical-summary strong {
  font-size: 16px;
}

.cap-legacy-layout #bagOverlay .panel-heading {
  flex-basis: auto;
  box-sizing: border-box;
}

.cap-legacy-layout #bagOverlay .panel-capacity {
  font-size: 11px;
}

.cap-legacy-layout #bagOverlay .panel-scroll {
  contain: none;
}

.cap-legacy-layout #bagOverlay .carry-section {
  margin-bottom: 5px;
}

.cap-legacy-layout #bagOverlay .container-gear-section {
  margin-bottom: 5px;
}

.cap-legacy-layout #bagOverlay .pocket-section {
  margin-bottom: 5px;
}

.cap-legacy-layout #bagOverlay .container-gear-layout {
  display: flex !important;
  --flex-row-gap: 0;
  --flex-column-gap: 0;
}

.cap-legacy-layout #bagOverlay .slot {
  border-radius: 1px;
}

.cap-legacy-layout #bagOverlay .item {
  border-radius: 1px;
}

.cap-legacy-layout #bagOverlay .item-name {
  font-size: 7px;
  line-height: 9px;
}

.cap-legacy-layout #bagOverlay .item-value {
  font-size: 7px;
  line-height: 9px;
}

.cap-legacy-layout #bagOverlay .item-size {
  font-size: 7px;
  line-height: 9px;
}

.cap-legacy-layout #bagOverlay .item-stack {
  font-size: 7px;
  line-height: 9px;
}

.cap-legacy-layout #bagOverlay .storage-capacity-tag {
  font-size: 7px;
  line-height: 9px;
}

.cap-legacy-layout #bagOverlay .equip-slot .item.equipped {
  top: 3px;
  bottom: auto;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  max-width: none;
}

.cap-legacy-layout #bagOverlay .source-loadout-slot .item.equipped {
  top: 3px;
  bottom: auto;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  max-width: none;
}

.cap-legacy-layout #bagOverlay .source-container-slot .item.equipped {
  top: 3px;
  bottom: auto;
  left: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  max-width: none;
}

.cap-legacy-layout #bagOverlay .tactical-footer {
  font-size: 10px;
}

.cap-legacy-layout #bagOverlay .tactical-footer button {
  min-width: 92px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

@media (max-height: 400px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .tactical-title-block strong {
    font-size: 19px;
    line-height: 22px;
  }
}

@media (max-height: 400px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .tactical-summary strong {
    font-size: 14px;
  }
}

@media (max-height: 400px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .tactical-footer .footer-hint {
    display: none !important;
  }
}

.cap-legacy-layout .screen {
  padding: 0;
}

.cap-legacy-layout {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.cap-legacy-layout body {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.cap-legacy-layout {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.cap-legacy-layout #app {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.cap-legacy-layout {
  --safe-top: 0px;
  --safe-right: 0px;
  --safe-bottom: 0px;
  --safe-left: 0px;
  --ui-safe-bottom: 0px;
  --ui-safe-right: 0px;
  --equip-item-top: 24px;
}

.cap-legacy-layout .screen {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.cap-legacy-layout #stageWrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.cap-legacy-layout #gameFrame {
  position: absolute;
  display: block;
  overflow: visible;
  max-width: none;
  max-height: none;
  -webkit-transform: none;
  transform: none;
}

.cap-legacy-layout #gameCanvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.cap-legacy-layout #legacyHudRoot {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
  z-index: 200;
  -webkit-transform: none;
  transform: none;
}

.cap-legacy-layout #legacyHudRoot > * {
  pointer-events: auto;
}

.cap-legacy-layout #quickbar {
  position: absolute;
  display: block;
  visibility: visible;
  opacity: 1;
  overflow: visible;
  background: rgba(8,18,24,.96);
  border: 1px solid rgba(145,174,186,.34);
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  -webkit-transform: none;
  transform: none;
}

.cap-legacy-layout #quickbar button {
  position: absolute;
  display: block;
  visibility: visible;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 2px;
  -webkit-transform: none;
  transform: none;
}

.cap-legacy-layout #quickbar #btnHeal {
  overflow: visible;
  border-radius: 50%;
}

.cap-legacy-layout #quickbar .weapon-slot .slot-icon {
  display: block;
  visibility: visible;
  opacity: 1;
}

.cap-legacy-layout #quickbar .weapon-slot .slot-art-img {
  display: block;
  visibility: visible;
  opacity: 1;
}

.cap-legacy-layout #quickbar #btnHeal .slot-icon {
  display: block;
  visibility: visible;
  opacity: 1;
}

.cap-legacy-layout #quickbar #btnHeal .slot-art-img {
  display: block;
  visibility: visible;
  opacity: 1;
}

.cap-legacy-layout #quickbar .weapon-slot .weapon-ammo {
  display: block;
  visibility: visible;
  opacity: 1;
}

.cap-legacy-layout #quickbar .weapon-slot .slot-art-img {
  max-width: none;
  max-height: none;
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout #quickbar #btnHeal .slot-art-img {
  max-width: none;
  max-height: none;
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout #joystick {
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout #btnAttack {
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout #btnSwitchWeapon {
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout #btnAction {
  -webkit-filter: none;
  filter: none;
}

.cap-legacy-layout #bagOverlay.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 52px 8px 44px 52px;
  overflow: hidden;
}

.cap-legacy-layout .tactical-topbar {
  height: 46px;
}

.cap-legacy-layout .tactical-rail {
  top: 46px;
  bottom: 42px;
  width: 46px;
}

.cap-legacy-layout .tactical-footer {
  left: 52px;
  right: 8px;
  bottom: 0;
  height: 42px;
}

.cap-legacy-layout #bagOverlay .inventory-shell {
  position: relative;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.cap-legacy-layout #bagOverlay .backpack-panel {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 57%;
  flex: 0 0 57%;
  width: 57%;
  max-width: 57%;
  height: 100%;
  margin-right: 8px;
  overflow: hidden;
}

.cap-legacy-layout #bagOverlay .source-panel {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.cap-legacy-layout #bagOverlay .bag-panel {
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  min-height: 0;
}

.cap-legacy-layout #bagOverlay .panel-heading {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.cap-legacy-layout #bagOverlay .panel-scroll {
  display: block;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cap-legacy-layout #bagOverlay .equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 50px;
  grid-auto-rows: 50px;
  grid-gap: 3px;
  height: 50px;
  min-height: 50px;
}

.cap-legacy-layout #bagOverlay .source-equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 50px;
  grid-auto-rows: 50px;
  grid-gap: 3px;
  height: 50px;
  min-height: 50px;
}

.cap-legacy-layout #bagOverlay .equip-slot {
  height: 50px;
  min-height: 50px;
}

.cap-legacy-layout #bagOverlay .container-gear-layout {
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.cap-legacy-layout #bagOverlay .container-equip-host {
  margin-right: 3px;
}

.cap-legacy-layout #bagOverlay .source-grid {
  display: grid;
  grid-gap: 2px;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-content: flex-start;
  align-content: flex-start;
}

.cap-legacy-layout #bagOverlay .rig-grid {
  display: grid;
  grid-gap: 2px;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-content: flex-start;
  align-content: flex-start;
}

.cap-legacy-layout #bagOverlay .pocket-grid {
  display: grid;
  grid-gap: 2px;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-content: flex-start;
  align-content: flex-start;
}

.cap-legacy-layout #bagOverlay .bag-grid {
  display: grid;
  grid-gap: 2px;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-content: flex-start;
  align-content: flex-start;
}

.cap-legacy-layout #bagOverlay .source-panel.enemy-loadout-mode .source-loadout-sections {
  display: block;
  width: 100%;
}

.cap-legacy-layout #bagOverlay .tactical-summary > div + div {
  margin-left: 8px;
}

.cap-legacy-layout #bagOverlay .tactical-footer button + button {
  margin-left: 6px;
}

.cap-legacy-layout #bagOverlay .item {
  -webkit-animation: none;
  animation: none;
  -webkit-transition: none;
  transition: none;
}

.cap-legacy-layout #bagOverlay .item-art-img {
  -webkit-animation: none;
  animation: none;
  -webkit-transition: none;
  transition: none;
}

.cap-legacy-layout #quickbar .slot-art-img {
  -webkit-animation: none;
  animation: none;
  -webkit-transition: none;
  transition: none;
}

.cap-legacy-layout #bagOverlay .item-detail-card {
  width: 420px;
  max-width: 70%;
  max-height: 90%;
}

.cap-legacy-layout #bagOverlay .item-detail-overlay {
  background: rgba(1,5,8,.82);
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay.overlay {
    padding: 48px 6px 40px 48px;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout .tactical-topbar {
    height: 42px;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout .tactical-rail {
    top: 42px;
    bottom: 38px;
    width: 42px;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout .tactical-footer {
    left: 48px;
    right: 6px;
    height: 38px;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .backpack-panel {
    -webkit-flex-basis: 58%;
    flex-basis: 58%;
    width: 58%;
    max-width: 58%;
    margin-right: 5px;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .equip-grid {
    grid-template-rows: 46px;
    grid-auto-rows: 46px;
    height: 46px;
    min-height: 46px;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .source-equip-grid {
    grid-template-rows: 46px;
    grid-auto-rows: 46px;
    height: 46px;
    min-height: 46px;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .equip-slot {
    height: 46px;
    min-height: 46px;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .tactical-footer .footer-hint {
    display: none;
  }
}

@media (max-width: 800px) and (orientation: landscape) {
  .cap-legacy-layout #bagOverlay .item-detail-card {
    width: 390px;
    max-width: 92%;
  }
}

.tactical-map-btn {
  right: calc(var(--safe-right) + 88px);
}

.tactical-map-btn.active {
  background: rgba(120, 48, 48, .92);
  border-color: rgba(255, 125, 125, .62);
}

.cap-legacy-layout .tactical-map-btn {
  right: calc(var(--safe-right) + 76px);
}

.wh-high b {
  color: #ffc940;
}

.warehouse-empty {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  padding: 18px 12px;
  line-height: 1.6;
}

.item-hv-high {
  box-shadow: 0 0 0 1.5px rgba(255,190,50,.5);
}

.item-hv-rare {
  box-shadow: 0 0 0 1.5px rgba(180,100,255,.5);
}

.item-val-tag {
  position: absolute;
  bottom: 1px;
  right: 1px;
  font-size: 9px;
  padding: 0 3px;
  margin-left: 0;
  line-height: 1.4;
  z-index: 2;
}

@media (max-width: 760px) {
  .mission-card {
    width: 36vw;
    padding: 8px 10px;
  }
}

@media (max-width: 760px) {
  .mission-card span {
    font-size: calc(12px * var(--game-ui-scale, 1));
  }
}

@media (max-width: 760px) {
  .help-btn {
    min-width: 58px;
    height: 34px;
    font-size: 14px;
  }
}

.lobby-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
  color: #e5eadf;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

.lobby-hud.hidden {
  display: none;
}

.lobby-hud b {
  font-weight: 700;
}

.lh-stack-left {
  position: absolute;
  left: 12px;
  top: calc(var(--pm-safe-top, 45px) + 6px);
  display: flex;
  flex-direction: column;
  max-width: 200px;
}

.lh-plate {
  position: relative;
  background: rgba(14, 18, 14, 0.82);
  border: 1px solid rgba(92, 130, 76, 0.38);
  border-left: 3px solid rgba(114, 201, 107, 0.78);
  border-radius: 3px;
  padding: 6px 10px 6px 11px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.lh-plate + .lh-plate {
  margin-top: 6px;
}

.lh-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(114, 201, 107, 0.78);
}

.lh-base-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #e5eadf;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.lh-base-status {
  display: block;
  font-size: 10px;
  color: #c6a15b;
  letter-spacing: 1px;
  margin-top: 1px;
  font-weight: 600;
}

.lh-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  line-height: 1.5;
  white-space: nowrap;
}

.lh-row + .lh-row {
  margin-top: 1px;
}

.lh-k {
  font-size: 10px;
  color: #9aa491;
  letter-spacing: 1px;
  font-weight: 600;
}

.lh-v {
  font-size: 12px;
  color: #e5eadf;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lh-obj {
  position: absolute;
  top: calc(var(--pm-safe-top, 45px) + 10px);
  left: 50%;
  transform: translateX(-50%);
  max-width: 44%;
  font-size: 11px;
  color: #e5eadf;
  background: rgba(14, 18, 14, 0.78);
  border: 1px solid rgba(92, 130, 76, 0.32);
  border-radius: 3px;
  padding: 5px 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .lh-stack-left {
    left: 8px;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .lh-plate {
    padding: 5px 8px 5px 9px;
  }
}

@media (max-width: 480px) {
  .lh-base-name {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .lh-base-status {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .lh-k {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .lh-v {
    font-size: 11px;
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .lh-obj {
    font-size: 10px;
    max-width: 38%;
    padding: 4px 8px;
    top: calc(var(--pm-safe-top, 45px) + 8px);
  }
}

.facility-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  background: #070c13;
  color: #ecf3ff;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

@supports (padding-top: env(safe-area-inset-top)) {
  .facility-overlay {
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-right: calc(10px + env(safe-area-inset-right));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    padding-left: calc(10px + env(safe-area-inset-left));
  }
}

.facility-topbar {
  display: flex;
  align-items: center;
  --flex-row-gap: 12px;
  --flex-column-gap: 12px;
  min-height: 48px;
  padding: 0 0 8px;
  flex: 0 0 auto;
}

.facility-overlay .close-btn {
  position: static;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  margin: 0;
  border-radius: 8px;
  font-size: 34px;
  line-height: 42px;
  flex: 0 0 46px;
}

.facility-title-block {
  display: flex;
  flex-direction: column;
  --flex-row-gap: 2px;
  --flex-column-gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.facility-title-block strong {
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: .4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facility-title-block i {
  font-style: normal;
  color: rgba(210,228,255,.62);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facility-header-meta {
  display: flex;
  align-items: center;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  flex: 0 1 auto;
  max-width: 42%;
  justify-content: flex-end;
  text-align: right;
}

.facility-shell {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}

.facility-nav.hidden {
  display: none !important;
}

.facility-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(109,155,197,.20);
  background: #0a121e;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
}

.facility-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  box-sizing: border-box;
}

.facility-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  --flex-row-gap: 12px;
  --flex-column-gap: 12px;
  min-height: 46px;
  padding: 8px 2px 0;
  flex: 0 0 auto;
}

.facility-footer-hint {
  color: rgba(214,225,242,.68);
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facility-footer button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(214,181,95,.44);
  background: #4f3b16;
  color: #ffecb3;
  border-radius: 7px;
  min-height: 42px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  touch-action: manipulation;
}

.facility-toolbar button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(214,181,95,.44);
  background: #4f3b16;
  color: #ffecb3;
  border-radius: 7px;
  min-height: 42px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  touch-action: manipulation;
}

.facility-card-actions button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(214,181,95,.44);
  background: #4f3b16;
  color: #ffecb3;
  border-radius: 7px;
  min-height: 42px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  touch-action: manipulation;
}

.facility-track button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(214,181,95,.44);
  background: #4f3b16;
  color: #ffecb3;
  border-radius: 7px;
  min-height: 42px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  touch-action: manipulation;
}

.shop-mode-tabs button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(214,181,95,.44);
  background: #4f3b16;
  color: #ffecb3;
  border-radius: 7px;
  min-height: 42px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  touch-action: manipulation;
}

.facility-toolbar button.active {
  border-color: rgba(125,239,180,.72);
  background: #0e3540;
  color: #eafff3;
}

.shop-mode-tabs button.active {
  border-color: rgba(125,239,180,.72);
  background: #0e3540;
  color: #eafff3;
}

.facility-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  --flex-row-gap: 10px;
  --flex-column-gap: 10px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

.shop-toolbar {
  align-items: stretch;
}

.shop-mode-tabs {
  display: flex;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  flex: 0 0 auto;
}

.facility-badge-strip {
  display: flex;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

.facility-badge {
  display: inline-flex;
  align-items: center;
  --flex-row-gap: 5px;
  --flex-column-gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(109,155,197,.22);
  background: #0c1724;
  color: rgba(233,241,255,.88);
  font-size: 12px;
  white-space: nowrap;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.operator-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facility-card {
  border: 1px solid rgba(116,151,186,.25);
  border-radius: 10px;
  background: #0d1826;
  padding: 12px;
  display: flex;
  flex-direction: column;
  --flex-row-gap: 9px;
  --flex-column-gap: 9px;
  min-width: 0;
  min-height: 178px;
  box-sizing: border-box;
}

.facility-card.selected {
  border-color: rgba(125,239,180,.72);
  box-shadow: inset 0 0 0 1px rgba(125,239,180,.14);
}

.facility-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facility-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facility-card p {
  margin: 0;
  color: rgba(214,225,242,.78);
  line-height: 1.4;
  font-size: 12px;
}

.facility-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  margin-top: auto;
}

.facility-card-actions button {
  flex: 0 0 auto;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facility-mini-label {
  font-size: 11px;
  color: rgba(173,198,224,.72);
  letter-spacing: .3px;
}

.operator-card {
  min-height: 232px;
}

.operator-portrait {
  height: 82px;
  border-radius: 8px;
  border: 1px solid rgba(130,159,191,.16);
  overflow: hidden;
  background: #111c29;
}

.operator-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 28%;
}

.operator-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #26171b;
  color: #f07171;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

.operator-copy {
  display: flex;
  flex-direction: column;
  --flex-row-gap: 7px;
  --flex-column-gap: 7px;
  min-width: 0;
}

.facility-gallery-card {
  min-height: 210px;
}

.facility-gallery-card.locked {
  opacity: .7;
}

.facility-thumb {
  height: 96px;
  border-radius: 8px;
  border: 1px solid rgba(130,159,191,.16);
  background: #09111c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.facility-thumb img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}

.facility-thumb .silhouette {
  font-size: 36px;
  color: rgba(255,255,255,.08);
  font-weight: 900;
  letter-spacing: 3px;
}

.facility-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.facility-metric {
  border-radius: 8px;
  border: 1px solid rgba(109,155,197,.20);
  background: #0b131f;
  padding: 9px 11px;
  min-width: 0;
}

.facility-metric span {
  display: block;
  color: rgba(173,198,224,.72);
  font-size: 11px;
  margin-bottom: 3px;
}

.facility-metric strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  color: #ecf4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facility-hero {
  border: 1px solid rgba(214,181,95,.25);
  border-radius: 10px;
  background: #2a1e0e;
  padding: 13px 15px;
  margin-bottom: 14px;
}

.facility-hero h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.facility-hero p {
  margin: 0;
  color: rgba(255,241,195,.78);
}

.facility-pass-track {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facility-tier {
  border: 1px solid rgba(109,155,197,.22);
  border-radius: 10px;
  background: #0d1623;
  padding: 12px;
  display: flex;
  flex-direction: column;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
}

.facility-tier.claimed {
  border-color: rgba(125,239,180,.54);
}

.facility-tier .tier-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
}

.facility-price {
  display: inline-flex;
  align-items: center;
  --flex-row-gap: 6px;
  --flex-column-gap: 6px;
  color: #f2ead6;
  font-weight: 700;
  white-space: nowrap;
}

.facility-price::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b59a58;
}

.facility-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-top: 12px;
}

.facility-table th {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(109,155,197,.12);
  font-size: 12px;
}

.facility-table td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(109,155,197,.12);
  font-size: 12px;
}

.facility-empty {
  padding: 36px 12px;
  text-align: center;
  color: rgba(200,214,234,.58);
}

@media (max-width: 860px) {
  .facility-overlay {
    padding: 8px;
  }
}

@media (max-width: 860px) {
  .facility-topbar {
    min-height: 44px;
    padding-bottom: 6px;
  }
}

@media (max-width: 860px) {
  .facility-overlay .close-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }
}

@media (max-width: 860px) {
  .facility-title-block strong {
    font-size: 21px;
  }
}

@media (max-width: 860px) {
  .facility-title-block i {
    font-size: 12px;
  }
}

@media (max-width: 860px) {
  .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
}

@media (max-width: 860px) {
  .operator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .facility-pass-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .facility-body {
    padding: 10px;
  }
}

@media (max-width: 860px) {
  .facility-footer {
    min-height: 42px;
    padding-top: 6px;
  }
}

@media (max-width: 520px) {
  .facility-header-meta {
    max-width: 38%;
  }
}

@media (max-width: 520px) {
  .facility-title-block strong {
    font-size: 19px;
  }
}

@media (max-width: 520px) {
  .facility-title-block i {
    display: none;
  }
}

@media (max-width: 520px) {
  .facility-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .operator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .facility-pass-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .facility-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .facility-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .shop-mode-tabs {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .shop-mode-tabs button {
    flex: 1 1 50%;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-overlay {
    padding: 7px 9px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-topbar {
    min-height: 42px;
    padding-bottom: 5px;
    --flex-row-gap: 8px;
    --flex-column-gap: 8px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-overlay .close-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    flex-basis: 42px;
    font-size: 30px;
    line-height: 38px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-title-block strong {
    font-size: 20px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-title-block i {
    font-size: 11px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-header-meta {
    max-width: 38%;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-content {
    border-radius: 8px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-body {
    padding: 8px 10px 10px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-footer {
    display: none;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-toolbar {
    margin-bottom: 8px;
    --flex-row-gap: 7px;
    --flex-column-gap: 7px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-toolbar button {
    min-height: 38px;
    padding: 6px 11px;
    font-size: 12px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .shop-mode-tabs button {
    min-height: 38px;
    padding: 6px 11px;
    font-size: 12px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-card-actions button {
    min-height: 38px;
    padding: 6px 11px;
    font-size: 12px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-badge {
    padding: 5px 8px;
    font-size: 11px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-metrics {
    display: none;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .operator-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-pass-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-card {
    min-height: 148px;
    padding: 8px;
    --flex-row-gap: 6px;
    --flex-column-gap: 6px;
    border-radius: 8px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .operator-card {
    min-height: 188px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-card h3 {
    font-size: 15px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-card h4 {
    font-size: 15px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-card p {
    font-size: 10px;
    line-height: 1.28;
    max-height: 27px;
    overflow: hidden;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-mini-label {
    font-size: 10px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-thumb {
    height: 68px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .operator-portrait {
    height: 70px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .operator-copy {
    --flex-row-gap: 4px;
    --flex-column-gap: 4px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .operator-card .facility-badge-strip {
    display: none;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-card-actions {
    --flex-row-gap: 5px;
    --flex-column-gap: 5px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-card-actions button {
    max-width: 70%;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-table {
    margin-top: 7px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-table th {
    padding: 6px;
    font-size: 10px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-table td {
    padding: 6px;
    font-size: 10px;
  }
}

.cap-legacy-layout .facility-overlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 7px 9px;
}

.cap-legacy-layout .facility-footer {
  display: none !important;
}

.cap-legacy-layout .facility-topbar {
  min-height: 42px;
  padding-bottom: 5px;
}

.cap-legacy-layout .facility-overlay .close-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
}

.cap-legacy-layout .facility-body {
  padding: 8px 10px 10px;
}

.cap-legacy-layout .facility-metrics {
  display: none !important;
}

.cap-legacy-layout .facility-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cap-legacy-layout .operator-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cap-legacy-layout .facility-card {
  min-height: 148px;
  padding: 8px;
  --flex-row-gap: 6px;
  --flex-column-gap: 6px;
}

.cap-legacy-layout .operator-card {
  min-height: 188px;
}

.cap-legacy-layout .facility-thumb {
  height: 68px;
}

.cap-legacy-layout .operator-portrait {
  height: 70px;
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .facility-grid {
    grid-template-columns: 1fr;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .facility-pass-track {
    grid-template-columns: 1fr;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .operator-grid {
    grid-template-columns: 1fr;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .operator-card {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 142px;
    align-items: start;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .operator-portrait {
    width: 92px;
    height: 86px;
    grid-column: 1;
    grid-row: 1;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .operator-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .operator-card .facility-card-actions {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .operator-card .facility-badge-strip {
    display: flex !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .facility-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .shop-mode-tabs {
    width: 100%;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .shop-mode-tabs button {
    flex: 1 1 50%;
  }
}

#bagOverlay .source-panel.loot-revealing .section-strip::after {
  content: none;
  display: none !important;
  -webkit-animation: none;
  animation: none;
}

#bagOverlay .section-strip .search-scan-badge {
  position: absolute;
  right: 46px;
  top: 50%;
  z-index: 8;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  --flex-row-gap: 4px;
  --flex-column-gap: 4px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(79, 214, 178, .34);
  background: rgba(4, 19, 23, .92);
  color: rgba(126, 238, 206, .96);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  pointer-events: none;
}

#bagOverlay .section-strip .search-scan-badge svg {
  display: block;
  width: 15px;
  height: 15px;
  overflow: visible;
  fill: none;
  stroke: rgba(203, 255, 240, .98);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-animation: lootScanIconSweep .72s ease-in-out infinite alternate;
  animation: lootScanIconSweep .72s ease-in-out infinite alternate;
}

#bagOverlay .section-strip .search-scan-badge .scan-sweep {
  stroke: rgba(68, 235, 188, .98);
  stroke-width: 1.8;
}

#bagOverlay .section-strip .search-scan-badge b {
  color: rgba(126, 238, 206, .96);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
}

@-webkit-keyframes lootScanIconSweep{from { -webkit-transform: translate3d(-1px, 0, 0) rotate(-6deg); transform: translate3d(-1px, 0, 0) rotate(-6deg); opacity: .76; }
  to   { -webkit-transform: translate3d(1px, 0, 0) rotate(7deg); transform: translate3d(1px, 0, 0) rotate(7deg); opacity: 1; }}

@keyframes lootScanIconSweep{from { -webkit-transform: translate3d(-1px, 0, 0) rotate(-6deg); transform: translate3d(-1px, 0, 0) rotate(-6deg); opacity: .76; }
  to   { -webkit-transform: translate3d(1px, 0, 0) rotate(7deg); transform: translate3d(1px, 0, 0) rotate(7deg); opacity: 1; }}

.facility-pass-body .facility-hero {
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.facility-pass-track {
  display: flex !important;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.facility-pass-track::-webkit-scrollbar {
  height: 5px;
}

.facility-pass-track::-webkit-scrollbar-track {
  background: rgba(4, 10, 16, .58);
}

.facility-pass-track::-webkit-scrollbar-thumb {
  background: rgba(183, 155, 78, .72);
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-pass-body .facility-hero {
    padding: 8px 11px;
    margin-bottom: 7px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-pass-body .facility-hero h3 {
    font-size: 18px;
    margin-bottom: 3px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-pass-body .facility-hero p {
    font-size: 10px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-pass-track {
    --flex-row-gap: 8px;
    --flex-column-gap: 8px;
    padding-bottom: 5px;
  }
}

@media (max-height: 420px) and (orientation: landscape) {
  .facility-pass-track .facility-tier {
    -webkit-flex-basis: 164px;
    flex-basis: 164px;
    width: 164px;
    min-width: 164px;
    max-width: 164px;
  }
}

.cap-legacy-layout .facility-pass-track {
  display: flex !important;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.cap-legacy-layout .facility-pass-track .facility-tier {
  -webkit-flex: 0 0 164px;
  flex: 0 0 164px;
  width: 164px;
  min-width: 164px;
  max-width: 164px;
}

@media (orientation: portrait) and (max-width: 520px) {
  .cap-legacy-layout .facility-pass-track .facility-tier {
    -webkit-flex-basis: 76vw;
    flex-basis: 76vw;
    width: 76vw;
    min-width: 76vw;
    max-width: 76vw;
  }
}

#result.result-screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0;
  background: #071018;
  overflow: hidden;
}

#result .result-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 34px 56px 28px;
  overflow: auto;
  background: radial-gradient(circle at 74% 42%, rgba(72, 104, 112, .20), transparent 34%),
    linear-gradient(108deg, rgba(4, 19, 28, .98), rgba(8, 24, 32, .96) 54%, rgba(9, 20, 27, .98));
  color: #eaf2f7;
  text-align: left;
  line-height: 1.35;
}

#result .result-shell:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 46%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(21, 79, 78, .10), transparent);
}

#result .result-scanline {
  position: absolute;
  pointer-events: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120, 170, 182, .24), transparent);
}

#result .result-scanline-a {
  left: 5%;
  right: 8%;
  top: 21%;
}

#result .result-scanline-b {
  left: 9%;
  right: 4%;
  bottom: 19%;
}

#result .result-header {
  position: relative;
  z-index: 1;
}

#result .result-success-panel {
  position: relative;
  z-index: 1;
}

#result .result-loot-section {
  position: relative;
  z-index: 1;
}

#result .result-fail-panel {
  position: relative;
  z-index: 1;
}

#result .result-actions {
  position: relative;
  z-index: 1;
}

#result .result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  --flex-row-gap: 20px;
  --flex-column-gap: 20px;
  min-height: 96px;
}

#result .result-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: rgba(183, 207, 214, .58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

#result .result-title-wrap h1 {
  margin: 0;
  color: #45f2a1;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 0 24px rgba(48, 242, 153, .14);
}

#result .result-title-wrap p {
  margin: 10px 0 0;
  color: rgba(220, 235, 241, .62);
  font-size: 14px;
}

#result .result-share-hint {
  margin-left: 20px;
  border: 1px solid rgba(143, 176, 188, .22);
  padding: 9px 14px;
  color: rgba(220, 235, 241, .68);
  font-size: 12px;
  background: rgba(8, 20, 28, .66);
}

#result .result-success-panel {
  display: flex;
  align-items: stretch;
  --flex-row-gap: 42px;
  --flex-column-gap: 42px;
  min-height: 300px;
  margin-top: 4px;
}

#result .result-summary {
  flex: 1 1 55%;
  min-width: 0;
}

#result .result-context-grid {
  display: flex;
  flex-wrap: wrap;
  --flex-row-gap: 0;
  --flex-column-gap: 0;
  margin: 12px 0 32px;
}

#result .result-context-grid > div {
  min-width: 122px;
  padding: 0 18px 0 0;
  margin: 0 18px 10px 0;
  border-right: 1px solid rgba(168, 198, 207, .22);
}

#result .result-context-grid span {
  display: block;
  color: rgba(190, 210, 217, .58);
  font-size: 12px;
}

#result .result-metric span {
  display: block;
  color: rgba(190, 210, 217, .58);
  font-size: 12px;
}

#result .result-operator-copy span {
  display: block;
  color: rgba(190, 210, 217, .58);
  font-size: 12px;
}

#result .result-fail-stats span {
  display: block;
  color: rgba(190, 210, 217, .58);
  font-size: 12px;
}

#result .result-context-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
  color: rgba(236, 244, 247, .92);
}

#result .result-metric-stack {
  width: 70%;
  min-width: 330px;
}

#result .result-metric {
  margin-bottom: 17px;
}

#result .result-metric strong {
  display: block;
  margin-top: 2px;
  color: #e8f1f5;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 500;
}

#result .result-metric-value strong {
  font-size: 58px;
  letter-spacing: 2px;
}

#result .result-operator-card {
  position: relative;
  flex: 0 0 34%;
  margin-left: 42px;
  max-width: 430px;
  min-width: 250px;
  overflow: hidden;
  border: 1px solid rgba(143, 176, 188, .16);
  background: linear-gradient(180deg, rgba(17, 31, 38, .76), rgba(5, 13, 19, .92));
  transform: rotate(3deg);
  box-shadow: 0 26px 55px rgba(0, 0, 0, .30);
}

#result .result-operator-frame {
  height: 235px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(101, 142, 143, .26), transparent 58%);
}

#result .result-operator-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

#result .result-operator-copy {
  padding: 13px 18px 16px;
  border-top: 1px solid rgba(143, 176, 188, .15);
}

#result .result-operator-copy strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

#result .result-loot-section {
  margin-top: 16px;
  border-top: 1px solid rgba(143, 176, 188, .17);
  padding-top: 13px;
}

#result .result-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(215, 231, 237, .72);
  font-size: 13px;
}

#result .result-section-title strong {
  color: #eaf2f7;
}

#result .result-loot-list {
  min-height: 92px;
  margin: 10px 0 0;
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
}

#result .result-loot-card {
  margin-right: 12px;
  flex: 0 0 118px;
  width: 118px;
  min-height: 90px;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid rgba(140, 174, 187, .18);
  background: rgba(8, 19, 28, .78);
}

#result .result-loot-thumb {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#result .result-loot-thumb img {
  max-width: 90%;
  max-height: 46px;
  object-fit: contain;
}

#result .result-loot-card strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#result .result-loot-card span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#result .result-loot-card strong {
  font-size: 11px;
  color: rgba(238, 245, 248, .86);
}

#result .result-loot-card span {
  margin-top: 3px;
  font-size: 10px;
  color: rgba(152, 192, 200, .64);
}

#result .result-loot-empty {
  padding: 24px;
  color: rgba(190, 210, 217, .55);
}

#result .result-actions {
  display: flex;
  justify-content: flex-end;
  --flex-row-gap: 14px;
  --flex-column-gap: 14px;
  margin-top: 18px;
}

#result .result-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 150px;
  height: 48px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  box-shadow: none;
}

#result .result-actions button + button {
  margin-left: 14px;
}

#result .result-primary-action {
  border-color: rgba(58, 235, 153, .58);
  color: #4af0a1;
  background: rgba(8, 39, 33, .78);
}

#result .result-secondary-action {
  border-color: rgba(151, 179, 189, .28);
  color: rgba(231, 240, 243, .82);
  background: rgba(10, 23, 31, .72);
}

#result.result-fail .result-shell {
  background: radial-gradient(circle at 50% 46%, rgba(92, 28, 33, .18), transparent 27%),
    linear-gradient(115deg, #10202a, #17252d 53%, #0d1820);
}

#result.result-fail .result-header {
  opacity: 0;
  min-height: 25px;
}

#result .result-fail-panel {
  width: 78%;
  max-width: 840px;
  margin: 5vh auto 0;
  text-align: center;
}

#result .result-fail-reticle {
  position: absolute;
  left: 50%;
  top: -92px;
  width: 430px;
  height: 430px;
  margin-left: -215px;
  border: 1px dashed rgba(135, 155, 166, .10);
  border-radius: 50%;
  pointer-events: none;
}

#result .result-fail-panel h2 {
  position: relative;
  margin: 0;
  color: #ef3e3e;
  font-size: 70px;
  line-height: 1.05;
  letter-spacing: 2px;
}

#result .result-fail-panel p {
  position: relative;
  display: inline-block;
  margin: 18px 0 30px;
  padding: 8px 14px;
  border-left: 2px solid #d83a3a;
  border-right: 2px solid #d83a3a;
  color: rgba(231, 115, 115, .84);
  background: rgba(88, 19, 25, .18);
  font-size: 13px;
}

#result .result-fail-stats {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  --flex-row-gap: 0;
  --flex-column-gap: 0;
}

#result .result-fail-stats > div {
  min-width: 150px;
  padding: 0 22px;
  margin-bottom: 16px;
  border-right: 1px solid rgba(155, 178, 188, .18);
}

#result .result-fail-stats > div:last-child {
  border-right: 0;
}

#result .result-fail-stats strong {
  display: block;
  margin-top: 6px;
  color: rgba(238, 244, 247, .90);
  font-size: 24px;
}

#result.result-fail .result-actions {
  margin-top: 6vh;
}

#result.result-fail .result-primary-action {
  border-color: rgba(219, 62, 62, .52);
  color: #f06a6a;
  background: rgba(51, 15, 20, .74);
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-shell {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px 28px 12px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-header {
    min-height: 67px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-eyebrow {
    margin-bottom: 3px;
    font-size: 9px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-title-wrap h1 {
    font-size: 36px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-title-wrap p {
    margin-top: 4px;
    font-size: 11px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-success-panel {
    min-height: 185px;
    --flex-row-gap: 22px;
    --flex-column-gap: 22px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-operator-card {
    margin-left: 22px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-context-grid {
    margin: 6px 0 12px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-context-grid > div {
    min-width: 92px;
    margin-right: 10px;
    padding-right: 10px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-context-grid span {
    font-size: 9px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-context-grid strong {
    font-size: 12px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-metric {
    margin-bottom: 8px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-metric span {
    font-size: 9px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-metric strong {
    font-size: 25px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-metric-value strong {
    font-size: 40px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-operator-card {
    min-width: 190px;
    max-width: 275px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-operator-frame {
    height: 142px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-operator-copy {
    padding: 7px 10px 8px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-loot-section {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 5px;
    padding-top: 6px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-loot-list {
    min-height: 61px;
    margin-top: 5px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-loot-card {
    flex-basis: 90px;
    width: 90px;
    min-height: 58px;
    padding: 4px 6px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-loot-thumb {
    height: 29px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-loot-thumb img {
    max-height: 28px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-actions {
    flex: 0 0 auto;
    margin-top: 6px;
    padding-top: 8px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2px);
    background: linear-gradient(180deg, rgba(7,16,24,0), rgba(7,16,24,.96) 35%);
    z-index: 5;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-actions button {
    height: 38px;
    min-width: 120px;
    font-size: 13px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-fail-panel {
    margin-top: 1vh;
    width: 90%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-fail-panel h2 {
    font-size: 52px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-fail-panel p {
    margin: 9px 0 16px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result .result-fail-stats strong {
    font-size: 18px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #result.result-fail .result-actions {
    margin-top: 2vh;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-shell {
    padding: 22px 18px 18px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-header {
    min-height: 88px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-title-wrap h1 {
    font-size: 42px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-share-hint {
    display: none;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-success-panel {
    display: block;
    min-height: 0;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-metric-stack {
    width: 100%;
    min-width: 0;
    display: flex;
    --flex-row-gap: 16px;
    --flex-column-gap: 16px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-metric {
    flex: 1 1 0;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-metric-value strong {
    font-size: 38px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-operator-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
    transform: none;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-operator-frame {
    height: 180px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-actions {
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(180deg, transparent, rgba(7, 16, 24, .98) 35%);
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-actions button {
    min-width: 0;
    flex: 1 1 0;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-fail-panel {
    width: 100%;
    margin-top: 8vh;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-fail-panel h2 {
    font-size: 52px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result .result-fail-stats > div {
    width: 50%;
    min-width: 0;
    box-sizing: border-box;
  }
}

.operator-rail {
  display: flex;
  touch-action: pan-x;
}

.facility-operator-body {
  -webkit-flex-direction: column;
  flex-direction: column;
  --flex-row-gap: 12px;
  --flex-column-gap: 12px;
  overflow: hidden;
}

.operator-stage {
  display: grid;
  border: 1px solid rgba(105, 239, 178, .22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 45, 43, .34), rgba(7, 15, 23, .92));
}

.operator-stage-copy {
  display: flex;
  flex-direction: column;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  min-width: 0;
}

.operator-stage-copy h3 {
  margin: 0;
  line-height: 1.05;
}

.operator-stage-copy h4 {
  margin: 0;
  color: #5ef0b1;
  line-height: 1.15;
}

.operator-stage-copy p {
  margin: 0;
  color: rgba(223, 233, 244, .86);
}

.operator-stage-copy .facility-badge-strip {
  padding-top: 4px;
  flex-wrap: wrap;
  overflow: visible;
}

.operator-stage-portrait {
  border-radius: 18px;
  border: 2px solid rgba(33, 239, 171, .68);
  overflow: hidden;
  background: #101927;
  box-shadow: inset 0 0 0 1px rgba(33,239,171,.15);
}

.operator-stage-portrait img {
  width: 100%;
  height: 100%;
  display: block;
}

.operator-stage-meta {
  display: flex;
  flex-direction: column;
  --flex-row-gap: 10px;
  --flex-column-gap: 10px;
}

.operator-stage-meta button {
  margin-top: 4px;
}

.operator-rail .operator-copy p {
  max-height: 54px;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .operator-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .operator-stage-portrait {
    min-height: 280px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .operator-stage {
    grid-template-columns: minmax(0,1fr) minmax(160px,.8fr) minmax(0,.88fr);
    gap: 10px;
    padding: 10px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .operator-stage-copy h3 {
    font-size: 28px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .operator-stage-copy h4 {
    font-size: 16px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .operator-stage-copy p {
    font-size: 12px;
    line-height: 1.42;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .operator-stage-portrait {
    min-height: 220px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .operator-rail-card {
    -webkit-flex-basis: 188px;
    flex-basis: 188px;
    width: 188px;
    min-width: 188px;
    min-height: 232px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .operator-rail .operator-portrait {
    height: 104px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .facility-pass-track .facility-tier {
    -webkit-flex-basis: 208px;
    flex-basis: 208px;
    width: 208px;
    min-width: 208px;
    max-width: 208px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .facility-pass-track .facility-pass-thumb {
    height: 106px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .facility-pass-track .facility-thumb {
    height: 106px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .facility-pass-track .facility-tier h4 {
    font-size: 22px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .facility-pass-track .facility-tier p {
    font-size: 13px;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .operator-stage-copy h3 {
    font-size: 28px;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .operator-stage-copy h4 {
    font-size: 16px;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .operator-stage-portrait {
    min-height: 240px;
  }
}

.operator-stage {
  grid-template-columns: minmax(0, 1fr) minmax(180px, .85fr) minmax(0, .86fr);
  gap: 12px;
  padding: 12px;
}

.operator-stage-copy h3 {
  font-size: 32px;
}

.operator-stage-copy h4 {
  font-size: 18px;
}

.operator-stage-copy p {
  font-size: 13px;
  line-height: 1.48;
}

.operator-stage-portrait {
  min-height: 300px;
}

.operator-stage-portrait img {
  object-fit: contain;
  object-position: center center;
  background: radial-gradient(circle at 50% 30%, rgba(76,127,120,.22), transparent 48%), #0f1822;
}

.operator-stage-meta {
  justify-content: flex-start;
}

.operator-stage-meta button {
  width: 100%;
}

.operator-abilities-panel {
  border: 1px solid rgba(109,155,197,.20);
  border-radius: 12px;
  background: #0b131f;
  padding: 12px;
}

.facility-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  --flex-row-gap: 10px;
  --flex-column-gap: 10px;
  margin-bottom: 10px;
}

.facility-section-head strong {
  display: block;
  font-size: 18px;
  color: #edf6ff;
}

.facility-section-head span {
  color: rgba(173,198,224,.68);
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

.operator-ability-list {
  display: grid;
  gap: 10px;
}

.operator-ability {
  border: 1px solid rgba(109,155,197,.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(12,23,36,.96), rgba(9,17,27,.96));
  padding: 10px 12px;
  min-width: 0;
}

.operator-ability strong {
  display: block;
}

.operator-ability span {
  display: block;
}

.operator-ability strong {
  color: #62efb5;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.operator-ability span {
  color: rgba(224,233,243,.8);
  font-size: 12px;
  line-height: 1.45;
}

.operator-rail {
  padding: 2px 2px 10px;
  --flex-row-gap: 10px;
  --flex-column-gap: 10px;
}

.operator-rail-card {
  -webkit-flex: 0 0 176px;
  flex: 0 0 176px;
  width: 176px;
  min-width: 176px;
  padding: 10px;
}

.operator-rail .operator-copy p {
  font-size: 12px;
  line-height: 1.35;
}

.operator-rail .facility-card-actions {
  flex-direction: column;
  align-items: stretch;
}

.operator-rail .facility-card-actions button {
  max-width: 100%;
  width: 100%;
}

.facility-pass-track .facility-tier {
  -webkit-flex: 0 0 220px;
  flex: 0 0 220px;
}

.facility-pass-track .facility-pass-thumb img {
  max-width: 92%;
  max-height: 92%;
}

.facility-pass-track .facility-thumb img {
  max-width: 92%;
  max-height: 92%;
}

.facility-pass-track .facility-tier h4 {
  white-space: normal;
}

.pass-card-actions button {
  max-width: 100%;
}

.facility-pass-track .facility-tier button {
  max-width: 100%;
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-overlay {
    padding: 8px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-topbar {
    --flex-row-gap: 8px;
    --flex-column-gap: 8px;
    min-height: 42px;
    padding-bottom: 6px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-overlay .close-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    flex-basis: 42px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-title-block strong {
    font-size: 20px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-title-block i {
    font-size: 12px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-content {
    border-radius: 8px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-body {
    padding: 10px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-footer {
    --flex-row-gap: 8px;
    --flex-column-gap: 8px;
    min-height: 40px;
    padding-top: 6px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-header-meta {
    max-width: 44%;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .operator-stage {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .operator-stage-copy h3 {
    font-size: 28px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .operator-stage-portrait {
    min-height: 220px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .operator-ability-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .operator-rail-card {
    -webkit-flex-basis: 164px;
    flex-basis: 164px;
    width: 164px;
    min-width: 164px;
    min-height: 204px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .operator-rail .operator-portrait {
    height: 96px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-pass-track .facility-tier {
    -webkit-flex-basis: 188px;
    flex-basis: 188px;
    width: 188px;
    min-width: 188px;
    max-width: 188px;
    min-height: 318px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-pass-track .facility-pass-thumb {
    height: 92px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-pass-track .facility-thumb {
    height: 92px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-pass-track .facility-tier h4 {
    font-size: 16px;
    min-height: 38px;
  }
}

@media (max-width: 900px), (max-height: 540px) {
  .facility-pass-track .facility-tier p {
    font-size: 12px;
    min-height: 32px;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .facility-shell {
    min-height: 0;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .facility-header-meta {
    display: none !important;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .operator-rail-card {
    -webkit-flex-basis: 72vw;
    flex-basis: 72vw;
    width: 72vw;
    min-width: 72vw;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .facility-pass-track .facility-tier {
    -webkit-flex-basis: 76vw;
    flex-basis: 76vw;
    width: 76vw;
    min-width: 76vw;
    max-width: 76vw;
  }
}

.facility-operator-body {
  display: block !important;
}

.operator-quick-select {
  margin-bottom: 10px;
}

.operator-quick-select .facility-section-head {
  margin-bottom: 8px;
}

.operator-abilities-panel .facility-section-head {
  margin-bottom: 8px;
}

.operator-quick-select .facility-section-head span {
  max-width: 52%;
}

.operator-abilities-panel .facility-section-head span {
  max-width: 52%;
}

.operator-stage.compact {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, .75fr);
  grid-template-areas: "copy portrait"
    "meta meta";
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.operator-stage.compact .operator-stage-copy {
  grid-area: copy;
}

.operator-stage.compact .operator-stage-portrait {
  grid-area: portrait;
}

.operator-stage.compact .operator-stage-meta {
  grid-area: meta;
}

.operator-stage.compact .operator-stage-portrait.compact {
  min-height: 180px;
  max-height: 220px;
  padding: 8px;
}

.operator-stage.compact .operator-stage-portrait.compact img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.operator-stage.compact .operator-stage-copy h3 {
  font-size: 28px;
}

.operator-stage.compact .operator-stage-copy h4 {
  font-size: 16px;
}

.operator-stage.compact .operator-stage-copy p {
  font-size: 13px;
  line-height: 1.42;
}

.operator-stage.compact .facility-badge-strip {
  --flex-row-gap: 6px;
  --flex-column-gap: 6px;
}

.operator-stage.compact .facility-badge {
  font-size: 12px;
  padding: 7px 10px;
}

.operator-stage.compact .operator-stage-meta {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.operator-stage.compact .facility-metric {
  min-height: 72px;
}

.operator-rail {
  margin-bottom: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.operator-rail-card {
  min-height: 184px;
}

.operator-rail .operator-portrait {
  height: 84px;
}

.operator-rail .operator-copy h3 {
  font-size: 20px;
}

.operator-rail .facility-card-actions button {
  min-height: 38px;
}

.operator-abilities-panel {
  margin-bottom: 4px;
}

.operator-ability-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facility-pass-body .facility-hero {
  padding: 10px 12px;
  margin-bottom: 8px;
}

.facility-pass-body .facility-hero h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.facility-pass-body .facility-hero p {
  font-size: 12px;
  line-height: 1.3;
}

.facility-pass-track {
  padding: 2px 4px 12px 2px;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  align-items: stretch;
}

.facility-pass-track .facility-tier {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  width: 174px;
  min-width: 174px;
  max-width: 174px;
  min-height: 248px;
  padding: 10px;
  --flex-row-gap: 6px;
  --flex-column-gap: 6px;
  box-sizing: border-box;
}

.facility-pass-track .facility-pass-thumb {
  height: 72px;
  border-radius: 10px;
}

.facility-pass-track .facility-thumb {
  height: 72px;
  border-radius: 10px;
}

.facility-pass-track .facility-tier h4 {
  font-size: 14px;
  min-height: 34px;
  max-height: 34px;
  line-height: 1.18;
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.facility-pass-track .facility-tier p {
  font-size: 11px;
  line-height: 1.28;
  min-height: 30px;
  max-height: 30px;
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pass-card-actions {
  margin-top: auto;
  padding-top: 4px;
}

.pass-card-actions button {
  width: 100%;
  min-height: 38px;
  font-size: 13px;
  padding: 8px 10px;
}

.facility-pass-track .facility-tier button {
  width: 100%;
  min-height: 38px;
  font-size: 13px;
  padding: 8px 10px;
}

@media (max-width: 1024px), (max-height: 560px) {
  .facility-body {
    padding: 8px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-stage.compact {
    grid-template-columns: 1fr;
    grid-template-areas: "copy"
        "portrait"
        "meta";
    gap: 8px;
    padding: 10px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-stage.compact .operator-stage-portrait.compact {
    min-height: 132px;
    max-height: 160px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-stage.compact .operator-stage-copy h3 {
    font-size: 24px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-stage.compact .operator-stage-copy h4 {
    font-size: 15px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-stage.compact .operator-stage-copy p {
    font-size: 12px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-stage.compact .operator-stage-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-ability-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-rail-card {
    width: 154px;
    min-width: 154px;
    min-height: 172px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-rail .operator-portrait {
    height: 72px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .operator-rail .operator-copy h3 {
    font-size: 18px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .facility-pass-track .facility-tier {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    min-height: 226px;
    padding: 8px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .facility-pass-track .facility-pass-thumb {
    height: 62px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .facility-pass-track .facility-thumb {
    height: 62px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .facility-pass-track .facility-tier h4 {
    font-size: 13px;
    min-height: 30px;
    max-height: 30px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .facility-pass-track .facility-tier p {
    font-size: 10px;
    min-height: 26px;
    max-height: 26px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .pass-card-actions button {
    min-height: 34px;
    font-size: 12px;
  }
}

@media (max-width: 1024px), (max-height: 560px) {
  .facility-pass-track .facility-tier button {
    min-height: 34px;
    font-size: 12px;
  }
}

@media (orientation: portrait) and (max-width: 540px) {
  .facility-header-meta {
    display: none !important;
  }
}

@media (orientation: portrait) and (max-width: 540px) {
  .operator-quick-select .facility-section-head span {
    max-width: 100%;
    text-align: left;
  }
}

@media (orientation: portrait) and (max-width: 540px) {
  .operator-abilities-panel .facility-section-head span {
    max-width: 100%;
    text-align: left;
  }
}

@media (orientation: portrait) and (max-width: 540px) {
  .operator-rail-card {
    width: 68vw;
    min-width: 68vw;
  }
}

@media (orientation: portrait) and (max-width: 540px) {
  .facility-pass-track .facility-tier {
    width: 72vw;
    min-width: 72vw;
    max-width: 72vw;
  }
}

#bagOverlay .item {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#bagOverlay .item * {
  touch-action: none;
  -ms-touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#bagOverlay .panel-scroll {
  overscroll-behavior: contain;
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body {
    display: flex !important;
    -webkit-flex-direction: column;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-hero {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    min-height: 0;
    margin-bottom: 6px;
    padding: 7px 10px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-hero h3 {
    margin: 0 0 2px;
    font-size: 17px;
    line-height: 1.08;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-hero p {
    margin: 0;
    font-size: 10px;
    line-height: 1.18;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track {
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    padding: 0 3px 4px 1px;
    --flex-row-gap: 7px;
    --flex-column-gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-align-items: stretch;
    align-items: stretch;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-tier {
    -webkit-flex: 0 0 146px;
    flex: 0 0 146px;
    width: 146px;
    min-width: 146px;
    max-width: 146px;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 6px 7px;
    --flex-row-gap: 3px;
    --flex-column-gap: 3px;
    overflow: hidden;
    box-sizing: border-box;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-tier .tier-top {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    min-height: 22px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-tier .tier-top strong {
    font-size: 11px;
    line-height: 1.1;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-tier .tier-top span {
    font-size: 11px;
    line-height: 1.1;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-pass-thumb {
    -webkit-flex: 0 0 52px;
    flex: 0 0 52px;
    height: 52px;
    min-height: 52px;
    margin: 0;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-thumb {
    -webkit-flex: 0 0 52px;
    flex: 0 0 52px;
    height: 52px;
    min-height: 52px;
    margin: 0;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-pass-thumb img {
    max-width: 90%;
    max-height: 48px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-thumb img {
    max-width: 90%;
    max-height: 48px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-tier h4 {
    -webkit-flex: 0 0 28px;
    flex: 0 0 28px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    margin: 0;
    font-size: 12px;
    line-height: 1.15;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-tier p {
    -webkit-flex: 0 0 23px;
    flex: 0 0 23px;
    height: 23px;
    min-height: 23px;
    max-height: 23px;
    margin: 0;
    font-size: 9px;
    line-height: 1.18;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .pass-card-actions {
    -webkit-flex: 0 0 32px;
    flex: 0 0 32px;
    height: 32px;
    min-height: 32px;
    margin-top: auto;
    padding: 0;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .pass-card-actions button {
    width: 100%;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    margin: 0;
    padding: 4px 6px;
    font-size: 11px;
    line-height: 1;
    box-sizing: border-box;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-track .facility-tier button {
    width: 100%;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    margin: 0;
    padding: 4px 6px;
    font-size: 11px;
    line-height: 1;
    box-sizing: border-box;
  }
}

.cap-legacy-layout .facility-pass-body {
  padding-bottom: 7px;
}

@media (max-height: 460px) and (orientation: landscape) {
  .cap-legacy-layout .facility-pass-track {
    padding-bottom: 7px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .cap-legacy-layout .facility-pass-track .facility-tier {
    height: calc(100% - 3px);
    max-height: calc(100% - 3px);
  }
}

.catalog-load-more {
  min-height: 44px;
  border: 1px solid rgba(104,234,174,.62);
  background: linear-gradient(180deg,rgba(40,126,91,.88),rgba(16,65,48,.96));
  color: #edfff5;
  font-weight: 800;
  letter-spacing: .08em;
}

.catalog-search {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px 0 12px;
  background: linear-gradient(180deg,rgba(7,14,20,.98) 75%,rgba(7,14,20,0));
}

.catalog-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(121,165,184,.44);
  background: rgba(4,10,15,.92);
  color: #eef8fb;
  font-size: 14px;
  outline: none;
}

.catalog-search input:focus {
  border-color: #70e6ad;
  box-shadow: 0 0 0 2px rgba(112,230,173,.12);
}

.catalog-load-more {
  display: block;
  width: calc(100% - 36px);
  max-width: 360px;
  margin: 18px auto 24px;
}

@media (max-width:760px),(max-height:430px) {
  .catalog-search {
    padding: 5px 0 8px;
  }
}

@media (max-width:760px),(max-height:430px) {
  .catalog-search input {
    min-height: 36px;
    font-size: 12px;
  }
}

#operatorSkillBar {
  position: absolute;
  right: 17.2%;
  bottom: 31%;
  z-index: 166;
  display: flex;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}

.operator-skill-btn {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 56px;
  min-width: 56px;
  height: 56px;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(159, 189, 199, .38);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, rgba(56, 76, 84, .92), rgba(9, 18, 23, .97) 72%);
  color: rgba(235, 244, 247, .94);
  box-shadow: inset 0 0 0 4px rgba(2, 9, 12, .28), 0 4px 12px rgba(0, 0, 0, .28);
  touch-action: manipulation;
}

.operator-skill-btn + .operator-skill-btn {
  margin-left: 7px;
}

.operator-skill-btn .operator-skill-key {
  position: absolute;
  left: 2px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  border: 1px solid rgba(194, 216, 223, .32);
  border-radius: 9px;
  background: rgba(5, 12, 16, .96);
  color: rgba(197, 218, 225, .72);
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.operator-skill-btn .operator-skill-glyph {
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  color: rgba(224, 238, 242, .92);
}

.operator-skill-btn .operator-skill-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  max-width: 64px;
  padding: 1px 5px 2px;
  overflow: hidden;
  background: rgba(5, 12, 16, .78);
  color: rgba(210, 226, 231, .76);
  font-size: 9px;
  font-weight: 800;
  line-height: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  pointer-events: none;
}

.operator-skill-btn .operator-skill-cooldown {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: grid;
  align-items: center;
  justify-items: center;
  border-radius: 50%;
  background: rgba(3, 8, 11, .62);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.operator-skill-btn .operator-skill-cooldown:empty {
  display: none;
}

.operator-skill-btn.ready {
  border-color: rgba(65, 218, 179, .72);
  background: radial-gradient(circle at 38% 30%, rgba(50, 120, 101, .94), rgba(5, 27, 27, .98) 72%);
  box-shadow: inset 0 0 0 4px rgba(5, 43, 35, .28), 0 0 0 1px rgba(40, 201, 163, .12), 0 4px 12px rgba(0, 0, 0, .28);
}

.operator-skill-btn.ultimate.ready {
  border-color: rgba(236, 219, 117, .82);
  background: radial-gradient(circle at 38% 30%, rgba(120, 104, 48, .96), rgba(29, 24, 7, .98) 72%);
}

.operator-skill-btn.active {
  border-color: rgba(236, 219, 117, .82);
  background: radial-gradient(circle at 38% 30%, rgba(120, 104, 48, .96), rgba(29, 24, 7, .98) 72%);
}

.operator-skill-btn.enhanced {
  border-color: rgba(94, 255, 216, .94);
  box-shadow: inset 0 0 0 4px rgba(5, 43, 35, .28), 0 0 10px rgba(83, 240, 201, .36), 0 4px 12px rgba(0, 0, 0, .28);
}

.operator-skill-btn:disabled {
  opacity: .54;
}

.operator-skill-btn.cooldown {
  opacity: .54;
}

.operator-skill-btn.active {
  opacity: 1;
}

.operator-class-summary {
  display: grid;
  grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(89, 221, 183, .24);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(15, 51, 47, .86), rgba(9, 18, 27, .96));
}

.operator-class-summary div {
  display: flex;
  align-items: baseline;
  --flex-row-gap: 8px;
  --flex-column-gap: 8px;
  min-width: 0;
}

.operator-class-summary span {
  color: #63efba;
  font-size: 13px;
  font-weight: 900;
}

.operator-class-summary strong {
  overflow: hidden;
  color: rgba(238, 247, 249, .96);
  font-size: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.operator-class-summary p {
  margin: 0;
  color: rgba(205, 220, 229, .76);
  font-size: 12px;
  line-height: 1.45;
}

.operator-ability {
  position: relative;
  padding-top: 27px;
}

.operator-ability em {
  position: absolute;
  left: 10px;
  top: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(91, 224, 187, .24);
  border-radius: 8px;
  background: rgba(32, 92, 78, .28);
  color: rgba(112, 241, 204, .82);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 12px;
}

@media (max-height: 520px) and (orientation: landscape) {
  #operatorSkillBar {
    right: 18.5%;
    bottom: 33%;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .operator-skill-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .operator-skill-btn + .operator-skill-btn {
    margin-left: 5px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .operator-skill-btn .operator-skill-glyph {
    font-size: 17px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .operator-skill-btn .operator-skill-name {
    font-size: 8px;
    line-height: 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .operator-skill-btn .operator-skill-cooldown {
    font-size: 15px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .operator-class-summary {
    grid-template-columns: minmax(140px, .38fr) minmax(0, 1fr);
    padding: 8px 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .operator-class-summary strong {
    font-size: 17px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .operator-ability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cap-legacy-layout .operator-skill-btn .operator-skill-name {
  font-size: 8px;
  line-height: 10px;
}

.cap-legacy-layout .operator-skill-btn .operator-skill-cooldown {
  font-size: 14px;
}

#bagOverlay .item {
  touch-action: none;
  -ms-touch-action: none;
}

#bagOverlay .item img {
  touch-action: none;
  -ms-touch-action: none;
}

#bagOverlay .item-art-img {
  touch-action: none;
  -ms-touch-action: none;
}

.facility-overlay[data-facility-view="facility_shop"] {
  background: #070b11;
}

.facility-overlay[data-facility-view="facility_pass"] {
  background: #070b11;
}

.facility-overlay[data-facility-view="facility_shop"] .facility-footer {
  display: none !important;
}

.facility-overlay[data-facility-view="facility_pass"] .facility-footer {
  display: none !important;
}

.facility-overlay[data-facility-view="facility_shop"] .facility-content {
  border-color: rgba(111, 142, 158, .28);
  border-radius: 2px;
  background: #0c121a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 16px 42px rgba(0, 0, 0, .25);
}

.facility-overlay[data-facility-view="facility_pass"] .facility-content {
  border-color: rgba(111, 142, 158, .28);
  border-radius: 2px;
  background: #0c121a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 16px 42px rgba(0, 0, 0, .25);
}

.facility-shop-body {
  padding: 0;
  overflow: hidden;
}

.shop-layout-v51 {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.shop-sidebar-v51 {
  -webkit-flex: 0 0 188px;
  flex: 0 0 188px;
  width: 188px;
  min-width: 188px;
  padding: 14px 12px;
  border-right: 1px solid rgba(115, 147, 161, .24);
  background: linear-gradient(180deg, rgba(16, 25, 33, .98), rgba(10, 16, 23, .98));
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.shop-mode-tabs-v51 {
  display: flex;
  margin: 0 -4px 14px;
}

.shop-mode-tabs-v51 button {
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  min-height: 62px;
  margin: 0 4px;
  padding: 7px 4px;
  border: 1px solid rgba(122, 151, 164, .32);
  border-bottom: 3px solid transparent;
  border-radius: 2px;
  background: rgba(14, 22, 29, .86);
  color: #aab6bf;
  font-weight: 800;
}

.shop-mode-tabs-v51 button b {
  display: block;
}

.shop-mode-tabs-v51 button span {
  display: block;
}

.shop-mode-tabs-v51 button b {
  margin-bottom: 2px;
  font-size: 20px;
  line-height: 22px;
}

.shop-mode-tabs-v51 button span {
  font-size: 13px;
}

.shop-mode-tabs-v51 button.active {
  border-color: rgba(94, 209, 170, .42);
  border-bottom-color: #67d8ae;
  background: linear-gradient(180deg, rgba(34, 62, 62, .82), rgba(17, 34, 38, .94));
  color: #e8fff6;
}

.shop-side-label {
  margin: 0 5px 8px;
  color: rgba(197, 211, 218, .54);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.shop-category-nav-v51 {
  display: block;
}

.shop-category-nav-v51 button {
  display: block;
  position: relative;
  width: 100%;
  min-height: 42px;
  margin: 0 0 5px;
  padding: 0 28px 0 14px;
  border: 1px solid rgba(116, 145, 158, .26);
  border-radius: 1px;
  background: rgba(11, 18, 25, .76);
  color: #c7d0d5;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.shop-category-nav-v51 button:after {
  content: "›";
  position: absolute;
  right: 11px;
  top: 50%;
  margin-top: -10px;
  color: rgba(202, 216, 222, .42);
  font-size: 18px;
}

.shop-category-nav-v51 button.active {
  border-color: rgba(103, 216, 174, .62);
  background: linear-gradient(90deg, rgba(39, 85, 72, .78), rgba(13, 24, 29, .94));
  color: #effff9;
  box-shadow: inset 3px 0 0 #67d8ae;
}

.shop-main-v51 {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 16px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.shop-main-toolbar-v51 {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  min-height: 62px;
  padding: 9px 0;
  background: linear-gradient(180deg, #0c121a 78%, rgba(12, 18, 26, 0));
  box-sizing: border-box;
}

.shop-search-v51 {
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
  height: 42px;
  border: 1px solid rgba(119, 149, 162, .38);
  background: rgba(6, 11, 16, .9);
}

.shop-search-v51 span {
  -webkit-flex: 0 0 42px;
  flex: 0 0 42px;
  color: rgba(193, 207, 214, .48);
  text-align: center;
  font-size: 21px;
}

.shop-search-v51 input {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef5f7;
  font-size: 14px;
}

.shop-search-v51:focus-within {
  border-color: rgba(103, 216, 174, .72);
}

.shop-result-count-v51 {
  margin-left: auto;
  padding-left: 16px;
  color: rgba(203, 214, 219, .58);
  font-size: 12px;
  white-space: nowrap;
}

.shop-sell-summary-v51 {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.shop-sell-summary-v51 strong {
  display: block;
}

.shop-sell-summary-v51 span {
  display: block;
}

.shop-sell-summary-v51 strong {
  color: #edf4f6;
  font-size: 16px;
}

.shop-sell-summary-v51 span {
  margin-top: 3px;
  color: rgba(203, 214, 219, .58);
  font-size: 11px;
}

.shop-product-grid-v51 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.shop-product-grid-v51 > .facility-empty {
  grid-column: 1 / -1;
}

.shop-product-card-v51 {
  min-width: 0;
  min-height: 210px;
  padding: 10px;
  --flex-row-gap: 7px;
  --flex-column-gap: 7px;
  border-color: rgba(111, 143, 157, .26);
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(19, 30, 40, .96), rgba(11, 18, 25, .98));
}

.shop-product-card-v51:hover {
  border-color: rgba(103, 216, 174, .52);
}

.shop-product-art-v51 {
  height: 105px;
  border: 0;
  border-bottom: 1px solid rgba(111, 143, 157, .16);
  border-radius: 0;
  background: radial-gradient(circle at 50% 45%, rgba(69, 91, 103, .24), rgba(5, 10, 15, .24) 70%);
}

.shop-product-art-v51 img {
  max-width: 92%;
  max-height: 94%;
}

.shop-product-copy-v51 {
  min-width: 0;
}

.shop-product-copy-v51 h4 {
  margin: 0;
  color: #eef4f5;
  font-size: 15px;
  line-height: 19px;
}

.shop-product-copy-v51 p {
  height: 15px;
  margin: 2px 0 0;
  overflow: hidden;
  color: rgba(203, 214, 219, .54);
  font-size: 10px;
  line-height: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shop-product-card-v51 .facility-card-actions {
  min-height: 38px;
  margin-top: auto;
}

.shop-product-card-v51 .facility-card-actions button {
  min-height: 36px;
  padding: 6px 15px;
  border-radius: 2px;
  border-color: rgba(207, 168, 72, .58);
  background: linear-gradient(180deg, #715419, #4e380f);
  color: #fff0b7;
}

.shop-product-card-v51 .facility-price {
  color: #f0e9d4;
  font-size: 15px;
}

.shop-history-v51 {
  margin-top: 18px;
  border-top: 1px solid rgba(111, 143, 157, .18);
  padding-top: 12px;
}

.shop-history-title-v51 {
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
}

.shop-history-title-v51 strong {
  color: #dbe5e8;
  font-size: 13px;
}

.shop-history-title-v51 span {
  margin-left: 10px;
  color: rgba(203, 214, 219, .42);
  font-size: 10px;
}

.shop-tier-filter-v56 {
  display: flex;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 10px;
  border: 1px solid rgba(122, 151, 164, .25);
  background: #080d13;
}

.shop-tier-filter-v56.hidden {
  display: none;
}

.shop-tier-filter-v56 button {
  min-width: 36px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid rgba(122, 151, 164, .18);
  background: transparent;
  color: rgba(220, 231, 235, .64);
  font-size: 10px;
  font-weight: 900;
}

.shop-tier-filter-v56 button:last-child {
  border-right: 0;
}

.shop-tier-filter-v56 button.active {
  background: #26333d;
  color: #fff;
}

.shop-product-grid-v51.weapon-grid-v56 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.shop-product-card-v51.shop-weapon-card-v56 {
  position: relative;
  min-height: 178px;
  padding: 8px;
  overflow: hidden;
  border-top-width: 4px;
  background: #101922;
}

.shop-weapon-card-v56.tier-t0 {
  border-top-color: #e88924;
  background: rgba(90, 51, 15, .34);
}

.shop-weapon-card-v56.tier-t1 {
  border-top-color: #c84d58;
  background: rgba(83, 27, 34, .34);
}

.shop-weapon-card-v56.tier-t2 {
  border-top-color: #3e78d6;
  background: rgba(25, 55, 103, .34);
}

.shop-weapon-card-v56.tier-t3 {
  border-top-color: #3ca86b;
  background: rgba(23, 75, 49, .34);
}

.shop-tier-badge-v56 {
  position: absolute;
  top: 6px;
  left: 7px;
  z-index: 2;
  min-width: 30px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  background: rgba(5, 9, 13, .78);
  color: #eef5f7;
  font-size: 9px;
  font-weight: 950;
  line-height: 12px;
  text-align: center;
}

.tier-t0 .shop-tier-badge-v56 {
  color: #ffb459;
}

.tier-t1 .shop-tier-badge-v56 {
  color: #ff7b83;
}

.tier-t2 .shop-tier-badge-v56 {
  color: #78a8ff;
}

.tier-t3 .shop-tier-badge-v56 {
  color: #72d79a;
}

.shop-weapon-card-v56 .shop-product-art-v51 {
  height: 72px;
  padding-top: 5px;
}

.shop-weapon-card-v56 .shop-product-copy-v51 h4 {
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-weapon-card-v56 .shop-product-copy-v51 p {
  font-size: 9px;
}

.shop-weapon-card-v56 .facility-card-actions {
  min-height: 31px;
}

.shop-weapon-card-v56 .facility-card-actions button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 10px;
}

.shop-weapon-card-v56 .facility-price {
  font-size: 12px;
}

@media (max-width: 1180px) {
  .shop-product-grid-v51.weapon-grid-v56 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-product-grid-v51.weapon-grid-v56 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-tier-filter-v56 {
    margin-left: 6px;
  }
}

@media (max-width: 900px) {
  .shop-tier-filter-v56 button {
    min-width: 30px;
    padding: 0 5px;
  }
}

@media (max-width: 650px) {
  .shop-product-grid-v51.weapon-grid-v56 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.facility-pass-body {
  display: flex !important;
  -webkit-flex-direction: column;
  flex-direction: column;
  height: 100%;
  padding: 12px 14px 10px;
  overflow: hidden;
}

.facility-pass-body .pass-hero-v51 {
  position: relative;
  -webkit-flex: 0 0 210px;
  flex: 0 0 210px;
  min-height: 210px;
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 155, 79, .34);
  border-radius: 2px;
  background: #111820 url("../assets/scenes/lobby/background/background.webp") center 58% / cover no-repeat;
}

.pass-hero-scrim-v51 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  padding: 18px 22px;
  background: linear-gradient(90deg, rgba(6, 11, 16, .88), rgba(7, 13, 19, .42) 62%, rgba(7, 13, 19, .66)), linear-gradient(0deg, rgba(5, 9, 13, .76), transparent 58%);
  box-sizing: border-box;
}

.pass-kicker-v51 {
  position: absolute;
  left: 22px;
  top: 18px;
  padding-left: 10px;
  border-left: 3px solid #68d8b0;
  color: rgba(231, 240, 243, .78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.pass-hero-copy-v51 h3 {
  margin: 0 0 4px;
  color: #f0f5f6;
  font-size: 28px;
  letter-spacing: .02em;
}

.pass-hero-copy-v51 p {
  margin: 0;
  color: rgba(225, 233, 236, .76);
  font-size: 12px;
}

.pass-progress-v51 {
  width: 48%;
  min-width: 360px;
  margin-top: 12px;
}

.pass-progress-v51 > div:first-child {
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 5px;
  color: rgba(221, 230, 233, .68);
  font-size: 10px;
}

.pass-progress-v51 strong {
  color: #d7bd73;
  font-weight: 800;
}

.pass-progress-bar-v51 {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .13);
}

.pass-progress-bar-v51 i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5bcda5, #d6b75c);
  box-shadow: 0 0 12px rgba(103, 216, 174, .42);
}

.facility-pass-body .facility-pass-track {
  position: relative;
  display: flex !important;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  min-height: 0;
  height: auto;
  padding: 8px 5px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 28%);
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.facility-pass-body .facility-pass-track .facility-tier {
  position: relative;
  -webkit-flex: 0 0 202px;
  flex: 0 0 202px;
  width: 202px;
  min-width: 202px;
  max-width: 202px;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0 10px 0 0;
  padding: 9px 10px;
  --flex-row-gap: 5px;
  --flex-column-gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(112, 142, 156, .32);
  border-radius: 2px;
  background: linear-gradient(160deg, rgba(20, 31, 41, .98), rgba(10, 17, 24, .98));
  box-sizing: border-box;
  opacity: 1 !important;
}

.facility-pass-body .facility-tier.next {
  box-shadow: 0 0 0 1px rgba(214, 183, 92, .74), 0 10px 28px rgba(0,0,0,.26);
}

.facility-pass-body .facility-tier.available {
  border-color: rgba(103, 216, 174, .72);
}

.facility-pass-body .facility-tier.claimed {
  border-color: rgba(103, 216, 174, .36);
}

.facility-pass-body .facility-tier.locked {
  filter: saturate(.7);
}

.facility-pass-body .facility-tier .tier-top {
  min-height: 22px;
  margin: 0;
}

.facility-pass-body .facility-tier .tier-top strong {
  color: #eef4f5;
  font-size: 13px;
}

.facility-pass-body .facility-tier .tier-top span {
  color: #d4bc75;
  font-size: 10px;
}

.facility-pass-body .facility-pass-thumb {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  height: auto;
  min-height: 72px;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle, rgba(78, 100, 111, .22), rgba(7, 12, 18, .18) 68%);
}

.facility-pass-body .facility-tier h4 {
  -webkit-flex: 0 0 20px;
  flex: 0 0 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  color: #eef4f5;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.facility-pass-body .facility-tier p {
  display: none !important;
}

.pass-state-v51 {
  -webkit-flex: 0 0 18px;
  flex: 0 0 18px;
  height: 18px;
  color: rgba(203, 214, 219, .58);
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
}

.facility-tier.available .pass-state-v51 {
  color: #68d8b0;
}

.facility-tier.claimed .pass-state-v51 {
  color: rgba(104, 216, 176, .62);
}

.facility-pass-body .pass-card-actions {
  -webkit-flex: 0 0 34px;
  flex: 0 0 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
}

.facility-pass-body .pass-card-actions button {
  width: 100%;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 1px;
  border-color: rgba(103, 216, 174, .44);
  background: rgba(25, 72, 61, .78);
  color: #eafff7;
  font-size: 11px;
}

.facility-pass-body .pass-card-actions button:disabled {
  border-color: rgba(121, 143, 153, .24);
  background: rgba(54, 65, 72, .52);
  color: rgba(214, 224, 228, .48);
  opacity: 1 !important;
}

@media (min-width: 1500px) {
  .shop-product-grid-v51 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shop-sidebar-v51 {
    -webkit-flex-basis: 154px;
    flex-basis: 154px;
    width: 154px;
    min-width: 154px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 900px) {
  .shop-main-v51 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 900px) {
  .shop-product-grid-v51 {
    gap: 7px;
  }
}

@media (max-width: 900px) {
  .shop-product-card-v51 {
    padding: 8px;
  }
}

:root {
  --lobby-ui-bg: #050b12;
  --lobby-ui-panel: #081520;
  --lobby-ui-raised: #0d1d28;
  --lobby-ui-soft: #101f2a;
  --lobby-ui-line: rgba(91, 126, 145, .42);
  --lobby-ui-line-strong: rgba(126, 162, 180, .62);
  --lobby-ui-teal: #58d4ad;
  --lobby-ui-teal-deep: #10493f;
  --lobby-ui-amber: #e4ad54;
  --lobby-ui-amber-deep: #4b3517;
  --lobby-ui-text: #eef5f7;
  --lobby-ui-muted: #8fa2ad;
  --lobby-ui-danger: #f05c69;
  --lobby-ui-radius: 10px;
  --lobby-ui-outer-radius: 20px;
}

.lobby-hud .lh-plate {
  border: 1px solid var(--lobby-ui-line);
  border-left: 3px solid var(--lobby-ui-teal);
  border-radius: var(--lobby-ui-radius);
  background: rgba(8, 21, 32, .92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.lobby-hud .lh-obj {
  border: 1px solid var(--lobby-ui-line);
  border-left: 3px solid var(--lobby-ui-teal);
  border-radius: var(--lobby-ui-radius);
  background: rgba(8, 21, 32, .92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.lobby-hud .lh-stripe {
  background: var(--lobby-ui-teal);
}

.lobby-hud .lh-base-name {
  color: var(--lobby-ui-text);
}

.lobby-hud .lh-v {
  color: var(--lobby-ui-text);
}

.lobby-hud .lh-obj {
  color: var(--lobby-ui-text);
}

.lobby-hud .lh-k {
  color: var(--lobby-ui-muted);
}

.lobby-hud .lh-base-status {
  color: var(--lobby-ui-amber);
}

.facility-overlay[data-facility-view="facility_deploy"] {
  background: var(--lobby-ui-bg);
  color: var(--lobby-ui-text);
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-topbar {
  border-bottom: 1px solid rgba(91, 126, 145, .16);
}

.facility-overlay[data-facility-view="facility_deploy"] .close-btn {
  border: 1px solid rgba(255, 117, 126, .58);
  border-radius: var(--lobby-ui-radius);
  background: var(--lobby-ui-danger);
  color: #101820;
  box-shadow: 0 3px 0 rgba(36, 15, 20, .72);
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-title-block strong {
  color: var(--lobby-ui-text);
  letter-spacing: .02em;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-title-block i {
  color: var(--lobby-ui-muted);
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-header-meta .facility-badge {
  min-height: 32px;
  padding: 6px 13px;
  border-color: var(--lobby-ui-line);
  border-radius: 999px;
  background: var(--lobby-ui-panel);
  color: var(--lobby-ui-muted);
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-header-meta .facility-badge strong {
  color: var(--lobby-ui-text);
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-content {
  border: 1px solid var(--lobby-ui-line);
  border-radius: var(--lobby-ui-radius);
  background: #07131e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-footer {
  min-height: 42px;
  padding-top: 7px;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-footer-hint {
  color: var(--lobby-ui-muted);
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-footer button {
  min-height: 36px;
  border-color: var(--lobby-ui-line);
  border-radius: var(--lobby-ui-radius);
  background: var(--lobby-ui-raised);
  color: var(--lobby-ui-text);
}

body[data-modal="warehouse"] #bagOverlay {
  --inv-panel: var(--lobby-ui-panel);
  --inv-panel-2: var(--lobby-ui-raised);
  --inv-line: var(--lobby-ui-line);
  --inv-line-strong: var(--lobby-ui-line-strong);
  --inv-green: var(--lobby-ui-teal-deep);
  --inv-green-bright: var(--lobby-ui-teal);
  background: var(--lobby-ui-bg);
}

body[data-modal="warehouse"] #bagOverlay .tactical-topbar {
  border-color: var(--lobby-ui-line);
  background: var(--lobby-ui-panel);
}

body[data-modal="warehouse"] #bagOverlay .tactical-footer {
  border-color: var(--lobby-ui-line);
  background: var(--lobby-ui-panel);
}

body[data-modal="warehouse"] #bagOverlay .tactical-rail {
  border-color: var(--lobby-ui-line);
  background: rgba(7, 18, 27, .96);
}

body[data-modal="warehouse"] #bagOverlay .rail-storage {
  color: var(--lobby-ui-text);
  background: rgba(16, 73, 63, .74);
}

body[data-modal="warehouse"] #bagOverlay .bag-panel {
  border: 1px solid var(--lobby-ui-line);
  border-radius: var(--lobby-ui-radius);
  background: var(--lobby-ui-panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .022);
}

body[data-modal="warehouse"] #bagOverlay .panel-heading {
  border-color: var(--lobby-ui-line);
  background: var(--lobby-ui-soft);
}

body[data-modal="warehouse"] #bagOverlay .section-strip {
  border-color: var(--lobby-ui-line);
  background: var(--lobby-ui-soft);
}

body[data-modal="warehouse"] #bagOverlay .bag-panel h2 {
  color: var(--lobby-ui-text);
}

body[data-modal="warehouse"] #bagOverlay .capacity-readout strong {
  color: var(--lobby-ui-text);
}

body[data-modal="warehouse"] #bagOverlay .panel-kicker {
  color: var(--lobby-ui-muted);
}

body[data-modal="warehouse"] #bagOverlay .panel-capacity {
  color: var(--lobby-ui-muted);
}

body[data-modal="warehouse"] #bagOverlay .section-strip {
  color: var(--lobby-ui-muted);
}

body[data-modal="warehouse"] #bagOverlay .capacity-readout span {
  color: var(--lobby-ui-muted);
}

body[data-modal="warehouse"] #bagOverlay .footer-hint {
  color: var(--lobby-ui-muted);
}

body[data-modal="warehouse"] #bagOverlay .section-strip span::before {
  background: var(--lobby-ui-teal);
}

body[data-modal="warehouse"] #bagOverlay .grid {
  border-radius: 7px;
  background: rgba(4, 12, 18, .6);
}

body[data-modal="warehouse"] #bagOverlay .slot {
  border-color: rgba(91, 126, 145, .25);
  border-radius: 5px;
  background: #0d1b25;
}

body[data-modal="warehouse"] #bagOverlay .slot.hl {
  background: rgba(16, 73, 63, .9);
  box-shadow: inset 0 0 0 1px var(--lobby-ui-teal), 0 0 9px rgba(88, 212, 173, .14);
}

body[data-modal="warehouse"] #bagOverlay .item {
  border-color: rgba(126, 162, 180, .28);
  border-radius: 6px;
  background: #10232e;
}

body[data-modal="warehouse"] #bagOverlay .item[data-item-rarity="rare"]::before {
  background: #d49a43;
  box-shadow: 0 0 7px rgba(212, 154, 67, .28);
}

body[data-modal="warehouse"] #bagOverlay .item[data-item-rarity="epic"]::before {
  background: var(--lobby-ui-amber);
  box-shadow: 0 0 9px rgba(228, 173, 84, .42);
}

body[data-modal="warehouse"] #bagOverlay .item-detail-rarity[data-rarity="rare"] {
  color: var(--lobby-ui-amber);
}

body[data-modal="warehouse"] #bagOverlay .item-detail-rarity[data-rarity="epic"] {
  color: var(--lobby-ui-amber);
}

body[data-modal="warehouse"] #bagOverlay .warehouse-actions button {
  border-radius: var(--lobby-ui-radius);
}

body[data-modal="warehouse"] #bagOverlay .tactical-footer button {
  border-radius: var(--lobby-ui-radius);
}

body[data-modal="warehouse"] #bagOverlay .warehouse-actions button {
  border-color: rgba(88, 212, 173, .62);
  background: #154f44;
  color: #e9fff7;
}

body[data-modal="warehouse"] #bagOverlay .tactical-footer button:last-child {
  border-color: rgba(88, 212, 173, .62);
  background: #154f44;
  color: #e9fff7;
}

@media (min-width: 1600px) and (min-height: 800px) {
  .cap-legacy-layout .facility-overlay[data-facility-view="facility_deploy"] {
    padding: 38px 100px 60px;
  }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .cap-legacy-layout .facility-overlay[data-facility-view="facility_deploy"] .facility-topbar {
    min-height: 96px;
    --flex-row-gap: 18px;
    --flex-column-gap: 18px;
    padding: 0 18px 12px;
  }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .cap-legacy-layout .facility-overlay[data-facility-view="facility_deploy"] .close-btn {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    flex-basis: 68px;
    border-radius: 12px;
    font-size: 48px;
    line-height: 62px;
  }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-title-block strong {
    font-size: 36px;
  }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-title-block i {
    font-size: 19px;
  }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-header-meta .facility-badge {
    min-height: 56px;
    padding: 10px 22px;
    font-size: 18px;
  }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-content {
    border-radius: 16px;
  }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .cap-legacy-layout .facility-overlay[data-facility-view="facility_deploy"] .facility-deploy-body {
    padding: 16px 20px 18px;
  }
}

@media (min-width: 1600px) and (min-height: 800px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-footer {
    min-height: 48px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .facility-overlay[data-facility-view="facility_deploy"] {
    padding: 7px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-topbar {
    min-height: 44px;
    padding-bottom: 5px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-footer {
    min-height: 34px;
    padding-top: 4px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-footer button {
    min-height: 30px;
  }
}

#bagOverlay .container-gear-layout > * + * {
  margin-left: var(--flex-column-gap, 0);
}

#bagOverlay .item-detail-discard > * + * {
  margin-left: var(--flex-column-gap, 0);
}

#bagOverlay .item-detail-facts > div > * + * {
  margin-left: var(--flex-column-gap, 0);
}

#bagOverlay .item-detail-header > * + * {
  margin-left: var(--flex-column-gap, 0);
}

#bagOverlay .section-strip .search-scan-badge > * + * {
  margin-left: var(--flex-column-gap, 0);
}

#result .result-actions > * + * {
  margin-left: var(--flex-column-gap, 0);
}

#result .result-context-grid > * {
  margin-right: var(--flex-column-gap, 0);
  margin-bottom: var(--flex-row-gap, 0);
}

#result .result-fail-stats > * {
  margin-right: var(--flex-column-gap, 0);
  margin-bottom: var(--flex-row-gap, 0);
}

#result .result-header > * + * {
  margin-left: var(--flex-column-gap, 0);
}

#result .result-metric-stack > * + * {
  margin-left: var(--flex-column-gap, 0);
}

#result .result-success-panel > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.capacity-readout > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-badge > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-badge-strip > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-card > * + * {
  margin-top: var(--flex-row-gap, 0);
}

.facility-card-actions > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-footer > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-header-meta > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-operator-body > * + * {
  margin-top: var(--flex-row-gap, 0);
}

.facility-pass-track > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-pass-track .facility-tier > * + * {
  margin-top: var(--flex-row-gap, 0);
}

.facility-price > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-section-head > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-tier > * + * {
  margin-top: var(--flex-row-gap, 0);
}

.facility-tier .tier-top > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-title-block > * + * {
  margin-top: var(--flex-row-gap, 0);
}

.facility-toolbar > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.facility-topbar > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.inventory-shell > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.cap-legacy-layout #bagOverlay .inventory-shell > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.cap-legacy-layout #quickbar > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.loot-list > * {
  margin-right: var(--flex-column-gap, 0);
  margin-bottom: var(--flex-row-gap, 0);
}

.operator-class-summary div > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.operator-copy > * + * {
  margin-top: var(--flex-row-gap, 0);
}

.operator-stage-copy > * + * {
  margin-top: var(--flex-row-gap, 0);
}

.operator-stage-meta > * + * {
  margin-top: var(--flex-row-gap, 0);
}

.overlay > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.shop-mode-tabs > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.tactical-footer > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.tactical-summary > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.tactical-title-block > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.cap-legacy-layout #bagOverlay .container-gear-layout > * + * {
  margin-left: var(--flex-column-gap, 0);
}

.operator-rail > * + * {
  margin-left: var(--flex-column-gap, 0);
}

[data-facility-view="facility_operator"] .operator-loadout-v52 > * {
  margin-right: var(--flex-column-gap, 0);
  margin-bottom: var(--flex-row-gap, 0);
}

[data-facility-view="facility_operator"] .facility-body.operator-stack-v74 {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(135deg, rgba(7,27,31,.96), rgba(8,17,28,.98));
  overscroll-behavior: contain;
}

[data-facility-view="facility_operator"] .facility-body.operator-stack-v74 > * + * {
  margin-top: 14px;
}

.operator-overview-v74 {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(86,225,183,.24);
  border-radius: 16px;
  background: rgba(7,18,29,.82);
  overflow: hidden;
}

.operator-abilities-v74 {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(86,225,183,.24);
  border-radius: 16px;
  background: rgba(7,18,29,.82);
  overflow: hidden;
}

.operator-character-skins-v74 {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  border: 1px solid rgba(86,225,183,.24);
  border-radius: 16px;
  background: rgba(7,18,29,.82);
  overflow: hidden;
}

.operator-overview-v74 {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  min-height: 300px;
}

.operator-overview-portrait-v74 {
  min-height: 300px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 28%, rgba(71,214,172,.20), transparent 55%), #07141d;
}

.operator-overview-portrait-v74 img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.operator-overview-copy-v74 {
  min-width: 0;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.operator-overview-copy-v74 > span {
  color: #64e6bb;
  font-size: 12px;
  letter-spacing: .18em;
}

.operator-overview-copy-v74 h2 {
  margin: 10px 0 8px;
  color: #f0f7f5;
  font-size: 36px;
  line-height: 1;
}

.operator-overview-copy-v74 > strong {
  color: #afc1c6;
  font-size: 16px;
}

.operator-overview-copy-v74 > p {
  max-width: 760px;
  margin: 16px 0;
  color: #91a4ac;
  font-size: 14px;
  line-height: 1.65;
}

.operator-loadout-v74 {
  display: flex;
  flex-wrap: wrap;
}

.operator-loadout-v74 em {
  margin: 0 8px 8px 0;
  padding: 7px 11px;
  border: 1px solid rgba(86,225,183,.28);
  border-radius: 999px;
  background: rgba(39,143,116,.12);
  color: #acebd6;
  font-size: 12px;
  font-style: normal;
}

.operator-abilities-v74 {
  padding: 16px;
}

.operator-abilities-v74 .operator-ability-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  grid-gap: 10px;
  min-height: 0;
  overflow: visible;
}

.operator-abilities-v74 .operator-ability {
  min-width: 0;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(104,153,176,.22);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(11,30,40,.95), rgba(7,19,31,.92));
  text-align: left;
}

.operator-abilities-v74 .operator-ability em {
  display: inline-flex;
  width: auto;
  padding: 3px 7px;
  border: 1px solid rgba(82,220,179,.28);
  border-radius: 999px;
  color: #72e9c2;
  font-size: 10px;
}

.operator-abilities-v74 .operator-ability strong {
  margin: 8px 0 5px;
  color: #e9f5f2;
  font-size: 16px;
}

.operator-abilities-v74 .operator-ability span {
  color: #91a8af;
  font-size: 12px;
  line-height: 1.5;
}

.operator-character-skins-v74 {
  padding: 16px;
}

.operator-skins-head-v74 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 10px;
  text-align: left;
}

.operator-skins-head-v74 > div strong {
  display: block;
  color: #edf7f4;
  font-size: 17px;
}

.operator-skins-head-v74 > div span {
  display: block;
  margin-top: 4px;
  color: #8299a3;
  font-size: 11px;
}

.operator-skins-head-v74 > b {
  padding: 7px 10px;
  border: 1px solid rgba(88,212,173,.30);
  border-radius: 999px;
  background: rgba(16,73,63,.32);
  color: #a9ead4;
  font-size: 11px;
  font-weight: 500;
}

.character-skin-list-v74 {
  display: flex;
  flex-direction: column;
}

.character-skin-list-v74 > * + * {
  margin-top: 10px;
}

.character-skin-row-v74 {
  display: grid;
  grid-template-columns: 104px minmax(0,1fr) 136px;
  align-items: center;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(104,153,176,.28);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(11,30,40,.96), rgba(7,19,31,.96));
  text-align: left;
}

.character-skin-row-v74.selected {
  border-color: rgba(88,212,173,.92);
  box-shadow: inset 0 0 0 1px rgba(88,212,173,.26);
}

.character-skin-row-v74.locked {
  opacity: .78;
}

.character-skin-row-v74.coming-soon {
  border-color: rgba(228,173,84,.50);
}

.character-skin-preview-v74 {
  position: relative;
  align-self: stretch;
  min-height: 112px;
  overflow: hidden;
  background: #07141d;
}

.character-skin-preview-v74 img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.character-skin-row-v74.locked .character-skin-preview-v74 img {
  filter: grayscale(.88) brightness(.55);
}

.character-skin-preview-v74 span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  overflow: hidden;
  padding: 4px 6px;
  border: 1px solid rgba(126,162,180,.32);
  border-radius: 7px;
  background: rgba(5,13,20,.86);
  color: #dce9eb;
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-skin-row-v74.selected .character-skin-preview-v74 span {
  border-color: rgba(88,212,173,.5);
  color: #8ff0cf;
}

.character-skin-row-v74.coming-soon .character-skin-preview-v74 span {
  border-color: rgba(228,173,84,.52);
  color: #f1c36e;
}

.character-skin-info-v74 {
  min-width: 0;
  padding: 14px 16px;
}

.character-skin-title-v74 {
  display: flex;
  align-items: center;
  min-width: 0;
}

.character-skin-title-v74 strong {
  min-width: 0;
  overflow: hidden;
  color: #eff7f6;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-skin-title-v74 em {
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(126,162,180,.28);
  border-radius: 999px;
  color: #91a8af;
  font-size: 9px;
  font-style: normal;
}

.character-skin-row-v74.selected .character-skin-title-v74 em {
  border-color: rgba(88,212,173,.42);
  color: #8ff0cf;
}

.character-skin-row-v74.coming-soon .character-skin-title-v74 em {
  border-color: rgba(228,173,84,.42);
  color: #f1c36e;
}

.character-skin-info-v74 small {
  display: block;
  margin-top: 6px;
  color: #8299a3;
  font-size: 11px;
  line-height: 1.4;
}

.character-skin-info-v74 > b {
  display: block;
  margin-top: 5px;
  color: #8ca2aa;
  font-size: 10px;
  font-weight: 400;
}

.character-skin-progress-v74 {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126,162,180,.16);
}

.character-skin-progress-v74 i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #58d4ad;
}

.character-skin-row-v74.coming-soon .character-skin-progress-v74 i {
  background: #e4ad54;
}

.character-skin-row-v74 > button {
  width: 112px;
  min-height: 42px;
  margin-right: 12px;
  border: 1px solid rgba(88,212,173,.42);
  border-radius: 10px;
  background: rgba(16,73,63,.74);
  color: #dff8ef;
  font-size: 12px;
}

.character-skin-row-v74 > button:disabled {
  cursor: default;
  opacity: .62;
  border-color: rgba(126,162,180,.25);
  background: rgba(18,32,42,.82);
  color: #8da0a9;
}

.character-skin-row-v74.coming-soon > button:disabled {
  border-color: rgba(228,173,84,.32);
  background: rgba(75,53,23,.55);
  color: #d9b36d;
}

.auto-aim-badge-v74 {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 5px;
  border: 1px solid rgba(118,255,210,.50);
  border-radius: 999px;
  background: rgba(3,24,22,.78);
  color: #8ff0cf;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .08em;
  pointer-events: none;
}

@media (max-width: 760px) {
  [data-facility-view="facility_operator"] .facility-body.operator-stack-v74 {
    padding: 10px;
  }
}

@media (max-width: 760px) {
  .operator-overview-v74 {
    grid-template-columns: 132px minmax(0,1fr);
    min-height: 230px;
  }
}

@media (max-width: 760px) {
  .operator-overview-portrait-v74 {
    min-height: 230px;
  }
}

@media (max-width: 760px) {
  .operator-overview-copy-v74 {
    padding: 16px 14px;
  }
}

@media (max-width: 760px) {
  .operator-overview-copy-v74 h2 {
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  .operator-overview-copy-v74 > p {
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.45;
  }
}

@media (max-width: 760px) {
  .operator-abilities-v74 .operator-ability-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .character-skin-row-v74 {
    grid-template-columns: 86px minmax(0,1fr);
    min-height: 98px;
  }
}

@media (max-width: 760px) {
  .character-skin-preview-v74 {
    min-height: 98px;
  }
}

@media (max-width: 760px) {
  .character-skin-info-v74 {
    padding: 10px 12px;
  }
}

@media (max-width: 760px) {
  .character-skin-row-v74 > button {
    grid-column: 2;
    width: auto;
    min-height: 36px;
    margin: 0 12px 10px;
  }
}

@media (max-width: 760px) {
  .operator-skins-head-v74 {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .operator-skins-head-v74 > b {
    margin-left: 8px;
  }
}

@media (max-width: 430px) {
  .operator-overview-v74 {
    grid-template-columns: 110px minmax(0,1fr);
  }
}

@media (max-width: 430px) {
  .operator-overview-copy-v74 {
    padding: 12px 10px;
  }
}

@media (max-width: 430px) {
  .operator-overview-copy-v74 h2 {
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .operator-loadout-v74 em {
    padding: 5px 7px;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .operator-skins-head-v74 {
    display: block;
  }
}

@media (max-width: 430px) {
  .operator-skins-head-v74 > b {
    display: inline-block;
    margin: 8px 0 0;
  }
}

#result.result-success .result-shell {
  padding: 26px 34px 24px;
}

#result.result-success .result-header {
  min-height: 116px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(132, 174, 187, .18);
}

#result.result-success .result-success-panel {
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 32px 340px;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-column-gap: 32px;
  align-items: start;
  min-height: 0;
  margin-top: 18px;
}

#result.result-success .result-summary {
  min-width: 0;
  padding: 0 4px 0 0;
}

#result.result-success .result-context-grid {
  display: grid;
  -ms-grid-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) minmax(120px, 1fr) minmax(100px, .8fr);
  grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) minmax(120px, 1fr) minmax(100px, .8fr);
  margin: 0 0 28px;
  border: 1px solid rgba(132, 174, 187, .18);
  background: rgba(6, 19, 28, .46);
}

#result.result-success .result-context-grid > div {
  min-width: 0;
  margin: 0;
  padding: 13px 18px 15px;
  border-right: 1px solid rgba(132, 174, 187, .18);
}

#result.result-success .result-context-grid > div:last-child {
  border-right: 0;
}

#result.result-success .result-context-grid strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#result.result-success .result-metric-stack {
  display: grid;
  -ms-grid-columns: minmax(220px, 1.7fr) 22px minmax(120px, 1fr) 22px minmax(120px, 1fr);
  grid-template-columns: minmax(220px, 1.7fr) minmax(120px, 1fr) minmax(120px, 1fr);
  grid-column-gap: 22px;
  width: 100%;
  min-width: 0;
  align-items: end;
}

#result.result-success .result-metric {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid rgba(88, 212, 173, .62);
  background: linear-gradient(90deg, rgba(14, 52, 49, .34), rgba(8, 25, 33, .12));
}

#result.result-success .result-metric-value strong {
  font-size: 52px;
  line-height: 1;
}

#result.result-success .result-metric:not(.result-metric-value) strong {
  font-size: 34px;
}

#result.result-success .result-operator-card {
  -ms-grid-column: 3;
  position: relative;
  width: 100%;
  max-width: 340px;
  min-width: 0;
  margin: 0;
  transform: none;
  overflow: hidden;
  border: 1px solid rgba(120, 167, 181, .30);
  border-radius: 2px;
  background: #091720;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

#result.result-success .result-operator-card:before {
  content: "OPERATOR / ACTIVE";
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 12px;
  padding: 4px 7px;
  border-left: 2px solid #58d4ad;
  color: rgba(219, 240, 239, .78);
  background: rgba(4, 16, 23, .76);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

#result.result-success .result-operator-frame {
  height: 222px;
  padding: 12px 16px 0;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(235, 239, 238, .96), rgba(207, 218, 216, .94)),
    #dfe6e5;
}

#result.result-success .result-operator-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

#result.result-success .result-operator-copy {
  min-height: 76px;
  box-sizing: border-box;
  padding: 12px 18px 15px;
  border-top: 2px solid rgba(88, 212, 173, .72);
  background: linear-gradient(180deg, #0d202a, #08151e);
}

#result.result-success .result-operator-copy span {
  font-size: 11px;
  letter-spacing: .6px;
}

#result.result-success .result-operator-copy strong {
  display: block;
  overflow: visible;
  margin-top: 4px;
  color: #f1f7f8;
  font-size: 24px;
  line-height: 1.15;
  white-space: nowrap;
}

#result.result-success .result-loot-section {
  padding: 14px 0 0;
  border-top: 1px solid rgba(132, 174, 187, .24);
}

#result.result-success .result-section-title {
  min-height: 34px;
  box-sizing: border-box;
  padding: 7px 12px;
  border-left: 3px solid #58d4ad;
  background: linear-gradient(90deg, rgba(18, 62, 58, .30), rgba(8, 23, 31, 0));
  color: rgba(225, 238, 242, .88);
  font-size: 15px;
  font-weight: 800;
}

#result.result-success .result-section-title strong {
  min-width: 70px;
  text-align: right;
  font-size: 14px;
}

#result.result-success .result-loot-empty {
  min-height: 64px;
  box-sizing: border-box;
  padding: 20px 16px;
  border: 1px dashed rgba(132, 174, 187, .18);
  color: rgba(190, 210, 217, .58);
  background: rgba(6, 18, 26, .32);
  font-size: 16px;
}

@media (max-width: 1100px) {
  #result.result-success .result-success-panel {
    -ms-grid-columns: minmax(0, 1fr) 22px 280px;
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-column-gap: 22px;
  }
}

@media (max-width: 1100px) {
  #result.result-success .result-operator-card {
    max-width: 280px;
  }
}

@media (max-width: 1100px) {
  #result.result-success .result-operator-frame {
    height: 190px;
  }
}

@media (max-width: 1100px) {
  #result.result-success .result-context-grid {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  #result.result-success .result-context-grid > div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 1100px) {
  #result.result-success .result-context-grid > div:nth-child(-n/**/+2) {
    border-bottom: 1px solid rgba(132, 174, 187, .18);
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-shell {
    padding: 14px 24px 12px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-header {
    min-height: 78px;
    padding-bottom: 8px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-success-panel {
    margin-top: 10px;
    grid-template-columns: minmax(0, 1fr) 250px;
    grid-column-gap: 18px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-context-grid {
    margin-bottom: 10px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-context-grid > div {
    padding: 8px 12px 9px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-operator-card {
    max-width: 250px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-operator-frame {
    height: 132px;
    padding-top: 8px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-operator-copy {
    min-height: 55px;
    padding: 7px 12px 9px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-operator-copy strong {
    font-size: 19px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-section-title {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 13px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result.result-success .result-success-panel {
    display: block;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result.result-success .result-context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result.result-success .result-metric-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result.result-success .result-metric-value {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result.result-success .result-operator-card {
    width: 100%;
    max-width: none;
    margin-top: 14px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  #result.result-success .result-operator-frame {
    height: 190px;
  }
}

#result.result-success .result-loot-empty {
  width: 100%;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  image-rendering: auto;
  contain: paint;
}

#gameFrame {
  background: #111722;
}

#stageWrap {
  -webkit-transform: none;
  transform: none;
}

#gameFrame {
  -webkit-transform: none;
  transform: none;
}

#gameCanvas {
  -webkit-transform: none;
  transform: none;
}

#quickbar {
  width: 381px;
  height: 64px;
  min-width: 381px;
  max-width: 381px;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  overflow: visible;
}

#quickbar > * {
  box-sizing: border-box;
  margin: 0;
}

#quickbar > * + * {
  margin-left: 3px;
}

#quickbar #btnHeal {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 60px;
  flex: 0 0 60px;
  border-radius: 50%;
}

#quickbar #btnWeaponMain {
  width: 126px;
  min-width: 126px;
  max-width: 126px;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 126px;
  flex: 0 0 126px;
}

#quickbar #btnWeaponSub {
  width: 126px;
  min-width: 126px;
  max-width: 126px;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 126px;
  flex: 0 0 126px;
}
#quickbar #btnWeaponMelee {
  width: 126px;
  min-width: 126px;
  max-width: 126px;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 126px;
  flex: 0 0 126px;
}


#quickbar .gear-status {
  position: relative;
  display: block;
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 60px;
  flex: 0 0 60px;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid rgba(164, 188, 197, .38);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(28, 39, 46, .96), rgba(8, 16, 21, .98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 2px 3px 0 rgba(0, 0, 0, .26);
}

#quickbar .gear-slot {
  position: relative;
  display: block;
  width: 100%;
  height: 32px;
  min-height: 32px;
  box-sizing: border-box;
  overflow: hidden;
  color: rgba(232, 243, 246, .86);
}

#quickbar .gear-slot + .gear-slot {
  border-top: 1px solid rgba(164, 188, 197, .22);
}

#quickbar .gear-kind {
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: 3;
  font-size: 8px;
  line-height: 9px;
  font-weight: 800;
  color: rgba(222, 237, 241, .67);
}

#quickbar .gear-art {
  position: absolute;
  left: 15px;
  top: 1px;
  right: 2px;
  bottom: 3px;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#quickbar .gear-art-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 39px;
  max-height: 27px;
  object-fit: contain;
}

#quickbar .gear-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 39px;
  max-height: 27px;
  object-fit: contain;
}

#quickbar .gear-placeholder {
  fill: none;
  stroke: rgba(235, 242, 244, .92);
  stroke-width: 2.2px;
  stroke-linejoin: round;
}

#quickbar .gear-slot.empty {
  opacity: .38;
  background: rgba(210, 220, 224, .08);
}

#quickbar .gear-slot.broken {
  color: #ff8a80;
  background: rgba(94, 20, 21, .74);
}

#quickbar .gear-slot.broken .gear-art-img {
  -webkit-filter: grayscale(1) brightness(.56) sepia(.5) saturate(4) hue-rotate(320deg);
  filter: grayscale(1) brightness(.56) sepia(.5) saturate(4) hue-rotate(320deg);
}

#quickbar .gear-slot.broken .gear-art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 2px;
  height: 32px;
  background: #ff6b61;
  box-shadow: -7px 9px 0 -1px #ff6b61, 6px 17px 0 -1px #ff6b61;
  -webkit-transform: rotate(24deg);
  transform: rotate(24deg);
  opacity: .86;
}

#quickbar .gear-broken-label {
  position: absolute;
  right: 2px;
  top: 1px;
  z-index: 5;
  color: #ffd3cf;
  font-size: 8px;
  line-height: 9px;
  text-shadow: 0 1px 1px #000;
}

#quickbar .gear-durability {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 1px;
  height: 2px;
  overflow: hidden;
  background: rgba(0, 0, 0, .72);
}

#quickbar .gear-durability > i {
  display: block;
  height: 100%;
  background: #58d8b2;
}

#quickbar .gear-slot.broken .gear-durability > i {
  background: #ff5d55;
}

#quickbar #btnBag.floating-bag {
  position: absolute;
  left: 0;
  top: -53px;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  margin: 0;
  padding: 4px;
  z-index: 4;
  overflow: hidden;
  border-radius: 8px;
}

#quickbar #btnBag.floating-bag .hud-key {
  font-size: 9px;
  line-height: 10px;
}

#quickbar #btnBag.floating-bag .quickbar-svg {
  width: 28px;
  height: 28px;
}

@media (max-height: 620px) and (orientation: landscape) {
  #quickbar .gear-kind {
    font-size: 7px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #quickbar .gear-broken-label {
    font-size: 7px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #quickbar .gear-art {
    left: 12px;
  }
}

@supports (padding-left: env(safe-area-inset-left)) {
  :root {
    --safe-top: env(safe-area-inset-top);
    --safe-right: env(safe-area-inset-right);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);
  }
}

@supports (padding-left: env(safe-area-inset-left)) {
  #gameFrame {
    --ui-safe-bottom: env(safe-area-inset-bottom);
    --ui-safe-right: env(safe-area-inset-right);
  }
}

html:not(.cap-legacy-layout) #stageWrap {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

html:not(.cap-legacy-layout) #gameFrame {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

html:not(.cap-legacy-layout) #gameCanvas {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

html:not(.cap-legacy-layout) #gameFrame {
  position: relative;
  left: auto;
  top: auto;
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-overlay[data-facility-view="facility_pass"] {
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    padding-right: calc(7px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(7px + env(safe-area-inset-left, 0px));
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-overlay[data-facility-view="facility_pass"] .facility-topbar {
    min-height: 42px;
    padding-bottom: 4px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-overlay[data-facility-view="facility_pass"] .facility-title-block strong {
    font-size: 20px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-overlay[data-facility-view="facility_pass"] .facility-title-block i {
    font-size: 10px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body {
    padding: 5px 7px 4px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .pass-hero-v51 {
    -webkit-flex-basis: 86px;
    flex-basis: 86px;
    min-height: 86px;
    margin-bottom: 4px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .pass-hero-scrim-v51 {
    padding: 7px 12px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .pass-kicker-v51 {
    left: 12px;
    top: 7px;
    font-size: 7px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .pass-hero-copy-v51 h3 {
    font-size: 16px;
    margin-bottom: 1px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .pass-hero-copy-v51 p {
    font-size: 8px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .pass-progress-v51 {
    width: 52%;
    min-width: 230px;
    margin-top: 3px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-pass-track {
    padding: 3px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-pass-track .facility-tier {
    -webkit-flex-basis: 154px;
    flex-basis: 154px;
    width: 154px;
    min-width: 154px;
    max-width: 154px;
    padding: 5px 7px;
    --flex-row-gap: 2px;
    --flex-column-gap: 2px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-tier .tier-top {
    min-height: 17px;
    height: 17px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-tier .tier-top strong {
    font-size: 11px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-tier .tier-top span {
    font-size: 8px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-pass-thumb {
    min-height: 34px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .facility-tier h4 {
    -webkit-flex-basis: 16px;
    flex-basis: 16px;
    height: 16px;
    min-height: 16px;
    font-size: 11px;
    line-height: 16px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .pass-state-v51 {
    -webkit-flex-basis: 13px;
    flex-basis: 13px;
    height: 13px;
    font-size: 8px;
    line-height: 13px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .pass-card-actions {
    -webkit-flex-basis: 28px;
    flex-basis: 28px;
    height: 28px;
    min-height: 28px;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .facility-pass-body .pass-card-actions button {
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    padding: 2px 6px;
    font-size: 10px;
  }
}

#game {
  position: relative;
}

.rookie-guide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 500;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.rookie-guide.hidden {
  display: none !important;
}

.rookie-guide-card {
  position: absolute;
  border: 1px solid rgba(96, 239, 192, .82);
  background: linear-gradient(135deg, rgba(5, 18, 25, .96), rgba(8, 36, 42, .94));
  color: #eefbf7;
  text-align: left;
}

.rookie-guide-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #68e4bd;
  font-weight: 800;
}

.rookie-guide-topline button {
  pointer-events: auto;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  color: rgba(232, 245, 247, .72);
}

.rookie-guide-card strong {
  display: block;
}

.rookie-guide-card p {
  margin: 4px 0 0;
  color: rgba(220, 237, 240, .82);
  font-size: 13px;
  line-height: 1.45;
}

.rookie-guide-pointer {
  position: absolute;
  left: 50%;
  top: 25%;
  width: 54px;
  height: 76px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 8px rgba(255, 225, 94, .7));
  animation: rookiePointerFloat 1s ease-in-out infinite alternate;
}

.rookie-guide-pointer::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  width: 5px;
  height: 52px;
  border-radius: 4px;
  background: #ffe56d;
}

.rookie-guide-pointer::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 42px;
  width: 24px;
  height: 24px;
  border-right: 6px solid #ffe56d;
  border-bottom: 6px solid #ffe56d;
  transform: rotate(45deg);
}

.rookie-guide[data-step="search"] .rookie-guide-pointer {
  display: none;
}

.rookie-guide[data-step="combat"] .rookie-guide-pointer {
  display: none;
}

.rookie-guide[data-step="extract"] .rookie-guide-pointer {
  display: none;
}

.rookie-tutorial-target {
  overflow: visible;
  animation: rookieTargetPulse .8s ease-in-out infinite alternate;
}

@keyframes rookiePointerFloat{from { transform: translate(-50%, -4px); } to { transform: translate(-50%, 8px); }}

@keyframes rookieTargetPulse{from { filter: brightness(1); } to { filter: brightness(1.35); }}

@media (max-height: 500px) and (orientation: landscape) {
  .rookie-guide-card {
    top: max(6px, env(safe-area-inset-top));
    width: min(410px, calc(100vw - 30px));
    padding: 8px 12px 9px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .rookie-guide-card strong {
    font-size: 15px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .rookie-guide-card p {
    font-size: 11px;
    margin-top: 2px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .rookie-guide-topline {
    margin-bottom: 3px;
    font-size: 10px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .rookie-guide-pointer {
    top: 21%;
    transform: translateX(-50%) scale(.82);
  }
}

body[data-modal="facility"] #legacyHudRoot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-modal="backpack"] #legacyHudRoot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-modal="container"] #legacyHudRoot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-modal="warehouse"] #legacyHudRoot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-screen="result"] #legacyHudRoot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-screen="loading"] #legacyHudRoot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#bagOverlay .rig-strip #rigSectionLabel::after {
  content: "横向双格 · 不旋转";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(87, 210, 174, .32);
  border-radius: 4px;
  background: rgba(14, 66, 57, .42);
  color: rgba(171, 235, 216, .9);
  font-size: 8px;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

#bagOverlay .rig-strip #sourceRigSectionLabel::after {
  content: "横向双格 · 不旋转";
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(87, 210, 174, .32);
  border-radius: 4px;
  background: rgba(14, 66, 57, .42);
  color: rgba(171, 235, 216, .9);
  font-size: 8px;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

#bagOverlay .rig-grid {
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(91, 139, 125, .38);
  background: rgba(7, 18, 18, .72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

#bagOverlay .rig-grid > .slot {
  position: relative;
  border-color: rgba(112, 145, 133, .34);
}

#bagOverlay .rig-grid > .slot.rig-pair-a {
  background: linear-gradient(180deg, rgba(36, 66, 59, .52), rgba(18, 37, 34, .72));
}

#bagOverlay .rig-grid > .slot.rig-pair-b {
  background: linear-gradient(180deg, rgba(31, 53, 50, .46), rgba(14, 30, 29, .72));
}

#bagOverlay .rig-grid > .slot.rig-pair-start {
  border-right-color: rgba(87, 210, 174, .12);
  box-shadow: inset 3px 0 0 rgba(87, 210, 174, .16);
}

#bagOverlay .rig-grid > .slot.rig-pair-end {
  border-left-color: rgba(87, 210, 174, .12);
  box-shadow: inset -3px 0 0 rgba(87, 210, 174, .16);
}

#bagOverlay .rig-grid > .slot.rig-pair-start::after {
  content: "2×1";
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 0;
  color: rgba(144, 199, 183, .36);
  font-size: 7px;
  line-height: 1;
  pointer-events: none;
}

#bagOverlay .rig-grid > .slot .item {
  z-index: 2;
}

@media (max-height: 430px) {
  #bagOverlay .rig-strip #rigSectionLabel::after {
    margin-left: 4px;
    padding: 1px 4px;
    font-size: 7px;
  }
}

@media (max-height: 430px) {
  #bagOverlay .rig-strip #sourceRigSectionLabel::after {
    margin-left: 4px;
    padding: 1px 4px;
    font-size: 7px;
  }
}

body[data-map="lobby"] #btnAttack {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-map="lobby"] #btnSwitchWeapon {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-map="lobby"][data-modal="none"] #operatorSkillBar {
  display: flex !important;
  right: max(116px,calc(var(--safe-right) + 116px));
  bottom: max(28px,calc(var(--safe-bottom) + 28px));
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body[data-map="lobby"][data-modal="none"] #operatorSkillBar .operator-skill-btn {
  width: 76px;
  height: 76px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(12,12,12,.58);
  box-shadow: 0 4px 12px rgba(0,0,0,.28), inset 0 0 14px rgba(255,255,255,.05);
  color: #fff;
  backdrop-filter: blur(2px);
}

body[data-map="lobby"][data-modal="none"] #operatorSkillBar .operator-skill-glyph {
  width: 68px;
  height: 68px;
  fill: none;
  stroke: #fff;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-map="lobby"][data-modal="none"] #operatorSkillBar img.operator-slide-glyph {
  display: block;
  object-fit: contain;
  pointer-events: none;
}

body[data-map="lobby"][data-modal="none"] #operatorSkillBar .operator-skill-glyph .slide-chevrons {
  stroke: #b9d9ef;
  stroke-width: 3.5;
}

body[data-map="lobby"][data-modal="none"] #quickbar {
  display: block !important;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  height: 76px !important;
  right: max(22px,calc(var(--safe-right) + 22px));
  bottom: max(28px,calc(var(--safe-bottom) + 28px));
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

body[data-map="lobby"][data-modal="none"] #quickbar > * {
  display: none !important;
}

body[data-map="lobby"][data-modal="none"] #quickbar #btnBag.floating-bag {
  display: grid !important;
  place-items: center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  padding: 13px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(12,12,12,.58);
  box-shadow: 0 4px 12px rgba(0,0,0,.28), inset 0 0 14px rgba(255,255,255,.05);
  backdrop-filter: blur(2px);
  pointer-events: auto !important;
}

body[data-map="lobby"][data-modal="none"] #quickbar #btnBag .quickbar-svg {
  width: 82px;
  height: 68px;
  margin: 0;
  color: #fff;
  stroke-width: 3.5;
}

#quickbar #btnBag img.bag-reference-icon {
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
  border: 0;
  pointer-events: none;
}

body[data-map="lobby"][data-modal="none"] #quickbar #btnBag img.bag-reference-icon {
  width: 68%;
  height: 68%;
  transform: none;
  transform-origin: 50% 50%;
}

body[data-map="lobby"] #btnTacticalMap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-map="lobby"][data-modal="none"] #joystick {
  display: block;
  visibility: visible;
  opacity: 1;
}

body[data-map="lobby"][data-modal="none"] #btnAction:not(.hidden) {
  display: grid;
  visibility: visible;
  opacity: 1;
}

.rookie-guide-pointer {
  display: none !important;
}

.rookie-guide-card {
  left: max(12px, env(safe-area-inset-left));
  top: max(10px, env(safe-area-inset-top));
  transform: none;
  width: auto;
  max-width: min(390px, calc(100vw - 30px));
  padding: 7px 10px 8px;
  border-left-width: 3px;
  border-radius: 7px;
  box-shadow: 0 7px 18px rgba(0,0,0,.34), 0 0 12px rgba(76,232,180,.10);
}

.rookie-guide-topline {
  margin-bottom: 2px;
  gap: 9px;
  font-size: 9px;
  letter-spacing: .05em;
}

.rookie-guide-topline button {
  padding: 2px 6px;
  font-size: 9px;
}

.rookie-guide-card strong {
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.rookie-guide-card p {
  display: none !important;
}

.rookie-tutorial-target {
  box-shadow: 0 0 0 3px rgba(255,226,92,.88), 0 0 18px 6px rgba(255,226,92,.26);
}

@media (max-width: 700px), (max-height: 500px) and (orientation: landscape) {
  .rookie-guide-card {
    left: max(7px, env(safe-area-inset-left));
    top: max(6px, env(safe-area-inset-top));
    max-width: min(340px, calc(100vw - 20px));
    padding: 5px 8px 6px;
  }
}

@media (max-width: 700px), (max-height: 500px) and (orientation: landscape) {
  .rookie-guide-card strong {
    font-size: 11px;
  }
}

@media (max-width: 700px), (max-height: 500px) and (orientation: landscape) {
  .rookie-guide-topline {
    font-size: 8px;
  }
}

.auto-aim-badge-v74.off {
  color: #aab5bf;
  border-color: rgba(170,181,191,.35);
  background: rgba(40,48,56,.72);
}

.prebattle-overlay-v98 {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(2,7,12,.94);
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: #eef5f7;
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC",Arial,sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.prebattle-overlay-v98.hidden {
  display: none !important;
}

.prebattle-shell-v98 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg,#07121b,#0a1823);
}

.prebattle-shell-v98>header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(112,154,177,.38);
  background: #061019;
}

.prebattle-shell-v98>header button {
  border: 0;
  border-radius: 10px;
  background: #f05c69;
  color: white;
  font-size: 42px;
  line-height: 1;
}

.prebattle-shell-v98>header div {
  display: flex;
  flex-direction: column;
}

.prebattle-shell-v98>header span {
  font-size: 11px;
  letter-spacing: .2em;
  color: #58d4ad;
}

.prebattle-shell-v98>header>b {
  margin-left: auto;
  padding: 10px 16px;
  border: 1px solid rgba(88,212,173,.45);
  border-radius: 999px;
  color: #8be8cb;
  font-size: 14px;
}

#prebattleBodyV98 {
  flex: 1;
}

.prep-layout-v98 {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(280px,38%) 1fr;
  gap: 18px;
  padding: 18px;
}

.prep-map-v98 {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(105,151,176,.45);
  border-radius: 18px;
  background: #081722;
  min-height: 360px;
}

.prep-map-v98>img {
  width: 100%;
  height: 58%;
  object-fit: cover;
  display: block;
  opacity: .82;
}

.prep-map-v98>div {
  padding: 22px;
}

.prep-map-v98 span {
  color: #58d4ad;
  font-size: 12px;
  letter-spacing: .12em;
}

.prep-section-title-v98 span {
  color: #58d4ad;
  font-size: 12px;
  letter-spacing: .12em;
}

.prep-map-v98 h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.prep-map-v98 p {
  color: #9eb0bb;
  line-height: 1.6;
}

.prep-map-v98 small {
  display: block;
  margin-top: 18px;
  color: #d7e1e6;
}

.prep-config-v98 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.prep-section-title-v98 {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.prep-section-title-v98>div {
  display: flex;
  flex-direction: column;
}

.prep-section-title-v98 strong {
  font-size: 25px;
}

.prep-section-title-v98 em {
  font-style: normal;
  color: #8fa2ad;
  font-size: 13px;
}

.prep-kit-tabs-v98 {
  display: flex;
  gap: 10px;
}

.prep-kit-tabs-v98 button {
  flex: 1;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid rgba(112,154,177,.35);
  background: #0b1d29;
  color: #aebfc8;
  font-weight: 700;
}

.prep-kit-tabs-v98 button.active {
  border-color: #58d4ad;
  background: #10493f;
  color: #dffff5;
}

.prep-slots-v98 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
}

.prep-slots-v98 article {
  display: grid;
  grid-template-columns: 58px 54px 1fr;
  align-items: center;
  min-height: 70px;
  padding: 8px;
  border: 1px solid rgba(112,154,177,.27);
  background: #0a1823;
  border-radius: 10px;
}

.prep-slots-v98 article>span {
  font-size: 12px;
  color: #8fa2ad;
}

.prep-slots-v98 article>div {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #07131d;
  border-radius: 8px;
}

.prep-slots-v98 img {
  max-width: 44px;
  max-height: 44px;
}

.prep-slots-v98 strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prep-supply-line-v98 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(112,154,177,.24);
  background: #091722;
  border-radius: 10px;
}

.prep-supply-line-v98 strong {
  margin-right: 6px;
}

.prep-supply-line-v98 span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #102531;
  color: #b9c9d0;
  font-size: 12px;
}

.prep-aim-row-v98 {
  display: grid;
  grid-template-columns: 1fr 48px 64px;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(112,154,177,.32);
  background: #0a1924;
  color: #edf5f7;
  border-radius: 12px;
  padding: 12px 14px;
}

.prep-aim-row-v98 div {
  display: flex;
  flex-direction: column;
}

.prep-aim-row-v98 span {
  color: #8fa2ad;
  font-size: 12px;
  margin-top: 3px;
}

.prep-aim-row-v98 i {
  height: 26px;
  border-radius: 999px;
  background: #253642;
  position: relative;
}

.prep-aim-row-v98 i:after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #98a6ad;
  transition: .18s;
}

.prep-aim-row-v98.on i {
  background: #176b5a;
}

.prep-aim-row-v98.on i:after {
  left: 25px;
  background: #76e6c2;
}

.prep-aim-row-v98 b {
  font-size: 13px;
  color: #8fa2ad;
}

.prep-aim-row-v98.on b {
  color: #76e6c2;
}

.prep-confirm-v98 {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}

.prep-confirm-v98>div {
  display: flex;
  flex-direction: column;
  color: #8fa2ad;
  font-size: 12px;
}

.prep-confirm-v98 strong {
  color: #d8e5ea;
  margin-top: 4px;
}

.prep-confirm-v98>button {
  min-width: 170px;
  padding: 15px 22px;
  border-radius: 10px;
  border: 1px solid #58d4ad;
  background: #176b5a;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

@media (max-width:900px), (max-height:520px) {
  .prep-layout-v98 {
    grid-template-columns: 32% 1fr;
    padding: 8px;
    gap: 8px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-map-v98 {
    min-height: 0;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-map-v98>img {
    height: 46%;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-map-v98>div {
    padding: 10px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-map-v98 h2 {
    font-size: 21px;
    margin: 5px 0;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-map-v98 p {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-map-v98 small {
    margin-top: 7px;
    font-size: 10px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-config-v98 {
    gap: 7px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-section-title-v98 strong {
    font-size: 19px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-slots-v98 {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 5px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-slots-v98 article {
    grid-template-columns: 38px 38px 1fr;
    min-height: 52px;
    padding: 4px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-slots-v98 article>div {
    width: 34px;
    height: 34px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-slots-v98 img {
    max-width: 32px;
    max-height: 32px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-slots-v98 strong {
    font-size: 10px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-slots-v98 span {
    font-size: 10px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-supply-line-v98 {
    padding: 6px;
    gap: 4px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-supply-line-v98 span {
    font-size: 9px;
    padding: 3px 6px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-aim-row-v98 {
    padding: 7px 9px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-confirm-v98>button {
    padding: 10px 14px;
    min-width: 130px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prep-confirm-v98>div {
    font-size: 9px;
  }
}

#landscapeGateV99 {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 40%,#102533 0,#050b12 62%,#020509 100%);
  color: #eef7f5;
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC",Arial,sans-serif;
  touch-action: none;
}

#landscapeGateV99.show {
  display: flex !important;
}

.landscape-gate-card-v99 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.landscape-gate-card-v99 strong {
  font-size: 24px;
  letter-spacing: .08em;
}

.landscape-gate-card-v99 span {
  font-size: 13px;
  color: #91a7b2;
}

.landscape-phone-v99 {
  width: 54px;
  height: 92px;
  border: 4px solid #6fe1bd;
  border-radius: 12px;
  position: relative;
  transform: rotate(90deg);
  animation: v99RotateHint 1.8s ease-in-out infinite;
}

.landscape-phone-v99:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 14px;
  height: 3px;
  margin-left: -7px;
  border-radius: 4px;
  background: #6fe1bd;
}

.landscape-phone-v99 i {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(111,225,189,.35);
  border-radius: 5px;
}

@keyframes v99RotateHint{0%,100%{transform:rotate(0deg)}45%,80%{transform:rotate(90deg)}}

@media (orientation:portrait) {
  #landscapeGateV99 {
    display: flex !important;
  }
}

#btnAction.interaction-bar:not(.hidden) {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: absolute;
  left: auto;
  right: max(16px,env(safe-area-inset-right));
  top: 48%;
  bottom: auto;
  transform: translateY(-50%);
  width: auto;
  min-width: 146px;
  max-width: min(280px,42vw);
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  padding: 6px 17px 6px 8px;
  border-radius: 11px;
  border: 1px solid rgba(101,226,190,.76);
  background: linear-gradient(90deg,rgba(10,28,36,.97),rgba(9,20,29,.94));
  box-shadow: 0 8px 22px rgba(0,0,0,.4),inset 0 0 0 1px rgba(255,255,255,.04),0 0 16px rgba(67,223,180,.12);
  color: #edf8f5;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto !important;
  z-index: 200;
  overflow: hidden;
}

#btnAction.interaction-bar .hud-action-icon {
  display: none !important;
}

#btnAction.interaction-bar .interaction-paw {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 0 rgba(76,38,20,.32));
}

#btnAction.interaction-bar .interaction-start-game {
  display: none;
}

#btnAction.interaction-bar .interaction-copy-v99 {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

#btnAction.interaction-bar .interaction-copy-v99 small {
  font-size: 8px;
  line-height: 1;
  letter-spacing: .15em;
  color: #75e5c2;
  font-weight: 700;
}

#btnAction.interaction-bar .interaction-label-v99 {
  display: block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
}

#btnAction.interaction-bar[data-action-kind="enter"] {
  border-color: rgba(228,173,84,.8);
}

#btnAction.interaction-bar[data-action-kind="extract"] {
  border-color: rgba(228,173,84,.8);
}

#btnAction.interaction-bar[data-action-kind="enter"] .interaction-glyph-v99 {
  color: #f1c568;
  border-color: rgba(241,197,104,.5);
  background: rgba(228,173,84,.13);
}

#btnAction.interaction-bar[data-action-kind="extract"] .interaction-glyph-v99 {
  color: #f1c568;
  border-color: rgba(241,197,104,.5);
  background: rgba(228,173,84,.13);
}

#btnAction.interaction-bar[data-action-kind="warehouse"] .interaction-glyph-v99 {
  font-size: 20px;
}

@media (max-height:500px) and (orientation:landscape) {
  #btnAction.interaction-bar:not(.hidden) {
    top: 45%;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    min-width: 128px;
    padding: 4px 13px 4px 6px;
    gap: 7px;
  }
}

@media (max-height:500px) and (orientation:landscape) {
  #btnAction.interaction-bar .interaction-glyph-v99 {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 19px;
  }
}

@media (max-height:500px) and (orientation:landscape) {
  #btnAction.interaction-bar .interaction-label-v99 {
    font-size: 13px;
  }
}

@media (max-height:500px) and (orientation:landscape) {
  #btnAction.interaction-bar .interaction-copy-v99 small {
    font-size: 7px;
  }
}

.pet-toast-v100 {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 500;
  transform: translate(-50%, 16px);
  min-width: 180px;
  padding: 10px 18px;
  border: 1px solid rgba(89, 222, 185, .72);
  border-radius: 999px;
  background: rgba(4, 17, 24, .92);
  color: #eafff9;
  font: 700 14px/1.2 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .32);
}

.pet-toast-v100.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.prebattle-shell-v98>header {
  height: 62px;
}

.prebattle-shell-v98>header button {
  width: 46px;
  height: 46px;
}

.prebattle-shell-v98>header strong {
  font-size: 23px;
}

.prep-console-v101 {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px,38%) minmax(220px,28%) minmax(300px,34%);
  gap: 12px;
  padding: 12px;
  background: radial-gradient(circle at 55% 40%,rgba(28,64,76,.34),transparent 35%),#071019;
}

.prep-gear-v101 {
  min-width: 0;
  border: 1px solid rgba(98,142,164,.32);
  background: rgba(8,22,32,.9);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prep-side-v101 {
  min-width: 0;
  border: 1px solid rgba(98,142,164,.32);
  background: rgba(8,22,32,.9);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prep-panel-title-v101 {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: end;
}

.prep-panel-title-v101 span {
  color: #58d4ad;
  font-size: 10px;
  letter-spacing: .16em;
}

.prep-panel-title-v101 strong {
  grid-column: 1;
  font-size: 22px;
}

.prep-panel-title-v101 em {
  grid-column: 2;
  font-style: normal;
  color: #8196a1;
  font-size: 10px;
  text-align: right;
}

.prep-slots-v101 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  min-height: 0;
}

.prep-slots-v101 article {
  display: grid;
  grid-template-columns: 48px 46px 1fr;
  align-items: center;
  min-height: 62px;
  padding: 6px;
  border: 1px solid rgba(105,151,176,.24);
  background: #091722;
}

.prep-slots-v101 article>span {
  color: #8498a4;
  font-size: 11px;
}

.prep-slots-v101 article>div {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #06121a;
}

.prep-slots-v101 img {
  max-width: 39px;
  max-height: 39px;
}

.prep-slots-v101 strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prep-supplies-v101 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
  margin-top: auto;
}

.prep-supplies-v101>strong {
  grid-column: 1/-1;
  font-size: 12px;
}

.prep-supplies-v101 span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: #0b1c27;
  border: 1px solid rgba(102,149,171,.2);
}

.prep-supplies-v101 img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.prep-supplies-v101 b {
  font-size: 10px;
  color: #b9c8cf;
}

.prep-character-v101 {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(90,149,168,.22);
  background: linear-gradient(180deg,rgba(7,17,25,.45),rgba(5,11,16,.96));
}

.prep-character-v101:after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 12%;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.62);
  filter: blur(9px);
}

.prep-character-v101>img {
  position: relative;
  z-index: 2;
  max-width: 94%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.55));
}

.prep-character-v101>div:last-child {
  position: absolute;
  z-index: 3;
  left: 14px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
}

.prep-character-v101 span {
  color: #58d4ad;
  font-size: 10px;
}

.prep-character-v101 strong {
  font-size: 25px;
}

.prep-character-v101 em {
  font-style: normal;
  color: #a8bbc4;
  font-size: 11px;
}

.prep-character-glow-v101 {
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(69,148,161,.24),transparent 65%);
}

.prep-map-compact-v101 {
  height: 112px;
  display: grid;
  grid-template-columns: 43% 1fr;
  overflow: hidden;
  border: 1px solid rgba(105,151,176,.28);
  background: #091923;
}

.prep-map-compact-v101 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72);
}

.prep-map-compact-v101>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.prep-map-compact-v101 span {
  font-size: 10px;
  color: #58d4ad;
}

.prep-map-compact-v101 strong {
  font-size: 18px;
  margin: 4px 0;
}

.prep-map-compact-v101 small {
  color: #90a3ad;
}

.prep-kit-tabs-v101 {
  display: flex;
  gap: 7px;
}

.prep-kit-tabs-v101 button {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(112,154,177,.32);
  background: #0a1b26;
  color: #9eafb8;
  font-weight: 800;
}

.prep-kit-tabs-v101 button.active {
  border-color: #58d4ad;
  background: #124e43;
  color: #e6fff7;
}

.prep-aim-v101 {
  display: grid;
  grid-template-columns: 1fr 48px 30px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(112,154,177,.3);
  background: #091923;
  color: #edf5f7;
  text-align: left;
}

.prep-aim-v101 span {
  display: flex;
  flex-direction: column;
}

.prep-aim-v101 small {
  color: #8399a4;
  margin-top: 2px;
}

.prep-aim-v101 i {
  height: 24px;
  border-radius: 99px;
  background: #2a3a43;
  position: relative;
}

.prep-aim-v101 i:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #a1adb2;
}

.prep-aim-v101.on i {
  background: #176b5a;
}

.prep-aim-v101.on i:after {
  left: 27px;
  background: #7aebc7;
}

.prep-aim-v101 b {
  text-align: center;
  color: #6fe6c0;
}

.prep-risk-v101 {
  padding: 9px 10px;
  background: rgba(91,67,23,.15);
  border: 1px solid rgba(213,174,81,.22);
}

.prep-risk-v101 span {
  color: #d8b759;
  font-size: 10px;
}

.prep-risk-v101 p {
  margin: 4px 0 0;
  color: #adb8bd;
  font-size: 10px;
  line-height: 1.4;
}

.prep-confirm-v101 {
  margin-top: auto;
  padding: 13px;
  border: 1px solid #58d4ad;
  background: #176b5a;
  color: white;
  font-weight: 900;
  font-size: 16px;
}

.prep-toast-v101 {
  position: fixed;
  left: 50%;
  bottom: 8%;
  transform: translate(-50%,20px);
  z-index: 500;
  padding: 12px 20px;
  border: 1px solid rgba(218,186,102,.65);
  background: rgba(18,19,21,.96);
  color: #f3dfaa;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: .18s;
}

.prep-toast-v101.show {
  opacity: 1;
  transform: translate(-50%,0);
}

@media (max-height:560px) {
  .prep-console-v101 {
    grid-template-columns: 38% 27% 35%;
    gap: 7px;
    padding: 7px;
  }
}

@media (max-height:560px) {
  .prep-gear-v101 {
    padding: 7px;
    gap: 6px;
  }
}

@media (max-height:560px) {
  .prep-side-v101 {
    padding: 7px;
    gap: 6px;
  }
}

@media (max-height:560px) {
  .prep-slots-v101 article {
    min-height: 49px;
    grid-template-columns: 38px 35px 1fr;
    padding: 3px;
  }
}

@media (max-height:560px) {
  .prep-slots-v101 article>div {
    width: 32px;
    height: 32px;
  }
}

@media (max-height:560px) {
  .prep-slots-v101 img {
    max-width: 30px;
    max-height: 30px;
  }
}

@media (max-height:560px) {
  .prep-map-compact-v101 {
    height: 78px;
  }
}

@media (max-height:560px) {
  .prep-risk-v101 {
    display: none;
  }
}

@media (max-height:560px) {
  .prep-confirm-v101 {
    padding: 9px;
  }
}

@media (max-height:560px) {
  .prep-character-v101 strong {
    font-size: 20px;
  }
}

@media (max-height:560px) {
  .prep-character-v101>img {
    max-height: 74%;
  }
}

.facility-overlay[data-facility-view="facility_deploy"] {
  padding: 8px;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-topbar {
  min-height: 46px;
  padding: 0 2px 6px;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-title-block strong {
  font-size: 22px;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-title-block i {
  font-size: 11px;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-header-meta {
  font-size: 11px;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-footer {
  display: none !important;
}

@media (max-height:640px) {
  .facility-overlay[data-facility-view="facility_deploy"] {
    padding: 5px;
  }
}

@media (max-height:640px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-topbar {
    min-height: 40px;
    padding-bottom: 4px;
  }
}

@media (max-height:640px) {
  .facility-overlay[data-facility-view="facility_deploy"] .close-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex-basis: 38px;
    font-size: 28px;
    line-height: 34px;
  }
}

@media (max-height:640px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-title-block strong {
    font-size: 19px;
  }
}

@media (max-height:640px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-title-block i {
    font-size: 9px;
  }
}

@media (max-width:900px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-title-block i {
    display: none;
  }
}

@media (max-width:900px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-header-meta span {
    display: none;
  }
}

.prep-console-v104 {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px,36%) minmax(190px,26%) minmax(300px,38%);
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%,rgba(40,101,109,.18),transparent 34%),#071019;
}

.prep-gear-v104 {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(96,143,164,.34);
  background: rgba(8,22,32,.94);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.prep-shop-v104 {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(96,143,164,.34);
  background: rgba(8,22,32,.94);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.prep-panel-title-v104 {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 7px;
  align-items: end;
  flex: 0 0 auto;
}

.prep-panel-title-v104 span {
  font-size: 9px;
  letter-spacing: .16em;
  color: #58d4ad;
}

.prep-shop-head-v104 span {
  font-size: 9px;
  letter-spacing: .16em;
  color: #58d4ad;
}

.prep-panel-title-v104 strong {
  grid-column: 1;
  font-size: 20px;
  line-height: 1.05;
}

.prep-panel-title-v104 em {
  grid-column: 2;
  font-style: normal;
  color: #8397a2;
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}

.prep-slots-v104 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px;
  flex: 1 1 auto;
  min-height: 0;
}

.prep-slots-v104 article {
  min-width: 0;
  min-height: 47px;
  display: grid;
  grid-template-columns: 38px 36px minmax(0,1fr);
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(105,151,176,.23);
  background: #091722;
}

.prep-slots-v104 article>span {
  font-size: 9px;
  color: #7f939e;
}

.prep-slots-v104 article>div {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #06121a;
}

.prep-slots-v104 article img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.prep-slots-v104 article strong {
  min-width: 0;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prep-supplies-v104 {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
  flex: 0 0 auto;
}

.prep-supplies-v104>strong {
  grid-column: 1/-1;
  font-size: 10px;
  color: #dce9ed;
}

.prep-supplies-v104 span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(101,149,171,.18);
  background: #0a1a24;
}

.prep-supplies-v104 img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.prep-supplies-v104 b {
  min-width: 0;
  font-size: 7px;
  color: #aebfc7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prep-mini-controls-v104 {
  display: grid;
  grid-template-columns: minmax(0,1fr) 112px;
  gap: 5px;
  flex: 0 0 auto;
}

.prep-kit-tabs-v104 {
  display: flex;
  gap: 4px;
}

.prep-kit-tabs-v104 button {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 5px;
  border: 1px solid rgba(112,154,177,.3);
  background: #0a1b26;
  color: #93a6af;
  font-size: 9px;
  font-weight: 800;
}

.prep-kit-tabs-v104 button.active {
  border-color: #58d4ad;
  background: #124e43;
  color: #effff9;
}

.prep-aim-v104 {
  height: 32px;
  display: grid;
  grid-template-columns: 1fr 31px 18px;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid rgba(112,154,177,.3);
  background: #091923;
  color: #eaf4f7;
  text-align: left;
}

.prep-aim-v104 span {
  font-size: 8px;
  white-space: nowrap;
}

.prep-aim-v104 i {
  position: relative;
  height: 17px;
  border-radius: 99px;
  background: #2b3a42;
}

.prep-aim-v104 i:after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #9aa7ad;
}

.prep-aim-v104.on i {
  background: #176b5a;
}

.prep-aim-v104.on i:after {
  left: 16px;
  background: #78e8c5;
}

.prep-aim-v104 b {
  font-size: 9px;
  color: #69dfba;
}

.prep-character-v104 {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(90,149,168,.24);
  background: transparent;
}

.prep-character-v104:before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 47px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  filter: blur(8px);
}

.prep-character-v104:after {
  content: "RUNNING PREVIEW";
  position: absolute;
  right: 8px;
  top: 7px;
  font-size: 7px;
  letter-spacing: .15em;
  color: rgba(89,215,180,.56);
}

.prep-character-stage-v104 {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.prep-character-stage-v104:before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(89,215,180,.35),transparent);
}

.prep-character-canvas-v104 {
  display: block;
  width: auto;
  height: min(100%,280px);
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  image-rendering: auto;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.5));
}

.prep-character-fallback-v104 {
  max-height: 82%;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.5));
}

.prep-character-meta-v104 {
  position: absolute;
  z-index: 3;
  left: 9px;
  bottom: 47px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.prep-character-meta-v104 span {
  font-size: 8px;
  color: #58d4ad;
}

.prep-character-meta-v104 strong {
  font-size: 18px;
  line-height: 1.05;
}

.prep-character-meta-v104 em {
  font-size: 8px;
  font-style: normal;
  color: #8fa3ad;
}

.prep-confirm-v104 {
  position: relative;
  z-index: 4;
  height: 39px;
  margin: 0 8px 8px;
  border: 1px solid #58d4ad;
  border-radius: 3px;
  background: #176b5a;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.prep-shop-head-v104 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex: 0 0 auto;
}

.prep-shop-head-v104>div {
  display: flex;
  flex-direction: column;
}

.prep-shop-head-v104 strong {
  font-size: 19px;
  line-height: 1.1;
}

.prep-shop-head-v104>b {
  font-size: 11px;
  color: #e5c76e;
}

.prep-shop-tabs-v104 {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.prep-shop-tabs-v104 button {
  flex: 1;
  height: 28px;
  border: 1px solid rgba(112,154,177,.3);
  background: #0a1b26;
  color: #8fa3ad;
  font-size: 10px;
  font-weight: 800;
}

.prep-shop-tabs-v104 button.active {
  border-color: #58d4ad;
  background: #124e43;
  color: #effff9;
}

.prep-shop-grid-v104 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-auto-rows: minmax(50px,1fr);
  gap: 5px;
  flex: 1 1 auto;
  min-height: 0;
}

.prep-shop-card-v104 {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  grid-template-rows: auto auto auto;
  column-gap: 6px;
  align-content: center;
  padding: 5px;
  border: 1px solid rgba(105,151,176,.2);
  background: #091722;
  color: #eaf2f5;
  text-align: left;
}

.prep-shop-card-v104>span {
  grid-column: 2;
  font-size: 7px;
  color: #7c919d;
}

.prep-shop-card-v104>div {
  grid-row: 1/4;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #06121a;
}

.prep-shop-card-v104 img {
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.prep-shop-card-v104 strong {
  grid-column: 2;
  min-width: 0;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prep-shop-card-v104 small {
  grid-column: 2;
  font-size: 8px;
  color: #d6b960;
}

.prep-shop-card-v104.selected {
  border-color: #58d4ad;
  box-shadow: inset 3px 0 0 #58d4ad;
  background: #0d2730;
}

.prep-shop-card-v104.equipped small {
  color: #68dfb8;
}

.prep-shop-detail-v104 {
  min-height: 48px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(108,151,170,.24);
  background: #0a1922;
  flex: 0 0 auto;
}

.prep-shop-detail-v104>div {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #06121a;
}

.prep-shop-detail-v104 img {
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}

.prep-shop-detail-v104>span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.prep-shop-detail-v104 small {
  font-size: 7px;
  color: #58d4ad;
}

.prep-shop-detail-v104 strong {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prep-shop-detail-v104 em {
  font-size: 7px;
  font-style: normal;
  color: #7f939d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prep-shop-detail-v104>b {
  font-size: 10px;
  color: #e2c46a;
  white-space: nowrap;
}

.prep-shop-buy-v104 {
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #d8b95d;
  background: #9b6d18;
  color: #fff6d7;
  font-size: 12px;
  font-weight: 900;
}

.prep-shop-buy-v104:disabled {
  border-color: #2a4c50;
  background: #122b31;
  color: #6f8c92;
}

.prep-map-strip-v104 {
  height: 38px;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 6px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(105,151,176,.18);
  background: #091722;
  flex: 0 0 auto;
}

.prep-map-strip-v104 img {
  width: 56px;
  height: 38px;
  object-fit: cover;
  filter: brightness(.72);
}

.prep-map-strip-v104 span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.prep-map-strip-v104 small {
  font-size: 7px;
  color: #58d4ad;
}

.prep-map-strip-v104 strong {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-height:520px) {
  .prebattle-shell-v98>header {
    height: 47px;
    padding: 0 8px;
  }
}

@media (max-height:520px) {
  .prebattle-shell-v98>header button {
    width: 36px;
    height: 36px;
    font-size: 29px;
  }
}

@media (max-height:520px) {
  .prebattle-shell-v98>header span {
    font-size: 8px;
  }
}

@media (max-height:520px) {
  .prebattle-shell-v98>header strong {
    font-size: 17px;
  }
}

@media (max-height:520px) {
  .prebattle-shell-v98>header>b {
    padding: 6px 9px;
    font-size: 9px;
  }
}

@media (max-height:520px) {
  .prep-console-v104 {
    grid-template-columns: minmax(230px,35%) minmax(150px,27%) minmax(245px,38%);
    gap: 4px;
    padding: 4px;
  }
}

@media (max-height:520px) {
  .prep-gear-v104 {
    padding: 5px;
    gap: 4px;
  }
}

@media (max-height:520px) {
  .prep-shop-v104 {
    padding: 5px;
    gap: 4px;
  }
}

@media (max-height:520px) {
  .prep-panel-title-v104 strong {
    font-size: 15px;
  }
}

@media (max-height:520px) {
  .prep-shop-head-v104 strong {
    font-size: 15px;
  }
}

@media (max-height:520px) {
  .prep-panel-title-v104 em {
    font-size: 7px;
  }
}

@media (max-height:520px) {
  .prep-slots-v104 {
    gap: 3px;
  }
}

@media (max-height:520px) {
  .prep-slots-v104 article {
    min-height: 38px;
    grid-template-columns: 30px 28px minmax(0,1fr);
    padding: 2px;
  }
}

@media (max-height:520px) {
  .prep-slots-v104 article>div {
    width: 26px;
    height: 26px;
  }
}

@media (max-height:520px) {
  .prep-slots-v104 article img {
    max-width: 24px;
    max-height: 24px;
  }
}

@media (max-height:520px) {
  .prep-slots-v104 article span {
    font-size: 7px;
  }
}

@media (max-height:520px) {
  .prep-slots-v104 article strong {
    font-size: 7px;
  }
}

@media (max-height:520px) {
  .prep-supplies-v104 {
    gap: 2px;
  }
}

@media (max-height:520px) {
  .prep-supplies-v104>strong {
    font-size: 8px;
  }
}

@media (max-height:520px) {
  .prep-supplies-v104 span {
    padding: 2px;
  }
}

@media (max-height:520px) {
  .prep-supplies-v104 img {
    width: 15px;
    height: 15px;
  }
}

@media (max-height:520px) {
  .prep-supplies-v104 b {
    font-size: 6px;
  }
}

@media (max-height:520px) {
  .prep-mini-controls-v104 {
    grid-template-columns: minmax(0,1fr) 92px;
    gap: 3px;
  }
}

@media (max-height:520px) {
  .prep-kit-tabs-v104 button {
    height: 27px;
    font-size: 7px;
  }
}

@media (max-height:520px) {
  .prep-aim-v104 {
    height: 27px;
    font-size: 7px;
  }
}

@media (max-height:520px) {
  .prep-aim-v104 {
    grid-template-columns: 1fr 25px 14px;
    padding: 0 4px;
  }
}

@media (max-height:520px) {
  .prep-aim-v104 span {
    font-size: 7px;
  }
}

@media (max-height:520px) {
  .prep-aim-v104 b {
    font-size: 7px;
  }
}

@media (max-height:520px) {
  .prep-aim-v104 i {
    height: 14px;
  }
}

@media (max-height:520px) {
  .prep-aim-v104 i:after {
    width: 10px;
    height: 10px;
  }
}

@media (max-height:520px) {
  .prep-aim-v104.on i:after {
    left: 13px;
  }
}

@media (max-height:520px) {
  .prep-character-meta-v104 {
    bottom: 40px;
  }
}

@media (max-height:520px) {
  .prep-character-meta-v104 strong {
    font-size: 14px;
  }
}

@media (max-height:520px) {
  .prep-confirm-v104 {
    height: 32px;
    margin: 0 5px 5px;
    font-size: 11px;
  }
}

@media (max-height:520px) {
  .prep-character-canvas-v104 {
    height: min(100%,220px);
  }
}

@media (max-height:520px) {
  .prep-character-v104:before {
    bottom: 40px;
  }
}

@media (max-height:520px) {
  .prep-shop-head-v104>b {
    font-size: 8px;
  }
}

@media (max-height:520px) {
  .prep-shop-tabs-v104 button {
    height: 24px;
    font-size: 8px;
  }
}

@media (max-height:520px) {
  .prep-shop-grid-v104 {
    gap: 3px;
    grid-auto-rows: minmax(39px,1fr);
  }
}

@media (max-height:520px) {
  .prep-shop-card-v104 {
    grid-template-columns: 27px minmax(0,1fr);
    column-gap: 4px;
    padding: 3px;
  }
}

@media (max-height:520px) {
  .prep-shop-card-v104>div {
    width: 25px;
    height: 25px;
  }
}

@media (max-height:520px) {
  .prep-shop-card-v104 img {
    max-width: 23px;
    max-height: 23px;
  }
}

@media (max-height:520px) {
  .prep-shop-card-v104 span {
    font-size: 6px;
  }
}

@media (max-height:520px) {
  .prep-shop-card-v104 strong {
    font-size: 6px;
  }
}

@media (max-height:520px) {
  .prep-shop-card-v104 small {
    font-size: 6px;
  }
}

@media (max-height:520px) {
  .prep-shop-detail-v104 {
    min-height: 39px;
    grid-template-columns: 32px minmax(0,1fr) auto;
    gap: 4px;
    padding: 3px;
  }
}

@media (max-height:520px) {
  .prep-shop-detail-v104>div {
    width: 30px;
    height: 30px;
  }
}

@media (max-height:520px) {
  .prep-shop-detail-v104 img {
    max-width: 28px;
    max-height: 28px;
  }
}

@media (max-height:520px) {
  .prep-shop-detail-v104 strong {
    font-size: 8px;
  }
}

@media (max-height:520px) {
  .prep-shop-detail-v104>b {
    font-size: 8px;
  }
}

@media (max-height:520px) {
  .prep-shop-detail-v104 small {
    font-size: 6px;
  }
}

@media (max-height:520px) {
  .prep-shop-detail-v104 em {
    font-size: 6px;
  }
}

@media (max-height:520px) {
  .prep-shop-buy-v104 {
    height: 28px;
    font-size: 9px;
  }
}

@media (max-height:520px) {
  .prep-map-strip-v104 {
    height: 29px;
    grid-template-columns: 42px minmax(0,1fr);
  }
}

@media (max-height:520px) {
  .prep-map-strip-v104 img {
    width: 42px;
    height: 29px;
  }
}

@media (max-height:520px) {
  .prep-map-strip-v104 small {
    font-size: 6px;
  }
}

@media (max-height:520px) {
  .prep-map-strip-v104 strong {
    font-size: 8px;
  }
}

@media (max-width:760px) {
  .prep-console-v104 {
    grid-template-columns: minmax(215px,34%) minmax(145px,27%) minmax(230px,39%);
  }
}

@media (max-width:760px) {
  .prep-panel-title-v104 em {
    display: none;
  }
}

@media (max-width:760px) {
  .prep-supplies-v104 b {
    font-size: 6px;
  }
}

@media (max-width:760px) {
  .prep-character-meta-v104 em {
    display: none;
  }
}

@media (max-width:760px) {
  .prep-shop-detail-v104 em {
    display: none;
  }
}

@media (max-width:760px) {
  .prep-map-strip-v104 {
    display: none;
  }
}

@media (max-width:760px) {
  .prep-shop-grid-v104 {
    grid-auto-rows: minmax(44px,1fr);
  }
}

#btnAction.interaction-bar:not(.hidden)[data-action-kind="search"] {
  display: flex !important;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 154px;
  min-width: 154px;
  max-width: 154px;
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

#btnAction.interaction-bar[data-action-kind="search"] .interaction-copy-v99 {
  order: 2;
  display: block !important;
  width: auto;
  max-width: 154px;
  min-height: 27px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(15,13,11,.82);
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
  text-align: center;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

#btnAction.interaction-bar[data-action-kind="search"] .interaction-copy-v99 small {
  display: none !important;
}

#btnAction.interaction-bar[data-action-kind="search"] .interaction-label-v99 {
  display: block !important;
  max-width: 132px;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#btnAction.interaction-bar[data-action-kind="search"] .interaction-glyph-v99 {
  order: 1;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: grid !important;
  place-items: center;
  border: 2px solid rgba(111,229,193,.78);
  border-radius: 50%;
  background: rgba(8,23,29,.78);
  box-shadow: 0 0 0 7px rgba(44,150,124,.12),0 7px 18px rgba(0,0,0,.35);
  color: #7ce7c6;
  font-size: 29px;
  font-family: Arial,sans-serif;
}

#btnAction.interaction-bar[data-action-kind="search"]:active .interaction-glyph-v99 {
  transform: scale(.94);
  background: rgba(24,102,83,.9);
}

body.layout-landscape-compact #quickbar {
  left: 36%;
  right: auto;
  top: auto;
  bottom: max(7px,env(safe-area-inset-bottom,0px));
  transform: translateX(-50%) scale(.84);
  transform-origin: 50% 100%;
  z-index: 200;
}

body.layout-landscape-compact #joystick {
  left: max(14px,env(safe-area-inset-left,0px));
  right: auto;
  top: auto;
  bottom: max(14px,env(safe-area-inset-bottom,0px));
  width: 116px;
  height: 116px;
  transform: none;
}

body.layout-landscape-compact #btnAttack {
  left: auto;
  right: max(17px,env(safe-area-inset-right,0px));
  top: auto;
  bottom: calc(max(16px,env(safe-area-inset-bottom,0px)) + 49px);
  width: 84px;
  height: 84px;
  transform: none;
  z-index: 200;
}

body.layout-landscape-compact #btnSwitchWeapon {
  left: auto;
  right: calc(max(18px,env(safe-area-inset-right,0px)) + 94px);
  top: auto;
  bottom: max(13px,env(safe-area-inset-bottom,0px));
  width: 54px;
  height: 54px;
  transform: none;
  z-index: 300;
}

body.layout-landscape-compact #operatorSkillBar {
  left: auto;
  right: calc(max(18px,env(safe-area-inset-right,0px)) + 99px);
  top: auto;
  bottom: calc(max(14px,env(safe-area-inset-bottom,0px)) + 72px);
  width: 150px;
  height: 46px;
  transform: none;
  z-index: 200;
}

body.layout-landscape-compact #operatorSkillBar .operator-skill-btn {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
}

body.layout-landscape-compact #operatorSkillBar #btnOperatorSkill1 {
  left: 0;
}

body.layout-landscape-compact #operatorSkillBar #btnOperatorSkill2 {
  left: 52px;
}

body.layout-landscape-compact #operatorSkillBar #btnOperatorUltimate {
  left: 104px;
}

body.layout-landscape-compact #btnAction.interaction-bar:not(.hidden) {
  left: auto;
  right: max(18px,env(safe-area-inset-right,0px));
  top: 37%;
  bottom: auto;
  transform: translateY(-50%);
}

body.layout-landscape-compact #btnAction.interaction-bar:not(.hidden)[data-action-kind="search"] {
  left: auto;
  right: calc(max(18px,env(safe-area-inset-right,0px)) + 103px);
  top: auto;
  bottom: calc(max(14px,env(safe-area-inset-bottom,0px)) + 132px);
  transform: none;
  z-index: 200;
}

body.cap-legacy-layout.layout-landscape-compact #quickbar {
  left: 34%;
  transform: translateX(-50%) scale(.72);
}

body.cap-legacy-layout.layout-landscape-compact #joystick {
  width: 102px;
  height: 102px;
}

body.cap-legacy-layout.layout-landscape-compact #btnAttack {
  width: 76px;
  height: 76px;
  bottom: calc(max(12px,env(safe-area-inset-bottom,0px)) + 44px);
}

body.cap-legacy-layout.layout-landscape-compact #btnSwitchWeapon {
  right: calc(max(14px,env(safe-area-inset-right,0px)) + 83px);
  width: 48px;
  height: 48px;
}

body.cap-legacy-layout.layout-landscape-compact #operatorSkillBar {
  right: calc(max(14px,env(safe-area-inset-right,0px)) + 86px);
  bottom: calc(max(12px,env(safe-area-inset-bottom,0px)) + 66px);
  width: 138px;
  height: 44px;
}

body.cap-legacy-layout.layout-landscape-compact #operatorSkillBar .operator-skill-btn {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
}

body.cap-legacy-layout.layout-landscape-compact #operatorSkillBar #btnOperatorSkill2 {
  left: 47px;
}

body.cap-legacy-layout.layout-landscape-compact #operatorSkillBar #btnOperatorUltimate {
  left: 94px;
}

body.cap-legacy-layout.layout-landscape-compact #btnAction.interaction-bar:not(.hidden)[data-action-kind="search"] {
  right: calc(max(12px,env(safe-area-inset-right,0px)) + 80px);
  bottom: calc(max(10px,env(safe-area-inset-bottom,0px)) + 130px);
  transform: scale(.9);
  transform-origin: 100% 100%;
}

@media (prefers-reduced-motion:reduce) {
  #btnAction.interaction-bar[data-action-kind="search"] .interaction-glyph-v99 {
    transition: none;
  }
}

body.cap-touch #legacyHudRoot {
  contain: layout style;
  will-change: auto;
}

body.cap-touch #joystick {
  transition: none;
  animation: none;
}

body.cap-touch #btnAttack {
  transition: none;
  animation: none;
}

body.cap-touch #btnSwitchWeapon {
  transition: none;
  animation: none;
}

body.cap-touch #btnAction {
  transition: none;
  animation: none;
}

body.cap-touch #operatorSkillBar {
  transition: none;
  animation: none;
}

body.cap-touch #quickbar {
  transition: none;
  animation: none;
}

body.cap-touch #btnAction.interaction-bar:not(.hidden)[data-action-kind="search"] {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 142px;
  min-width: 142px;
  max-width: 142px;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.cap-touch #btnAction[data-action-kind="search"] .interaction-copy-v99 {
  order: 1;
  display: block !important;
  max-width: 142px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

body.cap-touch #btnAction[data-action-kind="search"] .interaction-copy-v99 small {
  display: none !important;
}

body.cap-touch #btnAction[data-action-kind="search"] .interaction-label-v99 {
  display: -webkit-box !important;
  max-width: 122px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  color: #f2f8f7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

body.cap-touch #btnAction[data-action-kind="search"] .interaction-glyph-v99 {
  order: 2;
  display: grid !important;
  place-items: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  margin-top: 6px;
  border: 2px solid #72e2c0;
  border-radius: 50%;
  background: rgba(6,28,34,.94);
  box-shadow: 0 0 0 6px rgba(54,171,139,.13),0 6px 15px rgba(0,0,0,.34);
  color: #83edcc;
  font-size: 27px;
}

body.inventory-runtime-active #bagOverlay .panel-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.inventory-runtime-active #bagOverlay .grid {
  grid-column-gap: 3px;
  grid-row-gap: 3px;
}

body.inventory-runtime-active #bagOverlay .item-name {
  left: 5px;
  right: 4px;
  top: 4px;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 750;
  white-space: normal;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

body.inventory-runtime-active > .item.drag-ghost .item-name {
  left: 5px;
  right: 4px;
  top: 4px;
  font-size: 10px;
  line-height: 1.12;
  font-weight: 750;
  white-space: normal;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

body.inventory-runtime-active #bagOverlay .item.item-square .item-name {
  font-size: 9px;
  -webkit-line-clamp: 1;
  white-space: nowrap;
}

body.inventory-runtime-active #bagOverlay .item-value {
  font-size: 9px;
  bottom: 4px;
}

body.inventory-runtime-active #bagOverlay .item-size {
  font-size: 8px;
  bottom: 4px;
}

body.inventory-runtime-active #bagOverlay .item-art-img {
  left: 8%;
  top: 23%;
  width: 84%;
  height: 57%;
  object-fit: contain;
}

body.inventory-runtime-active #bagOverlay .item.w2 .item-art-img {
  left: 5%;
  width: 90%;
}

body.inventory-runtime-active #bagOverlay .item.asset-missing .item-art-img {
  display: none !important;
}

body.inventory-runtime-active #bagOverlay .item.asset-missing::after {
  content: "图片待修复";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 38%;
  z-index: 3;
  color: #8ea1aa;
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
}

body.inventory-runtime-active #bagOverlay .tactical-footer {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
}

body.inventory-runtime-active #bagOverlay #btnFooterClose {
  order: 4;
  min-width: 150px;
  height: 46px;
  border: 1px solid #61dfbc;
  background: linear-gradient(180deg,#1d8b70,#12634f);
  color: #f0fff9;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(98,225,188,.12),0 7px 18px rgba(0,0,0,.24);
}

body.inventory-runtime-active #bagOverlay #btnFooterClose::before {
  content: "‹";
  margin-right: 7px;
  font-size: 23px;
  vertical-align: -2px;
}

body.inventory-runtime-active #bagOverlay #btnSortInventory {
  order: 3;
  min-width: 100px;
  height: 42px;
  background: #0d202b;
  color: #b9c8ce;
  border: 1px solid #49606b;
}

body.inventory-runtime-active #bagOverlay .footer-hint {
  display: none !important;
}

body.inventory-runtime-active #bagOverlay .capacity-readout {
  margin-right: auto;
}

@media (max-height:430px) and (orientation:landscape) {
  body.inventory-runtime-active #bagOverlay.overlay {
    padding-top: 48px;
    padding-bottom: 50px;
  }
}

@media (max-height:430px) and (orientation:landscape) {
  body.inventory-runtime-active #bagOverlay .panel-heading {
    min-height: 46px;
    height: 46px;
    padding: 5px 10px;
  }
}

@media (max-height:430px) and (orientation:landscape) {
  body.inventory-runtime-active #bagOverlay .bag-panel h2 {
    font-size: 16px;
  }
}

@media (max-height:430px) and (orientation:landscape) {
  body.inventory-runtime-active #bagOverlay .section-strip {
    height: 27px;
    margin-bottom: 5px;
  }
}

@media (max-height:430px) and (orientation:landscape) {
  body.inventory-runtime-active #bagOverlay .tactical-footer {
    height: 50px;
  }
}

@media (max-height:430px) and (orientation:landscape) {
  body.inventory-runtime-active #bagOverlay #btnFooterClose {
    height: 44px;
    min-width: 136px;
  }
}

body.hud-runtime-active #legacyHudRoot {
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  width: 100vw;
  height: 100vh;
}

body.hud-runtime-active #joystick {
  max-width: none;
  max-height: none;
  clip-path: none;
  -webkit-clip-path: none;
}

body.hud-runtime-active #btnAttack {
  max-width: none;
  max-height: none;
  clip-path: none;
  -webkit-clip-path: none;
}

body.hud-runtime-active #btnSwitchWeapon {
  max-width: none;
  max-height: none;
  clip-path: none;
  -webkit-clip-path: none;
}

body.hud-runtime-active #btnAction {
  max-width: none;
  max-height: none;
  clip-path: none;
  -webkit-clip-path: none;
}

body.hud-runtime-active #operatorSkillBar {
  max-width: none;
  max-height: none;
  clip-path: none;
  -webkit-clip-path: none;
}

body.hud-runtime-active #quickbar {
  max-width: none;
  max-height: none;
  clip-path: none;
  -webkit-clip-path: none;
}

body.tactical-map-ui-open #legacyHudRoot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tactical-map-ui-open #joystick {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tactical-map-ui-open #btnAttack {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tactical-map-ui-open #btnSwitchWeapon {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tactical-map-ui-open #btnAction {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tactical-map-ui-open #operatorSkillBar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tactical-map-ui-open #quickbar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tactical-map-ui-open #btnTacticalMap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.facility-pass-body .facility-pass-thumb img {
  display: block !important;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 90%;
  margin: auto;
  object-fit: contain;
}

.facility-pass-body .facility-tier[data-pass-tier="2"] .facility-pass-thumb {
  background: radial-gradient(circle, rgba(119, 82, 52, .30), rgba(7, 12, 18, .18) 70%);
}

body[data-modal="warehouse"] #bagOverlay .tactical-rail {
  display: none !important;
}

body[data-modal="warehouse"] #bagOverlay.overlay {
  padding-left: calc(var(--safe-left) + 10px);
}

body[data-modal="warehouse"] #bagOverlay .inventory-shell {
  width: 100%;
  max-width: 100%;
}

body[data-modal="warehouse"] #bagOverlay .tactical-title-block {
  padding-left: calc(var(--safe-left) + 64px);
}

#result.result-success .result-summary {
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  min-height: 0;
}

#result.result-success .result-metric-stack {
  position: relative;
  z-index: 1;
  min-height: 82px;
}

#result.result-success .result-metric {
  min-height: 76px;
  box-sizing: border-box;
  overflow: hidden;
}

#result.result-success .result-metric span {
  margin-bottom: 3px;
}

#result.result-success .result-loot-section {
  position: relative;
  z-index: 3;
  clear: both;
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(7, 20, 28, .96), rgba(7, 20, 28, .72) 42%, transparent);
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-success-panel {
    min-height: 176px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-metric-stack {
    min-height: 66px;
    height: 66px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-metric {
    min-height: 62px;
    height: 62px;
    padding: 7px 10px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-metric-value strong {
    font-size: 31px;
    line-height: .98;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-metric:not(.result-metric-value) strong {
    font-size: 23px;
    line-height: 1;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-loot-section {
    margin-top: 12px;
    padding-top: 8px;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  body[data-modal="warehouse"] #bagOverlay.overlay {
    padding-left: calc(var(--safe-left) + 6px);
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  #result.result-success .result-shell {
    padding-top: 10px;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  #result.result-success .result-header {
    min-height: 64px;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  #result.result-success .result-success-panel {
    min-height: 158px;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  #result.result-success .result-context-grid > div {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  #result.result-success .result-operator-card {
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: minmax(0, 1fr) 52px;
    grid-template-rows: minmax(0, 1fr) 52px;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }

  #result.result-success .result-operator-frame {
    -ms-grid-row: 1;
    height: auto;
    min-height: 0;
    padding-top: 4px;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  #result.result-success .result-operator-copy {
    -ms-grid-row: 2;
    min-height: 0;
    height: 52px;
    padding: 5px 10px 6px;
    overflow: hidden;
  }

  #result.result-success .result-operator-copy span {
    font-size: 9px;
    line-height: 12px;
  }

  #result.result-success .result-operator-copy strong {
    margin-top: 1px;
    font-size: 18px;
    line-height: 22px;
  }
}

.facility-pass-body .facility-pass-thumb[data-image-fallback]::before {
  content: attr(data-image-fallback);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(225,236,239,.76);
  font-size: 12px;
  font-weight: 800;
}

body[data-modal="warehouse"] #bagOverlay .tactical-footer {
  left: calc(var(--safe-left) + 10px);
}

@media (orientation:landscape) and (max-height:450px) {
  .facility-overlay[data-facility-view="facility_deploy"] {
    padding: 3px;
  }
}

@media (orientation:landscape) and (max-height:450px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-topbar {
    min-height: 38px;
    height: 38px;
    padding: 0 2px 3px;
  }
}

@media (orientation:landscape) and (max-height:450px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-title-block strong {
    font-size: 17px;
    line-height: 1;
  }
}

@media (orientation:landscape) and (max-height:450px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-title-block i {
    display: none !important;
  }
}

body.cap-touch #legacyHudRoot {
  overflow: visible;
}

body.cap-touch #joystick {
  box-sizing: border-box;
}

body.cap-touch #btnAttack {
  box-sizing: border-box;
}

body.cap-touch #btnSwitchWeapon {
  box-sizing: border-box;
}

body.cap-touch #operatorSkillBar {
  box-sizing: border-box;
}

body.cap-touch #quickbar {
  box-sizing: border-box;
}

body.hud-runtime-active #btnAttack .attack-weapon-label {
  pointer-events: none !important;
}

@media (orientation:landscape) and (max-height:430px) {
  body.hud-runtime-active #btnAttack .attack-weapon-label {
    top: calc(100% + 2px);
  }
}

@media (orientation:landscape) and (max-height:430px) {
  body.hud-runtime-active #btnSwitchWeapon .reload-caption {
    top: calc(100% + 2px);
  }
}

@media (orientation:landscape) and (max-height:430px) {
  body.hud-runtime-active .operator-skill-btn .operator-skill-name {
    top: calc(100% + 2px);
  }
}

body.hud-runtime-active #legacyHudRoot {
  position: fixed;
  inset: 0 auto auto 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  contain: none;
  isolation: isolate;
  transform: none;
  pointer-events: none !important;
  z-index: 200;
}

body.hud-runtime-active #legacyHudRoot > * {
  box-sizing: border-box;
  transition: none;
  animation: none;
  max-width: none;
  max-height: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

body.hud-runtime-active #joystick {
  border: 1px solid rgba(211,228,235,.16);
  background: radial-gradient(circle,rgba(36,53,62,.28),rgba(5,12,17,.38));
  box-shadow: inset 0 0 0 8px rgba(5,11,15,.12),0 6px 20px rgba(0,0,0,.18);
}

body.hud-runtime-active #joystick > i {
  background: rgba(218,232,237,.60);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 3px 14px rgba(0,0,0,.28);
}

body.hud-runtime-active #btnAttack {
  border: 1px solid rgba(203,221,228,.22);
}

body.hud-runtime-active #btnSwitchWeapon {
  border: 1px solid rgba(203,221,228,.22);
  background: rgba(8,18,24,.64);
}

body.hud-runtime-active .operator-skill-btn {
  border: 1px solid rgba(203,221,228,.22);
  background: rgba(8,18,24,.64);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.26);
}

#facilityOverlay[data-facility-view="facility_shop"] [data-shop-mode="sell"] {
  display: none !important;
}

.facility-resale-body-v134 {
  overflow: hidden;
  padding: 10px;
  background:
    linear-gradient(rgba(8, 10, 14, .7), rgba(8, 10, 14, .82)),
    url("../assets/scenes/lobby/background/background.webp") center / cover no-repeat;
}

.resale-shell-v134 {
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(360px, 1.35fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.resale-panel-v134 {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(20, 24, 30, .94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.resale-panel-head-v134 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(62, 66, 76, .88);
}

.resale-panel-head-v134 strong {
  color: #fff;
  font-size: 20px;
}

.resale-panel-head-v134 span {
  color: #f6c544;
  font-size: 12px;
  font-weight: 900;
}

.resale-grid-v134 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(92px, 1fr);
  gap: 6px;
  min-height: 0;
  padding: 8px;
  overflow: auto;
}

.resale-carried-layout-v135 {
  display: grid;
  grid-template-rows: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 0;
  height: 100%;
}

.resale-carried-section-v135 {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.resale-carried-section-v135:last-child {
  border-bottom: 0;
}

.resale-subhead-v135 {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 5px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(35, 40, 48, .94);
}

.resale-subhead-v135 strong {
  color: #eef4f7;
  font-size: 13px;
}

.resale-subhead-v135 span {
  color: rgba(232, 239, 242, .68);
  font-size: 10px;
  font-weight: 800;
}

.resale-equipment-grid-v135 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(76px, 1fr);
}

.resale-bag-grid-v135 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--resale-bag-columns, 5), minmax(0, 1fr));
  grid-template-rows: repeat(var(--resale-bag-rows, 1), minmax(42px, 1fr));
  gap: 4px;
  min-height: 0;
  padding: 7px;
  overflow: auto;
  background: rgba(8, 14, 20, .72);
}

.resale-bag-slot-v135 {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(113, 140, 152, .28);
  background: rgba(17, 28, 36, .74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .018);
}

.resale-bag-item-v135 {
  z-index: 2;
  min-height: 0;
  overflow: hidden;
}

.resale-bag-item-v135 img {
  max-height: 48px;
}

.resale-empty-compact-v135 {
  min-height: 62px;
}

.resale-item-v134 {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 92px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(12, 20, 27, .92);
  color: #e9eff3;
  text-align: center;
}

button.resale-item-v134 {
  appearance: none;
  cursor: pointer;
}

button.resale-item-v134.selected {
  border-color: #ffd750;
  box-shadow: inset 0 0 0 2px rgba(255, 215, 80, .36);
  background: rgba(78, 58, 20, .92);
}

.resale-item-v134 img {
  width: 100%;
  height: 100%;
  max-height: 62px;
  object-fit: contain;
}

.resale-item-v134 b {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resale-item-v134 em {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .76);
  color: #ffd750;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.resale-item-v134.selected::before {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffd750;
  color: #24180b;
  font-size: 13px;
  font-weight: 1000;
}

.resale-actions-v134 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(31, 35, 42, .96);
}

.resale-actions-v134 button {
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: #46505d;
  color: #fff;
  font-weight: 900;
}

.resale-actions-v134 button[data-resale-batch-sell] {
  border-color: #ffe15d;
  background: #f0c52e;
  color: #24190b;
}

.resale-actions-v134 button:disabled {
  opacity: .45;
}

.resale-empty-v134 {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 110px;
  color: rgba(225, 233, 238, .58);
  font-size: 13px;
}

@media (max-height: 520px) and (orientation: landscape) {
  .facility-resale-body-v134 {
    padding: 6px;
  }

  .resale-shell-v134 {
    grid-template-columns: minmax(220px, .82fr) minmax(330px, 1.38fr);
    gap: 7px;
  }

  .resale-panel-head-v134 {
    min-height: 34px;
    padding: 4px 8px;
  }

  .resale-panel-head-v134 strong {
    font-size: 15px;
  }

  .resale-grid-v134 {
    grid-auto-rows: 76px;
    padding: 5px;
    gap: 4px;
  }

  .resale-carried-layout-v135 {
    grid-template-rows: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .resale-subhead-v135 {
    min-height: 25px;
    padding: 3px 6px;
  }

  .resale-subhead-v135 strong {
    font-size: 11px;
  }

  .resale-subhead-v135 span {
    font-size: 8px;
  }

  .resale-equipment-grid-v135 {
    grid-auto-rows: 66px;
  }

  .resale-bag-grid-v135 {
    grid-template-rows: repeat(var(--resale-bag-rows, 1), 34px);
    gap: 3px;
    padding: 4px;
  }

  .resale-bag-slot-v135 {
    min-height: 34px;
  }

  .resale-bag-item-v135 img {
    max-height: 34px;
  }

  .resale-item-v134 {
    min-height: 74px;
    padding: 4px;
  }

  .resale-item-v134 img {
    max-height: 48px;
  }

  .resale-actions-v134 {
    padding: 5px;
  }

  .resale-actions-v134 button {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 11px;
  }
}


/* 1.3.0 equipment market owner */
.market-body-v130 { position:relative; padding:0; overflow:hidden; background:#252832; }
.market-shell-v130 { display:flex; width:100%; height:100%; min-width:0; min-height:0; background:linear-gradient(140deg,#3b3e47,#1e2129); }
.market-sidebar-v130 { flex:0 0 190px; width:190px; padding:22px 12px; box-sizing:border-box; background:rgba(25,27,34,.94); border-right:3px solid rgba(0,0,0,.5); overflow:auto; }
.market-sidebar-v130>strong { display:block; margin:0 10px 16px; color:#d4d7dc; font-size:15px; letter-spacing:.12em; }
.market-sidebar-v130 nav { display:block; }
.market-sidebar-v130 nav button { display:flex; align-items:center; width:100%; min-height:58px; margin:0 0 5px; padding:0 12px; border:0; border-left:5px solid transparent; background:transparent; color:#b9bcc2; text-align:left; font-size:20px; font-weight:900; touch-action:manipulation; }
.market-sidebar-v130 nav button b { flex:0 0 36px; color:#d8dadd; font-size:23px; text-align:center; }
.market-sidebar-v130 nav button span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.market-sidebar-v130 nav button.active { border-left-color:#151515; background:linear-gradient(105deg,#ffe033,#f5c622); color:#161616; }
.market-sidebar-v130 nav button.active b { color:#111; }
.market-main-v130 { flex:1 1 auto; min-width:0; min-height:0; padding:10px 12px 18px; overflow:auto; -webkit-overflow-scrolling:touch; box-sizing:border-box; }
.market-toolbar-v130 { position:sticky; top:0; z-index:3; display:flex; align-items:center; min-height:54px; padding:4px 4px 10px; background:linear-gradient(180deg,rgba(36,39,48,.98) 80%,rgba(36,39,48,0)); }
.market-toolbar-v130>div { flex:1 1 auto; min-width:0; }
.market-toolbar-v130>div span { display:block; color:#a9acb5; font-size:10px; letter-spacing:.22em; }
.market-toolbar-v130>div strong { display:block; color:#fff; font-size:24px; line-height:28px; }
.market-toolbar-v130 label { display:flex; align-items:center; width:min(32vw,330px); height:38px; margin:0 12px; border:2px solid rgba(255,255,255,.22); background:rgba(9,10,14,.55); }
.market-toolbar-v130 label span { flex:0 0 36px; text-align:center; }
.market-toolbar-v130 input { flex:1 1 auto; min-width:0; height:34px; border:0; outline:0; background:transparent; color:#fff; }
.market-toolbar-v130>b { color:#e7e9ed; white-space:nowrap; }
.market-grid-v130 { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; min-width:0; padding:0 3px 12px; }
.market-card-v130 { position:relative; display:flex; flex-direction:column; min-width:0; height:246px; padding:0; overflow:hidden; border:3px solid #111; background:#3ccb61; color:#111; text-align:left; box-shadow:0 2px 0 rgba(255,255,255,.15) inset,0 3px 7px rgba(0,0,0,.35); touch-action:manipulation; }
.market-card-v130 h3 { position:relative; z-index:2; min-height:42px; margin:0; padding:6px 8px 0; overflow:hidden; color:#fff; font-size:18px; line-height:19px; font-weight:950; text-align:center; text-shadow:-2px -2px 0 #111,2px -2px 0 #111,-2px 2px 0 #111,2px 2px 0 #111; }
.market-card-art-v130 { flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; padding:3px 8px; background:radial-gradient(circle,rgba(255,255,255,.25),rgba(255,255,255,0) 65%); }
.market-card-art-v130 img { display:block; max-width:95%; max-height:100%; object-fit:contain; filter:drop-shadow(0 5px 3px rgba(0,0,0,.36)); }
.market-card-stat-v130 { min-height:28px; padding:2px 8px 5px; color:#fff; font-size:15px; font-weight:950; text-align:center; text-shadow:1px 1px 0 #111,-1px -1px 0 #111; }
.market-card-price-v130 { display:flex; align-items:center; justify-content:center; min-height:47px; background:#f7f7f7; border-top:2px solid rgba(0,0,0,.4); color:#111; transform:skewY(-1.5deg); transform-origin:left top; }
.market-card-price-v130>* { transform:skewY(1.5deg); }
.market-card-price-v130 i { margin-right:8px; color:#1bd747; font-style:normal; font-size:24px; text-shadow:1px 1px 0 #0a5b22; }
.market-card-price-v130 strong { font-size:24px; }
.market-card-v130.tier-t0,.market-card-v130.rarity-legendary { background:linear-gradient(145deg,#ff594a,#e83936); }
.market-card-v130.tier-t1,.market-card-v130.rarity-epic { background:linear-gradient(145deg,#ff9b3d,#eb6e2e); }
.market-card-v130.tier-t2,.market-card-v130.rarity-rare { background:linear-gradient(145deg,#a34cf1,#7930d8); }
.market-card-v130.tier-t3,.market-card-v130.rarity-uncommon { background:linear-gradient(145deg,#3c88f1,#2363cf); }
.market-card-v130.rarity-normal { background:linear-gradient(145deg,#46dc68,#24b84f); }
.market-card-v130:active { transform:scale(.985); }
.market-empty-v130 { grid-column:1/-1; min-height:200px; }
.market-load-more-v130 { display:block; width:260px; min-height:42px; margin:0 auto; }
.market-detail-v130 { position:absolute; inset:0; z-index:12; display:flex; align-items:center; justify-content:center; padding:22px; background:rgba(7,8,11,.78); box-sizing:border-box; }
.market-detail-card-v130 { position:relative; display:grid; grid-template-columns:minmax(220px,.9fr) minmax(260px,1.1fr); width:min(760px,92%); max-height:88%; overflow:auto; border:4px solid #111; background:#2d313a; box-shadow:0 22px 70px rgba(0,0,0,.65); }
.market-detail-close-v130 { position:absolute; right:10px; top:8px; z-index:2; width:42px; height:42px; border:2px solid #111; border-radius:50%; background:#f65b66; color:#111; font-size:29px; font-weight:900; }
.market-detail-art-v130 { display:flex; align-items:center; justify-content:center; min-height:280px; padding:22px; background:radial-gradient(circle,rgba(255,224,51,.3),rgba(0,0,0,.15)); }
.market-detail-art-v130 img { max-width:100%; max-height:260px; object-fit:contain; }
.market-detail-copy-v130 { display:flex; flex-direction:column; justify-content:center; min-width:0; padding:34px 34px 28px; color:#fff; }
.market-detail-copy-v130>span { color:#ffe033; font-weight:900; letter-spacing:.12em; }
.market-detail-copy-v130 h2 { margin:8px 0; font-size:34px; line-height:1.08; }
.market-detail-copy-v130 p { margin:0 0 18px; color:#c9cbd1; }
.market-detail-copy-v130>div { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; padding:12px 14px; background:#f4f4f4; color:#111; }
.market-detail-copy-v130>div small { font-weight:900; }
.market-detail-copy-v130>div strong { font-size:24px; }
.market-detail-copy-v130>button { min-height:52px; border:3px solid #111; background:#ffe033; color:#111; font-size:22px; font-weight:950; }
@media (max-width:1180px) { .market-grid-v130 { grid-template-columns:repeat(4,minmax(0,1fr)); } .market-card-v130 { height:226px; } }
@media (max-width:900px) { .market-sidebar-v130 { flex-basis:142px; width:142px; padding:10px 6px; } .market-sidebar-v130 nav button { min-height:45px; font-size:15px; } .market-sidebar-v130 nav button b { flex-basis:28px; font-size:18px; } .market-grid-v130 { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; } .market-card-v130 { height:190px; border-width:2px; } .market-card-v130 h3 { min-height:32px; font-size:13px; line-height:15px; } .market-card-stat-v130 { min-height:20px; font-size:11px; } .market-card-price-v130 { min-height:36px; } .market-card-price-v130 strong { font-size:17px; } .market-toolbar-v130 label { display:none; } }
@media (max-height:430px) and (orientation:landscape) { .market-sidebar-v130>strong { display:none; } .market-card-v130 { height:174px; } .market-card-art-v130 { padding:0 5px; } .market-toolbar-v130 { min-height:38px; padding-bottom:4px; } .market-toolbar-v130>div span { display:none; } .market-toolbar-v130>div strong { font-size:18px; line-height:22px; } .market-detail-card-v130 { grid-template-columns:190px 1fr; } .market-detail-art-v130 { min-height:210px; padding:12px; } .market-detail-copy-v130 { padding:18px 24px; } .market-detail-copy-v130 h2 { font-size:26px; } }

body.hud-runtime-active #btnAttack {
  border-radius: 50%;
  background: radial-gradient(circle at 42% 35%,rgba(60,78,87,.55),rgba(8,16,22,.72));
}

body.hud-runtime-active #btnAttack .attack-weapon-label {
  display: none !important;
}

body.hud-runtime-active #btnSwitchWeapon {
  border-width: 1px;
  border-radius: 50%;
  font-size: 0;
}

body.hud-runtime-active #btnSwitchWeapon .reload-caption {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  width: 54px;
  height: 12px;
  transform: translateX(-50%);
  color: rgba(230,239,242,.88);
  font-size: 9px;
  line-height: 12px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none !important;
}

body.hud-runtime-active #operatorSkillBar {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  overflow: visible;
  background: transparent;
  pointer-events: none !important;
}

body.hud-runtime-active #operatorSkillBar .operator-skill-btn {
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  pointer-events: auto !important;
}

body.hud-runtime-active #operatorSkillBar .operator-skill-name {
  display: none !important;
}

body.hud-runtime-active #operatorSkillBar .operator-skill-key {
  display: none !important;
}

body.hud-runtime-active #operatorSkillBar .operator-skill-glyph {
  font-size: 18px;
}

body.hud-runtime-active #quickbar {
  display: block !important;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  pointer-events: auto !important;
  will-change: auto;
}

body.hud-runtime-active #quickbar::before {
  display: none !important;
}

body.hud-runtime-active #quickbar::after {
  display: none !important;
}

body.hud-runtime-active #quickbar > * {
  box-sizing: border-box;
  margin: 0;
  border-radius: 7px;
  clip-path: none;
  -webkit-clip-path: none;
}

body.hud-runtime-active #quickbar #btnHeal.medical-round {
  border-radius: 50%;
  overflow: visible;
}

body.hud-runtime-active #quickbar .gear-status {
  overflow: hidden;
  border-radius: 7px;
}

body.hud-runtime-active #quickbar .gear-slot {
  height: 50%;
  min-height: 0;
}

body.hud-runtime-active #quickbar .gear-art {
  left: 12px;
  top: 1px;
  right: 2px;
  bottom: 2px;
}

body.hud-runtime-active #quickbar .gear-kind {
  font-size: 7px;
  line-height: 8px;
}

body.hud-runtime-active #quickbar .gear-broken-label {
  font-size: 7px;
  line-height: 8px;
}

body.hud-runtime-active #quickbar .weapon-slot {
  display: grid !important;
  grid-template-rows: 12px 1fr;
  padding: 2px 5px 3px;
  overflow: hidden;
}

body.hud-runtime-active #quickbar .weapon-slot .slot-num {
  font-size: 9px;
  line-height: 11px;
}

body.hud-runtime-active #quickbar .weapon-slot .slot-art-img {
  width: 92%;
  height: 30px;
  object-fit: contain;
}

body.hud-runtime-active #quickbar .weapon-slot .weapon-ammo {
  right: 4px;
  bottom: 2px;
  font-size: 8px;
  line-height: 10px;
}

body.hud-runtime-active:not([data-map="lobby"]) #quickbar #btnBag.floating-bag {
  position: absolute;
  border-radius: 7px;
  overflow: hidden;
}

body.hud-runtime-active:not([data-map="lobby"]) #quickbar #btnBag .hud-key {
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  width: auto;
  color: rgba(225,236,240,.72);
  font-size: 8px;
  line-height: 9px;
  text-align: center;
}

body.hud-runtime-active:not([data-map="lobby"]) #quickbar #btnBag .quickbar-svg {
  width: 58px;
  height: 48px;
  margin-top: 2px;
}

body.hud-runtime-active:not([data-map="lobby"]) #quickbar #btnBag img.bag-reference-icon {
  transform: translateY(7px) scale(1.45);
  transform-origin: 50% 50%;
}

body.hud-runtime-active #btnAction.interaction-bar:not(.hidden)[data-action-kind="search"] {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] .interaction-copy-v99 {
  order: 1;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] .interaction-copy-v99 small {
  display: none !important;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] .interaction-label-v99 {
  max-width: 116px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] .interaction-glyph-v99 {
  order: 2;
  place-items: center;
  margin: 0;
  border: 2px solid #72e2c0;
  background: rgba(6,28,34,.94);
  box-shadow: 0 0 0 5px rgba(54,171,139,.12),0 5px 12px rgba(0,0,0,.3);
  color: #83edcc;
  font-size: 23px;
}

body.hud-runtime-active:not([data-map="lobby"]) #btnAction.interaction-bar:not([data-action-kind="search"]):not(.hidden) {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

body[data-map="lobby"].hud-runtime-active #btnAction.interaction-bar:not(.hidden) {
  display: grid !important;
  place-items: center;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
}

body[data-map="lobby"] #btnAction .interaction-paw {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,.3));
}

body[data-map="lobby"] #btnAction .interaction-copy-v99 {
  display: none !important;
}

body[data-map="lobby"] #btnAction .interaction-start-game {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,.26));
}

body[data-map="lobby"] #btnAction[data-action-kind="deploy"] .interaction-paw {
  display: none;
}

body[data-map="lobby"] #btnAction[data-action-kind="deploy"] .interaction-start-game {
  display: block;
}

body.hud-runtime-active #btnTacticalMap {
  display: grid !important;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(190,211,220,.26);
  border-radius: 8px;
  background: rgba(7,17,23,.72);
  color: rgba(235,243,246,.92);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  pointer-events: auto !important;
}

body.layout-landscape-compact #quickbar .weapon-slot .slot-art-img {
  height: 27px;
}

body.layout-landscape-compact #quickbar .weapon-slot .weapon-ammo {
  font-size: 7px;
}

body.layout-landscape-compact #operatorSkillBar .operator-skill-glyph {
  font-size: 16px;
}

body.layout-landscape-compact #btnAction[data-action-kind="search"] .interaction-label-v99 {
  font-size: 9px;
  max-width: 106px;
}

body.layout-landscape-compact #btnAction[data-action-kind="search"] .interaction-glyph-v99 {
  font-size: 21px;
}

body.hud-runtime-active.layout-landscape-compact #legacyHudRoot > * {
  right: auto;
  bottom: auto;
}

body.hud-runtime-active.cap-legacy-layout.layout-landscape-compact #legacyHudRoot > * {
  right: auto;
  bottom: auto;
}

body.hud-runtime-active.cap-touch #legacyHudRoot > * {
  right: auto;
  bottom: auto;
}

body.hud-runtime-active.hud-runtime-active #legacyHudRoot > * {
  right: auto;
  bottom: auto;
}

@media (prefers-reduced-motion:reduce) {
  body.hud-runtime-active #legacyHudRoot * {
    transition: none;
    animation: none;
  }
}

body.hud-runtime-active #btnSwitchWeapon.disabled.locked {
  opacity: 1 !important;
  -webkit-filter: none;
  filter: none;
}

body.hud-runtime-active #btnSwitchWeapon.disabled .reload-icon {
  opacity: .34 !important;
}

body.hud-runtime-active #btnSwitchWeapon.disabled .reload-caption {
  opacity: .34 !important;
}

body.hud-runtime-active #btnSwitchWeapon.ready .reload-icon {
  opacity: 1 !important;
}

body.hud-runtime-active #btnSwitchWeapon.ready .reload-caption {
  opacity: 1 !important;
}

body.hud-runtime-active #btnSwitchWeapon.reloading .reload-icon {
  opacity: 1 !important;
}

body.hud-runtime-active #btnSwitchWeapon.reloading .reload-caption {
  opacity: 1 !important;
}

body.hud-runtime-active #btnSwitchWeapon:not(.reloading) #reloadProgress {
  opacity: 0 !important;
}

.facility-overlay[data-facility-view="facility_deploy"] {
  padding: 6px;
  background: #061321;
}

@supports (padding-top: env(safe-area-inset-top)) {
  .facility-overlay[data-facility-view="facility_deploy"] {
    padding-top: calc(6px + env(safe-area-inset-top));
    padding-right: calc(6px + env(safe-area-inset-right));
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    padding-left: calc(6px + env(safe-area-inset-left));
  }
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-topbar {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 5;
  min-height: 54px;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.facility-overlay[data-facility-view="facility_deploy"] .close-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  flex-basis: 52px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(1,15,26,.82);
  color: #f3f8fa;
  box-shadow: 0 7px 18px rgba(0,0,0,.38);
  font-size: 37px;
  font-weight: 400;
  line-height: 45px;
  pointer-events: auto;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-title-block {
  padding-left: 5px;
  text-shadow: 0 2px 5px rgba(0,0,0,.7);
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-title-block strong {
  color: #f5f8f9;
  font-size: calc(20px + .5vw);
  font-weight: 900;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-title-block i {
  color: rgba(224,239,245,.72);
  font-size: calc(9px + .15vw);
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-header-meta {
  display: none;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-shell,
.facility-overlay[data-facility-view="facility_deploy"] .facility-content {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.facility-overlay[data-facility-view="facility_deploy"] .facility-content {
  overflow: hidden;
  box-shadow: none;
}

.facility-deploy-body-v201 {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.deployment-atlas-v201 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0,68%) minmax(290px,32%);
  overflow: hidden;
  border: 1px solid rgba(139,181,200,.28);
  border-radius: 18px;
  background-color: #061523;
  background-image: linear-gradient(90deg,rgba(3,14,24,.06) 0%,rgba(3,14,24,.08) 58%,rgba(3,14,24,.6) 70%,rgba(3,14,24,.92) 100%),var(--deployment-atlas);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 80px rgba(0,0,0,.28);
  color: #f4f8fa;
}

.deployment-atlas-v201::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background: linear-gradient(180deg,rgba(0,8,14,.15),transparent 22%,transparent 75%,rgba(0,7,13,.35));
  pointer-events: none;
}

.deployment-world-v201 {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
}

.deployment-world-heading-v201 {
  position: absolute;
  top: 82px;
  left: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 310px;
  text-shadow: 0 2px 6px rgba(0,0,0,.78);
  pointer-events: none;
}

.deployment-world-heading-v201 small {
  color: #71e5cb;
  font-size: calc(8px + .15vw);
  font-weight: 900;
  letter-spacing: .24em;
}

.deployment-world-heading-v201 strong {
  margin-top: 3px;
  color: #fff;
  font-size: calc(18px + .45vw);
  line-height: 1.05;
}

.deployment-world-heading-v201 span {
  margin-top: 4px;
  color: rgba(228,240,244,.7);
  font-size: calc(8px + .14vw);
}

.deployment-nodes-v201 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.deployment-node-v201 {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  z-index: 2;
  display: block;
  width: 13.2vw;
  min-width: 112px;
  max-width: 188px;
  height: 10.4vw;
  min-height: 88px;
  max-height: 148px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  transform: translate(-50%,-50%);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255,230,59,.22);
}

.deployment-node-card-v201 {
  position: absolute;
  top: 0;
  left: 50%;
  width: 78%;
  height: 53%;
  overflow: hidden;
  border: 2px solid rgba(159,192,203,.62);
  background: #07141d;
  box-shadow: 0 7px 14px rgba(0,0,0,.48);
  transform: translateX(-50%);
}

.deployment-node-card-v201 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deployment-node-card-v201::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg,transparent 48%,rgba(2,9,14,.72));
  pointer-events: none;
}

.deployment-node-v201.is-active .deployment-node-card-v201 {
  border-color: #f3eb21;
  box-shadow: 0 0 0 2px rgba(23,41,48,.75),0 0 22px rgba(231,237,40,.44),0 9px 15px rgba(0,0,0,.52);
}

.deployment-node-v201.is-locked .deployment-node-card-v201 img {
  filter: grayscale(.7) brightness(.6);
}

.deployment-node-copy-v201 {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 3;
  display: flex;
  width: 92%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 2px 4px #000,0 0 5px #000;
}

.deployment-node-copy-v201 small {
  padding: 1px 5px;
  color: #84f0d3;
  font-size: calc(7px + .12vw);
  font-weight: 900;
  letter-spacing: .08em;
}

.deployment-node-guide-v201 {
  display: block;
  width: auto;
  height: calc(18px + .3vw);
  max-height: 28px;
  margin: -3px auto 1px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.9));
  pointer-events: none;
}

.deployment-node-copy-v201 strong {
  color: #fff;
  font-size: calc(12px + .24vw);
  line-height: 1.05;
  white-space: nowrap;
}

.deployment-node-v201.is-active .deployment-node-copy-v201 strong {
  color: #f8f22d;
}

.deployment-node-v201.is-locked .deployment-node-copy-v201 small,
.deployment-node-v201.is-locked .deployment-node-copy-v201 strong {
  color: #bdc7cb;
}

.deployment-node-base-v201 {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42%;
  height: 30%;
  border: 1px solid rgba(185,211,218,.74);
  background: linear-gradient(145deg,#dde9ed 0%,#7d989f 48%,#40565d 49%,#abc1c7 100%);
  box-shadow: 0 9px 10px rgba(0,0,0,.34);
  -webkit-clip-path: polygon(25% 0,75% 0,100% 62%,83% 100%,17% 100%,0 62%);
  clip-path: polygon(25% 0,75% 0,100% 62%,83% 100%,17% 100%,0 62%);
  transform: translateX(-50%);
}

.deployment-node-v201.is-active .deployment-node-base-v201 {
  filter: drop-shadow(0 0 6px rgba(246,239,45,.7));
}

.deployment-node-lock-v201 {
  position: absolute;
  top: 16%;
  left: 50%;
  z-index: 5;
  width: 3vw;
  min-width: 28px;
  max-width: 43px;
  height: 2.6vw;
  min-height: 24px;
  max-height: 38px;
  border-radius: 5px;
  background: rgba(247,249,250,.96);
  box-shadow: 0 2px 6px rgba(0,0,0,.6);
  transform: translateX(-50%);
}

.deployment-node-lock-v201::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 74%;
  height: 70%;
  border: 4px solid #f6f8f9;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 0 2px rgba(3,15,22,.62);
}

.deployment-node-lock-v201 b {
  position: absolute;
  top: 33%;
  left: 50%;
  width: 5px;
  height: 11px;
  border-radius: 4px;
  background: #26353c;
  transform: translateX(-50%);
}

.deployment-brief-v201 {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(106px,28%) auto auto auto minmax(62px,auto) 58px;
  gap: 9px;
  min-width: 0;
  min-height: 0;
  margin: 38px 28px 30px 8px;
  padding: calc(12px + .3vw);
  border: 1px solid rgba(145,181,194,.46);
  background: linear-gradient(180deg,rgba(7,24,36,.93),rgba(4,16,25,.96));
  box-shadow: 0 16px 35px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.06);
}

.deployment-brief-kicker-v201 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #89a4ae;
  font-size: calc(8px + .12vw);
}

.deployment-brief-kicker-v201 span {
  letter-spacing: .16em;
}

.deployment-brief-kicker-v201 b {
  padding: 3px 7px;
  border: 1px solid rgba(99,230,195,.48);
  color: #77e7ca;
}

.deployment-preview-v201 {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(167,199,209,.36);
  background: #0a1922;
}

.deployment-preview-v201 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deployment-preview-v201::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 4px solid #e6ed28;
  background: linear-gradient(180deg,transparent 62%,rgba(3,11,18,.54));
  pointer-events: none;
}

.deployment-preview-v201 i {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: rgba(4,13,19,.52);
}

.deployment-preview-v201 i::before {
  content: "LOCKED";
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 5px 9px;
  border: 1px solid rgba(235,240,242,.65);
  color: #e9eff1;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  transform: translate(-50%,-50%);
}

.deployment-title-v201 h2 {
  margin: 0;
  color: #fff;
  font-size: calc(20px + .5vw);
  line-height: 1.05;
}

.deployment-title-v201 p {
  min-height: 2.6em;
  margin: 5px 0 0;
  color: rgba(218,232,237,.68);
  font-size: calc(8px + .14vw);
  line-height: 1.3;
}

.deployment-mode-tabs-v201 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 44px;
}

.deployment-mode-tabs-v201 button {
  min-width: 0;
  border: 2px solid #d5da20;
  background: rgba(10,78,67,.82);
  color: #f4f8f7;
  font-size: calc(14px + .3vw);
  font-weight: 900;
  touch-action: manipulation;
}

.deployment-mode-tabs-v201 button + button {
  border-color: #e25e55;
  background: rgba(109,35,38,.76);
}

.deployment-mode-tabs-v201 button.active {
  box-shadow: inset 0 -5px 0 rgba(255,239,39,.8),inset 0 0 18px rgba(255,255,255,.11);
}

.deployment-mode-tabs-v201 button:disabled {
  opacity: .42;
  filter: grayscale(1);
}

.deployment-loot-v201 {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid rgba(129,166,180,.22);
  background: rgba(3,14,23,.56);
}

.deployment-loot-gem-v201 {
  position: relative;
  width: 40px;
  height: 48px;
  margin: auto;
  background: linear-gradient(135deg,#f7fbff 7%,#74e6f2 26%,#617ef2 49%,#df78ed 72%,#fff 94%);
  box-shadow: 0 0 15px rgba(113,211,248,.62);
  -webkit-clip-path: polygon(50% 0,88% 18%,100% 55%,72% 100%,28% 100%,0 55%,12% 18%);
  clip-path: polygon(50% 0,88% 18%,100% 55%,72% 100%,28% 100%,0 55%,12% 18%);
}

.deployment-loot-v201.is-classified .deployment-loot-gem-v201 {
  background: linear-gradient(135deg,#fff8ce 7%,#ff9f43 27%,#ee417d 52%,#a95cf0 74%,#fff 94%);
  box-shadow: 0 0 18px rgba(255,109,117,.72);
}

.deployment-loot-v201 small,
.deployment-loot-v201 strong,
.deployment-loot-v201 p {
  display: block;
}

.deployment-loot-v201 small {
  color: #88a1aa;
  font-size: calc(8px + .1vw);
}

.deployment-loot-v201 strong {
  color: #77dfed;
  font-size: calc(15px + .28vw);
}

.deployment-loot-v201.is-classified strong {
  color: #ffb765;
}

.deployment-loot-v201 p {
  margin: 2px 0 0;
  color: rgba(222,234,238,.7);
  font-size: calc(8px + .08vw);
}

.deployment-stats-v201 {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
}

.deployment-stats-v201 div {
  min-width: 0;
  padding: 6px 2px;
  border: 1px solid rgba(125,158,170,.25);
  background: rgba(4,16,24,.56);
  text-align: center;
}

.deployment-stats-v201 span,
.deployment-stats-v201 b {
  display: block;
}

.deployment-stats-v201 span {
  color: #829aa3;
  font-size: calc(7px + .08vw);
}

.deployment-stats-v201 b {
  margin-top: 2px;
  color: #eaf2f4;
  font-size: calc(10px + .11vw);
}

.deployment-locked-copy-v201 {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  padding: 7px 10px;
  border: 1px dashed rgba(171,192,199,.34);
  background: rgba(6,15,21,.52);
}

.deployment-locked-copy-v201 strong {
  color: #d2dcdf;
  font-size: 13px;
}

.deployment-locked-copy-v201 span {
  margin-top: 3px;
  color: #81959c;
  font-size: 10px;
}

.deployment-primary-v201 {
  width: 100%;
  min-height: 54px;
  margin: 0;
  border: 1px solid #56e6c1;
  background: linear-gradient(180deg,#18db9c,#0bbf87);
  color: #04231c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35),0 5px 0 #066c50;
  font-size: calc(18px + .32vw);
  font-weight: 950;
  letter-spacing: .12em;
  touch-action: manipulation;
}

.deployment-primary-v201:disabled {
  border-color: #617078;
  background: #33444d;
  color: #9aa8ae;
  box-shadow: none;
}

@media (max-width:900px), (max-height:560px) {
  .facility-overlay[data-facility-view="facility_deploy"] .facility-topbar {
    top: 7px;
    left: 8px;
    min-height: 42px;
  }

  .facility-overlay[data-facility-view="facility_deploy"] .close-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex-basis: 40px;
    font-size: 29px;
    line-height: 35px;
  }

  .facility-overlay[data-facility-view="facility_deploy"] .facility-title-block strong {
    font-size: 18px;
  }

  .facility-overlay[data-facility-view="facility_deploy"] .facility-title-block i {
    display: none;
  }

  .deployment-atlas-v201 {
    grid-template-columns: minmax(0,66%) minmax(230px,34%);
    border-radius: 11px;
  }

  .deployment-world-heading-v201 {
    top: 55px;
    left: 14px;
  }

  .deployment-world-heading-v201 span {
    display: none;
  }

  .deployment-node-v201 {
    width: 13.5vw;
    min-width: 86px;
    max-width: 122px;
    height: 10.6vw;
    min-height: 68px;
    max-height: 96px;
  }

  .deployment-brief-v201 {
    grid-template-rows: auto minmax(64px,25%) auto 36px 52px minmax(42px,auto) 42px;
    gap: 4px;
    margin: 8px 8px 8px 2px;
    padding: 7px;
  }

  .deployment-title-v201 h2 {
    font-size: 17px;
  }

  .deployment-title-v201 p {
    min-height: 0;
    margin-top: 2px;
    font-size: 8px;
  }

  .deployment-mode-tabs-v201 {
    min-height: 36px;
  }

  .deployment-mode-tabs-v201 button {
    font-size: 13px;
  }

  .deployment-loot-v201 {
    grid-template-columns: 36px minmax(0,1fr);
    gap: 5px;
    min-height: 52px;
    padding: 4px 5px;
  }

  .deployment-loot-gem-v201 {
    width: 27px;
    height: 32px;
  }

  .deployment-loot-v201 strong {
    font-size: 13px;
  }

  .deployment-loot-v201 p {
    display: none;
  }

  .deployment-stats-v201 div {
    padding: 3px 1px;
  }

  .deployment-primary-v201 {
    min-height: 40px;
    font-size: 15px;
  }
}

@media (orientation:landscape) and (max-height:430px) {
  .deployment-world-heading-v201 {
    top: 48px;
  }

  .deployment-brief-kicker-v201 {
    display: none;
  }

  .deployment-brief-v201 {
    grid-template-rows: minmax(56px,25%) auto 32px 45px minmax(36px,auto) 38px;
  }

  .deployment-title-v201 p {
    display: none;
  }

  .deployment-preview-v201::after {
    border-top-width: 2px;
  }
}


/* 1.3.1 empty-loadout confirmation. Deployment scene owns this modal. */
.empty-loadout-prompt-v131 {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: calc(18px + var(--safe-top, 0px)) calc(18px + var(--safe-right, 0px)) calc(18px + var(--safe-bottom, 0px)) calc(18px + var(--safe-left, 0px));
  background: rgba(1, 8, 15, .76);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.empty-loadout-prompt-v131.hidden {
  display: none;
}

.empty-loadout-card-v131 {
  width: min(520px, 88vw);
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid rgba(93, 237, 202, .58);
  background: linear-gradient(150deg, rgba(8, 29, 40, .98), rgba(4, 16, 25, .98));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .48), inset 4px 0 0 #52e4c0;
  color: #eefcff;
}

.empty-loadout-card-v131 > span {
  display: block;
  margin-bottom: 6px;
  color: #5be6c5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
}

.empty-loadout-card-v131 h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.empty-loadout-card-v131 p {
  margin: 10px 0 20px;
  color: rgba(224, 240, 247, .76);
  font-size: 15px;
  line-height: 1.55;
}

.empty-loadout-card-v131 > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.empty-loadout-card-v131 button {
  min-height: 52px;
  border: 1px solid rgba(121, 172, 190, .48);
  background: #102633;
  color: #e8f6fa;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  touch-action: manipulation;
}

.empty-loadout-card-v131 [data-empty-loadout-yes] {
  border-color: #68ebca;
  background: linear-gradient(180deg, #1e967e, #14705f);
  color: #fff;
}

.empty-loadout-card-v131 button:active {
  transform: translateY(1px);
}

@media (orientation: landscape) and (max-height: 430px) {
  .empty-loadout-card-v131 {
    width: min(560px, 82vw);
    padding: 14px 16px;
  }

  .empty-loadout-card-v131 > span {
    margin-bottom: 3px;
    font-size: 9px;
  }

  .empty-loadout-card-v131 h2 {
    font-size: 21px;
  }

  .empty-loadout-card-v131 p {
    margin: 6px 0 11px;
    font-size: 12px;
  }

  .empty-loadout-card-v131 button {
    min-height: 42px;
    font-size: 13px;
  }
}

html {
  max-width: none;
  max-height: none;
}

body {
  max-width: none;
  max-height: none;
}

#stageWrap {
  max-width: none;
  max-height: none;
}

#gameFrame {
  max-width: none;
  max-height: none;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] .interaction-glyph-v99 {
  flex: 0 0 48px;
  flex-basis: 48px;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 50%;
  transform: translate3d(0,0,0);
}

body.layout-landscape-compact #btnAction[data-action-kind="search"] .interaction-glyph-v99 {
  flex: 0 0 44px;
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
}

body.hud-runtime-active #btnSwitchWeapon:not(.reloading)::before {
  animation: none;
}

body.hud-runtime-active #btnSwitchWeapon:not(.reloading)::after {
  animation: none;
}

body.hud-runtime-active #btnSwitchWeapon:not(.reloading) * {
  animation: none;
}

body.hud-runtime-active #btnAttack.locked .attack-icon {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

body.hud-runtime-active #btnAttack.locked .attack-aim-knob {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

body.hud-runtime-active #btnSwitchWeapon.locked .reload-icon {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

body.hud-runtime-active #btnSwitchWeapon.locked .reload-caption {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

.intro-scene {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 700;
  overflow: hidden;
  background: #020609;
  color: #edf7f4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  opacity: 1;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

body.intro-running #toast {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.intro-running #hudText {
  opacity: 0 !important;
  visibility: hidden !important;
}

.intro-scene.is-leaving {
  pointer-events: none;
  -webkit-animation: intro-scene-leave .58s ease forwards;
  animation: intro-scene-leave .58s ease forwards;
}

.intro-fx-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.intro-dark-field {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.intro-grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.intro-vignette {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.intro-scanlines {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.intro-flash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.intro-exit-wipe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.intro-fx-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
}

.intro-dark-field {
  z-index: 2;
  background: radial-gradient(ellipse at 50% 49%, rgba(20, 64, 68, .24) 0, rgba(4, 13, 17, .10) 34%, rgba(0, 0, 0, .88) 84%),
    linear-gradient(90deg, rgba(0, 0, 0, .74), transparent 19%, transparent 81%, rgba(0, 0, 0, .74));
}

.intro-grid {
  z-index: 3;
  opacity: .12;
  background-image: linear-gradient(rgba(80, 222, 204, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 222, 204, .12) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-transform: perspective(650px) rotateX(66deg) translateY(49%);
  transform: perspective(650px) rotateX(66deg) translateY(49%);
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-animation: intro-grid-drift 5.4s linear both;
  animation: intro-grid-drift 5.4s linear both;
}

.intro-vignette {
  z-index: 20;
  pointer-events: none;
  box-shadow: inset 0 0 14vw rgba(0, 0, 0, .98), inset 0 0 3vw rgba(0, 0, 0, .58);
}

.intro-scanlines {
  z-index: 18;
  pointer-events: none;
  opacity: .26;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.025) 0,
    rgba(255,255,255,.025) 1px,
    transparent 1px,
    transparent 4px
  );
  -webkit-animation: intro-scan-shift .22s steps(2, end) infinite;
  animation: intro-scan-shift .22s steps(2, end) infinite;
}

.intro-hud-frame {
  position: absolute;
  z-index: 8;
  top: calc(22px + var(--safe-top, 0px));
  right: calc(24px + var(--safe-right, 0px));
  bottom: calc(22px + var(--safe-bottom, 0px));
  left: calc(24px + var(--safe-left, 0px));
  opacity: 0;
  border: 1px solid rgba(80, 236, 209, .18);
  box-shadow: inset 0 0 40px rgba(33, 176, 158, .04);
  -webkit-animation: intro-frame-in .75s .18s ease forwards;
  animation: intro-frame-in .75s .18s ease forwards;
}

.intro-hud-frame:before {
  content: "";
  position: absolute;
  width: 74px;
  height: 18px;
  border-color: #49e2c8;
  border-style: solid;
  opacity: .8;
}

.intro-hud-frame:after {
  content: "";
  position: absolute;
  width: 74px;
  height: 18px;
  border-color: #49e2c8;
  border-style: solid;
  opacity: .8;
}

.intro-hud-frame:before {
  left: -1px;
  top: -1px;
  border-width: 2px 0 0 2px;
}

.intro-hud-frame:after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.intro-topline {
  position: absolute;
  z-index: 9;
  left: calc(43px + var(--safe-left, 0px));
  right: calc(43px + var(--safe-right, 0px));
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
  color: rgba(153, 215, 207, .67);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  -webkit-animation: intro-meta-in .55s .35s ease forwards;
  animation: intro-meta-in .55s .35s ease forwards;
}

.intro-bottomline {
  position: absolute;
  z-index: 9;
  left: calc(43px + var(--safe-left, 0px));
  right: calc(43px + var(--safe-right, 0px));
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
  color: rgba(153, 215, 207, .67);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  -webkit-animation: intro-meta-in .55s .35s ease forwards;
  animation: intro-meta-in .55s .35s ease forwards;
}

.intro-topline {
  top: calc(34px + var(--safe-top, 0px));
}

.intro-bottomline {
  bottom: calc(35px + var(--safe-bottom, 0px));
}

.intro-topline strong {
  color: #f0ad49;
  font-size: 10px;
  font-weight: 800;
}

.intro-bottomline strong {
  color: #f0ad49;
  font-size: 10px;
  font-weight: 800;
}

.intro-signal {
  display: inline-block;
  width: 70px;
  height: 4px;
  margin-right: 13px;
  vertical-align: middle;
  background: linear-gradient(90deg, #42e4c7 0%, #42e4c7 58%, rgba(66,228,199,.16) 58%, rgba(66,228,199,.16) 68%, #f0a83f 68%, #f0a83f 81%, rgba(240,168,63,.12) 81%, rgba(240,168,63,.12) 100%);
}

.intro-side-code {
  position: absolute;
  z-index: 9;
  top: 50%;
  right: calc(38px + var(--safe-right, 0px));
  color: rgba(97, 204, 191, .38);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  white-space: nowrap;
  -webkit-transform: translate(45%, -50%) rotate(90deg);
  transform: translate(45%, -50%) rotate(90deg);
  opacity: 0;
  -webkit-animation: intro-meta-in .65s .55s ease forwards;
  animation: intro-meta-in .65s .55s ease forwards;
}

.intro-phase {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  width: 100%;
  text-align: center;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.intro-title-phase {
  opacity: 0;
  -webkit-animation: intro-title-phase 2.85s .34s ease both;
  animation: intro-title-phase 2.85s .34s ease both;
}

.intro-title-wrap {
  position: relative;
  width: 70vw;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  -webkit-transform: translateY(18px) scale(.95);
  transform: translateY(18px) scale(.95);
  -webkit-filter: blur(12px);
  filter: blur(12px);
  -webkit-animation: intro-title-reveal 1.25s .58s cubic-bezier(.16,.72,.2,1) forwards;
  animation: intro-title-reveal 1.25s .58s cubic-bezier(.16,.72,.2,1) forwards;
}

.intro-title-art {
  display: block;
  width: 100%;
  height: auto;
}

.intro-title-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
}

.intro-title-glitch.glitch-a {
  -webkit-filter: hue-rotate(92deg) brightness(1.8);
  filter: hue-rotate(92deg) brightness(1.8);
  -webkit-animation: intro-glitch-a 2.1s .74s steps(1, end) both;
  animation: intro-glitch-a 2.1s .74s steps(1, end) both;
}

.intro-title-glitch.glitch-b {
  -webkit-filter: sepia(1) saturate(4) hue-rotate(340deg) brightness(1.35);
  filter: sepia(1) saturate(4) hue-rotate(340deg) brightness(1.35);
  -webkit-animation: intro-glitch-b 2.15s .82s steps(1, end) both;
  animation: intro-glitch-b 2.15s .82s steps(1, end) both;
}

.intro-title-kicker {
  margin-bottom: 2.1vh;
  color: rgba(77, 232, 207, .82);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 7px;
  opacity: 0;
  -webkit-animation: intro-kicker-in .55s .48s ease forwards;
  animation: intro-kicker-in .55s .48s ease forwards;
}

.intro-title-copy {
  position: relative;
  display: inline-block;
  margin-top: 1.4vh;
  padding: 0 34px;
  color: rgba(193, 219, 215, .72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 7px;
  opacity: 0;
  -webkit-animation: intro-copy-in .6s 1.48s ease forwards;
  animation: intro-copy-in .6s 1.48s ease forwards;
}

.intro-title-copy:before {
  content: "";
  position: absolute;
  top: 50%;
  width: 70px;
  height: 1px;
  background: rgba(67, 220, 195, .38);
}

.intro-title-copy:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 70px;
  height: 1px;
  background: rgba(67, 220, 195, .38);
}

.intro-title-copy:before {
  right: 100%;
}

.intro-title-copy:after {
  left: 100%;
}

.intro-emblem-phase {
  opacity: 0;
  -webkit-animation: intro-emblem-phase 2.35s 2.75s ease both;
  animation: intro-emblem-phase 2.35s 2.75s ease both;
}

.intro-emblem-wrap {
  position: relative;
  width: 20vw;
  max-width: 230px;
  min-width: 132px;
  margin: 0 auto;
  opacity: 0;
  -webkit-transform: scale(.72) rotate(-2deg);
  transform: scale(.72) rotate(-2deg);
  -webkit-filter: blur(11px);
  filter: blur(11px);
  -webkit-animation: intro-emblem-reveal .72s 2.91s cubic-bezier(.17,.84,.25,1) forwards;
  animation: intro-emblem-reveal .72s 2.91s cubic-bezier(.17,.84,.25,1) forwards;
}

.intro-emblem-art {
  display: block;
  width: 100%;
  height: auto;
}

.intro-emblem-ring {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 76%;
  height: 76%;
  border: 1px solid rgba(80, 240, 211, .42);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(70, 239, 210, .15);
  -webkit-animation: intro-ring-spin 4s linear infinite;
  animation: intro-ring-spin 4s linear infinite;
}

.intro-emblem-ring:before {
  content: "";
  position: absolute;
  background: #f0a941;
}

.intro-emblem-ring:after {
  content: "";
  position: absolute;
  background: #f0a941;
}

.intro-emblem-ring:before {
  top: -2px;
  left: 48%;
  width: 16%;
  height: 4px;
}

.intro-emblem-ring:after {
  bottom: -2px;
  right: 51%;
  width: 8%;
  height: 4px;
}

.intro-emblem-title {
  margin-top: -1.2vh;
  color: #eef9f5;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 9px;
  opacity: 0;
  -webkit-transform: translateY(10px);
  transform: translateY(10px);
  -webkit-animation: intro-copy-in .5s 3.42s ease forwards;
  animation: intro-copy-in .5s 3.42s ease forwards;
}

.intro-emblem-copy {
  margin-top: 11px;
  color: rgba(105, 221, 204, .7);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  opacity: 0;
  -webkit-animation: intro-copy-in .5s 3.63s ease forwards;
  animation: intro-copy-in .5s 3.63s ease forwards;
}

.intro-status-line {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: calc(9.5vh + var(--safe-bottom, 0px));
  width: 38vw;
  max-width: 560px;
  min-width: 260px;
  height: 2px;
  overflow: hidden;
  background: rgba(95, 198, 188, .12);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  opacity: 0;
  -webkit-animation: intro-status-show .5s .9s ease forwards;
  animation: intro-status-show .5s .9s ease forwards;
}

.intro-status-line i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #37e2bf, #c6fff2 72%, #f0a43d);
  box-shadow: 0 0 10px rgba(61, 235, 204, .65);
  -webkit-animation: intro-status-fill 4.35s .78s cubic-bezier(.22,.7,.21,1) forwards;
  animation: intro-status-fill 4.35s .78s cubic-bezier(.22,.7,.21,1) forwards;
}

.intro-flash {
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  background: #dffef7;
  -webkit-animation: intro-flashes 5.4s steps(1, end) both;
  animation: intro-flashes 5.4s steps(1, end) both;
}

.intro-exit-wipe {
  z-index: 16;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(79,255,222,.88), rgba(237,255,252,.98), rgba(79,255,222,.22), transparent);
  -webkit-transform: translateX(-130%) skewX(-16deg);
  transform: translateX(-130%) skewX(-16deg);
  -webkit-animation: intro-exit-scan .56s 4.78s ease-in both;
  animation: intro-exit-scan .56s 4.78s ease-in both;
}

.intro-controls {
  position: absolute;
  z-index: 30;
  right: calc(34px + var(--safe-right, 0px));
  bottom: calc(45px + var(--safe-bottom, 0px));
  display: flex;
  gap: 8px;
  opacity: 0;
  -webkit-animation: intro-controls-in .35s .8s ease forwards;
  animation: intro-controls-in .35s .8s ease forwards;
}

.intro-control-btn {
  position: relative;
  min-width: 68px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(89, 222, 204, .36);
  border-radius: 8px;
  background: rgba(9, 22, 29, .88);
  color: rgba(221, 244, 239, .86);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 6px 22px rgba(0,0,0,.28);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  outline: none;
}

.intro-control-btn + .intro-control-btn {
  margin-left: 8px;
}

.intro-control-btn:active {
  background: rgba(20, 64, 66, .94);
  border-color: #4ae7c9;
  color: #fff;
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
}

.intro-control-btn.sound-muted {
  border-color: rgba(240, 168, 63, .42);
  color: rgba(240, 188, 111, .84);
}

.intro-control-btn .intro-sound-bars {
  display: inline-block;
  width: 15px;
  height: 10px;
  margin-right: 7px;
  vertical-align: -1px;
  background: linear-gradient(90deg,
    #43e1c3 0, #43e1c3 2px, transparent 2px, transparent 4px,
    #43e1c3 4px, #43e1c3 7px, transparent 7px, transparent 9px,
    #43e1c3 9px, #43e1c3 13px, transparent 13px, transparent 100%);
  -webkit-transform: skewY(-18deg);
  transform: skewY(-18deg);
}

.intro-control-btn.sound-muted .intro-sound-bars {
  background: linear-gradient(90deg,
    #f0a83f 0, #f0a83f 2px, transparent 2px, transparent 4px,
    #f0a83f 4px, #f0a83f 7px, transparent 7px, transparent 9px,
    #f0a83f 9px, #f0a83f 13px, transparent 13px, transparent 100%);
  opacity: .45;
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-hud-frame {
    top: 12px;
    right: 13px;
    bottom: 12px;
    left: 13px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-topline {
    top: 20px;
    left: 25px;
    right: 25px;
    font-size: 8px;
    letter-spacing: 2px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-bottomline {
    bottom: 21px;
    left: 25px;
    right: 25px;
    font-size: 8px;
    letter-spacing: 2px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-side-code {
    right: 18px;
    font-size: 7px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-title-wrap {
    width: 76vw;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-title-kicker {
    font-size: 8px;
    letter-spacing: 5px;
    margin-bottom: 0;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-title-copy {
    margin-top: 0;
    font-size: 9px;
    letter-spacing: 4px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-title-copy:before {
    width: 32px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-title-copy:after {
    width: 32px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-emblem-wrap {
    width: 17vw;
    min-width: 104px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-emblem-title {
    margin-top: -8px;
    font-size: 15px;
    letter-spacing: 6px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-emblem-copy {
    margin-top: 4px;
    font-size: 8px;
    letter-spacing: 3px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-status-line {
    bottom: 12vh;
    width: 34vw;
    min-width: 190px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-controls {
    right: 22px;
    bottom: 31px;
  }
}

@media (max-width: 740px), (max-height: 430px) {
  .intro-control-btn {
    min-width: 58px;
    height: 30px;
    padding: 0 10px;
    font-size: 9px;
  }
}

@media (orientation: portrait) {
  .intro-title-wrap {
    width: 90vw;
  }
}

@media (orientation: portrait) {
  .intro-title-copy {
    font-size: 10px;
    letter-spacing: 4px;
  }
}

@media (orientation: portrait) {
  .intro-emblem-wrap {
    width: 34vw;
    max-width: 250px;
  }
}

@media (orientation: portrait) {
  .intro-status-line {
    width: 64vw;
  }
}

@media (orientation: portrait) {
  .intro-topline span:last-child {
    display: none;
  }
}

@media (orientation: portrait) {
  .intro-bottomline span:first-child {
    display: none;
  }
}

@media (orientation: portrait) {
  .intro-side-code {
    display: none;
  }
}

@-webkit-keyframes intro-scene-leave{0% { opacity: 1; }
  100% { opacity: 0; }}

@keyframes intro-scene-leave{0% { opacity: 1; }
  100% { opacity: 0; }}

@-webkit-keyframes intro-frame-in{0% { opacity: 0; -webkit-transform: scale(.988); }
  100% { opacity: 1; -webkit-transform: scale(1); }}

@keyframes intro-frame-in{0% { opacity: 0; transform: scale(.988); }
  100% { opacity: 1; transform: scale(1); }}

@-webkit-keyframes intro-meta-in{0% { opacity: 0; }
  100% { opacity: 1; }}

@keyframes intro-meta-in{0% { opacity: 0; }
  100% { opacity: 1; }}

@-webkit-keyframes intro-grid-drift{0% { background-position: 0 0, 0 0; opacity: .03; }
  22% { opacity: .13; }
  100% { background-position: 0 130px, 78px 0; opacity: .06; }}

@keyframes intro-grid-drift{0% { background-position: 0 0, 0 0; opacity: .03; }
  22% { opacity: .13; }
  100% { background-position: 0 130px, 78px 0; opacity: .06; }}

@-webkit-keyframes intro-scan-shift{0% { -webkit-transform: translateY(0); }
  100% { -webkit-transform: translateY(4px); }}

@keyframes intro-scan-shift{0% { transform: translateY(0); }
  100% { transform: translateY(4px); }}

@-webkit-keyframes intro-title-phase{0%, 6% { opacity: 0; }
  12%, 78% { opacity: 1; }
  88% { opacity: .68; -webkit-transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; -webkit-transform: translate(-50%, -50%) scale(1.035); }}

@keyframes intro-title-phase{0%, 6% { opacity: 0; }
  12%, 78% { opacity: 1; }
  88% { opacity: .68; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.035); }}

@-webkit-keyframes intro-title-reveal{0% { opacity: 0; -webkit-transform: translateY(18px) scale(.95); -webkit-filter: blur(12px); }
  34% { opacity: 1; -webkit-filter: blur(2px); }
  62% { -webkit-transform: translateY(-2px) scale(1.012); }
  100% { opacity: 1; -webkit-transform: translateY(0) scale(1); -webkit-filter: blur(0); }}

@keyframes intro-title-reveal{0% { opacity: 0; transform: translateY(18px) scale(.95); filter: blur(12px); }
  34% { opacity: 1; filter: blur(2px); }
  62% { transform: translateY(-2px) scale(1.012); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }}

@-webkit-keyframes intro-kicker-in{0% { opacity: 0; letter-spacing: 13px; }
  100% { opacity: 1; letter-spacing: 7px; }}

@keyframes intro-kicker-in{0% { opacity: 0; letter-spacing: 13px; }
  100% { opacity: 1; letter-spacing: 7px; }}

@-webkit-keyframes intro-copy-in{0% { opacity: 0; -webkit-transform: translateY(10px); }
  100% { opacity: 1; -webkit-transform: translateY(0); }}

@keyframes intro-copy-in{0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }}

@-webkit-keyframes intro-glitch-a{0%, 9%, 18%, 43%, 51%, 83%, 91%, 100% { opacity: 0; -webkit-transform: translateX(0); -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
  10% { opacity: .82; -webkit-transform: translateX(14px); -webkit-clip-path: inset(19% 0 62% 0); clip-path: inset(19% 0 62% 0); }
  17% { opacity: .38; -webkit-transform: translateX(-9px); -webkit-clip-path: inset(64% 0 21% 0); clip-path: inset(64% 0 21% 0); }
  44% { opacity: .62; -webkit-transform: translateX(-15px); -webkit-clip-path: inset(37% 0 46% 0); clip-path: inset(37% 0 46% 0); }
  50% { opacity: .42; -webkit-transform: translateX(8px); -webkit-clip-path: inset(74% 0 11% 0); clip-path: inset(74% 0 11% 0); }
  84% { opacity: .65; -webkit-transform: translateX(12px); -webkit-clip-path: inset(26% 0 57% 0); clip-path: inset(26% 0 57% 0); }
  90% { opacity: .34; -webkit-transform: translateX(-7px); -webkit-clip-path: inset(80% 0 7% 0); clip-path: inset(80% 0 7% 0); }}

@keyframes intro-glitch-a{0%, 9%, 18%, 43%, 51%, 83%, 91%, 100% { opacity: 0; transform: translateX(0); -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
  10% { opacity: .82; transform: translateX(14px); -webkit-clip-path: inset(19% 0 62% 0); clip-path: inset(19% 0 62% 0); }
  17% { opacity: .38; transform: translateX(-9px); -webkit-clip-path: inset(64% 0 21% 0); clip-path: inset(64% 0 21% 0); }
  44% { opacity: .62; transform: translateX(-15px); -webkit-clip-path: inset(37% 0 46% 0); clip-path: inset(37% 0 46% 0); }
  50% { opacity: .42; transform: translateX(8px); -webkit-clip-path: inset(74% 0 11% 0); clip-path: inset(74% 0 11% 0); }
  84% { opacity: .65; transform: translateX(12px); -webkit-clip-path: inset(26% 0 57% 0); clip-path: inset(26% 0 57% 0); }
  90% { opacity: .34; transform: translateX(-7px); -webkit-clip-path: inset(80% 0 7% 0); clip-path: inset(80% 0 7% 0); }}

@-webkit-keyframes intro-glitch-b{0%, 13%, 22%, 58%, 67%, 76%, 86%, 100% { opacity: 0; -webkit-transform: translateX(0); -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
  14% { opacity: .5; -webkit-transform: translateX(-11px); -webkit-clip-path: inset(48% 0 37% 0); clip-path: inset(48% 0 37% 0); }
  21% { opacity: .36; -webkit-transform: translateX(7px); -webkit-clip-path: inset(8% 0 78% 0); clip-path: inset(8% 0 78% 0); }
  59% { opacity: .55; -webkit-transform: translateX(12px); -webkit-clip-path: inset(56% 0 31% 0); clip-path: inset(56% 0 31% 0); }
  66% { opacity: .3; -webkit-transform: translateX(-5px); -webkit-clip-path: inset(15% 0 70% 0); clip-path: inset(15% 0 70% 0); }
  77% { opacity: .55; -webkit-transform: translateX(-13px); -webkit-clip-path: inset(68% 0 19% 0); clip-path: inset(68% 0 19% 0); }
  85% { opacity: .27; -webkit-transform: translateX(6px); -webkit-clip-path: inset(34% 0 52% 0); clip-path: inset(34% 0 52% 0); }}

@keyframes intro-glitch-b{0%, 13%, 22%, 58%, 67%, 76%, 86%, 100% { opacity: 0; transform: translateX(0); -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
  14% { opacity: .5; transform: translateX(-11px); -webkit-clip-path: inset(48% 0 37% 0); clip-path: inset(48% 0 37% 0); }
  21% { opacity: .36; transform: translateX(7px); -webkit-clip-path: inset(8% 0 78% 0); clip-path: inset(8% 0 78% 0); }
  59% { opacity: .55; transform: translateX(12px); -webkit-clip-path: inset(56% 0 31% 0); clip-path: inset(56% 0 31% 0); }
  66% { opacity: .3; transform: translateX(-5px); -webkit-clip-path: inset(15% 0 70% 0); clip-path: inset(15% 0 70% 0); }
  77% { opacity: .55; transform: translateX(-13px); -webkit-clip-path: inset(68% 0 19% 0); clip-path: inset(68% 0 19% 0); }
  85% { opacity: .27; transform: translateX(6px); -webkit-clip-path: inset(34% 0 52% 0); clip-path: inset(34% 0 52% 0); }}

@-webkit-keyframes intro-emblem-phase{0%, 5% { opacity: 0; }
  12%, 82% { opacity: 1; }
  100% { opacity: 0; }}

@keyframes intro-emblem-phase{0%, 5% { opacity: 0; }
  12%, 82% { opacity: 1; }
  100% { opacity: 0; }}

@-webkit-keyframes intro-emblem-reveal{0% { opacity: 0; -webkit-transform: scale(.72) rotate(-2deg); -webkit-filter: blur(11px); }
  36% { opacity: 1; }
  68% { -webkit-transform: scale(1.06) rotate(.6deg); -webkit-filter: blur(1px); }
  100% { opacity: 1; -webkit-transform: scale(1) rotate(0); -webkit-filter: blur(0); }}

@keyframes intro-emblem-reveal{0% { opacity: 0; transform: scale(.72) rotate(-2deg); filter: blur(11px); }
  36% { opacity: 1; }
  68% { transform: scale(1.06) rotate(.6deg); filter: blur(1px); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }}

@-webkit-keyframes intro-ring-spin{0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }}

@keyframes intro-ring-spin{0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }}

@-webkit-keyframes intro-status-show{0% { opacity: 0; }
  100% { opacity: 1; }}

@keyframes intro-status-show{0% { opacity: 0; }
  100% { opacity: 1; }}

@-webkit-keyframes intro-status-fill{0% { width: 0; }
  34% { width: 42%; }
  67% { width: 73%; }
  100% { width: 100%; }}

@keyframes intro-status-fill{0% { width: 0; }
  34% { width: 42%; }
  67% { width: 73%; }
  100% { width: 100%; }}

@-webkit-keyframes intro-flashes{0%, 17%, 18.2%, 49%, 50%, 54.8%, 56.2%, 89%, 90%, 100% { opacity: 0; }
  17.4% { opacity: .38; }
  49.4% { opacity: .16; }
  55.2% { opacity: .72; }
  89.4% { opacity: .2; }}

@keyframes intro-flashes{0%, 17%, 18.2%, 49%, 50%, 54.8%, 56.2%, 89%, 90%, 100% { opacity: 0; }
  17.4% { opacity: .38; }
  49.4% { opacity: .16; }
  55.2% { opacity: .72; }
  89.4% { opacity: .2; }}

@-webkit-keyframes intro-exit-scan{0% { opacity: 0; -webkit-transform: translateX(-130%) skewX(-16deg); }
  14% { opacity: 1; }
  100% { opacity: 0; -webkit-transform: translateX(130%) skewX(-16deg); }}

@keyframes intro-exit-scan{0% { opacity: 0; transform: translateX(-130%) skewX(-16deg); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translateX(130%) skewX(-16deg); }}

@-webkit-keyframes intro-controls-in{0% { opacity: 0; -webkit-transform: translateY(4px); }
  100% { opacity: 1; -webkit-transform: translateY(0); }}

@keyframes intro-controls-in{0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }}

.intro-title-wrap-v100 {
  min-width: min(86vw, 1180px);
  display: grid;
  place-items: center;
}

.intro-title-text-v100 {
  display: grid;
  justify-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  padding: clamp(14px, 2vw, 28px) clamp(22px, 4vw, 54px);
  text-align: center;
  filter: drop-shadow(0 0 18px rgba(60, 233, 207, .35));
}

.intro-title-text-v100 strong {
  color: #eef9f8;
  font: 900 clamp(42px, 8vw, 112px)/.94 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  letter-spacing: -.04em;
  text-shadow: 3px 3px 0 #071219, 0 0 16px rgba(69, 225, 203, .48);
  white-space: nowrap;
}

.intro-title-text-v100 span {
  color: #58e1cd;
  font: 800 clamp(12px, 1.8vw, 24px)/1.1 "Courier New", monospace;
  letter-spacing: .12em;
}

@media (max-width: 720px) {
  .intro-title-text-v100 strong {
    white-space: normal;
  }
}

body.intro-running #app {
  visibility: hidden !important;
  pointer-events: none !important;
}

.intro-load-panel {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(58px + var(--safe-bottom,0px));
  width: min(48vw,560px);
  min-width: 280px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(228,242,240,.88);
  font-family: Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  pointer-events: none;
  opacity: 0;
  animation: intro-load-in .45s 1.05s ease forwards;
}

.intro-load-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(104,229,207,.22);
  background: rgba(10,19,25,.72);
  box-shadow: inset 0 0 8px rgba(0,0,0,.7);
}

.intro-load-track>i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg,#43d9c0,#9ef4df 72%,#e7b45b);
  box-shadow: 0 0 10px rgba(67,217,192,.45);
  transition: width .12s linear;
}

.intro-load-panel small {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  white-space: nowrap;
}

.intro-scene.is-waiting .intro-load-panel {
  opacity: 1;
}

.intro-scene.is-core-ready .intro-load-track>i {
  box-shadow: 0 0 13px rgba(91,238,208,.72);
}

@keyframes intro-load-in{to{opacity:1;}}

@media (max-height:430px) and (orientation:landscape) {
  .intro-load-panel {
    bottom: calc(37px + var(--safe-bottom,0px));
    width: min(44vw,430px);
    gap: 5px;
  }
}

@media (max-height:430px) and (orientation:landscape) {
  .intro-load-panel small {
    font-size: 9px;
    line-height: 12px;
  }
}

@media (max-height:430px) and (orientation:landscape) {
  .intro-load-track {
    height: 4px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .intro-load-panel {
    animation: none;
    transition: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .intro-load-track>i {
    animation: none;
    transition: none;
    opacity: 1;
  }
}

body.hud-runtime-active #btnAttack {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack:hover {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack:focus {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack:focus-visible {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack:active {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack.armed {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack.aiming {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack.locked {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack.disabled {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack:disabled {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transform: none;
  -webkit-transform: none;
  transition: none;
  animation: none;
  contain: none;
  isolation: auto;
  will-change: auto;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnSwitchWeapon {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnSwitchWeapon:hover {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnSwitchWeapon:focus {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnSwitchWeapon:focus-visible {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnSwitchWeapon:active {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnSwitchWeapon.ready {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnSwitchWeapon.locked {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnSwitchWeapon.disabled {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnSwitchWeapon:disabled {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transform: none;
  -webkit-transform: none;
  transition: none;
  animation: none;
  contain: none;
  isolation: auto;
  will-change: auto;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body.hud-runtime-active #btnAttack {
  border-color: rgba(200,220,227,.27);
  background-color: #111d23;
  background-image: radial-gradient(circle at 42% 35%,#3a4c55,#081016);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnAttack.aiming {
  border-color: rgba(200,220,227,.27);
  background-color: #111d23;
  background-image: radial-gradient(circle at 42% 35%,#3a4c55,#081016);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnAttack.locked {
  border-color: rgba(200,220,227,.27);
  background-color: #111d23;
  background-image: radial-gradient(circle at 42% 35%,#3a4c55,#081016);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnAttack.disabled {
  border-color: rgba(200,220,227,.27);
  background-color: #111d23;
  background-image: radial-gradient(circle at 42% 35%,#3a4c55,#081016);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnAttack:disabled {
  border-color: rgba(200,220,227,.27);
  background-color: #111d23;
  background-image: radial-gradient(circle at 42% 35%,#3a4c55,#081016);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnAttack:active {
  border-color: rgba(200,220,227,.27);
  background-color: #111d23;
  background-image: radial-gradient(circle at 42% 35%,#3a4c55,#081016);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnSwitchWeapon {
  border-color: rgba(200,220,227,.27);
  background-color: #101b21;
  background-image: radial-gradient(circle at 42% 35%,#2c3c44,#091217);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnSwitchWeapon.ready {
  border-color: rgba(200,220,227,.27);
  background-color: #101b21;
  background-image: radial-gradient(circle at 42% 35%,#2c3c44,#091217);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnSwitchWeapon.locked {
  border-color: rgba(200,220,227,.27);
  background-color: #101b21;
  background-image: radial-gradient(circle at 42% 35%,#2c3c44,#091217);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnSwitchWeapon.disabled {
  border-color: rgba(200,220,227,.27);
  background-color: #101b21;
  background-image: radial-gradient(circle at 42% 35%,#2c3c44,#091217);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnSwitchWeapon:disabled {
  border-color: rgba(200,220,227,.27);
  background-color: #101b21;
  background-image: radial-gradient(circle at 42% 35%,#2c3c44,#091217);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnSwitchWeapon:active {
  border-color: rgba(200,220,227,.27);
  background-color: #101b21;
  background-image: radial-gradient(circle at 42% 35%,#2c3c44,#091217);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035),0 5px 14px rgba(0,0,0,.30);
}

body.hud-runtime-active #btnAttack::before {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnAttack::after {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnAttack * {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  animation: none;
}

body.hud-runtime-active #btnAttack.aiming::before {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnAttack.aiming::after {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnAttack.aiming * {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnAttack.locked * {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnAttack.disabled * {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnSwitchWeapon::before {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnSwitchWeapon::after {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnSwitchWeapon * {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  animation: none;
}

body.hud-runtime-active #btnSwitchWeapon.ready * {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnSwitchWeapon.locked * {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnSwitchWeapon.disabled * {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnAttack .attack-aim-knob {
  border-color: rgba(226,238,242,.20);
  background: radial-gradient(circle at 42% 36%,rgba(86,103,111,.62) 0 28%,rgba(24,36,43,.76) 52%,rgba(7,14,18,.9) 100%);
  will-change: auto;
}

body.hud-runtime-active #btnAttack.aiming .attack-aim-knob {
  border-color: rgba(226,238,242,.20);
  background: radial-gradient(circle at 42% 36%,rgba(86,103,111,.62) 0 28%,rgba(24,36,43,.76) 52%,rgba(7,14,18,.9) 100%);
  will-change: auto;
}

body.hud-runtime-active #btnAttack .attack-icon {
  stroke: rgba(226,238,242,.88);
}

body.hud-runtime-active #btnAttack.aiming .attack-icon {
  stroke: rgba(226,238,242,.88);
}

body.hud-runtime-active #btnSwitchWeapon #reloadProgress {
  display: none !important;
  opacity: 0 !important;
  transition: none;
  animation: none;
}

body.hud-runtime-active #btnSwitchWeapon.reloading #reloadProgress {
  display: block !important;
  opacity: 1 !important;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  opacity: 1 !important;
  filter: none;
  transform: none;
  transition: none;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] .interaction-glyph-v99 {
  display: none !important;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] .interaction-copy-v99 {
  display: block !important;
  width: 100%;
  min-width: 0;
  text-align: center;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] .interaction-copy-v99>small {
  display: none !important;
}

body.hud-runtime-active #btnAction[data-action-kind="search"] .interaction-label-v99 {
  display: block !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eaf7f3;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: .15px;
}

body.hud-runtime-active #btnAttack::before {
  background: linear-gradient(rgba(229,239,243,.42),rgba(229,239,243,.42)) 50% 0/1px 7px no-repeat,
    linear-gradient(rgba(229,239,243,.42),rgba(229,239,243,.42)) 50% 100%/1px 7px no-repeat,
    linear-gradient(90deg,rgba(229,239,243,.42),rgba(229,239,243,.42)) 0 50%/7px 1px no-repeat,
    linear-gradient(90deg,rgba(229,239,243,.42),rgba(229,239,243,.42)) 100% 50%/7px 1px no-repeat;
}

body.hud-runtime-active #btnAttack.aiming::before {
  background: linear-gradient(rgba(229,239,243,.42),rgba(229,239,243,.42)) 50% 0/1px 7px no-repeat,
    linear-gradient(rgba(229,239,243,.42),rgba(229,239,243,.42)) 50% 100%/1px 7px no-repeat,
    linear-gradient(90deg,rgba(229,239,243,.42),rgba(229,239,243,.42)) 0 50%/7px 1px no-repeat,
    linear-gradient(90deg,rgba(229,239,243,.42),rgba(229,239,243,.42)) 100% 50%/7px 1px no-repeat;
}

body.hud-runtime-active #btnAttack.locked::before {
  background: linear-gradient(rgba(229,239,243,.42),rgba(229,239,243,.42)) 50% 0/1px 7px no-repeat,
    linear-gradient(rgba(229,239,243,.42),rgba(229,239,243,.42)) 50% 100%/1px 7px no-repeat,
    linear-gradient(90deg,rgba(229,239,243,.42),rgba(229,239,243,.42)) 0 50%/7px 1px no-repeat,
    linear-gradient(90deg,rgba(229,239,243,.42),rgba(229,239,243,.42)) 100% 50%/7px 1px no-repeat;
}

body.hud-runtime-active #btnAttack.disabled::before {
  background: linear-gradient(rgba(229,239,243,.42),rgba(229,239,243,.42)) 50% 0/1px 7px no-repeat,
    linear-gradient(rgba(229,239,243,.42),rgba(229,239,243,.42)) 50% 100%/1px 7px no-repeat,
    linear-gradient(90deg,rgba(229,239,243,.42),rgba(229,239,243,.42)) 0 50%/7px 1px no-repeat,
    linear-gradient(90deg,rgba(229,239,243,.42),rgba(229,239,243,.42)) 100% 50%/7px 1px no-repeat;
}

body.hud-runtime-active #btnAttack::after {
  border-color: rgba(224,235,239,.08);
  background: transparent;
}

body.hud-runtime-active #btnAttack.aiming::after {
  border-color: rgba(224,235,239,.08);
  background: transparent;
}

body.hud-runtime-active #btnAttack.locked::after {
  border-color: rgba(224,235,239,.08);
  background: transparent;
}

body.hud-runtime-active #btnAttack.disabled::after {
  border-color: rgba(224,235,239,.08);
  background: transparent;
}

body.hud-runtime-active #btnSwitchWeapon.disabled:not(.reloading) .reload-icon {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

body.hud-runtime-active #btnSwitchWeapon.disabled:not(.reloading) .reload-caption {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

body.hud-runtime-active #btnSwitchWeapon.locked:not(.reloading) .reload-icon {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

body.hud-runtime-active #btnSwitchWeapon.locked:not(.reloading) .reload-caption {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

:root {
  --app-safe-top: env(safe-area-inset-top,0px);
  --app-safe-right: env(safe-area-inset-right,0px);
  --app-safe-bottom: env(safe-area-inset-bottom,0px);
  --app-safe-left: env(safe-area-inset-left,0px);
}

.facility-overlay {
  padding-top: max(8px,var(--app-safe-top));
  padding-right: max(8px,var(--app-safe-right));
  padding-bottom: max(8px,var(--app-safe-bottom));
  padding-left: max(8px,var(--app-safe-left));
}

/* 收藏室：参考实体展墙，沿用唯一收藏数据与交互 Owner。 */
.facility-overlay[data-facility-view="facility_showcase"] {
  padding: 0;
  background:
    linear-gradient(rgba(255,255,255,.025),rgba(0,0,0,.08)),
    #7f2328;
}

.facility-overlay[data-facility-view="facility_showcase"] .facility-topbar {
  min-height: 66px;
  padding: max(8px,var(--app-safe-top)) 18px 8px;
  border-bottom: 5px solid #2c1813;
  background: linear-gradient(#36241e,#1f1512);
  box-shadow: 0 5px 0 rgba(255,205,128,.24);
}

.facility-overlay[data-facility-view="facility_showcase"] .facility-title-block strong {
  color: #fff;
  font-size: clamp(26px,3vw,42px);
  font-weight: 950;
  text-shadow: 0 3px 0 #000;
}

.facility-overlay[data-facility-view="facility_showcase"] .facility-title-block i {
  color: #ffd96d;
}

.facility-overlay[data-facility-view="facility_showcase"] .close-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 44px;
  text-shadow: 0 3px 0 #000;
}

.facility-overlay[data-facility-view="facility_showcase"] .facility-content {
  background:
    linear-gradient(90deg,transparent 49.5%,rgba(64,9,12,.18) 50%,transparent 50.5%) 0 0/25% 100%,
    linear-gradient(135deg,rgba(255,255,255,.035) 25%,transparent 25%) 0 0/36px 36px,
    #962c31;
}

.facility-overlay[data-facility-view="facility_showcase"] .facility-footer {
  display: none;
}

.collection-room-v123 {
  position: relative;
  min-height: 100%;
  padding: 82px 28px 32px;
}

.collection-score-v123 {
  position: absolute;
  left: 50%;
  top: 10px;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  color: #ffdc55;
  text-shadow: 0 3px 0 #5b130f, 0 0 6px rgba(255,227,89,.35);
}

.collection-score-v123 span {
  font-size: clamp(20px,2.2vw,32px);
  font-weight: 950;
}

.collection-score-v123 strong {
  font-size: clamp(34px,4vw,58px);
  line-height: .95;
}

.collection-toolbar-v123 {
  position: sticky;
  top: 0;
  z-index: 3;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 8px;
  border: 2px solid rgba(255,225,154,.5);
  border-radius: 8px;
  background: rgba(69,14,16,.84);
}

.collection-toolbar-v123 button,
.collection-search-v123 input {
  border-color: #d9a54e;
  background: #fff8e7;
  color: #32140e;
}

.collection-wall-grid-v123 {
  display: grid;
  grid-template-columns: repeat(4,minmax(150px,1fr));
  gap: 28px 24px;
  align-items: start;
}

.collection-frame-v123 {
  min-width: 0;
  padding: 12px 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.collection-frame-v123 .facility-thumb {
  position: relative;
  width: min(100%,210px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 10px;
  padding: 16px;
  border: 11px ridge #d7a65c;
  background: #f8f6f0;
  box-shadow: 8px 9px 0 rgba(62,12,13,.55), inset 0 0 0 4px #fff;
}

.collection-frame-v123 .facility-thumb::before,
.collection-frame-v123 .facility-thumb::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f4d47f;
  box-shadow: 0 0 0 3px #805528;
}

.collection-frame-v123 .facility-thumb::before {
  left: -8px;
  top: -8px;
}

.collection-frame-v123 .facility-thumb::after {
  right: -8px;
  bottom: -8px;
}

.collection-frame-v123 .facility-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-frame-v123 .facility-thumb .silhouette {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #c8bba2;
  font-size: 28px;
}

.collection-frame-v123 h4 {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 5px 14px;
  border: 2px solid #b97634;
  background: #fff9eb;
  color: #20140d;
  font-size: clamp(13px,1.5vw,20px);
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(74,19,14,.55);
}

.collection-frame-v123 p,
.collection-frame-v123 .facility-card-actions {
  display: none;
}

.collection-frame-v123.locked {
  opacity: .72;
  filter: grayscale(.45);
}

@media (max-width:900px), (max-height:520px) {
  .collection-room-v123 {
    padding: 64px 14px 20px;
  }

  .collection-wall-grid-v123 {
    grid-template-columns: repeat(4,minmax(110px,1fr));
    gap: 16px 12px;
  }

  .collection-frame-v123 {
    padding: 7px 4px;
  }

  .collection-frame-v123 .facility-thumb {
    padding: 9px;
    border-width: 7px;
  }
}


/* 1.3.0 market and twist-car facility presentation */
.facility-overlay[data-facility-view="facility_shop"] { padding:0; background:#2b2e36; }
.facility-overlay[data-facility-view="facility_shop"] .facility-topbar { min-height:70px; padding:0 22px; background:linear-gradient(110deg,#292c34 0,#292c34 38%,#353943 38%,#252831 100%); border-bottom:3px solid #111; }
.facility-overlay[data-facility-view="facility_shop"] .close-btn { width:64px; height:56px; flex-basis:64px; border:0; border-radius:0; background:transparent; color:#fff; font-size:54px; line-height:50px; box-shadow:none; }
.facility-overlay[data-facility-view="facility_shop"] .facility-title-block strong { font-size:32px; color:#fff; }
.facility-overlay[data-facility-view="facility_shop"] .facility-title-block i { display:none; }
.facility-overlay[data-facility-view="facility_shop"] .facility-header-meta { max-width:44%; }
.facility-overlay[data-facility-view="facility_shop"] .facility-badge { border:0; background:transparent; }
.facility-overlay[data-facility-view="facility_shop"] .facility-badge span { display:none; }
.facility-overlay[data-facility-view="facility_shop"] .facility-badge strong { color:#fff; font-size:27px; }
.facility-overlay[data-facility-view="facility_shop"] .facility-content { border:0; border-radius:0; background:#292c34; box-shadow:none; }
.facility-twist-car-body-v130 { display:flex; align-items:center; justify-content:center; overflow:auto; background:radial-gradient(circle at 25% 35%,rgba(255,213,62,.2),transparent 34%),linear-gradient(145deg,#17222a,#091118); }
.twist-car-offer-v130 { display:grid; grid-template-columns:minmax(230px,.85fr) minmax(330px,1.15fr); width:min(940px,94%); min-height:360px; border:2px solid rgba(255,211,77,.55); border-radius:22px; overflow:hidden; background:rgba(7,14,20,.92); box-shadow:0 24px 80px rgba(0,0,0,.44); }
.twist-car-art-v130 { display:flex; align-items:center; justify-content:center; padding:24px; background:radial-gradient(circle,rgba(255,224,73,.28),rgba(255,185,28,.04) 62%,transparent 63%); }
.twist-car-art-v130 img { display:block; width:min(310px,92%); max-height:310px; object-fit:contain; filter:drop-shadow(0 18px 12px rgba(0,0,0,.4)); }
.twist-car-copy-v130 { display:flex; flex-direction:column; justify-content:center; min-width:0; padding:34px; }
.twist-car-copy-v130>span { color:#ffd34d; font-size:11px; font-weight:900; letter-spacing:.24em; }
.twist-car-copy-v130 h2 { margin:8px 0 4px; color:#fff; font-size:42px; line-height:1; }
.twist-car-copy-v130>p { margin:5px 0 20px; color:#dce4e7; font-size:20px; font-weight:800; }
.twist-car-copy-v130 dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 18px; }
.twist-car-copy-v130 dl div { padding:10px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); }
.twist-car-copy-v130 dt { color:#8699a2; font-size:10px; }
.twist-car-copy-v130 dd { margin:4px 0 0; color:#fff; font-size:14px; font-weight:900; }
.twist-car-state-v130 { padding:10px 14px; border-left:4px solid #ffd34d; background:rgba(255,211,77,.1); color:#ffe994; font-weight:900; }
.twist-car-state-v130.active { border-left-color:#54dfa9; background:rgba(84,223,169,.1); color:#8ff3ce; }
.twist-car-state-v130.insufficient { border-left-color:#f05c69; background:rgba(240,92,105,.1); color:#ff9ca5; }
.twist-car-actions-v130 { display:flex; gap:10px; margin-top:18px; }
.twist-car-actions-v130 button { flex:1 1 0; min-height:52px; border:1px solid rgba(255,255,255,.25); background:#14232c; color:#dfe8eb; font-size:17px; font-weight:900; }
.twist-car-actions-v130 button:last-child { border-color:#ffd34d; background:#f1bd24; color:#231b06; }
.twist-car-actions-v130 button:disabled { opacity:.55; }
@media (max-width:900px),(max-height:430px) { .twist-car-offer-v130 { grid-template-columns:220px 1fr; min-height:0; } .twist-car-art-v130 { padding:12px; } .twist-car-art-v130 img { max-height:220px; } .twist-car-copy-v130 { padding:18px; } .twist-car-copy-v130 h2 { font-size:30px; } .twist-car-copy-v130>p { margin-bottom:10px; font-size:16px; } .twist-car-copy-v130 dl { margin-bottom:10px; } .twist-car-actions-v130 { margin-top:10px; } .twist-car-actions-v130 button { min-height:42px; } }

.prebattle-overlay-v98 {
  box-sizing: border-box;
  padding-top: var(--app-safe-top);
  padding-right: var(--app-safe-right);
  padding-bottom: var(--app-safe-bottom);
  padding-left: var(--app-safe-left);
}

.overlay.inventory-only {
  box-sizing: border-box;
  padding-top: var(--app-safe-top);
  padding-right: var(--app-safe-right);
  padding-bottom: var(--app-safe-bottom);
  padding-left: var(--app-safe-left);
}

#result.result-screen {
  box-sizing: border-box;
  padding-top: var(--app-safe-top);
  padding-right: var(--app-safe-right);
  padding-bottom: var(--app-safe-bottom);
  padding-left: var(--app-safe-left);
}


/* 紧凑横屏结算采用明确网格行，带出物资与操作区不再共享同一空间。 */
@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) 94px 48px;
    row-gap: 6px;
    overflow: hidden;
  }

  #result.result-success .result-header,
  #result.result-success .result-success-panel,
  #result.result-success .result-loot-section,
  #result.result-success .result-actions {
    min-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    box-sizing: border-box;
  }

  #result.result-success .result-success-panel {
    overflow: hidden;
  }

  #result.result-success .result-loot-section {
    height: 94px;
    padding: 6px 0 0;
    overflow: hidden;
  }

  #result.result-success .result-section-title {
    min-height: 25px;
    height: 25px;
    padding: 3px 8px;
  }

  #result.result-success .result-loot-list {
    min-height: 0;
    height: 63px;
    max-height: 63px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  #result.result-success .result-actions {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    height: 48px;
    padding: 0;
    align-self: stretch;
    z-index: 4;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  #result.result-success .result-shell {
    grid-template-rows: auto minmax(0, 1fr) 82px 44px;
    row-gap: 4px;
  }

  #result.result-success .result-desc {
    display: none;
  }

  #result.result-success .result-loot-section {
    height: 82px;
  }

  #result.result-success .result-loot-list {
    height: 53px;
    max-height: 53px;
  }

  #result.result-success .result-actions {
    height: 44px;
  }
}

#joystick {
  left: max(14px,var(--app-safe-left));
  bottom: max(14px,var(--app-safe-bottom));
}

#btnAttack {
  right: max(17px,var(--app-safe-right));
}

#btnSwitchWeapon {
  right: calc(max(18px,var(--app-safe-right)) + 94px);
  bottom: max(13px,var(--app-safe-bottom));
}

#quickbar {
  bottom: max(7px,var(--app-safe-bottom));
}

#btnAttack {
  animation: none;
  transition: none;
  filter: none;
  -webkit-filter: none;
  will-change: auto;
  transform: translate3d(0,0,0);
  contain: paint;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#btnSwitchWeapon {
  animation: none;
  transition: none;
  filter: none;
  -webkit-filter: none;
  will-change: auto;
  transform: translate3d(0,0,0);
  contain: paint;
  isolation: isolate;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#btnAttack:before {
  animation: none;
  transition: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#btnAttack:after {
  animation: none;
  transition: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#btnSwitchWeapon:before {
  animation: none;
  transition: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#btnSwitchWeapon:after {
  animation: none;
  transition: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#btnAttack * {
  animation: none;
  transition: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#btnSwitchWeapon * {
  animation: none;
  transition: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#btnAttack.locked {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

#btnAttack.armed {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

#btnAttack.active {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

#btnSwitchWeapon.disabled {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

#btnSwitchWeapon.ready {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

#btnSwitchWeapon.reloading {
  opacity: 1 !important;
  filter: none;
  -webkit-filter: none;
}

#reloadProgress {
  transition: none;
  animation: none;
}

#prebattleBodyV98 {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

#prepStepTextV98 {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width:900px), (max-height:520px) {
  .prebattle-shell-v98>header {
    height: 56px;
    min-height: 56px;
    padding: 0 12px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prebattle-shell-v98>header button {
    width: 42px;
    height: 42px;
    font-size: 34px;
    touch-action: manipulation;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prebattle-shell-v98>header strong {
    font-size: 21px;
  }
}

@media (max-width:900px), (max-height:520px) {
  .prebattle-shell-v98>header>b {
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (max-height:350px) {
  .prebattle-shell-v98>header {
    height: 52px;
    min-height: 52px;
  }
}

@media (max-height:350px) {
  .prebattle-shell-v98>header button {
    width: 38px;
    height: 38px;
    font-size: 31px;
  }
}

@media (max-height:350px) {
  .prebattle-shell-v98>header span {
    font-size: 9px;
  }
}

@media (max-height:350px) {
  .prebattle-shell-v98>header strong {
    font-size: 19px;
  }
}

@media (max-height:350px) {
  .prebattle-shell-v98>header>b {
    padding: 6px 10px;
    font-size: 11px;
  }
}

.tactical-rail {
  pointer-events: auto !important;
}

.tactical-rail .rail-item {
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.tactical-rail .rail-item:focus-visible {
  outline: 2px solid rgba(73,224,194,.92);
  outline-offset: -3px;
}

.tactical-rail .rail-item.active {
  color: #58e1c6;
  background: linear-gradient(90deg,rgba(25,116,105,.72),rgba(12,37,44,.46));
  box-shadow: inset 4px 0 0 #54e3c5;
}

.rail-target-pulse {
  animation: v133RailPulse .42s ease-out 1;
}

@keyframes v133RailPulse{0%{box-shadow:inset 0 0 0 2px rgba(76,226,196,.85)}
  100%{box-shadow:inset 0 0 0 0 rgba(76,226,196,0)}}

.intro-scene.intro-collage-v134 {
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 28%, rgba(255, 244, 172, .95), transparent 24%),
    linear-gradient(145deg, #ffc958 0%, #f19852 52%, #ce6842 100%);
  color: #2d1a12;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.intro-collage-v134::before,
.intro-collage-v134::after {
  content: "";
  position: absolute;
  inset: -8%;
  pointer-events: none;
}

.intro-collage-v134::before {
  opacity: .33;
  background:
    repeating-linear-gradient(7deg, transparent 0 31px, rgba(91, 48, 24, .14) 32px 34px),
    repeating-linear-gradient(97deg, transparent 0 122px, rgba(255, 255, 255, .12) 124px 128px);
  transform: rotate(-2deg);
}

.intro-collage-v134::after {
  inset: auto -5% -15% -5%;
  height: 48%;
  background: #f4e2b8;
  border-top: 14px solid #3d261a;
  transform: rotate(2deg);
  box-shadow: 0 -12px 0 rgba(255, 255, 255, .38);
}

.intro-collage-wall-v134 {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.intro-tape-v134 {
  position: absolute;
  width: clamp(90px, 12vw, 180px);
  height: clamp(22px, 3vw, 42px);
  background: rgba(247, 235, 181, .78);
  border: 1px solid rgba(86, 52, 26, .18);
  box-shadow: 0 3px 8px rgba(72, 37, 20, .18);
}

.intro-tape-v134.tape-a {
  left: 9%;
  top: 11%;
  transform: rotate(-13deg);
}

.intro-tape-v134.tape-b {
  right: 13%;
  bottom: 16%;
  transform: rotate(8deg);
}

.intro-paw-trail-v134 {
  position: absolute;
  left: 6%;
  bottom: 18%;
  color: rgba(100, 47, 30, .44);
  font-size: clamp(24px, 4vw, 60px);
  transform: rotate(-13deg);
  letter-spacing: .25em;
}

.intro-crate-stamp-v134 {
  position: absolute;
  right: 8%;
  top: 9%;
  padding: 10px 18px;
  border: 6px double rgba(126, 42, 31, .78);
  color: rgba(126, 42, 31, .86);
  font-size: clamp(15px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transform: rotate(7deg);
}

.intro-cat-v134 {
  position: absolute;
  z-index: 7;
  left: 13%;
  bottom: 5%;
  width: min(27vw, 360px);
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(12px 14px 0 rgba(89, 47, 31, .28));
  transform-origin: 50% 100%;
  animation: intro-cat-pop-v134 .7s .2s cubic-bezier(.17, .86, .25, 1.3) both,
    intro-cat-bob-v134 1.4s 1s ease-in-out infinite alternate;
}

.intro-paper-title-v134 {
  position: absolute;
  z-index: 8;
  left: 42%;
  top: 24%;
  width: min(52vw, 830px);
  padding: clamp(18px, 3vw, 42px);
  background: #fff8dd;
  border: 5px solid #332015;
  box-shadow: 14px 16px 0 rgba(78, 41, 26, .34);
  transform: rotate(-2deg);
  text-align: center;
  animation: intro-paper-drop-v134 .72s .35s cubic-bezier(.18, .9, .24, 1.2) both;
}

.intro-paper-title-v134 span,
.intro-paper-title-v134 em {
  display: block;
  color: #875032;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
}

.intro-paper-title-v134 span {
  font-size: clamp(11px, 1.5vw, 20px);
}

.intro-paper-title-v134 strong {
  display: block;
  margin: .18em 0;
  color: #e04c38;
  font-size: clamp(40px, 6.4vw, 100px);
  font-weight: 1000;
  line-height: .98;
  letter-spacing: -.06em;
  text-shadow: 3px 3px 0 #ffd858;
}

.intro-paper-title-v134 em {
  font-size: clamp(12px, 1.8vw, 25px);
}

.intro-sticker-v134 {
  position: absolute;
  z-index: 10;
  right: 9%;
  top: 57%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 104px;
  height: 104px;
  width: clamp(82px, 10vw, 148px);
  height: clamp(82px, 10vw, 148px);
  border: 7px solid #fff;
  border-radius: 50%;
  background: #48c47a;
  box-shadow: 6px 8px 0 rgba(55, 36, 20, .35);
  color: #fff;
  font-size: clamp(21px, 2.8vw, 40px);
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: rotate(10deg);
  animation: intro-sticker-v134 .45s 1.05s cubic-bezier(.2, 1.4, .4, 1) both;
}

.intro-sticker-v134:active {
  transform: rotate(10deg) scale(.94);
}

.intro-sticker-v134:focus-visible {
  outline: 4px solid #382218;
  outline-offset: 4px;
}

.intro-collage-v134 .intro-load-panel {
  z-index: 20;
  bottom: calc(28px + var(--safe-bottom, 0px));
  color: #3a2418;
}

.intro-collage-v134 .intro-load-track {
  height: 9px;
  border: 3px solid #382218;
  border-radius: 999px;
  background: rgba(255, 248, 220, .82);
  box-shadow: none;
}

.intro-collage-v134 .intro-load-track > i {
  background: linear-gradient(90deg, #4ecb7d, #ffe15b 58%, #f05a42);
  box-shadow: none;
}

.intro-collage-v134 .intro-load-panel small {
  color: #3a2418;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.intro-collage-v134.is-waiting .intro-paper-title-v134::after {
  content: "正在把最后一件宝贝塞进背包…";
  display: block;
  margin-top: 9px;
  color: #3d8d5b;
  font-size: 12px;
  font-weight: 900;
}

@keyframes intro-cat-pop-v134 {
  from { opacity: 0; transform: translateY(28%) rotate(-8deg) scale(.7); }
  to { opacity: 1; transform: translateY(0) rotate(2deg) scale(1); }
}

@keyframes intro-cat-bob-v134 {
  from { transform: translateY(0) rotate(2deg); }
  to { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes intro-paper-drop-v134 {
  from { opacity: 0; transform: translateY(-55%) rotate(8deg) scale(.78); }
  to { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); }
}

@keyframes intro-sticker-v134 {
  from { opacity: 0; transform: rotate(35deg) scale(.2); }
  to { opacity: 1; transform: rotate(10deg) scale(1); }
}

@media (max-height: 500px) and (orientation: landscape) {
  .intro-cat-v134 {
    left: 10%;
    width: min(24vw, 250px);
  }

  .intro-paper-title-v134 {
    top: 15%;
    left: 35%;
    width: 58vw;
    padding: 16px 24px;
  }

  .intro-paper-title-v134 strong {
    font-size: clamp(34px, 6vw, 68px);
  }

  .intro-sticker-v134 {
    right: 7%;
    top: 56%;
    width: 72px;
    height: 72px;
    border-width: 4px;
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-cat-v134,
  .intro-paper-title-v134,
  .intro-sticker-v134 {
    animation: none;
  }
}

body.hud-runtime-active #btnAttack {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnAttack:hover {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnAttack:focus {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnAttack:focus-visible {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnAttack:active {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnAttack.armed {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnAttack.aiming {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnAttack.locked {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnAttack.disabled {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnSwitchWeapon {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnSwitchWeapon:hover {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnSwitchWeapon:focus {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnSwitchWeapon:focus-visible {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnSwitchWeapon:active {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnSwitchWeapon.ready {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnSwitchWeapon.locked {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnSwitchWeapon.disabled {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnSwitchWeapon.reloading {
  right: auto;
  bottom: auto;
  margin: 0;
  animation: none;
  transition: none;
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  contain: layout paint;
  isolation: isolate;
  will-change: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.hud-runtime-active #btnAttack .attack-icon {
  transform: none;
  -webkit-transform: none;
  animation: none;
  transition: none;
  will-change: auto;
}

body.hud-runtime-active #btnAttack.aiming .attack-icon {
  transform: none;
  -webkit-transform: none;
  animation: none;
  transition: none;
  will-change: auto;
}

body.hud-runtime-active #btnSwitchWeapon .reload-icon {
  transform: none;
  -webkit-transform: none;
  animation: none;
  -webkit-animation: none;
  transition: none;
  will-change: auto;
}

body.hud-runtime-active #btnSwitchWeapon.reloading .reload-icon {
  transform: none;
  -webkit-transform: none;
  animation: none;
  -webkit-animation: none;
  transition: none;
  will-change: auto;
}

body.hud-runtime-active #btnSwitchWeapon:not(.reloading) .reload-icon {
  transform: none;
  -webkit-transform: none;
  animation: none;
  -webkit-animation: none;
  transition: none;
  will-change: auto;
}

body.hud-runtime-active #btnAttack * {
  transition: none;
}

body.hud-runtime-active #btnSwitchWeapon * {
  transition: none;
}

body.hud-runtime-active .hud-reference-icon {
  display: block;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
}

body.hud-runtime-active #btnAttack {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.hud-runtime-active #btnAttack .attack-icon {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  opacity: 1;
}

body.hud-runtime-active #btnAttack .attack-aim-knob,
body.hud-runtime-active #btnAttack .attack-weapon-label,
body.hud-runtime-active #btnAttack .auto-aim-badge-v74 {
  display: none !important;
}

body.hud-runtime-active #btnSwitchWeapon {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(20, 18, 16, .76);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .3);
}

body.hud-runtime-active #btnSwitchWeapon .reload-icon {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

body.hud-runtime-active #btnSwitchWeapon .reload-caption {
  display: none !important;
}

body.hud-runtime-active #operatorSkillBar .operator-skill-btn {
  display: none !important;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 18, 16, .76);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .3);
}

body.hud-runtime-active #operatorSkillBar #btnOperatorSkill1:not(.hidden) {
  display: grid !important;
  place-items: center;
}

body.hud-runtime-active #operatorSkillBar .operator-slide-glyph {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.hud-runtime-active #operatorSkillBar .operator-skill-key,
body.hud-runtime-active #operatorSkillBar .operator-skill-name {
  display: none !important;
}

body.hud-runtime-active #quickbar #btnBag.floating-bag {
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(20, 18, 16, .76);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .3);
}

body.hud-runtime-active #quickbar #btnBag img.bag-reference-icon {
  position: absolute;
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  margin: 0;
  object-fit: contain;
  transform: none;
}

body.hud-runtime-active:not([data-map="lobby"]) #btnAction.interaction-bar:not(.hidden) {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}


body.hud-runtime-active #btnAction.interaction-bar::before,
body.hud-runtime-active #btnAction.interaction-bar::after {
  content: none !important;
  display: none !important;
}

body.hud-runtime-active:not([data-map="lobby"]) #btnAction .interaction-paw {
  position: relative;
  inset: auto;
  display: block !important;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
}

body.hud-runtime-active:not([data-map="lobby"]) #btnAction .interaction-start-game {
  display: none !important;
}

body.hud-runtime-active:not([data-map="lobby"]) #btnAction .interaction-copy-v99 {
  display: flex !important;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

body.hud-runtime-active:not([data-map="lobby"]) #btnAction .interaction-copy-v99 small {
  display: block !important;
  max-width: 100%;
  overflow: hidden;
  color: #66e5c6;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .16em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.hud-runtime-active:not([data-map="lobby"]) #btnAction .interaction-label-v99 {
  display: block !important;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.hud-runtime-active:not([data-map="lobby"]) #btnTacticalMap {
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(24, 22, 19, .74);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.persistence-notice {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(430px, calc(100vw - 20px));
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(235, 176, 73, .72);
  background: rgba(8, 18, 24, .97);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .42);
  color: #eef5f7;
  font-family: sans-serif;
}

.persistence-notice.hidden {
  display: none;
}

.persistence-notice__mark {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(235, 176, 73, .82);
  color: #f2c46f;
  text-align: center;
  line-height: 28px;
  font-size: 20px;
  font-weight: 800;
}

.persistence-notice__body {
  flex: 1 1 auto;
  min-width: 0;
}

.persistence-notice__body strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  color: #f2c46f;
}

.persistence-notice__body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #d9e3e6;
}

.persistence-notice button {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 38px;
  border: 1px solid rgba(88, 212, 173, .68);
  background: rgba(16, 73, 63, .88);
  color: #eef5f7;
  font: 700 14px sans-serif;
}

@media (max-width: 720px), (max-height: 420px) {
  .persistence-notice {
    top: max(6px, env(safe-area-inset-top));
    right: max(6px, env(safe-area-inset-right));
    bottom: auto;
    width: min(360px, calc(100vw - 12px));
    padding: 7px 8px;
    gap: 8px;
  }
}

@media (max-width: 720px), (max-height: 420px) {
  .persistence-notice__mark {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
    line-height: 24px;
    font-size: 17px;
  }
}

@media (max-width: 720px), (max-height: 420px) {
  .persistence-notice__body strong {
    font-size: 12px;
  }
}

@media (max-width: 720px), (max-height: 420px) {
  .persistence-notice__body p {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 720px), (max-height: 420px) {
  .persistence-notice button {
    min-width: 64px;
    min-height: 34px;
    font-size: 12px;
  }
}

.persistence-notice {
  pointer-events: none;
}

.persistence-notice button {
  pointer-events: auto;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#stageWrap {
  position: fixed;
  left: var(--stage-x);
  top: var(--stage-y);
  width: var(--stage-w);
  height: var(--stage-h);
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  transform: none;
}

#gameFrame,
#gameCanvas {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
}

#gameFrame {
  position: relative;
  left: 0;
  top: 0;
  margin: 0;
  overflow: hidden;
}

#landscapeGateV99 {
  left: var(--stage-x);
  top: var(--stage-y);
  right: auto;
  bottom: auto;
  width: var(--stage-w);
  height: var(--stage-h);
  box-sizing: border-box;
}

#btnAttack,
#btnSwitchWeapon,
#btnAction,
#btnTacticalMap,
#quickbar button,
#bagClose,
#btnFooterClose,
#btnSortInventory {
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

#bagClose {
  position: absolute;
  left: calc(var(--safe-left) + 4px);
  top: calc(var(--safe-top) + 2px);
  width: var(--control-size-regular);
  height: var(--control-size-regular);
  min-width: var(--control-size-regular);
  min-height: var(--control-size-regular);
  padding: 0;
  overflow: hidden;
}

#bagClose > span {
  display: none;
}

#bagClose::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translate(-35%, -50%) rotate(45deg);
  transform-origin: 50% 50%;
}

.layout-landscape-compact #bagClose,
.cap-legacy-layout #bagClose {
  width: var(--control-size-compact);
  height: var(--control-size-compact);
  min-width: var(--control-size-compact);
  min-height: var(--control-size-compact);
}

#bagOverlay .tactical-title-block,
#bagOverlay .tactical-summary,
#bagOverlay .panel-heading,
#bagOverlay .panel-heading > div,
#bagOverlay .section-strip,
#bagOverlay .capacity-readout,
#bagOverlay .footer-hint,
#result .result-headline,
#result .result-metric,
.deployment-screen .deployment-copy {
  min-width: 0;
}

#bagOverlay .tactical-title-block strong,
#bagOverlay .panel-heading h2,
#bagOverlay .panel-kicker,
#bagOverlay .section-strip span,
#bagOverlay .section-strip b,
#bagOverlay .capacity-readout,
#bagOverlay .footer-hint,
#result h1,
#result .result-section-title,
#result .result-metric span,
#result .result-metric strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bagOverlay button,
#result button,
.deployment-screen button,
.prebattle-overlay button {
  line-height: 1.15;
}

#bagOverlay .item {
  overflow: hidden;
  contain: layout paint;
}

#bagOverlay .item-name {
  max-width: calc(100% - 10px);
  max-height: 2.25em;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-overflow: ellipsis;
}

#bagOverlay .item.item-square .item-name {
  max-height: 1.2em;
  white-space: nowrap;
}

#bagOverlay .item-value,
#bagOverlay .item-size,
#bagOverlay .item-stack {
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bagOverlay .item-value {
  right: 3px;
}

#bagOverlay .item-size {
  left: 3px;
}

#bagOverlay .item-stack {
  right: 2px;
  bottom: 2px;
  line-height: 1;
}

#bagOverlay .item.ammo-item .item-value {
  display: none !important;
}

.layout-landscape-compact #bagOverlay .source-grid .item.item-square .item-name,
.layout-landscape-compact #bagOverlay .rig-grid .item.item-square .item-name,
.layout-landscape-compact #bagOverlay .pocket-grid .item.item-square .item-name,
.layout-landscape-compact #bagOverlay .bag-grid .item.item-square .item-name,
.cap-legacy-layout.layout-landscape-compact #bagOverlay .grid .item.item-square .item-name {
  display: none !important;
}

.layout-landscape-compact #bagOverlay .item-value,
.layout-landscape-compact #bagOverlay .item-size,
.cap-legacy-layout.layout-landscape-compact #bagOverlay .item-value,
.cap-legacy-layout.layout-landscape-compact #bagOverlay .item-size {
  display: none !important;
}

.layout-landscape-compact #bagOverlay .item-stack,
.cap-legacy-layout.layout-landscape-compact #bagOverlay .item-stack {
  display: block !important;
  max-width: calc(100% - 4px);
  padding: 1px 2px;
  font-size: 7px;
}

body.inventory-runtime-active #bagOverlay.overlay,
#bagOverlay.overlay {
  --inventory-rail-offset: 46px;
  --inventory-footer-height: 54px;
  box-sizing: border-box;
  padding-bottom: calc(var(--inventory-footer-height) + var(--safe-bottom));
}

body.inventory-runtime-active[data-modal="warehouse"] #bagOverlay.overlay,
body[data-modal="warehouse"] #bagOverlay.overlay {
  --inventory-rail-offset: 10px;
}

#bagOverlay .tactical-topbar {
  box-sizing: border-box;
  left: var(--safe-left);
  right: var(--safe-right);
  width: auto;
  min-width: 0;
  padding-left: calc(var(--control-size-regular) + 12px);
  padding-right: 10px;
}

#bagOverlay .tactical-title-block {
  padding-left: 0;
}

#bagOverlay .inventory-shell {
  box-sizing: border-box;
  min-width: 0;
  max-width: none;
}

#bagOverlay .bag-panel,
#bagOverlay .panel-scroll {
  min-width: 0;
}

#bagOverlay .tactical-footer {
  position: absolute;
  left: calc(var(--safe-left) + var(--inventory-rail-offset));
  right: var(--safe-right);
  top: auto;
  bottom: var(--safe-bottom);
  width: auto;
  height: var(--inventory-footer-height);
  min-height: var(--inventory-footer-height);
  max-height: var(--inventory-footer-height);
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 5px 10px;
  overflow: hidden;
  z-index: var(--z-panel);
}

#bagOverlay .capacity-readout {
  flex: 1 1 auto;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bagOverlay .footer-hint {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bagOverlay #btnSortInventory,
#bagOverlay #btnFooterClose {
  position: relative;
  flex: 0 0 auto;
  top: auto;
  bottom: auto;
  margin: 0;
  height: calc(var(--inventory-footer-height) - 10px);
  min-height: calc(var(--inventory-footer-height) - 10px);
  max-height: calc(var(--inventory-footer-height) - 10px);
  padding: 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#bagOverlay #btnSortInventory {
  min-width: 96px;
}

#bagOverlay #btnFooterClose {
  min-width: 136px;
}

#bagOverlay #btnFooterClose::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 1px;
}

.layout-landscape-compact body.inventory-runtime-active #bagOverlay.overlay,
body.layout-landscape-compact.inventory-runtime-active #bagOverlay.overlay,
.cap-legacy-layout.layout-landscape-compact body.inventory-runtime-active #bagOverlay.overlay,
body.cap-legacy-layout.layout-landscape-compact.inventory-runtime-active #bagOverlay.overlay,
.layout-landscape-compact #bagOverlay.overlay,
.cap-legacy-layout.layout-landscape-compact #bagOverlay.overlay {
  --inventory-footer-height: 48px;
  padding-bottom: calc(var(--inventory-footer-height) + var(--safe-bottom));
}

.layout-landscape-compact #bagOverlay .tactical-topbar,
.cap-legacy-layout.layout-landscape-compact #bagOverlay .tactical-topbar {
  padding-left: calc(var(--control-size-compact) + 8px);
}

.layout-landscape-compact #bagOverlay .footer-hint,
.cap-legacy-layout.layout-landscape-compact #bagOverlay .footer-hint {
  display: none !important;
}

.layout-landscape-compact #bagOverlay #btnSortInventory,
.cap-legacy-layout.layout-landscape-compact #bagOverlay #btnSortInventory {
  min-width: 86px;
  padding: 0 10px;
}

.layout-landscape-compact #bagOverlay #btnFooterClose,
.cap-legacy-layout.layout-landscape-compact #bagOverlay #btnFooterClose {
  min-width: 126px;
  padding: 0 10px;
}

@media (max-width: 680px) and (orientation: landscape) {
  #bagOverlay .capacity-readout {
    font-size: 9px;
  }
  #bagOverlay #btnSortInventory {
    min-width: 78px;
  }
  #bagOverlay #btnFooterClose {
    min-width: 116px;
  }
}


/* 敌人装备搜索面板必须在自身列宽内完成布局，不能继承左侧背包格尺寸。 */
#bagOverlay .source-panel.enemy-loadout-mode,
#bagOverlay .source-panel.enemy-loadout-mode .source-scroll,
#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-sections,
#bagOverlay .source-panel.enemy-loadout-mode .container-section,
#bagOverlay .source-panel.enemy-loadout-mode .container-gear-layout {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-sections,
#bagOverlay .source-panel.enemy-loadout-mode .container-gear-layout {
  width: 100%;
  overflow-x: hidden;
}

#bagOverlay .source-panel.enemy-loadout-mode .grid,
#bagOverlay .source-panel.enemy-loadout-mode .pocket-grid,
#bagOverlay .source-panel.enemy-loadout-mode .equip-grid {
  max-width: 100%;
}

#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-sections .section-strip,
#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-sections .container-storage-wrap,
#bagOverlay .source-panel.enemy-loadout-mode .source-loadout-sections .pocket-storage-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cap-no-flex-gap #bagOverlay .tactical-footer > * + * {
  margin-left: 8px;
}

.cap-no-flex-gap #operatorSkillBar > * + * {
  margin-left: 6px;
}

.cap-no-grid #btnAttack,
.cap-no-grid #btnSwitchWeapon,
.cap-no-grid #btnTacticalMap,
.cap-no-grid #btnBag {
  display: block;
}

.cap-legacy-layout #bagOverlay .item-name,
.cap-legacy-layout #bagOverlay .item-value,
.cap-legacy-layout #bagOverlay .item-size,
.cap-legacy-layout #bagOverlay .item-stack {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cap-legacy-layout #bagOverlay .tactical-footer {
  transform: translateZ(0);
}


/* 1.3.2 U17 Plus / old WebView market and equipment interaction fallback */
.cap-legacy-layout .item,
.cap-legacy-layout .market-card-v130,
.cap-legacy-layout .market-category-v130,
.cap-legacy-layout [data-market-action],
.cap-legacy-layout [data-facility-action] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(72, 255, 190, 0.18);
}

.cap-no-grid .market-grid-v130 {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  margin: -4px;
}

.cap-no-grid .market-grid-v130 > .market-card-v130 {
  flex: 0 0 calc(25% - 8px);
  width: calc(25% - 8px);
  margin: 4px;
}

.cap-no-grid .market-detail-card-v130 {
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .cap-no-grid .market-grid-v130 > .market-card-v130 {
    flex-basis: calc(33.333% - 8px);
    width: calc(33.333% - 8px);
  }
}

.runtime-error-notice{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:680;
  width:calc(100vw - 32px);
  max-width:420px;
  padding:14px 16px;
  border:1px solid rgba(240,92,105,.72);
  border-radius:10px;
  background:rgba(16,24,31,.97);
  color:#eef5f7;
  box-shadow:0 16px 42px rgba(0,0,0,.42);
}
.runtime-error-notice strong{display:block;color:#ff9aa4;font-size:15px}
.runtime-error-notice p{margin:7px 0 12px;color:#cbd8dd;line-height:1.45}
.runtime-error-notice div{display:flex;justify-content:flex-end;gap:8px}
.runtime-error-notice button{min-width:72px;padding:7px 12px;border:1px solid rgba(143,162,173,.5);border-radius:7px;background:#152630;color:#eef5f7}
.runtime-error-notice button:first-child{border-color:#58d4ad;background:#10493f}


/* 对局教程固定在顶部中间，避开左上角地图按钮；教程渲染仍由 tutorial-controller 独占。 */
.rookie-guide[data-step="search"] .rookie-guide-card,
.rookie-guide[data-step="combat"] .rookie-guide-card,
.rookie-guide[data-step="extract"] .rookie-guide-card {
  left: 50%;
  right: auto;
  top: max(8px, var(--safe-top));
  max-width: min(440px, calc(100vw - 190px));
  transform: translateX(-50%);
}

.rookie-guide[data-step="search"] .rookie-guide-card strong,
.rookie-guide[data-step="combat"] .rookie-guide-card strong,
.rookie-guide[data-step="extract"] .rookie-guide-card strong {
  white-space: normal;
}

@media (max-height: 430px) and (orientation: landscape) {
  .rookie-guide[data-step="search"] .rookie-guide-card,
  .rookie-guide[data-step="combat"] .rookie-guide-card,
  .rookie-guide[data-step="extract"] .rookie-guide-card {
    max-width: min(360px, calc(100vw - 176px));
  }
}

/* 1.2.9: critical deployment entry must remain reachable even when persistence is unavailable. */
.deployment-primary-v103.is-loading {
  cursor: progress;
  opacity: .82;
}

/* Keep the non-blocking save warning away from bottom workflow actions. */
body.deployment-v201-active .persistence-notice,
body.prebattle-active .persistence-notice {
  top: max(6px, env(safe-area-inset-top));
  right: max(6px, env(safe-area-inset-right));
  bottom: auto;
}

/* 1.3.6 mobile-safe cosmetics loading and partial-render state. */
.cosmetics-shop-v136{display:block!important}.cosmetics-shell-v136{position:relative;z-index:1;display:grid;grid-template-columns:minmax(250px,38%) minmax(0,62%);width:100%;height:100%;min-height:0}.cosmetics-shop-v136 .cosmetics-preview-stage-v135 img{transition:opacity .16s ease;contain:layout paint style}.cosmetics-shop-v136 .cosmetics-preview-stage-v135 img.is-loading{opacity:.28}.cosmetics-shop-v136 .cosmetics-card-art-v135 img{contain:layout paint style}.cosmetics-busy-mask-v136{position:absolute;top:0;right:0;bottom:0;left:0;z-index:6;display:none;align-items:center;justify-content:center;pointer-events:none;background:rgba(7,9,10,.46)}.cosmetics-busy-mask-v136 span{padding:12px 18px;border:1px solid rgba(255,226,96,.86);background:rgba(12,14,15,.94);color:#ffe260;font-weight:900}.cosmetics-shop-v136.cosmetics-busy-v136 .cosmetics-busy-mask-v136{display:flex}.cosmetics-shop-v136.cosmetics-busy-v136 .cosmetics-tabs-v135,.cosmetics-shop-v136.cosmetics-busy-v136 .cosmetics-grid-v135{pointer-events:none}
@media (max-width:900px),(max-height:520px){.cosmetics-shell-v136{grid-template-columns:34% 66%}}

/* 1.3.7 Product Design layout: category rail + live preview + dense catalog. */
.cosmetics-shop-v137{position:relative;display:block!important;height:100%;min-height:0;padding:0!important;overflow:hidden;background:#111418 var(--cosmetics-bg) center/cover no-repeat!important;color:#f7f8fa}
.cosmetics-shop-v137:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,8,11,.92),rgba(9,12,15,.66) 37%,rgba(7,10,13,.94));pointer-events:none}
.cosmetics-shell-v137{position:relative;z-index:1;display:grid!important;grid-template-columns:minmax(104px,12%) minmax(280px,33%) minmax(0,55%)!important;width:100%;height:100%;min-height:0;background:rgba(4,7,10,.18)}
.cosmetics-tabs-v137{display:flex!important;flex-direction:column;gap:8px;margin:0!important;padding:14px 10px;border-right:1px solid rgba(255,255,255,.12);background:rgba(4,7,10,.78)}
.cosmetics-nav-title-v137{display:flex;flex-direction:column;gap:2px;padding:4px 4px 12px;color:#eef2f6}.cosmetics-nav-title-v137 strong{font-size:15px}.cosmetics-nav-title-v137 span{font-size:9px;letter-spacing:.12em;color:#7f8b98}
.cosmetics-tabs-v137 button{position:relative;display:flex!important;align-items:center;gap:9px;width:100%;min-height:48px!important;padding:0 10px!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:0!important;background:rgba(15,20,25,.88)!important;color:#d8dde3!important;text-align:left;font-size:14px;font-weight:900}
.cosmetics-tabs-v137 button i{display:block;width:7px;height:20px;background:#59636c;transform:skewX(-14deg)}
.cosmetics-tabs-v137 button.active{border-color:#ffd433!important;background:#f2c62e!important;color:#16130a!important;box-shadow:inset 4px 0 0 #fff1a4}.cosmetics-tabs-v137 button.active i{background:#15130d}
.cosmetics-preview-v137{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;min-width:0;min-height:0;padding:14px 12px!important;border-right:1px solid rgba(255,255,255,.13);background:linear-gradient(180deg,rgba(8,10,12,.18),rgba(8,10,12,.76))}
.cosmetics-preview-stage-v137{height:auto!important;min-height:0!important;padding:4px 4px 0;filter:drop-shadow(0 16px 20px rgba(0,0,0,.55))}.cosmetics-preview-stage-v137 img{max-width:100%!important;max-height:100%!important;object-fit:contain}
.cosmetics-preview-copy-v137{padding:12px 13px!important;border-left:5px solid #ffd02b!important;background:linear-gradient(90deg,rgba(4,6,8,.96),rgba(8,10,12,.72))!important}.cosmetics-preview-copy-v137>span{font-size:12px!important;color:#ffd02b!important}.cosmetics-preview-copy-v137 h2{margin:3px 0 5px!important;font-size:clamp(20px,2.2vw,32px)!important;line-height:1.08}.cosmetics-preview-copy-v137 p{margin:0 0 10px!important;color:#aeb7c1!important;font-size:11px!important;line-height:1.4}
.cosmetics-detail-v137{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:48px!important;margin:0!important;padding:9px 0 0!important;border-top:1px solid rgba(255,255,255,.16)!important;background:transparent!important}.cosmetics-detail-v137 small{color:#ffd02b!important}.cosmetics-detail-v137 strong{max-width:150px}.cosmetics-detail-v137 button{min-width:112px;min-height:40px!important;border:1px solid #ffe267!important;background:#f0c630!important;color:#14120a!important;font-weight:900}.cosmetics-detail-v137 button:disabled{border-color:#60666b!important;background:#30353a!important;color:#9fa6ac!important}
.cosmetics-catalog-v137{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;min-width:0;min-height:0;padding:14px!important;background:rgba(7,10,13,.88)!important;backdrop-filter:none!important}.cosmetics-catalog-head-v137{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;min-height:45px;padding:0 2px 9px;border-bottom:1px solid rgba(255,255,255,.14)}.cosmetics-catalog-head-v137 div{display:flex;flex-direction:column}.cosmetics-catalog-head-v137 strong{font-size:17px}.cosmetics-catalog-head-v137 span{color:#8d98a3;font-size:10px}.cosmetics-catalog-head-v137 b{color:#ffd02b;font-size:10px}
.cosmetics-grid-v137{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:minmax(126px,1fr)!important;gap:8px!important;padding:10px 2px 2px!important;overflow:auto;overscroll-behavior:contain}.cosmetics-shop-v137 .cosmetics-card-v135{position:relative;display:grid!important;grid-template-rows:minmax(78px,1fr) auto auto!important;min-width:0;min-height:120px;padding:6px!important;border:2px solid rgba(255,255,255,.14)!important;border-radius:0!important;background:linear-gradient(145deg,rgba(40,46,51,.96),rgba(16,20,24,.98))!important;color:#fff!important;overflow:hidden}.cosmetics-shop-v137 .cosmetics-card-v135.selected{border-color:#ffe028!important;box-shadow:0 0 0 2px rgba(255,224,40,.22) inset!important}.cosmetics-shop-v137 .cosmetics-card-v135.locked{opacity:.55;filter:saturate(.45)}.cosmetics-shop-v137 .cosmetics-card-art-v135{background:radial-gradient(circle,rgba(255,255,255,.12),rgba(255,255,255,.01) 70%)}.cosmetics-shop-v137 .cosmetics-card-v135 strong{font-size:12px!important;margin-top:4px}.cosmetics-shop-v137 .cosmetics-card-v135 small{font-size:9px!important;color:#bdc5cd!important}.cosmetics-card-state-v137{position:absolute;top:5px;right:5px;padding:2px 5px;background:rgba(4,7,10,.78);color:#dce2e8;font-size:8px;font-style:normal;font-weight:900}.cosmetics-card-v135.selected .cosmetics-card-state-v137{background:#ffd02b;color:#17130a}
@media (max-width:980px),(max-height:520px){.cosmetics-shell-v137{grid-template-columns:94px minmax(230px,31%) minmax(0,1fr)!important}.cosmetics-tabs-v137{padding:8px 7px;gap:5px}.cosmetics-tabs-v137 button{min-height:38px!important;padding:0 7px!important;font-size:12px}.cosmetics-nav-title-v137{padding-bottom:6px}.cosmetics-preview-v137{padding:8px!important}.cosmetics-preview-copy-v137{padding:8px 9px!important}.cosmetics-preview-copy-v137 p{display:none}.cosmetics-detail-v137{min-height:38px!important;padding-top:6px!important}.cosmetics-detail-v137 button{min-height:34px!important;min-width:98px}.cosmetics-catalog-v137{padding:8px!important}.cosmetics-catalog-head-v137{min-height:36px;padding-bottom:5px}.cosmetics-grid-v137{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:104px!important;gap:6px!important;padding-top:6px!important}.cosmetics-shop-v137 .cosmetics-card-v135{min-height:98px;grid-template-rows:minmax(58px,1fr) auto auto!important}}
.cap-no-grid .cosmetics-shell-v137{display:flex!important}.cap-no-grid .cosmetics-tabs-v137{flex:0 0 94px}.cap-no-grid .cosmetics-preview-v137{flex:0 0 31%}.cap-no-grid .cosmetics-catalog-v137{flex:1 1 auto}.cap-no-grid .cosmetics-grid-v137{display:flex!important;flex-wrap:wrap;align-content:flex-start}.cap-no-grid .cosmetics-grid-v137>.cosmetics-card-v135{flex:0 0 calc(25% - 7px);height:126px}@media (max-width:980px),(max-height:520px){.cap-no-grid .cosmetics-grid-v137>.cosmetics-card-v135{flex-basis:calc(33.333% - 6px);height:104px}}

/* 1.3.17 free cosmetic experience UI */
.cosmetics-shop-v1311 .cosmetics-preview-copy-v137{padding-bottom:10px!important}
.cosmetics-free-access-v1317{display:flex;align-items:center;gap:8px;min-height:30px;margin:7px 0 8px;padding:5px 7px;border:1px solid rgba(255,211,45,.42);background:rgba(7,9,11,.72);color:#f4f1e5;font-size:10px;font-weight:800}
.cosmetics-free-mark-v1317{display:grid;place-items:center;flex:0 0 28px;width:28px;height:22px;border:2px solid #111;background:#111;color:#fff;font-size:12px;line-height:1}
.cosmetics-primary-action-v1311{position:relative;min-width:210px!important;width:210px;min-height:50px!important;padding:0 12px!important;border:3px solid #111!important;background:#ffd52f!important;color:#111!important;box-shadow:0 3px 0 rgba(0,0,0,.46);font-size:15px;font-weight:1000!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cosmetics-primary-action-v1311:disabled{border-color:#555!important;background:#34383c!important;color:#a8afb5!important;box-shadow:none}
.cosmetics-card-state-v1311{display:flex;align-items:center;justify-content:center;min-width:38px;min-height:20px;border:1px solid rgba(255,255,255,.26)}
@media (max-width:980px),(max-height:520px){
  .cosmetics-free-access-v1317{min-height:24px;margin:4px 0 5px;padding:3px 5px;font-size:9px}
  .cosmetics-free-mark-v1317{flex-basis:24px;width:24px;height:19px;font-size:10px}
  .cosmetics-primary-action-v1311{min-width:180px!important;width:180px;min-height:44px!important;font-size:13px}
}
@media (max-width:780px),(max-height:380px){
  .cosmetics-primary-action-v1311{min-width:156px!important;width:156px;min-height:40px!important;padding:0 7px!important;font-size:11px}
  .cosmetics-detail-v137>div{max-width:94px}
  .cosmetics-free-access-v1317 b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
.cap-no-grid .cosmetics-primary-action-v1311{flex:0 0 auto}


/* 1.3.11 raid controls: abandon action + manual/auto aim selector. */
.raid-abandon-btn,
.aim-mode-btn{
  position:fixed;
  box-sizing:border-box;
  margin:0;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  overflow:visible;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  -webkit-user-select:none;
}
.raid-abandon-btn img,
.aim-mode-btn img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
}
.raid-abandon-btn{filter:drop-shadow(0 3px 5px rgba(0,0,0,.38))}
.raid-abandon-btn:active{filter:brightness(.82) drop-shadow(0 2px 3px rgba(0,0,0,.35))}
.aim-mode-btn{opacity:.62;filter:saturate(.72) brightness(.78);transition:opacity .12s ease,filter .12s ease}
.aim-mode-btn.active{opacity:1;filter:saturate(1.08) brightness(1.04) drop-shadow(0 0 4px rgba(73,255,173,.35))}
.aim-mode-btn:active{opacity:.86}
#btnAttack.manual-fire-mode{border-color:rgba(106,235,224,.78)!important;box-shadow:0 0 0 2px rgba(69,214,202,.2),0 8px 18px rgba(0,0,0,.36)!important}
#btnAttack.manual-fire-mode .attack-aim-knob{border-color:rgba(208,255,250,.92);background:rgba(63,204,194,.44)}

.raid-abandon-overlay{
  position:fixed;
  inset:0;
  z-index:5200;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:max(16px,var(--safe-top,0px)) max(16px,var(--safe-right,0px)) max(16px,var(--safe-bottom,0px)) max(16px,var(--safe-left,0px));
  background:rgba(2,7,11,.72);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}
.raid-abandon-overlay.hidden{display:none!important}
.raid-abandon-card{
  width:min(430px,calc(100vw - 32px));
  box-sizing:border-box;
  padding:18px 20px 16px;
  border:1px solid rgba(255,255,255,.18);
  border-top:4px solid #e85a54;
  border-radius:10px;
  background:rgba(13,19,24,.97);
  color:#f4f7f9;
  box-shadow:0 22px 58px rgba(0,0,0,.56);
  text-align:left;
}
.raid-abandon-card small{display:block;color:#e87068;font-size:10px;font-weight:900;letter-spacing:.16em}
.raid-abandon-card h2{margin:7px 0 8px;font-size:21px;line-height:1.2}
.raid-abandon-card p{margin:0;color:#b7c3ca;font-size:13px;line-height:1.55}
.raid-abandon-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.raid-abandon-actions button{
  min-width:118px;
  min-height:42px;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:7px;
  background:#1a2730;
  color:#edf3f6;
  font-size:14px;
  font-weight:900;
  touch-action:manipulation;
}
.raid-abandon-actions #btnRaidAbandonYes{border-color:#e85a54;background:#8f2d2a;color:#fff}
.raid-abandon-actions button:active{filter:brightness(.82)}
@media (max-height:430px) and (orientation:landscape){
  .raid-abandon-card{width:min(400px,calc(100vw - 24px));padding:13px 16px 12px}
  .raid-abandon-card h2{font-size:18px;margin:4px 0 5px}
  .raid-abandon-card p{font-size:12px;line-height:1.4}
  .raid-abandon-actions{margin-top:10px}
  .raid-abandon-actions button{min-height:36px;min-width:105px;padding:6px 10px;font-size:12px}
}

/* 1.3.12 raid controls: one-button aim mode toggle + visible abort failure feedback. */
.aim-mode-toggle{opacity:1;filter:none}
.aim-mode-toggle.auto{filter:drop-shadow(0 0 4px rgba(82,255,143,.24))}
.aim-mode-toggle.manual{filter:drop-shadow(0 0 4px rgba(218,232,238,.18))}
.raid-abort-fail-notice{
  position:fixed;
  inset:0;
  z-index:5400;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(3,7,10,.68);
  pointer-events:none;
  box-sizing:border-box;
}
.raid-abort-fail-notice.hidden{display:none!important}
.raid-abort-fail-notice strong{
  display:block;
  min-width:220px;
  padding:22px 34px;
  border:2px solid rgba(239,83,78,.9);
  border-radius:14px;
  background:rgba(12,18,23,.94);
  color:#fff;
  box-shadow:0 16px 44px rgba(0,0,0,.45);
  font:900 30px/1.1 sans-serif;
  text-align:center;
  letter-spacing:.08em;
}
@media (max-width:780px),(max-height:380px){
  .raid-abort-fail-notice strong{min-width:170px;padding:16px 24px;border-radius:11px;font-size:22px}
}

/* ========================================================================== */
/* 1.3.12 GF233 27.2.4 source-migrated warehouse / searched-loot UI          */
/* Source basis: GF233 styles/src/96-warehouse-exchange.css + 99/100 fixes.   */
/* Business state and inventory writes remain owned by 1.3.12 InventoryStore. */
/* ========================================================================== */
#bagOverlay.inventory-key-ui.overlay {
  padding: calc(var(--safe-top) + 52px) calc(var(--safe-right) + 12px) calc(var(--safe-bottom) + 12px) calc(var(--safe-left) + 12px);
  background:
    linear-gradient(90deg, rgba(4, 7, 10, .78), rgba(8, 11, 16, .92)),
    radial-gradient(circle at 50% 46%, rgba(121, 91, 45, .12), transparent 44%),
    #080b10;
}
#bagOverlay.inventory-key-ui.overlay::before {
  opacity: .1;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 5px 5px;
}
#bagOverlay.inventory-key-ui .tactical-topbar {
  height: 48px;
  border-bottom-color: rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(28,31,37,.98), rgba(18,21,27,.96));
}
#bagOverlay.inventory-key-ui .tactical-title-block {
  min-width: 210px;
  padding-left: calc(var(--safe-left) + 58px);
  grid-gap: 10px;
}
#bagOverlay.inventory-key-ui .tactical-title-block strong { font-size: 18px; color: #f0f1f2; }
#bagOverlay.inventory-key-ui .tactical-title-block strong::before { width: 4px; height: 22px; background: #f1d53a; box-shadow: none; }
#bagOverlay.inventory-key-ui .tactical-title-block i,
#bagOverlay.inventory-key-ui .tactical-summary,
#bagOverlay.inventory-key-ui .tactical-rail,
#bagOverlay.inventory-key-ui .tactical-footer { display: none !important; }
#bagOverlay.inventory-key-ui .close-btn {
  left: calc(var(--safe-left) + 7px);
  top: 5px;
  width: 40px;
  height: 40px;
  color: #e6e8ea;
}
#bagOverlay.inventory-key-ui .inventory-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  align-items: stretch;
  justify-content: stretch;
  gap: 14px !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  overflow: hidden;
}
#bagOverlay.inventory-key-ui .bag-panel {
  display: flex;
  flex-direction: column;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(180deg, rgba(42,45,53,.98), rgba(30,33,40,.99));
  box-shadow: 0 12px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
  contain: layout paint;
}
#bagOverlay.inventory-key-ui .panel-heading {
  flex: 0 0 52px;
  min-height: 52px;
  padding: 6px 12px 5px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, rgba(255,255,255,.08), transparent 36%), linear-gradient(180deg, #383b43, #2b2e35);
}
#bagOverlay.inventory-key-ui .panel-heading::after { display: none; }
#bagOverlay.inventory-key-ui .panel-kicker { margin-bottom: 1px; color: #90959d; font-size: 8px; letter-spacing: .16em; }
#bagOverlay.inventory-key-ui .bag-panel h2 { color: #f4f4f4; font-size: 24px; line-height: 1; font-weight: 900; letter-spacing: .02em; }
#bagOverlay.inventory-key-ui .panel-heading-stats { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
#bagOverlay.inventory-key-ui .panel-capacity { min-width: 56px; padding: 0; color: #9ca1a8; font-size: 11px; text-align: right; }
#bagOverlay.inventory-key-ui .panel-total { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
#bagOverlay.inventory-key-ui .panel-total span { color: #d7ad25; font-size: 10px; font-weight: 800; }
#bagOverlay.inventory-key-ui .panel-total strong { color: #efc62e; font-size: 18px; line-height: 1; font-weight: 950; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
#bagOverlay.inventory-key-ui .bag-scroll,
#bagOverlay.inventory-key-ui .source-scroll { flex: 1 1 auto; min-height: 0; padding: 7px 8px 10px; background: rgba(17,20,25,.92); overflow-y: auto; overflow-x: hidden; }
#bagOverlay.inventory-key-ui .section-strip {
  position: relative;
  top: auto;
  height: 28px;
  min-height: 28px;
  margin: 0 0 5px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(55,58,66,.95), rgba(37,40,47,.95));
  color: #e0e1e3;
  font-size: 11px;
}
#bagOverlay.inventory-key-ui .section-strip span::before { width: 3px; height: 13px; margin-right: 6px; background: #f1d53a; }
#bagOverlay.inventory-key-ui .section-strip b { color: #aeb2b8; }
#bagOverlay.inventory-key-ui .backpack-panel .equip-strip { margin-bottom: 4px; }
#bagOverlay.inventory-key-ui .equip-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: 82px 62px !important;
  grid-auto-rows: 62px !important;
  gap: 4px !important;
  height: auto !important;
  min-height: 148px !important;
  margin: 0 0 8px !important;
  border: 0;
  background: transparent;
}
#bagOverlay.inventory-key-ui .equip-slot {
  min-height: 0 !important;
  height: auto !important;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(145deg, rgba(135,44,46,.34), transparent 62%), #44292d;
}
#bagOverlay.inventory-key-ui .equip-slot-weapon { grid-column: span 2; }
#bagOverlay.inventory-key-ui .equip-slot-helmet,
#bagOverlay.inventory-key-ui .equip-slot-body_armor,
#bagOverlay.inventory-key-ui .equip-slot-chest_rig,
#bagOverlay.inventory-key-ui .equip-slot-backpack { background: linear-gradient(145deg, rgba(255,255,255,.04), transparent 64%), #303238; }
#bagOverlay.inventory-key-ui .slot-label { left: 7px; top: auto; bottom: 6px; color: rgba(235,237,239,.72); font-size: 10px; font-weight: 800; }
#bagOverlay.inventory-key-ui .warehouse-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  min-height: 38px;
  margin: 0 0 6px;
  padding: 0 5px 0 10px;
  border: 1px solid #718392;
  background: linear-gradient(180deg, #42586a 0%, #394d5e 56%, #304352 100%);
  color: #eef3f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.34);
}
#bagOverlay.inventory-key-ui .warehouse-actions-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
#bagOverlay.inventory-key-ui .warehouse-actions-label span { font-size: 17px; font-weight: 950; letter-spacing: .04em; }
#bagOverlay.inventory-key-ui .warehouse-actions-label b { color: #cbd3d9; font-size: 12px; font-weight: 900; }
#bagOverlay.inventory-key-ui .warehouse-actions button {
  min-width: 92px;
  height: 28px;
  min-height: 28px;
  padding: 0 13px;
  border: 2px solid #899baa;
  background: linear-gradient(180deg, #465d70 0%, #374b5d 58%, #293b4b 100%);
  color: #f2f5f7;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 1px 0 rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.35);
}
#bagOverlay.inventory-key-ui .carry-section { margin-bottom: 7px; }
#bagOverlay.inventory-key-ui .container-gear-layout { gap: 5px; }
#bagOverlay.inventory-key-ui .container-equip-host { flex-basis: 58px; width: 58px; height: 58px; min-width: 58px; min-height: 58px; }
#bagOverlay.inventory-key-ui .container-storage-wrap,
#bagOverlay.inventory-key-ui .container-empty-note { min-height: 48px; }
#bagOverlay.inventory-key-ui .source-panel { padding-bottom: 0; }
#bagOverlay.inventory-key-ui .source-panel .panel-heading { padding-right: 14px; }
#bagOverlay.inventory-key-ui .source-panel .source-scroll { padding: 8px 9px 8px; }
#bagOverlay.inventory-key-ui .source-generic-section > .section-strip { display: none; }
#bagOverlay.inventory-key-ui .source-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 100px !important;
  width: 100% !important;
  max-width: none !important;
  gap: 6px !important;
  padding: 0;
  border: 0;
  background: transparent;
  align-content: start;
}
#bagOverlay.inventory-key-ui .source-grid > .slot {
  width: auto !important;
  height: 100px !important;
  min-height: 100px !important;
  border: 1px solid rgba(255,255,255,.12);
  background: #25282e;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
}
#bagOverlay.inventory-key-ui .source-grid > .slot.warehouse-rarity-normal { background: linear-gradient(145deg, rgba(68,166,75,.28), transparent 66%), #2e7139; }
#bagOverlay.inventory-key-ui .source-grid > .slot.warehouse-rarity-rare { background: linear-gradient(145deg, rgba(64,128,202,.36), transparent 66%), #2e67a6; }
#bagOverlay.inventory-key-ui .source-grid > .slot.warehouse-rarity-epic,
#bagOverlay.inventory-key-ui .source-grid > .slot.warehouse-rarity-legendary { background: linear-gradient(145deg, rgba(131,91,210,.4), transparent 66%), #6348a8; }
#bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border: 0; background: transparent !important; box-shadow: none; }
#bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card::before { display: none; }
#bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card .item-name { left: 5px; right: 5px; top: 5px; color: #f4f4f4; font-size: 11px; line-height: 1.05; font-weight: 900; }
#bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card .item-art-img { left: 10%; top: 21%; width: 80%; height: 58%; opacity: 1; -webkit-filter: saturate(.95) contrast(1.02) brightness(1.02) drop-shadow(0 3px 2px rgba(0,0,0,.5)); filter: saturate(.95) contrast(1.02) brightness(1.02) drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
#bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card .item-value { right: 5px; bottom: 5px; color: #f0db35; font-size: 12px; font-weight: 950; text-shadow: 0 1px 1px #000; }
#bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card .item-value:not(:empty)::before { display: none; }
#bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card .item-size,
#bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card .storage-capacity-tag { display: none; }

/* GF233 v27.2.3: player loadout stays two-row; enemy loadout is one comparison row. */
#bagOverlay.inventory-key-ui #equipGrid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: 82px 62px !important;
  grid-auto-rows: 62px !important;
  height: auto !important;
  min-height: 148px !important;
  gap: 4px !important;
  margin: 0 0 8px !important;
}
#bagOverlay.inventory-key-ui #equipGrid > .equip-slot { width: auto !important; height: 100% !important; min-height: 0 !important; }
#bagOverlay.inventory-key-ui #equipGrid > .equip-slot-weapon { grid-column: span 2 !important; }
#bagOverlay.inventory-key-ui .source-panel.enemy-loadout-mode #sourceEquipGrid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: 82px !important;
  grid-auto-rows: 82px !important;
  height: 82px !important;
  min-height: 82px !important;
  gap: 4px !important;
  margin-bottom: 8px !important;
}
#bagOverlay.inventory-key-ui .source-panel.enemy-loadout-mode #sourceEquipGrid > .equip-slot { grid-column: span 1 !important; width: auto !important; height: 82px !important; min-height: 82px !important; }
#bagOverlay.inventory-key-ui .source-panel:not(.enemy-loadout-mode) .source-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; width: 100% !important; max-width: none !important; }

/* GF233 v27.2.4: high-specificity iPhone containment fix. */
body[data-modal="container"] #bagOverlay.inventory-key-ui #equipGrid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: 82px 62px !important;
  grid-auto-rows: 62px !important;
  height: 148px !important;
  min-height: 148px !important;
  gap: 4px !important;
  margin-bottom: 8px !important;
  overflow: hidden !important;
}
body[data-modal="container"] #bagOverlay.inventory-key-ui #equipGrid > .equip-slot { width: auto !important; height: auto !important; min-height: 0 !important; align-self: stretch !important; overflow: hidden !important; }
body[data-modal="container"] #bagOverlay.inventory-key-ui #equipGrid > .equip-slot-weapon { grid-column: span 2 !important; }
body[data-modal="container"] #bagOverlay.inventory-key-ui #equipGrid > .equip-slot .item.equipped { max-height: calc(100% - 6px) !important; }

/* GF233 equipment visibility regression guard. */
#bagOverlay.inventory-key-ui .equip-grid { position: relative; overflow: visible; align-items: stretch !important; justify-items: stretch !important; }
#bagOverlay.inventory-key-ui .equip-slot { position: relative; display: block !important; align-self: stretch; width: auto !important; height: 100% !important; visibility: visible !important; opacity: 1 !important; overflow: hidden; }
#bagOverlay.inventory-key-ui .equip-slot.has-item { border-color: rgba(239,205,51,.38); background: linear-gradient(145deg, rgba(239,205,51,.10), transparent 66%), #20242a; }
#bagOverlay.inventory-key-ui .equip-slot .item.equipped { display: block !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; z-index: 6 !important; }
#bagOverlay.inventory-key-ui .equip-slot .item.equipped .item-art-img { display: block !important; visibility: visible !important; opacity: 1 !important; }
#bagOverlay.inventory-key-ui .equip-slot .item.equipped-weapon .item-art-img { left: 7% !important; top: 20% !important; width: 86% !important; height: 66% !important; }
#bagOverlay.inventory-key-ui .equip-slot .item.equipped-gear .item-art-img { left: 18% !important; top: 18% !important; width: 64% !important; height: 64% !important; }

@media (max-height: 560px) and (orientation: landscape) {
  #bagOverlay.inventory-key-ui.overlay {
    padding-top: calc(var(--safe-top) + 44px);
    padding-right: calc(var(--safe-right) + 7px);
    padding-bottom: calc(var(--safe-bottom) + 7px);
    padding-left: calc(var(--safe-left) + 7px);
  }
  #bagOverlay.inventory-key-ui .tactical-topbar { height: 42px; }
  #bagOverlay.inventory-key-ui .inventory-shell { grid-template-columns: minmax(0, 43%) minmax(0, 57%); gap: 7px !important; }
  #bagOverlay.inventory-key-ui .panel-heading { flex-basis: 42px; min-height: 42px; padding: 4px 8px; }
  #bagOverlay.inventory-key-ui .bag-panel h2 { font-size: 19px; }
  #bagOverlay.inventory-key-ui .panel-total strong { font-size: 14px; }
  #bagOverlay.inventory-key-ui .panel-total span,
  #bagOverlay.inventory-key-ui .panel-kicker { font-size: 7px; }
  #bagOverlay.inventory-key-ui .panel-capacity { font-size: 9px; }
  #bagOverlay.inventory-key-ui .equip-grid,
  #bagOverlay.inventory-key-ui #equipGrid,
  body[data-modal="container"] #bagOverlay.inventory-key-ui #equipGrid {
    grid-template-rows: 58px 48px !important;
    grid-auto-rows: 48px !important;
    height: 110px !important;
    min-height: 110px !important;
    gap: 3px !important;
  }
  #bagOverlay.inventory-key-ui .warehouse-actions { height: 31px; min-height: 31px; }
  #bagOverlay.inventory-key-ui .warehouse-actions-label span { font-size: 14px; }
  #bagOverlay.inventory-key-ui .warehouse-actions button { height: 24px; min-height: 24px; font-size: 10px; }
  #bagOverlay.inventory-key-ui .section-strip { height: 23px; min-height: 23px; font-size: 9px; }
  #bagOverlay.inventory-key-ui .container-equip-host { flex-basis: 46px; width: 46px; height: 46px; min-width: 46px; min-height: 46px; }
  #bagOverlay.inventory-key-ui .source-grid { grid-auto-rows: 76px !important; gap: 4px !important; }
  #bagOverlay.inventory-key-ui .source-grid > .slot { height: 76px !important; min-height: 76px !important; }
  #bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card .item-name,
  #bagOverlay.inventory-key-ui .source-grid .item.warehouse-item-card .item-value { font-size: 9px; }
  #bagOverlay.inventory-key-ui .source-panel.enemy-loadout-mode #sourceEquipGrid { grid-template-rows: 58px !important; grid-auto-rows: 58px !important; height: 58px !important; min-height: 58px !important; }
  #bagOverlay.inventory-key-ui .source-panel.enemy-loadout-mode #sourceEquipGrid > .equip-slot { height: 58px !important; min-height: 58px !important; }
}
@media (max-width: 840px) and (orientation: landscape) {
  #bagOverlay.inventory-key-ui .inventory-shell { grid-template-columns: minmax(0, 44%) minmax(0, 56%); }
  #bagOverlay.inventory-key-ui .panel-heading-stats { gap: 5px; }
  #bagOverlay.inventory-key-ui .carry-panel-total { display: none; }
  #bagOverlay.inventory-key-ui .source-grid { grid-auto-rows: 70px !important; }
  #bagOverlay.inventory-key-ui .source-grid > .slot { height: 70px !important; min-height: 70px !important; }
}

/* ===== End GF233 source-migrated inventory UI ===== */

/* 1.3.15 Safe Crack v1 */
.safe-crack-overlay{position:fixed;inset:0;z-index:2600;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:radial-gradient(circle at 50% 44%,rgba(19,52,58,.5),rgba(2,7,11,.93) 64%);backdrop-filter:blur(4px)}
.safe-crack-card{width:min(760px,94vw);max-height:94vh;overflow:hidden;border:1px solid rgba(92,223,188,.48);border-radius:16px;background:linear-gradient(180deg,#0a1820,#071116 62%,#050c11);box-shadow:0 28px 80px rgba(0,0,0,.58),inset 0 0 42px rgba(42,187,153,.06);color:#e7f2f2}
.safe-crack-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid rgba(85,129,141,.32);background:linear-gradient(90deg,rgba(25,70,70,.35),transparent)}
.safe-crack-header small{display:block;color:#6a8b94;font-size:10px;letter-spacing:.28em;font-weight:800}.safe-crack-header h2{margin:5px 0 0;font-size:24px;letter-spacing:.08em}.safe-crack-close{width:42px;height:42px;border:1px solid #34545e;border-radius:8px;background:#0a1720;color:#b9cbd0;font-size:27px;line-height:1}
.safe-crack-statusline{display:flex;justify-content:space-between;padding:13px 20px 0;color:#82aaa8;font-size:12px;font-weight:700;letter-spacing:.08em}.safe-crack-hint{margin:8px 20px 12px;color:#b2c4c5;font-size:13px;text-align:center}
.safe-reel-stage{position:relative;margin:0 20px;height:318px;overflow:hidden;border:1px solid #23434a;border-radius:12px;background:linear-gradient(180deg,rgba(4,10,14,.92),rgba(13,28,34,.96) 49%,rgba(4,10,14,.92));box-shadow:inset 0 0 38px rgba(0,0,0,.72)}
.safe-reels{height:100%;display:grid;grid-template-columns:repeat(var(--safe-columns,5),minmax(0,1fr));gap:7px;padding:0 12px}.safe-reel{position:relative;height:100%;overflow:hidden;border-left:1px solid rgba(64,105,114,.2);border-right:1px solid rgba(64,105,114,.2)}.safe-reel.locked{background:linear-gradient(180deg,transparent,rgba(51,193,155,.09),transparent)}
.safe-reel-track{position:absolute;left:0;right:0;top:0;will-change:transform}.safe-symbol{height:64px;display:flex;align-items:center;justify-content:center;color:#8da4aa;font-size:30px;font-weight:900;text-shadow:0 1px 0 #000;transition:color .08s,transform .08s,opacity .08s}.safe-symbol.target{color:#67e3b5;text-shadow:0 0 15px rgba(77,223,175,.44)}.safe-reel.locked .safe-symbol{opacity:.25}.safe-reel.locked .safe-symbol.safe-locked-symbol{opacity:1;color:#6bf0bd;transform:scale(1.18)}
.safe-judge-band{position:absolute;left:0;right:0;top:50%;height:64px;transform:translateY(-50%);pointer-events:none;border-top:2px solid rgba(90,224,184,.8);border-bottom:2px solid rgba(90,224,184,.8);background:linear-gradient(90deg,rgba(32,133,112,.09),rgba(63,225,177,.16),rgba(32,133,112,.09));box-shadow:0 0 22px rgba(57,210,170,.1)}.safe-judge-band i{position:absolute;inset:8px 10px;border:1px solid rgba(117,238,202,.22);border-radius:5px}
.safe-crack-progress{display:flex;justify-content:center;gap:8px;padding:13px 12px 4px}.safe-progress-dot{width:28px;height:5px;border-radius:5px;background:#203b41;border:1px solid #31545d}.safe-progress-dot.active{background:#d8a94b;border-color:#e5bf6c}.safe-progress-dot.done{background:#51d5aa;border-color:#70eac0;box-shadow:0 0 9px rgba(81,213,170,.28)}
.safe-crack-footer{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:12px;padding:14px 20px 18px}.safe-crack-footer span{color:#8ea7ab;font-size:12px}.safe-crack-lock{height:50px;border:1px solid #63e2ba;border-radius:8px;background:linear-gradient(180deg,#16886f,#116450);color:#f4fffb;font-size:17px;font-weight:900;letter-spacing:.28em;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.safe-crack-lock:active{transform:translateY(1px)}
.safe-crack-card.safe-miss .safe-reel-stage{animation:safeMiss .16s linear 2;border-color:#c85962}.safe-crack-card.safe-success .safe-reel-stage{border-color:#66ecc0;box-shadow:inset 0 0 38px rgba(53,219,169,.12),0 0 34px rgba(53,219,169,.16)}
.safe-crack-overlay[data-safe-window="true"] .safe-crack-lock{border-color:#9dffd9;box-shadow:0 0 0 2px rgba(97,238,190,.16),0 0 18px rgba(72,226,176,.28),inset 0 0 0 1px rgba(255,255,255,.1)}
@keyframes safeMiss{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
@media(max-height:500px){.safe-crack-card{width:min(720px,96vw)}.safe-crack-header{height:52px;padding:0 14px}.safe-crack-header h2{font-size:18px;margin-top:2px}.safe-crack-statusline{padding:7px 14px 0}.safe-crack-hint{margin:4px 14px 7px;font-size:11px}.safe-reel-stage{height:190px;margin:0 14px}.safe-symbol{height:42px;font-size:22px}.safe-judge-band{height:42px}.safe-crack-progress{padding:7px 10px 2px}.safe-crack-footer{padding:7px 14px 10px;grid-template-columns:minmax(0,1fr) 150px}.safe-crack-lock{height:40px;font-size:14px}.safe-crack-close{width:36px;height:36px}}
@media(max-width:760px){.safe-reels{gap:3px;padding:0 6px}.safe-symbol{font-size:23px}.safe-crack-footer{grid-template-columns:minmax(0,1fr) 138px}.safe-crack-lock{letter-spacing:.15em}}
/* 1.3.15 safe crack short-landscape hard fit */
@media(max-height:420px){
  .safe-crack-overlay{padding:4px 8px}
  .safe-crack-card{width:min(740px,98vw);max-height:calc(100vh - 8px)}
  .safe-crack-header{height:42px;padding:0 10px}
  .safe-crack-header h2{font-size:16px;margin-top:0}.safe-crack-header small{font-size:8px}
  .safe-crack-close{width:30px;height:30px;font-size:21px}
  .safe-crack-statusline{padding:4px 10px 0;font-size:10px}
  .safe-crack-hint{margin:2px 10px 4px;font-size:10px;line-height:1.2}
  .safe-reel-stage{height:148px;margin:0 10px}
  .safe-symbol{height:34px;font-size:19px}.safe-judge-band{height:34px}
  .safe-crack-progress{padding:4px 8px 1px;gap:5px}.safe-progress-dot{height:4px;width:24px}
  .safe-crack-footer{padding:4px 10px 6px;grid-template-columns:minmax(0,1fr) 128px;gap:8px}
  .safe-crack-footer span{font-size:10px}.safe-crack-lock{height:34px;font-size:12px}
}

/* 1.3.16 startup fast path: avoid expensive continuous effects on constrained mobile WebViews. */
body.startup-constrained .intro-cat-v134 {
  filter: none;
  -webkit-filter: none;
  animation: intro-cat-pop-v134 .46s .08s cubic-bezier(.17,.86,.25,1.2) both;
  will-change: auto;
}
body.startup-constrained .intro-paper-title-v134 {
  animation-duration: .46s;
  animation-delay: .12s;
  will-change: auto;
}
body.startup-constrained .intro-sticker-v134 {
  animation-duration: .3s;
  animation-delay: .38s;
  will-change: auto;
}

/* 1.3.17 奶娃三角洲：皮肤商人四角色开场巡展。 */
.intro-collage-v134 .intro-paper-title-v134 {
  left: 50%;
  top: 4%;
  width: min(56vw,760px);
  padding: clamp(8px,1.4vw,18px) clamp(18px,2.5vw,34px);
  transform: translateX(-50%) rotate(-1deg);
  animation: intro-tour-title-in-v1317 .58s .12s cubic-bezier(.18,.9,.24,1.2) both;
}
.intro-collage-v134 .intro-paper-title-v134 strong {
  margin: .08em 0;
  font-size: clamp(34px,5.2vw,78px);
  letter-spacing: -.035em;
}
.intro-outfit-tour-v1317 {
  position: absolute;
  z-index: 9;
  left: max(3vw,var(--safe-left,0px));
  right: max(3vw,var(--safe-right,0px));
  bottom: calc(62px + var(--safe-bottom,0px));
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: end;
  gap: clamp(7px,1.4vw,22px);
  height: min(55vh,510px);
  pointer-events: none;
}
.intro-outfit-card-v1317 {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  transform-origin: 50% 100%;
  animation: intro-tour-card-in-v1317 .52s calc(.28s + var(--intro-tour-index) * .12s) cubic-bezier(.16,.9,.26,1.22) forwards;
}
.intro-outfit-viewport-v1317 {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border: clamp(2px,.35vw,5px) solid #382218;
  border-bottom: 0;
  background: linear-gradient(155deg,rgba(255,248,220,.92),rgba(255,221,117,.76));
  box-shadow: 7px 8px 0 rgba(76,42,26,.25);
}
.intro-outfit-viewport-v1317::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 16%;
  width: 34%;
  height: 68%;
  border-radius: 48% 48% 40% 40%;
  background: rgba(133,80,50,.13);
  transform: translateX(-50%);
}
.intro-outfit-sprite-v1317 {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: block;
  width: 72%;
  max-width: calc(100% - 4px);
  height: 0;
  padding-bottom: 96%;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 400% 200%;
  opacity: 0;
  transform: translate(-50%,-50%);
  image-rendering: auto;
  filter: drop-shadow(5px 7px 0 rgba(72,37,20,.18));
}
.intro-outfit-card-v1317.is-art-ready .intro-outfit-sprite-v1317 {
  animation: intro-tour-art-in-v1317 .25s ease both, intro-tour-walk-v1317 .72s .25s steps(1,end) infinite;
}
.intro-outfit-card-v1317.is-art-missing .intro-outfit-viewport-v1317::after {
  content: "形象载入中";
  position: absolute;
  inset: 50% 0 auto;
  color: #875032;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.intro-outfit-card-v1317>strong {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  min-height: 30px;
  padding: 5px 3px 4px;
  border: clamp(2px,.35vw,5px) solid #382218;
  background: #fff8dd;
  color: #382218;
  font-size: clamp(11px,1.35vw,20px);
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 7px 8px 0 rgba(76,42,26,.25);
}
.intro-collage-v134 .intro-sticker-v134 {
  right: 4%;
  top: 7%;
  width: clamp(64px,8vw,112px);
  height: clamp(64px,8vw,112px);
  font-size: clamp(17px,2.2vw,30px);
}
.intro-collage-v134 .intro-load-panel {
  bottom: calc(18px + var(--safe-bottom,0px));
  width: min(42vw,520px);
}
.intro-collage-v134 .intro-controls {
  right: calc(12px + var(--safe-right,0px));
  bottom: calc(10px + var(--safe-bottom,0px));
}
@keyframes intro-tour-title-in-v1317 {
  from { opacity: 0; transform: translate(-50%,-45%) rotate(5deg) scale(.82); }
  to { opacity: 1; transform: translate( -50%,0) rotate(-1deg) scale(1); }
}
@keyframes intro-tour-card-in-v1317 {
  from { opacity: 0; transform: translateY(38%) rotate(-3deg) scale(.82); }
  to { opacity: 1; transform: translateY(0) rotate(-.6deg) scale(1); }
}
.intro-outfit-card-v1317:nth-child(even) {
  animation-name: intro-tour-card-even-in-v1317;
}
@keyframes intro-tour-walk-v1317 {
  0% { background-position: 0 0; }
  25% { background-position: 33.333% 0; }
  50% { background-position: 66.666% 0; }
  75%,100% { background-position: 100% 0; }
}
@media (max-height:500px) and (orientation:landscape) {
  .intro-collage-v134 .intro-paper-title-v134 { top: 3%; width: 48vw; padding: 5px 14px; }
  .intro-collage-v134 .intro-paper-title-v134 span,
  .intro-collage-v134 .intro-paper-title-v134 em { font-size: 9px; }
  .intro-collage-v134 .intro-paper-title-v134 strong { font-size: clamp(29px,5vw,46px); }
  .intro-outfit-tour-v1317 { left: 3%; right: 3%; bottom: 45px; height: 56vh; gap: 7px; }
  .intro-outfit-card-v1317>strong { min-height: 23px; padding: 3px 2px 2px; font-size: clamp(9px,1.55vw,13px); }
  .intro-collage-v134 .intro-sticker-v134 { right: 2%; top: 4%; width: 58px; height: 58px; border-width: 4px; font-size: 16px; }
  .intro-collage-v134 .intro-load-panel { bottom: calc(8px + var(--safe-bottom,0px)); width: min(40vw,350px); }
  .intro-collage-v134 .intro-controls { bottom: calc(5px + var(--safe-bottom,0px)); }
  .intro-crate-stamp-v134 { left: 3%; right: auto; top: 3%; padding: 5px 8px; border-width: 3px; font-size: 10px; }
}
body.startup-constrained .intro-outfit-viewport-v1317,
body.startup-constrained .intro-outfit-card-v1317>strong {
  box-shadow: 3px 4px 0 rgba(76,42,26,.22);
}
body.startup-constrained .intro-outfit-sprite-v1317 {
  filter: none;
  -webkit-filter: none;
}
@media (prefers-reduced-motion:reduce) {
  .intro-collage-v134 .intro-paper-title-v134,
  .intro-outfit-card-v1317,
  .intro-outfit-card-v1317.is-art-ready .intro-outfit-sprite-v1317 { animation: none; opacity: 1; }
}
@keyframes intro-tour-card-even-in-v1317 {
  from { opacity: 0; transform: translateY(38%) rotate(3deg) scale(.82); }
  to { opacity: 1; transform: translateY(0) rotate(.6deg) scale(1); }
}
@keyframes intro-tour-art-in-v1317 {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* 撤离成功：高价值数字必须完整显示，带出物资按类型汇总后换行展示。 */
#result.result-success .result-metric-value strong {
  max-width: 100%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#result.result-success #resultValue.is-long-value {
  font-size: 38px;
  letter-spacing: -1px;
}

#result.result-success #resultValue.is-extra-long-value {
  font-size: 30px;
  letter-spacing: -1.4px;
}

#result.result-success .result-loot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  grid-auto-rows: minmax(90px, auto);
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#result.result-success .result-loot-card {
  width: auto;
  min-width: 0;
  margin: 0;
}

#result.result-success .result-loot-empty {
  grid-column: 1 / -1;
}

@media (max-height: 620px) and (orientation: landscape) {
  #result.result-success .result-success-panel {
    grid-template-columns: minmax(0, 1fr) 184px;
    grid-column-gap: 10px;
  }

  #result.result-success .result-operator-card {
    max-width: 184px;
  }

  #result.result-success .result-metric-stack {
    grid-template-columns: minmax(0, 1.7fr) minmax(54px, .65fr) minmax(54px, .65fr);
    grid-column-gap: 5px;
  }

  #result.result-success #resultValue.is-long-value {
    font-size: clamp(21px, 3.35vw, 27px);
  }

  #result.result-success #resultValue.is-extra-long-value {
    font-size: clamp(17px, 2.85vw, 23px);
  }

  #result.result-success .result-loot-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 49px;
    gap: 4px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #result.result-success .result-loot-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    min-height: 49px;
    height: 49px;
    padding: 4px 6px;
  }

  #result.result-success .result-loot-thumb {
    grid-row: 1 / 3;
    width: 34px;
    height: 40px;
  }

  #result.result-success .result-loot-thumb img {
    max-height: 36px;
  }

  #result.result-success .result-loot-card strong,
  #result.result-success .result-loot-card span {
    min-width: 0;
    align-self: center;
  }

  #result.result-success .result-loot-card span {
    margin-top: 0;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  #result.result-success .result-success-panel {
    min-height: 0;
  }

  #result.result-success .result-context-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 4px;
  }

  #result.result-success .result-context-grid > div,
  #result.result-success .result-context-grid > div:nth-child(-n+2) {
    padding: 3px 6px 4px;
    border-bottom: 0;
    border-right: 1px solid rgba(132, 174, 187, .18);
  }

  #result.result-success .result-context-grid > div:last-child {
    border-right: 0;
  }

  #result.result-success .result-context-grid span {
    font-size: 8px;
  }

  #result.result-success .result-context-grid strong {
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.1;
  }

  #result.result-success .result-metric-stack {
    min-height: 49px;
    height: 49px;
  }

  #result.result-success .result-metric {
    min-height: 49px;
    height: 49px;
    padding: 4px 6px;
  }

  #result.result-success .result-metric span {
    margin-bottom: 1px;
    font-size: 8px;
  }

  #result.result-success .result-metric-value strong,
  #result.result-success #resultValue.is-long-value {
    font-size: clamp(19px, 3.05vw, 24px);
  }

  #result.result-success #resultValue.is-extra-long-value {
    font-size: clamp(16px, 2.55vw, 20px);
  }

  #result.result-success .result-metric:not(.result-metric-value) strong {
    font-size: 18px;
  }

  #result.result-success .result-operator-frame {
    height: 68px;
  }

  #result.result-success .result-operator-copy {
    min-height: 34px;
    padding: 3px 9px 4px;
  }

  #result.result-success .result-operator-copy span {
    font-size: 8px;
  }

  #result.result-success .result-operator-copy strong {
    margin-top: 1px;
    font-size: 15px;
  }
}
