/* ==========================================================================
   Static Cheats — game catalog
   ========================================================================== */
.sc-catalog {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  color: #f4f8ff;
  border: 0;
}

/* One dark canvas (the old catalog/footer fill). Stars stay behind it,
   so the catalog looks like the original navy — not a starfield overlay. */
.sc-site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 3%, rgba(47, 128, 255, 0.26), transparent 31rem),
    radial-gradient(circle at 88% 20%, rgba(30, 102, 235, 0.18), transparent 28rem),
    radial-gradient(circle at 50% 82%, rgba(29, 78, 216, 0.13), transparent 36rem),
    linear-gradient(90deg, rgba(40, 90, 190, 0.16) 0%, rgba(40, 90, 190, 0.06) 18%, transparent 36%, transparent 64%, rgba(40, 90, 190, 0.06) 82%, rgba(40, 90, 190, 0.16) 100%),
    linear-gradient(145deg, #030815 0%, #071225 48%, #040b1a 100%);
}
.sc-site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(105, 166, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 166, 255, 0.038) 1px, transparent 1px),
    linear-gradient(135deg, transparent 48%, rgba(47, 128, 255, 0.024) 49%, rgba(47, 128, 255, 0.024) 51%, transparent 52%);
  background-size: 54px 54px, 54px 54px, 128px 128px;
}
.sc-site-bg::after {
  content: none;
}

body section.sc-catalog.component.sc-catalog,
body section.sc-canvas.component.sc-canvas,
body section.mydrid-why-choose.component.mydrid-why-choose,
body footer.footer.component.footer,
body:not(.sc-tpl-shop) .flex-wrapper .components {
  background: transparent !important;
}
body section.sc-canvas.component.sc-canvas,
body section.mydrid-why-choose.component.mydrid-why-choose,
body footer.footer.component.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.sc-catalog { border-bottom: 0; }
body footer.footer.component.footer { border-top: 1px solid rgba(255, 255, 255, 0.02) !important; }
.sc-canvas--page { min-height: calc(100svh - var(--sc-header-h, 86px)); }
body:not(.sc-tpl-shop) .flex-wrapper .components {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--sc-header-h, 86px));
}
body:not(.sc-tpl-shop) .flex-wrapper .components::before,
.sc-catalog::before,
.sc-canvas::before,
.mydrid-why-choose::before,
footer.footer::before {
  content: none !important;
}
.sc-canvas--page .container.py-5-nav { position: relative; z-index: 1; }
@media (max-width: 991px) {
  .sc-site-bg {
    background:
      linear-gradient(90deg, rgba(40, 90, 190, 0.16) 0%, rgba(40, 90, 190, 0.06) 18%, transparent 36%, transparent 64%, rgba(40, 90, 190, 0.06) 82%, rgba(40, 90, 190, 0.16) 100%),
      #050e22;
  }
  .sc-site-bg::before { opacity: 0.1; }
}
.sc-catalog__inner {
  width: min(calc(100% - 2.5rem), 1240px);
  margin: 0 auto;
}

/* Header */
.sc-catalog__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.sc-catalog__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--sc-accent-rgb), 0.95);
}
.sc-catalog__eyebrow i { display: block; width: 22px; height: 1px; background: rgba(var(--sc-accent-rgb), 0.7); }
.sc-catalog__eyebrow b { color: rgba(255, 255, 255, 0.35); font-weight: 400; }
.sc-catalog__title {
  margin: 0.7rem 0 0.8rem;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #fff;
}
.sc-catalog__sub {
  margin: 0 auto;
  max-width: 520px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(214, 226, 245, 0.66);
}
.sc-catalog__search {
  position: relative;
  display: flex;
  max-width: 520px;
  margin: 1.5rem auto 0;
}
.sc-catalog__search input {
  flex: 1;
  height: 50px;
  padding: 0 3.4rem 0 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 14, 30, 0.75);
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.sc-catalog__search input::placeholder { color: rgba(214, 226, 245, 0.42); }
.sc-catalog__search input:focus {
  border-color: rgba(var(--sc-accent-rgb), 0.6);
  box-shadow: 0 0 0 4px rgba(var(--sc-accent-rgb), 0.14);
}
.sc-catalog__search button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(var(--sc-accent-rgb), 0.16);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.sc-catalog__search button:hover { background: rgba(var(--sc-accent-rgb), 0.32); }

