/* Last Horizon — site oficial de download.
   CSS escrito à mão, sem frameworks. Tokens alinhados com a interface do jogo. */

:root {
  --bg: #0b0d0f;
  --bg2: #0f1215;
  --panel: rgba(14, 17, 20, .72);
  --panel-solid: #0f1215;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #e8e5de;
  --text2: #c4c1ba;
  --dim: #8e9294;
  --accent: #d9a441;
  --accent-hi: #e8b857;
  --accent-ink: #17120a;
  --accent2: #6fa7c2;
  --warn: #c9624b;
  --ok: #7fa878;
  --radius: 3px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 64px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-c: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Consolas', 'SFMono-Regular', monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-c); font-weight: 700; line-height: 1.05; letter-spacing: .01em; }
strong { color: var(--text); font-weight: 600; }
code { font-family: var(--mono); font-size: .9em; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 2px; padding: .05em .35em; color: var(--text); word-break: break-word; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
::selection { background: rgba(217, 164, 65, .35); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; font: 600 14px var(--font-c); letter-spacing: .1em; }
.skip:focus { top: 10px; color: var(--accent-ink); }

/* ------------------------------------------------------------------ header */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled, body.nav-open .topbar, .topbar.solid {
  background: rgba(11, 13, 15, .86);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: var(--line);
}
.topbar-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); margin-right: auto; }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font: 700 19px/1 var(--font-c); letter-spacing: .16em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; color: var(--dim);
  font: 600 14px/1 var(--font-c); letter-spacing: .14em; white-space: nowrap;
  transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="true"], .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="true"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; background: var(--accent); }
