:root {
  --bg: #080707;
  --panel: #131010;
  --line: #2e1c1b;
  --text: #e8e3dc;
  --muted: #9b918a;
  --accent: #d91a1a;
  --accent-2: #ff6a1f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.65;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1000px, 92%); margin: 0 auto; }

/* Topo */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 7, 7, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}
.logo span { color: var(--accent); }
nav a {
  color: var(--muted);
  margin-left: 18px;
  font-size: 0.95rem;
}
nav a:hover { color: var(--text); text-decoration: none; }

/* Hero com o banner */
.hero {
  padding: 130px 0 110px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(8, 7, 7, 0.55), rgba(8, 7, 7, 0.85) 80%, var(--bg)),
    url("banner.png") center / cover no-repeat,
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}
.hero h1 span { color: var(--accent); }
.hero p {
  max-width: 620px;
  margin: 18px auto 32px;
  color: #c9c0b8;
  font-size: 1.1rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 22px rgba(217, 26, 26, 0.35);
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.2); text-decoration: none; }
.btn.ghost { background: rgba(8, 7, 7, 0.5); color: var(--text); border-color: #5a3a38; box-shadow: none; margin-left: 10px; }
.btn.ghost:hover { border-color: var(--accent-2); }

/* Seções */
section { padding: 70px 0; border-bottom: 1px solid var(--line); }
section h2 {
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-top: 10px;
  box-shadow: 0 0 10px rgba(217, 26, 26, 0.6);
}
section .lead { color: var(--muted); margin: 16px 0 30px; max-width: 700px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.card:hover { border-color: #5a2321; }
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* História */
.chapter {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
}
.chapter-date {
  padding: 18px 26px 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.lore-img {
  display: block;
  width: calc(100% - 52px);
  margin: 16px 26px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.lore { padding: 22px 26px 26px; }
.lore p { margin-bottom: 16px; color: #cfc7bf; }
.lore p:last-child { margin-bottom: 0; }
.lore strong { color: var(--text); }
.lore em { color: #e8e3dc; }
.lore p.punch {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  border-left: 3px solid var(--accent-2);
  padding-left: 16px;
  margin: 24px 0;
}

.lore blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  background: #0b0909;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  color: #d8d0c8;
  line-height: 1.8;
}

/* Regras */
ol.rules { counter-reset: r; list-style: none; display: grid; gap: 14px; }
ol.rules li {
  counter-increment: r;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 16px 18px 16px 60px;
  position: relative;
}
ol.rules li::before {
  content: counter(r);
  position: absolute;
  left: 18px;
  top: 14px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent);
}
ol.rules li strong { display: block; margin-bottom: 2px; }
ol.rules li span { color: var(--muted); font-size: 0.95rem; }

/* Passo a passo */
ol.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
ol.steps li {
  counter-increment: s;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px 16px 62px;
  position: relative;
}
ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #080707;
  font-weight: 800;
  display: grid;
  place-items: center;
}

code {
  background: #050404;
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 4px;
  color: #ff9a55;
  font-family: Consolas, monospace;
}

footer {
  padding: 34px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  nav a { margin-left: 12px; font-size: 0.85rem; }
  .btn.ghost { margin: 12px 0 0; }
  .hero { padding: 90px 0 80px; }
}
