/* =========================================================
   Falot — portal do servidor
   Navy profundo e ouro. Painel com bisel, ecoando a moldura
   do cliente antigo. Todo numero em mono com figuras tabulares:
   um site de OT e, no fundo, um leitor do banco do jogo.
   ========================================================= */

:root {
  --ink:        #070b14;
  --ink-2:      #0b1120;
  --panel:      #111a2e;
  --panel-2:    #16213a;
  --edge:       #263654;
  --edge-soft:  #1c2942;

  --gold:       #d8a53c;
  --gold-hi:    #f2cd6b;
  --gold-dim:   #8a6c2a;

  --parchment:  #e8dcc0;
  --text:       #cfd9ea;
  --muted:      #8496b8;

  --blood:      #b8474a;
  --emerald:    #4fa564;

  --display: 'Cinzel', 'Georgia', serif;
  --body:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', 'Consolas', monospace;

  --gap: 20px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.65 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.muted { color: var(--muted); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 50;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- faixa de status ---------- */

.statusbar {
  background: #05080f;
  border-bottom: 1px solid var(--edge-soft);
  font-size: 12px;
  color: var(--muted);
}

.statusbar__row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 34px;
  flex-wrap: wrap;
}

.statusbar__cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: .02em;
}
.statusbar__cell b { color: var(--parchment); font-weight: 500; }
.statusbar__gap { flex: 1; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot--on  { background: var(--emerald); box-shadow: 0 0 8px rgba(79,165,100,.8); }
.dot--off { background: var(--blood);   box-shadow: 0 0 8px rgba(184,71,74,.6); }

/* ---------- banner ----------
   A textura de fundo e a grade de 32px do mapa do jogo. */

.banner {
  background:
    radial-gradient(900px 320px at 50% -90px, rgba(216, 165, 60, .16), transparent 72%),
    repeating-linear-gradient(0deg,  transparent 0 31px, rgba(255,255,255,.022) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.022) 31px 32px),
    var(--ink-2);
  border-bottom: 1px solid var(--edge-soft);
}

.banner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: 26px;
  flex-wrap: wrap;
}

.mark {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  color: inherit;
}
.mark:hover { text-decoration: none; }

.mark__crest {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  rotate: 45deg;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold-dim));
  box-shadow: 0 0 20px rgba(216,165,60,.35), inset 0 0 0 1px rgba(0,0,0,.35);
}

