.shop-container {
  --ui-tab-count: 4;
  --shop-bg: #06090b;
  --shop-panel: #0b1115;
  --shop-panel-raised: #111a20;
  --shop-steel-dark: #242a2d;
  --shop-steel: #565a55;
  --shop-steel-light: #8b8777;
  --shop-gold: #ffb30f;
  --shop-gold-bright: #ffd04a;
  --shop-gold-dark: #8f5900;
  --shop-green: #47de17;
  --shop-green-dark: #0b4c08;
  --shop-green-edge: #73e91b;
  --shop-white: #f5f2e8;
  --shop-muted: #b6b3a9;
  --shop-danger: #f04432;
  --shop-frame-cut: 7px;
  --shop-gap: clamp(7px, 1vw, 12px);
  --shop-frame: polygon(
    var(--shop-frame-cut) 0,
    calc(100% - var(--shop-frame-cut)) 0,
    100% var(--shop-frame-cut),
    100% calc(100% - var(--shop-frame-cut)),
    calc(100% - var(--shop-frame-cut)) 100%,
    var(--shop-frame-cut) 100%,
    0 calc(100% - var(--shop-frame-cut)),
    0 var(--shop-frame-cut)
  );
  box-sizing: border-box;
  color: var(--shop-white);
  display: grid;
  font-family: 'Battle Cities UI', 'Arial Narrow', sans-serif;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
  padding: clamp(10px, 1.7vw, 18px);
  position: relative;
  width: 100%;
}

.shop-container,
.shop-container * {
  box-sizing: border-box;
}

