/* alpha.css — the store redesign (alpha.darksgames.app), layered over
   styles.css. Neon store look from the owner's reference: deep violet night,
   hot-pink accents, condensed italic display type, framed glowing panels.
   The palette is applied by re-pointing styles.css's own variables, so every
   page picks it up; the storefront (.storefront, .s-*) is new markup from
   views.home. Fonts are self-hosted (OFL), still no third-party requests. */

@font-face {
  font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap;
  src: url(/fonts/barlow-condensed-800i.woff2) format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/barlow-condensed-700.woff2) format("woff2");
}
@font-face {
  font-family: "Rajdhani"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/rajdhani-600.woff2) format("woff2");
}
@font-face {
  font-family: "Rajdhani"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/rajdhani-700.woff2) format("woff2");
}

:root {
  --bg: #0a0616;
  --bg2: #120a24;
  --panel: rgba(28, 16, 52, 0.62);
  --line: rgba(190, 120, 255, 0.16);
  --text: #f3eefc;
  --dim: #a99cc8;
  --hot: #ff2d95;
  --hot2: #ff5fc8;
  --mint: #ff2d95;              /* styles.css's primary accent → hot pink */
  --cyan: #b04dff;
  --violet: #7b3cff;
  --amber: #ffd23f;
  --grad: linear-gradient(115deg, #ff2d95, #d03cff 50%, #7b3cff);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --ui: "Rajdhani", system-ui, sans-serif;
  --glow: 0 0 0 1px rgba(255, 45, 149, 0.55), 0 0 22px rgba(255, 45, 149, 0.35);
  --frame: 1px solid rgba(160, 110, 255, 0.28);
}

html { background: radial-gradient(120% 80% at 70% -10%, #2a0d4a 0%, var(--bg) 55%) fixed, var(--bg); }
.bg-grid { opacity: 0.18; }
#cursor-glow { display: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ================= type ================= */

h1, h2, h3, .section-head h1, .section-head h2, .detail-title, .banner-line {
  font-family: var(--display); font-style: italic; font-weight: 800;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.ghost-num { font-family: var(--display); font-style: italic; color: rgba(255, 45, 149, 0.12); }
.lede, .kicker, .chip, .tag, .pill, .btn { font-family: var(--ui); }

/* ================= header ================= */

header {
  padding: 0.7rem clamp(1rem, 3vw, 2.4rem);
  background: linear-gradient(180deg, rgba(10, 6, 22, 0.94), rgba(10, 6, 22, 0.78));
  border-bottom: 1px solid rgba(255, 45, 149, 0.22);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}
/* The padding shorthand above also resets the standalone-mode safe-area
   padding-top that styles.css sets, so repeat it here: installed on an iPhone
   the wordmark and the Menu button otherwise sit under the status bar. */
@media (display-mode: standalone) {
  header { padding-top: calc(0.7rem + env(safe-area-inset-top, 0px)); }
}
header nav { gap: clamp(0.4rem, 1.4vw, 1.4rem); }
header nav a {
  font-family: var(--ui); font-weight: 700; font-size: 1rem; letter-spacing: 0.06em;
  padding: 0 0.9rem; border-radius: 10px; color: #d9d0f0; white-space: nowrap;
}
header nav a::after { display: none; }
header nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
header nav a.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 45, 149, 0.28), rgba(255, 45, 149, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 45, 149, 0.55), 0 0 18px rgba(255, 45, 149, 0.35);
}
.nav-search { display: flex; flex: 0 1 300px; }
.nav-search input {
  width: 100%; min-height: 42px; padding: 0 1rem 0 2.5rem;
  font: 600 0.95rem var(--ui); color: var(--text);
  background: rgba(20, 12, 40, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23c9bde6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 0.9rem 50%;
  border: 1px solid rgba(190, 140, 255, 0.35); border-radius: 999px; outline: none;
}
.nav-search input:focus { border-color: var(--hot); box-shadow: 0 0 14px rgba(255, 45, 149, 0.35); }
.nav-search input::placeholder { color: #8f82ad; }
/* account.js rewrites this link's text, so the avatar is a pseudo-element. */
header nav a.nav-account::before {
  content: ""; width: 30px; height: 30px; margin-right: 0.55rem; flex-shrink: 0; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Ccircle cx='12' cy='9' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z'/%3E%3C/svg%3E") center / 20px no-repeat;
}
@media (max-width: 1180px) and (min-width: 821px) {
  .nav-search { flex-basis: 180px; }
  header nav a { padding: 0 0.55rem; font-size: 0.92rem; }
}
@media (max-width: 820px) {
  header nav { background: rgba(12, 7, 26, 0.98); border-bottom: 1px solid rgba(255, 45, 149, 0.25); }
  header nav a { border-radius: 0; padding: 0 1.4rem; }
  .nav-search { flex: none; padding: 0.6rem 1.2rem; }
}

/* ================= buttons, chips, cards (every page) ================= */

.btn { font-weight: 700; letter-spacing: 0.08em; border-radius: 8px; text-transform: uppercase; }
.btn.primary {
  background: linear-gradient(180deg, #ff3fa0, #e0157c); color: #fff; border-color: transparent;
  box-shadow: 0 0 22px rgba(255, 45, 149, 0.45);
}
.btn.primary:hover { box-shadow: 0 0 32px rgba(255, 45, 149, 0.7); }
.btn.ghost { border-color: rgba(190, 140, 255, 0.4); background: rgba(30, 16, 56, 0.55); }
.btn.ghost:hover { border-color: var(--hot); }
.card {
  background: linear-gradient(180deg, rgba(34, 20, 64, 0.75), rgba(16, 9, 32, 0.85));
  border: var(--frame); border-radius: 12px;
}
.card:hover { border-color: rgba(255, 45, 149, 0.7); box-shadow: 0 0 28px rgba(255, 45, 149, 0.28); }
.chip.active, .chip:hover { border-color: var(--hot); }
.pill.live { background: rgba(255, 45, 149, 0.16); color: var(--hot2); border-color: rgba(255, 45, 149, 0.5); }

footer { border-top: 1px solid rgba(255, 45, 149, 0.2); background: rgba(8, 4, 18, 0.7); }

/* ================= storefront ================= */

.storefront {
  display: grid; grid-template-columns: minmax(260px, 23vw) minmax(0, 1fr);
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
  padding: clamp(0.8rem, 1.4vw, 1.2rem) clamp(0.8rem, 2vw, 1.8rem) 2rem;
  max-width: 1880px; margin: 0 auto;
}

/* The mascot column: sticky, full height, fades into the page on its right. */
.s-stick { position: sticky; top: 76px; height: calc(100vh - 92px); min-height: 520px; }
.s-mascot {
  position: relative; display: block; height: 100%;
  border-radius: 16px; overflow: hidden; border: var(--frame);
  box-shadow: 0 0 40px rgba(255, 45, 149, 0.18);
}
.s-mascot img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 18%; }
.s-mascot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 6, 22, 0.85)),
              linear-gradient(90deg, rgba(10, 6, 22, 0.55), transparent 45%);
}
.s-neon {
  position: absolute; top: 108px; left: 1.4rem; z-index: 2; margin: 0; pointer-events: none;
  display: flex; flex-direction: column; transform: rotate(-9deg); transform-origin: left top;
  font: italic 800 clamp(1.5rem, 2.3vw, 2.4rem)/1.02 var(--display); text-transform: uppercase;
  color: #ffd8f0;
  text-shadow: 0 0 6px #ff2d95, 0 0 16px #ff2d95, 0 0 34px rgba(255, 45, 149, 0.7);
}
.s-neon span:nth-child(even) { margin-left: 1.4rem; }
.s-perks {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2;
  list-style: none; padding: 0.9rem 1rem; display: grid; gap: 0.55rem;
  background: rgba(14, 8, 30, 0.82); border: var(--frame); border-radius: 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 600 0.8rem/1.25 var(--ui); color: var(--dim);
}
.s-perks b { display: block; color: #fff; font-weight: 700; letter-spacing: 0.06em; font-size: 0.86rem; }

.s-main { min-width: 0; display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); align-content: start; }

/* --- the top band: carousel + play-free panel --- */
.s-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 22%); gap: clamp(0.8rem, 1.2vw, 1.2rem); }

