#supply-open {
  position: absolute;
  display: grid;
  place-items: end center;
  border: 3px solid #211324;
  padding: 0 2px 4%;
  color: #fff;
  background:
    url('./assets/images/supply-crate-icon.webp') center 18% / 78% auto no-repeat,
    linear-gradient(#e4478f, #a11e63 68%, #751344);
  box-shadow: inset 0 0 0 2px #fa80bb, 0 2px #090711;
  font: 900 calc(19px * var(--corner-scale, .75))/1 MontserratBlack, Montserrat, sans-serif;
  text-shadow: 0 1px 2px #230c21, 0 0 3px #230c21;
  touch-action: manipulation;
}
#supply-open span { translate: 0 -2px; }
#supply-open:focus-visible, #supply-shop :focus-visible {
  outline: 2px solid #fff3a5;
  outline-offset: -4px;
}
#supply-shop {
  container-type: inline-size;
  width: min(46.4vw, 940px);
  max-width: calc(100vw - 24px);
  height: min(59.7dvh, 637px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  translate: 0 min(2.7dvh, 30px);
  padding: 0;
  overflow: hidden;
  border: 4px solid #100d17;
  border-radius: 2px;
  color: #fff;
  background: #10101a;
  box-shadow: inset 0 0 0 2px #706879, 2px 5px 0 #0e0b1590, 0 13px 30px #110b2660;
  font: 800 14px Montserrat, system-ui, sans-serif;
}
#supply-shop[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
#supply-shop::backdrop { background: #32386047; backdrop-filter: blur(7px); }
.supply-header {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.35cqw;
  min-height: 11.65cqw;
  padding: .6cqw 1cqw .9cqw;
  color: #fff;
  border-bottom: 3px solid #250913;
  box-shadow: inset 0 0 0 2px #f781b5, inset 0 -6px #ad1649;
  background:
    repeating-linear-gradient(115deg, transparent 0 19%, #ffc0e02b 19% 23%, #ffffff08 23% 26%, transparent 26% 37%),
    radial-gradient(ellipse at 65% -100%, #ff91cf, transparent 78%),
    linear-gradient(#eb2787, #ba0658 64%, #e51253 88%, #9a133b);
}
.supply-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url('./assets/shop-icons/starter_bundle.webp') 80% 44% / 42% auto no-repeat;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
  opacity: .35;
  pointer-events: none;
}
.supply-mark {
  width: 11cqw;
  aspect-ratio: 1.12;
  background: url('./assets/shop-icons/starter_bundle.webp') center / contain no-repeat;
  filter: drop-shadow(0 3px 1px #270b1c);
}
.supply-header h2 {
  margin: 0;
  color: #fff;
  font: 900 clamp(23px, 7.05cqw, 70px)/1 MontserratBlack, Montserrat, sans-serif;
  -webkit-text-stroke: clamp(2px, .83cqw, 8px) #211226;
  paint-order: stroke fill;
  letter-spacing: -.022em;
}
#supply-close {
  display: grid;
  place-items: center;
  width: 8.8cqw;
  min-width: 32px;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid #4d152c;
  border-radius: 12%;
  color: #fff;
  background: linear-gradient(#fa79ae, #ec3165 54%, #c21b49);
  box-shadow: inset 0 0 0 2px #ffb1ce, inset 0 -3px #a8113c, 0 2px #180b16;
  font: 900 clamp(24px, 6.4cqw, 62px)/.92 MontserratBlack, Montserrat, sans-serif;
  -webkit-text-stroke: clamp(2px, .65cqw, 6px) #221428;
  paint-order: stroke fill;
}
#supply-scroll {
  min-height: 0;
  overflow: hidden scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 1.55cqw;
}
#supply-scroll::-webkit-scrollbar { width: max(6px, .85cqw); }
#supply-scroll::-webkit-scrollbar-track { background: #272233; }
#supply-scroll::-webkit-scrollbar-thumb {
  border: 1px solid #302737;
  border-radius: 3px;
  background: #81788b;
}
.supply-section-title {
  margin: 1.7cqw 0 .85cqw .7cqw;
  color: #fff;
  font: 900 clamp(15px, 3.2cqw, 34px)/1.14 MontserratBlack, Montserrat, sans-serif;
  text-shadow: 0 2px #24162a;
}
.supply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15cqw; }
.supply-card {
  --light: #fff5aa;
  --shade: #d0a629;
  --rim: #ffe486;
  --stud: radial-gradient(circle at 20% 25%, #fff3 0 17%, #0000 22%);
  display: grid;
  grid-template-columns: 41% minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .65cqw;
  min-width: 0;
  min-height: 25cqw;
  padding: 1.05cqw;
  border: 2px solid #0e0b14;
  box-shadow: inset 0 0 0 2px var(--rim), inset 0 -4px #28132f55, 0 1px #070710;
  background:
    var(--stud) 0 0 / 2.8cqw 2.8cqw repeat,
    repeating-conic-gradient(from 0deg at 27% 70%, #fff5 0deg 17deg, #0000 17deg 37deg),
    linear-gradient(140deg,var(--light),var(--shade));
}
[data-tone="blue"] { --light: #b5f6fa; --shade: #36a9c2; --rim: #b8fbff; }
[data-tone="pink"] { --light: #ffbfd6; --shade: #c04d7d; --rim: #ffdae8; }
[data-tone="green"] { --light: #baffb0; --shade: #53a964; --rim: #ddffbc; }
[data-tone="purple"] { --light: #ecc1fc; --shade: #9664c5; --rim: #f8dcff; }
.supply-card h4 {
  grid-column: 1 / -1;
  align-self: start;
  justify-self: center;
  color: #fff;
  margin: 0;
  text-align: center;
  font: 900 clamp(12px, 3.9cqw, 42px)/1.04 MontserratBlack, Montserrat, sans-serif;
  -webkit-text-stroke: clamp(2px, .72cqw, 6px) #23192a;
  paint-order: stroke fill;
}
.supply-card-art {
  display: block;
  grid-column: 1;
  grid-row: 2 / span 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 18cqw;
  align-self: center;
  object-fit: contain;
  filter: drop-shadow(0 3px 1px #301b2180);
}
.supply-egg-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.supply-egg-grid .supply-card { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 13cqw auto auto; }
.supply-egg-grid .supply-card h4 { font-size: clamp(11px, 2.65cqw, 25px); }
.supply-egg-grid .supply-egg-art {
  width: 13cqw;
  justify-self: center;
  grid-row: 2;
}
.supply-egg-grid .supply-card p,.supply-egg-grid .supply-card button {
  grid-column: 1;
  justify-self: stretch;
  text-align: center;
}
.supply-egg-grid .supply-card button { min-width: 0; }
.supply-card p {
  grid-column: 2;
  align-self: center;
  margin: 0;
  text-align: right;
  color: #fff;
  font: 900 clamp(10px, 2.18cqw, 23px)/1.09 MontserratBlack, Montserrat, sans-serif;
  -webkit-text-stroke: clamp(1.4px, .42cqw, 5px) #24132a;
  paint-order: stroke fill;
}
.supply-card button {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  min-height: clamp(27px, 5.5cqw, 54px);
  min-width: 65%;
  padding: .2cqw 1.05cqw;
  border: 2px solid #45610d;
  border-radius: 5px;
  color: #fff;
  background:
    repeating-linear-gradient(115deg, transparent 0 24%, #fff6 24% 32%, transparent 32% 55%),
    linear-gradient(#ecff62 0, #c5ff20 44%, #6fda00 100%);
  box-shadow: inset 0 0 0 2px #f4ff96, inset 0 -3px #5baf03, 0 2px #3423078a;
  font: 900 clamp(11px, 3.22cqw, 32px)/1 MontserratBlack, Montserrat, sans-serif;
  -webkit-text-stroke: clamp(1.6px, .52cqw, 5px) #251933;
  paint-order: stroke fill;
  touch-action: manipulation;
}
.supply-card button:disabled, #supply-close:disabled {
  opacity: .68;
  filter: saturate(.6);
  cursor: default;
}
#supply-featured .supply-card {
  --rim: #e79dff;
  min-height: 21.45cqw;
  grid-template-columns: 23% minmax(0, 1fr) 19%;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(ellipse at 28% 68%, #fc9ce5af 0, transparent 39%),
    repeating-conic-gradient(from 14deg at 37% 65%, #ffe1fb4d 0deg 14deg, #0000 14deg 35deg),
    linear-gradient(133deg, #ef39c5, #8723de 45%, #4e13a9 73%, #e43db1);
}
#supply-featured .supply-card-art {
  grid-row: 1 / span 2;
  max-height: 20cqw;
  filter: drop-shadow(0 4px 1px #341045ad);
}
#supply-featured h4 { grid-column: 2 / 4; font-size: clamp(14px, 4.1cqw, 43px); }
#supply-featured button { grid-column: 3; align-self: center; justify-self: stretch; }
.supply-feature-contents {
  grid-column: 2;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .55cqw;
}
.supply-feature-chip {
  min-width: 0;
  min-height: 10.1cqw;
  padding: .45cqw;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .4cqw;
  border: 1px solid #140a21;
  box-shadow: inset 0 0 0 1px #b794cb;
  background: #24163ad6;
  color: #fff;
  text-align: center;
  font: 900 clamp(8px, 1.8cqw, 17px)/1.05 MontserratBlack, Montserrat, sans-serif;
}
.supply-feature-icon {
  display: block;
  width: 5.8cqw;
  height: 4.85cqw;
  object-fit: contain;
}
.supply-wallet {
  margin: 1.25cqw 0 0;
  text-align: right;
  color: #ffe38d;
  font-size: clamp(11px, 1.75cqw, 19px);
}
#supply-status { margin: 0; padding: 6px 12px; color: #fff; background: #311d3c; }
#supply-status:empty { display: none; }
@media (max-width: 1050px) {
  #supply-shop { width: min(72vw, 620px); height: min(72dvh, 590px); }
}
@media (max-width: 560px) {
  #supply-shop { width: calc(100vw - 22px); height: min(69dvh, 590px); translate: none; }
  #supply-featured .supply-card { min-height: 27cqw; }
  .supply-card { min-height: 31cqw; }
}
@media (orientation: landscape) and (max-height: 520px) {
  #supply-shop {
    width: min(67vw, 130dvh);
    height: min(83dvh, 590px);
    translate: none;
  }
}
