/* games.moorkyz.com — Minimalist Game Catalog Grid
 * Palette: warm white (#faf8f6), champagne amber (#f5d3b0), orchid violet (#c99eff), royal purple (#8c6eff), moorkyz blue (#64acff).
 */
:root {
  --games-white: #faf8f6;
  --games-coral: #f5d3b0;
  --games-violet: #c99eff;
  --games-purple: #8c6eff;
  --games-cyan: #64acff;
  --games-spectrum: linear-gradient(98deg, #faf8f6 0%, #f5d3b0 22%, #c99eff 50%, #8c6eff 76%, #64acff 100%);
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  background: #070812;
  color: var(--text);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #060711;
}

/* Kinetic Cosmic-Arcade Ambient Backdrop (Aurora + Drifting Perspective Grid + Starlight Canvas) */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 38% at 16% 6%, rgba(245, 211, 176, 0.065), transparent 68%),
    radial-gradient(ellipse 68% 48% at 52% 0%, rgba(140, 110, 255, 0.12), transparent 72%),
    radial-gradient(ellipse 58% 42% at 86% 18%, rgba(100, 172, 255, 0.095), transparent 68%),
    #060711;
}

.ambient-aurora {
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(circle at 28% 34%, rgba(201, 158, 255, 0.14), transparent 44%),
    radial-gradient(circle at 72% 40%, rgba(100, 172, 255, 0.12), transparent 46%),
    radial-gradient(circle at 48% 72%, rgba(245, 211, 176, 0.075), transparent 42%);
  filter: blur(28px);
  animation: games-aurora-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.ambient-grid {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -18%;
  height: 72%;
  background-image:
    linear-gradient(rgba(164, 138, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 172, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  transform-origin: 50% 0%;
  transform: perspective(560px) rotateX(64deg);
  -webkit-mask-image: radial-gradient(ellipse 68% 74% at 50% 68%, rgba(0, 0, 0, 0.72), transparent 82%);
  mask-image: radial-gradient(ellipse 68% 74% at 50% 68%, rgba(0, 0, 0, 0.72), transparent 82%);
  animation: games-grid-glide 14s linear infinite;
  will-change: background-position;
}

.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes games-aurora-drift {
  0% {
    transform: translate3d(-2.5%, -1.5%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1.8%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-1.2%, 2.4%, 0) scale(1.02);
  }
}

@keyframes games-grid-glide {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 56px, 0 0;
  }
}

/* Non-sticky top header & bottom footer sitting above the ambient stage */
.hdr-moorkyz-sig {
  position: relative;
  top: auto;
  z-index: 2;
  flex-shrink: 0;
  background: rgba(8, 10, 22, 0.82);
  border-bottom: 1px solid rgba(190, 168, 255, 0.11);
  backdrop-filter: blur(12px);
}

.hdr-moorkyz-sig::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 211, 176, 0.16) 24%,
    rgba(201, 158, 255, 0.28) 52%,
    rgba(100, 172, 255, 0.2) 78%,
    transparent 100%
  );
}

.hdr-moorkyz-sig__inner {
  max-width: none;
  padding: 10px clamp(14px, 1.8vw, 24px);
}

.site-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.site-footer::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 211, 176, 0.18) 26%,
    rgba(201, 158, 255, 0.34) 50%,
    rgba(100, 172, 255, 0.24) 74%,
    transparent 100%
  );
}

/* Landing Container & Grid (Header -> Pure Card Grid -> Footer) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-main {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * clamp(16px, 3vw, 32px), 1160px);
  margin-inline: auto;
  margin-block: auto;
  padding-block: clamp(22px, 3.6vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

body.is-filtering .landing-main {
  margin-block: 0 auto;
}

/* Catalog Controls Row (Category Filter Pills + "Show all versions" Switch) */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.versions-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 31px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(190, 168, 255, 0.16);
  background: rgba(13, 17, 34, 0.8);
  color: #cbd4ea;
  font: 500 0.72rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  backdrop-filter: blur(8px);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 160ms ease;
}

