/* NextBall - shop.html (the store page). Prefix sp- (pc- is the profile card's).
 * Brand v4: graphite, NextBall orange, gold coins, Chakra Petch display / Exo 2 body. */

@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/chakra-petch-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/chakra-petch-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/chakra-petch-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: italic; font-weight: 700; font-display: swap; src: url('/fonts/chakra-petch-latin-700-italic.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/exo-2-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/exo-2-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/exo-2-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/exo-2-latin-700-normal.woff2') format('woff2'); }

:root {
    --bg-0: #0B0D10; --bg-1: #12151A; --bg-2: #181C22; --bg-3: #20252D; --bg-4: #2B313B;
    --line: rgba(255, 255, 255, .07); --line-strong: rgba(255, 255, 255, .14);
    --fg-0: #FFFFFF; --fg-1: #DDE0E6; --fg-2: #9BA1AC; --fg-3: #666D79;
    --orange: #FF6A13; --orange-hi: #FF8A45; --orange-lo: #C24E08; --orange-ink: #1A0900;
    --gold: #E4B13A; --gold-hi: #F2CB6A; --gold-ink: #2A1A00; --ember: var(--gold);
    --red: #E0322E; --blue: #2E7BE0; --ok: #38D66B;
    --r: 4px; --r-lg: 6px; --t-fast: 120ms ease-out; --t: 220ms ease-out;
    --f-display: 'Chakra Petch', 'Arial Narrow', sans-serif; --f-body: 'Exo 2', system-ui, sans-serif;
    --r-common: #9CA3AF; --r-rare: #4C8FE8; --r-epic: #A77BE8; --r-legendary: #E4B13A; --r-mythic: #FF4FB0; --r-exclusive: #FF6A13;
    --top-h: 60px; --gut: clamp(16px, 4vw, 48px); --max: 1360px;
    color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 64px); -webkit-text-size-adjust: 100%; }
