/* $GAMES — banners horizontais temáticos */

.g-hero { padding-bottom: 40px; border-bottom: none; }
.g-hero .hero-title { max-width: 900px; }
.g-ticker { color: var(--accent); font-style: normal; }

.g-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 120px;
}

.g-banner {
  --c1: #b6ff4d;
  --c2: #131a29;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 24px;
  min-height: 168px;
  padding: 26px 30px 26px 32px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--c1) 22%, transparent);
  background:
    radial-gradient(120% 140% at 100% 50%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 60%),
    linear-gradient(100deg, #0f1421 0%, #0f1421 35%, var(--c2) 100%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.g-banner:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--c1) 60%, transparent);
  box-shadow: 0 18px 50px -20px color-mix(in srgb, var(--c1) 45%, transparent);
}

/* Camada de detalhes temáticos */
.g-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: var(--c1);
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 8%, #000 55%);
  transition: opacity 0.3s ease;
}
.g-banner:hover .g-decor { opacity: 0.26; }

.g-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}
.g-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c1);
  margin-bottom: 6px;
}
.g-name {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.05;
}
.g-desc {
  max-width: 520px;
  font-size: 15px;
  color: var(--text-dim);
}
.g-cta {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
  color: var(--c1);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.g-banner:hover .g-cta { opacity: 1; transform: none; }

.g-icon {
  align-self: center;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  object-fit: cover;
  background: #0b0f1a;
  border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c1) 8%, transparent), 0 14px 40px -10px color-mix(in srgb, var(--c1) 60%, transparent);
}

