/* =====================================================================
   XraySMP store theme v2
   Layout: glowing sky + header bar (account · logo/IP · cart),
           category tiles (Shards | Ranks / Keys, then a full-width Seasonal bar),
           category pages (rank table, option picker, cards), footer.
   One dark look on purpose, like a Minecraft night sky.
   ===================================================================== */

:root {
  --bg: #0d0f15;
  --panel: #191b26;
  --panel-2: #222534;
  --panel-3: #2b2f40;
  --line: rgba(255, 255, 255, .06);
  --text: #9ba4bb;
  --white: #ffffff;

  /* brand glow: blue -> light blue -> yellowish orange (animated by xraysmp.js) */
  --blue: #1f8fff;
  --sky: #5ce1ff;
  --orange: #ffb21f;
  --glow: #5ce1ff;

  --go: #1f8fff;          /* purchase buttons */
  --go-dark: #0c4a80;
  --price: #ffb21f;

  /* category tiles */
  --t-bundles: #fa3435; --t-bundles-d: #a3161a;
  --t-shards: #b98bff;  --t-shards-d: #6b3cc0;
  --t-ranks: #fcc029;   --t-ranks-d: #b77215;
  --t-keys: #1fa2ff;    --t-keys-d: #0c4a80;
  --t-season: #ff7f1e;  --t-season-d: #a64b00;
  --t-other: #2b2f40;   --t-other-d: #15171f;

  --font-title: "Minecraft Ten", "Minecraftia", "Courier New", monospace;
  --font-body: "Minecraftia", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Minecraft Ten", "Minecraftia", "Segoe UI", system-ui, sans-serif;
  --shadow-text: 3px 3px 0 rgba(0, 0, 0, .25);
  --wrap: 1200px;

  --tebex-legal-footer-background-color: #0d0f15;
  --tebex-legal-footer-text-color: #9ba4bb;
  --tebex-legal-footer-border-color: rgba(255, 255, 255, .06);
  --tebex-legal-footer-logo-color: #9ba4bb;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--white); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
button { font: inherit; color: inherit; }
svg { display: block; fill: currentColor; }

.xs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xs-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.xs-site { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- glowing sky (canvas drawn by xraysmp.js) ---------- */
.xs-sky {
  position: absolute; top: 0; left: 0; z-index: 0;
  width: 100%; height: 420px;
  pointer-events: none;
  image-rendering: pixelated;
}

/* ---------- type ---------- */
.xs-h2, .xs-h3, .xs-ruled, .xs-tile__title, .xs-picker__title, .xs-card__title, .xs-foot__title, .xs-foot__brand, .xs-empty__title, .xs-mod__title {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  text-wrap: balance;
}
.xs-h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; text-shadow: var(--shadow-text); }
.xs-h3 { margin: 0; font-size: 20px; line-height: 1.2; text-shadow: var(--shadow-text); }
.xs-muted { margin: 0; color: var(--text); }
.xs-fine { margin: 0; font-size: 13px; color: var(--text); }
.xs-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 90, 90, .1); color: #ffb3b3; font-size: 14px; }
.xs-link { color: var(--sky); font-weight: 600; text-decoration: none; }
.xs-link:hover { text-decoration: underline; }

.xs-ruled {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 16px; font-size: 22px; line-height: 1.2; text-shadow: var(--shadow-text);
}
.xs-ruled span { color: var(--glow); }
.xs-ruled::after { content: ""; flex: 1; height: 2px; background: var(--line); }

.xs-prose { color: #c3cadb; font-size: 16px; line-height: 1.7; }
.xs-prose > :first-child { margin-top: 0; }
.xs-prose > :last-child { margin-bottom: 0; }
.xs-prose p { margin: 0 0 .7em; }
.xs-prose strong, .xs-prose b { color: var(--white); }
.xs-prose h1, .xs-prose h2, .xs-prose h3, .xs-prose h4 { font-family: var(--font-title); color: var(--white); margin: 1em 0 .4em; line-height: 1.2; font-size: 18px; }
.xs-prose ul { list-style: none; margin: 0 0 .8em; padding: 0; }
.xs-prose ul li { position: relative; padding-left: 18px; }
.xs-prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; background: var(--glow); }
.xs-prose a { color: var(--sky); }
.xs-prose img { height: auto; border-radius: 8px; }
.xs-prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.xs-prose td, .xs-prose th { border: 2px solid var(--line); padding: 6px 10px; }

