/* GE Games — páginas dedicadas (landing) de jogo grande, 18/10/2026 (Nexara e Astralia).
   HTML: scripts/landing_render.py; dados: scripts/landing_data.py (exportados do repo de cada jogo).
   Carrega DEPOIS do portal.css e só nas landings; usa os mesmos tokens (tema claro/escuro). */

.page-landing { --lp-dark: #07080d; }
.page-landing main { display: block; }

/* ───────── herói cinematográfico ───────── */
.lp-hero { position: relative; isolation: isolate; color: #fff; background: var(--lp-dark); overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: flex-end; }
.lp-hero-bg { position: absolute; inset: 0; z-index: -2; }
.lp-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--lp-focus, 50% 30%); }
.lp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 8, 13, .25) 0%, rgba(7, 8, 13, .15) 35%, rgba(7, 8, 13, .82) 72%, var(--lp-dark) 100%),
              radial-gradient(70% 60% at 0% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }
.lp-hero-inner { padding-block: 120px 40px; width: 100%; }
.lp-hero .crumbs { color: #fff; }
.lp-hero-id { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.lp-hero-id .app-icon { width: 76px; height: 76px; border-radius: 22%; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.lp-hero h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.lp-hero .lp-kicker { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: color-mix(in srgb, var(--accent) 70%, #fff); }
.lp-hero .lp-line { font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 700; max-width: 30ch; margin-top: 12px; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.lp-hero .lp-sub { max-width: 60ch; margin-top: 10px; opacity: .9; }
.lp-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.lp-hero .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.lp-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.lp-stats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.lp-stats li { display: grid; }
.lp-stats b { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1; color: color-mix(in srgb, var(--accent) 60%, #fff); }
.lp-stats small { font-size: .78rem; opacity: .8; font-weight: 600; }
.lp-install { display: none; }

/* trailer (webp/mp4 animado do próprio jogo) */
.lp-trailer { margin-top: 26px; max-width: 520px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #000; }
.lp-trailer img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lp-trailer video { display: block; width: 100%; height: auto; background: #000; }
.lp-trailer figcaption { font-size: .78rem; padding: 8px 12px; opacity: .8; background: rgba(0, 0, 0, .55); }
@media (min-width: 1020px) {
  .lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; }
  .lp-trailer { margin-top: 0; justify-self: end; width: 100%; }
}

/* ───────── seções ───────── */
.lp-section { padding-block: clamp(44px, 7vw, 80px); scroll-margin-top: 110px; }
.lp-section + .lp-section { border-top: 1px solid var(--line); }
.lp-section .section-head { margin-bottom: 22px; }
.lp-lead { color: var(--ink-2); max-width: 70ch; margin-top: 8px; }
.lp-alt { background: var(--bg-2); }
.lp-band { position: relative; isolation: isolate; color: #fff; background: var(--lp-dark); overflow: hidden; }
.lp-band-bg { position: absolute; inset: 0; z-index: -1; opacity: .38; }
.lp-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.lp-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 8, 13, .92), rgba(7, 8, 13, .6)); }
.lp-band .eyebrow, .lp-band .lp-lead { color: rgba(255, 255, 255, .78); }
.lp-band .lp-card { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.lp-band .lp-card p { color: rgba(255, 255, 255, .82); }

/* passos (como jogar) */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: lp; }
@media (min-width: 720px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-steps.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lp-steps.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-steps li { counter-increment: lp; position: relative; padding: 20px 18px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-steps li::before { content: counter(lp, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 6px; }
.lp-steps h3 { margin-bottom: 6px; }
.lp-steps p { color: var(--ink-2); font-size: .95rem; }
.lp-steps img { width: 44px; height: 44px; position: absolute; right: 14px; top: 14px; object-fit: contain; }

/* filtros (função/classe) */
.lp-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 18px; }
.lp-filters::-webkit-scrollbar { display: none; }
.lp-filters button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.lp-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0b0c12; }
.lp-filters img { width: 18px; height: 18px; }

/* grade de personagens (campeões/classes/pets/chefes) */
.lp-roster { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .lp-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .lp-roster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .lp-roster.wide { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lp-hero-card { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--lp-dark); color: #fff; aspect-ratio: 2 / 3; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.lp-hero-card.square { aspect-ratio: 1; }
.lp-hero-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.lp-hero-card picture, .lp-hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-hero-card img { object-fit: cover; object-position: 50% 20%; }
.lp-hero-card.contain img { object-fit: contain; padding: 10%; }
.lp-hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 8, 13, .92)); }
.lp-hero-card .lp-hc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px; display: grid; gap: 2px; }
.lp-hero-card b { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.1; }
.lp-hero-card small { font-size: .76rem; opacity: .85; }
.lp-hero-card .lp-tag { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .2); }
.lp-hero-card .lp-tag img { width: 14px; height: 14px; position: static; padding: 0; }
.lp-rarity { box-shadow: inset 0 0 0 2px var(--rar, transparent); }
.lp-empty { color: var(--muted); }

/* cartões genéricos (modos, mapa, guilda, eventos) */
.lp-cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .lp-cards.n3, .lp-cards.n6, .lp-cards.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-cards.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-card { display: flex; flex-direction: column; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-card-media { aspect-ratio: 16 / 9; background: var(--lp-dark); overflow: hidden; }
.lp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.lp-card-body { padding: 16px; display: grid; gap: 6px; align-content: start; }
.lp-card-body p { color: var(--ink-2); font-size: .94rem; }
.lp-card-body .lp-meta { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.lp-card ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .9rem; }

/* ícones (itens, runas, feitiços, coleção) */
.lp-icons { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.lp-icon { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lp-icon img, .lp-icon .lp-dot { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: color-mix(in srgb, var(--lp-dark) 85%, var(--accent)); }
.lp-icon .lp-dot { display: grid; place-items: center; font-weight: 800; color: #fff; }
.lp-icon b { display: block; line-height: 1.2; }
.lp-icon small { display: block; color: var(--accent); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.lp-icon p { color: var(--ink-2); font-size: .86rem; margin-top: 3px; }
.lp-more { margin-top: 12px; }
.lp-more summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 8px 0; }
.lp-more[open] summary { margin-bottom: 10px; }
.lp-sub-h { margin: 28px 0 12px; }

/* escadas (ligas, raridades, patentes) */
.lp-tiers { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 8px; }
.lp-tiers li { flex: 1 0 116px; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 16px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--tier, var(--accent)); }
.lp-tiers img { width: 72px; height: 72px; object-fit: contain; }
.lp-tiers .lp-swatch { width: 44px; height: 44px; border-radius: 12px; background: var(--tier); box-shadow: 0 0 18px color-mix(in srgb, var(--tier) 60%, transparent); }
.lp-tiers b { font-size: .95rem; }
.lp-tiers small { color: var(--muted); font-size: .76rem; }

/* regras (jogo limpo) */
.lp-rules { display: grid; gap: 12px; }
@media (min-width: 860px) { .lp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-rule { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lp-rule .lp-rule-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--ink); }
.lp-rule p { color: var(--ink-2); font-size: .93rem; margin-top: 4px; }
.lp-ladder { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-ladder li { padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.lp-ladder li b { color: var(--accent); margin-right: 6px; }

/* FAQ */
.lp-faq { display: grid; gap: 10px; max-width: 900px; }
.lp-faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 0 16px; }
.lp-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { padding-bottom: 16px; color: var(--ink-2); }

/* ───────── página de um personagem (campeão) ───────── */
.lp-champ-hero { min-height: min(80vh, 700px); }
.lp-champ-hero .lp-hero-bg img { object-position: 30% 20%; }
.lp-role { display: inline-flex; align-items: center; gap: 6px; }
.lp-role img { width: 20px; height: 20px; }
.lp-diff { display: inline-flex; gap: 4px; vertical-align: middle; }
.lp-diff i { width: 18px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.lp-diff i.on { background: var(--accent); }
.lp-champ-grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .lp-champ-grid { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.lp-portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; background: var(--lp-dark); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-portrait img { width: 100%; height: 100%; object-fit: cover; }
.lp-lore { font-size: 1.04rem; color: var(--ink-2); white-space: pre-line; }
.lp-attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 18px; }
.lp-attrs div { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.lp-attrs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.lp-attrs dd { margin: 2px 0 0; font-weight: 700; }
.lp-skills { display: grid; gap: 12px; }
.lp-skill { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.lp-skill img { width: 64px; height: 64px; border-radius: 14px; background: var(--lp-dark); }
.lp-skill .lp-key { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lp-skill h3 { margin: 2px 0 4px; }
.lp-skill p { color: var(--ink-2); font-size: .94rem; }
.lp-skill .lp-cd { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.lp-skins { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.lp-skin { margin: 0; border-radius: 16px; overflow: hidden; background: var(--lp-dark); border: 1px solid var(--line); }
.lp-skin img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lp-skin figcaption { padding: 10px 14px; color: #fff; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.lp-skin figcaption small { opacity: .75; font-weight: 600; }
.lp-pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lp-pager a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.lp-pager img { width: 40px; height: 40px; border-radius: 10px; }

/* celular */
@media (max-width: 719px) {
  .lp-hero { min-height: 0; }
  .lp-hero-inner { padding-block: 70px 26px; }
  .lp-hero .crumbs { display: none; }
  .lp-hero .store-badges, .lp-hero .lp-howlink { display: none; }
  .lp-install { display: block; margin-top: 18px; }
  .lp-install .btn-install { width: 100%; min-height: 50px; border-radius: 14px; font-size: 1.04rem; background: var(--accent); color: #0b0c12; }
  .lp-trailer { border-radius: 14px; }
  .lp-roster { gap: 8px; }
  .lp-hero-card { border-radius: 12px; }
  .lp-hero-card b { font-size: .98rem; }
  .lp-section { padding-block: 36px; }
  .page-landing .page-tabs { top: 108px; }
  .lp-skill { grid-template-columns: 52px minmax(0, 1fr); }
  .lp-skill img { width: 52px; height: 52px; }
}
.lp-block { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.lp-block li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .92rem; }
.lp-block img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.lp-block b { color: var(--accent); }
.lp-subsection { margin-top: 36px; }
.lp-subsection .section-head h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); }
.lp-band .lp-icon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.lp-band .lp-icon p { color: rgba(255, 255, 255, .82); }
.lp-band .lp-sub-h, .lp-band .lp-subsection h2 { color: #fff; }
/* contraste (Lighthouse): texto pequeno na cor do jogo escurece no tema claro */
.page-landing { --accent-ink: color-mix(in srgb, var(--accent) 45%, var(--ink)); }
.lp-card-body .lp-meta, .lp-skill .lp-key, .lp-icon small, .lp-block b, .lp-ladder li b, .lp-more summary { color: var(--accent-ink); }
.lp-band .lp-icon small, .lp-band .lp-card-body .lp-meta { color: color-mix(in srgb, var(--accent) 70%, #fff); }