.versions-switch:hover {
  border-color: rgba(201, 158, 255, 0.44);
  color: var(--games-white);
}

.versions-switch.is-active,
.versions-switch[aria-checked="true"] {
  border-color: rgba(201, 158, 255, 0.68);
  background: rgba(140, 110, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(140, 110, 255, 0.22);
}

.versions-switch__track {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 160ms ease, border-color 160ms ease;
  flex-shrink: 0;
}

.versions-switch[aria-checked="true"] .versions-switch__track {
  background: linear-gradient(98deg, #c99eff 0%, #64acff 100%);
  border-color: rgba(250, 248, 246, 0.45);
}

.versions-switch__thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #dfe6f8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms ease;
}

.versions-switch[aria-checked="true"] .versions-switch__thumb {
  transform: translateX(12px);
  background: #ffffff;
}

.category-pill {
  --cat-accent: #c99eff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 17, 34, 0.76);
  color: #cbd4ea;
  font: 500 0.73rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  backdrop-filter: blur(8px);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 160ms ease;
}

.category-pill:hover {
  border-color: color-mix(in srgb, var(--cat-accent) 48%, transparent);
  background: color-mix(in srgb, var(--cat-accent) 11%, rgba(15, 20, 40, 0.88));
  color: var(--games-white);
}

.category-pill.is-active,
.category-pill[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--cat-accent) 72%, transparent);
  background: color-mix(in srgb, var(--cat-accent) 18%, rgba(16, 21, 42, 0.94));
  color: #ffffff;
  box-shadow: 0 0 18px color-mix(in srgb, var(--cat-accent) 22%, transparent);
}

.category-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cat-accent);
  box-shadow: 0 0 8px var(--cat-accent);
  flex-shrink: 0;
}

.category-pill__count {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #9ba7c3;
  font-size: 0.65rem;
}

.category-pill.is-active .category-pill__count {
  background: color-mix(in srgb, var(--cat-accent) 24%, rgba(8, 10, 20, 0.6));
  color: #f6f8ff;
}

.games-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 20px;
  perspective: 1100px;
}

.card-slot {
  --cat-accent: var(--games-violet);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 268px;
  max-width: 100%;
  aspect-ratio: 1.22 / 1;
  min-height: 208px;
}

.catalog-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.catalog-empty-card {
  padding: 28px 24px;
  border-radius: 16px;
  background: rgba(11, 15, 30, 0.86);
  border: 1px solid rgba(190, 168, 255, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 460px;
}

.catalog-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.catalog-reset-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid rgba(201, 158, 255, 0.42);
  background: rgba(140, 110, 255, 0.16);
  color: var(--games-white);
  font: 500 0.74rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  transition: background 150ms ease, border-color 150ms ease;
}

.catalog-reset-btn:hover {
  background: rgba(140, 110, 255, 0.28);
  border-color: rgba(201, 158, 255, 0.7);
}

.catalog-reset-btn--muted {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd4ea;
}

/* Extruded striped CardDepth plate behind card (from moorkyz-evidence Theme.xaml) */
.card-ev-depth {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(24, 24, 48, 0.9) 0 2px,
    color-mix(in srgb, var(--cat-accent) 28%, transparent) 2px 3px,
    rgba(12, 14, 28, 0.94) 3px 5px
  );
  border: 1px solid color-mix(in srgb, var(--cat-accent) 30%, transparent);
  transform: translate(var(--depth-x, 0px), var(--depth-y, 0px));
  transition:
    opacity 180ms cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.card-slot.is-lit .card-ev-depth {
  opacity: 0.58;
}

.card-slot.is-pressed .card-ev-depth {
  opacity: 0;
}