/* ---------- buttons ---------- */
.xs-btn {
  --b: var(--panel-2);
  --s: rgba(0, 0, 0, .35);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 12px;
  background: var(--b); color: var(--white);
  font: 700 17px/1 var(--font-ui);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: var(--shadow-text);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--s);
  transition: transform .12s, box-shadow .12s, filter .15s;
}
.xs-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--s); filter: brightness(1.07); }
.xs-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--s); }
.xs-btn svg { width: 18px; height: 18px; flex: none; }
.xs-btn small { font-size: 12px; opacity: .85; text-transform: none; }
.xs-btn--go { --b: var(--go); --s: var(--go-dark); }
.xs-btn--alt { --b: var(--orange); --s: #9a5a00; }
.xs-btn--dark { --b: var(--panel-2); --s: #0a0b10; }
.xs-btn--ghost { --b: transparent; --s: transparent; border: 2px solid var(--panel-3); color: var(--text); text-shadow: none; }
.xs-btn--block { width: 100%; }
.xs-btn--xl { min-height: 64px; font-size: 22px; border-radius: 14px; }

.xs-iconbtn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 10px;
  background: var(--panel-2); color: var(--white);
  font: 700 24px/1 var(--font-body);
  text-decoration: none; cursor: pointer;
}
.xs-iconbtn:hover { background: var(--panel-3); }
.xs-iconbtn svg { width: 20px; height: 20px; }
.xs-iconbtn--lg { width: 48px; height: 48px; }

.xs-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--go); color: var(--white);
  font: 700 12px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .06em;
}
.xs-pill--sale { background: var(--orange); color: #2d1800; }
.xs-pill--soft { background: rgba(92, 225, 255, .14); color: var(--sky); }

/* ---------- inputs ---------- */
.xs-site input[type="text"], .xs-site input[type="number"], .xs-site select,
.xs-layer input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 2px solid var(--panel-3); border-radius: 12px;
  background: var(--bg); color: var(--white);
  font: 500 16px var(--font-body);
}
.xs-site input::placeholder, .xs-layer input::placeholder { color: #5d6478; }
.xs-site input:focus, .xs-site select:focus, .xs-layer input:focus { outline: none; border-color: var(--sky); }
.xs-inline { display: flex; gap: 10px; }
.xs-inline input { flex: 1; min-width: 0; }

/* ---------- header ---------- */
.xs-head { padding-top: 96px; }
.xs-bar {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  min-height: 132px; padding: 20px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}
.xs-account { justify-self: start; align-self: center; position: relative; }
.xs-account__btn {
  display: flex; align-items: center; gap: 22px;
  padding: 10px 26px 10px 14px;
  border: 0; border-radius: 12px;
  background: var(--panel-2);
  cursor: pointer; list-style: none; text-align: left;
  transition: background .15s;
}
.xs-account__btn::-webkit-details-marker { display: none; }
.xs-account__btn:hover { background: var(--panel-3); }
.xs-account__face { width: 64px; height: 64px; border-radius: 8px; image-rendering: pixelated; }
.xs-account__text { display: flex; flex-direction: column; line-height: 1; }
.xs-account__label { font-size: 15px; color: var(--text); text-transform: uppercase; }
.xs-account__name { margin-top: 4px; font: 700 24px/1 var(--font-title); color: var(--white); text-transform: uppercase; text-shadow: var(--shadow-text); max-width: 12ch; overflow: hidden; text-overflow: ellipsis; }
.xs-account__menu {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30;
  display: flex; flex-direction: column; min-width: 200px; padding: 6px;
  background: var(--panel-2); border: 2px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}
.xs-account__menu a { padding: 10px 12px; border-radius: 8px; color: var(--white); text-decoration: none; }
.xs-account__menu a:hover { background: var(--panel-3); }

.xs-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.xs-logo { display: block; width: 320px; margin-top: -110px; }
.xs-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.xs-ip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px; border: 0; background: none; cursor: pointer;
  color: var(--glow);
  font: 600 20px/1.2 var(--font-body);
  letter-spacing: .08em; text-transform: uppercase;
}
.xs-ip svg { width: 13px; height: 13px; opacity: .7; }
.xs-ip.is-copied { color: #6ee07a; }

.xs-cartbtn {
  position: relative; justify-self: end; align-self: center;
  display: grid; place-items: center;
  width: 88px; height: 88px;
  border: 0; border-radius: 16px;
  background: var(--orange); color: var(--white);
  cursor: pointer;
  box-shadow: 0 0 0 0 #9a5a00;
  transition: transform .12s, box-shadow .12s;
}
.xs-cartbtn:hover { transform: translateY(-4px); box-shadow: 0 6px 0 0 #9a5a00; }
.xs-cartbtn svg { width: 38px; height: 38px; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .25)); }
.xs-cartbtn__count {
  position: absolute; top: -8px; right: -8px;
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: 999px; background: var(--go); color: var(--white);
  font: 700 16px/1 var(--font-ui); box-shadow: 0 0 0 4px var(--bg);
}

/* ---------- main ---------- */
.xs-main { flex: 1; display: flex; flex-direction: column; gap: 24px; padding-top: 26px; padding-bottom: 72px; }
.xs-alert { padding: 14px 18px; border-radius: 12px; background: var(--panel-2); color: var(--white); font-weight: 600; }
.xs-alert--success { background: rgba(110, 224, 60, .14); color: #c7f7b2; }
.xs-alert--danger, .xs-alert--error { background: rgba(249, 52, 53, .14); color: #ffc1c1; }
.xs-panel { position: relative; padding: 28px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; }

/* ---------- category tiles ---------- */
.xs-tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "season season"
    "bundles shards"
    "bundles ranks"
    "keys keys";
  gap: 16px;
}
/* no Bundles category yet: shards and ranks share a row instead of leaving a hole */
.xs-tiles:not(:has(.xs-tile--bundles)) { grid-template-areas: "season season" "shards ranks" "keys keys"; }
/* no Seasonal category (event over): drop the banner row */
.xs-tiles:not(:has(.xs-tile--seasonal)) { grid-template-areas: "bundles shards" "bundles ranks" "keys keys"; }
.xs-tiles:not(:has(.xs-tile--seasonal)):not(:has(.xs-tile--bundles)) { grid-template-areas: "shards ranks" "keys keys"; }
.xs-tile {
  --c: var(--t-other); --d: var(--t-other-d);
  position: relative;
  display: flex; align-items: flex-start;
  min-height: 196px; padding: 40px;
  border-radius: 16px;
  background: var(--c);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 0 0 0 var(--d);
  transition: transform .12s, box-shadow .12s;
}
.xs-tile:hover { transform: translateY(-6px); box-shadow: 0 10px 0 0 var(--d); color: var(--white); }
.xs-tile:active { transform: translateY(-2px); box-shadow: 0 4px 0 0 var(--d); }
.xs-tile__text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; max-width: 60%; }
.xs-tile__title { font-size: 50px; line-height: .95; text-transform: uppercase; text-shadow: var(--shadow-text); overflow-wrap: anywhere; }
.xs-tile__sub { font: 600 22px/1.3 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; text-shadow: 2px 2px 0 rgba(0, 0, 0, .25); text-wrap: balance; }
.xs-tile__art {
  position: absolute; z-index: 1; right: 0; bottom: 0;
  height: 100%; width: auto; max-width: 70%; object-fit: contain; object-position: right bottom;
  image-rendering: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35));
  transform-origin: 70% 80%;
  transition: transform .15s;
  pointer-events: none;
}
.xs-tile:hover .xs-tile__art { transform: scale(1.06) rotate(-2deg); }

