:root {
  --bg: #0b1020;
  --bg-2: #12182c;
  --card: #171e33;
  --line: rgba(214, 224, 255, 0.12);
  --text: #e7eefc;
  --muted: #a9b6d4;
  --red: #ff3b4e;
  --red-2: #ffb3ba;
  --blue: #3d7eff;
  --gold: #f0c14d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at -10% -10%, rgba(255, 59, 78, 0.22), transparent 60%),
    radial-gradient(800px 480px at 110% 0%, rgba(61, 126, 255, 0.2), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 18px/1.65 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: #9ec0ff; }
a:hover { color: white; }
img { max-width: 100%; }
.skip {
  position: absolute; left: 12px; top: -40px; background: white; color: #111; padding: 8px 12px;
}
.skip:focus { top: 12px; z-index: 5; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top {
  position: sticky; top: 0; z-index: 4;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 16px 20px; min-height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: white; text-decoration: none; font-weight: 800; letter-spacing: 0.04em; font-size: 22px;
}
.logo-mark { width: 28px; height: 28px; border-radius: 7px; display: block; flex: none; }
.logo span { color: var(--red); }
#menu { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: none; margin-left: auto; align-items: center; }
nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 650; }
nav a.is-on, nav a:hover { color: white; }
.hero { padding: 56px 0 20px; }
.kicker {
  color: var(--red-2); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.03em; margin: 8px 0 16px; }
.lead { font-size: 20px; color: var(--muted); max-width: 740px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 28px; align-items: end; }
.map {
  background: linear-gradient(180deg, rgba(61, 126, 255, 0.16), rgba(23, 30, 51, 0.9));
  border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 8px; box-shadow: var(--shadow);
}
.map a { display: block; text-decoration: none; color: var(--text); padding: 12px 0; border-top: 1px solid var(--line); }
.map a strong { display: block; }
.map a span { color: var(--muted); font-size: 14px; }
.section { padding: 28px 0; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 12px; }
h3 { font-size: 22px; margin: 0 0 8px; }
.chapter {
  display: grid; grid-template-columns: 92px 1fr; gap: 8px 18px;
  background: rgba(23, 30, 51, 0.72); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; margin: 16px 0;
}
.num { font-size: 42px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--red); line-height: 1; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.card, .article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.card p, .prose p { color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.article-list { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.article-card { display: block; text-decoration: none; color: inherit; }
.shot { margin: 20px 0 4px; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 18px; border: 1px solid var(--line); background: #0d1324;
}
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.hero-visual { margin-top: 28px; }
.card img, .article-card img {
  display: block; width: 100%; height: 160px; object-fit: cover;
  border-radius: 12px; margin: 0 0 12px; border: 1px solid var(--line);
}
.article-card:hover { border-color: rgba(61, 126, 255, 0.7); }
.prose { max-width: 780px; }
.prose ul, .card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.note {
  border-left: 3px solid var(--gold); padding: 8px 14px; color: var(--muted); margin: 16px 0;
}
.prose { overflow-wrap: break-word; }
table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 12px 0 18px; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: white; font-size: 14px; }
td { color: var(--muted); }
.faq-wrap { margin: 12px auto 8px; }
.faq {
  background: rgba(23, 30, 51, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 22px 12px;
}
.faq h2 { margin: 16px 0 4px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 16px 32px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.faq p { color: var(--muted); margin: 0 0 16px; max-width: 70ch; }
.foot { margin-top: 40px; border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.9fr 0.8fr; gap: 22px; }
.foot p, .foot a { color: var(--muted); }
.foot a { display: block; text-decoration: none; margin: 4px 0; }
.foot-title { color: white; font-weight: 700; }
.foot a.cta { color: white; display: inline-flex; margin-top: 8px; }
.updated { color: var(--muted); font-size: 14px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 18px; border-radius: 999px;
  background: var(--blue); color: white; text-decoration: none;
  font-size: 16px; font-weight: 800; letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(61, 126, 255, 0.28);
}
.cta:hover, .cta:focus-visible { color: white; background: #6598ff; }
.cta:focus-visible, .btn:focus-visible, nav a:focus-visible, .logo:focus-visible {
  outline: 3px solid #f0c14d; outline-offset: 3px;
}
.cta-row { margin: 18px 0 0; }
.cta-header { flex: none; }
.cta-nav { display: none; }
.cta-large { min-width: min(100%, 280px); }
.cta-band { padding: 10px 0 36px; }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(90deg, rgba(61, 126, 255, 0.2), rgba(23, 30, 51, 0.9));
  border: 1px solid var(--line); border-radius: 22px; padding: 22px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-sticky { display: none; }
.article-card::after { content: "Abrir verbete"; display: inline-block; margin-top: 8px; color: #9ec0ff; font-size: 14px; font-weight: 700; }
.game-card {
  background: linear-gradient(180deg, rgba(255, 59, 78, 0.14), rgba(23, 30, 51, 0.95));
  border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin-top: 8px;
}
.game-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--muted); }
.game-card .game-mult { color: white; font-size: clamp(56px, 10vw, 92px); font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 8px; line-height: 0.95; }
.game-mult.is-crash { color: var(--red); }
.game-mult.is-win { color: #8dffb5; }
.game-track { height: 14px; background: #0d1324; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.game-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--red)); }
.game-actions, .game-end-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.btn { appearance: none; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer; min-height: 48px; }
.btn-primary { background: white; color: #111; border: 0; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.game-end { margin-top: 16px; padding: 16px; border-radius: 18px; background: #10182e; border: 1px solid rgba(61, 126, 255, 0.5); }
.game-end[hidden] { display: none; }
.game-end p { color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid, .cards, .foot-grid, .chapter, .cta-band-inner, .article-list { grid-template-columns: 1fr; }
  .cta-band-inner { display: grid; }
  .burger { display: inline-flex !important; color: white; font-weight: 700; }
  .burger span { border: 1px solid #9ec0ff; border-radius: 999px; padding: 6px 12px; background: #1a2748; }
  .cta-header { display: none; }
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #0e1428; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  #menu:checked ~ nav { display: grid; }
  nav a { padding: 8px 0; }
  .cta-nav { display: inline-flex; margin-top: 8px; }
  .cta-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 16, 32, 0.96); border-top: 1px solid var(--line);
  }
  .cta-sticky .cta { width: 100%; }
  body { padding-bottom: 78px; }
  .foot { padding-bottom: 24px; }
}
