/* Store page: featured carousel, category tiles, one view per cluster store, package details and the Tebex bar.
   Loaded on /store/ only, after styles.css. */

.shop { padding-bottom: clamp(64px, 8vw, 104px); }

/* the store home or one cluster's packages; the head marks the view in data-view before the first paint,
   a <style> next to it shows the matching .cat-view. Without JS everything is listed one under the other. */
html[data-view] .cat-view { display: none; }
html[data-view]:not([data-view="home"]) .store-home,
html[data-view]:not([data-view="home"]) .store-feat { display: none; }
.no-js button[data-details], .no-js .feat-nav { display: none; }

/* prices (.price, .off) are in styles.css, shared with the landing's store section */

.btn--sm { --cut: 9px; height: 38px; padding: 0 14px; gap: 8px; font-size: 12.5px; }
.btn--sm.btn--primary { padding-right: calc(14px + var(--cut) / 2); }

/* ---------- Header: the landing's art and veil, title and lead centred, the carousel under them ---------- */

.store-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--nav-h) + clamp(30px, 3.6vw, 52px)) 0 clamp(44px, 5vw, 72px);
  overflow: hidden;
}
/* the veil runs out into the page colour at the foot, so the art ends without an edge */
.store-hero .hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0) 55%, var(--bg) 100%);
}
.store-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.store-feat { align-self: stretch; margin-top: clamp(16px, 1.4vw, 20px); text-align: left; }

/* the row over the carousel: Steam account, the categories in the middle, the cart */
.store-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(12px, 1.1vw, 14px);
}
.store-top .quick { margin: 0; }
.acct { justify-self: start; min-width: 0; max-width: 100%; }
.cart-btn { justify-self: end; }
.no-js .acct, .no-js .cart-btn { visibility: hidden; }
.acct-steam, .acct-user, .cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  max-width: 100%;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(16, 16, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  font: 700 13px/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.acct-steam .i, .acct-user .i, .cart-btn .i { width: 20px; height: 20px; }
.acct-steam[hidden], .acct-user[hidden] { display: none; }
.acct-user { padding-right: 7px; font: 600 14px/1 var(--font-body); letter-spacing: 0; text-transform: none; }
.acct-name { min-width: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.acct-out {
  margin-left: 2px;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font: 600 12.5px/1 var(--font-body);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0;
}
.acct-steam:focus-visible, .cart-btn:focus-visible, .acct-out:focus-visible, .cart-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* flat buttons press 1px on hover and 2px on click, they never lift */
.acct-steam:active, .cart-btn:active, .quick-cat:active { transform: translateY(2px); }
@media (hover: hover) {
  .acct-steam:hover, .cart-btn:hover { transform: translateY(1px); border-color: var(--line-3); filter: brightness(1.08); }
  .acct-out:hover { background: rgba(255, 255, 255, 0.11); color: var(--text); }
}

/* the categories over the carousel: the same links as the tiles further down, small */
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(12px, 1.1vw, 14px); }
.quick-cat {
  display: inline-grid;
  grid-template-columns: 40px auto;
  column-gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 5px 16px 5px 6px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(16, 16, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.quick-cat img { grid-row: 1 / 3; width: 40px; height: 40px; object-fit: contain; }
.quick-name { font: 700 15px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.quick-meta { color: var(--text-3); font-size: 12.5px; line-height: 1.3; }
.quick-meta b { color: var(--text); font-weight: 600; }
.quick-cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .quick-cat:hover { transform: translateY(1px); border-color: var(--line-3); filter: brightness(1.08); }
}
html.is-swapping .store-hero-inner span[data-for] { animation: swap-in 0.55s var(--ease-out) both; }

/* ---------- Featured carousel ---------- */

/* dark glass over the header art */
.feat {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(20, 22, 25, 0.68) 0%, rgba(15, 17, 19, 0.6) 70%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 34px 64px -34px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.feat-track { position: relative; touch-action: pan-y; }
.js .feat-track { display: grid; }
.feat-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(26px, 3vw, 40px) clamp(24px, 4.6vw, 66px) calc(clamp(26px, 3vw, 40px) + 46px);
}
.js .feat-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.js .feat-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.55s ease 0.05s, visibility 0s; }
.no-js .feat-slide + .feat-slide { border-top: 1px solid var(--line); }

.feat-copy > * { transition: transform 0.75s var(--ease-out); }
.js .feat-slide:not(.is-active) .feat-copy > * { transform: translateX(-14px); }
.feat-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: var(--text-3);
  font: 600 12.5px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.feat-chip {
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-3);
  color: var(--text);
  letter-spacing: 0.1em;
}
.feat-title {
  font: 800 clamp(30px, 3.7vw, 50px)/0.98 var(--font-display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.feat-line { max-width: 31em; margin-top: 16px; color: var(--text-2); font-size: clamp(15.5px, 1.2vw, 17px); line-height: 1.6; }
.feat-price { display: flex; align-items: center; gap: 12px; margin-top: 24px; font: 800 clamp(26px, 2.4vw, 32px)/1 var(--font-display); }
.feat-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* the image sits inside the box without sizing it, so a tall one never makes the carousel taller */
.feat-art {
  position: relative;
  aspect-ratio: 1 / 0.7;
  border-radius: 16px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.035) 55%, rgba(255, 255, 255, 0) 100%);
}
.feat-art img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5));
  transition: transform 1s var(--ease-out);
}
.js .feat-slide:not(.is-active) .feat-art img { transform: scale(0.94); }