.xs-tile--bundles { --c: var(--t-bundles); --d: var(--t-bundles-d); grid-area: bundles; min-height: 428px; }
.xs-tile--bundles .xs-tile__text { max-width: 60%; }
.xs-tile--bundles .xs-tile__sub { max-width: 9em; }
.xs-tile--bundles .xs-tile__art { height: 84%; max-width: 62%; right: 3%; bottom: 0; }
.xs-tile--shards { --c: var(--t-shards); --d: var(--t-shards-d); grid-area: shards; overflow: hidden; }
/* the arm reaches in from the bottom-right corner; the tile clips the cut end of the sleeve */
.xs-tile--shards .xs-tile__art { height: 112%; width: auto; max-width: none; right: -1%; bottom: -13%; top: auto; object-position: right bottom; transform-origin: 100% 100%; }
.xs-tile--shards:hover .xs-tile__art { transform: rotate(-4deg) scale(1.04); }
.xs-tile--ranks { --c: var(--t-ranks); --d: var(--t-ranks-d); grid-area: ranks; min-height: 216px; }
.xs-tile--ranks .xs-tile__text { max-width: 44%; }
.xs-tile--ranks .xs-tile__art { height: 96%; max-width: 54%; right: 3%; top: 2%; bottom: auto; object-position: right center; }
.xs-tile--keys { --c: var(--t-keys); --d: var(--t-keys-d); grid-area: keys; min-height: 200px; }
.xs-tile--keys .xs-tile__art { height: 104%; max-width: 40%; right: 5%; top: -2%; bottom: auto; object-position: right center; }
/* Seasonal: full-width event banner across the top */
.xs-tile--seasonal { --c: var(--t-season); --d: var(--t-season-d); grid-area: season; min-height: 208px; padding: 40px 48px; align-items: center; margin-bottom: 10px; }
.xs-tile--seasonal .xs-tile__text { max-width: 70%; gap: 16px; }
.xs-tile--seasonal .xs-tile__title { font-size: 56px; }
.xs-tile--seasonal .xs-tile__sub { font-size: 20px; line-height: 1.35; }
.xs-tile__clip { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.xs-tile--seasonal .xs-tile__art { height: 128%; max-width: 34%; right: 7%; top: 24%; bottom: auto; object-position: center top; transform: rotate(10deg); transform-origin: 50% 50%; filter: drop-shadow(0 12px 18px rgba(80, 20, 0, .45)); }
.xs-tile--seasonal:hover .xs-tile__art { transform: rotate(4deg) translateY(-6%) scale(1.04); }
.xs-tile--other { grid-column: span 1; }
.xs-tile--other .xs-tile__art { image-rendering: pixelated; }

.xs-countdown {
  position: absolute; z-index: 3; top: -16px; right: -10px;
  padding: 7px 14px;
  background: var(--white); color: #111;
  font: 400 24px/1 var(--font-body);
  transform: rotate(4deg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .3);
  white-space: nowrap;
}
.xs-countdown.is-out { color: #e3262b; text-transform: uppercase; }

/* ---------- home: about + modules ---------- */
.xs-about { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.xs-intro {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 36px 40px;
  background:
    radial-gradient(420px 220px at 88% 50%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 70%),
    var(--panel);
  border: 2px solid var(--line); border-radius: 16px;
}
.xs-intro__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 64ch; }
.xs-intro__title { margin: 0; font: 400 34px/1.05 var(--font-title); color: var(--white); text-transform: uppercase; text-shadow: var(--shadow-text); }
.xs-intro__title span { color: var(--glow); }
.xs-intro__text { margin: 0; color: #c3cadb; font-size: 17px; line-height: 1.8; }
.xs-intro__art { flex: none; width: 150px; height: auto; transform: rotate(-12deg); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)); image-rendering: pixelated; }
.xs-howto__label { margin: 4px 0 0; font-size: 22px; text-transform: uppercase; }
.xs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: none; }
.xs-step {
  --c: var(--blue); --d: #0c4a80;
  display: flex; align-items: center; gap: 18px;
  padding: 22px; min-height: 104px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 16px;
}
.xs-step--1 { --c: var(--sky); --d: #1a7f99; }
.xs-step--2 { --c: var(--orange); --d: #9a5a00; }
.xs-step__num {
  flex: none; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--c); color: var(--white);
  font: 400 32px/1 var(--font-title); text-shadow: var(--shadow-text);
  box-shadow: 0 4px 0 var(--d);
}
.xs-step__text { margin: 0; color: var(--white); font-size: 16px; line-height: 1.55; }
.xs-howto { display: flex; flex-direction: column; gap: 14px; }
.xs-howto .xs-howto__label { margin: 4px 0 0; }
.xs-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xs-feat {
  --c: var(--blue); --d: #0c4a80;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 14px;
}
.xs-feat:nth-child(4n+2), .xs-feat:nth-child(4n+3) { --c: var(--sky); --d: #1a7f99; }
.xs-feat::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 3px; background: var(--c); box-shadow: 0 3px 0 var(--d); }
.xs-feat__text { margin: 0; color: #c3cadb; font-size: 15px; line-height: 1.65; }
.xs-feat__lead { color: var(--white); }
.xs-about__text { margin: 0; color: #c3cadb; font-size: 16px; line-height: 1.7; }
.xs-about a { color: var(--glow); text-decoration: none; }
.xs-about a:hover { color: var(--white); }
.xs-outro { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 0; color: var(--text); font-size: 16px; text-align: center; }
.xs-outro img { flex: none; width: 26px; height: 26px; image-rendering: pixelated; }
.xs-outro__text { margin: 0; line-height: 1.7; }
.xs-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.xs-modules:empty, .xs-modules:not(:has(*)) { display: none; }
.xs-mod { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.xs-mod__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; text-shadow: var(--shadow-text); }
.xs-mod__title img { width: 20px; height: auto; }
.xs-mod__img { width: 100%; height: auto; border-radius: 10px; }
.xs-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.xs-top__name { margin: 0; font: 700 22px/1.1 var(--font-title); color: var(--price); text-shadow: var(--shadow-text); overflow-wrap: anywhere; }
.xs-top__skin { width: 60px; height: auto; image-rendering: pixelated; }
.xs-heads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.xs-heads li { position: relative; }
.xs-heads img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; image-rendering: pixelated; background: var(--panel-2); }
.xs-heads li::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5;
  transform: translateX(-50%); width: max-content; max-width: 200px;
  padding: 6px 10px; border-radius: 8px; background: var(--panel-3); color: var(--white);
  font-size: 13px; line-height: 1.3; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.xs-heads li:hover::after, .xs-heads li:focus::after { opacity: 1; }
.xs-heads li:first-child::after { left: 0; transform: none; }
.xs-heads li:last-child::after { left: auto; right: 0; transform: none; }
.xs-status { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--white); }
.xs-status span { width: 12px; height: 12px; background: #f93435; }
.xs-status.is-on span { background: #6ee03c; box-shadow: 0 0 10px #6ee03c; }
.xs-goal { height: 16px; padding: 3px; border-radius: 8px; background: var(--bg); }
.xs-goal span { display: block; height: 100%; min-width: 6px; max-width: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--orange)); }
.xs-featured { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: 12px; background: var(--panel-2); color: var(--white); text-decoration: none; text-align: center; }
.xs-featured img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; }

