/* Página /jogo: painel com os jogos criados com IA (nov/2026).
   Mesma identidade do site: verde-escuro, neon, Space Grotesk + Inter. */

:root {
  --g-neon: #7dff5e;
  --g-900: #051a02;
  --g-800: #083302;
  --g-700: #0c2a07;
  --g-600: #11390c;
  --bg: #ffffff;
  --border: rgba(5, 26, 2, 0.1);
  --text-heading: #051a02;
  --text-body: #3d4a3d;
  --text-muted: #55665a;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #eef3ee;
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.jg-lista { width: 100%; }
.jg-curso-wrap { flex: 1; width: 100%; }

h1, h2 { font-family: var(--font-display); color: var(--text-heading); line-height: 1.15; margin: 0; }

.jg-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ============ TOPO ============ */
.jg-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(125, 255, 94, 0.16), transparent 45%),
    var(--g-900);
  color: #fff;
  padding: 22px 0 88px;
}
.jg-hero__home {
  display: block; width: fit-content; color: rgba(255,255,255,0.6); text-decoration: none;
  font: 600 0.85rem/1 var(--font-display); margin-bottom: 36px;
}
.jg-hero__home:hover { color: var(--g-neon); }
.jg-hero__tag {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(125, 255, 94, 0.12); color: var(--g-neon);
  font: 600 0.85rem/1.2 var(--font-display);
}
.jg-hero__title { color: #fff; font-size: clamp(2.1rem, 7vw, 3.4rem); font-weight: 700; max-width: 14ch; }
.jg-hero__title span { color: var(--g-neon); }
.jg-hero__lead { margin: 14px 0 0; color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 46ch; }

/* ============ LISTA DE JOGOS ============ */
.jg-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  align-items: start;
  margin-top: -56px;
  padding-bottom: 48px;
}

.jg-card {
  background: var(--bg);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(5, 26, 2, 0.45);
  display: flex; flex-direction: column;
}

.jg-card__capa { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #7ec8e3; }
.jg-card__capa img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.jg-card__capa:hover img { transform: scale(1.04); }
.jg-card__selo {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--g-neon); color: var(--g-900);
  font: 700 0.75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
}

.jg-card__corpo { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.jg-card h2 { font-size: 1.6rem; }
.jg-card p { margin: 0; color: var(--text-body); }

.jg-card__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jg-card__chips li {
  padding: 5px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: #f2faf3; color: var(--g-600); border: 1px solid var(--border);
}

.jg-btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--g-900); color: var(--g-neon);
  font: 700 1.05rem/1 var(--font-display); text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.jg-btn:hover { background: var(--g-700); }
.jg-btn:active { transform: scale(0.97); }
.jg-btn--contorno { background: transparent; color: var(--g-900); border: 2px solid var(--g-900); }
.jg-btn--contorno:hover { background: var(--g-900); color: var(--g-neon); }

/* card "em breve" */
.jg-card--breve { background: transparent; box-shadow: none; border: 2px dashed rgba(5, 26, 2, 0.22); }
.jg-card__breve { padding: 28px 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.jg-card__breve-icone {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--g-900); color: var(--g-neon); font: 700 1.8rem/1 var(--font-display);
}
.jg-card--breve p { color: var(--text-muted); }

/* ============ BANNER DO CURSO ============ */
.jg-curso-wrap { padding-bottom: 40px; }
.jg-curso {
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden; text-decoration: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 255, 94, 0.18), transparent 50%),
    var(--g-800);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px -24px rgba(5, 26, 2, 0.6);
  transition: transform 0.2s ease;
}
.jg-curso:hover { transform: translateY(-3px); }
.jg-curso__capa { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.jg-curso__capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jg-curso__corpo { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 24px; }
.jg-curso__tag { font: 600 0.8rem/1.2 var(--font-display); color: var(--g-neon); text-transform: uppercase; letter-spacing: 0.06em; }
.jg-curso__titulo { font: 700 clamp(1.35rem, 3.6vw, 1.75rem)/1.2 var(--font-display); color: #fff; }
.jg-curso__titulo span { color: var(--g-neon); }
.jg-curso__texto { font-size: 0.98rem; line-height: 1.55; }
.jg-curso__btn {
  align-self: flex-start; margin-top: 6px;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--g-neon); color: var(--g-900); font: 700 1rem/1 var(--font-display);
}

@media (min-width: 760px) {
  .jg-curso { flex-direction: row; align-items: center; }
  .jg-curso__capa { flex: 0 0 44%; align-self: stretch; display: flex; align-items: center; aspect-ratio: auto; background: #04110a; }
  .jg-curso__capa img { height: auto; aspect-ratio: 16 / 9; }
  .jg-curso__corpo { justify-content: center; padding: 28px 32px; }
}

/* ============ RODAPÉ ============ */
.jg-follow {
  background: var(--g-900); color: #fff; text-align: center;
  padding: 36px 16px 44px; border-radius: 28px 28px 0 0;
}
.jg-follow p { margin: 0 0 16px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.jg-follow__btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--g-neon); color: var(--g-900);
  font: 700 1rem/1 var(--font-display); text-decoration: none;
}
.jg-follow__home { display: block; margin-top: 18px; color: rgba(255,255,255,0.55); font-size: 0.85rem; text-decoration: none; }

/* com duas colunas, o card "em breve" começa abaixo do topo escuro */
@media (min-width: 720px) {
  .jg-card--breve { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .jg-card__capa img, .jg-btn { transition: none; }
}