.feat-nav {
  position: absolute;
  left: clamp(24px, 4.6vw, 66px);
  bottom: clamp(22px, 3vw, 36px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.feat-arrow {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(11, 12, 14, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: var(--text);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.feat-arrow .i { width: 16px; height: 16px; stroke-width: 2.4; }
.feat-arrow--prev .i { transform: rotate(180deg); }
.feat-arrow:focus-visible { background: rgba(4, 164, 252, 0.16); box-shadow: inset 0 0 0 1px rgba(4, 164, 252, 0.7); outline: none; }
.feat-dots { display: flex; gap: 4px; }
.feat-dot { display: grid; align-items: center; width: 38px; height: 28px; padding: 0 3px; border: 0; background: none; }
.feat-dot i { position: relative; display: block; height: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.feat-dot i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
}
.feat-dot[aria-current] i::after { transform: scaleX(1); }
.feat.is-running .feat-dot[aria-current] i::after { animation: feat-fill 7s linear both; }
@keyframes feat-fill { from { transform: scaleX(0); } }
.feat-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) {
  .feat-arrow:hover { background: rgba(4, 164, 252, 0.16); box-shadow: inset 0 0 0 1px rgba(4, 164, 252, 0.7); }
  .feat-dot:hover i { background: rgba(255, 255, 255, 0.3); }
}

/* ---------- Welcome card: their store home text, between the carousel and the categories ---------- */

.info {
  position: relative;
  isolation: isolate;
  padding: clamp(22px, 3.4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 70%);
  overflow: hidden;
}
.info::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 62%);
}
.info-top {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.info-art img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.45));
}
.info-title { font-size: clamp(26px, 2.8vw, 38px); text-wrap: balance; }
.info-lead { max-width: 36em; margin-top: 14px; color: var(--text-2); font-size: clamp(15.5px, 1.2vw, 17px); line-height: 1.6; }
.info-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; color: var(--text-3); font-size: 14px; line-height: 1.5; }
.info-video {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font: 700 12.5px/1.3 var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}
.info-video .i { flex: none; width: 20px; height: 20px; }
.info-video:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.info-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px clamp(24px, 4vw, 56px);
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(22px, 2.8vw, 32px);
  border-top: 1px solid var(--line);
}
.info-col h3 { font: 700 clamp(17px, 1.5vw, 20px)/1.1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
.info-col p { max-width: 34em; margin-top: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.info-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (hover: hover) {
  .info-video:hover { color: var(--accent); }
}

/* ---------- Category tiles ---------- */

.cats-head { margin: 0 0 clamp(18px, 2.4vw, 28px); }
.info + .cats-head { margin-top: clamp(52px, 6vw, 80px); }
.cats-head .sec-title { font-size: clamp(26px, 2.8vw, 38px); }
.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(86% 66% at 50% 38%, #23272d 0%, #16191d 58%, var(--bg-1) 100%);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.45s var(--ease-out);
}
.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 40%, #000 100%);
}
/* the art fills whatever the name and meta leave free, at any tile shape */
.cat-art { position: relative; flex: 1; min-height: 0; }
.cat-art img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74%;
  height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.8s var(--ease-out);
}
.cat-name { margin-top: 14px; padding-right: 54px; font: italic 700 clamp(24px, 2.4vw, 34px)/1 var(--font-display); text-transform: uppercase; }
.cat-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; padding-right: 54px; color: var(--text-3); font-size: 14px; }
.cat-meta b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-go {
  position: absolute;
  right: clamp(18px, 2vw, 26px);
  bottom: clamp(18px, 2vw, 26px);
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: rgba(11, 12, 14, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.cat-go .i { width: 16px; height: 16px; stroke-width: 2.4; transition: transform 0.45s var(--ease-soft); }
.cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cat:focus-visible .cat-go { background: rgba(4, 164, 252, 0.16); box-shadow: inset 0 0 0 1px rgba(4, 164, 252, 0.7); }
@media (hover: hover) {
  .cat:hover { border-color: var(--line-3); transform: translateY(-4px); }
  .cat:hover .cat-art img { transform: scale(1.05); }
  .cat:hover .cat-go { background: rgba(4, 164, 252, 0.16); box-shadow: inset 0 0 0 1px rgba(4, 164, 252, 0.7); }
  .cat:hover .cat-go .i { transform: translateX(3px); }
}

/* ---------- Category view ---------- */

.cat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.cat-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font: 700 13px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.cat-back .i { width: 15px; height: 15px; stroke-width: 2.4; transform: rotate(180deg); transition: transform 0.45s var(--ease-soft); }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tabs a {
  padding: 10px 14px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2);
  font: 700 12.5px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.cat-tabs a[aria-current] { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36); color: var(--text); }
@media (hover: hover) {
  .cat-back:hover { color: var(--text); }
  .cat-back:hover .i { transform: rotate(180deg) translateX(3px); }
  .cat-tabs a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
}
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: clamp(28px, 3.4vw, 44px) 0 clamp(18px, 2.2vw, 26px); }
.cat-head .sec-title { outline: none; }
.cat-count { color: var(--text-3); font-size: 14px; }