/* ---------- prices ---------- */
.xs-price { margin: 0; color: var(--price); font: 700 22px/1.2 var(--font-ui); letter-spacing: .02em; text-shadow: var(--shadow-text); font-variant-numeric: tabular-nums; }
.xs-price del { margin-right: 8px; color: #6c7389; font-size: .75em; text-shadow: none; }
.xs-price--lg { font-size: 30px; }
.xs-timer { margin: 0 0 10px; color: var(--orange); font: 700 16px/1.3 var(--font-ui); }

/* ---------- ranks table (same measurements as the ColorGens ranks page) ---------- */
.xs-ranks { --top: var(--go); --row: #191b26; --row-alt: #272a39; }
.xs-ranks__grid {
  display: grid;
  grid-template-columns: 144px repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 8px 12px;
}
.xs-rank-head { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--row); transition: transform .3s; }
.xs-rank-head:hover { transform: translateY(-4px); }
.xs-rank-head__tag { display: flex; align-items: center; justify-content: center; height: 144px; overflow: hidden; background: var(--row-alt); }
.xs-rank-head__tag img { display: block; width: 100%; height: 100%; padding: 8px; object-fit: contain; }
.xs-rank-head__name { margin: 0; padding: 12px 8px; color: var(--white); font: 400 16px/24px var(--font-title); text-align: center; text-transform: uppercase; white-space: nowrap; }
.xs-rank-head .xs-pill, .xs-rankcard .xs-pill {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 4px 8px; border-radius: 999px;
  background: var(--go); color: var(--white);
  font: 400 10px/15px var(--font-title); text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
.xs-rank-head.is-top { background: color-mix(in srgb, var(--top) 18%, var(--row)); }
.xs-rank-head.is-top .xs-rank-head__tag { background: color-mix(in srgb, var(--top) 26%, var(--row-alt)); }
.xs-ranks__label, .xs-ranks__cell { display: flex; align-items: center; min-height: 56px; border-radius: 12px; background: var(--row); }
.xs-ranks__label { padding: 16px 12px; color: var(--white); font: 400 12px/1.25 var(--font-body); overflow-wrap: anywhere; }
.xs-ranks__cell { justify-content: center; padding: 16px 8px; color: var(--white); font: 400 16px/24px var(--font-title); text-align: center; }
.xs-ranks__cell.is-alt, .xs-ranks__label.is-alt { background: var(--row-alt); }
.xs-ranks__cell.is-top { background: color-mix(in srgb, var(--top) 14%, var(--row)); }
.xs-ranks__cell.is-top.is-alt { background: color-mix(in srgb, var(--top) 14%, var(--row-alt)); }
.xs-ranks__details { align-items: flex-start; justify-content: flex-start; text-align: left; font: 400 14px/1.5 var(--font-body); }
.xs-yes, .xs-no { width: 14px; height: 14px; }
.xs-yes { color: #4ade80; }
.xs-no { color: #ef4444; }
.xs-rank-foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; text-align: center; }
.xs-rank-foot .xs-price, .xs-rankcard__price {
  display: flex; flex-direction: row-reverse; align-items: baseline; justify-content: center; gap: 8px;
  margin: 0; color: #4ade80; font: 400 18px/28px var(--font-title);
}
.xs-rank-foot .xs-price del, .xs-rankcard__price del { color: var(--text); font-size: 12px; }
.xs-rank-foot .xs-btn { min-height: 44px; font-size: 14px; }

/* tablets and phones: one card per rank */
.xs-rankcards { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1023px) {
  .xs-ranks { display: none; }
  .xs-rankcards { display: grid; }
}
@media (max-width: 767px) { .xs-rankcards { grid-template-columns: minmax(0, 1fr); } }
.xs-rankcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #191b26; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.xs-rankcard.is-top { box-shadow: inset 0 0 0 2px var(--go), 0 25px 50px -12px rgba(0, 0, 0, .25); }
.xs-rankcard .xs-pill { top: 12px; right: 12px; }
.xs-rankcard__media { display: flex; align-items: center; justify-content: center; height: 192px; padding: 0; border: 0; background: #272a39; cursor: pointer; }
.xs-rankcard.is-top .xs-rankcard__media { background: color-mix(in srgb, var(--go) 26%, #272a39); }
.xs-rankcard__media img { display: block; width: 100%; height: 100%; padding: 12px; object-fit: contain; }
.xs-rankcard__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.xs-rankcard__name { margin: 0 0 8px; color: var(--white); font: 400 24px/32px var(--font-title); text-transform: uppercase; }
.xs-rankcard__name button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; transition: color .15s; }
.xs-rankcard__name button:hover { color: var(--go); }
.xs-rankcard__price { justify-content: flex-end; margin-bottom: 16px; }
.xs-cardperks { margin: 0 0 24px; padding: 0; list-style: none; }
.xs-cardperks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.xs-cardperks li::before { display: none; }
.xs-cardperks li > span:first-child { color: var(--text); font: 400 14px/20px var(--font-body); }
.xs-cardperks__val { display: flex; align-items: center; color: var(--white); font: 400 14px/20px var(--font-title); text-align: right; }
.xs-rankcard .xs-btn { margin-top: auto; }
.xs-texttag { display: inline-block; padding: 6px 12px; border: 3px solid var(--sky); border-radius: 6px; color: var(--sky); font: 700 16px/1 var(--font-title); text-transform: uppercase; }

/* ---------- option picker (shards, keys) ---------- */
.xs-picker {
  display: grid; grid-template-columns: minmax(0, 410px) minmax(0, 1fr);
  min-height: 448px;
  background: var(--panel-2); border-radius: 16px; overflow: hidden;
}
.xs-picker__media {
  display: grid; place-items: center; padding: 40px;
  background: var(--panel-3);
}
.xs-picker__img { width: 100%; max-width: 260px; height: auto; max-height: 300px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); animation: xs-float 4s ease-in-out infinite; }
@keyframes xs-float { 50% { transform: translateY(-8px); } }
.xs-picker__main { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 22px; padding: 40px 32px; text-align: center; background: var(--panel); }
.xs-picker__title { margin: 0; font-size: 36px; line-height: 1.05; text-transform: uppercase; text-shadow: var(--shadow-text); }
.xs-picker__main > .xs-price { margin-top: -12px; }
.xs-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.xs-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 104px; padding: 14px 10px;
  border: 0; border-radius: 14px;
  background: var(--panel-2); color: #8c94a8;
  cursor: pointer;
  transition: background .15s, color .15s, transform .12s;
}
.xs-opt:hover { background: var(--panel-3); color: var(--white); }
.xs-opt__name { font: 700 24px/1.05 var(--font-ui); text-transform: uppercase; }
.xs-opt__price { font: 600 15px/1.2 var(--font-ui); }
.xs-opt__sale { position: absolute; top: -9px; right: -6px; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: #2d1800; font: 700 12px/1.4 var(--font-ui); text-transform: uppercase; }
.xs-opt.is-on { background: var(--go); color: var(--white); text-shadow: var(--shadow-text); transform: translateY(-2px); box-shadow: 0 4px 0 var(--go-dark); }
.xs-picker__buy { display: flex; flex-direction: column; gap: 10px; }
.xs-qty { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.xs-qty__label { color: var(--white); font: 400 16px/1 var(--font-title); text-transform: uppercase; }
.xs-qty__opts { display: flex; gap: 8px; flex-wrap: wrap; }
.xs-qty__opt {
  min-width: 56px; height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
  background: var(--panel-2); color: var(--text); font: 400 17px/1 var(--font-title); cursor: pointer;
  transition: background .15s, color .15s, transform .12s;
}
.xs-qty__opt:hover { background: var(--panel-3); color: var(--white); }
.xs-qty__opt.is-on { background: var(--go); color: var(--white); text-shadow: var(--shadow-text); transform: translateY(-2px); box-shadow: 0 4px 0 var(--go-dark); }
.xs-btn.is-busy { opacity: .7; pointer-events: none; }
.xs-picker__desc .xs-prose { max-width: 75ch; }
.xs-gift { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.xs-gift label { font-size: 14px; color: var(--text); }

/* ---------- cards (seasonal and anything else) ---------- */
.xs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.xs-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--panel); border: 2px solid var(--line); border-radius: 16px;
}
.xs-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 24px; min-height: 88px;
  background: linear-gradient(180deg, rgba(110, 224, 60, .22), rgba(110, 224, 60, .05));
}
.xs-card--bundles .xs-card__head { background: linear-gradient(180deg, rgba(250, 52, 53, .30), rgba(250, 52, 53, .06)); }
.xs-card--shards .xs-card__head { background: linear-gradient(180deg, rgba(185, 139, 255, .28), rgba(185, 139, 255, .06)); }
.xs-card--ranks .xs-card__head { background: linear-gradient(180deg, rgba(252, 192, 41, .26), rgba(252, 192, 41, .05)); }
.xs-card--keys .xs-card__head { background: linear-gradient(180deg, rgba(31, 162, 255, .28), rgba(31, 162, 255, .06)); }
.xs-card--other .xs-card__head { background: linear-gradient(180deg, rgba(92, 225, 255, .18), rgba(92, 225, 255, .04)); }
.xs-card__title { margin: 0; font-size: 22px; line-height: 1.15; text-transform: uppercase; text-shadow: var(--shadow-text); }
.xs-card__body { flex: 1; position: relative; z-index: 1; padding: 24px; }
.xs-card__foot { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; margin: 0 24px 24px; padding-top: 18px; border-top: 2px solid var(--line); }
.xs-card__ghost { position: absolute; z-index: 0; right: -18px; bottom: -18px; width: 132px; height: 132px; object-fit: contain; opacity: .08; image-rendering: pixelated; filter: grayscale(.3); pointer-events: none; }
.xs-picker__img.xs-img--art, .xs-card__ghost.xs-img--art { image-rendering: auto; }

/* ---------- page bottom nav ---------- */
.xs-pagenav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding-top: 8px; }
.xs-pagenav .xs-btn { min-height: 56px; padding: 0 28px; }
.xs-catdesc { padding: 22px 28px; }

/* ---------- empty ---------- */
.xs-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 20px; text-align: center; }
.xs-empty img { width: 72px; height: auto; margin-bottom: 8px; transform: rotate(-12deg); }
.xs-empty p { margin: 0; }
.xs-empty__title { font-size: 20px; color: var(--white); }
.xs-empty .xs-btn { margin-top: 14px; }

/* ---------- checkout page ---------- */
.xs-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.xs-lines__list { list-style: none; margin: 0; padding: 0; }
.xs-line { display: grid; grid-template-columns: minmax(0, 1fr) 88px 128px 44px; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 2px solid var(--line); }
.xs-line__info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.xs-line__name { margin: 0; color: var(--white); font-weight: 700; }
.xs-line__opt { font-size: 13px; }
.xs-line__qty input { text-align: center; }
.xs-line__price { margin: 0; color: var(--price); font-weight: 700; white-space: nowrap; text-align: right; }
.xs-line__each { display: block; margin-top: 2px; color: var(--text); font-size: 11px; font-weight: 400; }
.xs-line__rm, .xs-mini__rm { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--panel-2); color: var(--text); font-size: 22px; text-decoration: none; }
.xs-line__rm:hover, .xs-mini__rm:hover { color: #f93435; background: rgba(249, 52, 53, .12); }
.xs-lines__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; }
.xs-summary { display: flex; flex-direction: column; gap: 16px; }
.xs-summary__rows { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.xs-summary__rows div { display: flex; justify-content: space-between; gap: 12px; }
.xs-summary__rows dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.xs-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding-top: 14px; border-top: 2px solid var(--line); }
.xs-total span { text-transform: uppercase; font-size: 14px; }
.xs-total strong { color: var(--price); font: 700 26px/1 var(--font-ui); text-shadow: var(--shadow-text); }

