#content:has(> .storefront) {
  width: 100%;
  max-width: none;
  padding: 0;
}

#content:has(> .storefront):focus { outline: none; }

.storefront {
  --store-base: #100f12;
  --store-text: #f6f2fa;
  --store-accent: #a06af6;
  --store-gutter: 32px;
  --store-width: 1440px;
  --case-columns: 4;
  --case-art-height: 288px;
  min-width: 0;
  padding-bottom: clamp(60px, 8vw, 116px);
  color: var(--store-text);
  background: var(--store-base);
}

.storefront a:focus-visible, .storefront button:focus-visible { outline: 2px solid #c398ff; outline-offset: 3px; }

.store-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.store-display {
  font-family: Impact, "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.store-home { container-type: inline-size; }

.store-carousel {
  position: relative;
  display: block;
  width: min(calc(var(--store-width) - 2 * var(--store-gutter)), calc(100% - 2 * var(--store-gutter)));
  height: 580px;
  margin-inline: auto;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
}

.store-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  isolation: isolate;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
}

.store-slide[data-current] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.store-slide-art {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 100cqw;
  transform: translateX(-50%);
  background: #1c142e;
}

.store-slide-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

.store-slide-art::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, #100f12 0%, #100f1200 23%, #100f1200 87%, #100f127b 100%),
    var(--slide-scrim, linear-gradient(90deg, #0b09159c 0%, #140c2463 25%, #170d241c 52%, transparent 74%));
}

.store-slide-arena {
  --slide-scrim: linear-gradient(90deg, #1c101cbc, #1b121d51 23%, transparent 52%);
  --hero-action-width: 310px;
}

.store-slide-vault {
  --hero-action-width: 190px;
  --slide-scrim: linear-gradient(90deg, #180e2678 0%, #160e245c 30%, #180e240d 53%, transparent 71%);
}

.store-slide-vault .store-slide-art img { object-position: 35% center; }

.store-slide-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding-block: 64px;
}

.storefront .store-slide-inner .store-display {
  max-width: min(100%, 640px);
  font-size: 64px;
  line-height: 1;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 1px 5px 13px #08070aba;
}

.store-slide-inner :is(.store-slide-accent, .store-slide-kicker) {
  display: block;
  width: fit-content;
  color: #b284f8;
  background: linear-gradient(145deg, #c49dff 6%, #9d65f3 48%, #7134d8 77%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 10px #11093180);
}

.storefront .store-slide-vault .store-display {
  font-size: 48px;
  text-transform: none;
}

.store-slide-vault .store-slide-kicker {
  margin-bottom: 4px;
  font-size: 64px;
  text-transform: uppercase;
  background-image: linear-gradient(155deg, #edbbff, #c894ef 86%);
}

.storefront .store-slide-inner .store-slide-fund {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  color: #ffc743;
  letter-spacing: .035em;
}

.store-slide-fund svg {
  width: .5em;
  height: .5em;
  flex: none;
}

.storefront .store-slide-inner p {
  max-width: 38rem;
  margin: 16px 0 24px;
  font-size: 16px;
  line-height: 1.1875;
  text-shadow: 0 2px 10px #100e14;
}

.storefront .store-slide-vault p {
  max-width: 496px;
  color: #f6f2faa6;
  font-size: 18px;
  line-height: 1.17;
}

.store-slide-fund-label { display: block; }

.store-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ae7ce59c;
  border-radius: 20px;
  background: linear-gradient(105deg, #61429f, #7546c6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 #ddc4f72e, 0 6px 48px #8f37e13c;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.store-slide-inner .store-button {
  width: min(var(--hero-action-width, 296px), 100%);
  margin-top: auto;
}

.store-slide-arena .store-button {
  border-color: #ffd4769c;
  background: linear-gradient(110deg, #c18326, #e8a744);
  box-shadow: inset 0 1px 0 #ffebbd65, 0 5px 42px #ca7c3069;
}

.store-slide-arena .store-button:hover { background: #bb721a; }

.store-button:hover:not(:disabled) {
  background: #8956d6;
  color: #fff;
  box-shadow: inset 0 1px 0 #ddc4f770, 0 8px 38px #8f37e15e;
  transform: translateY(-1px);
}

.store-button:active { transform: translateY(1px); }
.store-button-soft {
  background: #241b31;
  border-color: #9667d149;
  box-shadow: inset 0 1px 0 #ddc4f71a;
}

.store-slide-controls {
  position: absolute;
  right: 0;
  bottom: 54px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-slide-tab, .store-slide-pause {
  display: grid;
  place-items: center;
  width: 34px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #f6f2fa;
  background: none;
  transition: width 300ms ease, color 150ms ease;
}

.store-slide-tab::after {
  content: "";
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: currentColor;
  opacity: .36;
  transition: opacity 180ms ease;
}

.store-slide-tab[aria-current="true"] { width: 74px; }
.store-slide-tab[aria-current="true"]::after, .store-slide-tab:hover::after { opacity: 1; }
.store-slide-tab[aria-current="true"]::after { box-shadow: 0 0 12px #c3a1ff77; }
.store-slide-pause { position: absolute; inset-inline-end: calc(100% + 6px); width: 30px; opacity: .65; color: #c8b8d5; }
.store-slide-pause:hover { color: #fff; }
.store-slide-pause[data-paused] .store-pause-glyph,
.store-slide-pause:not([data-paused]) .store-play-glyph { display: none; }

.store-mode-rail {
  position: relative;
  z-index: 2;
  display: block;
  width: min(calc(100% - 2 * var(--store-gutter)), calc(var(--store-width) - 2 * var(--store-gutter)));
  margin: -64px auto 0;
}

.store-mode-scroll { display: none; }

.store-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 4px;
}

.store-mode {
  --mode-color: #7340c7;
  --mode-glint: #c4a2ff;
  --mode-floor: #a364ff;
  position: relative;
  display: block;
  flex: 0 0 min(142px, calc((100% - 12px) / 4));
  height: 190px;
  overflow: hidden;
  border: 1px solid #ada0bd1f;
  border-radius: 16px;
  background: linear-gradient(0deg, #09060e65 0%, transparent 11%),
    radial-gradient(ellipse 81% 59% at 50% 88%, var(--mode-glint), transparent 68%),
    linear-gradient(0deg, var(--mode-color), #17151b 64%);
  color: #fff;
  isolation: isolate;
}

.store-mode-upgrade { --mode-color: #629121; --mode-glint: #b1df63; --mode-floor: #baf652; }
.store-mode-contracts { --mode-color: #2359ad; --mode-glint: #6da7fb; --mode-floor: #3b78ff; }
.store-mode-battle { --mode-color: #ac5222; --mode-glint: #f7a266; --mode-floor: #ffaa40; }

.case-cover-image { object-fit: contain; --case-hue: 0deg; filter: hue-rotate(var(--case-hue)); }
.case-cover-image[data-case-art="case-04"] { --case-hue: -55deg; }
.case-cover-image[data-case-art="case-05"] { --case-hue: 25deg; }
.case-cover-image[data-case-art="case-06"] { --case-hue: 26deg; }
.case-cover-image[data-case-art="case-07"] { --case-hue: -18deg; }
.case-cover-image[data-case-art="case-08"] { --case-hue: 48deg; }
.case-cover-image[data-case-art="case-09"] { --case-hue: 18deg; }
.case-cover-image[data-case-art="case-10"] { --case-hue: 56deg; }
.case-cover-image[data-case-art="case-11"] { --case-hue: 41deg; }
.case-cover-image[data-case-art="case-12"] { --case-hue: 88deg; }

.store-mode-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 150ms ease-out;
}

.store-mode::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#aaa1bc22, #9c97af16 34%, transparent 56%),
    linear-gradient(transparent 42%, color-mix(in srgb, var(--mode-floor), transparent 62%) 64%,
      color-mix(in srgb, var(--mode-floor), transparent 10%) 88%, color-mix(in srgb, var(--mode-floor), transparent 18%));
  content: "";
}

.storefront .store-mode span {
  position: absolute;
  inset-inline: 0;
  bottom: 24px;
  z-index: 1;
  padding: 0 8px;
  font-size: var(--type-subhead);
  line-height: 1;
  text-align: center;
  overflow-wrap:anywhere;
  text-shadow: 0 3px 6px #1813219c;
}

.store-mode:hover, .store-mode:focus-visible { color: #fff; border-color: var(--mode-glint); }
.store-mode:is(:hover, :focus-visible) .store-mode-art { transform: scale(1.04); }

.store-group {
  position: relative;
  width: min(var(--store-width), 100%);
  margin-inline: auto;
  padding-inline: var(--store-gutter);
  isolation: isolate;
}

.store-catalog { padding-top: 32px; }
.storefront > .store-group + .store-group,
.store-home > .store-mode-rail + .store-group { margin-top: 64px; }

.store-group::before {
  position: absolute;
  inset: -16px 0 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse 220px 104px at 50% 41px, #272330a3, transparent);
}

.store-featured::before {
  opacity: .65;
  background: radial-gradient(ellipse at 50% 8%, #2a2430ba 0, #1a161e8c 26%, transparent 73%),
    repeating-linear-gradient(90deg, #251d2d35 0 3px, transparent 4px 140px);
  mask-image: radial-gradient(ellipse 86% 78% at 50% 18%, #000, transparent 100%);
}

.store-catalog > .store-collection:first-of-type::before {
  background: linear-gradient(180deg, #100f1244, #100f1273 56%, var(--store-base)),
    url("/ludik-upgrade-yard.jpg") center 58% / cover;
  opacity: .44;
}

.storefront .store-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  padding: 12px 0;
  color: #efe9f3;
  font-size: 32px;
  text-align: center;
  text-shadow: 0 0 22px #af8aca68;
}

.store-heading::before, .store-heading::after {
  display: block;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  content: "";
  transform: rotate(45deg);
  background: #7750a1;
  box-shadow: 0 0 12px #9b64ed52;
}

.store-heading > .store-display { min-inline-size:0; overflow-wrap:anywhere; }

.store-case-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
  row-gap: 32px;
}

.store-case-grid li { flex: 0 0 calc(100% / var(--case-columns)); min-width: 0; }

.store-collection .store-case-grid {
  display: grid;
  grid-template-columns: repeat(var(--case-columns), minmax(0, 1fr));
}

.store-case {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border-radius: 12px;
  color: var(--store-text);
  text-align: center;
}

.store-case:hover { color: #fff; }
.store-case-name {
  display: grid;
  min-height: 21px;
  align-items: center;
  padding-inline: 8px;
  font-size: clamp(.86rem, 1.38vw, 1.2rem);
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.store-collection .store-case-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 21px;
}

.store-case-category {
  display: grid;
  min-height: 26px;
  align-items: center;
  color: var(--type-muted);
  font-size: 13px;
  line-height: 1.15;
}

.store-case > .store-case-art, .store-case-composition {
  display: block;
  width: min(100%, var(--case-art-height));
  height: var(--case-art-height);
  margin-top: auto;
  overflow: visible;
}

.store-case .store-case-art {
  filter: hue-rotate(var(--case-hue)) drop-shadow(0 12px 14px #09070d9c);
  transition: transform 250ms cubic-bezier(.18,.8,.23,1), filter 180ms ease;
}

.store-case-composition { position: relative; }
.store-case-composition .store-case-art { width: 100%; height: 100%; }
.store-case-composition:has(img[data-ready]) .store-case-art:not([data-case-scene]) { scale: .84; translate: 0 13%; }
.store-case-composition .store-case-skin { position: absolute; inset: 0 1% 29%; }
.store-case-composition .store-case-skin img { object-position: center bottom; }
.store-case-composition .store-case-skin > img { padding: 0; filter: drop-shadow(0 8px 7px #0a0611d4); }
.store-case-composition .store-case-skin > .skin-preview-label { display: none; }
.store-case-composition[data-case-series="mystery"] .store-case-skin { inset: -5% 1% 42%; }
.store-case-composition[data-case-series="stattrak"] .store-case-skin { inset: -3% 1% 35%; }
.store-case-composition[data-case-series="cs2"] .store-case-skin { inset: 46% 3% 1%; }
.store-case-composition:has(> [data-case-scene]) .store-case-skin { inset: 49% 3% 6% 31%; }
.store-case .store-case-art[data-case-scene="salvage"] { object-fit: fill; }
.store-case-composition > [data-case-scene="salvage"] + .store-case-skin { inset: 52% 4% 10% 32%; }
.store-case-composition > [data-case-art="case-cold-20"] + .store-case-skin { inset: 34% 4% 15% 3%; }
.store-case-composition > [data-case-art="case-cold-20"] + .store-case-skin > img { rotate: -14deg; }

@media (max-width: 360px) {
  .store-case .store-case-art[data-case-scene="salvage"] { object-fit: contain; object-position: center bottom; }
}

.store-case:is(:hover, :focus-visible) .store-case-art:not([data-case-scene]) {
  transform: translateY(-5px) scale(1.04);
  filter: hue-rotate(var(--case-hue)) drop-shadow(0 14px 15px #09070daa) brightness(1.13);
}

.store-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  max-inline-size: 100%;
  min-height: 46px;
  padding: 4px 12px 4px 16px;
  border: 1px solid #9d74c91c;
  border-radius: 20px;
  background: radial-gradient(ellipse at 98% 49%, #8242ba77, transparent 72%), #e9d8ff0d;
  color: var(--store-text);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.store-credit-amount { min-inline-size:0; max-inline-size:100%; overflow-wrap:anywhere; }
.store-credit svg { flex:none; width: 24px; height: 24px; color: #c38dff; filter: drop-shadow(0 0 6px #a464f8); }
.player-case-grid .store-case:is(:hover, :focus-visible) .store-credit { border-color: #b37aee88; box-shadow: 0 1px 18px #9843d135; }
.store-collection .store-case:is(:hover, :focus-visible) .store-credit {
  border-color: #eee5f980;
  background: linear-gradient(115deg, #eee5fa, #dac2fb);
  color: #21152b;
}
.store-collection .store-case:is(:hover, :focus-visible) .store-credit svg { color: #7642b9; }

.store-group-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px var(--store-gutter) 0;
}

.store-minigames .tile-grid { margin-top: 16px; }
.store-minigames .game-tile { border-color: #a67de92d; background: #1a1620; }
.store-minigames .game-tile:hover { border-color: #ab78f4; }
.store-minigames .tile-label span { color: #bd9ae8; }

.player-case-intro {
  margin: 0;
  color: #f6f2faa0;
  font-size: 14px;
  line-height: 20px;
}

.store-player-shelf .player-case-intro { margin-top: 4px; line-height: 16px; text-align: center; }
.store-player-shelf .store-group-actions { margin-inline: 0; }
.store-player-shelf .store-button-soft { min-width: min(186px, 100%); }
.store-player-shelf .store-button:not(.store-button-soft) { min-width: min(238px, 100%); }
.store-player-shelf .player-case-grid { margin-top: 24px; }
.store-player-shelf > .empty { margin-top: 24px; }
.player-case-grid .store-case-category {
  display: block;
  max-width: 100%;
  min-height: 21px;
  overflow: hidden;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-case-openings { margin-top: 4px; color: #f6f2fa8c; font-size: 12px; line-height: 18px; }

.store-player-directory { padding-top: 32px; }
.player-case-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.storefront .player-case-head h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.1944; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.player-case-actions { display: flex; gap: 8px; }
.player-case-actions:empty { display: none; }
.player-case-head .store-button { min-width: 238px; box-shadow: inset 0 1px 0 #ddc4f72e; }
.player-case-head .store-button-soft { min-width: 150px; border-color: #e9d8ff0d; background: #e9d8ff0d; text-transform: none; }
.player-case-head .store-button-soft:hover { background: #e9d8ff1c; }
.player-case-head .player-case-intro { margin-top: 2px; }
.player-case-workspace { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; margin-top: 24px; }
.player-case-workspace .table-wrap { max-width: 100%; }
.player-case-workspace > section { margin-top: 0; }
.player-case-workspace > .store-group-actions { margin: 0; }
.player-case-head .store-button:disabled { opacity: .45; cursor: not-allowed; }
.player-case-publication {
  margin: 0;
  border-radius: 14px;
  color: #dfd6ec;
  background: #e9d8ff0d;
}
.player-case-publication[data-below-rank] { color: #f1c8ab; background: #c1936d1a; }
.player-case-publication summary,
.player-case-publication-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-height: 35px;
  align-items: center;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
}
.player-case-publication summary::-webkit-details-marker { display: none; }
.player-case-rank-help { text-decoration: underline; text-underline-offset: 2px; }
.player-case-publication-body { display: grid; gap: 12px; padding: 4px 16px 16px; }
.player-case-publication p { margin: 0; }
.player-case-publication-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; }
.player-case-publication-stats dt { color: var(--type-muted); font-size: 13px; }
.player-case-publication-stats dd { margin: 2px 0 0; font-weight: 700; }
.player-case-earnings { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; }
.player-case-earnings-summary {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  margin: 0;
}
.player-case-earnings-summary > div,
.player-case-earnings-chart,
.player-case-creator-rules,
.player-case-empty-note {
  border: 1px solid #e9d8ff0d;
  border-radius: 22px;
  background: #1b181e;
}
.player-case-earnings-summary > div { min-height: 100px; padding: 16px; }
.player-case-earnings-summary dt,
.player-case-earnings-summary p { margin: 0; color: var(--type-muted); font-size: 12px; }
.player-case-earnings-summary dd { margin: 2px 0 0; font-size: 24px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.player-case-earnings-chart, .player-case-creator-rules { min-width: 0; padding: 24px; border-radius: 24px; }
.player-case-earnings-chart header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.player-case-earnings-chart h2, .player-case-created h2, .player-case-creator-rules h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -.015em;
}
.player-case-earnings-chart fieldset { display: flex; gap: 8px; margin: 0; padding: 0; border: 0; }
.player-case-earnings-chart label { position: relative; display: block; }
.player-case-earnings-chart label input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.player-case-earnings-chart label span {
  display: grid;
  min-height: 40px;
  padding: 0 14px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--type-muted);
  background: #e9d8ff0d;
  font-size: 14px;
  font-weight: 600;
}
.player-case-earnings-chart label input:checked + span { color: #f5eff9; background: #e9d8ff1a; border-color: #e9d8ff12; }
.player-case-earnings-chart label input:focus-visible + span { outline: 2px solid #c398ff; outline-offset: -2px; }
.player-case-earnings-chart canvas { display: block; width: 100%; height: clamp(160px,16vw,245px); margin: 10px 0 5px; }
.player-case-earnings-chart > details summary { font-size: 13px; }
.player-case-created { display: grid; gap: 16px; min-width: 0; }
.player-case-empty-note {
  display: grid;
  justify-content: center;
  align-content: center;
  gap: 4px;
  min-height: 97px;
  padding: 20px;
  color: var(--type-muted);
  background: #e9d8ff05;
  font-size: 14px;
  text-align: center;
}
.player-case-created .player-case-empty-note { border-radius: 24px; background: #e9d8ff0d; }
.player-case-empty-note strong { color: var(--store-text); font-size: 16px; font-weight: 650; }
.player-case-creator-rules dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 24px; margin: 16px 0 0; }
.player-case-creator-rules dt { font-size: 14px; font-weight: 650; }
.player-case-creator-rules dd { margin: 4px 0 0; color: var(--type-muted); font-size: 13px; line-height: 1.45; }
.player-case-top { margin-top: 32px; }
.storefront .player-case-top h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 16px; letter-spacing: normal; }
.player-case-top ol {
  display: flex;
  gap: 8px;
  margin: 0 -4px;
  padding: 0 4px;
  overflow-x: auto;
  list-style: none;
}
.player-case-top a:focus-visible { outline-offset: -3px; }
.player-case-top li { flex: 0 0 min(226px,75%); min-width: 0; }
.player-case-top a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 8px 12px;
  border-radius: 16px;
  color: inherit;
  background: #e9d8ff0d;
}
.player-case-top a:hover { background: #e9d8ff1a; }
.player-case-rank {
  display: grid;
  flex: 0 0 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #e1bbff;
  background: #ad6ff028;
  font-size: 14px;
  font-weight: 750;
}
.player-case-author-name { display: grid; min-width: 0; gap: 2px; font-size: 14px; }
.player-case-author-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-case-author-name small { color: #f6f2fa9c; }

.player-case-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 32px;
}
.player-case-search {
  display: grid;
  flex: 1 0 100%;
  min-width: 0;
  grid-template-columns: minmax(0,1fr) minmax(170px,220px);
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: #e9d8ff08;
}
.player-case-search-query { position: relative; min-width: 0; }
.player-case-search-query svg {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--type-muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.player-case-search :is(input,select) {
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #e9d8ff13;
  border-radius: 12px;
  color: inherit;
  background: #e9d8ff0d;
  font: inherit;
  font-size: 14px;
}
.player-case-search-query input { width: 100%; padding-left: 40px; font-weight: 600; }
.player-case-search select { color: var(--type-muted); }
.player-case-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; border: 0; margin: 0; padding: 0; }
.player-case-filters label { position: relative; display: block; color: inherit; }
.player-case-filters input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.player-case-filters span {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 4px;
  padding-inline: 9px;
  background: #e9d8ff0d;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--type-muted);
  font-size: 14px;
  font-weight: 600;
}
.player-case-filters svg { width: 16px; color: #ab77eb; flex: none; }
.player-case-filters label:hover span { color: var(--store-text); }
.player-case-filters input:checked + span {
  background: #e9d8ff18;
  border-color: #e9d8ff25;
  color: var(--store-text);
}
.player-case-filters input:focus-visible + span, .player-case-search :is(input,select):focus-visible {
  outline: 2px solid #c398ff;
  outline-offset: 2px;
}
.player-case-controls + .player-case-grid { margin-top: 32px; }
.player-case-grid + [data-player-case-empty]:not([hidden]) { margin-top: 0; }

@media (max-width: 479px) {
  .store-player-shelf .store-group-actions { flex-direction: column; align-items: center; }
  .store-player-directory { padding-top: 20px; }
  .player-case-head { align-items: stretch; flex-direction: column; }
  .player-case-actions { flex-wrap: wrap; }
  .player-case-head .store-button { min-width: 0; min-height: 44px; padding-inline: 12px; font-size: 13px; }
  .player-case-head .player-case-intro { margin-top: 4px; font-size: 13px; }
  .player-case-workspace, .player-case-earnings { gap: 16px; }
  .player-case-earnings-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .player-case-earnings-summary > div, .player-case-earnings-chart, .player-case-creator-rules { padding: 12px; border-radius: 16px; }
  .player-case-earnings-summary dd { font-size: 19px; }
  .player-case-creator-rules dl { grid-template-columns: minmax(0,1fr); }
  .player-case-top { margin-top: 24px; }
  .player-case-controls { margin-top: 24px; }
  .player-case-search { grid-template-columns: minmax(0,1fr); }
  .player-case-filters { gap: 6px; }
  .player-case-filters span { min-height: 35px; padding-inline: 9px; font-size: 12px; }
}

@media (min-width: 1280px) {
  .storefront { --case-columns: 5; --case-art-height: 270px; }
}

@media (max-width: 1023px) {
  .storefront { --case-columns: 3; }
}

@media (max-width: 768px) {
  .store-carousel {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    height:auto;
    min-height:280px;
    margin-top: 32px;
    overflow: hidden;
    border-radius: 32px;
  }
  .store-slide { position:relative; grid-area:1/1; min-width:0; }
  .store-slide-inner { padding: 24px; }
  .storefront .store-slide-inner .store-display { max-width: min(100%, 260px); font-size: calc(32rem / 15); overflow-wrap:anywhere; }
  .storefront .store-slide-ranks .store-display { max-width: min(100%, 240px); font-size: calc(28rem / 15); }
  .storefront .store-slide-vault .store-display { font-size: var(--type-subhead); }
  .store-slide-vault .store-slide-kicker { margin-bottom: 8px; font-size: var(--type-display); }
  .storefront .store-slide-inner p { max-width: 230px; margin: 8px 0 16px; font-size: var(--type-caption); line-height: 1.1667; }
  .storefront .store-slide-ranks p { max-width: 220px; }
  .storefront .store-slide-arena p { max-width: 260px; }
  .storefront .store-slide-vault p { max-width: 276px; font-size: var(--type-label); line-height: 1.1429; }
  .store-slide-fund-label { display: inline; }
  .store-slide-fund svg { width: .56em; height: .56em; }
  .store-slide-arena { --slide-scrim: linear-gradient(90deg, #16101ccc, #17131d78 44%, #17131d00 100%); }
  .store-slide-art { inset: 0; width: auto; transform: none; }
  .store-slide-art::after {
    background: linear-gradient(0deg, #100f12 0%, transparent 33%, transparent 90%, #100f1266),
      var(--slide-scrim, linear-gradient(90deg, #110f18d6, #16102083 49%, transparent 100%));
  }
  .store-slide-controls { bottom: 0; right: auto; left: 50%; gap: 0; transform: translateX(-50%); }
  .store-slide-tab { width: 24px; height: 24px; }
  .store-slide-tab::after { width: calc(100% - 8px); height: 4px; }
  .store-slide-tab[aria-current="true"] { width: 40px; }
  .store-slide-pause { width: 26px; height: 24px; }
  .storefront .store-slide-inner .store-button {
    width: min(var(--hero-action-width-mobile, 196px),100%);
    min-height: 44px; padding:4px 20px; font-size:var(--type-label); overflow-wrap:anywhere;
  }
  .store-slide-arena { --hero-action-width-mobile: 207px; }
  .storefront .store-slide-arena .store-button { padding-inline: 12px; }
  .store-slide-vault {
    --hero-action-width-mobile: 188px;
    --slide-scrim: linear-gradient(90deg, #161021b8 0%, #1d112b66 53%, #1d112b00 91%);
  }
  .store-slide-vault .store-slide-art img { object-position: right center; }
  .storefront .store-slide-vault .store-button { min-height: 52px; font-size:var(--type-body); }
  .store-mode-rail { width: 100%; margin-top: 32px; }
  .store-mode-rail::before, .store-mode-rail::after {
    position: absolute;
    inset-block: 0;
    z-index: 1;
    width: 56px;
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
  }
  .store-mode-rail::before { left: 0; background: linear-gradient(90deg, var(--store-base), transparent); }
  .store-mode-rail::after { right: 0; background: linear-gradient(270deg, var(--store-base), transparent); }
  .store-mode-rail:has([data-mode-direction="-1"]:not([hidden]))::before,
  .store-mode-rail:has([data-mode-direction="1"]:not([hidden]))::after { opacity: 1; }
  .store-modes {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-inline: var(--store-gutter);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .store-mode { flex-basis: 142px; }
  .storefront .store-mode:focus-visible { outline-offset: -4px; }
  .store-mode-scroll {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid #e7d6f323;
    border-radius: 12px;
    color: #fff;
    background: #e9d8ff1a;
  }
  .store-mode-scroll:hover { background: #e9d8ff30; }
  .store-mode-scroll::after {
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateX(-1px) rotate(-45deg);
    content: "";
  }
  .store-mode-scroll[data-mode-direction="-1"]::after { transform: translateX(1px) rotate(135deg); }
  .store-mode-scroll[data-mode-direction="-1"] { left: 8px; }
  .store-mode-scroll[data-mode-direction="1"] { right: 8px; }
}

@media (max-width: 767px) {
  .storefront { --case-columns: 2; --case-art-height: 199px; }
  .storefront .store-heading { font-size: var(--type-subhead); }
}

@media (max-width: 479px) {
  .storefront { --store-gutter: 16px; }
}

@media (max-width: 359px) {
  .storefront .store-slide-arena .store-display { font-size: calc(28rem / 15); }
}

@media (prefers-reduced-motion: reduce) {
  .store-slide, .store-case-art, .store-mode-art, .store-button, .store-credit, .store-slide-tab,
  .store-mode-rail::before, .store-mode-rail::after { transition: none; }
}
