/* ==========================================================================
   GameDicas — Identidade "Neon Esports"
   Tema escuro coeso + verde-neon de marca. Tudo CSS: nenhuma classe foi
   renomeada (o SSR em inc/data.php e o js/app.js dependem dos nomes atuais).
   Fonte display auto-hospedada (CSP font-src 'self') só nos títulos/marca.
   ========================================================================== */

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/chakra-petch-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0a0d0e;
  --bg-2: #0c0f10;
  --panel: #14181a;
  --panel-2: #1b2123;
  --text: #eef1f0;
  --muted: #8b9499;
  --line: #232b2d;
  --line-strong: #2f3a3c;
  --brand: #73ff00;
  --brand-2: #05b65b;
  --brand-ink: #0a0d0e;
  --brand-soft: rgba(115, 255, 0, .12);
  --brand-text: #a6ff63;
  --ok: #36f59d;
  --danger: #ff5c7a;
  --shadow: 0 18px 40px rgba(0, 0, 0, .5);
  --glow: 0 0 0 1px rgba(115, 255, 0, .35), 0 12px 34px rgba(115, 255, 0, .18);
  --radius: 8px;
  --font-display: "Chakra Petch", ui-sans-serif, system-ui, Segoe UI, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; background: #0e1416; }
img, video, iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header / navegação ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--brand);
  background: rgba(10, 13, 14, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.header-inner, .container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 20px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--font-display); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; font-size: 1.05rem;
}
.logo-mark {
  width: 42px; height: 42px; border-radius: 7px;
  display: grid; place-items: center; color: var(--brand-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(115, 255, 0, .35);
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, .82); padding: 10px 13px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  letter-spacing: .02em; text-transform: uppercase;
  transition: color .18s ease, background-color .18s ease;
}
.nav a:hover, .nav a.active { color: var(--brand-ink); background: var(--brand); }
.menu-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; color: #fff; background: #171b1d;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 620px;
  max-height: 720px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(115, 255, 0, .22), transparent 45%),
    radial-gradient(circle at 18% 85%, rgba(5, 182, 91, .28), transparent 52%),
    linear-gradient(120deg, #0a0d0e 0%, #11201a 55%, #0a0d0e 100%);
}
.hero .container { position: relative; padding: 76px 0 52px; }
.eyebrow {
  color: var(--brand); font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; font-size: .82rem; letter-spacing: .14em;
}
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 4.8rem); max-width: 780px; letter-spacing: .005em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
.hero p { color: #f2f8ee; max-width: 720px; font-size: 1.08rem; }
.lead { color: var(--muted); max-width: 720px; font-size: 1.08rem; }

/* ---------- Botões ---------- */
.hero-actions, .toolbar, .meta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn, .icon-btn {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 16px;
  color: #fff;
  background: var(--panel-2);
  cursor: pointer;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .02em;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.btn:hover, .icon-btn:hover { transform: translateY(-1px); border-color: var(--brand); box-shadow: 0 8px 26px rgba(0, 0, 0, .4); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border: 0; }
.btn.primary:hover { box-shadow: var(--glow); }

/* ---------- Seções / grids ---------- */
main section { padding: 38px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.section-head h2 { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .02em; }
.section-head h2::before { content: ""; width: 7px; height: 32px; background: var(--brand); border-radius: 2px; box-shadow: 0 0 14px rgba(115, 255, 0, .4); }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .code-row, .empty-state, .ad-slot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(115, 255, 0, .45); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 22px rgba(115, 255, 0, .12); }
.media-card { overflow: hidden; border: 1px solid var(--line); }
.media-card, .code-row, .empty-state { min-width: 0; }
.media-card img { height: 215px; transition: transform .25s ease; }
.media-card:hover img { transform: scale(1.04); }
.card-body, .text-card { padding: 16px; }
.card-body h3 a, .text-card h3 a { transition: color .16s ease; }
.card:hover h3 a { color: var(--brand-text); }
.card p, .article-meta, small, .meta-row { color: var(--muted); }
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  border: 1px solid rgba(115, 255, 0, .28);
  font-family: var(--font-display); font-size: .72rem;
  font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.badge.ok { color: var(--ok); background: rgba(54, 245, 157, .12); border-color: rgba(54, 245, 157, .28); }
.badge.muted { color: var(--muted); background: rgba(139, 148, 153, .12); border-color: var(--line); }
.ad-slot {
  min-height: 92px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-style: dashed;
  border-color: var(--line-strong);
  background: #101617;
  box-shadow: none;
}
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.sidebar { position: sticky; top: 96px; height: fit-content; }

/* ---------- Páginas internas / detalhe ---------- */
.page-hero { padding: 56px 0 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.toolbar { margin: 22px 0; }
.toolbar input, .toolbar select {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(115, 255, 0, .18); }
.toolbar input::placeholder { color: var(--muted); }
.toolbar input { flex: 1 1 260px; }
.toolbar select { flex: 0 1 220px; }
.article-page { max-width: 820px; margin: 0 auto; }
.article-page h1 { margin: 10px 0; font-size: clamp(2rem, 5vw, 3.6rem); }
.article-page > img { border-radius: 8px; max-height: 460px; margin: 22px 0; }
.article-content { color: #cdd5d8; font-size: 1.08rem; line-height: 1.8; font-family: var(--font-body); }
.article-content p { margin: 0 0 1.25em; }
.article-content p:last-child { margin-bottom: 0; }
.article-content a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }
.source-note { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--brand); background: var(--panel); border-radius: 0 8px 8px 0; }
.source-note p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.source-note p:last-child { margin: 0; }
.source-note a { font-weight: 700; color: var(--brand-text); text-decoration: underline; }
.detail-hero { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: center; }
.detail-hero img { border-radius: 8px; aspect-ratio: 16 / 10; }
.video { aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; margin: 20px 0; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Player de jogo (/jogar) ---------- */
.game-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 8px auto 0;
  height: min(80vh, 800px);
  background: #0a0d0e;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(115, 255, 0, .12);
}
.game-frame { width: 100%; height: 100%; border: 0; display: block; background: #0a0d0e; }
.game-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 960px; margin: 16px auto 0; }
/* Tela cheia: moldura inteira em fullscreen com o fundo dark-neon do site */
.game-stage:-webkit-full-screen { max-width: none; width: 100%; height: 100%; border: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.game-stage:fullscreen {
  max-width: none; width: 100%; height: 100%; border: 0; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 78% 22%, rgba(115, 255, 0, .18), transparent 45%),
    radial-gradient(circle at 18% 85%, rgba(5, 182, 91, .22), transparent 52%),
    linear-gradient(120deg, #0a0d0e 0%, #11201a 55%, #0a0d0e 100%);
}
.game-stage:fullscreen .game-frame { width: 100%; height: 100%; max-width: 1100px; background: transparent; }
.game-stage::backdrop { background: #0a0d0e; }

/* ---------- Pesquisa / Mapa mental (/pesquisa) ---------- */
.pesquisa-bar { display: flex; gap: 10px; margin: 18px 0 4px; max-width: 640px; }
.pesquisa-bar input {
  flex: 1 1 auto; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--panel-2); color: var(--text); padding: 10px 16px; font-size: 1rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.pesquisa-bar input::placeholder { color: var(--muted); }
.pesquisa-bar input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(115, 255, 0, .18); }
.pesquisa-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; padding: 9px 15px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-text); transform: translateY(-1px); }

.mm { max-width: 900px; margin: 0 auto; }
/* Hero estilo Gamma: capa como banner + título sobreposto */
.mm-hero { position: relative; border-radius: 20px; overflow: hidden; margin: 0 0 34px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mm-hero.has-img { background-size: cover; background-position: center; }
.mm-hero-in { padding: 40px 34px; }
.mm-hero.has-img .mm-hero-in { padding-top: 200px; }
.mm-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); margin: 10px 0 0; }
.mm-lead { color: #e6ebe8; font-size: 1.14rem; line-height: 1.7; max-width: 700px; margin: 16px 0 0; }
.mm-meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.mm-meta .badge { text-decoration: none; }
/* Cada ramo = um "slide" com banner */
.mm-ramo { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); }
.mm-ramo-banner { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 26px; background: var(--mm-cor, var(--brand)); }
.mm-ramo-banner.has-img { min-height: 190px; align-items: flex-end; background-size: cover; background-position: center; }
.mm-ramo-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--mm-cor, var(--brand)); }
.mm-ramo-banner.has-img::before { box-shadow: 0 0 18px var(--mm-cor); }
.mm-num { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(0, 0, 0, .42); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; backdrop-filter: blur(4px); }
.mm-ramo-banner h2 { position: relative; color: #fff; font-size: clamp(1.3rem, 2.8vw, 2rem); text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.mm-ramo-body { padding: 22px 26px 26px; }
.mm-resumo { color: #d2d9dc; line-height: 1.8; margin: 0 0 18px; font-size: 1.04rem; }
.mm-subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.mm-sub { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; border-top: 3px solid var(--mm-cor, var(--brand)); }
.mm-sub h3 { font-size: 1.02rem; margin-bottom: 7px; color: #fff; }
.mm-sub p { color: var(--muted); font-size: .94rem; line-height: 1.65; margin: 0; }
.mm-relacionados { margin-top: 28px; }
.mm-relacionados h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
/* Pontos-chave (destaques da IA) */
.mm-keypoints { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; padding: 22px 26px; margin: 0 0 26px; box-shadow: var(--shadow); }
.mm-keypoints h2 { font-size: 1.15rem; margin-bottom: 14px; color: #fff; }
.mm-keypoints ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.mm-keypoints li { position: relative; padding-left: 28px; color: #d2d9dc; line-height: 1.6; }
.mm-keypoints li::before { content: "▸"; position: absolute; left: 6px; top: 0; color: var(--brand); font-weight: 700; }
/* Crédito da imagem ilustrativa do ramo (licença CC do Openverse) */
.mm-credito { font-size: .72rem; color: var(--muted); margin: 0 0 10px; opacity: .85; }
/* Vídeos recomendados (rodapé — thumbnails que abrem no YouTube) */
.mm-videos { margin-top: 30px; }
.mm-videos h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.mm-videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.mm-vid { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .16s ease, transform .16s ease; }
.mm-vid:hover { border-color: var(--brand); transform: translateY(-2px); }
.mm-vid-thumb { position: relative; display: block; }
.mm-vid-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.mm-vid-play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(10, 13, 14, .72); color: var(--brand); font-size: 1rem; }
.mm-vid-tit { padding: 11px 13px; font-size: .9rem; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Loader animado da pesquisa */
.mm-loader { max-width: 560px; margin: 56px auto; text-align: center; padding: 32px 24px; }
.mm-loader-orb { width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--brand), var(--brand-2) 70%); box-shadow: 0 0 46px rgba(115, 255, 0, .45); animation: mmPulse 1.4s ease-in-out infinite; }
@keyframes mmPulse { 0%, 100% { transform: scale(.82); opacity: .65; } 50% { transform: scale(1.08); opacity: 1; } }
.mm-loader-title { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-bottom: 10px; }
.mm-loader-step { color: var(--brand-text); font-weight: 700; min-height: 1.5em; margin: 0; }
.mm-loader-bar { margin: 26px auto 0; max-width: 320px; height: 6px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.mm-loader-bar span { position: absolute; left: 0; top: 0; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: mmSlide 1.5s linear infinite; }
@keyframes mmSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }
.mm-loader-hint { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
.mm-fontes { margin-top: 28px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.mm-fontes h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.mm-fontes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mm-fontes a { color: var(--brand-text); font-size: .9rem; word-break: break-word; }
.mm-fontes a:hover { text-decoration: underline; }
@media (max-width: 560px) { .pesquisa-bar { flex-direction: column; } .pesquisa-bar .btn { width: 100%; } .mm-subs { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 12px; }
.code-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(120px, auto) auto auto; gap: 14px; align-items: center; padding: 14px; }
.code-game { display: grid; gap: 4px; }
.code-game strong { color: #fff; }
.code-game span { color: var(--muted); }
.code-game small { font-size: .78rem; }
.code-row code { color: var(--ok); font-weight: 800; overflow-wrap: anywhere; }
.code-row span { color: var(--muted); }
.empty-state { padding: 24px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; border-top: 3px solid var(--brand); background: var(--bg-2); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; padding: 34px 0; }
.footer-grid p, .footer-grid a { color: var(--muted); }
.footer-grid nav { display: grid; gap: 8px; }
.footer-grid nav strong { color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: .03em; }
.footer-grid nav a { transition: color .16s ease; }
.footer-grid nav a:hover { color: var(--brand); }
.footer-bottom { padding: 0 0 24px; }
.footer-bottom small { color: var(--muted); }

/* ---------- Avisos / formulário ---------- */
.notice { color: var(--muted); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); margin: 16px 0; }
.notice.ok { color: var(--brand-text); background: var(--brand-soft); border-color: rgba(115, 255, 0, .28); }

.contact-form { display: grid; gap: 14px; max-width: 620px; margin-top: 22px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; color: var(--text); }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-2);
  color: var(--text); padding: 11px 12px; min-height: 44px; font-weight: 400;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(115, 255, 0, .18); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { justify-self: start; }

/* ---------- Spinner / estados ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: 72px; padding: 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: #101314; flex-direction: column; align-items: stretch; }
  .menu-open .nav { display: flex; }
  .grid.three, .grid.two, .content-layout, .detail-hero, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 620px; }
  .sidebar { position: static; height: auto; }
  .code-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner, .container { width: min(100% - 20px, 1120px); }
  .header-inner { min-height: 62px; gap: 10px; }
  .logo { font-size: .9rem; }
  .logo-mark { width: 36px; height: 36px; }
  .nav { left: 10px; right: 10px; top: 64px; }
  .hero { min-height: 520px; max-height: none; }
  .hero .container { padding: 58px 0 34px; }
  h1 { font-size: clamp(2rem, 12vw, 3rem); }
  main section { padding: 26px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .grid { gap: 14px; }
  .media-card img { height: auto; aspect-ratio: 16 / 9; }
  .card-body, .text-card { padding: 14px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar input, .toolbar select, .toolbar .btn { width: 100%; flex: 1 1 auto; }
  .page-hero { padding: 34px 0 12px; }
  .article-page h1 { font-size: clamp(1.75rem, 10vw, 2.5rem); }
  .article-page > img { max-height: none; aspect-ratio: 16 / 9; }
  .detail-hero { gap: 16px; }
  .code-row { gap: 10px; }
  .game-stage { height: min(74vh, 600px); border-radius: 10px; }
}

/* ---------- Acessibilidade: respeita "reduzir movimento" ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .card:hover, .btn:hover, .icon-btn:hover, .media-card:hover img { transform: none; }
}
