/* Telmora - site retro 7.4. Pixel art: images/ (PixelLab + arte do login).
   Escala (03/11): molduras finas, faixas baixas e texto 12px, na medida do
   Miracle/Rubinot, mantendo o visual do Tibia antigo. */
:root {
  --bg: #17120f;
  --gold: #f0c35a;
  --gold-light: #ffe7a3;
  --gold-dark: #9a6a1f;
  --wood: #3b2416;
  --wood-dark: #24150c;
  --ink: #33231a;
  --ink-soft: #6a5241;
  --line: rgba(95, 77, 65, 0.28);
  --link: #7a3d0c;
  --link-hover: #b3540d;
  --row-a: #f3e6cf;
  --row-b: #e8d7b8;
  --row-head: #5f4d41;
  --ok: #3f8f2a;
  --bad: #a3271b;
  --title-font: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --text-font: Verdana, Tahoma, "DejaVu Sans", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 12px/1.55 var(--text-font);
  background: transparent;
}

/* fundo: paisagem noturna (PixelLab, no estilo do banner), fixa, fosca e escurecida */
body::before {
  content: "";
  position: fixed;
  inset: -12px;
  z-index: -1;
  background: #120d14 url("images/background.jpg?v=20261104f") center 30% / cover no-repeat;
  filter: blur(3px) brightness(0.55) saturate(0.9);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(12, 8, 10, 0.15) 30%, rgba(12, 8, 10, 0.7) 100%);
}

img { image-rendering: pixelated; }

a { color: var(--link); font-weight: bold; text-decoration: none; }
a:hover, a:focus-visible { color: var(--link-hover); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* coluna da pagina: o rodape fica no fim da tela mesmo com pouco conteudo */
.page {
  position: relative; max-width: 1340px; margin: 0 auto; padding: 0 16px 20px;
  box-sizing: border-box; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
.page > .layout { flex: 1 0 auto; align-content: start; }

/* ---- banner (arte da tela de login) ---- */
.banner {
  position: relative;
  height: 230px;
  margin: 0 -16px;
  background: #2a1d17 url("images/banner.jpg?v=20261104f") center 0 / cover no-repeat;
  border-bottom: 2px solid var(--gold-dark);
  box-shadow: 0 1px 0 #000, 0 8px 24px rgba(0, 0, 0, 0.6);
}
.banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50px;
  background: linear-gradient(transparent, rgba(23, 18, 15, 0.8));
  pointer-events: none;
}
.banner-link { position: absolute; inset: 0; z-index: 1; }

/* ---- layout ---- */
.layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 190px;
  grid-template-areas: "left main right";
  align-items: start;
  gap: 12px;
  margin-top: -22px;
  position: relative;
  z-index: 2;
}

/* ---- molduras (9-slice da madeira com cantos dourados, metade do tamanho) ---- */
.box {
  border: 14px solid transparent;
  border-image: url("images/frame-sm.png?v=20261104f") 16 / 14px stretch;
  background: linear-gradient(rgba(243, 230, 205, 0.7), rgba(243, 230, 205, 0.7)), #ead8b4 url("images/parchment.png?v=20261104f") 0 0 / 96px 96px;
  background-clip: padding-box;
  padding: 2px 8px 6px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}
.box > .box-head { margin: -2px -8px 10px; }
.box-body { padding: 0; }
.box-body > :last-child { margin-bottom: 0; }

.box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 1px 10px;
  border: 4px solid transparent;
  border-image: url("images/plank.png?v=20261104f") 6 fill / 4px stretch;
  background: none;
  color: var(--gold-light);
  font: bold 14px/1.2 var(--title-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}
.box-head img { width: 20px; height: 20px; flex: none; image-rendering: auto; }
.box-head h1 { font: inherit; margin: 0; }

.divider {
  display: block;
  width: 100%;
  height: 16px;
  margin: 10px auto;
  background: url("images/divider.png?v=20261104f") center / 195px 16px no-repeat;
  border: 0;
}

.section-title {
  margin: 12px 0 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  font: bold 13px var(--title-font);
  color: var(--wood);
}

/* ---- botao de download (PixelLab), no alto da coluna esquerda ---- */
.download-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2.75 / 1;
  margin: 0 0 10px;
  padding: 0 18px 1px;
  background: url("images/btn-download.png?v=20261104f") center / 100% 100% no-repeat;
  image-rendering: auto;
  color: #fff8dc;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 #000, 0 0 6px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  transition: filter 0.2s, transform 0.2s;
}
.download-btn .dl-title, .download-btn .dl-sub { position: relative; z-index: 1; transition: color 0.2s, text-shadow 0.2s; }
.download-btn .dl-title { color: #ffe39a; font: bold 18px/1 var(--title-font); letter-spacing: 0.1em; text-transform: uppercase; }
.download-btn .dl-sub { margin-top: 3px; font: bold 11px/1 var(--text-font); color: #fff1c4; }
/* brilho que atravessa o painel do botao */
.download-btn::after {
  content: "";
  position: absolute;
  inset: 29% 11%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, 0.55) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}
.download-btn:hover, .download-btn:focus-visible {
  color: #fff;
  text-decoration: none;
  filter: drop-shadow(0 0 6px rgba(255, 200, 100, 0.95)) drop-shadow(0 0 16px rgba(255, 140, 40, 0.7)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)) brightness(1.18) saturate(1.15);
  transform: translateY(-2px) scale(1.04);
}
.download-btn:hover .dl-title, .download-btn:focus-visible .dl-title { color: #fff6cf; text-shadow: 0 1px 0 #000, 0 0 8px rgba(255, 200, 90, 0.9); }
.download-btn:hover .dl-sub, .download-btn:focus-visible .dl-sub { color: #fff; }
.download-btn:active { transform: translateY(0) scale(1.01); filter: drop-shadow(0 0 6px rgba(255, 200, 100, 0.8)) brightness(1.05); }
.download-btn:hover::after, .download-btn:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .download-btn { animation: dl-glow 3s ease-in-out infinite; }
  @keyframes dl-glow {
    0%, 100% { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); }
    50% { filter: drop-shadow(0 0 7px rgba(255, 180, 80, 0.45)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); }
  }
  .download-btn:hover, .download-btn:focus-visible { animation: none; }
  .download-btn:hover::after, .download-btn:focus-visible::after { animation: dl-shine 1.1s ease-out; }
  @keyframes dl-shine {
    from { background-position: -150% 0; }
    to { background-position: 250% 0; }
  }
}

