.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.it,
.li {
  --ink: var(--place-panel-ink);
  --ink2: var(--place-panel-ink2);
  --tile-frame: var(--place-line);
  --tile-frame-shade: var(--place-line-shade);
  background: var(--place-panel);
  color: var(--ink);
  border: var(--ui-border) solid var(--tile-frame);
  border-radius: var(--ui-radius-card);
}
.it {
  position: relative;
  box-shadow: 0 var(--ui-drop) 0 var(--tile-frame-shade);
  padding: 6px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  min-width: 0;
}
.it:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--tile-frame-shade);
}
.it.sel {
  background: color-mix(in srgb, var(--place-mark) 24%, var(--place-panel));
  box-shadow:
    0 var(--ui-drop) 0 var(--tile-frame-shade),
    inset 0 0 0 3px var(--place-mark);
}
.it svg {
  width: 78px;
  height: 78px;
}
.it .n {
  font-weight: 900;
  font-size: 12px;
  line-height: 1.15;
}
.it .own {
  font-size: 12px;
  font-weight: 900;
  color: var(--green);
}
.it .bon {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink2);
  line-height: 1.2;
}
.rar {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 6px;
  padding: 2px 6px;
  border: 1px solid transparent;
}
.r-comum {
  background: #e3f8ec;
  color: #157a45;
}
.r-raro {
  background: #e3efff;
  color: #1559b5;
}
.r-muitoraro {
  background: #ffe5f4;
  color: #b81d76;
}
.r-lendario {
  background: #fff1c2;
  color: #7a5600;
}
.r-ultimate {
  background: #15121b;
  color: #ff4a5e;
  border-color: #e0243a;
}
.it.b-raro {
  --tile-frame: #2d8cff;
  --tile-frame-shade: #1559b5;
}
.it.b-muitoraro {
  --tile-frame: #ff4fa8;
  --tile-frame-shade: #b81d76;
}
.it.b-lendario {
  --tile-frame: #f5c030;
  --tile-frame-shade: #b07c00;
}
.it.b-ultimate {
  --tile-frame: #e0243a;
  --tile-frame-shade: #8e0f20;
  --place-panel: #15121b;
  --ink: #f2e9ee;
  --ink2: #a596b4;
}
.price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 900;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.price.short {
  color: #ff8a96;
}
.price.short svg {
  width: 14px;
  height: 14px;
}
.btn .price.short {
  color: inherit;
}
.btn:has(.price.short) {
  opacity: 0.6;
}
.price svg,
.it .price svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--gold);
}
.btn .price svg,
.shop-buy .price svg {
  color: inherit;
}
#s-shop {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.shop-top {
  position: relative;
  z-index: 1;
  flex: none;
  background: var(--place-surface);
  border-bottom: 3px solid var(--ui-edge);
}
.roomprev.shop-stage {
  height: 176px;
  border: 0;
  border-bottom: 3px solid var(--ui-edge);
  border-radius: 0;
}
.shop-stage-camera {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
}
.shop-stage-camera-moving {
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.shop-stage-camera > svg,
.shop-stage-camera > .dec > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shop-stage-pet.shop-dress {
  transform-origin: 50% 100%;
  animation: shop-dress-pop 0.42s cubic-bezier(0.3, 1.5, 0.5, 1);
}
@keyframes shop-dress-pop {
  0% {
    transform: scale(1.1, 0.88);
  }
  55% {
    transform: scale(0.95, 1.07);
  }
  100% {
    transform: none;
  }
}
.shop-stage .shop-stage-pet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 148px;
}
.shop-awning {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 19px;
  background: repeating-linear-gradient(
    90deg,
    var(--place-mark) 0 22px,
    var(--place-panel) 22px 44px
  );
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 8px no-repeat,
    radial-gradient(circle at 11px 8px, #000 10.5px, transparent 11px) 0 0 / 22px 100% repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% 8px no-repeat,
    radial-gradient(circle at 11px 8px, #000 10.5px, transparent 11px) 0 0 / 22px 100% repeat-x;
  pointer-events: none;
}
.tryon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 136px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--place-panel);
  color: var(--place-panel-ink);
  border: var(--ui-border) solid var(--ui-edge);
  border-radius: var(--ui-radius-control);
  box-shadow: 0 var(--ui-drop) 0 var(--ui-edge);
  padding: 7px 8px 9px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.1;
}
.tryon:empty {
  display: none;
}
.shop-stage-pet > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tryon svg {
  flex: none;
  width: 14px;
  height: 14px;
}
.shop-try-label {
  display: block;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 800;
  color: var(--place-panel-ink2);
}
.tryon .btn.sm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 6px;
  box-shadow: 0 3px 0 var(--accent-d);
}
.tryon .btn.sec.sm {
  padding: 6px;
  background: transparent;
  color: var(--place-panel-ink);
  border: var(--ui-border) solid var(--place-line);
  box-shadow: none;
}
.tryon .btn.sm::after {
  inset: -4px -6px;
}
#shTabs {
  margin: 8px 12px 0;
  border: var(--ui-border) solid var(--place-line);
  border-color: var(--line);
}
#shTabs button {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 2px;
  font-family: var(--f-display);
  font-size: 14px;
}
#shTabs button::after {
  inset: -9px -1px -6px;
}
.shop-top > :last-child {
  margin-bottom: 10px;
}
.shop-shelf {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2px 12px 16px;
}
.shop-shelf h3 {
  margin: 12px 2px 8px;
}
.shop-shelf .grid {
  gap: 10px 8px;
  padding-bottom: var(--ui-drop);
}
.shop-shelf .it {
  padding: 17px 4px 8px;
}
.shop-shelf .it::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 22px;
  height: 6px;
  margin-left: -11px;
  border-radius: 3px;
  background: var(--place-surface);
}
.shop-shelf .it.shop-tried {
  --tile-frame: var(--accent);
  --tile-frame-shade: var(--accent-d);
  transform: translateY(-2px);
}
.shop-shelf .it .own {
  color: #157a45;
}
.shop-shelf .price.short {
  color: #b3202f;
}
.shop-shelf .btn .price.short {
  color: inherit;
}
.shop-shelf .market_reference_price {
  color: var(--ink2);
}
.shop-shelf .btn {
  box-shadow: 0 var(--ui-drop) 0 var(--accent-d);
}
.shop-shelf .muted {
  color: var(--ink2);
}
.shop-shelf .list {
  gap: 10px;
  padding-top: 10px;
}
.shop-packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
  padding-bottom: var(--ui-drop);
}
.shop-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  border: var(--ui-border) solid var(--ui-edge);
  border-radius: var(--ui-radius-card);
  box-shadow: 0 var(--ui-drop) 0 var(--ui-edge);
  padding: 8px 10px 10px;
  color: #fff;
  text-align: left;
}
.shop-pack:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ui-edge);
}
.shop-pack-art {
  position: relative;
  align-self: stretch;
  height: 104px;
  margin: 0 -10px 6px;
  overflow: hidden;
}
.shop-pack-art > svg {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 116px;
  height: 126px;
  margin-left: -58px;
}
.shop-pack b,
.shop-pack-title b {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.05;
}
.shop-pack .tag {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.85;
}
.shop-pack-price,
.shop-pack-full-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-display);
  font-size: 15px;
  line-height: 1.2;
}
.shop-pack-price {
  margin-top: 6px;
  background: var(--place-mark);
  color: var(--place-mark-ink);
  border-radius: var(--ui-radius-tag);
  padding: 3px 8px;
}
.shop-pack-price > svg,
.shop-pack-full-price > svg {
  width: 15px;
  height: 15px;
}
.shop-pack-done .shop-pack-price {
  background: var(--ui-edge);
  color: #fff;
}
.shop-pack-discount {
  background: var(--ui-edge);
  color: var(--place-mark);
  border-radius: var(--ui-radius-tag);
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 900;
}
.shop-pack > .shop-pack-discount {
  position: absolute;
  top: 8px;
  right: 8px;
}
.shop-pack-hero {
  position: relative;
  height: 214px;
  margin: 0 -16px 14px;
  border-top: 3px solid var(--ui-edge);
  border-bottom: 3px solid var(--ui-edge);
  overflow: hidden;
  color: #fff;
}
.shop-pack-hero-pet {
  position: absolute;
  right: 6px;
  bottom: 0;
  width: 180px;
  height: 196px;
}
.shop-pack-hero-pet > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shop-pack-title {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 196px;
}
.shop-pack-title b {
  display: block;
  font-size: 26px;
  line-height: 1;
}
.shop-pack-title span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0.9;
}
.shop-pack-offer {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 196px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.shop-pack-full-price {
  text-decoration: line-through;
  opacity: 0.85;
}
.shop-pack-offer .btn {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 8px;
}
.shop-pack-offer .btn svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.shop-pack-complete {
  font-family: var(--f-display);
  font-size: 18px;
}
.shop-pack-items {
  gap: 10px 8px;
  padding-bottom: var(--ui-drop);
}
.shop-pack-items .it {
  padding-top: 8px;
}
.shop-pack-items .it .own {
  color: #157a45;
}
.shop-buy {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 4px 12px;
  font-weight: 900;
  font-size: 12px;
}
.shop-buy .price {
  font-size: 12px;
}
.shop-shelf .shop-buy .price.short {
  color: inherit;
}
.shop-buy:has(.price.short) {
  background: #8a7f96;
}
.pv {
  position: relative;
  height: 236px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky1), var(--sky2));
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.pv::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 280px;
  height: 90px;
  margin-left: -140px;
  border-radius: 50%;
  background: var(--grass);
}
.pv > svg {
  position: relative;
  height: 226px;
  width: auto;
}
.li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}
.li svg {
  width: 52px;
  height: 52px;
}
.li .price svg {
  width: 15px;
  height: 15px;
}
.li-coin > svg {
  color: var(--gold);
}
.li-flame > svg {
  color: #ff8a3d;
}
.li.strain .shop-dependence-stars {
  display: inline-flex;
  vertical-align: -2px;
  color: var(--gold);
}
.shop-dependence-stars svg {
  width: 12px;
  height: 12px;
}
.li b {
  display: block;
  font-size: 15px;
}
.li .btn.sm::after {
  inset: -10px -8px;
}
.list {
  display: grid;
  gap: 8px;
}