/* Shared Interactive Card + Authentic moorkyz-evidence ModuleCard Reverse Lean, Material & Hologram */
.game-card {
  --card-accent: var(--games-cyan);
  --card-scale: 1;
  --card-lift: 0px;
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transform-origin: 50% 50%;
  transform:
    perspective(1000px)
    translateY(var(--card-lift))
    scale(var(--card-scale))
    rotateX(var(--lean-rx, 0deg))
    rotateY(var(--lean-ry, 0deg))
    skew(var(--skew-x, 0deg), var(--skew-y, 0deg));
  transition:
    transform 220ms cubic-bezier(0.215, 0.61, 0.355, 1),
    border-color 160ms ease,
    box-shadow 200ms cubic-bezier(0.215, 0.61, 0.355, 1),
    background 160ms ease;
}

.card-slot.is-lit .game-card,
.game-card:hover {
  --card-scale: 1.02;
  --card-lift: -2px;
  transition:
    transform 110ms cubic-bezier(0.215, 0.61, 0.355, 1),
    border-color 140ms ease,
    box-shadow 160ms ease,
    background 140ms ease;
}

.card-slot.is-pressed .game-card,
.game-card:active {
  --card-scale: 0.983;
  --card-lift: 0px;
  transition: transform 118ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.game-card > :not(.card-ev-material):not(.card-ev-shine):not(.game-card__badges) {
  position: relative;
  z-index: 2;
}

.game-card__badges {
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.game-card__category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent) 12%, rgba(9, 12, 24, 0.84));
  border: 1px solid color-mix(in srgb, var(--card-accent) 34%, transparent);
  color: var(--card-accent);
  font: 600 0.62rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  letter-spacing: 0.03em;
}

.game-card__category-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--card-accent);
  box-shadow: 0 0 7px var(--card-accent);
  flex-shrink: 0;
}

.game-card__top-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent) 22%, rgba(10, 13, 26, 0.92));
  border: 1px solid color-mix(in srgb, var(--card-accent) 62%, transparent);
  color: #ffffff;
  font: 600 0.6rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card__sub-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #b7c2da;
  font: 500 0.59rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.prism__select-hint {
  color: #dbe3f6;
}

/* Bundle Selection Page Header */
.bundle-main {
  margin-block: 0 auto;
  gap: 24px;
}

.bundle-header {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bundle-nav {
  display: flex;
  align-items: center;
}

.bundle-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(13, 17, 34, 0.72);
  color: #cbd5e8;
  text-decoration: none;
  font: 500 0.74rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.bundle-back:hover {
  border-color: rgba(201, 158, 255, 0.48);
  background: rgba(140, 110, 255, 0.12);
  color: var(--games-white);
}

.bundle-hero {
  --cat-accent: var(--games-violet);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(13, 16, 34, 0.92), rgba(8, 10, 21, 0.94)) padding-box,
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--cat-accent) 44%, rgba(250, 248, 246, 0.2)),
      color-mix(in srgb, var(--cat-accent) 26%, transparent) 52%,
      rgba(100, 172, 255, 0.22)
    ) border-box;
}

.bundle-hero__icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--cat-accent);
  background: radial-gradient(
    circle at 38% 26%,
    color-mix(in srgb, var(--cat-accent) 26%, transparent),
    rgba(12, 16, 30, 0.88)
  );
  border: 1px solid color-mix(in srgb, var(--cat-accent) 42%, transparent);
}

.bundle-hero__icon .game-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.bundle-hero__icon svg {
  width: 24px;
  height: 24px;
}

.bundle-hero__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bundle-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bundle-hero__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--games-white);
}

.bundle-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-accent) 36%, transparent);
  color: var(--cat-accent);
  font: 600 0.65rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
}

.bundle-hero__cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cat-accent);
  box-shadow: 0 0 7px var(--cat-accent);
}

.bundle-hero__sub {
  margin: 0;
  font: 450 0.82rem/1.4 var(--font-sans, "DM Sans", system-ui, sans-serif);
  color: #9ba7c2;
}