.s-hero {
  position: relative; aspect-ratio: 16 / 8; min-height: 300px; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(160, 110, 255, 0.4); background: #0d0820;
  box-shadow: 0 0 34px rgba(123, 60, 255, 0.25);
}
.s-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0.7s; }
.s-slide.on { opacity: 1; visibility: visible; }
.s-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.03); transition: transform 7s linear; }
.s-slide.on img { transform: scale(1.0); }
.s-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 6, 22, 0.9) 0%, rgba(10, 6, 22, 0.45) 40%, transparent 62%),
              linear-gradient(0deg, rgba(10, 6, 22, 0.92) 0%, rgba(10, 6, 22, 0.5) 30%, transparent 55%);
}
.s-slide-copy {
  position: absolute; left: clamp(1rem, 2.4vw, 2.2rem); bottom: clamp(1.4rem, 3vw, 2.6rem); z-index: 1;
  max-width: min(46%, 440px); display: grid; gap: 0.8rem; justify-items: start;
}
.s-badge {
  position: absolute; top: -1rem; transform: translateY(-100%);
  padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--amber); color: #1b0f00;
  font: 700 0.8rem var(--ui); letter-spacing: 0.1em;
}
.s-slide-copy .s-badge { position: static; transform: none; }
.s-slide-line {
  margin: 0; font: 700 clamp(1rem, 1.5vw, 1.35rem)/1.2 var(--ui); letter-spacing: 0.05em;
  text-transform: uppercase; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.s-slide-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.s-btn {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.2rem; border-radius: 6px;
  font: 700 0.95rem var(--ui); letter-spacing: 0.08em; text-decoration: none; color: #fff; cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.s-btn.hot { background: linear-gradient(180deg, #ff3fa0, #e0157c); box-shadow: 0 0 20px rgba(255, 45, 149, 0.55); }
.s-btn.hot:hover { box-shadow: 0 0 30px rgba(255, 45, 149, 0.85); }
.s-btn.line { background: rgba(14, 8, 30, 0.6); border: 1px solid rgba(255, 255, 255, 0.35); }
.s-btn.line:hover { border-color: var(--hot); }
.s-btn.small { min-height: 36px; font-size: 0.8rem; padding: 0 0.9rem; }
.s-btn[hidden] { display: none; }
.s-dots { position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%); z-index: 2; display: flex; gap: 0.5rem; }
.s-dots button {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.35); border: 0; transition: background 0.2s, transform 0.2s;
}
.s-dots button[aria-selected="true"] { background: #fff; transform: scale(1.2); box-shadow: 0 0 10px #fff; }

/* the "deals" slot, honestly: play free + live counts */
.s-deal {
  position: relative; border-radius: 16px; overflow: hidden; padding: 1.3rem 1.2rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.35rem; justify-content: center;
  border: 1px solid rgba(255, 45, 149, 0.6); box-shadow: var(--glow);
  background:
    linear-gradient(160deg, transparent 0 48%, rgba(255, 45, 149, 0.85) 48% 60%, transparent 60%),
    linear-gradient(200deg, #3a0f5e, #120826 70%);
}
.s-deal::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(-20deg, transparent 0 14px, rgba(255, 255, 255, 0.05) 14px 16px);
}
.s-deal > * { position: relative; margin: 0; }
.s-deal-kicker { font: italic 800 1.2rem var(--display); text-transform: uppercase; color: #ffd8f0; }
.s-deal-title {
  font: italic 800 clamp(2.6rem, 4.4vw, 4.6rem)/0.9 var(--display); color: #fff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}
.s-deal-title em {
  font-style: inherit; color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 210, 63, 0.6), 0 4px 0 rgba(0, 0, 0, 0.35);
}
.s-deal-sub { font: 700 0.95rem var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: #ffe2f2; }
.s-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; margin: 0.8rem 0 0.6rem; }
.s-counts div {
  display: grid; justify-items: center; padding: 0.45rem 0.2rem; border-radius: 8px;
  background: rgba(10, 6, 22, 0.78); border: 1px solid rgba(255, 255, 255, 0.28);
}
.s-counts b { font: 700 1.6rem/1 var(--ui); color: #fff; }
.s-counts span { font: 700 0.62rem var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* --- rows of tiles --- */
.s-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.s-row-head h2 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); margin: 0; }
.s-row-head h2.hot { color: var(--hot); text-shadow: 0 0 14px rgba(255, 45, 149, 0.5); }
.s-row-head a { font: 700 0.95rem var(--ui); color: var(--hot2); text-decoration: none; letter-spacing: 0.04em; }
.s-row-head a:hover { color: #fff; }

.s-cards { display: grid; gap: clamp(0.6rem, 1vw, 0.9rem); }
.s-cards.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.s-cards.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.s-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  border-radius: 12px; overflow: hidden; border: var(--frame);
  background: linear-gradient(180deg, #1c1036, #120a24);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.s-card:hover, .s-card:focus-visible {
  transform: translateY(-4px); border-color: rgba(255, 45, 149, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 45, 149, 0.35);
}
.s-card-art {
  aspect-ratio: 16 / 11; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.s-cards.five .s-card-art { aspect-ratio: 16 / 9; }
.s-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.s-card:hover .s-card-art img { transform: scale(1.06); }
.s-card-art .glyph { font-size: 2.6rem; }
.s-card-title { margin: 0.5rem 0.7rem 0; font-size: 1.05rem; }
.s-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; padding: 0.55rem 0.65rem; margin-top: auto; }
.s-tag {
  padding: 0.12rem 0.5rem; border-radius: 4px; font: 600 0.74rem var(--ui); color: #d6cbef;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-price { font: 700 0.95rem var(--ui); color: #fff; letter-spacing: 0.04em; white-space: nowrap; }
.s-card:hover .s-price { color: var(--hot2); }
.s-card.soon .s-price { color: var(--amber); }

/* --- genre buttons --- */
.s-genres { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: clamp(0.5rem, 0.9vw, 0.8rem); }
.s-genres a {
  display: grid; justify-items: center; gap: 0.4rem; padding: 0.9rem 0.5rem 0.75rem;
  text-decoration: none; color: #e9e1fa; border-radius: 10px;
  font: 700 0.86rem var(--ui); letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(34, 20, 64, 0.85), rgba(16, 9, 32, 0.9)); border: var(--frame);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.s-genres a:hover, .s-genres a.on {
  color: #fff; border-color: var(--hot); box-shadow: 0 0 18px rgba(255, 45, 149, 0.4), inset 0 0 14px rgba(255, 45, 149, 0.18);
}
.s-genres a.on svg { color: var(--hot2); }

/* ================= favourites + library ================= */

.s-tile { position: relative; display: flex; min-width: 0; }
.s-tile > .s-card { flex: 1; min-width: 0; }
.fav {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 6, 22, 0.72); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.fav svg { fill: none; stroke: currentColor; stroke-width: 2; }
.fav:hover { border-color: var(--hot); transform: scale(1.08); }
.fav[aria-pressed="true"] { color: var(--hot); border-color: var(--hot); box-shadow: 0 0 14px rgba(255, 45, 149, 0.55); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.s-tile > .fav { position: absolute; top: 8px; right: 8px; z-index: 2; opacity: 0; }
.s-tile:hover > .fav, .s-tile > .fav:focus-visible, .s-tile > .fav[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .s-tile > .fav { opacity: 1; } }
.s-badge-corner {
  position: absolute; top: 8px; left: 8px; z-index: 1; max-width: calc(100% - 60px);
  padding: 0.15rem 0.55rem; border-radius: 4px; background: var(--hot); color: #fff;
  font: 700 0.72rem var(--ui); letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.5);
}
.detail-title-row { display: flex; align-items: center; gap: 1rem; }
.detail-title-row .fav { width: 46px; height: 46px; flex-shrink: 0; }

.library-page { display: grid; gap: 1.6rem; }
.lib-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; }
#library { display: grid; gap: 1.8rem; }
.lib-n {
  display: inline-grid; place-items: center; min-width: 1.6em; padding: 0 0.4em; margin-left: 0.3rem;
  font: 700 0.9rem/1.6 var(--ui); font-style: normal; vertical-align: middle;
  color: #fff; background: rgba(255, 45, 149, 0.25); border: 1px solid rgba(255, 45, 149, 0.6); border-radius: 999px;
}
.lib-empty {
  padding: 1.2rem 1.4rem; border-radius: 12px; border: 1px dashed rgba(190, 140, 255, 0.35);
  color: var(--dim); font: 600 1rem var(--ui); background: rgba(20, 12, 40, 0.5);
}
.lib-heart svg { width: 1em; height: 1em; vertical-align: -0.12em; fill: var(--hot); }
.lib-signin {
  display: grid; gap: 1rem; justify-items: start; padding: clamp(1.4rem, 4vw, 3rem); border-radius: 16px;
  border: 1px solid rgba(255, 45, 149, 0.6); box-shadow: var(--glow);
  background: linear-gradient(200deg, #3a0f5e, #120826 70%);
}
.lib-signin p:not(.s-deal-title) { margin: 0; max-width: 46ch; color: #e9def8; font: 600 1.1rem var(--ui); }
#library .lib-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
#library .lib-cards > .s-tile { display: flex; }

/* ================= responsive ================= */

@media (max-width: 1400px) {
  .s-cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-cards.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-cards.five > :nth-child(n + 4) { display: none; }
}
@media (max-width: 1100px) {
  .storefront { grid-template-columns: 1fr; }
  .s-side { order: 2; }
  .s-stick { position: relative; top: 0; height: auto; min-height: 0; }
  .s-mascot { aspect-ratio: 4 / 5; max-height: 640px; }
  .s-top { grid-template-columns: 1fr; }
  .s-hero { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .s-cards.six, .s-cards.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-cards.five > :nth-child(n + 4) { display: flex; }
  .s-hero { aspect-ratio: 4 / 5; }
  .s-slide img { object-position: 60% center; }
  .s-slide::after { background: linear-gradient(0deg, rgba(10, 6, 22, 0.95) 5%, transparent 65%); }
  .s-slide-copy { max-width: none; right: 1rem; bottom: 2.4rem; }
  .s-counts b { font-size: 1.3rem; }
  .s-genres { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .s-slide, .s-slide img, .s-card, .s-card-art img { transition: none; }
}

/* ================= asset store (/assets) =================
   The store has its own accent — electric teal against the site's pink — so a
   model shelf reads as a different kind of place from the game storefront.
   Same bones as .storefront (mascot column, rows of framed tiles); the
   mascot is the store's own (art/assets-mascot.webp, gpt-image-2, 2026-10-11). */

.st-page {
  --st: #19e6c1; --st2: #8ffbe8; --st-dim: rgba(25, 230, 193, 0.18);
  --st-glow: 0 0 0 1px rgba(25, 230, 193, 0.5), 0 0 22px rgba(25, 230, 193, 0.3);
  display: grid; grid-template-columns: minmax(240px, 21vw) minmax(0, 1fr);
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
  padding: clamp(0.8rem, 1.4vw, 1.2rem) clamp(0.8rem, 2vw, 1.8rem) 2rem;
  max-width: 1880px; margin: 0 auto;
}
.st-stick { position: sticky; top: 76px; height: calc(100vh - 92px); min-height: 520px; }
.st-mascot {
  position: relative; display: block; height: 100%; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(25, 230, 193, 0.35); box-shadow: 0 0 40px rgba(25, 230, 193, 0.16);
}
.st-mascot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.st-mascot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 18, 22, 0.88)),
              linear-gradient(90deg, rgba(6, 18, 22, 0.5), transparent 45%);
}
.st-neon {
  position: absolute; top: 108px; left: 1.4rem; z-index: 2; margin: 0; pointer-events: none;
  display: flex; flex-direction: column; transform: rotate(-9deg); transform-origin: left top;
  font: italic 800 clamp(1.5rem, 2.3vw, 2.4rem)/1.02 var(--display); text-transform: uppercase; color: #dffff8;
  text-shadow: 0 0 6px var(--st), 0 0 16px var(--st), 0 0 34px rgba(25, 230, 193, 0.7);
}
.st-neon span:nth-child(even) { margin-left: 1.4rem; }
.st-perks { border-color: rgba(25, 230, 193, 0.3); }
.st-perks b { color: var(--st2); }

.st-main { min-width: 0; display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); align-content: start; }
.st-head {
  position: relative; overflow: hidden; padding: clamp(1.2rem, 2.4vw, 2.2rem) clamp(1.2rem, 2.4vw, 2.4rem);
  border-radius: 16px; border: 1px solid rgba(25, 230, 193, 0.5); box-shadow: var(--st-glow);
  background:
    linear-gradient(160deg, transparent 0 58%, rgba(25, 230, 193, 0.7) 58% 66%, transparent 66%),
    linear-gradient(200deg, #0f3a3a, #0a1a24 70%);
}
.st-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.3;
  background: repeating-linear-gradient(-20deg, transparent 0 14px, rgba(255, 255, 255, 0.05) 14px 16px);
}
.st-head > * { position: relative; margin: 0; }
.st-head h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 0.92; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.st-head h1 em { font-style: inherit; color: var(--st); text-shadow: 0 0 18px rgba(25, 230, 193, 0.6), 0 4px 0 rgba(0, 0, 0, 0.35); }
.st-head .lede { margin-top: 0.8rem; max-width: 62ch; color: #d9fff7; font: 600 1.05rem/1.5 var(--ui); }
.st-kicker { font: 700 0.85rem var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--st2); margin-bottom: 0.4rem; }
.st-alpha {
  display: inline-block; padding: 0.15rem 0.6rem; margin-right: 0.5rem; border-radius: 999px;
  background: var(--amber); color: #1b0f00; font-size: 0.75rem; letter-spacing: 0.1em;
}

.st-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.st-search { flex: 1 1 220px; max-width: 340px; }
.st-search input:focus { border-color: var(--st); box-shadow: 0 0 14px rgba(25, 230, 193, 0.35); }
.st-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.st-filters:empty { display: none; }
.st-filters .chip { text-transform: capitalize; }
.st-filters .chip.on { border-color: var(--st); color: #fff; box-shadow: 0 0 14px rgba(25, 230, 193, 0.35); }

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(0.6rem, 1vw, 0.9rem); }
.st-grid .lib-empty { grid-column: 1 / -1; }
.st-item {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(25, 230, 193, 0.22);
  background: linear-gradient(180deg, #0f2430, #0a1620);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.st-item:hover, .st-item:focus-visible {
  transform: translateY(-4px); border-color: rgba(25, 230, 193, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(25, 230, 193, 0.3);
}
.st-thumb {
  aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.04) 75%) 0 0 / 24px 24px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.04) 75%) 12px 12px / 24px 24px,
    radial-gradient(circle at 50% 40%, #16343f, #0a1620 70%);
}
.st-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s var(--ease); }
.st-item:hover .st-thumb img { transform: scale(1.06); }
.st-thumb .glyph, .st-detail-art .glyph { font-size: 3rem; color: var(--st-dim); }
.st-item-body { display: grid; gap: 0.3rem; padding: 0.6rem 0.7rem 0.7rem; }
.st-item-body strong { font: 700 1rem/1.2 var(--ui); color: #fff; }
.st-item-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.st-price {
  position: absolute; top: 8px; right: 8px; z-index: 1; padding: 0.2rem 0.6rem; border-radius: 6px;
  font: 700 0.85rem var(--ui); letter-spacing: 0.06em; color: #04120f; background: var(--st);
  box-shadow: 0 0 12px rgba(25, 230, 193, 0.5);
}
.st-price.free { background: var(--amber); color: #1b0f00; box-shadow: 0 0 12px rgba(255, 210, 63, 0.5); }
.st-price.owned { background: #fff; color: #04120f; box-shadow: 0 0 12px rgba(255, 255, 255, 0.5); }
.st-price.big { position: static; font-size: 1.3rem; padding: 0.3rem 0.8rem; }
.st-foot { max-width: 70ch; }
#library .lib-assets { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* --- the detail dialog --- */
.st-dialog {
  width: min(960px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; margin: auto;
  border: 1px solid rgba(25, 230, 193, 0.5); border-radius: 16px; color: var(--text);
  background: linear-gradient(180deg, #10283a, #0a1620); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), var(--st-glow);
  overflow: auto;
}
.st-dialog::backdrop { background: rgba(4, 6, 14, 0.78); backdrop-filter: blur(4px); }
.st-close-form { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; margin: 0; }
.st-close {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(10, 6, 22, 0.72); border: 1px solid rgba(255, 255, 255, 0.3); font-size: 1rem;
}
.st-close:hover { border-color: var(--st); }
.st-detail { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
.st-detail-art { position: relative; aspect-ratio: 1; min-height: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #16343f, #0a1620 70%); }
.st-detail-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.st-detail-body { padding: clamp(1.2rem, 2.4vw, 2rem); display: grid; gap: 0.8rem; align-content: start; }
.st-detail-body h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.st-desc { margin: 0; color: #d9fff7; font: 600 1rem/1.5 var(--ui); }
.st-specs { margin: 0; display: grid; gap: 0.35rem; }
.st-specs div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.6rem; font: 600 0.9rem var(--ui); }
.st-specs dt { color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; align-self: center; }
.st-specs dd { margin: 0; color: #fff; }
.st-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.st-buy { display: grid; gap: 0.7rem; justify-items: start; padding-top: 0.6rem; border-top: 1px solid rgba(25, 230, 193, 0.2); }
.st-buy .s-btn.hot { background: linear-gradient(180deg, #2cf0cf, #0fbfa0); color: #04120f; box-shadow: 0 0 20px rgba(25, 230, 193, 0.55); }
.st-buy .s-btn.hot:hover { box-shadow: 0 0 30px rgba(25, 230, 193, 0.85); }
.st-waiver { max-width: 46ch; }
.st-msg:empty { display: none; }

@media (max-width: 1100px) {
  .st-page { grid-template-columns: 1fr; }
  .st-side { order: 2; }
  .st-stick { position: relative; top: 0; height: auto; min-height: 0; }
  .st-mascot { aspect-ratio: 4 / 5; max-height: 640px; }
}
@media (max-width: 720px) {
  .st-detail { grid-template-columns: 1fr; }
  .st-detail-art { aspect-ratio: 16 / 10; max-height: 46vh; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-specs div { grid-template-columns: 5.5rem 1fr; }
}
@media (prefers-reduced-motion: reduce) { .st-item, .st-thumb img { transition: none; } }
