/* Página do Onix GameHub: o índigo profundo do hub, o degradê neon rosa → ciano, uma cor por console,
   o chão de grade neon, estrelinhas em pixel art e a fonte pixelada nos títulos e botões (o texto
   corrido fica na fonte normal, para ler fácil). */
body.th-gamehub {
  --bg: #07040f;
  --ink: #f1edff;
  --dim: #b4aad9;
  --mute: #7f76a8;
  --pink: #ff3d9a;
  --cyan: #3de1ff;
  --grad: linear-gradient(90deg, var(--pink), var(--cyan));
  --panel: rgba(14, 9, 32, .9);
  --line: rgba(255, 255, 255, .1);
  --glass: rgba(255, 255, 255, .05);
  --glass-hi: rgba(255, 255, 255, .1);
  --nes: #ff5a6e; --snes: #a78bfa; --gba: #38bdf8; --md: #fbbf24;
  --px: "Pixelify Sans", ui-monospace, monospace;
  --r: .5rem;
}
body.th-gamehub::after { background: radial-gradient(120% 90% at 18% 0%, #1b0f3d 0%, #0d0722 45%, #07040f 100%); }
body.th-gamehub::before {
  background: radial-gradient(40% 35% at 20% 25%, rgba(255, 111, 181, .13), transparent 70%),
    radial-gradient(45% 40% at 80% 70%, rgba(90, 216, 255, .11), transparent 70%);
}
.th-gamehub h1, .th-gamehub h2, .th-gamehub h3, .th-gamehub .ask, .th-gamehub .btn, .th-gamehub .chip,
.th-gamehub .badge, .th-gamehub .kick, .th-gamehub .start, .th-gamehub summary, .th-gamehub .feat b { font-family: var(--px); letter-spacing: .02em; }
.th-gamehub .top { background: rgba(7, 4, 15, .78); border-bottom: 2px solid rgba(255, 255, 255, .08); }

/* Chão de grade neon (o mesmo do hub), parado: só desenha uma vez. */
.gh-floor { position: fixed; left: -20%; right: -20%; bottom: 0; height: 34vh; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(61, 225, 255, .1) 0 1px, transparent 1px 5.5rem),
    repeating-linear-gradient(0deg, rgba(61, 225, 255, .09) 0 1px, transparent 1px 2.6rem);
  transform: perspective(30rem) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%); mask-image: linear-gradient(to top, #000 10%, transparent 95%); }

/* Estrelinhas em pixel art: um desenho só (máscara) pintado em cada cor; piscam em degraus. */
.gh-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.px-star { position: absolute; width: 14px; height: 14px; background: var(--c, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h1v2H3zM3 5h1v2H3zM0 3h2v1H0zM5 3h2v1H5zM2 2h3v3H2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h1v2H3zM3 5h1v2H3zM0 3h2v1H0zM5 3h2v1H5zM2 2h3v3H2z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: pxBlink 2.4s steps(2, jump-none) infinite; }
.px-star.sm { width: 7px; height: 7px; }
.px-star.lg { width: 21px; height: 21px; }
@keyframes pxBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }

/* Cartões com cantos em degrau, como pixels. */
.th-gamehub .dev, .th-gamehub .feat .glass, .th-gamehub .warn, .th-gamehub .shot {
  --s: 6px; border-radius: 0; background: var(--panel); border: 2px solid var(--line); box-shadow: none;
  clip-path: polygon(0 calc(var(--s) * 2), var(--s) calc(var(--s) * 2), var(--s) var(--s), calc(var(--s) * 2) var(--s), calc(var(--s) * 2) 0,
    calc(100% - var(--s) * 2) 0, calc(100% - var(--s) * 2) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(var(--s) * 2), 100% calc(var(--s) * 2),
    100% calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s) * 2) calc(100% - var(--s)), calc(100% - var(--s) * 2) 100%,
    calc(var(--s) * 2) 100%, calc(var(--s) * 2) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - var(--s) * 2), 0 calc(100% - var(--s) * 2)); }
