/* Capy of Gods — sitio oficial (press kit + wiki). Tema oscuro, acentos brasa. */
@font-face {
  font-family: "Jersey10";
  src: url("../assets/fonts/Jersey10-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #100e18;
  --bg-2: #181527;
  --bg-3: #221d35;
  --line: #34304a;
  --text: #e9e4f2;
  --muted: #a89fbd;
  --ember: #ff8c1a;
  --ember-2: #ffb347;
  --crimson: #c8322b;
  --gold: #f2c14e;
  --green: #5ec26a;
  --blue: #4fb3ff;
  --purple: #b06cff;
  --radius: 10px;
  --maxw: 1120px;
  --pixel: "Jersey10", "Segoe UI", system-ui, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--ember-2); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--pixel);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}
h1 { font-size: 3.4rem; }
h2 { font-size: 2.5rem; color: var(--ember-2); margin-top: 1.4em; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; color: var(--gold); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
code, kbd {
  font-family: Consolas, "Courier New", monospace;
  background: var(--bg-3);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
kbd { border: 1px solid var(--line); border-bottom-width: 3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 1.5rem; padding-bottom: 4rem; }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(16, 14, 24, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
header.site .brand img { height: 34px; width: auto; display: block; }
header.site nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
header.site nav a {
  font-family: var(--pixel); font-size: 1.35rem; color: var(--text);
  padding: 6px 12px; border-radius: 6px;
}
header.site nav a:hover, header.site nav a.active { background: var(--bg-3); text-decoration: none; color: #fff; }
header.site nav a.steam { background: var(--crimson); color: #fff; }
header.site nav a.steam:hover { background: #e0463e; }
header.site nav a.lang { color: var(--muted); font-size: 1.15rem; border: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--pixel); font-size: 1.5rem; line-height: 1;
  padding: 12px 22px; border-radius: 8px; border: 2px solid transparent;
  background: var(--ember); color: #1a0d00; text-decoration: none;
  box-shadow: 0 4px 0 #a75200;
}
.btn:hover { background: var(--ember-2); color: #1a0d00; text-decoration: none; transform: translateY(1px); box-shadow: 0 3px 0 #a75200; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: var(--ember); color: #fff; }
.btn.steam { background: var(--crimson); color: #fff; box-shadow: 0 4px 0 #6e1410; }
.btn.steam:hover { background: #e0463e; box-shadow: 0 3px 0 #6e1410; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: #0a0812 url("../assets/brand/key_art.jpg") center 30% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,24,0.15) 0%, rgba(16,14,24,0.55) 55%, rgba(16,14,24,0.98) 100%);
}
.hero .wrap { position: relative; padding: 70px 20px 44px; text-align: center; }
.hero .logo { width: min(640px, 90%); margin: 0 auto 12px; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.7)); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); text-shadow: 0 3px 12px #000; margin-bottom: 0.2em; }
.hero p.lead { font-size: 1.2rem; max-width: 720px; margin: 0 auto 1.4em; text-shadow: 0 2px 8px #000; color: #f4f0fa; }
.hero .btn-row { justify-content: center; }
.hero .note { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

/* Cards */
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; position: relative;
}
.card h3 { margin-top: 0; }
.card.feature .icon { font-size: 1.8rem; color: var(--ember); margin-bottom: 4px; }
.entity { display: flex; gap: 14px; align-items: flex-start; }
.entity .ico {
  flex: 0 0 auto; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border-radius: 8px; border: 1px solid var(--line); overflow: hidden;
}
.entity .ico img { max-width: 64px; max-height: 64px; width: auto; height: auto; image-rendering: pixelated; }
.entity .ico.big { width: 112px; height: 112px; }
.entity .ico.big img { max-width: 104px; max-height: 104px; }
.entity .body { min-width: 0; flex: 1; }
.entity .body h3 { margin-bottom: 4px; }
.entity .body p { margin: 0 0 0.5em; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.badge {
  display: inline-block; font-family: var(--pixel); font-size: 1rem; line-height: 1; padding: 4px 8px;
  border-radius: 4px; background: var(--bg-3); color: var(--muted); border: 1px solid var(--line);
}
.badge.demo { color: var(--green); border-color: rgba(94,194,106,0.4); }
.badge.full { color: var(--purple); border-color: rgba(176,108,255,0.4); }
.badge.rare { color: var(--blue); } .badge.epic { color: var(--purple); } .badge.legendary { color: var(--gold); }
.badge.cost { color: var(--crimson); }
.unlock { font-size: 0.92rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.unlock strong { color: var(--gold); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--pixel); font-size: 1.2rem; font-weight: 400; color: var(--ember-2); }
tr:hover td { background: rgba(255,255,255,0.02); }
.table-wrap { overflow-x: auto; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.2s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); padding: 6px 8px; }
figure { margin: 0 0 1.4rem; }
figure img { border-radius: 8px; border: 1px solid var(--line); }
figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.video { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Fact sheet */
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { font-family: var(--pixel); font-size: 1.25rem; color: var(--ember-2); }
.facts dd { margin: 0; }

/* Wiki layout */
.wiki { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.wiki aside { position: sticky; top: 80px; }
.wiki aside ul { list-style: none; margin: 0; padding: 0; }
.wiki aside li a {
  display: block; padding: 7px 12px; border-radius: 6px; color: var(--text); font-family: var(--pixel); font-size: 1.3rem;
}
.wiki aside li a:hover, .wiki aside li a.active { background: var(--bg-3); text-decoration: none; color: #fff; }
.wiki aside .title { font-family: var(--pixel); font-size: 1.1rem; color: var(--muted); padding: 0 12px 6px; text-transform: uppercase; }
.wiki article h1 { font-size: 2.8rem; }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin-bottom: 1.5rem; }
.toc ul { margin: 0; padding-left: 1.2em; columns: 2; }
.callout { background: var(--bg-2); border-left: 4px solid var(--ember); border-radius: 6px; padding: 12px 16px; margin: 1rem 0; }
.callout.warn { border-color: var(--crimson); }
.hub-card { display: block; color: var(--text); }
.hub-card:hover { text-decoration: none; border-color: var(--ember); }
.hub-card h3 { color: var(--ember-2); }
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 2rem; }
footer.site .wrap { padding: 28px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; font-size: 0.92rem; color: var(--muted); }
footer.site h4 { margin-bottom: 0.4em; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 2px 0; }
footer.site .studio img { width: 64px; height: 64px; image-rendering: pixelated; vertical-align: middle; margin-right: 10px; }

@media (max-width: 800px) {
  .wiki { grid-template-columns: 1fr; }
  .wiki aside { position: static; }
  .wiki aside ul { display: flex; flex-wrap: wrap; gap: 4px; }
  header.site nav a { font-size: 1.15rem; padding: 5px 8px; }
  header.site .wrap { height: auto; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .toc ul { columns: 1; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
}
