/* Games & Apps hub — scoped presentation on approved site chrome */

.games-hub {
  --gh-ink: #f4f0e6;
  --gh-muted: rgba(244, 240, 230, 0.72);
  --gh-line: rgba(244, 240, 230, 0.14);
  --gh-card: linear-gradient(155deg, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(165deg, #1d2426 0%, #0c1011 100%);
  --gh-accent: #e8ff6a;
  --gh-cyan: #5ce1ff;
  --gh-coral: #ff6b5a;
  --gh-violet: #c4a1ff;
}

.games-hub .page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.games-hub .page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 18% 30%, rgba(92, 225, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 78% 20%, rgba(232, 255, 106, 0.12), transparent 50%),
    radial-gradient(ellipse at 55% 80%, rgba(196, 161, 255, 0.1), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.games-hub .page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 12ch;
}

.games-hub .page-hero .lede {
  max-width: 42rem;
  color: var(--gh-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.games-hub .section-heading p {
  max-width: 40rem;
}

.games-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0.25rem 0 0.5rem;
}

.games-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--gh-line);
  border-radius: 22px;
  background: var(--gh-card);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.games-card:hover,
.games-card:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent, var(--gh-accent)) 55%, var(--gh-line));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.games-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.games-symbol {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  border: 1px solid rgba(244, 240, 230, 0.16);
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--card-accent, var(--gh-accent)) 55%, transparent), transparent 70%),
    #101516;
  font-size: 1.45rem;
  line-height: 1;
}

.games-status {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 230, 0.18);
  background: rgba(8, 12, 13, 0.72);
  color: var(--gh-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.games-status.is-live {
  border-color: color-mix(in srgb, var(--gh-cyan) 55%, transparent);
  color: var(--gh-cyan);
}

.games-status.is-active {
  border-color: color-mix(in srgb, var(--gh-accent) 55%, transparent);
  color: var(--gh-accent);
}

.games-status.is-test {
  border-color: color-mix(in srgb, var(--gh-violet) 55%, transparent);
  color: var(--gh-violet);
}

.games-status.is-proto {
  border-color: color-mix(in srgb, var(--gh-coral) 45%, transparent);
  color: #ffb4aa;
}

.games-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.games-type {
  margin: 0.2rem 0 0;
  color: var(--gh-muted);
  font-size: 0.92rem;
}

.games-card .summary {
  margin: 0;
  color: rgba(244, 240, 230, 0.78);
  font-size: 0.98rem;
  line-height: 1.45;
}

.games-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.games-actions a,
.games-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 230, 0.18);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.games-actions a {
  color: var(--gh-ink);
  background: rgba(255, 255, 255, 0.04);
}

.games-actions a:hover,
.games-actions a:focus-visible {
  border-color: color-mix(in srgb, var(--card-accent, var(--gh-accent)) 60%, #fff);
  background: rgba(255, 255, 255, 0.08);
}

.games-actions a.is-primary {
  background: color-mix(in srgb, var(--card-accent, var(--gh-accent)) 22%, #111);
  border-color: color-mix(in srgb, var(--card-accent, var(--gh-accent)) 55%, transparent);
}

.games-actions .coming-soon {
  color: rgba(244, 240, 230, 0.55);
  cursor: default;
}

.games-why {
  border: 1px solid var(--gh-line);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2rem);
  background:
    linear-gradient(120deg, rgba(92, 225, 255, 0.08), transparent 40%),
    linear-gradient(165deg, #171d1f, #0c1011);
}

.games-why p {
  max-width: 46rem;
  color: var(--gh-muted);
}

@media (max-width: 1024px) {
  .games-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .games-hub-grid {
    grid-template-columns: 1fr;
  }

  .games-hub .page-hero h1 {
    max-width: none;
  }
}
