/* DxsxtGamesHero — 3D opener above the games grid. Everything scoped under .dxgh. */
.dxgh { position: relative; overflow: hidden; background: #000; color: #F5F5F7; isolation: isolate; }
.dxgh-stage { position: relative; height: clamp(520px, 74vh, 700px); }
.dxgh-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.92) 100%); }
.dxgh-copy, .dxgh-dots { z-index: 2; }
.dxgh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: pan-y; }
.dxgh-glow { position: absolute; left: 50%; top: 52%; width: 70vw; max-width: 900px; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(41,151,255,0.22) 0%, rgba(41,151,255,0.06) 38%, rgba(0,0,0,0) 68%); }

.dxgh-copy { position: absolute; left: max(24px, calc((100% - 1280px) / 2 + 24px)); bottom: 84px; max-width: 440px; pointer-events: none; }
.dxgh-copy > * { pointer-events: auto; }
.dxgh-eyebrow { margin: 0 0 12px; font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: #8E8E93; }
.dxgh-name { margin: 0; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; }
.dxgh-genre { margin: 12px 0 0; font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; color: #2997FF; }
.dxgh-line { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: #A1A1A6; max-width: 40ch; }
.dxgh-open { margin-top: 20px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #F5F5F7; color: #000; font: 600 14px/44px inherit; cursor: pointer; }
.dxgh-open:hover { background: #fff; }
.dxgh-hint { margin: 14px 0 0; font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #6E6E73; }

/* the copy slides up a little each time the game changes */
.dxgh-copy.is-swap .dxgh-name, .dxgh-copy.is-swap .dxgh-genre, .dxgh-copy.is-swap .dxgh-line { animation: dxgh-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.dxgh-copy.is-swap .dxgh-genre { animation-delay: 0.06s; } .dxgh-copy.is-swap .dxgh-line { animation-delay: 0.12s; }
@keyframes dxgh-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dxgh-dots { list-style: none; margin: 0; padding: 0; position: absolute; right: max(24px, calc((100% - 1280px) / 2 + 24px)); bottom: 34px; display: flex; gap: 8px; }
.dxgh-dots button { width: 22px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,0.22); cursor: pointer; padding: 0; transition: background 0.3s ease, width 0.3s ease; }
.dxgh-dots button.on { background: #2997FF; width: 34px; }

.dxgh-fallback { display: none; }
.dxgh.no3d .dxgh-canvas { display: none; }
.dxgh.no3d .dxgh-fallback { display: block; position: absolute; right: 8%; top: 50%; transform: translateY(-52%) rotate(-6deg); width: min(38vw, 320px); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08); }
.dxgh.no3d .dxgh-fallback img { display: block; width: 100%; height: auto; }

@media (max-width: 760px) {
  .dxgh-stage { height: clamp(560px, 92vh, 760px); }
  .dxgh-copy { left: 20px; right: 20px; bottom: 64px; max-width: none; }
  .dxgh-name { font-size: 30px; }
  .dxgh-line { font-size: 15px; }
  .dxgh-dots { left: 20px; right: auto; bottom: 22px; }
  .dxgh-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dxgh-copy.is-swap .dxgh-name, .dxgh-copy.is-swap .dxgh-genre, .dxgh-copy.is-swap .dxgh-line { animation: none; }
}