.sp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.sp[hidden] { display: none; }
.sp-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.8;
  background: radial-gradient(80% 75% at 50% 42%, #262a30 0%, #181b1f 62%, #141619 100%);
  overflow: hidden;
  cursor: pointer;
}
.no-js .sp-media { cursor: default; }
.sp-media::before {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -10%;
  width: 78%;
  aspect-ratio: 360 / 248;
  background: url("../assets/img/emblem-mono.png") center / contain no-repeat;
  opacity: 0.045;
}
.sp-media img {
  position: relative;
  width: 68%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.8s var(--ease-out);
}
.sp-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 16px; }
.sp-name { flex: 1; font: 700 18px/1.12 var(--font-display); text-transform: uppercase; }
.sp-price { display: flex; align-items: center; gap: 10px; font: 800 21px/1 var(--font-display); }
.sp-cta { display: flex; gap: 8px; margin-top: 4px; }
.sp-cta .btn { flex: 1 1 0; min-width: 0; }
@media (hover: hover) {
  .sp:hover { border-color: var(--line-3); }
  .sp:hover .sp-media img { transform: scale(1.05); }
}

/* ---------- Package details ---------- */

.pkd {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--bg-1);
  color: var(--text);
  overflow: hidden;
}
.pkd::backdrop { background: rgba(5, 6, 8, 0.74); }
.pkd[open] { animation: pkd-in 0.35s var(--ease-out); }
@keyframes pkd-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
html:has(.pkd[open]) { overflow: hidden; }
.pkd-box {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  max-height: min(86vh, 880px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.pkd-box::-webkit-scrollbar { display: none; }
.pkd-media {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-right: 1px solid var(--line);
  background: radial-gradient(76% 72% at 50% 44%, #262a30 0%, #181b1f 62%, #141619 100%);
}
.pkd-media img { width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.5)); }
.pkd-body { padding: clamp(26px, 3vw, 38px); }
.pkd-cat { padding-right: 48px; color: var(--text-3); font: 600 12.5px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.pkd-flags { margin-top: 12px; }
.pkd-flags[hidden] { display: none; }
/* the dialog opens with focus on the title, so the close button only shows its ring when tabbed to */
.pkd-title:focus { outline: none; }
.pkd-title { margin-top: 12px; padding-right: 48px; font: 800 clamp(26px, 2.6vw, 34px)/1 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.pkd-price { display: flex; align-items: center; gap: 10px; margin: 18px 0 22px; font: 800 26px/1 var(--font-display); }
.pkd-note { margin-top: 12px; color: var(--text-3); font-size: 13.5px; line-height: 1.55; }
.pkd-desc {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.pkd-desc > * + * { margin-top: 12px; }
.pkd-desc strong { color: var(--text); font-weight: 600; }
.pkd-desc ul, .pkd-desc ol { padding-left: 1.25em; }
.pkd-desc li + li { margin-top: 6px; }
.pkd-desc a { color: var(--accent); text-underline-offset: 3px; }
.pkd-desc hr { border: 0; border-top: 1px solid var(--line); }
/* pictures from the Tebex editor keep the size set there, never wider than the dialog */
.pkd-desc img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 10px; }
.pkd-desc li.pic { list-style: none; }
.pkd-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(11, 12, 14, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: var(--text);
  transition: box-shadow 0.3s ease;
}
.pkd-close .i { width: 18px; height: 18px; }
.pkd-close:focus-visible { box-shadow: inset 0 0 0 1px rgba(4, 164, 252, 0.7); outline: none; }
@media (hover: hover) { .pkd-close:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); } }

/* ---------- The cart: adding a package, the cart, thank you ---------- */

.cbox { width: min(520px, calc(100vw - 32px)); }
.cbox--small { width: min(420px, calc(100vw - 32px)); }
.cbox-in {
  position: relative;
  max-height: min(88vh, 860px);
  padding: clamp(22px, 3vw, 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.cbox-in::-webkit-scrollbar { display: none; }
.cbox .pkd-close { top: 12px; right: 12px; }
.cbox-title { padding-right: 48px; font: 800 clamp(22px, 2.2vw, 28px)/1.05 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.cbox-title:focus { outline: none; }

.buy-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; padding-right: 44px; }
.buy-art, .cart-thumb {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: radial-gradient(76% 72% at 50% 44%, #262a30 0%, #181b1f 62%, #141619 100%);
}
.buy-art { width: 64px; height: 64px; }
.buy-art img { width: 54px; height: 54px; object-fit: contain; }
.buy-meta .pkd-cat { padding-right: 0; font-size: 11.5px; }
.buy-meta .cbox-title { margin-top: 7px; padding-right: 0; font-size: clamp(19px, 2vw, 23px); }
.buy-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font: 800 19px/1 var(--font-display); }
.buy-steps { display: grid; gap: 20px; margin: 22px 0 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.buy-step[hidden] { display: none; }
.buy-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text);
  font: 700 13px/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.buy-n {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(4, 164, 252, 0.14);
  color: var(--accent);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0;
}
.buy-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font: 500 15px/1.2 var(--font-body);
  transition: border-color 0.2s ease;
}
select.buy-input {
  appearance: none;
  padding-right: 42px;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b1ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  cursor: pointer;
}
select.buy-input option { background: var(--bg-2); color: var(--text); }
.buy-input::placeholder { color: var(--text-3); }
.buy-input:focus { outline: none; border-color: rgba(4, 164, 252, 0.75); }
.buy-input[aria-invalid="true"] { border-color: #ff5a5a; }
#buy-eos { font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: 14.5px; letter-spacing: 0.02em; }
.buy-hint { margin-top: 8px; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.buy-hint a { color: var(--accent); text-underline-offset: 3px; }
.buy-err { margin-top: 8px; color: #ff8a8a; font-size: 13px; line-height: 1.45; }
.buy-err[hidden] { display: none; }
.buy-fixed { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text-2); font-size: 15px; }
.buy-fixed[hidden] { display: none; }
.buy-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(60, 207, 122, 0.25);
  border-radius: 10px;
  background: rgba(60, 207, 122, 0.08);
  color: var(--text-2);
  font-size: 14.5px;
  overflow-wrap: anywhere;
}
.buy-ok .i { color: #3ccf7a; }
.buy-ok b { color: var(--text); font-weight: 600; }
.buy-ok[hidden], [data-steam-off][hidden], [data-discord-off][hidden] { display: none; }
.buy-msg {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 90, 90, 0.3);
  border-radius: 10px;
  background: rgba(255, 90, 90, 0.08);
  color: #ffc1c1;
  font-size: 14px;
  line-height: 1.45;
}
.buy-msg[hidden] { display: none; }
.btn.is-busy, .acct-steam.is-busy { pointer-events: none; opacity: 0.6; }
.btn--steam { --wipe: rgba(102, 192, 244, 0.16); }
.btn--steam::before { background: #1b2838; }
.btn--discord { --wipe: rgba(88, 101, 242, 0.22); }
.btn--discord::before { background: rgba(88, 101, 242, 0.14); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--bg-2); color: var(--text); transition: background-color 0.2s ease; }
.qty-btn .i { width: 16px; height: 16px; }
.qty-btn:disabled { color: var(--text-3); cursor: default; }
.qty-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qty-value { min-width: 46px; text-align: center; font: 700 16px/1 var(--font-display); }
@media (hover: hover) { .qty-btn:not(:disabled):hover { background: #1c2025; } }

.cart-who { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--text-3); font-size: 13.5px; }
.cart-who[hidden] { display: none; }
.cart-who .i { width: 16px; height: 16px; }
.cart-who b { color: var(--text-2); font-weight: 600; }
.cart-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  transition: opacity 0.2s ease;
}
.cart-line.is-busy { opacity: 0.5; pointer-events: none; }
.cart-thumb { width: 56px; height: 56px; }
.cart-thumb img { width: 46px; height: 46px; object-fit: contain; }
.cart-name { font: 700 14.5px/1.2 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.cart-price { margin-top: 6px; font: 800 15px/1 var(--font-display); }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line .qty { border-radius: 8px; }
.cart-line .qty-btn { width: 32px; height: 32px; }
.cart-line .qty-value { min-width: 28px; font-size: 14px; }
.cart-remove {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text-3);
  font: 600 12.5px/1 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-remove:hover { color: var(--text); }
.cart-empty { margin-top: 18px; color: var(--text-3); }
.cart-empty[hidden], .cart-foot[hidden] { display: none; }
.cart-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 18px; }
.cart-code .btn { height: 48px; }
.cart-code-msg { min-height: 1em; margin-top: 8px; color: var(--text-3); font-size: 13px; }
.cart-code-msg.is-bad { color: #ff8a8a; }
.cart-codes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cart-codes li { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.cart-codes b { color: var(--text); font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.cart-total b { color: var(--text); font: 800 24px/1 var(--font-display); }
.cart-note { margin-top: 10px; color: var(--text-3); font-size: 12.5px; text-align: center; }

.cbox--small .cbox-in { display: grid; justify-items: center; gap: 14px; padding-top: 40px; text-align: center; }
.cbox--small .cbox-title { padding: 0; }
.thanks-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(60, 207, 122, 0.12); color: #3ccf7a; }
.thanks-mark .i { width: 28px; height: 28px; stroke-width: 2.4; }
.thanks-text { color: var(--text-2); }

.cart-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 26px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.85);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.cart-fab[hidden] { display: none; }
.cart-fab .i { width: 22px; height: 22px; }
.cart-fab .cart-count { background: var(--accent-ink); color: var(--accent); }
.cart-fab:active { transform: translateY(2px); }
@media (hover: hover) { .cart-fab:hover { transform: translateY(1px); filter: brightness(1.08); } }
.cart-fab.is-bump, .cart-btn.is-bump { animation: cart-bump 0.5s var(--ease-out); }
@keyframes cart-bump { 35% { transform: scale(1.1); } }

/* ---------- Tebex bar (the checkout operator, required on every Tebex store) ---------- */

.tebex-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}
.tebex-bar span { display: inline-block; }
.tebex-mark img { display: block; width: auto; height: 28px; opacity: 0.85; transition: opacity 0.2s ease; }
.tebex-mark:hover img { opacity: 1; }
.tebex-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.tebex-links a { color: var(--text-2); text-decoration: none; }
.tebex-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Narrow screens ---------- */

/* Steam and the cart share a row over the categories once the three no longer fit side by side */
@media (max-width: 1180px) {
  .store-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "acct cart" "quick quick"; }
  .acct { grid-area: acct; }
  .cart-btn { grid-area: cart; }
  .store-top .quick { grid-area: quick; }
}
@media (max-width: 1100px) {
  .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .feat-slide { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 20px 88px; }
  .feat-art { order: -1; aspect-ratio: 1 / 0.6; }
  .feat-art img { width: 62%; }
  .feat-kicker { margin-bottom: 14px; }
  .feat-nav { left: 20px; right: 20px; bottom: 22px; justify-content: space-between; }
  .feat-cta .btn { flex: 1 1 auto; }
  .info-top, .info-cols { grid-template-columns: minmax(0, 1fr); }
  .info-art img { max-width: 320px; }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .cat { aspect-ratio: 1 / 0.72; }
  .pkd-box { grid-template-columns: minmax(0, 1fr); }
  .pkd-media { position: relative; aspect-ratio: 1 / 0.6; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp-body { padding: 14px 12px 12px; }
  .sp-name { font-size: 16px; }
  .sp-price { font-size: 19px; }
  .sp-cta { flex-direction: column; }
  .sp-cta .btn { flex: none; width: 100%; }
  .cat-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .acct-steam, .acct-user, .cart-btn { min-height: 46px; padding: 0 13px; }
  .acct-user { padding-right: 6px; }
  .acct-name { max-width: 28vw; }
  .cart-line { grid-template-columns: 48px minmax(0, 1fr); }
  .cart-thumb { width: 48px; height: 48px; }
  .cart-thumb img { width: 40px; height: 40px; }
  .cart-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 359px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); }
  .cart-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .feat-slide, .feat-copy > *, .feat-art img, .cat, .cat-art img, .sp-media img { transition: none; }
  .pkd[open], .cart-fab.is-bump, .cart-btn.is-bump { animation: none; }
}