.g-note { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* Temas */
.t-tibidle  { --c1: #ff9a3c; --c2: #2a1408; }
.t-pokeafk  { --c1: #ff5a4e; --c2: #10203f; }
.t-grandline{ --c1: #3fc1ff; --c2: #062338; }
.t-lorvath  { --c1: #e0485f; --c2: #1d0914; }
.t-sigma    { --c1: #4fe0c8; --c2: #08241f; }
.t-pokeidle { --c1: #ffd23f; --c2: #1b1745; }
.t-foliary  { --c1: #8fdc5a; --c2: #0f2410; }
.t-leveling { --c1: #4aa8ff; --c2: #120d33; }

/* ---------- Preview de vídeo ao passar o mouse ---------- */
.g-item { display: flex; flex-direction: column; }
.g-item.has-video .g-banner { z-index: 1; }

.g-preview {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.38s cubic-bezier(.2,.8,.2,1), opacity 0.25s ease;
}
.g-preview-inner { overflow: hidden; min-height: 0; }
.g-item.is-open .g-preview { grid-template-rows: 1fr; opacity: 1; }

.g-preview-card {
  margin: -18px 14px 0;
  padding: 34px 22px 22px;
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: 26px;
  align-items: center;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 10%, #0d121d), #0d121d);
  border: 1px solid color-mix(in srgb, var(--c1) 22%, transparent);
  border-top: none;
}

.g-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #05070c center / cover no-repeat;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.8);
}
.g-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.32); /* corta a barra de título e os botões do YouTube */
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none; /* clique no card leva ao vídeo/jogo, não ao player */
}
.g-video iframe.ready { opacity: 1; }
.g-video::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 25%, transparent);
  animation: g-pulse 1.2s ease-in-out infinite;
}
.g-video:has(iframe.ready)::after { display: none; }
@keyframes g-pulse { 50% { opacity: 0.35; } }
.g-preview-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.g-preview-title { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.3; }
.g-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.g-preview-btn {
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--c1);
  color: #0b0f1a;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.g-preview-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.g-preview-link { font-size: 13px; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.g-preview-link:hover { color: var(--text); }

/* Cores do tema também no preview */
.g-item:has(.t-tibidle)   { --c1: #ff9a3c; }
.g-item:has(.t-pokeafk)   { --c1: #ff5a4e; }
.g-item:has(.t-grandline) { --c1: #3fc1ff; }
.g-item:has(.t-lorvath)   { --c1: #e0485f; }
.g-item:has(.t-sigma)     { --c1: #4fe0c8; }
.g-item:has(.t-pokeidle)  { --c1: #ffd23f; }
.g-item:has(.t-foliary)   { --c1: #8fdc5a; }
.g-item:has(.t-leveling)  { --c1: #4aa8ff; }

/* Ícone: no celular vira botão de "ver vídeo" (selo ▶ no canto) */
.g-icon-wrap { position: relative; align-self: center; display: block; line-height: 0; }
.is-touch .g-item.has-video .g-icon-wrap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.is-touch .g-item.has-video .g-icon-wrap::after {
  content: "▶";
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  background: var(--c1);
  color: #0b0f1a;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 0 0 3px #0f1421, 0 6px 16px -4px color-mix(in srgb, var(--c1) 80%, transparent);
  transition: transform 0.2s ease;
}
.is-touch .g-item.is-open .g-icon-wrap::after { content: "✕"; padding-left: 0; font-size: 13px; }
.is-touch .g-item.has-video .g-icon-wrap:active::after { transform: scale(0.9); }
@media (max-width: 760px) {
  .g-preview-card { grid-template-columns: 1fr; }
}

/* ---------- Destaque: IdleNest (app próprio) ---------- */
/* Mesmo formato dos banners de jogo; o painel abaixo mostra os detalhes do app */
.t-idlenest { --c1: #ffb38a; --c2: #2a1609; }
.g-item--featured { --c1: #ffb38a; position: relative; margin-bottom: 34px; }
.g-item--featured .g-banner { padding-top: 34px; cursor: pointer; box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--c1) 55%, transparent); }
.g-item--featured .g-name { font-size: clamp(30px, 4vw, 42px); }

/* borda em gradiente animado (diferencia dos outros banners) */
.g-banner.is-featured { border-color: transparent; }
.g-banner.is-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--gf-a, 0deg), var(--c1), var(--accent), #37adff, var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: gf-spin 6s linear infinite;
}
@property --gf-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes gf-spin { to { --gf-a: 360deg; } }

.gf-ribbon {
  position: absolute;
  z-index: 2;
  top: -13px;
  left: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0f1a;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
/* Painel de detalhes: ilustração no lugar do vídeo + informações */
.gf-card { grid-template-columns: minmax(0, 360px) 1fr; gap: 36px; padding-top: 40px; padding-bottom: 28px; }
.gf-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gf-lead { font-size: 17px; line-height: 1.5; color: var(--text); max-width: 560px; }
.gf-feats { list-style: none; display: grid; gap: 9px; padding: 0; margin: 0; }
.gf-feats li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-dim); }
.gf-feats li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--c1); transform: rotate(45deg); }
.gf-feats b { color: var(--text); font-weight: 600; }
.gf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 4px; }
.gf-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius);
  background: var(--c1);
  color: #1f0f05;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--c1) 80%, transparent);
}
.gf-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--c1) 90%, transparent); }
.gf-meta { font-size: 13px; color: var(--text-dim); }
.gf-card .g-note { margin-top: 0; max-width: 560px; line-height: 1.5; }
.gf-card .g-note b { color: var(--text); }

/* mini ilustração do app: barra lateral + tela dividida 50/25/25 */
.gf-mock {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  aspect-ratio: 16 / 10;
  padding: 12px;
  border-radius: 16px;
  background: #141417;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
}
.gm-side { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.gm-side i { height: 12px; border-radius: 4px; background: rgba(255,255,255,0.07); }
.gm-side i.on { background: color-mix(in srgb, var(--c1) 45%, transparent); }
.gm-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.gm-pane {
  position: relative; border-radius: 8px;
  background: linear-gradient(160deg, #23232b, #1a1a20);
  border: 1px solid rgba(255,255,255,0.06);
}
.gm-pane.big { grid-row: span 2; box-shadow: 0 0 0 2px var(--c1); }
.gm-pane span { position: absolute; top: 7px; left: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--d); }
.gm-pane::after { content: ""; position: absolute; left: 8px; right: 8px; top: 22px; bottom: 8px; border-radius: 5px; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 6px, transparent 6px 12px); }

@media (max-width: 860px) {
  .gf-card { grid-template-columns: 1fr; padding: 34px 20px 22px; }
  .gf-mock { display: none; }
  .gf-btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .g-banner { padding: 22px 20px; gap: 16px; min-height: 150px; }
  .g-icon { width: 72px; height: 72px; border-radius: 18px; }
  .g-desc { font-size: 14px; }
  .g-cta { display: none; }
}

/* ---------- Banners em outras páginas (Promos, $IA, Mídia Kit) ---------- */
.t-pump      { --c1: #5fe08a; --c2: #0b2414; }
.t-alphax    { --c1: #f5c542; --c2: #231a06; }
.t-collector { --c1: #ff8a2a; --c2: #24100a; }
.t-hub       { --c1: #0fd96b; --c2: #0b2a1a; }
.g-list--page { margin-top: 40px; padding-bottom: 0; }
.g-banner--sm { min-height: 118px; padding: 20px 22px 20px 24px; gap: 16px; border-radius: 16px; }
.g-banner--sm .g-name { font-size: 24px; }
.g-banner--sm .g-desc { font-size: 13.5px; }
.g-banner--sm .g-text { gap: 10px; }
.g-banner--sm .g-icon { width: 68px; height: 68px; border-radius: 18px; }
.g-banner--sm .g-cta { display: none; }

/* Card do HUB na página $IA: cores e estilo da marca (verde neon sobre verde-escuro) */
.hub-card {
  --c1: #0fd96b; --c2: #0b2a1a;
  min-height: 250px; padding: 30px 32px;
  grid-template-columns: 1fr auto;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(15,217,107,0.22), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(15,217,107,0.08), transparent 70%),
    #101715;
  border-color: rgba(15,217,107,0.28);
}
.hub-card .g-decor { opacity: 0.14; }
.hub-card:hover .g-decor { opacity: 0.2; }
.hub-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 700; font-size: 18px; color: #f1f6f2; letter-spacing: -0.02em; }
.hub-brand img { border-radius: 6px; }
.hub-card .g-tag { display: block; color: #6fe8a2; }
.hub-title { font-family: var(--sans); font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #f1f6f2; }
.hub-title em {
  font-style: italic; font-weight: 600;
  background: linear-gradient(90deg, #6fe8a2, #0fd96b); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hub-card .g-desc { color: #abbdb3; max-width: 560px; }
.hub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hub-rate { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: #0fd96b; }
.hub-rate small { font-size: 13px; font-weight: 500; color: #abbdb3; letter-spacing: 0; margin: 0 4px; }
.hub-btn {
  display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 10px;
  background: rgba(15,217,107,0.88); color: #082014; font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 30px -10px rgba(15,217,107,0.7);
  transition: background .2s, transform .2s;
}
.hub-card:hover .hub-btn { background: #0fd96b; transform: translateY(-1px); }
.hub-side { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.hub-chip {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; text-align: center;
  background: rgba(47,62,53,0.56); color: #dce6df; border: 1px solid rgba(15,217,107,0.15);
}
.hub-chip.is-on { background: #0fd96b; color: #082014; }
@media (max-width: 760px) {
  .hub-card { grid-template-columns: 1fr; padding: 26px 22px; }
  .hub-side { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; order: -1; }
  .hub-chip { padding: 7px 12px; font-size: 12px; }
}