body.sp-body { margin: 0; background: var(--bg-0); color: var(--fg-1); font: 400 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sp-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--orange); color: var(--orange-ink); padding: 8px 12px; border-radius: var(--r); font-weight: 700; }
.sp-skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.sp-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- buttons, labels ---------- */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: var(--r); background: var(--bg-3); color: var(--fg-0); font: 700 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.sp-btn:hover { background: var(--bg-4); }
.sp-btn:active { transform: translateY(1px); }
.sp-btn--buy, .sp-btn--play { background: var(--orange); color: var(--orange-ink); }
.sp-btn--buy:hover, .sp-btn--play:hover { background: var(--orange-hi); }
.sp-btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.sp-btn--ghost:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--fg-3); }
.sp-btn--equip { background: var(--fg-0); color: var(--bg-0); }
.sp-btn--equip:hover { background: var(--fg-1); }
.sp-btn--on { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1px rgba(56, 214, 107, .45); }
.sp-btn--on:hover { background: rgba(56, 214, 107, .08); }
.sp-btn--confirm { background: var(--gold); color: var(--gold-ink); animation: sp-pulse 1s ease-in-out infinite; }
.sp-btn--lg { height: 52px; padding: 0 26px; font-size: 15px; }
.sp-btn--sm { height: 32px; padding: 0 12px; font-size: 11.5px; }
.sp-btn.is-short { background: var(--bg-3); color: var(--fg-3); }
.sp-btn[disabled] { opacity: .5; cursor: default; }
.sp-btn .nbc { width: 15px; height: 15px; }
@keyframes sp-pulse { 50% { box-shadow: 0 0 0 4px rgba(228, 177, 58, .25); } }
.sp-lock { display: inline-flex; align-items: center; gap: 7px; height: 32px; color: var(--fg-2); font: 600 12px/1.2 var(--f-body); }
.sp-lock .nbi { color: var(--fg-3); }
.sp-kicker { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font: 700 11.5px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); }
.sp-num { color: var(--orange); font-variant-numeric: tabular-nums; }
.sp-num::after { content: ''; display: inline-block; width: 22px; height: 1px; margin-left: 10px; vertical-align: middle; background: var(--fg-3); }
.sp-h2 { margin: 0; font: italic 700 clamp(30px, 4.2vw, 52px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; color: var(--fg-0); }
.sp-lede { margin: 12px 0 0; max-width: 620px; color: var(--fg-2); }
.sp-rar { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--rc, var(--fg-2)); }
.sp-rar::before { content: ''; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.sp-price { display: inline-flex; align-items: center; gap: 6px; font: 700 15px/1 var(--f-display); letter-spacing: .02em; color: var(--gold-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-price .nbc { width: 16px; height: 16px; }
.sp-price s { color: var(--fg-3); font-weight: 600; font-size: .82em; text-decoration-thickness: 1.5px; }
.sp-price--free { color: var(--ok); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
[data-rar="common"] { --rc: var(--r-common); } [data-rar="rare"] { --rc: var(--r-rare); } [data-rar="epic"] { --rc: var(--r-epic); }
[data-rar="legendary"] { --rc: var(--r-legendary); } [data-rar="mythic"] { --rc: var(--r-mythic); } [data-rar="exclusive"] { --rc: var(--r-exclusive); }

/* ---------- top bar ---------- */
.sp-top { position: sticky; top: 0; z-index: 50; height: var(--top-h); background: rgba(11, 13, 16, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.sp-top-in { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 22px; }
.sp-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--fg-0); text-decoration: none; flex: none; }
.sp-logo-word { font: 700 18px/1 var(--f-display); letter-spacing: .04em; }
.sp-logo-tag { height: 20px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 2px; background: var(--orange); color: var(--orange-ink); font: 700 10.5px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.sp-cats { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sp-cats::-webkit-scrollbar { display: none; }
.sp-cats a { position: relative; flex: none; padding: 8px 10px; color: var(--fg-2); text-decoration: none; font: 700 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; border-radius: var(--r); transition: color var(--t-fast); }
.sp-cats a:hover { color: var(--fg-0); }
.sp-cats a.is-on { color: var(--fg-0); }
.sp-cats a.is-on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--orange); }
.sp-cats a.sp-cats-deal { color: var(--gold-hi); }
.sp-me { display: flex; align-items: center; gap: 10px; flex: none; }
.sp-wallet { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--r); background: var(--bg-2); color: var(--gold-hi); text-decoration: none; font: 700 14px/1 var(--f-display); letter-spacing: .03em; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line); }
.sp-wallet .nbc { width: 16px; height: 16px; }
.sp-wallet.is-bump { animation: sp-bump .5s ease-out; }
@keyframes sp-bump { 30% { transform: scale(1.08); box-shadow: inset 0 0 0 1px var(--gold); } }
.sp-user { display: inline-flex; align-items: center; gap: 8px; max-width: 160px; font: 700 13px/1 var(--f-display); letter-spacing: .05em; color: var(--fg-1); }
.sp-user-av { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; overflow: hidden; background: var(--bg-3); }
.sp-user-av .cos-av { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; font-size: 11px !important; }
.sp-user-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-btn--play { height: 34px; padding: 0 14px; }

/* ---------- 01 hero ---------- */
.sp-hero { position: relative; height: clamp(500px, calc(100svh - var(--top-h) - 150px), 680px); overflow: hidden; background: #050608; isolation: isolate; }
.sp-hero-stage { position: absolute; inset: 0; z-index: -1; }
.sp-hs { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.sp-hs.is-on { opacity: 1; }
.sp-hs video, .sp-hs img.sp-hs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.sp-hs::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 8, .94) 0%, rgba(5, 6, 8, .72) 34%, rgba(5, 6, 8, .08) 64%, rgba(5, 6, 8, 0) 100%), linear-gradient(0deg, rgba(5, 6, 8, .96) 0%, rgba(5, 6, 8, 0) 34%); pointer-events: none; }
/* banner / card stages: drawn, not filmed */
.sp-hs--set { background: radial-gradient(70% 90% at 72% 45%, #1d222b 0%, #0b0d10 70%); }
.sp-hs--set::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(60% 70% at 70% 48%, #000, transparent); -webkit-mask-image: radial-gradient(60% 70% at 70% 48%, #000, transparent); }
.sp-hs-lineup { position: absolute; right: 7%; top: 50%; transform: translateY(-56%) rotate(-4deg); display: flex; flex-direction: column; gap: 22px; }
.sp-hs-lineup .banner-preview { transform: scale(1.65); transform-origin: right center; white-space: nowrap; }
.sp-hs-lineup > div:nth-child(even) { margin-right: 40px; }
.sp-hs-card { position: absolute; right: 9%; top: 50%; transform: translateY(-58%) perspective(1200px) rotateY(-12deg) rotateX(3deg); width: 340px; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); }
.sp-hs-card .pc-card { width: 340px !important; max-width: none !important; }
.sp-hero-body { position: relative; height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 30px; }
.sp-hero-copy { max-width: 600px; }
.sp-hero-copy > * { animation: sp-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.sp-hero-copy > *:nth-child(2) { animation-delay: .05s; } .sp-hero-copy > *:nth-child(3) { animation-delay: .1s; } .sp-hero-copy > *:nth-child(4) { animation-delay: .15s; }
@keyframes sp-rise { from { opacity: 0; transform: translateY(14px); } }
.sp-hero-title { margin: 6px 0 14px; font: italic 700 clamp(44px, 7vw, 100px)/.86 var(--f-display); text-transform: uppercase; letter-spacing: -.012em; color: var(--fg-0); text-wrap: balance; }
.sp-hero-desc { margin: 0 0 22px; max-width: 470px; font-size: 16px; color: var(--fg-1); }
.sp-hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sp-hero-act .sp-price { font-size: 26px; margin-right: 8px; }
.sp-hero-act .sp-price .nbc { width: 24px; height: 24px; }
.sp-hero-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sp-hr { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 0 0; border: 0; background: none; text-align: left; color: var(--fg-2); }
.sp-hr::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .16); }
.sp-hr i.sp-hr-p { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--orange); }
.sp-hr.is-on { color: var(--fg-0); }
.sp-hr-th--icon { display: grid; place-items: center; color: var(--r-mythic); background: #12151a; }
.sp-hr-th--icon .nbi { width: 16px; height: 16px; }
.sp-hr-th { width: 54px; height: 32px; flex: none; border-radius: 2px; overflow: hidden; background: var(--bg-3) center / cover; box-shadow: inset 0 0 0 1px var(--line-strong); }
.sp-hr-t { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-hr-t b { font: 700 12.5px/1.1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-hr-t small { font: 600 11px/1 var(--f-body); color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-hr:hover { color: var(--fg-0); }
.sp-hero-snd { position: absolute; right: var(--gut); top: 18px; z-index: 2; }

/* ---------- 02 deals ---------- */
.sp-deals { position: relative; padding: 56px 0 60px; background: linear-gradient(180deg, #14110b 0%, var(--bg-0) 100%); border-top: 1px solid rgba(228, 177, 58, .25); }
.sp-deals::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--gold) 0 10px, transparent 10px 20px); opacity: .7; }
.sp-deals .sp-num { color: var(--gold); }
.sp-deals-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sp-clock { display: flex; align-items: center; gap: 6px; }
.sp-clock-l { margin-right: 6px; font: 700 11px/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); text-align: right; }
.sp-clock-u { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sp-clock-u b { min-width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r); background: #000; color: var(--gold-hi); font: 700 30px/1 var(--f-display); font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(228, 177, 58, .3), inset 0 -28px 0 rgba(255, 255, 255, .03); }
.sp-clock-u small { font: 700 9.5px/1 var(--f-display); letter-spacing: .18em; color: var(--fg-3); text-transform: uppercase; }
.sp-clock-sep { font: 700 26px/56px var(--f-display); color: var(--fg-3); align-self: flex-start; }
.sp-deals-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.sp-deals-cats span { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 2px; background: rgba(228, 177, 58, .1); color: var(--gold-hi); font: 700 12px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(228, 177, 58, .3); }
.sp-deals-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sp-deal { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--bg-1); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--t), box-shadow var(--t); cursor: pointer; }
.sp-deal:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--rc, var(--line-strong)), 0 18px 40px -20px rgba(0, 0, 0, .9); }
.sp-deal .sp-media { aspect-ratio: 16 / 10; }
.sp-off { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; align-items: baseline; gap: 2px; height: 38px; padding: 0 10px; align-items: center; background: var(--gold); color: var(--gold-ink); font: italic 700 22px/1 var(--f-display); letter-spacing: -.01em; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.sp-off--free { background: var(--ok); color: #04210f; font-size: 16px; letter-spacing: .08em; }
.sp-deal-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sp-deal-n { font: 700 17px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; color: var(--fg-0); }
.sp-deal-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp-task { display: flex; flex-direction: column; gap: 7px; font: 600 12.5px/1.3 var(--f-body); color: var(--fg-1); }
.sp-task-bar { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.sp-task-bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }

/* ---------- 03 mythic scrub ---------- */
.sp-myth { position: relative; height: 640vh; background: #000; }
.sp-myth-sticky { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); height: calc(100svh - var(--top-h)); overflow: hidden; }
.sp-myth-stage { position: absolute; inset: 0; }
.sp-myth-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; opacity: 0; transition: opacity .35s; }
.sp-myth-stage video.is-on { opacity: 1; }
.sp-myth-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 30%, rgba(0, 0, 0, 0) 58%), linear-gradient(270deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, 0) 26%), linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 30%); }
.sp-myth-copy { position: absolute; left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); bottom: 13%; width: min(520px, 80vw); }
.sp-myth-copy .sp-num { color: var(--r-mythic); }
.sp-myth-count { font: 700 14px/1 var(--f-display); color: var(--r-mythic); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.sp-myth-count span { color: var(--fg-3); }
.sp-myth-name { margin: 10px 0 12px; font: italic 700 clamp(46px, 8vw, 120px)/.86 var(--f-display); text-transform: uppercase; color: var(--fg-0); letter-spacing: -.012em; }
.sp-myth-name.is-swap { animation: sp-swap .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes sp-swap { from { opacity: 0; transform: translateX(-18px); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.sp-myth-desc { margin: 0 0 20px; max-width: 420px; color: var(--fg-1); font-size: 16px; min-height: 3em; }
.sp-myth-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sp-myth-buy .sp-price { font-size: 24px; }
.sp-myth-buy .sp-price .nbc { width: 22px; height: 22px; }
.sp-myth-list { position: absolute; right: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; counter-reset: m; }
.sp-myth-list button { text-shadow: 0 1px 8px rgba(0, 0, 0, .9); position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 100%; padding: 7px 0; border: 0; background: none; color: rgba(255, 255, 255, .38); font: 700 13px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; transition: color var(--t-fast); }
.sp-myth-list button::after { content: ''; width: 14px; height: 2px; background: currentColor; transition: width var(--t); }
.sp-myth-list button:hover { color: var(--fg-1); }
.sp-myth-list button.is-on { color: var(--fg-0); }
.sp-myth-list button.is-on::after { width: 34px; background: var(--r-mythic); }
.sp-myth-list button .sp-owned-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.sp-myth-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.sp-myth-bar i { display: block; height: 100%; width: 0; background: var(--r-mythic); }

/* ---------- 04 catalogue ---------- */
.sp-tools { position: sticky; top: var(--top-h); z-index: 40; background: rgba(11, 13, 16, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sp-tools-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.sp-search { flex: 1; max-width: 360px; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border-radius: var(--r); background: var(--bg-2); color: var(--fg-3); box-shadow: inset 0 0 0 1px var(--line); }
.sp-search:focus-within { box-shadow: inset 0 0 0 1px var(--orange); }
.sp-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--fg-0); font-size: 14px; }
.sp-search input::placeholder { color: var(--fg-3); }
.sp-seg { display: inline-flex; padding: 3px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.sp-seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 3px; background: none; color: var(--fg-2); font: 700 11.5px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.sp-seg button[aria-checked="true"] { background: var(--bg-4); color: var(--fg-0); }
.sp-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.sp-sort select { height: 38px; padding: 0 30px 0 12px; border: 0; border-radius: var(--r); background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239BA1AC' stroke-width='1.6'/%3E%3C/svg%3E") right 12px center no-repeat; -webkit-appearance: none; appearance: none; color: var(--fg-1); font: 600 13px var(--f-body); letter-spacing: 0; text-transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.sp-sec { padding: 64px 0 20px; }
.sp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.sp-sec-head .sp-h2 { font-size: clamp(28px, 3.4vw, 42px); }
.sp-sec-sub { margin: 8px 0 0; color: var(--fg-2); max-width: 560px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chip { height: 30px; padding: 0 11px; border: 0; border-radius: 2px; background: var(--bg-2); color: var(--fg-2); font: 700 11px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; box-shadow: inset 0 0 0 1px var(--line); }
.sp-chip i { width: 7px; height: 7px; background: var(--rc, var(--fg-3)); transform: rotate(45deg); }
.sp-chip:hover { color: var(--fg-0); }
.sp-chip[aria-pressed="true"] { background: var(--fg-0); color: var(--bg-0); box-shadow: none; }
.sp-chip small { color: inherit; opacity: .55; font-weight: 600; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.sp-grid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sp-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--fg-3); }
.sp-more { display: flex; justify-content: center; margin-top: 18px; }

/* product card */
.sp-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform var(--t), box-shadow var(--t), background var(--t); }
.sp-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4; background: var(--rc, var(--fg-3)); opacity: .9; }
.sp-card:hover { transform: translateY(-3px); background: var(--bg-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, #fff) 55%, transparent), 0 20px 40px -24px rgba(0, 0, 0, .95); }
.sp-card[data-rar="mythic"]::before { height: 3px; background: linear-gradient(90deg, #FF4FB0, #8A5CFF, #3DD6FF, #FFD23F, #FF4FB0); background-size: 200% 100%; animation: sp-prism 4s linear infinite; }
@keyframes sp-prism { to { background-position: 200% 0; } }
.sp-card-hit { position: absolute; inset: 0; z-index: 2; border: 0; background: none; }
.sp-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(80% 90% at 50% 40%, #1c2129 0%, #101318 100%); }
.sp-media img, .sp-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.sp-media video { opacity: 0; transition: opacity .25s; }
.sp-media video.is-on { opacity: 1; }
.sp-media .banner-preview { transform: scale(1.05); white-space: nowrap; }
.sp-media .cos-art { transform: scale(1.12); }
.sp-media--bg .cos-art { position: absolute; inset: 0; height: auto !important; transform: none; }
.sp-media--bg .cos-art .cos-bg, .sp-media--bg .cos-art > * { width: 100% !important; height: 100% !important; }
.sp-flag { position: absolute; top: 10px; right: 10px; z-index: 3; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 2px; font: 700 10.5px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; background: rgba(0, 0, 0, .7); color: var(--fg-1); }
.sp-flag--off { background: var(--gold); color: var(--gold-ink); font-size: 12px; letter-spacing: .02em; }
.sp-flag--own { background: rgba(56, 214, 107, .16); color: var(--ok); }
.sp-flag--on { background: var(--ok); color: #04210f; }
.sp-flag--anim { left: 10px; right: auto; background: rgba(0, 0, 0, .55); color: var(--fg-2); }
.sp-card-b { position: relative; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp-card-n { font: 700 15px/1.15 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-card-f { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.sp-card-f .sp-btn { position: relative; z-index: 3; }
.sp-card.is-owned .sp-price { color: var(--fg-3); }
.sp-card.is-hit { animation: sp-hit .9s cubic-bezier(.2, .7, .2, 1); }
@keyframes sp-hit { 0% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 0 rgba(228, 177, 58, .6); } 100% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 18px rgba(228, 177, 58, 0); } }

/* ---------- 05 coins ---------- */
.sp-coins { padding: 72px 0 80px; margin-top: 50px; border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 85% 0%, rgba(228, 177, 58, .08), transparent 70%); }
.sp-coins .sp-num { color: var(--gold); }
.sp-earn { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.sp-earn-i { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--bg-0); }
.sp-earn-i b { display: inline-flex; align-items: center; gap: 7px; font: 700 26px/1 var(--f-display); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.sp-earn-i b .nbc { width: 22px; height: 22px; } .sp-earn-i b .nbi { width: 24px; height: 24px; color: var(--orange); }
.sp-earn-i span { margin-top: 6px; font: 700 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-0); }
.sp-earn-i small { color: var(--fg-2); font-size: 13px; line-height: 1.4; }
.sp-coupon { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sp-coupon label { font: 700 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); margin-right: 4px; }
.sp-coupon input { width: 200px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r); background: var(--bg-2); color: var(--fg-0); font: 700 14px var(--f-display); letter-spacing: .12em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.sp-coupon input:focus { box-shadow: inset 0 0 0 1px var(--orange); }
.sp-coupon-msg { font-size: 13px; color: var(--fg-2); }
.sp-coupon-msg.is-ok { color: var(--ok); } .sp-coupon-msg.is-err { color: #ff7b72; }

.sp-foot { padding: 34px var(--gut) 44px; border-top: 1px solid var(--line); text-align: center; color: var(--fg-3); font-size: 13px; }
.sp-foot .guide-links { margin-bottom: 10px; color: var(--fg-3); }
.sp-foot .guide-links a { color: var(--orange); font-weight: 600; text-decoration: none; }
.sp-foot .guide-links a:hover { text-decoration: underline; }

/* ---------- product sheet ---------- */
.sp-sheet { position: fixed; inset: 0; z-index: 80; }
.sp-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); animation: sp-fade .2s ease-out; }
@keyframes sp-fade { from { opacity: 0; } }
.sp-sheet-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); display: flex; flex-direction: column; background: var(--bg-1); box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .8), inset 1px 0 0 var(--line); animation: sp-slide .32s cubic-bezier(.2, .8, .2, 1); outline: none; }
@keyframes sp-slide { from { transform: translateX(40px); opacity: 0; } }
.sp-sheet-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: rgba(0, 0, 0, .55); color: var(--fg-0); font-size: 18px; }
.sp-sheet-x:hover { background: rgba(0, 0, 0, .8); }
.sp-sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sp-sv { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(80% 90% at 50% 40%, #1c2129 0%, #0e1115 100%); display: grid; place-items: center; overflow: hidden; }
.sp-sv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.sp-sv .banner-preview { transform: scale(1.7); white-space: nowrap; }
.sp-sv-card { padding: 26px 0; }
.sp-sv-card .pc-card { width: 300px !important; max-width: 300px !important; }
.sp-sv--card { aspect-ratio: auto; min-height: 300px; }
.sp-sv-tools { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; }
.sp-sv-tools .sp-btn { height: 32px; padding: 0 12px; font-size: 11px; background: rgba(0, 0, 0, .62); color: var(--fg-0); }
.sp-sv-tools .sp-btn:hover { background: rgba(0, 0, 0, .85); }
.sp-sv-tools .sp-btn.is-on { background: var(--orange); color: var(--orange-ink); }
.sp-sd { padding: 22px 24px 30px; display: flex; flex-direction: column; gap: 12px; }
.sp-sd h2 { margin: 0; font: italic 700 38px/.95 var(--f-display); text-transform: uppercase; color: var(--fg-0); }
.sp-sd-desc { margin: 0; color: var(--fg-1); }
.sp-sd-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--fg-2); }
.sp-sd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sp-sd-buy { margin-top: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--bg-2); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; box-shadow: inset 0 0 0 1px var(--line); }
.sp-sd-buy .sp-price { font-size: 26px; }
.sp-sd-buy .sp-price .nbc { width: 24px; height: 24px; }
.sp-sd-left { font-size: 12.5px; color: var(--fg-3); margin-top: 6px; }
.sp-sd-note { font-size: 13px; color: var(--fg-2); }
.sp-sd-note b { color: var(--fg-0); }
.sp-sd-try { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sp-sd-try h3 { margin: 0; font: 700 12px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.sp-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sp-mini button { position: relative; aspect-ratio: 16 / 10; border: 0; border-radius: var(--r); overflow: hidden; padding: 0; background: var(--bg-3) center / cover; box-shadow: inset 0 0 0 1px var(--line); }
.sp-mini button:hover { box-shadow: inset 0 0 0 1px var(--fg-2); }

/* unlock moment */
.sp-unlock { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; }
.sp-unlock-in { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: sp-unlock 1.9s cubic-bezier(.2, .8, .2, 1) forwards; }
.sp-unlock-in small { font: 700 13px/1 var(--f-display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi); }
.sp-unlock-in b { font: italic 700 clamp(40px, 7vw, 84px)/.9 var(--f-display); text-transform: uppercase; color: var(--fg-0); text-shadow: 0 4px 30px rgba(0, 0, 0, .8); text-align: center; padding: 0 20px; }
.sp-unlock::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 40% at 50% 50%, rgba(0, 0, 0, .7), transparent 80%); animation: sp-unlock-bg 1.9s ease forwards; }
@keyframes sp-unlock { 0% { opacity: 0; transform: scale(.86); } 14% { opacity: 1; transform: scale(1); } 78% { opacity: 1; transform: scale(1.02); } 100% { opacity: 0; transform: scale(1.06); } }
@keyframes sp-unlock-bg { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }

/* toasts (ours + the ones cosmetics.js makes) */
.sp-toasts { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.sp-toast { padding: 11px 16px; border-radius: var(--r); background: var(--bg-3); color: var(--fg-0); font: 600 13.5px var(--f-body); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .9), inset 0 0 0 1px var(--line-strong); animation: sp-rise .25s ease-out; }
.sp-toast.is-err { background: #2a1214; box-shadow: inset 0 0 0 1px rgba(224, 50, 46, .5); }
.sp-toast.is-ok { box-shadow: inset 0 0 0 1px rgba(56, 214, 107, .45); }
.shop-notification { display: none !important; }

/* skeletons */
.sp-skel { border-radius: var(--r-lg); background: linear-gradient(90deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%); background-size: 200% 100%; animation: sp-skel 1.2s linear infinite; aspect-ratio: 4 / 3.4; }
@keyframes sp-skel { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
.sp-catnav { display: none; }
@media (max-width: 1100px) {
    .sp-cats { display: none; }
    .sp-top-in { justify-content: space-between; }
    .sp-catnav { display: flex; }
    .sp-hero-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .sp-hr-th { display: none; }
}
.sp-catnav { position: sticky; top: var(--top-h); z-index: 45; height: 44px; align-items: center; gap: 2px; padding: 0 var(--gut); overflow-x: auto; scrollbar-width: none; background: rgba(11, 13, 16, .94); border-bottom: 1px solid var(--line); }
.sp-catnav::-webkit-scrollbar { display: none; }
.sp-catnav a { flex: none; padding: 8px 10px; color: var(--fg-2); text-decoration: none; font: 700 11.5px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; border-radius: var(--r); }
.sp-catnav a.is-on { color: var(--fg-0); background: var(--bg-3); }
@media (max-width: 1100px) { .sp-tools { top: calc(var(--top-h) + 44px); } .sp-myth-sticky { top: calc(var(--top-h) + 44px); height: calc(100svh - var(--top-h) - 44px); } html { scroll-padding-top: calc(var(--top-h) + 110px); } }
@media (max-width: 760px) {
    :root { --top-h: 56px; }
    .sp-logo-word { display: none; }
    .sp-user { display: none !important; }
    .sp-hero { height: clamp(560px, calc(100svh - var(--top-h) - 44px), 720px); }
    .sp-hs video, .sp-hs img.sp-hs-img { object-position: 78% 30%; height: 62%; }
    .sp-hs::after { background: linear-gradient(0deg, rgba(5, 6, 8, 1) 0%, rgba(5, 6, 8, .96) 42%, rgba(5, 6, 8, .2) 62%, rgba(5, 6, 8, 0) 100%); }
    .sp-hs-lineup { right: 50%; top: 24%; transform: translate(50%, -50%) rotate(-4deg) scale(.7); }
    .sp-hs-card { right: 50%; top: 27%; transform: translate(50%, -50%) scale(.62); }
    .sp-hero-desc { font-size: 14.5px; margin-bottom: 16px; }
    .sp-hero-rail { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .sp-hr-t { display: none; }
    .sp-hr { padding-top: 0; height: 18px; }
    .sp-hr::before, .sp-hr i.sp-hr-p { top: 8px; }
    .sp-tools-in { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
    .sp-search { max-width: none; flex-basis: 100%; }
    .sp-sort span { display: none; }
    .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sp-grid--wide { grid-template-columns: 1fr; }
    .sp-card-n { font-size: 13px; }
    .sp-card-b { padding: 10px 10px 12px; }
    .sp-card-f { flex-direction: column; align-items: stretch; gap: 8px; }
    .sp-card-f .sp-btn { width: 100%; }
    .sp-myth-stage video { object-position: 72% 50%; }
    .sp-myth-shade { background: linear-gradient(0deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .6) 42%, rgba(0, 0, 0, 0) 66%); }
    .sp-myth-copy { bottom: 6%; }
    .sp-myth-list { top: 18px; transform: none; flex-direction: row; gap: 6px; }
    .sp-myth-list button { padding: 0; width: 22px; height: 18px; font-size: 0; justify-content: center; }
    .sp-myth-list button::after { width: 18px; }
    .sp-myth-list button.is-on::after { width: 22px; }
    .sp-clock-u b { min-width: 46px; height: 46px; font-size: 24px; }
    .sp-clock-sep { line-height: 46px; }
    .sp-sheet-panel { top: auto; width: 100vw; max-height: 92svh; border-radius: 12px 12px 0 0; animation-name: sp-up; }
    @keyframes sp-up { from { transform: translateY(40px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
    /* decoration only: the clips and the Mythic scroll still run (see shop-page.js) */
    .sp-card[data-rar="mythic"]::before, .sp-btn--confirm, .sp-myth-cue i::after { animation: none; }
}

@media (max-width: 1100px) { .sp-catnav { display: flex; } }
@media (max-width: 760px) {
    .sp-tools { position: static; }
    .sp-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html { scroll-padding-top: calc(var(--top-h) + 52px); }
}

.sp-unlock--in { position: absolute; z-index: 4; }
.sp-unlock--in::before { background: rgba(0, 0, 0, .55); }
.sp-unlock--in .sp-unlock-in b { font-size: clamp(30px, 6vw, 52px); }

/* the Mythic section's own opening, so the scroll stage never shows up bare under the hero */
.sp-myth-intro { padding: 76px 0 38px; background: linear-gradient(180deg, var(--bg-0) 0%, #000 100%); }
.sp-myth-intro .sp-num { color: var(--r-mythic); }
.sp-myth-intro-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sp-myth-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--fg-3); font: 700 10.5px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; }
.sp-myth-cue i { position: relative; width: 2px; height: 44px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.sp-myth-cue i::after { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--r-mythic); animation: sp-cue 1.6s ease-in-out infinite; }
@keyframes sp-cue { to { top: 100%; } }
@media (max-width: 760px) { .sp-myth-intro { padding: 54px 0 26px; } .sp-myth-cue { display: none; } }

/* the panel's notice line under the top bar, and the New flag */
.sp-notice { display: block; background: var(--orange); color: var(--orange-ink); text-decoration: none; font: 700 13px/1.3 var(--f-display); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 9px 0; }
.sp-notice:hover { background: var(--orange-hi); }
.sp-flag--new { background: var(--orange); color: var(--orange-ink); }