/* ---------- login ---------- */
.xs-login { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.xs-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 12px; background: var(--bg); }
.xs-seg input { position: absolute; opacity: 0; pointer-events: none; }
.xs-seg span { display: block; padding: 10px; border-radius: 8px; color: var(--text); font: 700 17px/1 var(--font-ui); text-align: center; text-transform: uppercase; cursor: pointer; }
.xs-seg input:checked + span { background: var(--go); color: var(--white); text-shadow: var(--shadow-text); }
.xs-seg input:focus-visible + span { outline: 3px solid var(--orange); }
.xs-login__field { position: relative; display: flex; align-items: center; }
.xs-login__prefix { position: absolute; left: 14px; color: var(--sky); font-weight: 700; pointer-events: none; }
.xs-login__field input.has-prefix { padding-left: 28px; }
.xs-loginpage { max-width: 520px; margin-inline: auto; width: 100%; }
.xs-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.xs-field { display: flex; flex-direction: column; gap: 6px; }
.xs-field label { color: var(--white); font-size: 14px; }

/* ---------- footer ---------- */
.xs-foot { border-top: 2px solid var(--line); background: var(--bg); padding-block: 56px 40px; }
.xs-foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 32px; border-bottom: 2px solid var(--line); }
.xs-foot__brand { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font-size: 26px; text-transform: uppercase; }
.xs-foot__brand img { width: 40px; height: auto; }
.xs-foot__brand span, [data-glow-text] { color: var(--glow); }
.xs-foot__about p { margin: 0; max-width: 46ch; line-height: 2; font-size: 15px; }
.xs-foot__support { text-align: right; }
.xs-foot__title { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin: 0 0 14px; font-size: 26px; text-transform: uppercase; text-shadow: var(--shadow-text); }
.xs-foot__support p { margin: 0 0 6px auto; max-width: 52ch; line-height: 2; font-size: 15px; }
.xs-foot__support a { color: var(--white); }
.xs-foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
.xs-foot__copy { margin: 0; color: var(--text); font: 700 15px/1.4 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; }
.xs-foot__fine { margin: 0; font-size: 14px; }