/* Layout */
.sc-catalog__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Filters */
.sc-filters {
  position: sticky;
  top: calc(var(--sc-header-h, 86px) + 1rem);
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(10, 18, 38, 0.9), rgba(6, 12, 28, 0.9));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.sc-filters__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
}
.sc-filters__title i { color: rgba(var(--sc-accent-rgb), 0.95); font-size: 0.85rem; }
.sc-filters__label {
  margin: 1.1rem 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(214, 226, 245, 0.42);
}
.sc-filters__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.sc-filters__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(228, 236, 250, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.sc-filters__item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  flex: none;
}
.sc-filters__item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-filters__item b {
  min-width: 26px;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  color: rgba(214, 226, 245, 0.7);
}
.sc-filters__item:hover { border-color: rgba(var(--sc-accent-rgb), 0.35); color: #fff; }
.sc-filters__item.is-active {
  border-color: rgba(var(--sc-accent-rgb), 0.7);
  background: rgba(var(--sc-accent-rgb), 0.12);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--sc-accent-rgb), 0.08);
}
.sc-filters__item.is-active i { background: var(--sc-accent); box-shadow: 0 0 10px rgba(var(--sc-accent-rgb), 0.9); }
.sc-filters__item.is-active b { background: rgba(var(--sc-accent-rgb), 0.25); color: #fff; }
.sc-filters__sort {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0.95rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(120% 90% at 100% 0%, rgba(var(--sc-accent-rgb), 0.18), transparent 60%),
    rgba(5, 11, 26, 0.9);
  overflow: hidden;
}
.sc-filters__sort-idx { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.2em; color: rgba(var(--sc-accent-rgb), 0.95); }
.sc-filters__sort-val { font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; }
.sc-filters__sort-hint { font-size: 0.66rem; color: rgba(214, 226, 245, 0.5); }

/* Game cards */
.sc-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  width: 100%;
  max-width: 1040px;
  justify-self: center; /* (auto margins would shrink a grid item to its content) */
}
.sc-gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4.1;
  border-radius: 20px;
  border: 1px solid rgba(var(--sc-accent-rgb), 0.34);
  background: #071022;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35),
    0 0 26px rgba(var(--sc-accent-rgb), 0.22),
    inset 0 0 22px rgba(var(--sc-accent-rgb), 0.08);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.sc-gcard:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--sc-accent-rgb), 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--sc-accent-rgb), 0.2), 0 0 40px rgba(var(--sc-accent-rgb), 0.15);
}
.sc-gcard.is-hidden { display: none; }
.sc-gcard__art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  --gc: var(--sc-accent-rgb);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(var(--gc), 0.22), transparent 70%),
    radial-gradient(90% 45% at 50% -10%, rgba(var(--sc-accent-rgb), 0.2), transparent 58%),
    linear-gradient(180deg, #0a1734 0%, #071022 100%);
}
.sc-gcard__art--rust { --gc: 205, 74, 44; }
.sc-gcard__art--fortnite, .sc-gcard__art--fortnight { --gc: 64, 176, 255; }
.sc-gcard__art--apex { --gc: 218, 56, 50; }
.sc-gcard__art--valorant { --gc: 255, 70, 85; }
.sc-gcard__grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 20%, transparent 90%);
  mask-image: radial-gradient(80% 70% at 50% 45%, #000 20%, transparent 90%);
}
.sc-gcard__glow {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(var(--gc), 0.4);
  filter: blur(40px);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sc-gcard:hover .sc-gcard__glow { opacity: 1; transform: scale(1.15); }
.sc-gcard__art img {
  position: relative;
  width: 44%;
  height: auto;
  border-radius: 24%;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotate(-6deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sc-gcard:hover .sc-gcard__art img { transform: rotate(0deg) scale(1.06); }
.sc-gcard__tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 10, 24, 0.7);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--sc-accent-rgb), 0.98);
}
.sc-gcard__body {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(7, 16, 34, 0) 0%, rgba(5, 11, 26, 0.95) 30%);
  margin-top: -2.5rem;
}
.sc-gcard__count {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(214, 226, 245, 0.5);
}
.sc-gcard__name {
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}
.sc-gcard__price {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(214, 226, 245, 0.6);
}
.sc-gcard__price i { font-size: 0.7rem; color: rgba(255, 255, 255, 0.35); }
.sc-gcard__price b, .sc-gcard__price .sc-gcard__soon {
  font-size: 1.05rem;
  font-weight: 800;
  color: #4ade80;
  text-shadow: 0 0 14px rgba(74, 222, 128, 0.45);
}
.sc-gcard__price .sc-gcard__soon { color: rgba(var(--sc-accent-rgb), 0.98); text-shadow: 0 0 14px rgba(var(--sc-accent-rgb), 0.45); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sc-games__empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(214, 226, 245, 0.55);
}

/* Responsive */
@media (max-width: 1100px) {
  .sc-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .sc-catalog__body { grid-template-columns: 1fr; }
  .sc-filters { position: static; }
  .sc-filters__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-filters__sort { display: none; }
}
@media (max-width: 520px) {
  .sc-games { grid-template-columns: 1fr; }
  .sc-gcard { aspect-ratio: 4 / 4.2; }
  .sc-filters__list { grid-template-columns: 1fr; }
}