.mark__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(175deg, #fbeec4 10%, var(--gold) 55%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mark__tag {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.banner__who { font-size: 13px; color: var(--muted); }
.banner__who b { color: var(--parchment); }

/* ---------- navegacao ---------- */

.nav {
  background: linear-gradient(180deg, var(--panel-2), var(--ink-2));
  border-bottom: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav__row {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav__row > a {
  padding: 13px 15px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav__row > a:hover {
  color: var(--parchment);
  background: rgba(255,255,255,.03);
  text-decoration: none;
}
.nav__row > a.is-on {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(216,165,60,.07);
}
.nav__staff { margin-left: auto; color: var(--blood) !important; }
.nav__staff.is-on { color: var(--gold) !important; }

/* ---------- estrutura ---------- */

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding-block: 26px 40px;
  flex: 1;
  align-items: start;
}

.shell__main { min-width: 0; display: grid; gap: var(--gap); }
.shell__side { display: grid; gap: var(--gap); position: sticky; top: 60px; }

/* ---------- painel ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 2px 0 rgba(0,0,0,.45);
}

.panel__head {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 11px 15px;
  margin: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-bottom: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel__head a { font-family: var(--body); letter-spacing: .04em; font-size: 12px; }

.panel__body { padding: 16px; }
.panel__body > :last-child { margin-bottom: 0; }

.panel--cta { padding: 14px; display: grid; gap: 9px; }

/* ---------- botoes ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font: 600 12.5px/1 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--block { width: 100%; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-color: #6d5320;
  color: #241a05;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 0 rgba(0,0,0,.4);
}
.btn--gold:hover { filter: brightness(1.09); color: #241a05; }

.btn--quiet {
  background: rgba(255,255,255,.035);
  border-color: var(--edge);
  color: var(--parchment);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.btn--quiet:hover { background: rgba(255,255,255,.08); color: #fff; }

.btn--danger {
  background: rgba(184,71,74,.14);
  border-color: #5c2a2c;
  color: #e79a9c;
}
.btn--danger:hover { background: rgba(184,71,74,.26); color: #ffc9ca; }

.btn--small { padding: 7px 12px; font-size: 11px; }

/* ---------- avisos ---------- */

.flash {
  margin: 0;
  padding: 12px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  border-left-width: 3px;
  background: var(--panel);
  font-size: 14px;
}
.flash--ok    { border-left-color: var(--emerald); color: #a9e0ba; }
.flash--erro  { border-left-color: var(--blood);   color: #eda6a8; }
.flash--aviso { border-left-color: var(--gold);    color: var(--parchment); }

/* ---------- noticias ---------- */

.post__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.post__title {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.post__title a { color: inherit; }
.post__meta { font-size: 11px; color: var(--muted); letter-spacing: .06em; }

.tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
}
.tag--atualizacao { color: #9fc3ef; border-color: #2f4a72; }
.tag--evento      { color: var(--gold); border-color: var(--gold-dim); }
.tag--manutencao  { color: #e0a97e; border-color: #5c4230; }

.prose { color: var(--text); }
.prose p { margin: 0 0 .9em; }
.prose a { text-decoration: underline; }

/* ---------- tabelas ---------- */

.tablewrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--edge-soft);
}
.table th {
  font: 600 10.5px/1.3 var(--body);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  white-space: nowrap;
}
.table tbody tr:hover { background: rgba(216,165,60,.05); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table .pos { width: 54px; color: var(--muted); font-family: var(--mono); }

.table__empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* ---------- ranking da lateral ---------- */

.rank { list-style: none; margin: 0; padding: 6px 0; }
.rank__row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 15px;
  font-size: 13.5px;
}
.rank__row:hover { background: rgba(216,165,60,.05); }
.rank__pos { color: var(--gold-dim); font-size: 11px; }
.rank__name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__name:hover { color: var(--gold-hi); }
.rank__score { color: var(--parchment); font-size: 12px; }
.rank__empty { padding: 14px 15px; color: var(--muted); font-size: 13px; }

/* ---------- listas de dados ---------- */

.stats { margin: 0; }
.stats__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--edge-soft);
  font-size: 13.5px;
}
.stats__row:last-child { border-bottom: 0; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; color: var(--parchment); }
.stats--split { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--edge); }

/* ---------- formularios ---------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }

.field > label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font: 400 15px var(--body);
  color: var(--parchment);
  background: #0a1020;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
}
.field textarea { min-height: 190px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-dim); }

.field__hint { font-size: 12.5px; color: var(--muted); }

.field--inline { display: flex; align-items: center; gap: 9px; }
.field--inline label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); font-weight: 400; }

.form__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* escolha de vocacao e sexo: cartoes clicaveis.
   O radio fica transparente cobrindo o cartao inteiro, entao ele mesmo recebe
   o clique e o foco; o label so desenha. */
.picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.picker__opt { position: relative; }

.picker__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.picker__opt label {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  height: 100%;
}
.picker__opt input:hover ~ label { border-color: var(--gold-dim); background: rgba(216,165,60,.06); }
.picker__opt input:checked ~ label {
  border-color: var(--gold);
  background: rgba(216,165,60,.12);
  box-shadow: inset 0 0 0 1px rgba(216,165,60,.35);
}
.picker__opt input:focus-visible ~ label { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.picker__name { display: block; font-weight: 600; color: var(--parchment); }
.picker__note { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- ficha de conta ----------
   O 7.72 loga por numero, nao por nome. Esta e a peca central do site. */

.credential {
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 50% -40px, rgba(216,165,60,.16), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 rgba(0,0,0,.5);
  padding: 30px 24px;
  text-align: center;
}
.credential__label {
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.credential__number {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(40px, 11vw, 68px);
  letter-spacing: .1em;
  color: var(--gold-hi);
  text-shadow: 0 0 30px rgba(216,165,60,.4);
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.credential__rule {
  width: 70px;
  height: 1px;
  margin: 16px auto;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.credential__note { color: var(--parchment); font-size: 14.5px; max-width: 46ch; margin-inline: auto; }

/* ---------- selos ---------- */

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge--on  { color: #9fe0b2; background: rgba(79,165,100,.16); border: 1px solid rgba(79,165,100,.4); }
.badge--off { color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--edge); }
.badge--pvp { color: #eda6a8; background: rgba(184,71,74,.16); border: 1px solid rgba(184,71,74,.4); }

/* ---------- filtros ---------- */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border-bottom: 1px solid var(--edge);
  background: rgba(255,255,255,.02);
}

.chip {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: rgba(255,255,255,.02);
}
.chip:hover { color: var(--parchment); border-color: var(--gold-dim); text-decoration: none; }
.chip.is-on {
  color: #241a05;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border-color: #6d5320;
}

/* ---------- barra de progresso ---------- */

.meter {
  height: 6px;
  background: #0a1020;
  border: 1px solid var(--edge);
  border-radius: 2px;
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-hi));
}

/* ---------- paginacao ---------- */

.pager {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px;
  border-top: 1px solid var(--edge);
}
.pager__link {
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--muted);
}
.pager__link:hover { color: var(--parchment); border-color: var(--gold-dim); text-decoration: none; }
.pager__link.is-on { color: #241a05; background: var(--gold); border-color: #6d5320; }

/* ---------- cabecalho de pagina ---------- */

.pagehead { display: grid; gap: 4px; }
.pagehead h1 {
  font-family: var(--display);
  font-size: clamp(21px, 3.4vw, 27px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--parchment);
}
.pagehead p { color: var(--muted); margin: 0; }

/* ---------- rodape ---------- */

.footer {
  background: #05080f;
  border-top: 1px solid var(--edge-soft);
  margin-top: auto;
  padding-top: 34px;
  font-size: 14px;
}

.footer__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 26px;
}
.footer__brand b {
  font-family: var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__brand p { color: var(--muted); margin-top: 6px; max-width: 46ch; }
.footer__col { display: grid; gap: 7px; align-content: start; }
.footer__col h4 {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.footer__col a { color: var(--text); font-size: 14px; }
.footer__col a:hover { color: var(--gold-hi); }

.footer__legal {
  border-top: 1px solid var(--edge-soft);
  padding-block: 16px;
  margin: 0;
  font-size: 12px;
  color: #5b6b8a;
}

/* ---------- erro ---------- */

.errorbox { text-align: center; padding: 60px 20px; }
.errorbox__code {
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--gold-dim);
  line-height: 1;
}
.errorbox__msg { color: var(--muted); margin: 14px 0 22px; }

/* ---------- responsivo ---------- */

@media (max-width: 940px) {
  .shell { grid-template-columns: 1fr; }
  .shell__side { position: static; }
  .footer__row { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .banner__row { padding-block: 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .footer__row { grid-template-columns: 1fr; }
  .statusbar__cell--wide { display: none; }
  .table th, .table td { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- lista de passos ---------- */

.steps {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  counter-reset: passo;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: passo;
  position: relative;
  padding-left: 38px;
  font-size: 14.5px;
}
/* Marcador fora do fluxo: o texto do item pode misturar <b> e texto solto. */
.steps li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  text-align: center;
}
.steps b { color: var(--parchment); }