/* ---- menu ---- */
.side { min-width: 0; grid-area: left; }
.side-right { min-width: 0; grid-area: right; }
.main { grid-area: main; }
.menu { padding: 2px 6px 6px; }
.menu-group + .menu-group { margin-top: 8px; }
.menu-title {
  display: flex; align-items: center; gap: 6px;
  margin: 0 -6px 3px; padding: 0 8px;
  min-height: 26px;
  border: 4px solid transparent;
  border-image: url("images/plank.png?v=20261104f") 6 fill / 4px stretch;
  color: var(--gold-light);
  font: bold 13px/1.2 var(--title-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}
.menu-title img { width: 20px; height: 20px; image-rendering: auto; }
.menu a {
  display: block;
  padding: 2px 4px 2px 18px;
  background: url("images/icon-bullet.png?v=20261104f") 3px 50% / 10px 10px no-repeat;
  color: var(--ink);
  font-weight: bold;
  border-bottom: 1px solid var(--line);
}
.menu a:last-child { border-bottom: 0; }
.menu a:hover, .menu a.active { color: var(--link-hover); background-color: rgba(122, 61, 12, 0.08); }
.menu-toggle { display: none; }
.menu a[hidden] { display: none; }

.status {
  text-align: center;
  padding: 6px 6px 8px;
}
.status-emblem { display: block; margin: 0 auto 4px; width: 48px; height: 48px; image-rendering: auto; }
.status-line { font-weight: bold; display: flex; gap: 6px; align-items: center; justify-content: center; }
.status .menu-title { margin-bottom: 8px; text-align: left; }
.status-players { display: block; margin-top: 2px; font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #888; box-shadow: 0 0 0 2px rgba(0,0,0,0.2); flex: none; }
.dot.on { background: #4cd137; box-shadow: 0 0 5px #4cd137; }
.dot.off { background: var(--bad); }

.main { min-width: 0; outline: none; }

/* ---- textos ---- */
.main p { margin: 0 0 8px; }
.lead { font-size: 12.5px; }
.muted { color: var(--ink-soft); }
.small { font-size: 11px; }
.note { display: block; font-size: 11px; font-weight: normal; color: #8a4a12; }
/* link pequeno na mesma linha do valor (Telmora Points ... History) */
.inline-link { margin-left: 10px; font-size: 11px; font-weight: normal; color: #8a4a12; }
.row-links { white-space: nowrap; }
.row-links .inline-link:first-child { margin-left: 0; }
/* comentario do personagem: respeita as quebras de linha, sem estourar a tabela */
.comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.form textarea { width: 100%; max-width: 520px; box-sizing: border-box; font: inherit; resize: vertical; }
.news-item h2 {
  margin: 0 0 2px;
  font: bold 15px/1.3 var(--title-font);
  color: var(--wood);
}
.news-date { color: var(--ink-soft); font-size: 11px; margin-bottom: 6px; }
.news-item p { white-space: pre-line; }
.plain-list { margin: 0 0 10px; padding-left: 18px; }
.plain-list li { margin-bottom: 3px; }

/* lista "rotulo: valor" com linhas finas (dados da conta) */
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; margin: 0 0 8px; }
.kv dt, .kv dd { margin: 0; padding: 5px 2px; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: bold; color: var(--ink-soft); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }

/* ---- tabelas no estilo do tibia.com antigo ---- */
.table-wrap { overflow-x: auto; margin: 0 0 10px; }
table.tbl { width: 100%; border-collapse: collapse; border: 1px solid #5f4d41; }
.tbl th, .tbl td { padding: 3px 7px; text-align: left; vertical-align: top; }
.tbl thead th, .tbl .head td {
  background: var(--row-head);
  color: #fff;
  font-weight: bold;
}
.tbl > tbody > tr:nth-child(odd) > td { background: var(--row-a); }
.tbl > tbody > tr:nth-child(even) > td { background: var(--row-b); }
.tbl td.center, .tbl th.center { text-align: center; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
/* linhas com botao (Services): texto no meio da linha */
.tbl.middle td { vertical-align: middle; }
.tbl th.label { width: 34%; background: var(--row-b); color: var(--ink); white-space: nowrap; }
.tbl caption {
  caption-side: top;
  text-align: left;
  padding: 3px 7px;
  background: var(--wood);
  color: var(--gold-light);
  font: bold 12px var(--title-font);
  letter-spacing: 0.04em;
  border: 1px solid #000;
  border-bottom: 0;
}

.online-yes { color: var(--ok); font-weight: bold; }
.online-no { color: var(--bad); font-weight: bold; }

/* ---- formularios ---- */
.form { display: grid; gap: 8px; max-width: 400px; }
.form label { display: grid; gap: 2px; font-weight: bold; }
.form .hint { font-weight: normal; color: var(--ink-soft); font-size: 11px; }
.form input[type=text], .form input[type=email], .form input[type=password], .form select, .form textarea, .inline-form input, .inline-form select {
  font: 12px var(--text-font);
  padding: 4px 7px;
  color: var(--ink);
  background: #fbf5e8;
  border: 1px solid #8a6a48;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.08);
}
.form input:focus, .form textarea:focus, .inline-form input:focus, .form select:focus, .inline-form select:focus { border-color: var(--gold-dark); outline: 2px solid rgba(240, 195, 90, 0.7); outline-offset: 0; }
.radios { display: flex; gap: 16px; font-weight: normal; }
.radios label { display: inline-flex; align-items: center; gap: 4px; font-weight: normal; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 6px; font-weight: normal !important; }
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }

.btn {
  display: inline-block;
  padding: 3px 14px;
  border: 4px solid transparent;
  border-image: url("images/plank.png?v=20261104f") 6 fill / 4px stretch;
  background: none;
  color: var(--gold-light);
  font: bold 12.5px/1.4 var(--title-font);
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn.small { padding: 1px 10px; font-size: 12px; }
.btn:hover, .btn:focus-visible { color: #fff; filter: brightness(1.15); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { filter: grayscale(0.7) brightness(0.8); cursor: not-allowed; }
.btn.gold { border-image-source: url("images/plank-gold.png?v=20261104f"); }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.btn-row.top { margin: 0 0 10px; }

.msg { padding: 6px 9px; margin: 0 0 10px; border: 1px solid; border-left-width: 4px; font-weight: bold; }
.msg.error { background: #f6dcd3; border-color: var(--bad); color: #6d140b; }
.msg.ok { background: #dcedd0; border-color: var(--ok); color: #234d16; }

/* recovery key */
.rk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.rk-key {
  font: bold 16px/1 "Consolas", "Courier New", monospace;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  background: #fbf5e8;
  border: 1px dashed var(--gold-dark);
  user-select: all;
}

.pager { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0; }
.pager a, .pager span { padding: 1px 7px; border: 1px solid #8a6a48; background: var(--row-a); }
.pager .current { background: var(--row-head); color: #fff; font-weight: bold; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 8px; }
.filters label { display: grid; gap: 2px; font-weight: bold; }
.filters select { font: 12px var(--text-font); padding: 3px 4px; background: #fbf5e8; border: 1px solid #8a6a48; }

/* situacao na lista de casas */
.house-st { font-weight: bold; }
.house-st.free { color: #2f6b1f; }
.house-st.bid { color: #9a5a00; }
.house-st.rented { color: #7a2a1a; }

.download-card { display: flex; gap: 14px; align-items: center; }
.download-card img { width: 48px; height: 48px; flex: none; }

.rules ol { margin: 0 0 8px; padding-left: 20px; }
.rules li { margin-bottom: 3px; }
.rules-section { font: bold 14px var(--title-font); margin: 14px 0 4px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.rules-list { margin: 0 0 6px; }
.rules-list dt { font-weight: bold; margin-top: 6px; scroll-margin-top: 80px; }
.rules-list dd { margin: 2px 0 0 24px; }
.rules-list dt.highlight { background: var(--row-b); outline: 2px solid var(--gold-dark); }
.rule-code { display: inline-block; min-width: 22px; color: var(--link); }
.rule-days { font-weight: normal; font-size: 11px; }

.loading { color: var(--ink-soft); font-style: italic; }

.footer {
  margin-top: 6px;
  padding: 10px;
  text-align: center;
  color: #b9a58a;
  font-size: 11px;
  border-top: 1px solid #3a2a1e;
}

/* ---- telas medias: o status desce para baixo do menu ---- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 190px minmax(0, 1fr); grid-template-areas: "left main" "right main"; grid-template-rows: auto 1fr; }
}

/* ---- telas menores ---- */
@media (max-width: 760px) {
  .page { padding: 0 10px 14px; }
  .banner { height: 140px; margin: 0 -10px; background-position: 70% 20%; }
  .layout { grid-template-columns: 1fr; margin-top: -14px; gap: 0; }
  .menu-toggle {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 5px;
    border: 4px solid transparent;
    border-image: url("images/plank.png?v=20261104f") 6 fill / 4px stretch;
    background: none;
    color: var(--gold-light);
    font: bold 14px var(--title-font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
    cursor: pointer;
  }
  .menu { display: none; }
  .menu.open { display: block; }
  .layout { grid-template-areas: "left" "main" "right"; grid-template-rows: none; }
  .status .status-emblem { display: none; }
  .download-btn { width: 230px; margin: 0 auto 10px; }
  .box { border-width: 12px; border-image-width: 12px; padding: 2px 6px 6px; }
  .box > .box-head { margin: -2px -6px 8px; }
  .tbl th, .tbl td { padding: 3px 5px; }
  .hide-sm { display: none; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---- casas: filtros da lista e foto do minimapa na pagina da casa ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 12px; }
.filters label { display: grid; gap: 3px; font-weight: bold; font-size: 12px; }
.filters select { font: 12px var(--text-font); padding: 3px 5px; color: var(--ink); background: #fbf5e8; border: 1px solid #8a6a48; }
.house-view { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; }
.house-photo { flex: none; width: 160px; height: 160px; image-rendering: pixelated; border: 2px solid #5f4d41; background: #000; }
.house-text { min-width: 0; }
.house-text p { margin: 0 0 8px; }
.rules-box { margin: 4px 0 12px; }
.rules-box summary { cursor: pointer; font-weight: bold; color: var(--wood); }
.rules-box p { margin: 6px 0 0; }
@media (max-width: 560px) { .house-view { flex-direction: column; } }

/* guildas: descricao */
.form textarea { resize: vertical; min-height: 80px; font-family: var(--text-font); }

/* ---- About Us ---- */
.about-hero { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 10px; }
.about-hero img { flex: none; width: 64px; height: 64px; }
.about-facts { margin-bottom: 4px; }
.section-title.about-h { margin-top: 16px; font-size: 15px; }
.about-list { margin: 0 0 10px; padding-left: 0; list-style: none; }
.about-list li { position: relative; margin-bottom: 4px; padding-left: 16px; }
.about-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 6px; height: 6px; background: var(--gold-dark); transform: rotate(45deg); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0 0 10px; }
.about-card { padding: 7px 9px; background: rgba(255, 250, 238, 0.55); border: 1px solid rgba(95, 77, 65, 0.45); border-left: 3px solid var(--gold-dark); }
.about-card h3 { margin: 0 0 3px; font: bold 13px/1.3 var(--title-font); color: var(--wood); }
.main .about-card p { margin: 0; font-size: 11.5px; }
.about-end { text-align: center; font-weight: bold; }
@media (max-width: 560px) { .about-hero { flex-direction: column; align-items: center; text-align: center; } }

/* ---- comunidade: Kill Statistics, Latest Deaths, titulos que ordenam ---- */
.tbl th a.th-link { color: #fff; text-decoration: underline; }
.tbl th a.th-link:hover { color: var(--gold-light); }
.tbl.killstats thead th { text-align: center; vertical-align: middle; }
.tbl.killstats thead th.num { text-align: right; }
.tbl.killstats thead th.group { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.tbl.killstats tbody td:first-child { white-space: nowrap; }
.tbl .total td { border-top: 2px solid #5f4d41; }
.inline-form { margin: 0; }
.inline-row { display: flex; gap: 4px; align-items: center; }
.num-input { width: 70px; font: 12px var(--text-font); padding: 3px 4px; background: #fbf5e8; border: 1px solid #8a6a48; }

/* ---- lista de guildas: logo, descricao, membros ---- */
.guild-list td:first-child, .guild-list th:first-child { width: 72px; text-align: center; }
.guild-logo { display: block; width: 64px; height: 64px; margin: 0 auto; object-fit: contain; }
.guild-head { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; }
.guild-head .guild-logo { flex: none; margin: 0; }
.guild-head p { margin: 0 0 6px; }

/* ---- coluna da direita: Get Premium, contagem do server save, Powergamers, Streamers ---- */
.premium-box { padding: 6px 8px 8px; text-align: center; }
.premium-box .menu-title { justify-content: center; margin-bottom: 8px; }
.premium-btn {
  position: relative; display: block; overflow: hidden;
  padding: 9px 6px;
  border: 2px solid #5a3410; border-radius: 3px;
  background: linear-gradient(180deg, #ffe58a 0%, #f2c14e 45%, #c98a1a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(90, 52, 16, 0.45), 0 2px 4px rgba(0, 0, 0, 0.5);
  color: #3b1f06; font: bold 15px/1 var(--title-font); letter-spacing: 0.08em; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 245, 200, 0.8); text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}
.premium-btn span { position: relative; z-index: 1; }
.premium-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.premium-btn:hover, .premium-btn:focus-visible {
  color: #2a1503; text-decoration: none; transform: translateY(-1px) scale(1.03);
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(255, 196, 70, 0.9));
}
.premium-note { margin: 6px 0 0; font-size: 11px; color: var(--ink-soft, #6b5642); }
@media (prefers-reduced-motion: no-preference) {
  .premium-btn { animation: premium-glow 2.4s ease-in-out infinite; }
  .premium-btn::after { animation: premium-shine 3.2s ease-in-out infinite; }
  @keyframes premium-glow {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(90, 52, 16, 0.45), 0 2px 4px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(90, 52, 16, 0.45), 0 0 12px rgba(255, 190, 60, 0.85); }
  }
  @keyframes premium-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
}
.save-timer { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); }
.save-title { font-size: 11px; font-weight: bold; color: var(--ink-soft, #6b5642); }
.save-clock {
  display: inline-block; margin: 3px 0; padding: 3px 10px;
  background: #2b2a26; border: 2px solid #8a6a48; border-radius: 3px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
  color: #f3e3b5; font: bold 20px/1.1 "Courier New", monospace; letter-spacing: 0.08em;
}
.save-label { font-size: 10.5px; color: var(--ink-soft, #6b5642); }
.side-rank { padding: 6px 6px 8px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; align-items: center; gap: 6px; padding: 6px 0 5px 4px; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-rank-num { position: absolute; left: -4px; top: -4px; min-width: 15px; height: 15px; padding: 0 2px; border-radius: 8px; background: var(--wood, #5a3410); color: #ffe39a; font: bold 10px/15px var(--title-font); text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.side-rank-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-rank-body > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-rank-body .side-name { font-size: 11px; font-weight: bold; }
.side-rank-line { display: flex; align-items: center; gap: 3px; margin-top: 1px; }
.side-rank-line .xp-badge { padding: 0 3px; font-size: 9.5px; letter-spacing: -0.2px; }
.side-rank-line .side-rank-info { font-size: 9.5px; }
.side-rank-info { font-size: 10px; color: var(--ink-soft, #6b5642); }
.xp-badge {
  flex: none; padding: 0 5px; border: 1px solid #c98a1a; border-radius: 9px;
  background: #fff1c9; color: #8a4b05; font-size: 10px; font-weight: bold; white-space: nowrap;
}
.side-platform { flex: none; padding: 1px 5px; border-radius: 3px; background: #6441a5; color: #fff; font-size: 10px; font-weight: bold; }
.side-platform.youtube { background: #c4302b; }
.side-platform.kick { background: #2f8a12; }
.side-empty { justify-content: center; font-size: 11px; }
.side-more { display: block; margin-top: 5px; text-align: center; font-size: 11.5px; font-weight: bold; }
.side-outfit { position: relative; flex: none; display: flex; width: 40px; height: 40px; border: 1px solid rgba(95, 77, 65, 0.4); border-radius: 3px; background: rgba(95, 77, 65, 0.12); }
.outfit-img { display: block; image-rendering: pixelated; }

/* ---- guilda: telas de gestao e regras em cartoes ---- */
.manage-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.manage-tile {
  display: flex; flex-direction: column; gap: 3px; padding: 8px 10px;
  border: 1px solid rgba(95, 77, 65, 0.45); border-left: 3px solid var(--gold-dark);
  background: rgba(255, 250, 238, 0.6); color: var(--ink); text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.manage-tile strong { color: var(--link, #7a3d0c); font: bold 13px var(--title-font); }
.manage-tile span { font-size: 11.5px; font-weight: normal; color: var(--ink-soft); }
.manage-tile:hover, .manage-tile:focus-visible { background: rgba(255, 244, 214, 0.95); transform: translateY(-1px); text-decoration: none; }
.manage-tile.danger { border-left-color: #a8321e; }
.manage-tile.danger strong { color: #a8321e; }
.rule-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 0 8px; }
@media (max-width: 560px) { .rule-cards { grid-template-columns: 1fr; } }
.rule-card { padding: 8px 10px; background: rgba(255, 250, 238, 0.55); border: 1px solid rgba(95, 77, 65, 0.4); border-top: 3px solid var(--gold-dark); }
.rule-card h3 { margin: 0 0 5px; font: bold 13px/1.3 var(--title-font); color: var(--wood); }
.rule-card ul { margin: 0; padding: 0; list-style: none; }
.rule-card li { position: relative; margin: 0 0 4px; padding-left: 13px; font-size: 12px; line-height: 1.45; }
.rule-card li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 5px; height: 5px; background: var(--gold-dark); transform: rotate(45deg); }
.guild-list td:nth-child(2) { white-space: nowrap; }
.guild-list td:nth-child(3) { width: 55%; }

/* ---- Discord (coluna da direita), regras das guildas em texto, membros no centro ---- */
.discord-btn {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 4px 10px 4px 4px;
  border: 2px solid var(--gold-dark); border-radius: 3px;
  background: linear-gradient(180deg, #5a3a22 0%, var(--wood) 55%, var(--wood-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 231, 163, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 3px 6px rgba(0, 0, 0, 0.5);
  color: var(--gold-light); text-decoration: none; transition: transform 0.15s, filter 0.15s, border-color 0.15s;
}
.discord-btn img { flex: none; width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.discord-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.discord-btn strong { font: bold 16px var(--title-font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 0 #000; }
.discord-btn small { font-size: 11px; color: #e9d9b5; }
.discord-btn:hover, .discord-btn:focus-visible { color: var(--gold-light); text-decoration: none; transform: translateY(-1px); border-color: var(--gold); filter: brightness(1.12) drop-shadow(0 0 6px rgba(240, 195, 90, 0.55)); }
.rules-text { margin: 2px 0 8px; }
.rules-group + .rules-group { margin-top: 10px; }
.rules-group h3 { margin: 0 0 4px; padding-bottom: 2px; border-bottom: 1px solid var(--line); font: bold 13px var(--title-font); color: var(--wood); }
.rules-group ul { margin: 0; padding: 0; list-style: none; }
.rules-group li { position: relative; padding: 2px 0 2px 16px; line-height: 1.5; }
.rules-group li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 5px; height: 5px; background: var(--gold-dark); transform: rotate(45deg); }
.guild-list td:nth-child(4), .guild-list th:nth-child(4) { text-align: center; }
.guild-list th:nth-child(4) a { display: inline; }
.serverinfo .table-wrap + .table-wrap, .serverinfo .table-wrap + p { margin-top: 10px; }

/* ---- Library: Items, Raids, Quests, Spells, Game Features, Map ---- */
.msg.info { background: #f3ead2; border-color: var(--gold-dark); color: var(--ink); }
.item-icon { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; }
.item-cats { display: grid; gap: 6px; margin: 0 0 8px; }
.item-cat-group h2 { margin: 0 0 3px; font: bold 13px var(--title-font); color: var(--wood); border-bottom: 1px solid var(--line); }
.item-cat-row { display: flex; flex-wrap: wrap; gap: 4px; }
.item-cat {
  display: flex; flex-direction: column; align-items: center; gap: 1px; width: 76px; padding: 3px 2px 4px;
  border: 1px solid rgba(95, 77, 65, 0.4); background: rgba(255, 250, 238, 0.6); color: var(--ink);
  font-size: 11px; text-align: center; text-decoration: none; transition: background 0.15s, transform 0.15s;
}
.item-cat:hover, .item-cat:focus-visible { background: rgba(255, 244, 214, 0.95); transform: translateY(-1px); text-decoration: none; }
.item-cat.active { border-color: var(--gold-dark); background: #f6e3b4; font-weight: bold; box-shadow: inset 0 0 0 1px var(--gold); }
.tbl.items td.icon-col, .tbl.items th.icon-col { width: 34px; padding: 1px 2px; text-align: center; }
.tbl.items > tbody > tr.item-row > td, .tbl.items > tbody > tr.item-detail > td { background: var(--row-a); }
.tbl.items > tbody > tr.item-row.even > td, .tbl.items > tbody > tr.item-detail.even > td { background: var(--row-b); }
.tbl.items tbody tr.item-row { cursor: pointer; }
.tbl.items > tbody > tr.item-row:hover > td, .tbl.items > tbody > tr.item-row.open > td { background: #f8e7bd; }
.tbl.items > tbody > tr.item-detail > td { padding: 4px 10px 8px 44px; border-top: 1px dashed var(--line); font-size: 11.5px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-align: left; }
.linkish:hover, .linkish:focus-visible { color: var(--link-hover); text-decoration: underline; }
.item-desc { margin: 0 0 4px; font-style: italic; }
.item-facts { display: grid; grid-template-columns: max-content 1fr; gap: 1px 8px; margin: 0 0 4px; }
.item-facts dt { font-weight: bold; }
.item-facts dd { margin: 0; }
.item-attr { margin: 0 0 4px; }
.item-attr ul { margin: 2px 0 0; padding-left: 16px; columns: 2 220px; }
.item-attr .attr-name { font-weight: bold; }
.item-list { margin: 0 0 3px; }
.cls-badge { display: inline-block; min-width: 16px; padding: 0 4px; border: 1px solid var(--gold-dark); border-radius: 2px; background: #f6e3b4; color: var(--wood); font-weight: bold; text-align: center; text-decoration: none; }
/* sim/nao (Premium das quests e das magias): selo redondo, no meio da coluna */
.yes, .no { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  color: #fff; font-size: 11px; font-weight: bold; line-height: 1; vertical-align: middle; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); }
.yes { background: var(--ok); }
.no { background: var(--bad); }
.stars { color: #d98a16; letter-spacing: 1px; text-shadow: 0 1px 0 #5a3410; white-space: nowrap; }
/* quests: as mesmas larguras em todas as tabelas (Rookgaard, Mainland...) para as colunas ficarem alinhadas */
.tbl.quests { table-layout: fixed; }
.tbl.quests th:nth-child(1) { width: 25%; }
.tbl.quests th:nth-child(2) { width: 9%; }
.tbl.quests th:nth-child(3) { width: 12%; }
.tbl.quests th:nth-child(4) { width: 25%; }
@media (max-width: 760px) { .tbl.quests th:nth-child(1) { width: 34%; } .tbl.quests th:nth-child(2) { width: 15%; } .tbl.quests th:nth-child(3) { width: 18%; } }
/* NPCs que vendem/compram o item e que ensinam a magia (como no TibiaWiki) */
.trade-wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 14px; margin: 6px 0 2px; }
table.trade { border-collapse: collapse; border: 1px solid #5f4d41; min-width: 230px; max-width: 100%; font-size: 11.5px; }
table.trade caption { caption-side: top; text-align: left; padding: 0 0 2px; background: none; border: 0; font-size: 12px; font-weight: bold; color: var(--wood); }
table.trade th, table.trade td { padding: 2px 8px; text-align: left; vertical-align: top; border: 0; }
table.trade thead th { background: var(--row-head); color: #fff; font-weight: bold; white-space: nowrap; }
table.trade > tbody > tr:nth-child(odd) > td { background: #fbf4e4; }
table.trade > tbody > tr:nth-child(even) > td { background: #f1e3c6; }
table.trade td.num, table.trade th.num { text-align: right; white-space: nowrap; }
table.trade > tbody > tr > td.best { background: #cfe6b0; color: #1f4d12; font-weight: bold; }
table.trade td.muted { color: var(--ink-soft); }
table.trade td:first-child { white-space: nowrap; }
table.trade:not(.teachers) td:first-child { white-space: normal; max-width: 260px; }
@media (max-width: 760px) {
  .tbl.items > tbody > tr.item-detail > td { padding-left: 8px; }
  table.trade { min-width: 0; width: 100%; }
}
.spell-words { color: var(--ink-soft); font-weight: normal; }
.feature-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; border-bottom: 2px solid var(--gold-dark); }
.feature-tabs a { padding: 4px 12px; border: 1px solid rgba(95, 77, 65, 0.45); border-bottom: 0; background: rgba(255, 250, 238, 0.6); color: var(--ink); font: bold 13px var(--title-font); text-decoration: none; }
.feature-tabs a.active { background: var(--wood); color: var(--gold-light); border-color: var(--gold-dark); }
.feature-tabs a:hover { text-decoration: none; background: rgba(255, 244, 214, 0.95); }
.feature-tabs a.active:hover { background: var(--wood); }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.feature-card { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px solid rgba(95, 77, 65, 0.45); border-top: 3px solid var(--gold-dark); background: rgba(255, 250, 238, 0.6); color: var(--ink); text-decoration: none; }
.feature-card strong { color: var(--link); font: bold 14px var(--title-font); }
.feature-card span { font-size: 11.5px; }
.feature-card:hover, .feature-card:focus-visible { background: rgba(255, 244, 214, 0.95); text-decoration: none; transform: translateY(-1px); }
ul.rules-list, ol.rules-list { padding-left: 20px; }
ul.rules-list li, ol.rules-list li { margin: 0 0 4px; line-height: 1.45; }
.map-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
.map-zoom { min-width: 40px; text-align: center; font-weight: bold; }
.map-coord { margin-left: auto; font-size: 11px; font-family: monospace; }
.map-view { height: min(70vh, 640px); overflow: auto; border: 2px solid var(--wood); background: #3200cb; cursor: grab; touch-action: none; overscroll-behavior: contain; }
.map-view.dragging { cursor: grabbing; }
.world-map { display: block; max-width: none; image-rendering: pixelated; user-select: none; -webkit-user-drag: none; }
.item-cat .cat-icon { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }

/* ---- News (post principal), News Archive e Support (Contact, FAQ, Premium) ---- */
.news-more { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11.5px; }
.news-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.tbl.archive td:first-child { width: 24px; padding: 2px 4px; }
.archive-icon { display: block; image-rendering: pixelated; }
.tbl.archive td:last-child { white-space: nowrap; width: 1%; color: var(--ink-soft); }
.contact-ways { display: grid; gap: 8px; margin: 0 0 10px; }
.contact-way, .perk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid rgba(95, 77, 65, 0.4); border-left: 3px solid var(--gold-dark); background: rgba(255, 250, 238, 0.6); }
.contact-way img, .perk img { flex: none; width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.contact-way h3, .perk h3 { margin: 2px 0 3px; font: bold 14px var(--title-font); color: var(--wood); }
.contact-way p, .perk p { margin: 0; font-size: 12px; line-height: 1.45; }
.faq { display: grid; gap: 4px; margin: 0 0 8px; }
.faq-item { border: 1px solid rgba(95, 77, 65, 0.4); background: rgba(255, 250, 238, 0.6); }
.faq-item summary { cursor: pointer; padding: 6px 10px; font-weight: bold; color: var(--link); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "\25B8"; display: inline-block; width: 14px; color: var(--gold-dark); transition: transform 0.15s; }
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item summary:hover, .faq-item summary:focus-visible { color: var(--link-hover); }
.faq-a { padding: 0 10px 8px 24px; font-size: 12px; line-height: 1.5; }
.premium-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 10px; }
.premium-hero .lead { flex: 1 1 260px; margin: 0; }
.premium-hero .premium-btn { flex: 0 0 auto; min-width: 170px; text-align: center; }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 0 0 8px; }

/* ---- menu recolhivel, ordenacao das tabelas, cola de atributos, Store Shop ---- */
#menu .menu-title { cursor: pointer; user-select: none; }
#menu .menu-title::after { content: "\25BE"; margin-left: auto; font-size: 11px; opacity: 0.8; transition: transform 0.15s; }
#menu .menu-group.collapsed .menu-title::after { transform: rotate(-90deg); }
#menu .menu-title:hover, #menu .menu-title:focus-visible { filter: brightness(1.15); outline: none; }
#menu .menu-group.collapsed > a { display: none; }
#menu .menu-group.collapsed .menu-title { margin-bottom: 0; }
/* ordenar pelo titulo: setas desenhadas (SVG) centralizadas com o texto; nas colunas de numero a seta
   fica antes do texto, para o titulo alinhar com os numeros; a coluna ordenada acende */
.tbl th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.sortable::after, .tbl th.sortable.num::before { content: ""; display: inline-block; width: 8px; height: 11px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='11' viewBox='0 0 8 11'%3E%3Cpath d='M4 0L8 4.5H0z' fill='%23f3e3bd' fill-opacity='0.35'/%3E%3Cpath d='M4 11L0 6.5H8z' fill='%23f3e3bd' fill-opacity='0.35'/%3E%3C/svg%3E") no-repeat; }
.tbl th.sortable::after { margin-left: 5px; }
.tbl th.sortable.num::after { content: none; }
.tbl th.sortable.num::before { margin-right: 5px; }
.tbl th.sortable[aria-sort="ascending"]::after, .tbl th.sortable.num[aria-sort="ascending"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='11' viewBox='0 0 8 11'%3E%3Cpath d='M4 0L8 4.5H0z' fill='%23f3e3bd' fill-opacity='1'/%3E%3Cpath d='M4 11L0 6.5H8z' fill='%23f3e3bd' fill-opacity='0.2'/%3E%3C/svg%3E"); }
.tbl th.sortable[aria-sort="descending"]::after, .tbl th.sortable.num[aria-sort="descending"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='11' viewBox='0 0 8 11'%3E%3Cpath d='M4 0L8 4.5H0z' fill='%23f3e3bd' fill-opacity='0.2'/%3E%3Cpath d='M4 11L0 6.5H8z' fill='%23f3e3bd' fill-opacity='1'/%3E%3C/svg%3E"); }
.tbl th.sortable:hover, .tbl th.sortable:focus-visible { color: var(--gold-light); outline: none; }
.tbl th.sortable[aria-sort="ascending"], .tbl th.sortable[aria-sort="descending"] { color: var(--gold-light); }
.tbl.sorted > tbody > tr:nth-child(odd) > td, .tbl.sorted > tbody > tr:nth-child(even) > td { background: var(--row-a); }
.tbl.sorted > tbody > tr.even > td { background: var(--row-b); }
button.cls-badge { font: inherit; font-weight: bold; cursor: help; padding: 0 5px; }
button.cls-badge:hover, button.cls-badge:focus-visible { background: var(--gold); outline: none; }
.attr-tip { position: fixed; z-index: 50; width: max-content; max-width: calc(100vw - 16px); overflow-x: auto; box-sizing: border-box; padding: 6px 8px 7px; background: #fbf3df; color: var(--ink);
  border: 2px solid var(--gold-dark); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); font-size: 11.5px; pointer-events: none; }
.attr-tip[hidden] { display: none; }
.attr-tip .tip-title { font: bold 13px var(--title-font); color: var(--wood); margin: 0 0 4px; }
.tip-table { border-collapse: collapse; width: 100%; }
.tip-table th, .tip-table td { padding: 1px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tip-table thead th { color: var(--ink-soft); font-size: 10.5px; }
.tip-table tbody th { font-weight: bold; }
.tip-chance { color: var(--ink-soft); font-size: 10.5px; }
.tip-note { margin-top: 4px; color: var(--ink-soft); font-size: 10.5px; }
.store-tag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 2px; background: #6b3fa0; color: #fff; font-size: 9.5px; font-weight: bold; text-transform: uppercase; vertical-align: 1px; }
.blank-rune { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 8px; border: 1px solid rgba(95, 77, 65, 0.4); background: rgba(255, 250, 238, 0.6); }
.blank-rune p { margin: 0; font-size: 12px; }

/* dica do Attribute: uma tabelinha por atributo (Amount / Chance / Enchant), como no Miracle */
.attr-tip { max-height: calc(100vh - 16px); overflow-y: auto; }
.tip-grid { display: grid; gap: 8px 10px; }
.tip-grid.cols-1 { grid-template-columns: max-content; }
.tip-grid.cols-2 { grid-template-columns: repeat(2, max-content); }
.tip-grid.cols-3 { grid-template-columns: repeat(3, max-content); }
@media (max-width: 760px) { .tip-grid.cols-3 { grid-template-columns: repeat(2, max-content); } }
@media (max-width: 480px) { .tip-grid.cols-2, .tip-grid.cols-3 { grid-template-columns: max-content; } }
.tip-attr { border-collapse: collapse; }
.tip-attr caption { font-weight: bold; color: #3f6b22; text-align: center; padding: 0 0 2px; }
.tip-attr th, .tip-attr td { border: 1px solid var(--line); padding: 1px 7px; text-align: center; white-space: nowrap; }
.tip-attr thead th { background: #efe2c2; font-size: 10.5px; color: var(--ink-soft); }
.tip-attr td:first-child { font-weight: bold; }
.tip-attr td:nth-child(2) { color: var(--ink); }
.tip-attr td:nth-child(3) { color: var(--ink-soft); }
.tip-note { width: 0; min-width: 100%; white-space: normal; }
.tip-close { display: none; }
@media (hover: none) {
  .attr-tip { pointer-events: auto; overscroll-behavior: contain; }
  .tip-close { display: block; float: right; margin: -2px -2px 0 8px; width: 30px; height: 30px; border: 1px solid var(--gold-dark);
    background: #efe2c2; color: var(--wood); font: bold 20px/26px sans-serif; cursor: pointer; }
}

/* Game Features: imagens de exemplo (pixel art em dobro, sem suavizar) */
.feature-figure { margin: 8px 0 12px; text-align: center; }
.feature-figure img { display: block; margin: 0 auto; max-width: 100%; height: auto; image-rendering: pixelated; border: 2px solid var(--gold-dark); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.feature-figure figcaption { margin-top: 4px; font-size: 11.5px; color: var(--ink-soft); }
.elite-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.elite-stages .feature-figure { margin: 0; }
.elite-stages figcaption { font: bold 13px var(--title-font); color: var(--ink); }
@media (max-width: 560px) { .elite-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-thumb { display: block; aspect-ratio: 8 / 3; margin: -2px -4px 4px; overflow: hidden; border: 1px solid rgba(95, 77, 65, 0.45); background: #2a2018; }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Raids: caveira da dificuldade (PixelLab), mensagem do anuncio */
.raid-skull { width: 32px; height: 32px; image-rendering: pixelated; vertical-align: middle; flex: none; }
.raid-level { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.raid-level-name { font-size: 11px; color: var(--ink-soft); }
.raid-msg { font-size: 11.5px; font-style: italic; color: var(--ink-soft); margin-top: 2px; }
.raid-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0 0 8px; font-size: 12px; }
.raid-legend span { display: inline-flex; align-items: center; gap: 4px; }
.raid-legend .raid-skull { width: 24px; height: 24px; }
@media (max-width: 560px) { .raid-level-name { display: none; } }

/* noticia fixada: etiqueta, linha do tempo do projeto (PixelLab) e inscricao no beta */
.news-item + .news-item { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.news-pin { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 2px; background: var(--wood); color: var(--gold-light); font: bold 10px var(--title-font); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 3px; }
.roadmap { position: relative; margin: 12px 0 16px; padding: 30px 9% 22px; overflow: hidden; border: 2px solid var(--gold-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); background: #1c120c; }
.roadmap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(22, 13, 8, 0.72), rgba(22, 13, 8, 0.86)), url('images/news/roadmap.png?v=20261113') center / cover;
  image-rendering: pixelated; }
.roadmap-line { position: relative; height: 104px; }
.roadmap-line::before, .roadmap-line::after { content: ""; position: absolute; top: 47px; left: 0; height: 10px; border-radius: 5px; }
.roadmap-line::before { right: 0; background: rgba(120, 96, 72, 0.45); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.roadmap-line::after { width: var(--done); background: linear-gradient(90deg, #c98a1a, #ffe58a 70%, rgba(255, 229, 138, 0.2));
  box-shadow: 0 0 10px rgba(255, 196, 70, 0.75); }
.roadmap-step { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 1; }
.roadmap-step strong { height: 22px; font: bold 15px var(--title-font); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: #b9a58c; }
.roadmap-step img { width: 64px; height: 64px; image-rendering: pixelated; border-radius: 50%; }
.roadmap-step.next img { filter: grayscale(0.85) brightness(0.65); }
.roadmap-step.now strong { color: #ffe58a; text-shadow: 0 0 8px rgba(255, 196, 70, 0.8); }
.roadmap-step.now img { box-shadow: 0 0 14px 3px rgba(255, 196, 70, 0.7); }
.roadmap-now { margin-top: 4px; font: bold 11px var(--title-font); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: #ffd25e; text-shadow: 0 0 6px rgba(255, 196, 70, 0.9); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .roadmap-step.now img { animation: roadmap-now 1.8s ease-in-out infinite; }
  @keyframes roadmap-now { 50% { box-shadow: 0 0 22px 6px rgba(255, 196, 70, 0.9); } }
}
@media (max-width: 560px) {
  .roadmap { padding: 22px 11% 16px; }
  .roadmap-line { height: 78px; }
  .roadmap-line::before, .roadmap-line::after { top: 34px; height: 7px; }
  .roadmap-step strong { height: 18px; font-size: 11px; }
  .roadmap-step img { width: 40px; height: 40px; }
  .roadmap-now { font-size: 9px; max-width: 56px; white-space: normal; text-align: center; line-height: 1.1; }
}
.beta-signup { max-width: 360px; margin: 12px auto 4px; text-align: center; }
.beta-btn { width: 100%; cursor: pointer; font-size: 17px; padding: 11px 6px; }
.beta-form { margin-top: 10px; text-align: left; }
/* minimizado ate clicar no botao dourado (o .form tem display proprio, que passava por cima do hidden) */
.beta-form[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .beta-form:not([hidden]) { animation: beta-abre 0.25s ease-out; }
  @keyframes beta-abre { from { opacity: 0; transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: no-preference) {
  .roadmap-step.now .roadmap-dot { animation: roadmap-now 1.6s ease-in-out infinite; }
  @keyframes roadmap-now { 50% { box-shadow: 0 0 0 6px rgba(242, 193, 78, 0.15); } }
}
@media (max-width: 480px) { .roadmap-step strong { font-size: 11px; } .roadmap-sub { font-size: 10px; } }

/* Elite: quanto cada fase e mais forte */
.elite-power { list-style: none; margin: 0 0 10px; padding: 8px 12px; border: 1px solid rgba(95, 77, 65, 0.4); border-left: 3px solid var(--gold-dark); background: rgba(255, 250, 238, 0.55); }
.elite-power li { margin: 2px 0; }
/* Attribution: molduras de raridade do cliente e um Look em destaque */
.attr-frame { position: relative; display: inline-block; width: 68px; height: 68px; flex: none; background: url('images/features/attr-frames.png?v=20261113') 0 0 / 340px 68px no-repeat; image-rendering: pixelated; }
.attr-frame.f2 { background-position: -68px 0; } .attr-frame.f3 { background-position: -136px 0; }
.attr-frame.f4 { background-position: -204px 0; } .attr-frame.f5 { background-position: -272px 0; }
.attr-frame img { position: absolute; left: 2px; top: 2px; width: 64px; height: 64px; image-rendering: pixelated; }
.attr-rarity { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 10px 0 12px; }
.attr-rarity figure { margin: 0; text-align: center; }
.attr-rarity figcaption { margin-top: 3px; font-size: 11px; color: var(--ink-soft); }
.attr-look { display: flex; gap: 12px; align-items: center; margin: 0 auto 14px; max-width: 620px; padding: 10px 12px; border: 2px solid var(--gold-dark);
  background: #1f1712; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.attr-look-title { font: bold 12px var(--title-font); letter-spacing: 0.06em; text-transform: uppercase; color: #c9b38f; margin-bottom: 3px; }
.attr-look-text { margin: 0; white-space: pre-line; color: #3ee03e; font: bold 12px/1.45 Verdana, sans-serif; text-shadow: 1px 1px 0 #000; }
@media (max-width: 480px) { .attr-frame { width: 51px; height: 51px; background-size: 255px 51px; } .attr-frame.f2 { background-position: -51px 0; } .attr-frame.f3 { background-position: -102px 0; } .attr-frame.f4 { background-position: -153px 0; } .attr-frame.f5 { background-position: -204px 0; } .attr-frame img { left: 1.5px; top: 1.5px; width: 48px; height: 48px; } }

/* ---- Changelog (13/11): versoes como as noticias, mudancas com o marcador do site ---- */
.changelog-list { margin: 2px 0 0; padding: 0; list-style: none; }
.changelog-list li { position: relative; margin: 0 0 4px; padding-left: 18px; }
.changelog-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px;
  background: url("images/icon-bullet.png?v=20261104f") center / 12px 12px no-repeat; image-rendering: pixelated;
}
.attr-lines { display: inline-flex; flex-direction: column; line-height: 1.3; }
.tip-attr .attr-lines { text-align: left; }

/* ---- Buy Telmora Points (14/11): banner, formas de pagamento e pacotes */
.buy-banner { display: block; width: 100%; height: auto; margin: 0 0 10px; border: 1px solid var(--gold-dark); image-rendering: pixelated; }
.buy-rules { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: rule; border: 1px solid var(--line); }
.buy-rules li { counter-increment: rule; padding: 6px 9px; }
.buy-rules li:nth-child(odd) { background: var(--row-a); }
.buy-rules li:nth-child(even) { background: var(--row-b); }
.buy-rules li b { display: block; }
.buy-rules li b::before { content: counter(rule, lower-alpha) ") "; }
.buy-accept { margin: 0 0 8px; align-items: center !important; }
.buy-form .section-title { margin-top: 10px; }
.pay-grid, .pkg-grid { display: grid; gap: 8px; margin: 0 0 10px; }
.pay-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
/* os 7 pacotes na mesma linha; em tela estreita quebram em colunas */
.pkg-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pkg-card { padding: 9px 2px; }
@media (max-width: 760px) { .pkg-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; } }
.pay-card, .pkg-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 8px; text-align: center; cursor: pointer;
  background: var(--row-a); border: 2px solid var(--line);
}
.pay-card input, .pkg-card input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card:hover, .pkg-card:hover { border-color: var(--gold-dark); }
.pay-card:has(input:checked), .pkg-card:has(input:checked) { border-color: var(--gold-dark); background: #f8e9b8; box-shadow: inset 0 0 0 1px var(--gold); }
.pay-card:has(input:focus-visible), .pkg-card:has(input:focus-visible) { outline: 2px solid rgba(240, 195, 90, 0.9); outline-offset: 1px; }
.pay-card.off { cursor: not-allowed; opacity: 0.6; }
.pay-card.off:hover { border-color: var(--line); }
.pay-name { font: bold 14px/1.3 var(--title-font); }
.pay-sub { color: var(--ink-soft); font-size: 11px; }
.pay-time { margin-top: 4px; padding-top: 4px; width: 100%; border-top: 1px solid var(--line); font-size: 11px; }
.pkg-img { display: block; width: 96px; max-width: 100%; height: auto; image-rendering: pixelated; }
.pkg-card { justify-content: flex-end; }
.pkg-card.t5, .pkg-card.t6, .pkg-card.t7 { background: linear-gradient(#fbefc3, var(--row-a) 70%); border-color: #c9a86a; }
.pkg-card.t6 .pkg-points, .pkg-card.t7 .pkg-points { color: #7a4a0e; }
.pkg-card.t7 { border-color: var(--gold-dark); box-shadow: 0 0 7px rgba(240, 195, 90, 0.85); }
.pkg-points { font-weight: bold; }
.pkg-price { color: var(--ink-soft); }
/* moeda animada da Store (13 quadros de 32x32 numa coluna) */
.coin-anim { display: inline-block; width: 32px; height: 32px; background: url("images/points-coin.png?v=20261114a") 0 0 / 32px 416px no-repeat; image-rendering: pixelated; animation: coin-shine 2.6s steps(13) infinite; }
.coin-anim.big { width: 48px; height: 48px; background-size: 48px 624px; animation-name: coin-shine-big; }
@keyframes coin-shine { from { background-position: 0 0; } to { background-position: 0 -416px; } }
@keyframes coin-shine-big { from { background-position: 0 0; } to { background-position: 0 -624px; } }
@media (prefers-reduced-motion: reduce) { .coin-anim { animation: none; } }

.row-links .btn + .btn { margin-left: 6px; }

/* 15/11: caixinha "nao sou robo" (Cloudflare Turnstile) */
.human-check { min-height: 0; }
.human-check:not(:empty) { margin: 2px 0; }
.human-check iframe { max-width: 100%; }