.nav a.nav-cta { margin-left: 10px; color: var(--accent-ink); background: var(--accent); padding: 10px 16px; }
.nav a.nav-cta:hover { background: var(--accent-hi); color: var(--accent-ink); }
.nav a.nav-cta::after { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px; padding: 12px 10px;
  background: none; border: 0; color: var(--text); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* conta no cabeçalho: ENTRAR / CRIAR CONTA ou o nome do operador com menu (js/conta.js) */
.nav-conta { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav a.nav-criar { color: var(--text); border: 1px solid var(--line2); padding: 9px 14px; }
.nav a.nav-criar:hover { border-color: var(--accent2); color: #fff; }
.nav a.nav-criar::after { display: none; }
.conta-menu { position: relative; display: flex; align-items: center; }
.conta-btn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 8px 12px;
  background: none; border: 1px solid var(--line2); border-radius: var(--radius); color: var(--text); cursor: pointer;
  font: 600 14px/1 var(--font-c); letter-spacing: .12em; text-transform: uppercase;
}
.conta-btn:hover, .conta-menu.aberto .conta-btn { border-color: var(--accent2); color: #fff; }
.conta-btn svg { width: 16px; height: 16px; flex: none; color: var(--accent2); }
.conta-btn .conta-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-btn .caret { width: 7px; height: 7px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.conta-menu.aberto .conta-btn .caret { transform: translateY(1px) rotate(-135deg); }
.conta-pop {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; display: none; flex-direction: column;
  background: rgba(15, 18, 21, .98); border: 1px solid var(--line2); border-radius: var(--radius);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8); padding: 6px;
}
.conta-menu.aberto .conta-pop { display: flex; }
.conta-pop-nome { display: none; }
.nav .conta-pop a, .conta-pop button {
  display: block; width: 100%; text-align: left; padding: 11px 12px; border: 0; background: none; color: var(--text2); cursor: pointer;
  font: 600 14px/1 var(--font-c); letter-spacing: .14em;
}
.nav .conta-pop a:hover, .conta-pop button:hover, .nav .conta-pop a:focus-visible, .conta-pop button:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; }
.nav .conta-pop a::after { display: none; }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav-conta { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav a.nav-criar { padding: 15px 2px; border: 0; border-bottom: 1px solid var(--line); }
  .conta-menu { display: block; }
  .conta-btn { display: none; }
  .conta-pop { position: static; display: flex; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .conta-pop-nome { display: block; padding: 18px 2px 6px; font: 600 13px/1.2 var(--font-c); letter-spacing: .16em; color: var(--dim); }
  .conta-pop-nome b { color: var(--accent); font-weight: 700; }
  .nav .conta-pop a, .conta-pop button { padding: 15px 2px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav .conta-pop a:hover, .conta-pop button:hover { background: none; }
  .nav {
    position: fixed; top: var(--head-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  body.nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav a { padding: 15px 2px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="true"]::after { left: 0; right: auto; width: 3px; top: 14px; bottom: 14px; height: auto; }
  .nav a[aria-current="true"] { padding-left: 14px; }
  .nav a.nav-cta { margin: 16px 0 0; text-align: center; border-bottom: 0; }
}
@media (max-width: 380px) { .brand-name { font-size: 16px; letter-spacing: .12em; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative; display: inline-flex; flex-direction: column; justify-content: center; gap: 3px;
  min-width: 260px; padding: 14px 24px 13px; border: 1px solid transparent; border-radius: var(--radius);
  text-align: left; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-label { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1.05 var(--font-c); letter-spacing: .1em; }
.btn-label svg { width: 18px; height: 18px; flex: none; }
.btn-meta { font: 500 13px/1.3 var(--font); letter-spacing: .02em; opacity: .78; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(217, 164, 65, .6); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-secondary { background: rgba(14, 17, 20, .62); color: var(--text); border-color: var(--line2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-secondary:hover { color: #fff; border-color: var(--accent2); background: rgba(20, 26, 31, .8); }
.btn-secondary .btn-meta { color: var(--dim); opacity: 1; }
/* cantos em colchete — detalhe de interface tática */
.btn::before, .btn::after { content: ''; position: absolute; width: 9px; height: 9px; border: 2px solid currentColor; opacity: .45; pointer-events: none; }
.btn::before { top: 4px; left: 4px; border-right: 0; border-bottom: 0; }
.btn::after { bottom: 4px; right: 4px; border-left: 0; border-top: 0; }
.btn-sm { min-width: 0; padding: 10px 16px; }
.btn-sm .btn-label { font-size: 16px; }
@media (max-width: 560px) { .btn { width: 100%; min-width: 0; } }

/* ------------------------------------------------------------------ image slots */
/* [data-img] recebe a primeira imagem da lista que carregar (js/site.js); até lá, fica a arte vetorial. */
.shot {
  position: relative; overflow: hidden; background-color: #111518;
  background-size: cover; background-position: center;
}
.shot .ph-art { transition: opacity .8s ease, visibility 0s linear 0s; }
.shot.has-img .ph-art { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--head-h) + 48px); isolation: isolate; overflow: hidden;
}
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 32% at 72% 66%, rgba(233, 176, 78, .55), rgba(217, 164, 65, .12) 55%, transparent 75%),
    radial-gradient(ellipse 120% 60% at 50% 110%, rgba(111, 167, 194, .10), transparent 60%),
    linear-gradient(180deg, #10151a 0%, #182029 28%, #2c2d2c 50%, #5e4527 64%, #1a1a17 70%, #0b0d0f 100%);
  background-color: #10151a; background-size: cover; background-position: center 40%;
}
.hero-art .ph-art { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Captura real no fundo: fica discreta sob um véu escuro. Com .74 de opacidade, mesmo um céu branco
   por trás do texto mantém contraste AA (≥ 4,5:1) para o texto claro da abertura. */
.hero-art.has-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: rgba(11, 13, 15, .74);
}
@media (min-width: 961px) {
  /* no desktop o texto ocupa só a metade esquerda: a direita mostra um pouco mais da imagem */
  .hero-art.has-img::after { background: linear-gradient(90deg, rgba(11, 13, 15, .74) 0%, rgba(11, 13, 15, .74) 62%, rgba(11, 13, 15, .52) 100%); }
}
.hero::after {
  /* véu para legibilidade — vale também para a captura real */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 13, 15, .82) 0%, rgba(11, 13, 15, .45) 45%, rgba(11, 13, 15, 0) 75%),
    linear-gradient(180deg, rgba(11, 13, 15, .55) 0%, rgba(11, 13, 15, 0) 22%, rgba(11, 13, 15, 0) 60%, var(--bg) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
}
.hero-compass {
  position: absolute; top: calc(var(--head-h) + 20px); left: 50%; transform: translateX(-50%);
  display: flex; gap: 26px; align-items: flex-end; padding-bottom: 10px;
  font: 600 12px/1 var(--font-c); letter-spacing: .14em; color: rgba(232, 229, 222, .5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.hero-compass b { color: var(--accent); font-weight: 700; }
.hero-compass::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 6px; background: var(--accent); }
@media (max-width: 960px) { .hero-compass { display: none; } }

.hero-in { position: relative; padding-bottom: 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 14px/1.2 var(--font-c); letter-spacing: .22em; color: var(--accent);
}
.kicker::before { content: ''; width: 36px; height: 2px; background: currentColor; }
.hero-title {
  font: 800 clamp(58px, 11.5vw, 156px)/.84 var(--font-c); letter-spacing: .005em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .45); margin: 0 0 22px;
}
.hero-title span { display: block; }
.hero-title span + span { color: transparent; -webkit-text-stroke: 1.5px rgba(232, 229, 222, .9); }
@supports not (-webkit-text-stroke: 1px #000) { .hero-title span + span { color: var(--text); } }
.hero-tag { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--text2); margin-bottom: 30px; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; font-size: 14px; color: var(--dim); }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes li::before { content: ''; width: 6px; height: 6px; background: var(--accent2); transform: rotate(45deg); }

.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); margin-bottom: 8px;
}
.hero-stats div { padding: 18px 16px 20px 0; }
.hero-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-stats b { display: block; font: 700 clamp(28px, 3.4vw, 40px)/1 var(--font-c); color: var(--text); }
.hero-stats span { display: block; margin-top: 6px; font: 600 12px/1.25 var(--font-c); letter-spacing: .16em; color: var(--dim); }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: linear-gradient(180deg, var(--bg2), var(--bg) 70%); border-top: 1px solid var(--line); }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 14px/1.2 var(--font-c); letter-spacing: .22em; color: var(--accent); }
.eyebrow::after { content: ''; flex: 0 0 48px; height: 1px; background: rgba(217, 164, 65, .5); }
.sec-head h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1; text-transform: uppercase; margin-bottom: 18px; }
.lede { font-size: clamp(16px, 1.4vw, 18px); color: var(--text2); max-width: 680px; margin: 0; }
.sub-h { font: 700 15px/1.2 var(--font-c); letter-spacing: .2em; color: var(--dim); text-transform: uppercase; margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.sub-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.tag {
  display: inline-block; font: 700 11px/1 var(--font-c); letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 8px 4px; border: 1px solid currentColor; border-radius: 2px; color: var(--accent);
}
.tag-blue { color: var(--accent2); }
.tag-dim { color: var(--dim); }

/* ------------------------------------------------------------------ match loop */
.loop { isolation: isolate; list-style: none; margin: 0 0 clamp(48px, 6vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: loop; }
.loop li { position: relative; padding: 26px 18px 0 0; counter-increment: loop; }
.loop li::before {
  content: counter(loop, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font: 700 13px/1 var(--font-c); letter-spacing: .12em; color: var(--accent);
  background: var(--bg); padding-right: 10px;
}
.loop li::after { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line2); z-index: -1; }
.loop li:last-child::after { right: 18px; }
.loop h3 { font-size: 19px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.loop p { font-size: 14.5px; color: var(--dim); margin: 0; line-height: 1.5; }
@media (max-width: 1020px) { .loop { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }
@media (max-width: 560px) { .loop { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ gallery */
/* Itens com imagem ausente recebem [hidden] (js/site.js) e saem da grade e da numeração. */
.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 14px; counter-reset: gal; }
@media (max-width: 1019px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .gal-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
.gal-item { min-width: 0; counter-increment: gal; }
.gal-link { display: flex; flex-direction: column; gap: 10px; color: var(--text2); border-radius: var(--radius); }
.gal-link:hover, .gal-link:focus-visible { color: var(--text); }
.gal-frame {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 10px, transparent 10px 20px), linear-gradient(165deg, #1a2127, #0d0f11);
  transition: border-color .2s ease;
}
.gal-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .45s ease; }
/* cantos em colchete, como nos botões */
.gal-frame::before, .gal-frame::after { content: ''; position: absolute; z-index: 1; width: 12px; height: 12px; border: 2px solid var(--accent); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.gal-frame::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.gal-frame::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.gal-link:hover .gal-frame, .gal-link:focus-visible .gal-frame { border-color: var(--line2); }
.gal-link:hover .gal-frame::before, .gal-link:hover .gal-frame::after,
.gal-link:focus-visible .gal-frame::before, .gal-link:focus-visible .gal-frame::after { opacity: 1; }
.gal-link:hover img, .gal-link:focus-visible img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gal-link:hover img, .gal-link:focus-visible img { transform: none; } }
.gal-cap { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.gal-cap::before { content: counter(gal, decimal-leading-zero); flex: none; font: 700 13px/1.55 var(--font-c); letter-spacing: .12em; color: var(--accent); }

/* ------------------------------------------------------------------ lightbox (<dialog> criado por js/site.js) */
html.lb-open { overflow: hidden; }
.lightbox {
  --lb-side: 80px; --lb-top: 68px; --lb-bottom: 96px;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(7, 9, 10, .95); color: var(--text);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lb-in .2s ease; }
.lightbox::backdrop { background: rgba(7, 9, 10, .6); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.lb-pic { display: block; }
.lb-img {
  height: auto; aspect-ratio: 16 / 9; object-fit: contain;
  width: min(1280px, calc(100vw - 2 * var(--lb-side)), calc((100vh - var(--lb-top) - var(--lb-bottom)) * 16 / 9));
  background: #0d1012; border: 1px solid var(--line); border-radius: var(--radius);
}
@supports (height: 100dvh) {
  .lb-img { width: min(1280px, calc(100vw - 2 * var(--lb-side)), calc((100dvh - var(--lb-top) - var(--lb-bottom)) * 16 / 9)); }
}
.lb-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.lb-cap { font-size: 16px; line-height: 1.4; color: var(--text); }
.lb-count { flex: none; font: 700 13px/1 var(--font-c); letter-spacing: .16em; color: var(--accent); }
.lb-btn {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: rgba(14, 17, 20, .8); color: var(--text); border: 1px solid var(--line2); border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.lb-btn:hover { background: rgba(28, 34, 40, .95); border-color: var(--accent2); color: #fff; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: calc(50% - 24px); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (max-width: 720px) {
  .lightbox { --lb-side: 12px; --lb-top: 72px; --lb-bottom: 150px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-bar { flex-direction: column; }
  .lb-cap { font-size: 15px; }
}

/* ------------------------------------------------------------------ feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { position: relative; padding: 26px 24px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, background-color .2s ease; }
.card::before { content: ''; position: absolute; top: -1px; left: -1px; width: 32px; height: 2px; background: var(--accent); }
.card:hover { border-color: var(--line2); background: rgba(18, 22, 26, .8); }
.card .ico { width: 30px; height: 30px; color: var(--accent2); margin-bottom: 16px; }
.card h3 { font-size: 22px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--dim); margin: 0; }
.card p strong { color: var(--text2); font-weight: 600; }
.card-hl { background: linear-gradient(160deg, rgba(217, 164, 65, .08), rgba(14, 17, 20, .72) 55%); }

/* ------------------------------------------------------------------ map */
.map-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } }
.map-panel { padding: 16px; }
.map-panel svg { width: 100%; height: auto; }
.map-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; font: 600 12px/1.3 var(--font-c); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { display: inline-block; width: 14px; height: 2px; background: var(--accent2); }
.map-legend i.road { background: repeating-linear-gradient(90deg, rgba(232, 229, 222, .55) 0 4px, transparent 4px 7px); }
.map-legend i.tier { width: 8px; height: 8px; transform: rotate(45deg); background: var(--accent); }
.poi-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.poi-list li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.poi-n { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line2); font: 700 13px/1 var(--font-c); color: var(--text2); }
.poi-name { font: 700 18px/1.15 var(--font-c); letter-spacing: .03em; }
.poi-type { display: block; font-size: 13.5px; color: var(--dim); line-height: 1.35; margin-top: 2px; }
.loot { display: inline-flex; align-items: center; gap: 3px; }
.loot i { width: 7px; height: 16px; background: rgba(255, 255, 255, .1); transform: skewX(-12deg); }
.loot[data-t="1"] i:nth-of-type(-n+1), .loot[data-t="2"] i:nth-of-type(-n+2), .loot[data-t="3"] i:nth-of-type(-n+3) { background: var(--accent); }
.loot-cap { font: 600 11px/1 var(--font-c); letter-spacing: .14em; color: var(--dim); margin-right: 6px; }
.maps-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 820px) { .maps-next { grid-template-columns: 1fr; } }
.map-card { position: relative; min-height: 170px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.map-card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .9; }
.map-card { isolation: isolate; }
.map-card.m-desert::before { background: radial-gradient(ellipse 90% 70% at 85% 0%, rgba(176, 104, 58, .35), transparent 70%), linear-gradient(160deg, #241913, #0f0d0c); }
.map-card.m-snow::before { background: radial-gradient(ellipse 90% 70% at 85% 0%, rgba(160, 190, 210, .28), transparent 70%), linear-gradient(160deg, #1a2127, #0d1013); }
.map-card.m-urban::before { background: radial-gradient(ellipse 90% 70% at 85% 0%, rgba(140, 140, 150, .22), transparent 70%), linear-gradient(160deg, #1c1d20, #0c0d0e); }
.map-card h3 { font-size: 24px; letter-spacing: .06em; }
.map-card p { margin: 0; font-size: 14.5px; color: var(--dim); }
.map-card .tag { align-self: flex-start; margin-bottom: auto; }

/* ------------------------------------------------------------------ friends guide */
.steps { list-style: none; margin: 0 0 clamp(40px, 5vw, 60px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: st; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.steps > li { counter-increment: st; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.steps > li::before { content: counter(st, decimal-leading-zero); display: block; font: 800 34px/1 var(--font-c); color: var(--accent); margin-bottom: 12px; }
.steps h3 { font-size: 20px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--dim); margin: 0 0 10px; }
.steps p:last-child { margin-bottom: 0; }

.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1020px) { .routes { grid-template-columns: 1fr; } }
.route { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.route header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.route h3 { font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.route > p { color: var(--dim); font-size: 15px; }
.route ol, .route ul { margin: 0 0 14px; padding-left: 20px; color: var(--text2); font-size: 15px; }
.route li { margin-bottom: 7px; }
.route li::marker { color: var(--accent); font-family: var(--font-c); font-weight: 700; }
.route .note { font-size: 14px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 12px; margin: 0; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent2); background: rgba(111, 167, 194, .05); border-radius: var(--radius); margin-bottom: 14px; }
.callout .ico { width: 30px; height: 30px; color: var(--accent2); }
.callout h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.callout p, .callout li { color: var(--text2); font-size: 15px; }
.callout ul { margin: 0 0 12px; padding-left: 20px; }
.callout li { margin-bottom: 6px; }
.callout > div { min-width: 0; }
@media (max-width: 600px) { .callout { grid-template-columns: 1fr; } }

.code { display: flex; align-items: stretch; margin: 8px 0 12px; border: 1px solid var(--line2); border-radius: var(--radius); background: #07090a; overflow: hidden; }
.code pre { flex: 1; margin: 0; padding: 10px 12px; overflow-x: auto; font: 13.5px/1.5 var(--mono); color: #d6d3cb; white-space: pre; }
.copy {
  flex: none; border: 0; border-left: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--text2);
  font: 700 12px/1 var(--font-c); letter-spacing: .14em; padding: 0 14px; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.copy:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.copy.done { color: var(--ok); }

/* ------------------------------------------------------------------ controls */
.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1020px) { .controls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .controls { grid-template-columns: 1fr; } }
.controls .panel { padding: 8px 22px 12px; min-width: 0; }
.controls h3 { font-size: 15px; letter-spacing: .22em; color: var(--accent); padding: 16px 0 10px; border-bottom: 1px solid var(--line); }
.ctable { width: 100%; border-collapse: collapse; }
.ctable th, .ctable td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctable tr:last-child th, .ctable tr:last-child td { border-bottom: 0; }
.ctable th { text-align: left; font-weight: 500; font-size: 15px; color: var(--text2); padding-right: 12px; }
.ctable td { text-align: right; white-space: nowrap; }
kbd {
  display: inline-block; min-width: 28px; margin: 2px 0 2px 4px; padding: 4px 7px 3px; text-align: center;
  font: 700 13px/1.1 var(--font-c); letter-spacing: .06em; color: var(--text);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 3px;
}
.kbd-sep { color: var(--dim); font-size: 13px; margin-left: 4px; }
.small-note { margin-top: 18px; font-size: 14px; color: var(--dim); }

/* ------------------------------------------------------------------ requirements */
.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 980px; }
@media (max-width: 960px) { .reqs { grid-template-columns: 1fr; } }
.req { padding: 8px 22px 16px; min-width: 0; }
.req header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.req h3 { font-size: 22px; letter-spacing: .08em; }
.req dl { margin: 0; }
.req dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.req dl div:last-child { border-bottom: 0; }
.req dt { font: 600 13px/1.4 var(--font-c); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; padding-top: 1px; }
.req dd { margin: 0; font-size: 15px; color: var(--text2); }
@media (max-width: 420px) { .req dl div { grid-template-columns: 1fr; gap: 2px; } }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; font: 600 clamp(18px, 1.8vw, 21px)/1.25 var(--font-c); letter-spacing: .02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq .ans { padding: 0 0 22px; color: var(--text2); max-width: 760px; }
.faq .ans p { margin-bottom: .8em; }
.faq .ans ol, .faq .ans ul { margin: 0 0 .8em; padding-left: 22px; }
.faq .ans li { margin-bottom: 5px; }

/* ------------------------------------------------------------------ CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius); }
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 90% at 88% 100%, rgba(217, 164, 65, .32), transparent 70%),
    linear-gradient(180deg, rgba(11, 13, 15, 0) 62%, rgba(217, 164, 65, .5) 62.3%, rgba(11, 13, 15, 0) 62.6%),
    linear-gradient(160deg, #141a1f, #0c0e10);
}
.cta-band h2 { font-size: clamp(34px, 5vw, 60px); text-transform: uppercase; margin-bottom: 12px; }
.cta-band p { color: var(--text2); max-width: 560px; margin-bottom: 26px; }
.cta-band .hero-cta { margin-bottom: 0; }

/* ------------------------------------------------------------------ download page */
.page-head { padding-top: calc(var(--head-h) + clamp(40px, 7vw, 88px)); padding-bottom: clamp(40px, 6vw, 64px); position: relative; isolation: isolate; }
.page-head::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(217, 164, 65, .14), transparent 70%), linear-gradient(180deg, #11161b, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(44px, 7vw, 88px); line-height: .92; text-transform: uppercase; margin-bottom: 18px; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-info { padding: 8px 22px 20px; }
.dl-info dl { margin: 0 0 18px; }
.dl-info dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl-info dt { font: 600 13px/1.4 var(--font-c); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.dl-info dd { margin: 0; color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.dl-info dd.hash { font: 12.5px/1.5 var(--mono); color: var(--text2); }
.dl-info .btn { width: 100%; }
.dl-info .alt { display: block; margin-top: 14px; text-align: center; font: 600 14px/1.3 var(--font-c); letter-spacing: .12em; }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(28px, 3.6vw, 40px); text-transform: uppercase; margin: 0 0 16px; }
.prose p, .prose li { color: var(--text2); }
.prose section + section { margin-top: clamp(48px, 6vw, 72px); }

/* ------------------------------------------------------------------ credits page (markdown) */
.md h1 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; margin: 0 0 20px; }
.md h2 { font-size: 28px; text-transform: uppercase; margin: 40px 0 14px; }
.md h3 { font-size: 21px; margin: 28px 0 10px; }
.md p, .md li { color: var(--text2); }
.md ul, .md ol { padding-left: 22px; }
.md li { margin-bottom: 6px; }
.md blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 3px solid var(--accent2); background: rgba(111, 167, 194, .05); }
.md blockquote p { margin: 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.md pre { background: #07090a; border: 1px solid var(--line2); padding: 12px; overflow-x: auto; font: 13.5px/1.5 var(--mono); }
.md pre code { background: none; border: 0; padding: 0; }
.md table { border-collapse: collapse; width: 100%; margin: 0 0 1em; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; color: var(--text2); }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); background: #090b0c; padding: clamp(48px, 6vw, 72px) 0 28px; font-size: 14.5px; color: var(--dim); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.footer h4 { font: 700 13px/1.2 var(--font-c); letter-spacing: .2em; color: var(--text); margin: 0 0 14px; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--dim); }
.footer a:hover { color: var(--text); }
.footer .brand { margin-bottom: 14px; }
.footer .lic li { line-height: 1.45; }
.footer .lic span { color: var(--text2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-bottom strong { color: var(--text2); font-weight: 600; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 20px; width: min(560px, calc(100% - 32px));
  transform: translate(-50%, 16px); opacity: 0; visibility: hidden;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: rgba(15, 18, 21, .96); border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); font-size: 14.5px; color: var(--text2);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.toast[hidden] { display: none; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s ease, transform .2s ease; }
.toast p { margin: 0; flex: 1; }
.toast button { flex: none; background: none; border: 0; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.toast button:hover { color: #fff; }

/* ------------------------------------------------------------------ botões como <button> e estados */
button.btn { font: inherit; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.carregando .btn-label::after {
  content: ''; width: 14px; height: 14px; margin-left: 4px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
.btn-ghost { background: none; color: var(--text2); border-color: var(--line2); }
.btn-ghost:hover { color: #fff; border-color: var(--warn); }
.hero-conta { margin: -6px 0 22px; font-size: 15px; color: var(--text2); }
.hero-conta a { font-weight: 600; }
.dl-off { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: 14px; color: var(--text2); }

/* ------------------------------------------------------------------ entrar / criar conta */
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .auth-grid { grid-template-columns: 1fr; } }
.auth-perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-perks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text2); font-size: 15.5px; }
.auth-perks li::before { content: ''; width: 8px; height: 8px; margin: 8px 0 0 6px; background: var(--accent2); transform: rotate(45deg); }
.auth-perks strong { display: block; font: 700 17px/1.2 var(--font-c); letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 2px; }
.auth-panel { padding: 0 24px 24px; }
.tabs { display: flex; margin: 0 -24px 22px; border-bottom: 1px solid var(--line); }
.tabs [role="tab"] {
  flex: 1 1 0; min-width: 0; padding: 16px 8px 14px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--dim); cursor: pointer; font: 700 14px/1.15 var(--font-c); letter-spacing: .12em; text-transform: uppercase;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 420px) {
  .auth-panel { padding: 0 16px 18px; }
  .tabs { margin: 0 -16px 18px; }
  .tabs [role="tab"] { padding-inline: 4px; font-size: 13px; letter-spacing: .08em; }
}
.auth-panel .painel-h { font-size: 26px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 6px; }
.auth-panel .painel-sub { margin: 0 0 18px; font-size: 14.5px; color: var(--dim); }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 600 13px/1.2 var(--font-c); letter-spacing: .14em; text-transform: uppercase; color: var(--text2); }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  width: 100%; height: 46px; padding: 0 12px; background: #07090a; color: var(--text);
  border: 1px solid var(--line2); border-radius: var(--radius); font: 16px/1.2 var(--font);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(111, 167, 194, .18); }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.field input:disabled { opacity: .6; }
.field-hint { margin: 0; font-size: 13px; color: var(--dim); line-height: 1.4; }
.field-err { margin: 0; font-size: 13.5px; color: #e58f79; line-height: 1.4; }
.pw { position: relative; }
.field .pw input { padding-right: 96px; }
.pw-ver {
  position: absolute; top: 6px; right: 6px; bottom: 6px; padding: 0 10px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); border-radius: 2px; color: var(--text2); cursor: pointer; font: 700 12px/1 var(--font-c); letter-spacing: .12em;
}
.pw-ver:hover { color: #fff; border-color: var(--line2); }
.check, .field label.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font: 400 14.5px/1.5 var(--font); letter-spacing: 0; text-transform: none; color: var(--text2); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.form .btn { width: 100%; min-width: 0; }
.form-msg { margin: 0; padding: 11px 14px; border-radius: var(--radius); font-size: 14.5px; line-height: 1.45; border: 1px solid var(--line2); border-left-width: 3px; color: var(--text); }
.form-msg:empty { display: none; }
.form-msg.erro { border-color: rgba(201, 98, 75, .55); border-left-color: var(--warn); background: rgba(201, 98, 75, .08); }
.form-msg.ok { border-color: rgba(127, 168, 120, .45); border-left-color: var(--ok); background: rgba(127, 168, 120, .08); }
.form-alt { margin: 0; font-size: 14.5px; color: var(--dim); text-align: center; }
.form-alt a { font-weight: 600; }
.logado-acoes { display: grid; gap: 12px; margin-top: 18px; }
.logado-acoes .btn { width: 100%; min-width: 0; }

/* ------------------------------------------------------------------ minha conta */
.conta-head h1 { overflow-wrap: anywhere; }
.conta-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.conta-acoes .btn { min-width: 230px; }
.conta-sec + .conta-sec { margin-top: clamp(48px, 6vw, 72px); }
.conta-sec > h2 { font-size: clamp(26px, 3.2vw, 36px); text-transform: uppercase; margin: 0 0 8px; }
.conta-sec > .painel-sub { margin: 0 0 22px; color: var(--dim); font-size: 15px; max-width: 720px; }
.nivel { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; align-items: center; padding: 22px 24px; margin-bottom: 14px; }
.nivel-n { grid-row: span 3; display: grid; place-items: center; align-content: center; width: 88px; height: 88px; border: 2px solid var(--accent); border-radius: 50%; font: 800 38px/1 var(--font-c); color: var(--text); }
.nivel-n small { display: block; font: 700 11px/1 var(--font-c); letter-spacing: .18em; color: var(--accent); text-align: center; margin-bottom: 3px; }
.nivel-t { font: 700 20px/1.2 var(--font-c); letter-spacing: .05em; text-transform: uppercase; }
.xpbar { height: 10px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transition: width .6s ease; }
.nivel-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 13.5px; color: var(--dim); }
@media (max-width: 480px) { .nivel { grid-template-columns: 1fr; } .nivel-n { grid-row: auto; } }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.stat dt { font: 600 12px/1.25 var(--font-c); letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.stat dd { margin: 6px 0 0; font: 700 clamp(24px, 3vw, 32px)/1 var(--font-c); color: var(--text); overflow-wrap: anywhere; }
.stat.destaque dd { color: var(--accent); }
.nota { margin: 14px 0 0; font-size: 14px; color: var(--dim); }
.tabela-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tabela { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tabela th, .tabela td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela thead th { font: 600 12px/1.2 var(--font-c); letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela td { color: var(--text2); }
.tabela .vit { color: var(--accent); font-weight: 600; }
.vazio { padding: 18px 20px; border: 1px dashed var(--line2); border-radius: var(--radius); color: var(--dim); font-size: 15px; margin: 0; }
.ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .ranks { grid-template-columns: 1fr; } }
.rank-box { padding: 6px 20px 14px; min-width: 0; }
.rank-box h3 { font-size: 15px; letter-spacing: .22em; color: var(--accent); padding: 14px 0 10px; border-bottom: 1px solid var(--line); margin: 0; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rank li:last-child { border-bottom: 0; }
.rank-pos { font: 700 14px/1 var(--font-c); color: var(--dim); }
.rank-nome { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { font: 700 16px/1 var(--font-c); color: var(--text); }
.rank li.voce .rank-nome { color: var(--accent); font-weight: 600; }
.rank li:nth-child(-n+3) .rank-pos { color: var(--accent); }
.rank-box .vazio { margin-top: 12px; border: 0; padding: 4px 0; }
.dados-conta { margin: 0; padding: 8px 22px 12px; }
.dados-conta > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; }
.dados-conta > div:last-child { border-bottom: 0; }
.dados-conta dt { font: 600 13px/1.4 var(--font-c); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.dados-conta dd { margin: 0; color: var(--text); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dados-conta dd code { font-size: 13px; }
.dados-conta .copy { padding: 7px 10px; border: 1px solid var(--line2); border-radius: 2px; }
@media (max-width: 520px) { .dados-conta > div { grid-template-columns: 1fr; gap: 3px; } }
.status-carga { margin: 0 0 18px; color: var(--dim); font-size: 14.5px; }
.status-carga:empty { display: none; }
.status-carga.erro { color: #e58f79; }

/* ------------------------------------------------------------------ páginas de texto (termos, privacidade) */
.legal h1 { font-size: clamp(40px, 6vw, 72px); line-height: .95; text-transform: uppercase; margin: 0 0 14px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 40px 0 12px; }
.legal ol { padding-left: 22px; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .atualizado { color: var(--dim); font-size: 14px; }

/* ------------------------------------------------------------------ aviso do config.json (js/conta.js) */
.aviso-site {
  position: fixed; z-index: 70; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(720px, calc(100% - 32px));
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 12px 16px;
  background: rgba(15, 18, 21, .97); border: 1px solid var(--line2); border-left: 3px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); font-size: 14.5px; color: var(--text2);
}
.aviso-site p { margin: 0; flex: 1; }
.aviso-site strong { font: 700 13px/1.5 var(--font-c); letter-spacing: .16em; color: var(--accent); margin-right: 8px; }
.aviso-site button { flex: none; background: none; border: 0; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.aviso-site button:hover { color: #fff; }