.shop-container::before {
  background: radial-gradient(
      circle at 16% 4%,
      rgb(255 179 15 / 8%),
      transparent 30%
    ),
    radial-gradient(circle at 82% 90%, rgb(71 222 23 / 4%), transparent 30%),
    repeating-linear-gradient(
      117deg,
      rgb(255 255 255 / 1.5%) 0,
      rgb(255 255 255 / 1.5%) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--shop-bg);
  content: '';
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body.shop-web-active::before,
body.shop-web-active::after {
  display: none;
}

.shop-web button {
  -webkit-tap-highlight-color: transparent;
  border: 2px solid var(--shop-steel);
  border-radius: 0;
  clip-path: var(--shop-frame);
  color: var(--shop-white);
  cursor: pointer;
  font: 700 clamp(12px, 1.8vw, 20px) / 1 'Battle Cities UI', 'Arial Narrow',
    sans-serif;
  letter-spacing: 0.055em;
  position: relative;
  text-shadow: 0 2px 0 rgb(0 0 0 / 72%);
  text-transform: uppercase;
}

.shop-web button::before,
.shop-web__owned-tile::before,
.shop-web__card::before {
  background: radial-gradient(
        circle,
        #c6b978 0 1px,
        #241d0d 1.5px 2.5px,
        transparent 3px
      )
      3px 3px / 7px 7px no-repeat,
    radial-gradient(circle, #c6b978 0 1px, #241d0d 1.5px 2.5px, transparent 3px)
      calc(100% - 3px) 3px / 7px 7px no-repeat,
    radial-gradient(circle, #c6b978 0 1px, #241d0d 1.5px 2.5px, transparent 3px)
      3px calc(100% - 3px) / 7px 7px no-repeat,
    radial-gradient(circle, #c6b978 0 1px, #241d0d 1.5px 2.5px, transparent 3px)
      calc(100% - 3px) calc(100% - 3px) / 7px 7px no-repeat;
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.shop-web__tabs {
  display: flex;
  gap: var(--shop-gap);
  min-height: clamp(48px, 7dvh, 80px);
}

.shop-web__tab,
.shop-web__back {
  align-items: center;
  background: linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 18%),
    linear-gradient(135deg, #11181c, #080c0f 72%);
  box-shadow: inset 0 0 0 2px #07090a, inset 0 3px 0 rgb(255 255 255 / 5%),
    0 3px 0 #020303;
  display: flex;
  gap: clamp(6px, 1.1vw, 15px);
  justify-content: center;
  min-width: 0;
  padding: 0 clamp(7px, 1.5vw, 20px);
}

.shop-web__tab {
  flex: 1 1 0;
}

.shop-web__tab:first-of-type {
  flex-grow: 1.15;
}

.shop-web__back {
  flex: 0.86 1 0;
}

.shop-web__tab img {
  flex: 0 0 auto;
  height: clamp(22px, 3.4vw, 42px);
  image-rendering: pixelated;
  object-fit: contain;
  width: clamp(22px, 3.4vw, 42px);
}

.shop-web__tab span {
  overflow: hidden;
  position: relative;
  text-overflow: clip;
  white-space: nowrap;
  z-index: 3;
}

.shop-web__tab.is-active {
  background: linear-gradient(180deg, #ffc22f, #e89a06), var(--shop-gold);
  border-color: var(--shop-gold-bright);
  box-shadow: inset 0 0 0 2px #a46200, inset 0 4px 0 rgb(255 255 255 / 24%),
    0 0 15px rgb(255 179 15 / 35%);
  color: #171006;
  text-shadow: 0 1px 0 rgb(255 238 164 / 55%);
}

.shop-web__tab.is-selected:not(.is-active) {
  background: linear-gradient(180deg, #171a19, #0a0e10);
  border-color: var(--shop-gold-bright);
  box-shadow: inset 0 0 0 2px var(--shop-gold-dark),
    0 0 14px rgb(255 179 15 / 42%);
  color: var(--shop-gold);
}

.shop-web__back.is-selected {
  background: linear-gradient(180deg, #5a1a13, #2c0c09);
  border-color: var(--shop-danger);
  box-shadow: inset 0 0 0 2px #1b0705, 0 0 13px rgb(240 68 50 / 30%);
}

.shop-web__shell {
  background: linear-gradient(180deg, rgb(255 255 255 / 2.5%), transparent 16%),
    repeating-linear-gradient(
      133deg,
      transparent 0,
      transparent 4px,
      rgb(255 255 255 / 1%) 4px,
      rgb(255 255 255 / 1%) 5px
    ),
    #080d10;
  border: 2px solid var(--shop-steel-dark);
  box-shadow: inset 0 0 0 1px var(--shop-steel), inset 0 0 28px rgb(0 0 0 / 75%),
    0 5px 18px rgb(0 0 0 / 65%);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) clamp(32px, 4.5dvh, 46px);
  margin-top: var(--shop-gap);
  min-height: 0;
  overflow: hidden;
  padding: clamp(44px, 5.5vw, 56px) clamp(12px, 1.9vw, 24px) 0;
  position: relative;
}

.shop-web__shell::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--shop-gold-dark) 8%,
    var(--shop-gold) 50%,
    var(--shop-gold-dark) 92%,
    transparent
  );
  box-shadow: 0 0 6px rgb(255 179 15 / 28%);
  content: '';
  height: 3px;
  left: 14px;
  position: absolute;
  right: 14px;
  top: 8px;
}

.shop-web__summary {
  align-items: stretch;
  background: linear-gradient(180deg, rgb(255 255 255 / 2%), transparent 34%),
    #070b0e;
  border: 1px solid var(--shop-steel);
  box-shadow: inset 0 0 0 2px #020405, inset 0 0 18px rgb(0 0 0 / 78%);
  display: flex;
  min-height: clamp(78px, 11vw, 112px);
  padding: clamp(10px, 1.4vw, 17px);
}

.shop-web__connect {
  align-self: center;
  background: linear-gradient(180deg, #10220d, #091108);
  border-color: var(--shop-gold-dark);
  color: var(--shop-green);
  flex: 1.4 1 0;
  height: clamp(48px, 7vw, 70px);
  margin-right: clamp(8px, 1.8vw, 24px);
  min-width: 0;
  padding: 0 5px;
}

.shop-web__connect i {
  background: var(--shop-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgb(71 222 23 / 72%);
  display: inline-block;
  height: 9px;
  margin-right: 8px;
  vertical-align: 1px;
  width: 9px;
}

.shop-web__connect.is-selected {
  background: linear-gradient(180deg, #ffc22f, #e89a06);
  border-color: var(--shop-gold-bright);
  box-shadow: 0 0 13px rgb(255 179 15 / 35%);
  color: #171006;
  text-shadow: none;
}

.shop-web__connect.is-selected i {
  background: #171006;
  box-shadow: none;
}

.shop-web__resource {
  align-items: center;
  border-left: 1px solid var(--shop-steel);
  display: flex;
  flex: 1 1 0;
  gap: clamp(6px, 1.2vw, 15px);
  min-width: 0;
  padding-left: clamp(8px, 1.5vw, 18px);
}

.shop-web__resource > img {
  flex: 0 0 auto;
  height: clamp(30px, 5vw, 58px);
  image-rendering: pixelated;
  object-fit: contain;
  width: clamp(30px, 5vw, 58px);
}

.shop-web__resource > div {
  min-width: 0;
}

.shop-web__resource span,
.shop-web__resource strong {
  display: block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.055em;
  overflow: hidden;
  white-space: nowrap;
}

.shop-web__resource span {
  color: var(--shop-green);
  font-size: clamp(13px, 2vw, 25px);
  font-weight: 700;
}

.shop-web__resource strong {
  color: var(--shop-gold);
  font-size: clamp(15px, 2.4vw, 29px);
  margin-top: clamp(3px, 0.8vw, 9px);
}

.shop-web__owned {
  border-bottom: 1px solid var(--shop-steel);
  padding: clamp(23px, 3.4vw, 32px) clamp(2px, 0.4vw, 5px)
    clamp(11px, 1.3vw, 16px);
}

.shop-web__owned h2,
.shop-web__label,
.shop-web__loadout h2 {
  color: var(--shop-white);
  font: 700 clamp(17px, 3vw, 28px) / 1 'Battle Cities UI', 'Arial Narrow',
    sans-serif;
  letter-spacing: 0.055em;
  margin: 0;
  text-shadow: 0 2px 0 #000;
  text-transform: uppercase;
}

.shop-web__owned > div {
  display: flex;
  gap: clamp(4px, 0.8vw, 10px);
  margin-top: clamp(11px, 1.8vw, 18px);
}

.shop-web__owned-tile {
  background: linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 25%),
    var(--shop-panel);
  border: 2px solid var(--shop-steel);
  box-shadow: inset 0 0 0 2px #030506, inset 0 0 15px rgb(0 0 0 / 72%);
  clip-path: var(--shop-frame);
  flex: 1 1 0;
  height: clamp(68px, 16vw, 152px);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.shop-web__owned-tile img {
  display: block;
  height: calc(100% - clamp(24px, 3.3vw, 37px));
  image-rendering: pixelated;
  margin: 3px auto 0;
  object-fit: contain;
  width: 82%;
}

.shop-web__owned-tile strong {
  align-items: center;
  background: linear-gradient(180deg, #0c1114, #040607);
  border-top: 1px solid #31393d;
  bottom: 2px;
  color: var(--shop-gold);
  display: flex;
  font-size: clamp(13px, 2vw, 24px);
  font-variant-numeric: tabular-nums;
  height: clamp(22px, 3.1vw, 34px);
  justify-content: center;
  left: 2px;
  letter-spacing: 0.04em;
  position: absolute;
  right: 2px;
}

.shop-web__presale-legend {
  border-bottom: 1px solid var(--shop-steel);
  min-width: 0;
  padding: clamp(14px, 2vw, 20px) 4px;
}

.shop-web__presale-legend > header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.shop-web__presale-legend h3 {
  color: var(--shop-white);
  font: 700 clamp(15px, 2.2vw, 21px) / 1 'Battle Cities UI',
    'Arial Narrow', sans-serif;
  letter-spacing: 0.055em;
  margin: 0;
}

.shop-web__presale-legend > header > span {
  color: var(--shop-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.shop-web__presale-available {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.shop-web__presale-available strong {
  color: var(--shop-gold);
  font-size: clamp(20px, 3vw, 27px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.shop-web__presale-available span,
.shop-web__presale-available small,
.shop-web__presale-meta {
  color: var(--shop-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.065em;
}

.shop-web__presale-available small {
  color: var(--shop-white);
}

.shop-web__presale-progress {
  background: #111a20;
  border: 1px solid var(--shop-steel);
  height: 10px;
  margin-top: 10px;
  padding: 2px;
}

.shop-web__presale-progress i {
  background: var(--shop-gold);
  display: block;
  height: 100%;
  width: var(--presale-progress, 0%);
}

.shop-web__presale-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
}

.shop-web__presale-meta span:last-child {
  color: var(--shop-gold);
}

.shop-web__presale-table {
  border-top: 1px solid var(--shop-steel-dark);
  margin-top: 12px;
}

.shop-web__presale-row {
  align-items: center;
  border-bottom: 1px solid var(--shop-steel-dark);
  display: grid;
  font-size: clamp(8px, 1.15vw, 11px);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  gap: 5px;
  grid-template-columns: 1.05fr 1.05fr 0.8fr 0.9fr;
  min-height: 27px;
}

.shop-web__presale-row span:not(:first-child) {
  text-align: right;
}

.shop-web__presale-row.is-active {
  color: var(--shop-gold-bright);
}

.shop-web__presale-row--head {
  color: var(--shop-muted);
  font-size: 8px;
}

.shop-web__presale-row--total {
  color: var(--shop-gold);
}

.shop-web__content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 2.9vw, 29px) clamp(2px, 0.4vw, 5px) 18px;
  scrollbar-color: var(--shop-gold-dark) #080b0d;
  scrollbar-width: thin;
}

.shop-web__filters {
  display: flex;
  gap: var(--shop-gap);
}

.shop-web__filters button {
  background: linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 22%),
    linear-gradient(135deg, #11181c, #080c0f 72%);
  box-shadow: inset 0 0 0 2px #040607, inset 0 3px 0 rgb(255 255 255 / 4%);
  color: var(--shop-muted);
  flex: 1 1 0;
  height: clamp(45px, 8vw, 76px);
}

.shop-web__filters button.is-active {
  background: linear-gradient(180deg, #ffc22f, #e89a06);
  border-color: var(--shop-gold-bright);
  box-shadow: inset 0 0 0 2px #9a5c00, inset 0 4px 0 rgb(255 255 255 / 24%),
    0 0 13px rgb(255 179 15 / 28%);
  color: #171006;
  text-shadow: 0 1px 0 rgb(255 238 164 / 55%);
}

.shop-web__filters button.is-selected:not(.is-active) {
  background: linear-gradient(180deg, #171a19, #0a0e10);
  border-color: var(--shop-gold-bright);
  box-shadow: inset 0 0 0 2px var(--shop-gold-dark),
    0 0 14px rgb(255 179 15 / 42%);
  color: var(--shop-gold);
}

.shop-web__label {
  margin-top: clamp(24px, 4.3vw, 40px);
}

.shop-web__cards {
  display: grid;
  gap: var(--shop-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: clamp(12px, 1.5vw, 18px);
}

.shop-web__card {
  background: linear-gradient(180deg, rgb(255 255 255 / 2.5%), transparent 20%),
    repeating-linear-gradient(
      122deg,
      transparent 0,
      transparent 5px,
      rgb(255 255 255 / 0.8%) 5px,
      rgb(255 255 255 / 0.8%) 6px
    ),
    var(--shop-panel);
  border: 2px solid var(--shop-steel);
  box-shadow: inset 0 0 0 2px #030506, inset 0 0 18px rgb(0 0 0 / 70%),
    0 3px 0 #020303;
  clip-path: var(--shop-frame);
  height: clamp(170px, 26vw, 260px);
  min-width: 0;
  overflow: hidden;
  padding: clamp(10px, 1.4vw, 17px);
  position: relative;
  text-align: center;
}

.shop-web__card h2 {
  color: var(--shop-green);
  font-size: clamp(15px, 2.4vw, 26px);
  letter-spacing: 0.045em;
  line-height: 1;
  margin: 0;
  overflow: hidden;
  position: relative;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 #071804;
  white-space: nowrap;
  z-index: 1;
}

.shop-web__card-icon {
  align-items: center;
  bottom: clamp(54px, 7vw, 76px);
  display: flex;
  justify-content: center;
  left: 5%;
  position: absolute;
  top: clamp(30px, 4vw, 46px);
  width: 58%;
}

.shop-web__card-icon img {
  height: 100%;
  image-rendering: pixelated;
  max-height: 100px;
  max-width: 126px;
  object-fit: contain;
  width: 100%;
}

.shop-web__card p {
  color: var(--shop-gold);
  font-size: clamp(23px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  position: absolute;
  right: 10%;
  text-shadow: 0 2px 0 #2b1900;
  top: 45%;
}

.shop-web__card--starter-pack .shop-web__card-icon {
  bottom: auto;
  height: clamp(44px, 8vw, 64px);
  left: 50%;
  top: clamp(34px, 5vw, 46px);
  transform: translateX(-50%);
  width: clamp(68px, 15vw, 94px);
}

.shop-web__card--starter-pack p {
  bottom: clamp(52px, 7vw, 70px);
  font-size: clamp(18px, 2.7vw, 28px);
  left: 9%;
  line-height: 0.96;
  right: 9%;
  top: auto;
}

.shop-web__card > button {
  align-items: center;
  background: linear-gradient(180deg, rgb(91 255 51 / 11%), transparent 45%),
    linear-gradient(180deg, #12680c, #063705);
  border-color: var(--shop-green-edge);
  bottom: clamp(9px, 1.2vw, 14px);
  box-shadow: inset 0 0 0 2px #052104, inset 0 3px 0 rgb(180 255 113 / 20%),
    0 0 8px rgb(71 222 23 / 14%);
  color: var(--shop-white);
  display: flex;
  font-size: clamp(12px, 1.8vw, 20px);
  gap: clamp(5px, 0.8vw, 10px);
  height: clamp(34px, 4.6vw, 46px);
  justify-content: center;
  left: clamp(9px, 1.2vw, 14px);
  padding: 0 8px;
  position: absolute;
  right: clamp(9px, 1.2vw, 14px);
  z-index: 3;
}

.shop-web__card > button img {
  height: clamp(18px, 2.6vw, 28px);
  image-rendering: pixelated;
  object-fit: contain;
  width: clamp(18px, 2.6vw, 28px);
}

.shop-web__card > button span {
  position: relative;
  white-space: nowrap;
  z-index: 3;
}

.shop-web__card:has(button.is-selected) {
  border-color: var(--shop-gold-bright);
  box-shadow: inset 0 0 0 2px var(--shop-gold-dark),
    inset 0 0 20px rgb(255 179 15 / 10%), 0 0 15px rgb(255 179 15 / 40%);
}

.shop-web__card:has(button.is-selected) > button {
  background: linear-gradient(180deg, #1d8d12, #0a5007);
  border-color: #a0ff38;
  box-shadow: inset 0 0 0 2px #063504, inset 0 3px 0 rgb(210 255 163 / 25%),
    0 0 13px rgb(71 222 23 / 35%);
  color: var(--shop-white);
}

.shop-web__status {
  align-items: center;
  color: var(--shop-muted);
  display: flex;
  font-size: clamp(11px, 1.55vw, 17px);
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  margin: 0;
  position: relative;
  text-align: center;
  text-transform: uppercase;
}

.shop-web__status::before,
.shop-web__status::after {
  background: linear-gradient(
    90deg,
    transparent,
    var(--shop-gold-dark),
    var(--shop-steel)
  );
  content: '';
  flex: 1 1 auto;
  height: 2px;
  margin-right: 16px;
  max-width: 38%;
}

.shop-web__status::after {
  background: linear-gradient(
    90deg,
    var(--shop-steel),
    var(--shop-gold-dark),
    transparent
  );
  margin-left: 16px;
  margin-right: 0;
}

.shop-web__loadout > p {
  color: var(--shop-muted);
  font-size: clamp(11px, 1.5vw, 16px);
  font-weight: 700;
  margin: 10px 0 18px;
  text-transform: uppercase;
}

.shop-web__loadout > div {
  display: grid;
  gap: var(--shop-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 740px;
}

.shop-web__loadout > div > button {
  align-content: space-between;
  background: linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 30%),
    var(--shop-panel);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 146px;
  padding: 11px;
  text-align: center;
}

.shop-web__slot-index,
.shop-web__slot-action {
  color: var(--shop-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  position: relative;
  z-index: 3;
}

.shop-web__slot-index {
  justify-self: start;
}

.shop-web__slot-action {
  color: var(--shop-gold);
  justify-self: center;
}

.shop-web__slot-item {
  align-items: center;
  display: flex;
  font-size: clamp(13px, 1.5vw, 17px);
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 3;
}

.shop-web__slot-item img {
  height: 58px;
  image-rendering: pixelated;
  object-fit: contain;
  width: 58px;
}

.shop-web__slot-item b {
  color: var(--shop-muted);
  font-size: 12px;
  font-weight: 700;
}

.shop-web__loadout > div > button.is-selected {
  background: var(--shop-panel-raised);
  border-color: var(--shop-gold-bright);
  box-shadow: 0 0 13px rgb(255 179 15 / 28%);
}

.shop-web__loadout .shop-web__start-battle {
  align-items: center;
  background: linear-gradient(90deg, #0b330f, #12680c 48%, #0b330f);
  border-color: var(--shop-green-edge);
  display: flex;
  height: 48px;
  justify-content: center;
  margin: 18px auto 0;
  max-width: 260px;
  padding: 0 12px;
  width: min(100%, 260px);
}

.shop-web__start-battle strong {
  color: var(--shop-white);
  font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: 0.08em;
}

.shop-web__start-battle.is-selected {
  background: linear-gradient(180deg, #ffc22f, #e89a06);
  border-color: var(--shop-gold-bright);
  color: #171006;
}

.shop-web__start-battle.is-selected strong {
  color: #171006;
}

.shop-web__controls-dialog {
  background: var(--shop-panel);
  border: 1px solid var(--shop-gold);
  box-shadow: 0 0 0 2px #06090b, 0 18px 48px rgb(0 0 0 / 58%);
  color: var(--shop-white);
  padding: 22px;
  width: min(360px, calc(100vw - 48px));
}

.shop-web__controls-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.shop-web__controls-dialog h2 {
  color: var(--shop-gold-bright);
  font-size: 19px;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-align: center;
}

.shop-web__controls-dialog dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.shop-web__controls-dialog dl div {
  align-items: center;
  background: var(--shop-panel-raised);
  border: 1px solid var(--shop-line);
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
}

.shop-web__controls-dialog dt,
.shop-web__controls-dialog dd {
  font: 700 12px/1 'Battle Cities UI', 'Arial Narrow', sans-serif;
  letter-spacing: 0.06em;
  margin: 0;
}

.shop-web__controls-dialog dt {
  color: var(--shop-muted);
}

.shop-web__controls-dialog kbd {
  color: var(--shop-gold-bright);
  font: 700 13px/1 'Battle Cities UI', 'Arial Narrow', sans-serif;
}

.shop-web__controls-confirm {
  background: linear-gradient(180deg, #ffc22f, #e89a06);
  border: 1px solid var(--shop-gold-bright);
  color: #171006;
  font: 700 14px/1 'Battle Cities UI', 'Arial Narrow', sans-serif;
  letter-spacing: 0.06em;
  margin-top: 18px;
  min-height: 44px;
  width: 100%;
}

.shop-web__controls-confirm.is-selected {
  box-shadow: 0 0 14px rgb(255 179 15 / 50%);
}

.shop-web__swap {
  background: linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 22%),
    var(--shop-panel);
  border: 2px solid var(--shop-steel);
  box-shadow: inset 0 0 0 2px #030506, inset 0 0 20px rgb(0 0 0 / 70%);
  clip-path: var(--shop-frame);
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
}

.shop-web__swap-eyebrow {
  color: var(--shop-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.shop-web__swap-dialog h2 {
  color: var(--shop-white);
  font: 700 clamp(20px, 2.6vw, 28px) / 1 'Battle Cities UI',
    'Arial Narrow', sans-serif;
  letter-spacing: 0.06em;
  margin: 0;
  text-shadow: 0 2px 0 #020303;
}

.shop-web__swap-summary > p,
.shop-web__swap-dialog > p:not(.shop-web__swap-eyebrow) {
  color: var(--shop-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.shop-web__swap-body {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 760px;
  padding: 24px;
}

.shop-web__swap-method {
  align-items: center;
  background: linear-gradient(180deg, #ffc22f, #e89a06);
  border: 1px solid var(--shop-gold-bright);
  box-shadow: inset 0 0 0 1px #8f5700, inset 0 3px 0 rgb(255 255 255 / 20%),
    0 4px 0 #050708;
  color: #171006;
  display: flex;
  font: 700 14px/1 'Battle Cities UI', 'Arial Narrow', sans-serif;
  gap: 8px;
  height: 52px;
  justify-content: center;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgb(255 238 164 / 60%);
}

.shop-web__swap-method span {
  font-size: 19px;
}

.shop-web__swap-form {
  align-content: start;
  display: grid;
  gap: 10px;
}

.shop-web__swap-summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shop-web__swap-dialog dt,
.shop-web__swap-form > label {
  color: var(--shop-muted);
  display: block;
  font: 700 11px/1 'Battle Cities UI', 'Arial Narrow', sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shop-web__swap-input {
  align-items: center;
  background: #0d1418;
  border: 1px solid var(--shop-steel);
  color: var(--shop-white);
  display: flex;
  font: 700 clamp(17px, 2.1vw, 23px) / 1 'Battle Cities UI',
    'Arial Narrow', sans-serif;
  letter-spacing: 0.055em;
  min-height: 50px;
  padding: 0 14px;
}

.shop-web__swap-input input {
  appearance: textfield;
  background: transparent;
  border: 0;
  color: var(--shop-white);
  font: inherit;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.shop-web__swap-input input::-webkit-inner-spin-button,
.shop-web__swap-input input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.shop-web__swap-input span {
  border-left: 1px solid var(--shop-steel);
  color: var(--shop-gold);
  font-size: clamp(12px, 1.55vw, 16px);
  margin-left: 12px;
  padding-left: 12px;
}

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

.shop-web__swap-presets button {
  background: linear-gradient(180deg, #151b1e, #090d0f);
  border-color: var(--shop-gold-dark);
  color: var(--shop-gold);
  font-size: 12px;
  height: 34px;
  padding: 0 4px;
}

.shop-web__swap-presets button.is-selected {
  background: linear-gradient(180deg, #ffc22f, #e89a06);
  border-color: var(--shop-gold-bright);
  color: #171006;
  text-shadow: none;
}

.shop-web__swap-arrow {
  align-items: center;
  color: var(--shop-gold);
  display: flex;
  font-size: 20px;
  height: 20px;
  justify-content: center;
  justify-self: center;
  line-height: 1;
  width: 20px;
}

.shop-web__swap-output {
  color: var(--shop-green);
  justify-content: space-between;
}

.shop-web__swap-output span {
  color: var(--shop-green-edge);
}

.shop-web__swap-summary dl {
  margin: 0 0 12px;
}

.shop-web__swap-summary dl div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 32px;
}

.shop-web__swap-summary dt {
  color: var(--shop-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.shop-web__swap-summary dd {
  color: var(--shop-gold);
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 700;
  margin: 0 0 0 12px;
  text-align: right;
}

.shop-web__swap-wallet {
  align-items: center;
  border-top: 1px solid var(--shop-steel-dark);
  color: var(--shop-muted);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.07em;
  min-height: 38px;
}

.shop-web__swap-wallet i {
  background: var(--shop-muted);
  display: block;
  height: 8px;
  width: 8px;
}

.shop-web__swap-wallet.is-connected i {
  background: var(--shop-green);
  box-shadow: 0 0 7px rgb(71 222 23 / 65%);
}

.shop-web__swap-live {
  color: var(--shop-green) !important;
  font-size: 10px !important;
  letter-spacing: 0.05em;
  margin: 14px 0 0 !important;
}

.shop-web__swap-notice {
  border-top: 1px solid var(--shop-steel-dark);
  font-size: 10px !important;
  margin: 12px 0 0 !important;
  padding-top: 12px;
}

.shop-web__swap-notice strong {
  color: var(--shop-gold);
}

.shop-web__swap-review {
  background: linear-gradient(180deg, rgb(91 255 51 / 12%), transparent 45%),
    linear-gradient(180deg, #12680c, #063705);
  border-color: var(--shop-green-edge);
  color: var(--shop-white);
  height: 48px;
  margin-top: 4px;
  width: 100%;
}

.shop-web__swap-review.is-selected {
  background: linear-gradient(180deg, #ffc22f, #e89a06);
  border-color: var(--shop-gold-bright);
  color: #171006;
  text-shadow: none;
}

.shop-web__swap-review:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.55;
}

.shop-web__swap-dialog {
  background: var(--shop-panel);
  border: 2px solid var(--shop-gold);
  box-shadow: 0 0 0 2px #06090b, 0 18px 48px rgb(0 0 0 / 58%);
  color: var(--shop-white);
  max-width: calc(100vw - 36px);
  padding: 22px;
  width: min(440px, 100%);
}

.shop-web__swap-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.shop-web__swap-dialog h2 {
  color: var(--shop-gold-bright);
  font-size: 25px;
}

.shop-web__swap-dialog dl {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.shop-web__swap-dialog dl div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.shop-web__swap-dialog dd {
  color: var(--shop-green);
  font-size: 14px;
  margin: 0 0 0 12px;
  text-align: right;
}

.shop-web__swap-dialog-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin-top: 18px;
}

.shop-web__swap-dialog-actions button {
  background: linear-gradient(180deg, #171d20, #090d0f);
  border-color: var(--shop-steel);
  font-size: 13px;
  height: 46px;
  padding: 0 6px;
}

.shop-web__swap-dialog-actions [data-shop-swap-confirm] {
  background: linear-gradient(180deg, #12680c, #063705);
  border-color: var(--shop-green-edge);
}

.shop-web__swap-dialog-actions button.is-selected {
  border-color: var(--shop-gold-bright);
  box-shadow: 0 0 14px rgb(255 179 15 / 50%);
}

.shop-web button:focus-visible {
  outline: none;
}

@media (hover: hover) {
  .shop-web__tab:not(.is-active):not(.is-selected):hover,
  .shop-web__filters button:not(.is-active):not(.is-selected):hover,
  .shop-web__connect:not(.is-selected):hover,
  .shop-web__loadout > div > button:not(.is-selected):hover {
    border-color: var(--shop-gold);
    box-shadow: inset 0 0 0 2px #040607, 0 0 12px rgb(255 179 15 / 28%);
    color: var(--shop-gold);
  }

  .shop-web__back:hover {
    background: linear-gradient(180deg, #5a1a13, #2c0c09);
    border-color: var(--shop-danger);
  }

  .shop-web__card:not(:has(button.is-selected)):hover {
    border-color: var(--shop-gold);
    box-shadow: inset 0 0 0 2px #030506, 0 0 12px rgb(255 179 15 / 24%);
  }

  .shop-web__card > button:not(.is-selected):hover {
    background: linear-gradient(180deg, #18810f, #084c06);
    border-color: #a0ff38;
  }
}

.shop-web__card > button:active,
.shop-web__tab:active,
.shop-web__filters button:active,
.shop-web__back:active {
  filter: brightness(0.82);
}

@media (max-width: 899px) {
  .shop-web__card {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

@media (min-width: 900px) {
  .shop-web--desktop {
    max-width: 1280px;
    padding: 34px 24px;
  }

  .shop-web--desktop .shop-web__tabs {
    gap: 8px;
    min-height: 58px;
  }

  .shop-web--desktop .shop-web__tab {
    flex: 1 1 0;
    font-size: 19px;
    max-width: 210px;
  }

  .shop-web--desktop .shop-web__tab img {
    height: 34px;
    width: 34px;
  }

  .shop-web--desktop .shop-web__tab-spacer {
    flex: 1 1 auto;
    min-width: 0;
  }

  .shop-web--desktop .shop-web__back {
    flex: 0 0 152px;
    font-size: 19px;
  }

  .shop-web__desktop-shell {
    background: linear-gradient(
        180deg,
        rgb(255 255 255 / 2.5%),
        transparent 16%
      ),
      repeating-linear-gradient(
        133deg,
        transparent 0,
        transparent 4px,
        rgb(255 255 255 / 1%) 4px,
        rgb(255 255 255 / 1%) 5px
      ),
      #080d10;
    border: 2px solid var(--shop-steel-dark);
    box-shadow: inset 0 0 0 1px var(--shop-steel),
      inset 0 0 28px rgb(0 0 0 / 75%), 0 5px 18px rgb(0 0 0 / 65%);
    display: grid;
    gap: 10px;
    grid-template-columns: 298px minmax(0, 1fr);
    margin-top: 10px;
    min-height: 0;
    overflow: hidden;
    padding: 16px;
    position: relative;
  }

  .shop-web__desktop-shell--swap {
    grid-template-columns: minmax(350px, 0.92fr) minmax(0, 1.48fr);
  }

  .shop-web__desktop-shell::before {
    background: linear-gradient(
      90deg,
      transparent,
      var(--shop-gold-dark) 8%,
      var(--shop-gold) 50%,
      var(--shop-gold-dark) 92%,
      transparent
    );
    box-shadow: 0 0 6px rgb(255 179 15 / 28%);
    content: '';
    height: 3px;
    left: 14px;
    position: absolute;
    right: 14px;
    top: 8px;
  }

  .shop-web__desktop-side,
  .shop-web__desktop-content {
    background: linear-gradient(180deg, rgb(255 255 255 / 2%), transparent 24%),
      #070b0e;
    border: 1px solid var(--shop-steel);
    box-shadow: inset 0 0 0 2px #020405, inset 0 0 18px rgb(0 0 0 / 70%);
    min-height: 0;
  }

  .shop-web__desktop-side {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 20px 20px;
  }

  .shop-web__desktop-side h2,
  .shop-web__desktop-side h3 {
    color: var(--shop-white);
    font: 700 24px/1 'Battle Cities UI', 'Arial Narrow', sans-serif;
    letter-spacing: 0.055em;
    margin: 0 0 18px;
    text-shadow: 0 2px 0 #000;
  }

  .shop-web__desktop-side h3 {
    font-size: 19px;
    margin: 20px 0 12px;
  }

  .shop-web__desktop-side .shop-web__connect {
    flex: 0 0 46px;
    height: 46px;
    margin: 0 0 12px;
    width: 100%;
  }

  .shop-web__desktop-side .shop-web__resource {
    border-bottom: 1px solid var(--shop-steel-dark);
    border-left: 0;
    flex: 0 0 58px;
    gap: 12px;
    padding: 0;
  }

  .shop-web__desktop-side .shop-web__resource > img {
    height: 38px;
    width: 38px;
  }

  .shop-web__desktop-side .shop-web__resource span {
    font-size: 14px;
  }

  .shop-web__desktop-side .shop-web__resource strong {
    font-size: 17px;
    margin-top: 3px;
  }

  .shop-web__desktop-side .shop-web__presale-legend {
    border-bottom: 0;
    margin-top: 17px;
    overflow-y: auto;
    padding: 0 2px 4px;
  }

  .shop-web__desktop-side .shop-web__presale-legend h3 {
    font-size: 17px;
    margin: 0;
  }

  .shop-web__desktop-side .shop-web__presale-available strong {
    font-size: 23px;
  }

  .shop-web__desktop-side .shop-web__presale-row {
    font-size: 9px;
  }

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

  .shop-web__desktop-side .shop-web__owned-tile {
    height: 82px;
  }

  .shop-web__desktop-side .shop-web__owned-tile img {
    height: 56px;
    margin-top: 2px;
    width: 74%;
  }

  .shop-web__desktop-side .shop-web__owned-tile strong {
    font-size: 15px;
    height: 23px;
  }

  .shop-web__desktop-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px 20px 12px;
  }

  .shop-web__desktop-content .shop-web__content {
    flex: 1 1 auto;
    padding: 0 4px 18px;
  }

  .shop-web__desktop-content .shop-web__filters {
    gap: 10px;
  }

  .shop-web__desktop-content .shop-web__filters button {
    font-size: 18px;
    height: 52px;
  }

  .shop-web__desktop-content .shop-web__label {
    font-size: 24px;
    margin-top: 22px;
  }

  .shop-web__desktop-content .shop-web__cards {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 14px;
  }

  .shop-web__desktop-content .shop-web__card {
    height: clamp(185px, 22dvh, 220px);
    padding: 12px;
  }

  .shop-web__desktop-content .shop-web__card h2 {
    font-size: 21px;
  }

  .shop-web__desktop-content .shop-web__card-icon {
    bottom: 58px;
    top: 38px;
  }

  .shop-web__desktop-content .shop-web__card-icon img {
    max-height: 88px;
    max-width: 112px;
  }

  .shop-web__desktop-content .shop-web__card p {
    font-size: 34px;
  }

  .shop-web__desktop-content .shop-web__card > button {
    bottom: 10px;
    font-size: 16px;
    height: 42px;
    left: 10px;
    right: 10px;
  }

  .shop-web__desktop-content .shop-web__card > button img {
    height: 23px;
    width: 23px;
  }

  .shop-web__desktop-content .shop-web__status {
    flex: 0 0 30px;
  }

  .shop-web__desktop-content .shop-web__loadout {
    max-width: 860px;
  }

  .shop-web__desktop-content .shop-web__loadout > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 760px;
  }

}

@media (max-width: 620px) {
  .shop-container {
    --shop-frame-cut: 5px;
    padding: 5px;
  }

  .shop-web__tabs {
    gap: 4px;
    min-height: 42px;
  }

  .shop-web__tab,
  .shop-web__back {
    font-size: clamp(9px, 3vw, 13px);
    gap: 4px;
    padding: 0 4px;
  }

  .shop-web__tab img {
    height: clamp(15px, 5vw, 23px);
    width: clamp(15px, 5vw, 23px);
  }

  .shop-web__shell {
    grid-template-rows: auto auto minmax(0, 1fr) 30px;
    padding: 12px 7px 0;
  }

  .shop-web__summary {
    grid-template-columns: 1.15fr repeat(3, 1fr);
    min-height: 64px;
    padding: 6px;
  }

  .shop-web__connect {
    font-size: clamp(8px, 2.8vw, 11px);
    height: 42px;
    margin-right: 5px;
  }

  .shop-web__connect i {
    height: 6px;
    margin-right: 4px;
    width: 6px;
  }

  .shop-web__resource {
    gap: 3px;
    padding-left: 4px;
  }

  .shop-web__resource > img {
    height: clamp(20px, 7vw, 29px);
    width: clamp(20px, 7vw, 29px);
  }

  .shop-web__resource span {
    font-size: clamp(8px, 2.8vw, 12px);
  }

  .shop-web__resource strong {
    font-size: clamp(9px, 3.2vw, 14px);
    margin-top: 3px;
  }

  .shop-web__owned {
    padding: 11px 0 10px;
  }

  .shop-web__owned > div {
    gap: 3px;
    margin-top: 7px;
  }

  .shop-web__owned-tile {
    height: clamp(48px, 17vw, 70px);
  }

  .shop-web__owned-tile img {
    height: calc(100% - 20px);
  }

  .shop-web__owned-tile strong {
    font-size: clamp(10px, 3.2vw, 13px);
    height: 19px;
  }

  .shop-web__presale-legend {
    padding: 9px 0;
  }

  .shop-web__presale-legend h3 {
    font-size: 13px;
  }

  .shop-web__presale-available {
    margin-top: 7px;
  }

  .shop-web__presale-available strong {
    font-size: 16px;
  }

  .shop-web__presale-progress,
  .shop-web__presale-table {
    margin-top: 7px;
  }

  .shop-web__presale-row {
    font-size: 8px;
    min-height: 21px;
  }

  .shop-web__content {
    padding: 10px 0 12px;
  }

  .shop-web__filters {
    gap: 5px;
  }

  .shop-web__filters button {
    font-size: clamp(10px, 3.5vw, 15px);
    height: 38px;
  }

  .shop-web__label {
    margin-top: 13px;
  }

  .shop-web__swap-body {
    gap: 12px;
    padding: 12px;
  }

  .shop-web__swap-summary {
    padding-top: 2px;
  }

  .shop-web__swap-method {
    font-size: 11px;
    height: 42px;
  }

  .shop-web__swap-form > label {
    font-size: 9px;
  }

  .shop-web__swap-summary dl div {
    min-height: 36px;
  }

  .shop-web__swap-summary > p,
  .shop-web__swap-wallet {
    font-size: 9px;
  }

  .shop-web__swap-input {
    min-height: 45px;
  }

  .shop-web__cards {
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 9px;
  }

  .shop-web__card {
    height: auto;
    padding: 6px;
  }

  .shop-web__card h2 {
    font-size: clamp(10px, 3.1vw, 14px);
  }

  .shop-web__card-icon {
    bottom: 43px;
    left: 3%;
    top: 27px;
    width: 58%;
  }

  .shop-web__card-icon img {
    max-height: 62px;
    max-width: 72px;
  }

  .shop-web__card p {
    font-size: clamp(16px, 5.2vw, 22px);
    right: 6%;
  }

  .shop-web__card > button {
    bottom: 5px;
    font-size: clamp(8px, 2.4vw, 11px);
    gap: 3px;
    height: 30px;
    left: 5px;
    padding: 0 3px;
    right: 5px;
  }

  .shop-web__card > button img {
    height: 13px;
    width: 13px;
  }

  .shop-web__loadout > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-web__loadout > div > button {
    min-height: 122px;
    padding: 8px;
  }

  .shop-web__slot-item img {
    height: 44px;
    width: 44px;
  }

  .shop-web__slot-index,
  .shop-web__slot-action,
  .shop-web__slot-item b {
    font-size: 9px;
  }

  .shop-web__loadout .shop-web__start-battle {
    height: 44px;
    max-width: 230px;
    width: min(100%, 230px);
  }

  .shop-web__status {
    font-size: 10px;
  }

  .shop-web__status::before,
  .shop-web__status::after {
    margin-right: 7px;
  }

  .shop-web__status::after {
    margin-left: 7px;
    margin-right: 0;
  }
}

@media (max-width: 360px) {
  .shop-web__tab,
  .shop-web__back {
    letter-spacing: 0;
  }

  .shop-web__tab img,
  .shop-web__resource > img {
    display: none;
  }

  .shop-web__resource {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-web * {
    scroll-behavior: auto !important;
  }
}
