:root {
  color-scheme: light;
  --bg: #f4f6f2;
  --panel: #ffffff;
  --panel-2: #111516;
  --text: #101314;
  --muted: #687076;
  --line: #dfe5dc;
  --brand: #73ff00;
  --brand-2: #05b65b;
  --ok: #05b65b;
  --danger: #ff5c7a;
  --shadow: 0 18px 38px rgba(18, 22, 20, .1);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

* { 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;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; background: #152235; }
img, video, iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 4px solid var(--brand);
  background: rgba(12, 15, 16, .96);
  backdrop-filter: blur(14px);
}
.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: white; font-weight: 950; letter-spacing: 0; text-transform: uppercase; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 6px;
  display: grid; place-items: center; color: #101314; font-weight: 950;
  background: var(--brand);
  box-shadow: none;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.82); padding: 10px 12px; border-radius: 6px; font-weight: 850; font-size: .94rem; text-transform: uppercase; }
.nav a:hover, .nav a.active { color: #101314; 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: white; background: #171b1d; }

.hero {
  min-height: 620px;
  max-height: 720px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  /* Fundo próprio (sem imagens de terceiros): gradiente da marca GameDicas. */
  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, #0c0f10 0%, #11201a 55%, #0c0f10 100%);
}
.hero .container { position: relative; padding: 76px 0 52px; }
.eyebrow { color: var(--brand); font-weight: 950; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 4.8rem); max-width: 780px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.08rem; }
.hero p { color: #f2f8ee; max-width: 720px; font-size: 1.08rem; }
.lead { color: #465058; max-width: 720px; font-size: 1.08rem; }
.hero-actions, .toolbar, .meta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn, .icon-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  color: white;
  background: #111516;
  cursor: pointer;
  font-weight: 800;
}
.btn.primary { background: var(--brand); color: #101314; border: 0; }
.btn:hover, .icon-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(17, 21, 22, .18); }

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; }
.section-head h2::before { content: ""; width: 7px; height: 32px; background: var(--brand); border-radius: 2px; }
.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);
}
.media-card { overflow: hidden; border: 0; }
.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.035); }
.card-body, .text-card { padding: 16px; }
.card p, .article-meta, small, .meta-row { color: var(--muted); }
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9ffd7;
  color: #245c00;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.badge.ok { color: var(--ok); background: rgba(54, 245, 157, .12); }
.badge.muted { color: var(--muted); background: rgba(158, 177, 197, .12); }
.ad-slot {
  min-height: 92px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-style: dashed;
  background: #eef2eb;
}
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.sidebar { position: sticky; top: 96px; height: fit-content; }

.page-hero { padding: 56px 0 18px; border-bottom: 1px solid var(--line); background: #ffffff; }
.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);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
}
.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: #252b2f; font-size: 1.05rem; }
.source-note { margin-top: 28px; padding: 18px 20px; border-left: 4px solid var(--brand); background: #f4f6f7; 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(--fg); 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; }
.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: #101314; }
.code-game span { color: var(--muted); }
.code-game small { font-size: .78rem; }
.code-row code { color: var(--ok); font-weight: 900; overflow-wrap: anywhere; }
.code-row span { color: var(--muted); }
.empty-state { padding: 24px; color: var(--muted); }

.site-footer { margin-top: 48px; border-top: 4px solid var(--brand); background: #101314; color: white; }
.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 a:hover { color: var(--brand); }
.footer-bottom { padding: 0 0 24px; }
.footer-bottom small { color: var(--muted); }

.notice { color: var(--muted); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f4f6f7; margin: 16px 0; }
.notice.ok { color: #245c00; background: #e9ffd7; border-color: #b9e89a; }

.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); border-radius: 8px; background: #fff;
  color: var(--text); padding: 11px 12px; min-height: 44px; font-weight: 400;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { justify-self: start; }

@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; }

@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; }
}
