#pix-store {
  --ps-ink:#2b1d0e;
  --ps-quiet:#7a5424;
  --ps-line:#d9b978;
  --ps-pixel:"Pixlaria Blocks", var(--blocks);
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  width: min(920px, calc(100vw - 24px));
  height: min(620px, calc(100dvh - 24px));
  border: 3px solid #c9a25a;
  border-radius: 12px;
  corner-shape: bevel;
  color: var(--ps-ink);
  background: #f6e7bd;
  font: 600 14px/1.4 var(--read);
  box-shadow: 0 0 0 2px var(--ps-ink), 0 18px 40px rgb(0 0 0 / 45%);
}
#pix-store[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#pix-store::backdrop {
  background: rgb(16 31 23 / 58%);
}
#pix-store *,
#pix-store *::before {
  box-sizing: border-box;
}
#pix-store [hidden] {
  display: none !important;
}
#pix-store button {
  min-height: 34px;
  padding: 4px 10px;
  border: 2px solid var(--ps-ink) !important;
  border-radius: 7px !important;
  corner-shape: bevel;
  background: linear-gradient(#fffaea, #f3e3b8) !important;
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 70%),
    inset 0 -2px 0 rgb(120 80 30 / 14%),
    0 2px 0 rgb(43 29 14 / 40%) !important;
  color: var(--ps-ink) !important;
  text-shadow: none !important;
  font: 700 13px/1.2 var(--read) !important;
  cursor: pointer;
}
#pix-store button:hover {
  background: linear-gradient(#fffdf2, #fbeec9) !important;
}
#pix-store :is(button, input):focus-visible {
  outline: 3px solid #387849;
  outline-offset: 2px;
}
#pix-store .ps-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: linear-gradient(#4a9a5c, #3a7f4b);
  color: #fff9e6;
  border-bottom: 3px solid var(--ps-ink);
  flex: none;
}
#pix-store .ps-heading small {
  display: block;
  color: #e6f0cc;
  font: 700 10px/1.3 var(--read);
  letter-spacing: .14em;
  text-transform: uppercase;
}
html body #pix-store#pix-store#pix-store h2 {
  margin: 1px 0 0;
  color: #fff9e6 !important;
  font: 400 24px/1.1 var(--ps-pixel) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgb(20 45 25 / 70%) !important;
}
#pix-store .ps-emblem,
#pix-store .ps-art {
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(#f1ddb0, #e9d09c);
  border: 2px solid var(--ps-ink);
  border-radius: 7px;
  corner-shape: bevel;
  box-shadow: inset 0 3px 0 rgb(120 80 30 / 20%), inset 0 -2px 0 rgb(255 255 255 / 55%);
}
#pix-store .ps-emblem {
  width: 42px;
  height: 42px;
}
#pix-store .ps-emblem canvas {
  display: block;
  width: 28px;
  height: 28px;
}
#pix-store #ps-close {
  width: 38px;
  min-height: 38px;
  flex: none;
  margin-left: auto;
  padding: 0;
  font-size: 24px !important;
  line-height: 1 !important;
}
#pix-store .ps-wallet {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-bottom: 2px solid var(--ps-line);
  background: #ecd9a8;
  flex: none;
}
#pix-store .ps-purse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 3px 12px 3px 8px;
  border: 2px solid var(--ps-ink);
  border-radius: 5px;
  corner-shape: bevel;
  background: linear-gradient(#ffe27a, #f6c531);
  box-shadow: 0 2px 0 rgb(43 29 14 / 40%);
  color: var(--ps-ink);
  font: 700 14px/1.3 var(--read);
  font-variant-numeric: tabular-nums;
}
#pix-store .ps-purse canvas {
  display: block;
  width: 18px;
  height: 18px;
}
#pix-store .ps-note {
  margin: 0;
  color: var(--ps-quiet);
  font: 600 13px/1.35 var(--read);
}
#pix-store .ps-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  min-height: 0;
  padding: 12px 12px 16px;
}
#pix-store .ps-categories {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px 7px;
  background: #ead7a8;
  border: 2px solid var(--ps-line);
  border-radius: 7px;
  corner-shape: bevel;
  box-shadow: inset 0 2px 0 rgb(0 0 0 / 8%);
}
html body #pix-store#pix-store#pix-store .ps-categories h3 {
  margin: 0;
  padding: 0 4px 2px;
  color: #7a4f10 !important;
  font: 400 12px/1.5 var(--ps-pixel) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#pix-store .ps-categories button {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}
#pix-store .ps-categories button[aria-pressed=true] {
  background: linear-gradient(#ffe27a, #f6c531) !important;
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 45%),
    inset 0 -2px 0 rgb(0 0 0 / 18%),
    0 2px 0 rgb(43 29 14 / 40%) !important;
}
#pix-store .ps-count {
  margin-left: auto;
  padding: 0 6px;
  border-radius: 7px;
  background: rgb(43 29 14 / 10%);
  font: 700 10px/16px var(--read);
  font-variant-numeric: tabular-nums;
}
#pix-store .ps-categories button[aria-pressed=true] .ps-count {
  background: rgb(255 255 255 / 30%);
}
#pix-store .ps-find {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
  color: var(--ps-quiet);
  font: 700 12px/1.3 var(--read);
}
#pix-store .ps-find input {
  width: 100%;
  min-height: 38px;
  padding: 6px 10px;
  border: 2px solid var(--ps-ink);
  border-radius: 7px;
  corner-shape: bevel;
  background: #fffdf4;
  color: var(--ps-ink);
  font: 600 15px/1.2 var(--read);
}
#pix-store .ps-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}
#pix-store .ps-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 1px;
  padding: 8px;
  background: #fff8dc;
  border: 2px solid var(--ps-line);
  border-radius: 8px;
  corner-shape: bevel;
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 60%);
}
#pix-store .ps-art {
  grid-row: 1 / 4;
  width: 52px;
  height: 52px;
  overflow: hidden;
}
#pix-store .ps-art img {
  display: block;
  width: 46px;
  height: 46px;
}
#pix-store .ps-item > strong {
  font: 700 14px/1.25 var(--read);
  overflow-wrap: anywhere;
}
#pix-store .ps-line {
  color: var(--ps-quiet);
  font: 600 12px/1.3 var(--read);
}
#pix-store .ps-tag {
  justify-self: start;
  margin-top: 3px;
  padding: 0 7px;
  border: 2px solid var(--ps-ink);
  border-radius: 5px;
  corner-shape: bevel;
  background: linear-gradient(#ffe27a, #f6c531);
  box-shadow: 0 2px 0 rgb(43 29 14 / 40%);
  color: var(--ps-ink);
  font: 700 12px/1.5 var(--read);
  white-space: nowrap;
}
@media (max-width: 640px) {
  #pix-store {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    max-height: 640px;
  }
  html body #pix-store#pix-store#pix-store h2 {
    font-size: 20px !important;
  }
  #pix-store .ps-wallet {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 7px 12px;
  }
  #pix-store .ps-body {
    display: block;
    padding: 10px 10px 14px;
  }
  #pix-store .ps-categories {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 10px;
  }
  #pix-store .ps-categories h3 {
    flex-basis: 100%;
  }
  #pix-store .ps-items {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
@media (max-height: 520px) {
  #pix-store .ps-heading {
    padding: 5px 12px;
  }
  #pix-store .ps-heading small,
  #pix-store .ps-emblem {
    display: none !important;
  }
}
