/* The store (2026-11-05 makeover): the shop's dark, the sign over the top, small pack cards, a sheet per pack. No
   left-border "accent" cards anywhere (tester: "we cannot use … that left border rounded thing … it's over"). */
:root {
  --bg: #0a0a0c; --panel: #131418; --panel-2: #1a1b20; --line: #26272d; --text: #eef0f3; --muted: #9a9ea8; --dim: #6f737c;
  --gold: #ffcf5a; --accent: #9aa0a8; --on-accent: #0b0c10; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
/* Until the catalog says which store this is (demo or hosted), neither one's wording shows. */
body:not([data-store]) [data-mode] { visibility: hidden; }
[hidden] { display: none !important; } /* (the steps' flex rows mustn't bring back the other store's wording) */

/* ---- The masthead: the sign, what a pack is, how it works ---- */
.mast { position: relative; max-width: 1180px; margin: 24px auto 0; padding: 0 24px; }
.mast-in { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: center; gap: 28px; padding: 22px 28px; border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 140, 40, .14), transparent 55%), linear-gradient(180deg, #16161a, #101013); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, .8); }
.sign { display: block; width: 100%; height: auto; border-radius: 12px; -webkit-mask-image: radial-gradient(85% 90% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(85% 90% at 50% 50%, #000 62%, transparent 100%); }
.mast-txt { display: grid; gap: 10px; }
h1 { font-size: 34px; letter-spacing: -.02em; }
.sub { color: #c3c6cd; max-width: 56ch; }
.how { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.how li { display: flex; align-items: center; gap: 8px; }
.how b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #24252b; color: var(--text); font-size: 11px; }
.how em { font-style: normal; color: var(--dim); }
.how.stacked { display: grid; gap: 8px; margin: 18px 0 0; }
.mode { position: absolute; top: 14px; right: 40px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 207, 90, .12); color: var(--gold); font-size: 12px; font-weight: 600; }
.mode.inline { position: static; display: inline-block; margin-top: 8px; }

/* ---- The packs ---- */
main { max-width: 1180px; margin: 0 auto; padding: 30px 24px 48px; }
.row-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.row-h h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.count { color: var(--dim); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } /* six packs, one row; 3 × 2 or 2 × 3 narrower */
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.loading, .error { color: var(--muted); }
.error { color: #ff8b7a; }
.pk { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; cursor: pointer; border-radius: 14px; overflow: hidden; background: var(--panel);
  transition: transform 220ms cubic-bezier(.2, .7, .2, 1), box-shadow 220ms ease; }
/* The border over the cover (tester, 2026-11-06: the picture covered it): drawn on top, so the picture sits inside it. */
.pk::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; transition: box-shadow 220ms ease; }
.pk:hover, .pk:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--accent) 70%, transparent); }
.pk:hover::after, .pk:focus-visible::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, var(--line)); }
.pk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-art { position: relative; aspect-ratio: 1; background: #07080b; }
.pk-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pk.soon .pk-art img { filter: saturate(.75) brightness(.8); }
/* Quieter tags (tester, 2026-11-05: "make premium a little bit smaller and remove the border … same thing with coming soon"). */
.tag { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: rgba(10, 10, 12, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--gold); }
.tag.soon { color: #cfd3da; }
.pk-txt { display: grid; gap: 2px; padding: 12px 14px 14px; }
.pk-n { font-weight: 700; font-size: 16px; }
.pk-g { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-m { color: var(--dim); font-size: 12px; }

/* ---- A pack's sheet ---- */
.sheet { width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 20px; background: #121317; color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--line); overflow: auto; }
.sheet.small { width: min(520px, calc(100vw - 32px)); }
.sheet::backdrop { background: rgba(4, 4, 6, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open] { animation: sheet-in 340ms cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.sh { position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.sh-art { position: relative; background: #07080b; }
.sh-art img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.sh-body { display: grid; gap: 14px; align-content: start; padding: 26px 28px 24px; }
.x { all: unset; position: absolute; top: 12px; right: 12px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(10, 10, 12, .6); color: #d6d8dd; font-size: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.x:hover { background: rgba(30, 30, 34, .9); }
.kicker { color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }
.sh-body h2 { font-size: 28px; letter-spacing: -.01em; }
.genres { color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: -8px; }
.desc { color: #c7cad1; font-size: 14.5px; }
.sec-h { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sec-h span { letter-spacing: 0; text-transform: none; color: var(--dim); font-size: 12.5px; }
/* Skills as tokens you collect (tester: "like getting a Pokémon pack and you get these extra little things"): a face in
   the skill's colours with a foil sheen, its name, what it does. */
.tokens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.token { display: grid; gap: 6px; align-content: start; }
.tk-face { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--a) 92%, #fff) 0%, var(--a) 40%, color-mix(in srgb, var(--b, #000) 70%, #000) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 26px -16px var(--a); }
.tk-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 48%, transparent 60%); mix-blend-mode: screen; transform: translateX(-30%); transition: transform 600ms ease; }
.token:hover .tk-face::after { transform: translateX(30%); }
.tk-face b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.tk-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tk-face:has(img) b { position: relative; z-index: 1; padding: 3px 9px; border-radius: 9px; font-size: 16px; background: rgba(10, 10, 12, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.token strong { font-size: 13.5px; }
.token small { color: var(--muted); font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Sounds as chips: a few, then the rest on request. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li, .chips button { padding: 4px 11px; border-radius: 999px; background: #1d1e23; color: #d3d6dc; font-size: 12.5px; box-shadow: inset 0 0 0 1px #2a2b31; }
.chips button { all: unset; cursor: pointer; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.chips li small { color: var(--dim); margin-left: 4px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; padding-top: 16px; box-shadow: 0 -1px 0 var(--line); }
.cta .note { color: var(--muted); font-size: 13px; }
.credits { color: var(--dim); font-size: 12.5px; text-decoration: none; margin-left: auto; }
.credits:hover { color: var(--muted); text-decoration: underline; }
.buy-msg { color: #ff8b7a; font-size: 13px; width: 100%; }
.btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; cursor: pointer; font-weight: 650; font-size: 14px; background: #24252b; color: var(--text); box-shadow: inset 0 0 0 1px #34353c; }
.btn:hover { background: #2c2d34; }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); color: var(--on-accent); box-shadow: 0 10px 24px -14px var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.soon { background: #1d1e23; color: var(--muted); cursor: default; box-shadow: inset 0 0 0 1px #2a2b31; }

/* ---- The serial ---- */
.bought { padding: 26px 28px 22px; display: grid; gap: 10px; }
.bought h2 { font-size: 20px; }
.serial { display: block; margin-top: 8px; padding: 14px 16px; border-radius: 12px; background: #0b0b0e; font: 600 17px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; word-break: break-all; box-shadow: inset 0 0 0 1px var(--line); }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.actions.end { justify-content: flex-end; }
.copied { color: var(--muted); font-size: 13px; }

.foot { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; color: var(--dim); font-size: 12.5px; }

@media (max-width: 760px) {
  .mast-in { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .mode { position: static; display: inline-block; margin: 10px 0 0; }
  .sh { grid-template-columns: minmax(0, 1fr); }
  .sh-art img { min-height: 0; aspect-ratio: 1; }
  .tokens { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .pk, .tk-face::after { transition: none; } .sheet[open] { animation: none; } }
