/* ============================================================
   GAME SELECTION — angled panels
   ============================================================ */
.games {
  position: relative;
}
.games__filterbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.games__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}

.games__rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: 1400px;
}

.gcard {
  position: relative;
  height: 560px;
  cursor: pointer;
  background: var(--bg-1);
  clip-path: polygon(28px 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  border: 0;
  padding: 0;
  text-align: left;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .4s ease;
  isolation: isolate;
  font-family: inherit;
  color: inherit;
}
.gcard::before {
  /* angled border using a clipped pseudo */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
  clip-path: polygon(28px 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  z-index: -2;
}
.gcard__inner {
  position: absolute;
  inset: 1px;
  clip-path: polygon(28px 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  overflow: hidden;
  background: var(--bg-1);
}
.gcard__art {
  position: absolute; inset: 0;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.gcard__art svg { width: 100%; height: 100%; display: block; }
.gcard__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.8) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 30%);
}
.gcard__shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .9s ease;
}
.gcard__top {
  position: absolute; top: 22px; left: 36px; right: 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.gcard__index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
}
.gcard__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  border-radius: 4px;
}
.gcard__badge--live {
  color: #0a0a0a;
  background: var(--live);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(52,217,122,0.5);
}
.gcard__badge--soon { color: var(--text); border-color: var(--line-strong); }
.gcard__badge--soon::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--warn);
  border-radius: 50%;
}

.gcard__bottom {
  position: absolute;
  left: 30px; right: 18px; bottom: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.gcard__kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.gcard__title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  word-break: break-word;
  hyphens: auto;
}
.gcard__desc {
  font-size: 14px;
  color: rgba(232,236,243,0.78);
  line-height: 1.45;
  max-width: 22ch;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .4s ease, max-height .5s ease, margin .5s ease;
}
.gcard__cta {
  align-self: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease .05s, transform .4s ease .05s;
}

/* hover/active states */
.gcard:hover, .gcard.is-active, .gcard:focus-visible {
  transform: translateY(-8px) scale(1.012);
  filter: brightness(1.05);
  outline: none;
}
.gcard:hover .gcard__art, .gcard.is-active .gcard__art {
  transform: scale(1.06);
}
.gcard:hover .gcard__shimmer, .gcard.is-active .gcard__shimmer {
  transform: translateX(100%);
}
.gcard:hover .gcard__desc, .gcard.is-active .gcard__desc {
  opacity: 1;
  max-height: 80px;
}
.gcard:hover .gcard__cta, .gcard.is-active .gcard__cta {
  opacity: 1;
  transform: translateY(0);
}
.gcard:hover::before, .gcard.is-active::before {
  background: linear-gradient(180deg, var(--accent), rgba(255,138,30,0.1));
}

.gcard--locked .gcard__title { color: rgba(255,255,255,0.85); }
.gcard--locked .gcard__kicker { color: var(--cyan); }
.gcard--locked:hover::before { background: linear-gradient(180deg, var(--cyan), rgba(39,224,255,0.1)); }
.gcard--locked .gcard__lock {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
  backdrop-filter: blur(8px);
  opacity: 0.85;
  transition: transform .4s ease, opacity .4s ease;
}
.gcard--locked:hover .gcard__lock { transform: translate(-50%, -50%) scale(1.08); }

/* mobile carousel switch */
@media (max-width: 980px) {
  .games__rail {
    grid-template-columns: repeat(4, 78%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding-left: var(--pad);
    padding-right: var(--pad);
    gap: 14px;
    scrollbar-width: none;
  }
  .games__rail::-webkit-scrollbar { display: none; }
  .gcard { scroll-snap-align: center; height: 480px; }
  .gcard__desc { opacity: 1; max-height: 80px; }
  .gcard__cta { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .gcard { height: 440px; }
  .gcard__title { font-size: 22px; }
}