/* CardMaterial: radial interior sheen + pointer-tracking radial rim border */
.card-ev-material {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  background: radial-gradient(
    ellipse 90% 100% at var(--light-x, 50%) var(--light-y, 50%),
    color-mix(in srgb, var(--card-accent) 16%, transparent) 0%,
    rgba(100, 172, 255, 0.07) 42%,
    transparent 100%
  );
  transition: opacity 160ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.card-ev-material::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 80% 100% at var(--light-x, 50%) var(--light-y, 50%),
    rgba(250, 248, 246, 0.48) 0%,
    rgba(245, 211, 176, 0.34) 18%,
    rgba(201, 158, 255, 0.42) 38%,
    rgba(100, 172, 255, 0.24) 62%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.card-slot.is-lit .card-ev-material,
.game-card:focus-visible .card-ev-material {
  opacity: 0.85;
}

.card-slot.is-pressed .card-ev-material {
  opacity: 0;
}

/* CardHue: very restrained 5-stop iridescent foil */
.card-ev-hue {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    #f8f6f4 0%,
    #f4b183 25%,
    #c78dff 50%,
    #8b63ff 75%,
    #5eb8ff 100%
  );
  background-size: 340% 340%;
  background-position: var(--hue-pos-x, 50%) var(--hue-pos-y, 50%);
  opacity: 0.036;
}

/* CardHologram: contextual 88x88 corner-reticle & game icon hologram shifting opposite to pointer */
.card-ev-hologram {
  position: absolute;
  width: 88px;
  height: 88px;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--card-accent);
  opacity: 0;
  transform: translate(var(--holo-x, 0px), var(--holo-y, 0px));
  transition:
    opacity 160ms cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 100ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.game-card .card-ev-hologram svg {
  width: 100%;
  height: 100%;
}

.card-ev-hologram__reticle {
  position: absolute;
  inset: 0;
}

.card-ev-hologram__img {
  position: relative;
  width: 58%;
  height: 58%;
  object-fit: cover;
  border-radius: 12px;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(1.25) brightness(1.12) sepia(1) hue-rotate(212deg) saturate(2.5);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 46%, rgba(0, 0, 0, 0.58) 74%, transparent 98%);
  mask-image: radial-gradient(circle at 50% 50%, #000 46%, rgba(0, 0, 0, 0.58) 74%, transparent 98%);
}

.card-slot.is-lit .card-ev-hologram,
.game-card:focus-visible .card-ev-hologram {
  opacity: 0.24;
}

/* Top 3px Shine bar tinted with the category's accent color */
.card-ev-shine {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  border-radius: 2px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--card-accent) 70%, #faf8f6) 28%,
    var(--card-accent) 52%,
    color-mix(in srgb, var(--card-accent) 72%, #64acff) 76%,
    transparent 100%
  );
  opacity: 0.38;
  transition: opacity 140ms ease;
}

.card-slot.is-top-prediction .card-ev-shine,
.card-slot.is-lit .card-ev-shine,
.game-card:hover .card-ev-shine,
.game-card:focus-visible .card-ev-shine {
  opacity: 1;
}

/* Icon highlight glow on card hover */
.card-ev-icon {
  transition:
    filter 240ms cubic-bezier(0.215, 0.61, 0.355, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.card-slot.is-lit .card-ev-icon,
.game-card:hover .card-ev-icon {
  filter: drop-shadow(0 0 10px rgba(190, 215, 255, 0.26));
}

.game-card:focus-visible {
  outline: 2px solid var(--games-cyan);
  outline-offset: 3px;
}

.game-card svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.game-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 120ms ease;
}

.game-icon-img.is-decoded {
  opacity: 1;
}

.glass__icon,
.prism__icon,
.ledger__icon,
.spotlight__icon,
.tactile__well,
.frame__icon {
  overflow: hidden;
}

.game-card__title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: #f4f6fc;
  text-wrap: balance;
}

/* ==========================================================================
   STYLE 01 — Obsidian Glass (Frosted Dark Glass + Hairline Footer)
   ========================================================================== */
.game-card--glass {
  --card-accent: var(--games-cyan);
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(18, 25, 44, 0.88), rgba(10, 14, 26, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.34);
  justify-content: space-between;
  gap: 18px;
}

