/* Store page — CosmoCheats-style store layout */
.store-page {
  --pink: #e040fb;
  --pink-hot: #f472b6;
  --pink-dim: rgba(224, 64, 251, 0.35);
  --hero-h: min(520px, 72vh);
  background: #08080e;
}

/* ---- Store hero (catalog banner, not home gameplay video) ---- */
.store-hero {
  position: relative;
  min-height: var(--hero-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: -1px;
}

.store-hero__bg {
  position: absolute;
  inset: 0;
  background: #0a0812 url("../assets/store-hero-v1.jpg") center center / cover no-repeat;
  pointer-events: none;
}

.store-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 14, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.store-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px 48px;
  width: 100%;
}

.store-hero__kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink-hot);
  font-weight: 700;
  margin-bottom: 12px;
}

.store-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 0.95;
}

.store-hero__title-line {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.store-hero__title-accent {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.store-hero__browse {
  margin-top: 10px;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.store-hero__browse-accent {
  color: var(--pink-hot);
}

.store-search {
  max-width: 520px;
  margin: 26px auto 0;
  position: relative;
}

.store-search input {
  width: 100%;
  padding: 16px 22px 16px 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 28, 0.92);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.store-search input::placeholder {
  color: rgba(152, 160, 179, 0.85);
}

.store-search input:focus {
  border-color: var(--pink-dim);
  box-shadow: 0 0 0 3px rgba(224, 64, 251, 0.18);
}

.store-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.55;
  pointer-events: none;
}

.store-stat-card {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 840px;
  margin: 28px auto 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #12121c;
  overflow: hidden;
}

.store-stat-card__cell {
  flex: 1 1 200px;
  padding: 16px 20px;
  text-align: center;
}

.store-stat-card__cell + .store-stat-card__cell {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.store-stat-card__num {
  display: block;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.store-stat-card__num--green {
  color: var(--accent-2);
}

.store-stat-card__num--pink {
  color: var(--pink);
}

.store-stat-card__lbl {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* ---- Feature strip ---- */
.store-strip {
  position: relative;
  z-index: 4;
  margin-top: -8px;
  padding-bottom: 8px;
}

.store-strip__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-strip__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 64, 251, 0.35), transparent);
}

.store-strip__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.store-strip__chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(224, 64, 251, 0.25);
  background: rgba(14, 14, 22, 0.9);
  color: #c4cad8;
}

/* ---- Catalog layout ---- */
.store-catalog {
  padding: 24px 0 64px;
  position: relative;
  z-index: 3;
}

.store-catalog__layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.store-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--cc-top-h) + var(--cc-nav-h, 68px) + 16px);
}

.store-panel {
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 22, 0.95);
}

.store-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.store-panel__head h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-panel__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-panel__stats li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.store-panel__stats li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.store-panel__stat-num {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.store-panel__stat-num--green {
  color: var(--accent-2);
}

.store-panel__stat-num--pink {
  color: var(--pink);
}

.store-panel__stat-lbl {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.store-panel__hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.store-panel__hint a {
  color: var(--pink-hot);
  font-weight: 700;
}

.store-panel--members {
  overflow: hidden;
}

.store-members {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  overflow: hidden;
}

.store-members__track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: store-members-scroll 45s linear infinite;
}

.store-members__tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(224, 64, 251, 0.08);
  border: 1px solid rgba(224, 64, 251, 0.2);
  color: #d8dce8;
  white-space: nowrap;
}

@keyframes store-members-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.store-catalog__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.store-catalog__head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.store-catalog__sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.store-catalog__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 64, 251, 0.12);
  border: 1px solid var(--pink-dim);
  font-size: 16px;
  flex-shrink: 0;
}

.store-catalog__icon--lg {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.store-catalog__empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 15px;
}

.store-catalog__empty.is-hidden {
  display: none;
}

.store-cta-section {
  padding-top: 0;
}

/* ---- Tiles ---- */
.store-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(224, 64, 251, 0.22);
  background: #120818;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.store-tile--art {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.store-tile--fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #4a2088, #1a0a28 50%, #0e1018);
}

.store-tile--fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 14, 0.42);
  z-index: 1;
  opacity: 0.85;
}

.store-tile--art::before,
.store-tile--art::after {
  content: none;
}

.store-tile:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(224, 64, 251, 0.6);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(224, 64, 251, 0.15);
}

.store-tile--art:hover {
  filter: brightness(1.06);
}

.store-tile__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  pointer-events: none;
}

.store-tile__brand {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 4px;
}

.store-tile__title {
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.store-tile__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 210, 160, 0.18);
  color: var(--accent-2);
  border: 1px solid rgba(0, 210, 160, 0.4);
}

.store-tile__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.store-tile:hover .store-tile__shine {
  opacity: 1;
}

.store-tile.is-hidden {
  display: none;
}

.tile-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .store-catalog__layout {
    grid-template-columns: 1fr;
  }

  .store-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .store-panel {
    flex: 1 1 280px;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .store-stat-card__cell + .store-stat-card__cell {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .store-aside {
    flex-direction: column;
  }

  .store-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .store-tile {
    aspect-ratio: 16 / 9;
  }
}