/* ---------- layers: drawer + modals ---------- */
.xs-layer { position: fixed; inset: 0; z-index: 60; }
.xs-layer__scrim { position: absolute; inset: 0; background: rgba(5, 6, 10, .72); animation: xs-fade .18s ease; }
.xs-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; width: min(420px, 100%);
  background: var(--panel); border-left: 2px solid var(--line);
  animation: xs-slide .22s cubic-bezier(.2, .8, .2, 1);
}
.xs-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top, 0px)) 22px 18px; border-bottom: 2px solid var(--line); }
.xs-drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.xs-drawer__foot { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--line); }
.xs-mini { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 40px; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 2px solid var(--line); }
.xs-mini__qty { color: var(--sky); font-weight: 700; }
.xs-mini__name { color: var(--white); overflow-wrap: anywhere; }
.xs-mini__name small { display: block; color: var(--text); }
.xs-mini__price { color: var(--price); font-weight: 700; white-space: nowrap; }
.xs-mini__price small { color: var(--text); font-weight: 400; }
.xs-modal { display: grid; place-items: center; padding: 20px; }
.xs-modal__box {
  position: relative; width: min(500px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 32px; border-radius: 18px;
  background: var(--panel); border: 2px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: xs-pop .2s cubic-bezier(.2, .8, .2, 1);
}
.xs-modal__x { position: absolute; top: 16px; right: 16px; }
.xs-modal__title { margin: 0 0 6px; font: 400 32px/1.05 var(--font-title); color: var(--white); text-transform: uppercase; text-shadow: var(--shadow-text); }
.xs-catlist { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.xs-catlist__item {
  --k: var(--blue);
  display: flex; align-items: center; gap: 16px;
  min-height: 76px; padding: 14px 18px 14px 16px;
  border-radius: 12px;
  background: var(--panel-2);
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--k) 70%, transparent);
  color: var(--white); text-decoration: none;
  transition: background .15s, transform .12s;
}
.xs-catlist__item:hover { background: var(--panel-3); transform: translateX(2px); }
.xs-catlist__item.is-active { background: color-mix(in srgb, var(--k) 22%, var(--panel-2)); box-shadow: inset 4px 0 0 var(--k); }
.xs-catlist__icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: color-mix(in srgb, var(--k) 22%, var(--panel-2));
  color: var(--k);
}
.xs-catlist__icon svg { width: 20px; height: 20px; }
.xs-catlist__item.is-active .xs-catlist__icon { background: var(--k); color: #1a1205; }
.xs-catlist__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xs-catlist__name { font-size: 19px; line-height: 1.2; color: var(--white); }
.xs-catlist__sub { font-size: 14px; line-height: 1.3; color: var(--text); }
.xs-catlist__item.is-active .xs-catlist__sub { color: var(--white); }
.xs-catlist__chev { flex: none; width: 14px; height: 14px; color: var(--text); }
.xs-catlist__item--sub { min-height: 52px; margin-left: 28px; padding-left: 20px; }
.xs-c-home { --k: var(--go); }
.xs-c-bundles { --k: var(--t-bundles); }
.xs-c-shards { --k: var(--t-shards); }
.xs-c-ranks { --k: var(--t-ranks); }
.xs-c-keys { --k: var(--t-keys); }
.xs-c-seasonal { --k: var(--t-season); }
.xs-c-other { --k: var(--sky); }

.xs-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 12px;
  background: var(--go); color: var(--white);
  font: 700 17px/1.3 var(--font-ui); text-align: center; text-shadow: var(--shadow-text);
  box-shadow: 0 4px 0 var(--go-dark), 0 18px 36px rgba(0, 0, 0, .5);
  animation: xs-pop .18s ease;
}

