/* Game Store showcase - reference-aligned desktop and mobile layout */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.store-showcase {
  --store-line: rgba(79,111,148,.42);
  --store-line-soft: rgba(83,113,147,.22);
  width: 100%;
  min-width: 0;
  color: #d8e0ea;
}

body[data-route="store"] #content-inner {
  width: 100%;
  max-width: none;
}

.store-showcase-stage {
  min-width: 0;
  overflow: hidden;
}

.store-kpi-grid {
  display: grid;
  grid-template-columns: 1.18fr 1.08fr .92fr .92fr .92fr;
  gap: 10px;
  min-width: 0;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.store-kpi-grid::-webkit-scrollbar { display: none; }

.store-kpi-card {
  position: relative;
  min-width: 0;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 13px 14px;
  background: #091321;
  border: 1px solid var(--store-line);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025),0 10px 24px rgba(0,0,0,.20);
}

.store-kpi-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(35,136,255,.65);
}

.store-kpi-card > div:first-child { min-width: 0; }
.store-kpi-label {
  display: block;
  overflow: hidden;
  color: #8998aa;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-kpi-card strong {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: #f5f7fa;
  font: 850 22px/1.1 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-kpi-card small {
  display: block;
  margin-top: 6px;
  color: #68798e;
  font-size: 9px;
  white-space: nowrap;
}

.store-kpi-value { border-color: rgba(232,174,53,.42); }
.store-kpi-value::before { background: var(--pe-gold); }
.store-kpi-value strong { color: var(--pe-gold-bright); }
.store-kpi-volume strong { color: #50a8ff; }
.store-kpi-gain { border-color: rgba(55,208,143,.30); }
.store-kpi-gain::before { background: var(--pe-green); }
.store-kpi-gain .store-kpi-change { color: var(--pe-green); }
.store-kpi-loss { border-color: rgba(255,93,104,.30); }
.store-kpi-loss::before { background: var(--pe-red); }
.store-kpi-loss .store-kpi-change { color: var(--pe-red); }
.store-kpi-popular .store-kpi-change { color: #7cbcff; }

.store-kpi-spark {
  width: 76px;
  height: 45px;
  flex: 0 0 76px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(232,174,53,.28);
}

.store-kpi-spark i {
  width: 6px;
  height: 32%;
  display: block;
  background: #2c82d7;
  border-radius: 1px 1px 0 0;
  box-shadow: 0 0 8px rgba(35,136,255,.24);
}
.store-kpi-value .store-kpi-spark i { background: #dba73e; box-shadow: 0 0 8px rgba(232,174,53,.23); }
.store-kpi-spark i:nth-child(2) { height: 55%; }
.store-kpi-spark i:nth-child(3) { height: 42%; }
.store-kpi-spark i:nth-child(4) { height: 76%; }
.store-kpi-spark i:nth-child(5) { height: 64%; }
.store-kpi-spark i:nth-child(6) { height: 92%; }
.store-kpi-spark i:nth-child(7) { height: 82%; }

.store-kpi-game strong { font-family: inherit; font-size: 16px; }
.store-kpi-thumb {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(100,137,176,.42);
  border-radius: 4px;
  color: #fff;
  font-size: 24px;
}
.store-kpi-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.store-kpi-thumb .game-cover-symbol { font-size: 25px; }

.store-showcase-hero {
  position: relative;
  height: clamp(220px,20.5vw,320px);
  overflow: hidden;
  background-color: #030914;
  background-image: url('../assets/store-hero-panorama.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 50%;
  border: 1px solid rgba(49,79,113,.46);
  border-radius: 5px 5px 0 0;
  box-shadow: inset 0 0 50px rgba(3,10,19,.20),0 18px 40px rgba(0,0,0,.24);
}

.store-showcase-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(transparent,rgba(3,9,17,.72));
}

.store-command-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(520px,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #07111d;
  border: 1px solid var(--store-line);
  border-top: 1px solid var(--store-line);
  border-radius: 5px;
  box-shadow: 0 14px 32px rgba(0,0,0,.23);
}

.store-showcase .store-filters {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(190px,1fr) 112px 112px 112px 74px;
  gap: 7px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.store-showcase .store-filters .search-box { min-width: 0; max-width: none; }
.store-showcase .store-filters input,
.store-showcase .store-filters select,
.store-filter-reset {
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  border: 1px solid #263d56;
  border-radius: 4px;
  background: #050e19;
  color: #b8c4d2;
  font-size: 11px;
}
.store-showcase .store-filters input { padding-left: 36px; }
.store-showcase .store-filters input::placeholder { color: #65758a; }
.store-showcase .store-filters select { min-width: 0; padding: 0 25px 0 10px; }
.store-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.store-filter-reset:hover { border-color: var(--pe-gold); color: var(--pe-gold-bright); }
.store-filter-reset span:first-child { color: var(--pe-gold); font-size: 16px; }

.store-trust-bar {
  display: grid;
  grid-template-columns: repeat(4,84px);
  gap: 5px;
}
.store-trust-item {
  min-width: 0;
  height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  grid-template-rows: 20px 14px;
  align-items: center;
  padding: 3px 6px;
  border-left: 1px solid rgba(232,174,53,.30);
}
.store-trust-item > span {
  grid-row: 1 / 3;
  color: var(--pe-gold);
  font-size: 16px;
}
.store-trust-item b,
.store-trust-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-trust-item b { color: #dfe6ee; font-size: 10px; }
.store-trust-item small { color: #66768a; font-size: 8px; }

.store-catalog-section {
  min-width: 0;
  padding: 14px 0 8px;
}

.store-showcase-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(8,minmax(0,1fr));
  gap: 10px;
  padding: 1px 1px 8px;
}

.store-game-card {
  width: 100%;
  min-width: 0;
  background: #08131f;
  border-color: #263b52;
  border-top-color: rgba(35,136,255,.54);
  border-radius: 5px;
}
.store-game-card:hover,
.store-game-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232,174,53,.62);
  box-shadow: 0 14px 30px rgba(0,0,0,.38),0 0 16px rgba(35,136,255,.08);
}
.store-game-card .game-cover { height: 132px; }
.store-game-card .game-cover::after { height: 42%; }
.store-game-badge {
  position: absolute;
  z-index: 3;
  left: 8px;
  top: 8px;
  padding: 3px 7px;
  background: #dca82f;
  border: 1px solid #f6cb69;
  border-radius: 3px;
  color: #111722;
  font-size: 9px;
  font-weight: 900;
}
.store-game-card .game-info { min-height: 126px; padding: 11px 12px 12px; }
.store-game-title-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.store-game-title-row .game-name { flex: 1; min-width: 0; margin: 0; }
.store-game-title-row > span {
  flex: 0 0 auto;
  color: #7b899a;
  font-size: 9px;
  white-space: nowrap;
}
.store-game-title-row > span b { color: #aab5c2; font-weight: 700; }
.store-game-card .game-meta {
  min-height: 20px;
  margin: 7px 0 12px;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}
.store-game-card .game-meta .genre-tag {
  flex: 0 0 auto;
  max-width: 90px;
  overflow: hidden;
  padding: 2px 5px;
  color: #75869a;
  background: #0d1926;
  border-color: #263a50;
  text-overflow: ellipsis;
}
.store-game-card .game-footer { align-items: baseline; }
.store-game-card .game-price { font-size: 18px; }
.store-game-card .game-rating { color: #e9b33b; font-size: 11px; }
.store-review-count {
  min-height: 14px;
  margin-top: 4px;
  color: #68778a;
  font-size: 9px;
  text-align: right;
}
.store-empty { margin-top: 0; border: 1px solid var(--store-line-soft); background: rgba(5,13,22,.78); }

.store-showcase > .creative-value-section { margin-top: 22px; }

@media (max-width: 1320px) {
  .store-kpi-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(205px,1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }
  .store-showcase-grid {
    grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  }
}

@media (max-width: 1050px) {
  .store-command-bar { grid-template-columns: 1fr; }
  .store-trust-bar { grid-template-columns: repeat(4,minmax(84px,1fr)); }
}

@media (max-width: 900px) {
  .store-showcase-hero {
    height: 220px;
    background-position: center 50%;
  }
  .store-showcase .store-filters { grid-template-columns: minmax(180px,1fr) repeat(3,104px) 70px; }
}

@media (max-width: 760px) {
  body[data-route="store"] #content-inner { padding-inline: 9px; }
  .store-kpi-grid {
    grid-auto-columns: 188px;
    gap: 7px;
    margin-bottom: 7px;
    scroll-snap-type: x proximity;
  }
  .store-kpi-card { height: 88px; padding: 10px 11px; scroll-snap-align: start; }
  .store-kpi-card strong { margin-top: 4px; font-size: 17px; }
  .store-kpi-card small { margin-top: 4px; }
  .store-kpi-game strong { font-size: 14px; }
  .store-kpi-thumb { width: 54px; height: 54px; flex-basis: 54px; }
  .store-kpi-spark { width: 58px; flex-basis: 58px; gap: 3px; }
  .store-kpi-spark i { width: 5px; }
  .store-showcase-hero {
    height: 168px;
    background-position: center 50%;
  }
  .store-command-bar { gap: 9px; padding: 8px; }
  .store-showcase .store-filters {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
  }
  .store-showcase .store-filters .search-box { grid-column: 1 / -1; }
  .store-filter-reset { grid-column: 2; }
  .store-trust-bar {
    grid-template-columns: repeat(4,98px);
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
  }
  .store-trust-bar::-webkit-scrollbar { display: none; }
  .store-trust-item { width: 98px; }
  .store-catalog-section { padding-top: 9px; }
  .store-showcase-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-auto-columns: auto;
    gap: 7px;
    overflow: visible;
    padding: 0;
  }
  .store-game-card .game-cover { height: 102px; }
  .store-game-card .game-info { min-height: 116px; padding: 9px; }
  .store-game-title-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .store-game-title-row .game-name { width: 100%; font-size: 12px; }
  .store-game-card .game-meta { margin: 6px 0 9px; }
  .store-game-card .game-meta .genre-tag:nth-child(n+3) { display: none; }
  .store-game-card .game-price { font-size: 15px; }
  .store-game-card .game-rating { font-size: 9px; }
  .store-review-count { font-size: 8px; }
}

@media (max-width: 390px) {
  .store-showcase-hero { height: 150px; background-position: center 50%; }
  .store-game-card .game-cover { height: 90px; }
  .store-game-card .game-info { padding: 8px; }
  .store-game-card .game-footer { align-items: flex-start; flex-direction: column; gap: 3px; }
  .store-review-count { text-align: left; }
}