.th-gamehub .dev.here { border: 2px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; }
.th-gamehub .dev .badge { position: static; align-self: flex-start; border-radius: 0; padding: .2rem .6rem; }
.th-gamehub .dev h2 { font-size: 1.6rem; font-weight: 600; }
.th-gamehub .code code { border-radius: 0; }

/* Botões de fliperama: degraus embaixo, afundam ao clicar. */
.th-gamehub .btn { border-radius: .35rem; border: 2px solid rgba(255, 255, 255, .14); background: #1a1036; box-shadow: 0 .3rem 0 #07040f; font-weight: 600; }
.th-gamehub .btn:hover { transform: translateY(-2px); box-shadow: 0 .45rem 0 #07040f; }
.th-gamehub .btn:active { transform: translateY(.2rem); box-shadow: 0 .1rem 0 #07040f; }
.th-gamehub .btn.primary { background: var(--grad); color: #14082c; border: 0; box-shadow: 0 .3rem 0 #8a1f57, 0 .8rem 1.8rem rgba(255, 61, 154, .25); }
.th-gamehub .btn.primary:hover { box-shadow: 0 .45rem 0 #8a1f57, 0 1rem 2.2rem rgba(61, 225, 255, .3); }
.th-gamehub .chip { border-radius: .3rem; border-width: 2px; }

/* Ícones em pixel art, cada um na cor de um console. */
.th-gamehub .dev .ic, .th-gamehub .feat i { display: grid; place-items: center; color: var(--c); }
.th-gamehub .dev .ic svg { width: 3rem; height: 3rem; filter: drop-shadow(0 0 .6rem color-mix(in srgb, var(--c) 55%, transparent)); }
.th-gamehub .feat i svg { width: 2.2rem; height: 2.2rem; }
.th-gamehub .feat .glass { border-top: 4px solid var(--c, var(--pink)); }

/* Apresentação: o controle em pixel art pulando, com estrelinhas em volta. */
.th-gamehub .page-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; text-align: left; padding: 3.8rem 0 2.4rem; }
.th-gamehub .page-hero p { margin-left: 0; }
.th-gamehub .page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 700; line-height: 1; letter-spacing: .01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 .25rem 0 #2a1155); }
.th-gamehub .kick { display: inline-block; color: var(--pink); font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; }
.th-gamehub .consoles { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; }
.th-gamehub .consoles .chip i { width: .6rem; height: .6rem; background: var(--c); display: inline-block; }
.th-gamehub .start { display: inline-block; margin-top: 1.4rem; color: var(--cyan); font-size: 1.15rem; text-decoration: none; animation: pxBlink 1.2s steps(2, jump-none) infinite; }
.gh-hero { position: relative; aspect-ratio: 1; max-width: 26rem; width: 100%; justify-self: end; display: grid; place-items: center; }
.gh-hero .mark { width: 62%; image-rendering: pixelated; animation: ghBob 1.6s steps(4) infinite alternate; filter: drop-shadow(0 0 2.4rem rgba(167, 139, 250, .45)); }
.gh-hero .shadow { position: absolute; bottom: 14%; width: 40%; height: 5%; background: rgba(0, 0, 0, .5); border-radius: 50%; filter: blur(4px); animation: ghShadow 1.6s steps(4) infinite alternate; }
.gh-hero .px-star { position: absolute; }
@keyframes ghBob { to { transform: translateY(-1.2rem); } }
@keyframes ghShadow { to { transform: scaleX(.8); opacity: .6; } }
.th-gamehub h3.t { font-size: 1.9rem; color: var(--ink); }
.th-gamehub .ask { font-size: 1.6rem; color: var(--cyan); }

.th-gamehub .hero-acts { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.th-gamehub .hero-acts .start { margin-top: 0; }
.th-gamehub .hero-acts .btn svg { width: 1.05rem; height: 1.15rem; }

@media (max-width: 860px) {
  .th-gamehub .page-hero { grid-template-columns: 1fr; text-align: center; padding-top: 2.2rem; }
  .th-gamehub .page-hero p { margin-left: auto; }
  .th-gamehub .consoles { justify-content: center; }
  .th-gamehub .hero-acts { justify-content: center; }
  .gh-hero { order: -1; max-width: 13rem; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .px-star, .th-gamehub .start, .gh-hero .mark { animation: none !important; } }
