/* ============================================================
   GamaJogos — sistema visual compartilhado
   Marca-mãe: azul tech confiável  ·  jogos trazem sua cor própria
   ============================================================ */

/* ---- Reset enxuto ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

/* ---- Tokens ---- */
:root {
  /* canvas */
  --bg:        #080d1c;
  --bg-2:      #0b1124;
  --surface:   #121a36;
  --surface-2: #18224a;
  --line:      rgba(150, 175, 255, 0.12);
  --line-strong: rgba(150, 175, 255, 0.22);

  /* marca azul */
  --brand:      #3b7bf6;
  --brand-2:    #74a6ff;
  --brand-deep: #1c3da6;
  --brand-glow: rgba(59, 123, 246, 0.45);

  /* texto */
  --ink:    #eef1fb;
  --ink-2:  #c3cce6;
  --muted:  #8d98ba;
  --faint:  #66739a;

  /* calor dos jogos (Truco) */
  --gold:   #e8b753;
  --gold-2: #f4d089;
  --red:    #d84a3b;
  --felt:   #1f7a4d;
  --cream:  #f6ead0;

  /* métricas */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 11px;

  --shadow:    0 2px 4px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.7);
  --shadow-lg: 0 30px 80px -28px rgba(0,0,0,.85);

  --ff-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* ---- Base ---- */
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

/* ambient glow no topo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(59,123,246,.22), transparent 60%),
    radial-gradient(700px 500px at 6% 4%, rgba(116,166,255,.10), transparent 55%),
    var(--bg);
}

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.center { text-align: center; }

/* ---- Eyebrow / kicker ---- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-display);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-2);
}
.kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.kicker.gold { color: var(--gold-2); }
.kicker.gold::before { background: linear-gradient(90deg, var(--gold), transparent); }

.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8,13,28,.86), rgba(8,13,28,.6));
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 9px 14px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: .96rem;
  transition: background .18s, color .18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(150,175,255,.07); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-word { font-family: var(--ff-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }
.logo-word .b { color: var(--ink); }
.logo-word .j {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-face {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(116, 166, 255, .45);
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

/* ============================================================
   Botões
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 13px; border: 1px solid transparent;
  transition: transform .14s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #06122e;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 30px -10px var(--brand-glow);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 40px -10px var(--brand-glow); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(150,175,255,.06); color: var(--ink); border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(150,175,255,.12); border-color: var(--brand); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #3a2806;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 30px -12px rgba(232,183,83,.5);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 16px 42px -12px rgba(232,183,83,.55); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-sub { font-family: var(--ff-body); font-weight: 500; font-size: .82rem; opacity: .8; margin-left: -3px; }

/* ============================================================
   Cards / superfícies
   ============================================================ */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* game card (vitrine) */
.game-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.game-card.soon { opacity: .92; }

.game-card__art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.game-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* tags / chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-weight: 600;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-2);
  background: rgba(150,175,255,.05);
}
.chip.live { color: #6ee7a0; border-color: rgba(110,231,160,.35); background: rgba(110,231,160,.08); }
.chip.live .dot { width: 7px; height: 7px; border-radius: 50%; background: #44dd86; box-shadow: 0 0 8px #44dd86; }
.chip.gold { color: var(--gold-2); border-color: rgba(232,183,83,.4); background: rgba(232,183,83,.08); }
.chip.soon { color: var(--muted); }

/* ---- Feature / icon tiles ---- */
.tile {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tile__ico {
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,123,246,.12); border: 1px solid rgba(59,123,246,.3);
  color: var(--brand-2); font-size: 22px;
}
.tile h3 { font-size: 1.18rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .98rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

/* ============================================================
   Long-form / artigo (regras, privacidade, sobre)
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4em; margin-bottom: .5em; font-size: clamp(1.5rem, 3vw, 2.1rem); scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.8em; margin-bottom: .4em; color: var(--brand-2); }
.prose p { color: var(--ink-2); margin-bottom: 1.05em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 28px; color: var(--ink-2); }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg);
  background: var(--brand);
}
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 40px; color: var(--ink-2); counter-increment: li; }
.prose ol li::before {
  content: counter(li); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: .85rem;
  color: var(--brand-2); background: rgba(59,123,246,.12); border: 1px solid rgba(59,123,246,.3);
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }

.callout {
  border-left: 3px solid var(--gold);
  background: rgba(232,183,83,.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 1.6em 0;
}
.callout p { margin: 0; color: var(--cream); }
.callout .callout-t { font-family: var(--ff-display); font-weight: 600; color: var(--gold-2); display:block; margin-bottom: 4px; font-size: .82rem; letter-spacing:.08em; text-transform: uppercase; }

/* índice lateral (rules) */
.toc { position: sticky; top: 96px; }
.toc ul { display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block; padding: 7px 14px; border-radius: 9px;
  color: var(--muted); font-size: .92rem; border-left: 2px solid transparent;
  transition: color .15s, background .15s;
}
.toc a:hover { color: var(--ink); background: rgba(150,175,255,.06); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.12rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; position: relative;
  border: 1px solid var(--line-strong); background: rgba(150,175,255,.05); transition: background .2s;
}
.faq summary .pm::before, .faq summary .pm::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--brand-2);
  transition: transform .2s, opacity .2s;
}
.faq summary .pm::before { width: 12px; height: 2px; }
.faq summary .pm::after { width: 2px; height: 12px; }
.faq details[open] summary .pm::after { opacity: 0; transform: rotate(90deg); }
.faq details[open] summary .pm { background: rgba(59,123,246,.18); }
.faq details > div { padding: 0 4px 24px; color: var(--ink-2); max-width: 760px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(4,8,18,.6));
  padding-block: 56px 30px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-family: var(--ff-display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink-2); font-size: .96rem; transition: color .15s; }
.footer-col a:hover { color: var(--brand-2); }
.footer-about { max-width: 320px; }
.footer-about p { color: var(--muted); font-size: .92rem; margin-top: 14px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: .86rem;
}

/* ============================================================
   Page hero / breadcrumb para páginas internas
   ============================================================ */
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(20px, 3vw, 36px); }
.crumb { display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: .88rem; margin-bottom: 22px; }
.crumb a:hover { color: var(--brand-2); }
.crumb .sep { opacity: .5; }

/* utilidades */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap-flex { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.hidden-mobile { }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; max-width: none; }

  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    transform: translateY(-130%); transition: transform .28s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