.game-card--glass:hover {
  border-color: rgba(99, 210, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 34px rgba(99, 210, 255, 0.1);
}

.glass__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.glass__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--games-cyan);
  background: radial-gradient(circle at 30% 25%, rgba(99, 210, 255, 0.22), rgba(99, 210, 255, 0.05));
  border: 1px solid rgba(99, 210, 255, 0.26);
}

.glass__version {
  padding: 4px 9px;
  border-radius: 999px;
  font: 500 0.7rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  color: #cfe8ff;
  background: rgba(99, 210, 255, 0.1);
  border: 1px solid rgba(99, 210, 255, 0.22);
}

.glass__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font: 0.74rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  color: var(--muted);
}

.glass__arrow {
  color: var(--games-cyan);
  transition: transform 160ms ease;
}

.game-card--glass:hover .glass__arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   STYLE 02 — Prism Edge (Category Accent Border + Centered Emblem & Capsule)
   ========================================================================== */
.game-card--prism {
  --card-accent: var(--cat-accent, var(--games-violet));
  padding: 24px 18px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #0d1022, #080a15) padding-box,
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--card-accent) 44%, rgba(250, 248, 246, 0.24)) 0%,
      color-mix(in srgb, var(--card-accent) 34%, transparent) 36%,
      rgba(140, 110, 255, 0.24) 70%,
      color-mix(in srgb, var(--card-accent) 32%, rgba(100, 172, 255, 0.2)) 100%
    ) border-box;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 11px;
}

.card-slot.is-top-prediction .game-card--prism,
.game-card--prism:hover {
  background:
    linear-gradient(180deg, #10142a, #090c19) padding-box,
    linear-gradient(
      135deg,
      #faf8f6 0%,
      color-mix(in srgb, var(--card-accent) 82%, #faf8f6) 28%,
      var(--card-accent) 62%,
      color-mix(in srgb, var(--card-accent) 68%, #64acff) 100%
    ) border-box;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--card-accent) 22%, transparent);
}

.prism__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--card-accent);
  background: radial-gradient(
    circle at 38% 26%,
    color-mix(in srgb, var(--card-accent) 28%, transparent),
    color-mix(in srgb, var(--card-accent) 12%, transparent) 56%,
    rgba(100, 172, 255, 0.04)
  );
  border: 1px solid color-mix(in srgb, var(--card-accent) 42%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--card-accent) 20%, transparent);
}

.prism__capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent) 8%, rgba(12, 15, 28, 0.6));
  border: 1px solid color-mix(in srgb, var(--card-accent) 24%, transparent);
  font: 0.72rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  color: #b7b5d0;
}

.prism__version {
  color: var(--card-accent);
  font-weight: 500;
}

.prism__dot {
  color: var(--card-accent);
  opacity: 0.65;
}

/* ==========================================================================
   STYLE 03 — Swiss Ledger (Architectural Spine + Ruled Mono Strip)
   ========================================================================== */
.game-card--ledger {
  --card-accent: var(--games-coral);
  padding: 16px 18px 20px 21px;
  border-radius: 6px;
  background: #0a0e1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
}

.game-card--ledger::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  z-index: 2;
  background: linear-gradient(180deg, var(--games-white), var(--games-coral), var(--games-violet), var(--games-purple), var(--games-cyan));
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.game-card--ledger:hover {
  border-color: rgba(242, 155, 126, 0.35);
  background: #0d1221;
}

.game-card--ledger:hover::before {
  opacity: 1;
}

.ledger__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.11);
  font: 0.71rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  letter-spacing: 0.05em;
  color: var(--muted);
}

.ledger__version {
  color: var(--games-coral);
}

.ledger__body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ledger__icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--games-coral);
  background: rgba(242, 155, 126, 0.09);
  border: 1px solid rgba(242, 155, 126, 0.24);
}

/* ==========================================================================
   STYLE 04 — Spotlight Banner (Atmospheric Top Mesh + Clean Footer)
   ========================================================================== */
