/* PSG1 console screens. Shared, live CSS plates: no baked text or state swaps.
   Cyan hardware follows the supplied PSG1 concept; gold/green/red keep their
   command/supply/destructive roles. Other devices are intentionally untouched. */
html[data-ui-device='psg1'] :is(.settings-web, .shop-web, .psg1-console) {
  --psg-edge: #258fa8;
  --bc-supply: var(--bc-ready);
  --psg-steel: #839da5;
  --psg-cut: 10px;
  --psg-gap: clamp(6px, 1dvh, 12px);
  --psg-control: clamp(40px, 7dvh, 72px);
  --psg-surface: repeating-linear-gradient(
      135deg,
      #14293144 0 1px,
      transparent 1px 9px
    ),
    linear-gradient(135deg, #0a1d27, #030b10);
  --psg-grid: linear-gradient(#16708422 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, #16708422 1px, transparent 1px) 0 0 / 24px 24px,
    #06131b;
  --psg-plate: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  --ui-nav-height: var(--psg-control);
  --ui-nav-font: clamp(16px, 2.1vw, 28px);
  --ui-nav-gap: var(--psg-gap);
  --ui-nav-icon-gap: clamp(6px, 1vw, 14px);
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  :is(.settings-web, .shop-web, .psg1-console) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--psg-gap);
  width: 100%;
  max-width: none;
  height: 100dvh;
  padding: max(6px, env(safe-area-inset-top))
    max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom))
    max(6px, env(safe-area-inset-left));
  overflow: hidden;
  background: var(--bc-bg);
}
html[data-ui-device='psg1']
  :is(.settings-web, .shop-web, .psg1-console)::before {
  display: none;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .shop-web
  [data-ui-nav] {
  grid-template-columns: 1.1fr 1.1fr 1fr 0.9fr 0.85fr;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .settings-web
  [data-ui-nav] {
  grid-template-columns: 1.8fr 1fr;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  :is(.settings-web, .shop-web, .psg1-console)
  [data-ui-nav]
  :is([data-ui-tab], [data-ui-back]) {
  grid-column: auto;
  grid-row: 1;
  border: 3px solid var(--psg-steel);
  background: var(--psg-surface);
  clip-path: var(--psg-plate);
  box-shadow: inset 0 0 0 2px #010609, inset 0 0 0 4px var(--psg-edge);
  padding: 0 12px;
  outline: none;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  :is(.settings-web, .shop-web, .psg1-console)
  [data-ui-nav]
  [data-ui-tab].is-active {
  background: var(--ui-active-plate);
  color: var(--ui-nav-ink);
  border-color: var(--bc-command);
  text-shadow: none;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  :is(.settings-web, .shop-web, .psg1-console)
  [data-ui-nav]
  .is-selected {
  border-color: var(--bc-command);
  box-shadow: inset 0 0 0 2px #020709, inset 0 0 0 4px var(--bc-command);
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  :is(.settings-web, .shop-web, .psg1-console)
  [data-ui-nav]
  [data-ui-back].is-selected {
  background: var(--bc-danger-surface);
  border-color: var(--bc-danger);
  color: var(--bc-text);
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .settings-web
  [data-ui-nav]
  h1.is-active {
  background: var(--psg-surface);
  color: var(--bc-command);
  border-color: var(--psg-steel);
  font-size: clamp(24px, 3vw, 40px);
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  :is(.settings-web, .shop-web, .psg1-console)
  [data-ui-nav]
  :is([data-ui-tab], [data-ui-back])::after {
  content: '';
  position: absolute;
  inset: 12px 3px;
  pointer-events: none;
  background: linear-gradient(#ffed6d, #ff7614 45%, #e93508 55%, #ffed6d) left
      center / 3px 70% no-repeat,
    linear-gradient(#ffed6d, #ff7614 45%, #e93508 55%, #ffed6d) right center /
      3px 70% no-repeat;
}
html[data-ui-device='psg1']
  :is(.settings-web, .shop-web, .psg1-console)
  [data-ui-nav]
  img {
  width: clamp(24px, 3.8vw, 48px);
  height: clamp(24px, 3.8vw, 48px);
  object-fit: contain;
}

/* One hardware frame for rows, equipment, inventory and catalog cards. */
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  :is(.settings-web__rows
    article, .shop-web__desktop-side, .shop-web__desktop-content, .shop-web__card, .shop-web__loadout-slot, .psg1-console-frame) {
  position: relative;
  border: 3px solid var(--psg-steel);
  border-radius: 0;
  background: var(--psg-surface);
  clip-path: var(--psg-plate);
  box-shadow: inset 0 0 0 2px #010609, inset 0 0 0 4px var(--psg-edge);
}
html[data-ui-device='psg1']
  :is(.settings-web__rows
    article, .shop-web__desktop-side, .shop-web__desktop-content, .shop-web__card, .shop-web__loadout-slot, .psg1-console-frame)::before {
  content: '';
  position: absolute;
  inset: 3px;
  z-index: 1;
  pointer-events: none;
  width: auto;
  height: auto;
  transform: none;
  opacity: 1;
  background: radial-gradient(
        circle,
        #ffb30f 0 2px,
        #020709 3px 4px,
        #9caeb4 5px,
        transparent 6px
      )
      0 0 / 13px 13px no-repeat,
    radial-gradient(
        circle,
        #ffb30f 0 2px,
        #020709 3px 4px,
        #9caeb4 5px,
        transparent 6px
      )
      100% 0 / 13px 13px no-repeat,
    radial-gradient(
        circle,
        #ffb30f 0 2px,
        #020709 3px 4px,
        #9caeb4 5px,
        transparent 6px
      )
      0 100% / 13px 13px no-repeat,
    radial-gradient(
        circle,
        #ffb30f 0 2px,
        #020709 3px 4px,
        #9caeb4 5px,
        transparent 6px
      )
      100% 100% / 13px 13px no-repeat;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  :is(.settings-web__rows
    article.is-selected, .shop-web__card:has(.is-selected), .shop-web__loadout-slot.is-selected, .psg1-console-frame.is-selected) {
  border-color: var(--bc-command);
  box-shadow: inset 0 0 0 2px #010609, inset 0 0 0 4px var(--bc-command);
}
/* Settings: the entire row is the selection anchor, the lamp is the value. */
html[data-ui-device='psg1'] .settings-web__shell {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
}
html[data-ui-device='psg1'] .settings-web__shell::before {
  display: none;
}
html[data-ui-device='psg1'] .settings-web__rows {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-auto-rows: minmax(100px, 1fr);
  gap: var(--psg-gap);
  padding: 0;
  overflow-y: auto;
}
html[data-ui-device='psg1'] .settings-web__rows article {
  display: grid;
  grid-template-columns: 21% minmax(0, 1fr) 27%;
  align-items: center;
  gap: 3%;
  min-height: 0;
  padding: clamp(14px, 3dvh, 30px);
}
html[data-ui-device='psg1'] .psg1-setting-icon {
  display: grid;
  place-items: center;
  height: 80%;
  max-height: 120px;
  border-right: 2px solid var(--psg-edge);
  color: #d3e0e7;
}
html[data-ui-device='psg1'] .psg1-setting-icon svg {
  width: 70%;
  height: 100%;
  filter: drop-shadow(2px 3px 0 #010609);
}
html[data-ui-device='psg1'] .settings-web__rows h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0.025em;
}
html[data-ui-device='psg1'] .settings-web__rows h2 small {
  display: block;
  margin-top: 8px;
  font-size: clamp(14px, 2.2vw, 30px);
  line-height: 1.15;
  color: #acd3e9;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
html[data-ui-device='psg1']
  .settings-web
  :is(.settings-web__toggle, .settings-web__logout) {
  width: 100%;
  height: clamp(58px, 11dvh, 108px);
  min-height: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12%;
  border: 3px solid var(--psg-steel);
  clip-path: var(--psg-plate);
  background: var(--psg-surface);
  box-shadow: inset 0 0 0 2px var(--psg-edge);
}
html[data-ui-device='psg1'] .settings-web__toggle span {
  font-size: clamp(22px, 3.2vw, 44px);
  color: var(--bc-text);
}
html[data-ui-device='psg1'] .settings-web__toggle i {
  width: clamp(28px, 5vw, 58px);
  height: clamp(28px, 5vw, 58px);
  border: 3px solid var(--psg-steel);
  background: #020709;
  box-shadow: inset 0 0 0 3px #102936;
}
html[data-ui-device='psg1'] .settings-web__toggle.is-active {
  border-color: var(--bc-command);
  background: linear-gradient(135deg, #463000, #140d00);
}
html[data-ui-device='psg1'] .settings-web__toggle.is-active span {
  color: var(--bc-command);
}
html[data-ui-device='psg1'] .settings-web__toggle.is-active i {
  border-color: var(--bc-command);
  background: var(--ui-active-plate);
  box-shadow: inset 0 0 0 3px #906200, 0 0 14px #ffb30f66;
}
html[data-ui-device='psg1'] .settings-web .settings-web__logout {
  color: var(--bc-danger);
  font-size: clamp(20px, 3vw, 40px);
  background: var(--bc-danger-surface);
  border-color: var(--bc-danger);
}
html[data-ui-device='psg1'] .settings-web__status:empty {
  display: none;
}
html[data-ui-device='psg1'] .settings-web__status {
  margin: 6px;
  flex: none;
  font-size: 14px;
}
html[data-ui-device='psg1'] .settings-web__shell > small {
  position: static;
  text-align: center;
  margin: 5px 0 0;
  font-size: 14px;
  flex: none;
}

/* Inventory remains fixed; only the catalog or checkout region scrolls. */
html[data-ui-device='psg1'] .shop-web__desktop-shell {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  grid-template-columns: minmax(170px, 25%) minmax(0, 1fr);
  gap: var(--psg-gap);
}
html[data-ui-device='psg1'] .shop-web__desktop-shell--swap {
  grid-template-columns: minmax(225px, 32%) minmax(0, 1fr);
}
html[data-ui-device='psg1']
  :is(.shop-web__desktop-side, .shop-web__desktop-content) {
  padding: clamp(12px, 1.7vw, 22px);
}
html[data-ui-device='psg1'] .shop-web__desktop-side :is(h2, h3) {
  color: var(--bc-text);
  font-size: clamp(18px, 2.2vw, 30px);
  margin: 4px 0 8px;
}
html[data-ui-device='psg1'] .shop-web__desktop-side .shop-web__connect {
  min-height: 32px;
  flex-basis: 32px;
  font-size: 14px;
  margin-bottom: 4px;
}
html[data-ui-device='psg1'] .shop-web__connection-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin-bottom: 4px;
  padding: 4px 10px;
  border-left: 3px solid var(--bc-ready);
  border-bottom: 1px solid var(--psg-edge);
  background: rgb(71 222 23 / 5%);
  color: var(--bc-text);
  font: 700 clamp(16px, 1.6vw, 22px) / 1.1 'Battle Cities UI', sans-serif;
  letter-spacing: 0.04em;
  cursor: default;
}
html[data-ui-device='psg1'] .shop-web__connection-status i {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--bc-ready);
  box-shadow: 0 0 6px rgb(71 222 23 / 40%);
}
html[data-ui-device='psg1'] .shop-web__desktop-side .shop-web__resource {
  flex: none;
  min-height: 0;
  height: clamp(46px, 8dvh, 80px);
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-bottom: 1px solid var(--psg-edge);
  background: none;
}
html[data-ui-device='psg1'] .shop-web__desktop-side .shop-web__resource img {
  width: 22%;
  max-width: 50px;
  height: 80%;
  object-fit: contain;
}
html[data-ui-device='psg1'] .shop-web__desktop-side .shop-web__resource span {
  color: var(--bc-supply);
  font-size: clamp(16px, 1.8vw, 25px);
}
html[data-ui-device='psg1'] .shop-web__desktop-side .shop-web__resource strong {
  color: var(--bc-command);
  font-size: clamp(19px, 2.5vw, 32px);
}
html[data-ui-device='psg1'] .shop-web__desktop-owned {
  flex: 1;
  min-height: 330px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(76px, 1fr));
  gap: 6px;
}
html[data-ui-device='psg1'] .shop-web__desktop-owned .shop-web__owned-tile {
  min-height: 0;
  height: auto;
  padding: 0;
  border: 2px solid var(--psg-edge);
  background: var(--psg-surface);
  clip-path: var(--psg-plate);
  display: grid;
  grid-template-rows: minmax(36px, 1fr) 30px;
  gap: 4px;
  align-items: center;
}
html[data-ui-device='psg1'] .shop-web__desktop-owned .shop-web__owned-tile img {
  position: static;
  justify-self: center;
  align-self: center;
  width: 60%;
  height: calc(100% - 12px);
  max-height: 66px;
  margin: 6px 0;
  object-fit: contain;
}
html[data-ui-device='psg1']
  .shop-web__desktop-owned
  .shop-web__owned-tile
  strong {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0 4px;
  box-sizing: border-box;
  background: #081219;
  border: 0;
  border-top: 2px solid var(--psg-edge);
  box-shadow: inset 0 1px #57717d;
  font-size: 21px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--bc-command);
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__filters
  button {
  height: var(--psg-control);
  border: 2px solid var(--psg-edge);
  font-size: clamp(16px, 2vw, 26px);
  background: var(--psg-surface);
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__filters
  button.is-active {
  background: var(--ui-active-plate);
  color: var(--ui-nav-ink);
  border-color: var(--bc-command);
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__label {
  font-size: clamp(20px, 2.4vw, 32px);
  margin: 10px 0;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--psg-gap);
  padding: 0;
}
/* Catalog controls stay fixed; only the item grid owns the scroll position. */
html[data-ui-device='psg1']
  .shop-web:is([data-shop-view='bact'], [data-shop-view='sol'])
  .shop-web__desktop-content
  .shop-web__content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  :is(.shop-web__filters, .shop-web__label) {
  flex: none;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__cards {
  flex: 1;
  min-height: 0;
  align-content: start;
  overflow: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--bc-command) #07141c;
  overscroll-behavior: contain;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__card {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(60px, 1fr) auto var(--psg-control);
  min-height: 250px;
  height: clamp(250px, 39dvh, 400px);
  gap: 6px;
  padding: 14px 10px 10px;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__card-icon {
  grid-row: 2;
  position: static;
  inset: auto;
  width: 100%;
  flex: 1;
  min-height: 60px;
  height: auto;
  display: grid;
  place-items: center;
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__card-icon
  img {
  max-width: 85%;
  max-height: clamp(70px, 13dvh, 140px);
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__card h2 {
  grid-row: 1;
  position: static;
  display: grid;
  place-items: center;
  min-height: 1.2em;
  margin: 0;
  color: var(--bc-supply);
  font-size: clamp(26px, 16cqw, 44px);
  text-align: center;
  line-height: 1.1;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__card p {
  grid-row: 3;
  position: static;
  min-height: 2.2em;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bc-command);
  font-size: clamp(22px, 14cqw, 38px);
  line-height: 1.1;
  text-align: center;
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__card
  > button {
  grid-row: 4;
  height: var(--psg-control);
  flex-basis: var(--psg-control);
  font-size: clamp(18px, 13cqw, 40px);
  line-height: 1;
  gap: clamp(6px, 3cqw, 10px);
  padding-inline: 6px;
  border: 2px solid var(--bc-supply);
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__card
  > button
  img {
  width: clamp(24px, 18cqw, 54px);
  height: clamp(24px, 18cqw, 54px);
  max-height: calc(100% - 8px);
  flex: none;
  object-fit: contain;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__status {
  padding: 8px 0 0;
  margin: 0;
  text-align: center;
  font-size: clamp(12px, 1.4vw, 18px);
}
html[data-ui-device='psg1'] .shop-web__content {
  scrollbar-color: var(--bc-command) #07141c;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

/* Equipment uses the same square cards and selection outline as the concept. */
html[data-ui-device='psg1']
  .shop-web[data-shop-view='loadout']
  .shop-web__content {
  display: flex;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__loadout {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
html[data-ui-device='psg1'] .shop-web__loadout h2 {
  font-size: clamp(22px, 3vw, 40px);
  margin: 4px 0;
}
html[data-ui-device='psg1'] .shop-web__loadout > p {
  font-size: clamp(14px, 1.8vw, 24px);
  margin: 0 0 12px;
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__loadout
  > div {
  flex: 1;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: var(--psg-gap);
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__loadout
  > div {
  width: 100%;
  max-width: none;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .shop-web__desktop-content
  .shop-web__loadout-slot {
  background: var(--psg-grid);
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .shop-web__desktop-content
  .shop-web__loadout-slot.is-selected {
  background: radial-gradient(ellipse at center, #ffb30f18, transparent 70%),
    var(--psg-grid);
  border-color: var(--bc-command);
  box-shadow: inset 0 0 0 2px #171006, inset 0 0 0 5px var(--bc-command),
    inset 0 0 24px #ffb30f24;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__loadout-slot {
  container-type: size;
  height: auto;
  padding: 14px;
  background: var(--psg-grid);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  gap: 4px;
}
html[data-ui-device='psg1'] .shop-web__slot-index {
  align-self: start;
  justify-self: start;
  font-size: clamp(22px, 8cqw, 40px);
  line-height: 1;
}
html[data-ui-device='psg1'] .shop-web__slot-item {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: end;
  align-items: center;
  gap: 4px;
  font-size: clamp(24px, 9cqw, 46px);
  line-height: 1.05;
}
html[data-ui-device='psg1'] .shop-web__slot-art {
  display: grid;
  place-items: center;
  width: min(62cqw, 56cqh);
  height: min(62cqw, 56cqh);
  min-height: 0;
  flex: 0 1 auto;
  overflow: hidden;
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__slot-item
  img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
/* Trim the empty socket asset's transparent padding without changing its file. */
html[data-ui-device='psg1'] .shop-web__slot-art .shop-web__empty-slot {
  transform: scale(1.32);
}
html[data-ui-device='psg1'] .shop-web__slot-item b {
  font-size: inherit;
  color: var(--bc-text);
  flex: none;
}
html[data-ui-device='psg1'] .shop-web__slot-action {
  font-size: clamp(20px, 7.5cqw, 38px);
  line-height: 1.05;
  color: var(--bc-command);
  font-style: normal;
}
html[data-ui-device='psg1'] .shop-web__start-battle {
  flex: none;
  min-height: 40px;
  margin-top: 8px;
}

/* All shop rails share separate hardware panels without changing track widths. */
html[data-ui-device='psg1'] .shop-web .shop-web__wallet-panel {
  flex: none;
  padding: 14px;
  margin-bottom: var(--psg-gap);
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .shop-web__desktop-shell
  .shop-web__desktop-side {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  clip-path: none;
  overflow-y: auto;
}
html[data-ui-device='psg1']
  .shop-web__desktop-shell
  .shop-web__desktop-side::before {
  content: none;
}
html[data-ui-device='psg1'] .shop-web__inventory-panel {
  display: flex;
  flex-direction: column;
  flex: 1 0 392px;
  min-height: 392px;
  padding: 12px;
  min-width: 0;
}
html[data-ui-device='psg1'] .shop-web__inventory-panel > h3 {
  flex: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--psg-edge);
  margin: 4px 0 8px;
}
html[data-ui-device='psg1']
  .shop-web__inventory-panel
  .shop-web__desktop-owned {
  min-height: 0;
  grid-template-rows: repeat(4, minmax(0, 1fr));
}
html[data-ui-device='psg1'] .shop-web__desktop-side .shop-web__presale-legend {
  flex: 1 0 auto;
  margin: 0;
  padding: 18px;
  overflow: visible;
}
html[data-ui-device='psg1']
  .shop-web__desktop-side
  .shop-web__presale-legend
  h3 {
  font-size: clamp(18px, 2.2vw, 30px);
  margin: 0;
}
html[data-ui-device='psg1'] .shop-web__presale-legend > header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--psg-edge);
}
html[data-ui-device='psg1'] .shop-web__presale-legend > header > span {
  font-size: clamp(14px, 1.6vw, 22px);
}
html[data-ui-device='psg1']
  .shop-web__desktop-shell--swap
  .shop-web__desktop-content {
  padding: 14px;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap {
  --swap-gap: clamp(8px, 1.2dvh, 16px);
  --swap-text: clamp(18px, 2.6dvh, 30px);
  border: 0;
  background: none;
  box-shadow: none;
  clip-path: none;
  overflow: visible;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap-body {
  padding: 2px;
  gap: var(--swap-gap);
  min-height: 100%;
  grid-template-rows: auto auto minmax(min-content, 1fr);
  border: 0;
  background: none;
  box-shadow: none;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap-method {
  height: var(--psg-control);
  background: var(--ui-active-plate);
  border: 2px solid var(--bc-command);
  color: var(--ui-nav-ink);
  font-size: clamp(26px, max(3.2vw, 4.4dvh), 50px);
  clip-path: var(--psg-plate);
  box-shadow: inset 0 0 0 2px #171006, inset 0 0 0 4px #ffe66d;
  gap: 16px;
}
html[data-ui-device='psg1'] .shop-web__swap-method img {
  width: clamp(32px, 5dvh, 58px);
  height: clamp(32px, 5dvh, 58px);
  object-fit: contain;
  image-rendering: pixelated;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap-form {
  gap: clamp(7px, 1dvh, 12px);
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__swap-form
  > label {
  font-size: var(--swap-text);
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap-input {
  min-height: var(--psg-control);
  border: 3px solid var(--psg-steel);
  background: var(--psg-surface);
  box-shadow: inset 0 0 0 2px #010609, inset 0 0 0 4px var(--psg-edge);
  clip-path: var(--psg-plate);
  font-size: clamp(32px, max(3.6vw, 5.2dvh), 60px);
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__swap-input
  input {
  font-size: inherit;
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__swap-input
  span {
  font-size: clamp(24px, 3.4dvh, 40px);
  flex: none;
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__swap-presets
  button {
  height: var(--psg-control);
  border: 2px solid var(--psg-edge);
  font-size: clamp(22px, 3.4dvh, 38px);
}
html[data-ui-device='psg1'] .shop-web__swap-arrow {
  line-height: 1;
  font-size: 40px;
  height: 32px;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap-summary {
  padding: 0;
  gap: var(--swap-gap);
  justify-content: space-between;
}
html[data-ui-device='psg1'] .shop-web__swap-summary dl {
  margin: 0;
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__swap-summary
  dl
  div {
  border: 1px solid var(--psg-steel);
  padding: 6px 12px;
  min-height: clamp(36px, 5.4dvh, 64px);
  gap: 8px;
}
html[data-ui-device='psg1'] .shop-web__swap-summary dl div + div {
  border-top: 0;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap-wallet {
  border: 1px solid var(--psg-steel);
  padding: 6px 14px;
  min-height: clamp(36px, 4.8dvh, 56px);
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap-review {
  height: var(--psg-control);
  flex: none;
  font-size: clamp(26px, 4dvh, 46px);
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__swap-summary
  :is(.shop-web__swap-live, .shop-web__swap-notice) {
  font-size: clamp(18px, 2.3dvh, 27px) !important;
  margin: 0 !important;
}
html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap-notice {
  padding-top: 8px;
}
html[data-ui-device='psg1'] .shop-web__desktop-shell--swap .shop-web__status {
  font-size: clamp(16px, 2.2dvh, 26px);
}
html[data-ui-device='psg1'] .shop-web__swap-summary :is(dt, dd) {
  min-width: 0;
  overflow-wrap: anywhere;
}
html[data-ui-device='psg1'] .shop-web__swap-summary dd {
  max-width: 60%;
}
/* Short viewports keep the same readable type, but use tighter spacing. */
@media (max-height: 850px) {
  html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap {
    --swap-gap: 6px;
  }
  html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__swap-form {
    gap: 6px;
  }
}
html[data-ui-device='psg1'] .shop-web__swap-notice {
  font-size: clamp(12px, 1.3vw, 17px);
  line-height: 1.4;
}
html[data-ui-device='psg1'] .shop-web__presale-legend {
  background: none;
  border-color: var(--psg-edge);
  padding: 10px 0;
}
html[data-ui-device='psg1']
  .shop-web__desktop-side
  .shop-web__presale-legend
  .shop-web__presale-row {
  font-size: clamp(11px, 1.3vw, 17px);
}
html[data-ui-device='psg1']
  .shop-web__desktop-content
  .shop-web__swap-summary
  :is(dt, dd, .shop-web__swap-live, .shop-web__swap-notice, .shop-web__swap-wallet) {
  font-size: var(--swap-text);
  line-height: 1.3;
}
html[data-ui-device='psg1']
  .shop-web__desktop-side
  .shop-web__presale-available
  strong {
  font-size: clamp(24px, 3vw, 38px);
}
html[data-ui-device='psg1']
  .shop-web__presale-legend
  :is(.shop-web__presale-available span, .shop-web__presale-available
    small, .shop-web__presale-meta) {
  font-size: clamp(12px, 1.3vw, 17px);
  line-height: 1.3;
}
@media (max-width: 700px) {
  html[data-ui-device='psg1'] :is(.settings-web, .shop-web, .psg1-console) {
    --ui-nav-font: 14px;
    --ui-nav-icon-gap: 4px;
  }
  html[data-ui-device='psg1'] .shop-web [data-ui-nav] img {
    width: 22px;
    height: 22px;
  }
  html[data-ui-device='psg1'] .shop-web__desktop-shell {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  html[data-ui-device='psg1'] .shop-web__desktop-content .shop-web__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Quaters, Socials and Ranking share the same console hardware and controls. */
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page] {
  padding: max(6px, env(safe-area-inset-top))
    max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom))
    max(6px, env(safe-area-inset-left));
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page]
  [data-ui-nav] {
  margin: 0;
  grid-template-columns: 1fr 1fr 0.85fr;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .headquarters-web.psg1-console[data-ui-page]
  [data-ui-nav] {
  grid-template-columns: 1.8fr 1fr;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page]
  [data-ui-nav]
  > div[data-ui-tab].is-active {
  max-width: none;
  justify-content: center;
  background: var(--psg-surface);
  border-color: var(--psg-steel);
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] [data-ui-nav] h1 {
  color: var(--bc-command);
  font-size: var(--ui-nav-font);
  letter-spacing: 0.04em;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page]
  :is(.operations-web__shell, .ranking-web__shell) {
  display: grid;
  gap: var(--psg-gap);
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .operations-web__shell {
  grid-template-rows: auto minmax(0, 1fr);
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page].socials-web
  .operations-web__shell {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  :is(.operations-web__shell, .ranking-web__shell)::before,
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__section-title {
  display: none;
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .operations-web__intro {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border: 1px solid var(--psg-edge);
  background: var(--psg-surface);
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__intro
  h2 {
  color: var(--bc-command);
  font-size: clamp(18px, 2vw, 25px);
  white-space: nowrap;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__intro
  p {
  margin: 0;
  font-size: clamp(12px, 1.35vw, 17px);
  text-align: left;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page]
  .operations-web__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, 1fr);
  align-content: stretch;
  min-height: 0;
  margin: 0;
  gap: var(--psg-gap);
  overflow-y: auto;
  overscroll-behavior: contain;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page]
  .operations-web__grid--social {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page]
  .operations-web__card {
  grid-column: auto;
  grid-template-rows: minmax(60px, 1fr) auto minmax(32px, auto) var(
      --psg-control
    );
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  padding: 16px 12px 12px;
  outline: none;
  font-family: 'Battle Cities UI', 'Arial Narrow', sans-serif;
  letter-spacing: 0.035em;
  text-align: center;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__card
  h3 {
  grid-row: 2;
  margin: 0;
  color: var(--bc-text);
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.15;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__card
  .operations-web__mark {
  grid-row: 1;
  align-self: center;
  width: clamp(60px, 12dvh, 126px);
  height: clamp(60px, 12dvh, 126px);
  min-width: 0;
  max-height: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__mark
  img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__card
  p {
  align-self: center;
  color: var(--bc-muted-light);
  font-size: clamp(12px, 1.3vw, 17px);
  line-height: 1.3;
  margin: 0;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__card
  strong {
  color: var(--bc-text);
  border: 2px solid var(--bc-ready);
  background: linear-gradient(var(--bc-ready-dark), #12281c);
  font-size: var(--ui-nav-font);
  line-height: 1;
  padding: 4px 8px;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__card.is-selected
  strong {
  color: var(--bc-active-ink);
  background: var(--ui-active-plate);
  border-color: var(--bc-command);
}
/* Quaters follows the catalog hierarchy: name, artwork, details, action. */
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .headquarters-web.psg1-console[data-ui-page]
  .operations-web__card {
  grid-template-rows: auto minmax(60px, 1fr) minmax(32px, auto) var(
      --psg-control
    );
}
html[data-ui-device='psg1']
  .headquarters-web.psg1-console[data-ui-page]
  .operations-web__card
  h3 {
  grid-row: 1;
}
html[data-ui-device='psg1']
  .headquarters-web.psg1-console[data-ui-page]
  .operations-web__card
  .operations-web__mark {
  grid-row: 2;
  justify-self: center;
}
html[data-ui-device='psg1']
  .headquarters-web.psg1-console[data-ui-page]
  .operations-web__card
  p {
  grid-row: 3;
}
html[data-ui-device='psg1']
  .headquarters-web.psg1-console[data-ui-page]
  .operations-web__card
  strong {
  grid-row: 4;
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page]
  .operations-web__card:disabled {
  opacity: 1;
  cursor: default;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__card:disabled
  :is(img, h3) {
  opacity: 0.55;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__card:disabled
  strong {
  background: #15242b;
  border-color: #566b75;
  color: #a9b9c0;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__card.is-complete
  strong {
  color: var(--bc-ready);
  border-color: var(--bc-ready);
  background: #13271c;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .operations-web__status {
  margin: 0;
  padding: 10px 14px;
  min-height: 36px;
  font-size: clamp(12px, 1.4vw, 18px);
  border-block: 1px solid var(--psg-edge);
  background: var(--psg-surface);
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page]
  .ranking-web__shell {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.85fr);
  grid-template-rows: auto auto minmax(0, 1fr);
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .ranking-web__summary {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--psg-gap);
  margin: 0;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__summary
  > div {
  display: grid;
  gap: 8px;
  padding: 18px 24px;
  min-width: 0;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__summary
  span {
  color: var(--bc-muted-light);
  font-size: clamp(15px, 1.8vw, 24px);
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__summary
  strong {
  color: var(--bc-command);
  font-size: clamp(22px, 2.7vw, 36px);
  line-height: 1.1;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-picker {
  align-self: stretch;
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  justify-self: stretch;
  max-width: none;
  width: 100%;
  margin: 0;
  z-index: 4;
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .ranking-web__season {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  height: 100%;
  min-height: max(92px, var(--psg-control));
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  border: 3px solid var(--psg-steel);
  background: var(--psg-surface);
  box-shadow: inset 0 0 0 2px #010609, inset 0 0 0 4px var(--psg-edge);
  font-size: var(--ui-nav-font);
  outline: none;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-label {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 10px 22px;
  text-align: left;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-label
  small {
  font-size: clamp(14px, 1.4vw, 18px);
  color: #00c9e5;
  letter-spacing: 0.1em;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-label
  strong {
  color: var(--bc-text);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .ranking-web__season i {
  display: grid;
  place-items: center;
  height: 100%;
  align-self: stretch;
  border-left: 2px solid var(--psg-edge);
  background: #0a2733;
  font-size: 0;
  transform: none;
  transition: none;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season
  i::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--bc-command);
  border-bottom: 3px solid var(--bc-command);
  transform: translateY(-3px) rotate(45deg);
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .is-open
  .ranking-web__season
  i::after {
  transform: translateY(3px) rotate(225deg);
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-options {
  background: var(--psg-surface);
  border: 3px solid var(--psg-steel);
  box-shadow: inset 0 0 0 2px #010609, 0 8px 20px #000b;
  padding: 6px;
  gap: 4px;
  max-height: min(260px, 30dvh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bc-command) #08141b;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-options
  button {
  position: relative;
  min-height: 52px;
  padding: 10px 42px 10px 16px;
  border: 2px solid transparent;
  background: #06131b;
  color: var(--bc-text);
  font-size: var(--ui-nav-font);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  outline: none;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-options
  button.is-active {
  background: var(--ui-active-plate);
  color: var(--ui-nav-ink);
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-options
  button.is-active::after {
  content: '';
  position: absolute;
  right: 16px;
  top: calc(50% - 8px);
  width: 7px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-options
  button:is(.is-selected, :hover) {
  border-color: var(--bc-command);
  box-shadow: inset 0 0 0 1px #171006;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season-options
  button.is-selected:not(.is-active) {
  background: #173440;
  color: var(--bc-text);
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__season.is-selected {
  border-color: var(--bc-command);
  box-shadow: inset 0 0 0 2px #171006, inset 0 0 0 4px var(--bc-command);
}
html[data-ui-device='psg1']
  body.web-ui-active
  [data-web-ui]
  .psg1-console[data-ui-page]
  :is(.ranking-web__header, .ranking-web__row) {
  display: grid;
  grid-template-columns: 10% minmax(0, 1fr) 16% 22%;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  font: 700 clamp(18px, 2vw, 27px) / 1.1 'Battle Cities UI', 'Arial Narrow',
    sans-serif;
  letter-spacing: 0.035em;
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .ranking-web__header {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: var(--psg-control);
  color: #00d4ed;
  border: 2px solid var(--psg-edge);
  background: #052333;
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .ranking-web__rows {
  grid-column: 1 / -1;
  grid-row: 3;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--psg-edge);
  background: var(--psg-grid);
  padding: 4px;
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .ranking-web__row {
  min-height: max(50px, 7dvh);
  margin: 0 0 4px;
  background: #071722bb;
  border: 2px solid #194453;
  color: var(--bc-text);
  outline: none;
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .ranking-web__row > * {
  /* Legacy cell font sizes override the row font; size the data itself. */
  font: 700 clamp(24px, 3vw, 42px) / 1.1 'Battle Cities UI', 'Arial Narrow',
    sans-serif;
  letter-spacing: 0.025em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-ui-device='psg1'] .psg1-console[data-ui-page] .ranking-web__perks {
  /* Match the data cells despite the legacy perks !important override. */
  font-size: clamp(24px, 3vw, 42px) !important;
}
html[data-ui-device='psg1']
  .psg1-console[data-ui-page]
  .ranking-web__row.is-selected {
  border-color: var(--bc-command);
  background: #30290f;
  box-shadow: inset 4px 0 var(--bc-command);
}
html[data-ui-device='psg1'] .psg1-console[data-ui-page] .ranking-web__empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  height: 100%;
  margin: 0;
  padding: 24px;
  color: var(--bc-command);
  font-size: clamp(18px, 2.2vw, 30px);
  text-align: center;
}
@media (max-width: 900px) {
  html[data-ui-device='psg1']
    body.web-ui-active
    [data-web-ui]
    .psg1-console[data-ui-page]
    .operations-web__grid--hq {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html[data-ui-device='psg1']
    .psg1-console[data-ui-page]
    .operations-web__intro {
    display: grid;
    gap: 5px;
    padding: 8px 12px;
  }
  html[data-ui-device='psg1']
    .psg1-console[data-ui-page]
    .operations-web__intro
    h2 {
    text-align: left;
  }
  html[data-ui-device='psg1']
    .psg1-console[data-ui-page]
    .ranking-web__summary
    > div {
    padding: 14px 16px;
  }
}
@media (max-width: 700px) {
  html[data-ui-device='psg1']
    body.web-ui-active
    [data-web-ui]
    .psg1-console[data-ui-page]
    .ranking-web__shell {
    grid-template-columns: minmax(0, 2fr) minmax(205px, 0.8fr);
  }
  html[data-ui-device='psg1']
    .psg1-console[data-ui-page]
    .ranking-web__summary
    > div {
    padding-inline: 10px;
  }
  html[data-ui-device='psg1']
    body.web-ui-active
    [data-web-ui]
    .psg1-console[data-ui-page]
    .operations-web__grid--social {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-ui-device='psg1']
    body.web-ui-active
    [data-web-ui]
    .psg1-console[data-ui-page]
    :is(.ranking-web__header, .ranking-web__row) {
    gap: 6px;
    padding-inline: 8px;
    font-size: 17px;
  }
}