@keyframes xs-fade { from { opacity: 0; } }
@keyframes xs-slide { from { transform: translateX(100%); } }
@keyframes xs-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- rank pop-up (click a rank at the top of the table) ---------- */
.xs-rank-head__open { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.xs-rank-head__open:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.xs-rank-head .xs-pill { pointer-events: none; }
.xs-rankpop__box { width: min(520px, 100%); padding: 0; }
.xs-rankpop .xs-modal__x { z-index: 2; }
.xs-rankpop__hero { position: relative; display: grid; place-items: center; min-height: 200px; padding: 40px 48px 32px; background: var(--panel-3); }
.xs-rankpop__hero img { max-width: 100%; max-height: 130px; width: auto; height: auto; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .4)); }
.xs-rankpop__gift {
  position: absolute; right: 22px; bottom: -24px; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 2px solid var(--line); border-radius: 50%;
  background: var(--panel-2); color: var(--white); cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: background .15s, transform .12s;
}
.xs-rankpop__gift:hover, .xs-rankpop__gift[aria-expanded="true"] { background: var(--go); transform: translateY(-2px); }
.xs-rankpop__gift svg { width: 20px; height: 20px; fill: currentColor; }
.xs-rankpop__body { display: flex; flex-direction: column; gap: 18px; padding: 34px 32px 32px; }
.xs-rankpop__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.xs-rankpop__name { margin: 0; color: var(--white); font: 400 30px/1 var(--font-title); text-transform: uppercase; text-shadow: var(--shadow-text); }
.xs-rankpop__head .xs-price { margin: 0; font-size: 26px; white-space: nowrap; }
.xs-rankpop__head .xs-price small { font-size: 15px; }
.xs-rankpop__desc {
  max-height: 280px; overflow-y: auto;
  padding: 10px 18px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg);
  scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent;
}
.xs-perks { margin: 0; padding: 0; list-style: none; }
.xs-perks li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; padding: 6px 0; border-bottom: 2px solid var(--line); color: var(--white); }
.xs-perks li:last-child { border-bottom: 0; }
.xs-perks li::before { display: none; }
.xs-perks__val { display: flex; align-items: center; color: var(--white); font: 700 16px/1.2 var(--font-ui); text-align: right; text-transform: uppercase; }
.xs-kitbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border: 0; border-radius: 8px;
  background: color-mix(in srgb, var(--go) 24%, var(--panel-2)); color: var(--white);
  font: 700 16px/1 var(--font-ui); text-transform: uppercase; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35); transition: background .15s, transform .12s;
}
.xs-kitbtn:hover { background: var(--go); transform: translateY(-2px); }
.xs-kitbtn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ---------- kit viewer: Minecraft inventory ---------- */
.xs-mcinv {
  --slot: min(54px, calc((100vw - 56px) / 9));
  --u: calc(var(--slot) / 18);
  position: relative;
  padding: calc(var(--u) * 6) calc(var(--u) * 7) calc(var(--u) * 7);
  border-radius: calc(var(--u) * 3);
  background: #c6c6c6;
  box-shadow: 0 0 0 calc(var(--u) * 1) #000, inset calc(var(--u) * 2) calc(var(--u) * 2) 0 #fff, inset calc(var(--u) * -2) calc(var(--u) * -2) 0 #555, 0 30px 80px rgba(0, 0, 0, .6);
  animation: xs-pop .2s cubic-bezier(.2, .8, .2, 1);
}
.xs-mcinv__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: calc(var(--u) * 3); }
.xs-mcinv__title { margin: 0; color: #404040; font: 400 calc(var(--u) * 8)/1.3 var(--font-body); }
.xs-mcinv__x { display: grid; place-items: center; width: calc(var(--u) * 10); height: calc(var(--u) * 10); padding: 0; border: 0; background: transparent; color: #404040; font: 400 calc(var(--u) * 11)/1 var(--font-body); cursor: pointer; }
.xs-mcinv__x:hover { color: #000; }
.xs-mcinv__grid { display: grid; grid-template-columns: repeat(9, var(--slot)); }
.xs-mcinv__hint { margin: calc(var(--u) * 4) 0 0; color: #555; font: 400 calc(var(--u) * 5.5)/1.4 var(--font-body); text-align: center; }
.xs-hint-touch { display: none; }
@media (hover: none) { .xs-hint-mouse { display: none; } .xs-hint-touch { display: inline; } }
.xs-mcslot {
  position: relative; display: block;
  width: var(--slot); height: var(--slot); padding: 0; border: 0;
  background: #8b8b8b;
  box-shadow: inset var(--u) var(--u) 0 #373737, inset calc(var(--u) * -1) calc(var(--u) * -1) 0 #fff;
  font: inherit; cursor: default;
}
button.xs-mcslot { cursor: pointer; }
button.xs-mcslot:hover::after, button.xs-mcslot:focus-visible::after {
  content: ""; position: absolute; z-index: 3; left: var(--u); top: var(--u); width: calc(var(--u) * 16); height: calc(var(--u) * 16);
  background: rgba(255, 255, 255, .45);
}
.xs-mcslot:focus-visible { outline: none; }
.xs-mcslot__icon {
  --sheet: var(--kit-items);
  position: absolute; left: var(--u); top: var(--u); width: calc(var(--u) * 16); height: calc(var(--u) * 16);
  background: var(--sheet) no-repeat;
  background-size: calc(var(--u) * 16 * 32) auto;
  background-position: calc(var(--x, 0) * var(--u) * -16) calc(var(--y, 0) * var(--u) * -16);
  image-rendering: pixelated;
}
.xs-mcslot__icon.is-blocks { --sheet: var(--kit-blocks); image-rendering: auto; }
.xs-mcslot__icon.is-missing { background: none; }
.xs-mcslot__icon.is-missing::before { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 400 calc(var(--u) * 10)/1 var(--font-body); text-shadow: var(--u) var(--u) 0 #3f3f3f; }
.xs-mcslot__icon.is-glint::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(176, 96, 255, .75) 38%, transparent 52%, transparent 66%, rgba(176, 96, 255, .55) 78%, transparent 90%);
  background-size: 300% 300%;
  -webkit-mask: var(--sheet) no-repeat; mask: var(--sheet) no-repeat;
  -webkit-mask-size: calc(var(--u) * 16 * 32) auto; mask-size: calc(var(--u) * 16 * 32) auto;
  -webkit-mask-position: calc(var(--x, 0) * var(--u) * -16) calc(var(--y, 0) * var(--u) * -16);
  mask-position: calc(var(--x, 0) * var(--u) * -16) calc(var(--y, 0) * var(--u) * -16);
  mix-blend-mode: screen;
  animation: xs-glint 3.2s linear infinite;
}
@keyframes xs-glint { from { background-position: 100% 100%; } to { background-position: 0% 0%; } }
.xs-mcslot__count {
  position: absolute; z-index: 2; right: 0; bottom: calc(var(--u) * 0.6);
  color: #fff; font: 400 calc(var(--u) * 8)/1 var(--font-body);
  text-shadow: var(--u) var(--u) 0 #3f3f3f; pointer-events: none;
}
.xs-mctip {
  position: fixed; z-index: 100; max-width: min(440px, calc(100vw - 16px));
  padding: 7px 12px 9px; border-radius: 4px;
  background: rgba(16, 0, 16, .95); box-shadow: 0 0 0 2px #100010;
  pointer-events: none;
}
.xs-mctip::before { content: ""; position: absolute; inset: 2px; border: 2px solid; border-image: linear-gradient(#5000ff, #28007f) 1; opacity: .85; pointer-events: none; }
.xs-mctip p { margin: 0; color: #fff; font: 400 17px/1.5 var(--font-body); white-space: nowrap; }
.xs-mctip p span { text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
.xs-mctip .xs-mctip__name { margin-bottom: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .xs-tile__title { font-size: 40px; }
  .xs-picker { grid-template-columns: minmax(0, 1fr); }
  .xs-picker__media { padding: 28px; }
  .xs-picker__img { max-width: 200px; max-height: 220px; }
  .xs-checkout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .xs-wrap { padding-inline: 16px; }
  .xs-head { padding-top: 92px; }
  .xs-bar { grid-template-columns: 1fr auto; grid-template-areas: "brand brand" "account cart"; row-gap: 14px; padding: 16px; }
  .xs-brand { grid-area: brand; }
  .xs-account { grid-area: account; }
  .xs-cartbtn { grid-area: cart; width: 72px; height: 72px; }
  .xs-cartbtn svg { width: 30px; height: 30px; }
  .xs-account__btn { gap: 14px; padding: 8px 18px 8px 8px; }
  .xs-account__face { width: 52px; height: 52px; }
  .xs-account__name { font-size: 20px; }
  .xs-logo { width: 260px; margin-top: -100px; }
  .xs-ip { font-size: 15px; }
  .xs-tiles, .xs-tiles:not(:has(.xs-tile--bundles)), .xs-tiles:not(:has(.xs-tile--seasonal)),
  .xs-tiles:not(:has(.xs-tile--seasonal)):not(:has(.xs-tile--bundles)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
  .xs-tiles .xs-tile { grid-area: auto; order: 5; }
  .xs-tiles .xs-tile--seasonal { order: 0; margin-bottom: 12px; }
  .xs-tiles .xs-tile--bundles { order: 1; }
  .xs-tiles .xs-tile--shards { order: 2; }
  .xs-tiles .xs-tile--ranks { order: 3; }
  .xs-tiles .xs-tile--keys { order: 4; }
  .xs-tile { padding: 28px; min-height: 180px; overflow: hidden; }
  .xs-tile:hover { transform: none; box-shadow: 0 6px 0 0 var(--d); }
  .xs-tile__text { max-width: 58%; }
  .xs-tile--bundles { min-height: 300px; overflow: visible; }
  .xs-tile--bundles .xs-tile__text { max-width: 58%; }
  .xs-tile--bundles .xs-tile__art { height: 84%; max-width: 50%; right: 5%; bottom: 4%; }
  .xs-tile--shards .xs-tile__art { height: 100%; max-width: none; right: -2%; bottom: -12%; top: auto; }
  .xs-tile--keys .xs-tile__art { height: 92%; max-width: 46%; right: 8px; top: 4%; }
  .xs-tile__title { font-size: 34px; }
  .xs-tile__sub { font-size: 15px; }
  .xs-tile--ranks { min-height: 268px; }
  .xs-tile--ranks .xs-tile__text { max-width: 100%; }
  .xs-tile--ranks .xs-tile__art { height: auto; width: 62%; max-width: 62%; top: auto; bottom: 10px; right: 10px; }
  .xs-tile--seasonal { min-height: 180px; padding: 28px; overflow: visible; }
  .xs-tile--seasonal .xs-tile__text { max-width: 64%; gap: 12px; }
  .xs-tile--seasonal .xs-tile__title { font-size: 34px; }
  .xs-tile--seasonal .xs-tile__sub { font-size: 15px; }
  .xs-tile--seasonal .xs-tile__art { right: 4%; height: 104%; max-width: 40%; top: 36%; }
  .xs-countdown { right: 10px; font-size: 16px; top: -12px; }
  .xs-panel { padding: 20px; }
  .xs-intro { padding: 24px; }
  .xs-intro__title { font-size: 26px; padding-right: 64px; }
  .xs-intro__art { position: absolute; top: 18px; right: 16px; width: 56px; }
  .xs-modal__title { font-size: 26px; }
  .xs-catlist__item { min-height: 68px; gap: 12px; }
  .xs-step { padding: 16px; min-height: 0; }
  .xs-feats { grid-template-columns: 1fr; }
  .xs-feat:nth-child(n) { --c: var(--blue); --d: #0c4a80; }
  .xs-feat:nth-child(2n) { --c: var(--sky); --d: #1a7f99; }
  .xs-outro { justify-content: flex-start; text-align: left; }
  .xs-rankpop__hero { min-height: 150px; padding: 36px 28px 26px; }
  .xs-rankpop__body { padding: 30px 20px 22px; }
  .xs-rankpop__name { font-size: 24px; }
  .xs-rankpop__head .xs-price { font-size: 21px; }
  .xs-mctip p { font-size: 14px; white-space: normal; }
  .xs-picker__main { padding: 28px 18px; }
  .xs-picker__title { font-size: 28px; }
  .xs-opts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .xs-opt__name { font-size: 18px; }
  .xs-foot__top { grid-template-columns: minmax(0, 1fr); }
  .xs-foot__support { text-align: left; }
  .xs-foot__title { justify-content: flex-start; }
  .xs-foot__support p { margin-left: 0; }
  .xs-line { grid-template-columns: minmax(0, 1fr) 72px 40px; grid-template-areas: "info info rm" "price qty rm"; }
  .xs-line__info { grid-area: info; }
  .xs-line__qty { grid-area: qty; }
  .xs-line__price { grid-area: price; text-align: left; }
  .xs-line__rm { grid-area: rm; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