.game-card--spotlight {
  --card-accent: var(--games-purple);
  border-radius: 16px;
  background: #0a0e19;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  justify-content: space-between;
}

.game-card--spotlight:hover {
  border-color: rgba(99, 210, 255, 0.42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.spotlight__stage {
  position: relative;
  height: 98px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 60%, rgba(99, 210, 255, 0.22), rgba(157, 138, 255, 0.12) 48%, transparent 75%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.spotlight__version {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(6, 8, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font: 0.69rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  color: #dbe5f8;
}

.spotlight__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--games-white);
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.spotlight__info {
  padding: 15px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.spotlight__date {
  font: 0.73rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   STYLE 05 — Tactile Well (Soft Squircle + Recessed Icon Well & Chips)
   ========================================================================== */
.game-card--tactile {
  --card-accent: var(--games-violet);
  padding: 20px;
  border-radius: 22px;
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.game-card--tactile:hover {
  border-color: rgba(157, 138, 255, 0.44);
  background: #101628;
}

.tactile__well {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--games-violet);
  background: #060912;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.tactile__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tactile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tactile__chip {
  padding: 4px 8px;
  border-radius: 7px;
  background: #070a14;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font: 0.7rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  color: #aab4cb;
}

.tactile__chip--ver {
  color: var(--games-cyan);
}

/* ==========================================================================
   STYLE 06 — Precision Frame (Corner Brackets + Technical HUD Readout)
   ========================================================================== */
.game-card--frame {
  --card-accent: var(--games-cyan);
  padding: 20px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(99, 210, 255, 0.03), transparent 60%),
    #080b14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: space-between;
  gap: 18px;
}

.game-card--frame::before,
.game-card--frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transition: width 160ms ease, height 160ms ease, border-color 160ms ease;
}

.game-card--frame::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--games-cyan);
  border-left: 2px solid var(--games-cyan);
}

.game-card--frame::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid var(--games-violet);
  border-bottom: 2px solid var(--games-violet);
}

.game-card--frame:hover {
  border-color: rgba(99, 210, 255, 0.25);
}

.game-card--frame:hover::before,
.game-card--frame:hover::after {
  width: 16px;
  height: 16px;
}

.frame__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.frame__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--games-cyan);
  background: rgba(99, 210, 255, 0.06);
  border: 1px solid rgba(99, 210, 255, 0.24);
}

.frame__version {
  font: 0.71rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  letter-spacing: 0.06em;
  color: var(--games-cyan);
}

.frame__foot {
  font: 0.71rem/1 var(--font-mono, "DM Mono", ui-monospace, monospace);
  letter-spacing: 0.06em;
  color: var(--muted);
}

@media (max-width: 899px) and (min-width: 521px) {
  .games-grid {
    gap: 18px 16px;
  }
  .card-slot {
    width: clamp(232px, calc(50% - 10px), 268px);
  }
}

@media (max-width: 520px) {
  .catalog-controls {
    gap: 8px;
  }
  .category-bar {
    gap: 6px;
  }
  .category-pill {
    height: 29px;
    padding: 0 10px;
    font-size: 0.69rem;
  }
  .versions-switch {
    height: 29px;
    font-size: 0.69rem;
  }
  .card-slot {
    width: min(100%, 340px);
  }
  .bundle-hero {
    padding: 14px 16px;
    gap: 12px;
  }
  .bundle-hero__icon {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-aurora,
  .ambient-grid {
    animation: none !important;
  }
  .game-card,
  .card-ev-depth,
  .card-ev-material,
  .card-ev-hologram,
  .card-ev-shine,
  .card-ev-icon,
  .glass__arrow,
  .game-card--frame::before,
  .game-card--frame::after {
    transition: none !important;
  }
  .game-card,
  .card-slot.is-lit .game-card,
  .card-slot.is-pressed .game-card,
  .game-card:hover,
  .game-card:active,
  .card-ev-depth,
  .card-ev-hologram {
    transform: none !important;
  }
}
