/* Plain pages served next to the game (privacidade.html, termos.html): no build step, no fonts to load. */
:root {
  color-scheme: dark;
  --bg: #120d31;
  --panel: rgba(36, 28, 92, 0.55);
  --line: rgba(150, 140, 255, 0.18);
  --text: #e6e4fb;
  --muted: #a7a3d6;
  --accent: #ffb52e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(120% 70% at 50% 0%, #2a1f6e 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 16px 0;
}

/* The page in the other languages */
.langs {
  display: flex;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}

.langs a,
.langs span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.langs a:hover,
.langs a:focus-visible {
  color: var(--text);
  border-color: rgba(150, 140, 255, 0.45);
}

.langs span {
  color: var(--text);
  background: rgba(122, 162, 255, 0.16);
}

.home {
  color: var(--accent);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* The logo picture (public/brand/logo-wide.webp) */
.home img {
  display: block;
  width: auto;
  height: 46px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

main {
  max-width: 760px;
  margin: 18px auto 48px;
  padding: 28px 28px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

h1 {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.2;
}

.updated {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

h2 {
  margin: 30px 0 8px;
  font-size: 19px;
  color: var(--accent);
}

p,
li {
  overflow-wrap: anywhere;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

a {
  color: #9fc4ff;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: rgba(10, 8, 30, 0.6);
  font: 700 13px/1.5 system-ui, sans-serif;
  text-align: center;
}

/* Guide pages: weapon cards (armas.html) and match pictures (modos.html) */
.weapon {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 8, 30, 0.35);
}

.weapon-pic {
  flex: 0 0 170px;
  display: grid;
  place-items: center;
  min-height: 96px;
  border-radius: 10px;
  background: radial-gradient(closest-side, rgba(120, 110, 255, 0.22), transparent);
}

.weapon-pic img {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
}

.weapon-body {
  flex: 1;
  min-width: 0;
}

.weapon h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.weapon h3 small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.weapon p {
  margin: 8px 0 0;
}

.stats {
  display: grid;
  gap: 4px;
  margin: 0 0 6px;
  max-width: 380px;
}

.stats div {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
}

.stats dt {
  color: var(--muted);
  font-size: 13px;
}

.stats dd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #8f84ff, #b9b2ff);
}

.stats b {
  min-width: 60px;
  font-size: 14px;
  text-align: right;
}

.tip {
  color: var(--muted);
  font-size: 14px;
}

figure {
  margin: 14px 0 6px;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 32px;
  color: var(--muted);
  font-size: 14px;
}

/* The profiles (tools/make-pages.ts, src/menu/social.ts) */
footer .social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
}

footer .social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

footer .social a:hover {
  color: #fff;
}

/* The maps page: the top view, crisp, beside the text */
.map .weapon-pic {
  flex-basis: 190px;
  padding: 8px;
  background: rgba(10, 8, 30, 0.5);
}

.map .weapon-pic img {
  max-height: 190px;
  image-rendering: pixelated;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .weapon {
    flex-direction: column;
  }
  .weapon-pic {
    flex-basis: auto;
    width: 100%;
  }
  main {
    margin: 14px 16px 36px;
    padding: 20px 18px 10px;
  }
  h1 {
    font-size: 25px;
  }
}
