/* ==========================================================================================================
   PokeAhjin - tema "Shadow" do site (identidade de 2026-10-16)
   Grafite quase preto + violeta sombrio (a energia) + ciano (a lente) + dourado so para o que e lendario.
   Mesma identidade do cliente do jogo e do banner com o Rayquaza shiny (logos_pokeahjin/).
   So CSS (sem fontes nem imagens de terceiros). O tema anterior esta em 06_backups/tema_ahjin_antes/.
   ========================================================================================================== */

:root {
  color-scheme: dark;
  --bg: #0a0b10;
  --bg-2: #0f1118;
  --panel: #16171f;
  --panel-2: #1d1f2a;
  --field: #11121a;
  --shell: #333747;
  --line: #272a36;
  --line-2: #3b4052;
  --text: #e8e9f2;
  --text-dim: #b3b7c9;
  --text-faint: #888ea3;
  --vio: #9440e8;
  --vio-hi: #c9a0ff;
  --vio-lo: #6d28d9;
  --vio-bg: #2c1747;
  --cyan: #34d3ee;
  --cyan-hi: #96ecff;
  --cyan-lo: #1a7a99;
  --gold: #deb23c;
  --ok: #46d19a;
  --warn: #f2b84b;
  --err: #ff7a85;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .42);
  --glow-vio: 0 0 18px rgba(148, 64, 232, .35);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-head: "Bahnschrift", "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wrap: 1140px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.6 var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(148, 64, 232, .16), transparent 62%),
    radial-gradient(900px 520px at -12% 4%, rgba(52, 211, 238, .07), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}

::selection { background: var(--vio); color: #fff; }

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

article, aside, figure, footer, header, hgroup, nav, section { display: block; }

p { margin: 0 0 14px; line-height: 1.7; }

a { color: var(--cyan-hi); text-decoration: underline; text-decoration-color: rgba(150, 236, 255, .30); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: #fff; text-decoration-color: var(--vio-hi); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; width: auto; }

blockquote {
  margin: 18px 0; padding: 12px 18px;
  border: 1px solid var(--line); border-left: 4px solid var(--vio);
  background: var(--panel-2); border-radius: var(--radius-sm); color: var(--text-dim);
}

code, pre, kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre { padding: 12px 14px; overflow-x: auto; }

.left { float: left; margin-right: 12px; }
.right { float: right; margin-left: 12px; }
.pull-right { float: right; }
.center { display: block; text-align: center; margin: 20px auto; }
.unstyled { list-style: none; margin-left: 0; padding-left: 0; }
.span12 { width: 100%; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--vio); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ----------------------------------------------------------------------------------------------------------
   cabecalho
   ---------------------------------------------------------------------------------------------------------- */
.site-header { position: relative; background: #0b0c11; border-bottom: 1px solid #000; }
.site-header::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--vio-lo), var(--vio) 30%, var(--vio-hi) 50%, var(--vio) 70%, var(--vio-lo));
}

.header-top {
  position: relative; overflow: hidden;
  min-height: 176px;
  background:
    radial-gradient(640px 200px at 82% 50%, rgba(148, 64, 232, .14), transparent 70%),
    linear-gradient(90deg, #0c0d13 0%, #11131b 40%, #17131f 78%, #1b1426 100%);
}
.header-inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: 24px 24px;
  min-height: 176px; display: flex; align-items: center;
}

.brand { display: inline-flex; align-items: center; gap: 18px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-lens {
  width: 84px; height: 84px; flex: none; display: block;
  background: url("../images/brand.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(148, 64, 232, .55));
  transition: transform .35s ease, filter .35s ease;
}
.brand:hover .brand-lens { transform: rotate(-12deg) scale(1.05); filter: drop-shadow(0 0 22px rgba(148, 64, 232, .8)); }
.brand-text { display: flex; flex-direction: column; gap: 9px; }
.brand-name {
  font: 800 clamp(30px, 4.6vw, 50px)/.95 var(--font-head);
  letter-spacing: .02em; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 26px rgba(148, 64, 232, .28);
}
.brand-name b {
  font-weight: inherit;
  background: linear-gradient(100deg, var(--vio-hi) 10%, var(--vio) 55%, var(--cyan) 115%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(148, 64, 232, .45));
}
.brand-tag {
  align-self: flex-start;
  font: 700 11px/1 var(--font-head); letter-spacing: .24em; text-transform: uppercase;
  color: var(--vio-hi); border: 1px solid rgba(160, 100, 240, .5); border-radius: 999px; padding: 5px 12px 4px;
  background: rgba(109, 40, 217, .12);
}

/* arte do cabecalho: o Rayquaza shiny espreitando das sombras, esmaecido para dentro do grafite */
#logo {
  position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: min(58%, 720px);
  background: url("../images/logo.png") right center / auto 108% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .5) 26%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .5) 26%, #000 55%);
  pointer-events: none;
}

/* ----------------------------------------------------------------------------------------------------------
   menu
   ---------------------------------------------------------------------------------------------------------- */
.main-nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, #232631, #181a22);
  border-bottom: 1px solid #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; }
#menu_container { flex: 1 1 auto; min-width: 0; }

.nav-toggle {
  display: none; align-items: center; gap: 10px; margin: 8px 0;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: none; color: var(--text);
  padding: 9px 14px; font: 700 13px/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .06); filter: none; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 6px; left: 0; }

ul.sf-menu, ul.sf-menu ul { list-style: none; margin: 0; padding: 0; }
ul.sf-menu { display: flex; flex-wrap: wrap; }
ul.sf-menu li { position: relative; margin: 0; padding: 0; background: none; list-style: none; line-height: 1; }
ul.sf-menu li::before { content: none; }
ul.sf-menu a {
  display: block; padding: 16px 17px 15px; color: #e8ebf1; text-decoration: none;
  font: 700 13.5px/1 var(--font-head); letter-spacing: .09em; text-transform: uppercase;
  border-bottom: 3px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
ul.sf-menu > li:hover > a, ul.sf-menu > li:focus-within > a { color: #fff; background: rgba(148, 64, 232, .10); border-bottom-color: var(--vio); }
ul.sf-menu > li.active > a { color: #fff; border-bottom-color: var(--vio); }
ul.sf-menu > li:has(> ul) > a::after { content: ""; display: inline-block; margin-left: 8px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; opacity: .75; }

ul.sf-menu ul {
  position: absolute; left: 0; top: 100%; z-index: 120; min-width: 230px; display: none;
  background: #191b24; border: 1px solid var(--line-2); border-top: 3px solid var(--vio);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 6px; box-shadow: var(--shadow);
}
ul.sf-menu li:hover > ul, ul.sf-menu li:focus-within > ul { display: block; }
ul.sf-menu ul a { padding: 11px 14px; border: 0; border-radius: 6px; font-size: 13px; letter-spacing: .06em; text-transform: none; font-weight: 600; }
ul.sf-menu ul li:hover > a, ul.sf-menu ul a:focus { background: var(--vio-bg); color: #fff; }
ul.sf-menu ul ul { left: 100%; top: -9px; }

/* ----------------------------------------------------------------------------------------------------------
   grade da pagina: conteudo + coluna lateral
   ---------------------------------------------------------------------------------------------------------- */
#site_content {
  max-width: var(--wrap); margin: 0 auto; padding: 30px 24px 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "conteudo lateral";
  gap: 26px; align-items: start;
}
.content { grid-area: conteudo; min-width: 0; }
#sidebar_container { grid-area: lateral; display: grid; gap: 18px; min-width: 0; }

.content {
  background: linear-gradient(180deg, var(--panel), #14161d);
  border: 1px solid var(--line); border-top: 3px solid var(--vio);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 30px 14px; font-size: 15px;
}
.content::after { content: ""; display: block; clear: both; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--text); line-height: 1.2; margin: 0; padding: 0; letter-spacing: .01em; }

.content h1 {
  position: relative; font-size: 28px; font-weight: 800; margin: 0 0 20px; padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.content h1::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 84px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--vio), var(--cyan)); }
.content h1 + p, .content h1 + h2 { margin-top: 0; }

.content h2 { font-size: 21px; font-weight: 700; margin: 28px 0 12px; color: #fff; }
.content h3 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; color: var(--cyan-hi); }
.content h4 { font-size: 15px; font-weight: 700; margin: 18px 0 8px; color: var(--gold); }
.content h5, .content h6 { font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }

/* listas do conteudo */
.content ul { list-style: none; margin: 6px 0 18px; padding: 0; }
.content ul li { position: relative; margin: 0; padding: 4px 0 4px 22px; line-height: 1.6; background: none; }
.content ul li::before { content: ""; position: absolute; left: 4px; top: .95em; width: 7px; height: 7px; background: var(--vio); transform: rotate(45deg); border-radius: 1px; }
.content ul.unstyled li, .content form ul li, .content ul.war_list li { padding-left: 0; }
.content ul.unstyled li::before, .content form ul li::before, .content ul.war_list li::before { content: none; }
.content ol { margin: 8px 0 18px; padding-left: 26px; }
.content ol li { margin: 0 0 8px; padding-left: 4px; line-height: 1.6; }
.content ol li::marker { color: var(--vio-hi); font-weight: 700; }

/* ----------------------------------------------------------------------------------------------------------
   tabelas
   ---------------------------------------------------------------------------------------------------------- */
table {
  width: 100%; margin: 14px 0 26px; border-collapse: separate; border-spacing: 0;
  background: rgba(255, 255, 255, .015); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
table th, table td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); color: var(--text); background: none; }
table tr:last-child > td, table tr:last-child > th { border-bottom: 0; }
table tr.yellow > td, table tr.yellow > th, table thead th, table th {
  background: linear-gradient(180deg, #3a3348, #2b2837); color: #fff;
  font: 700 12px/1.3 var(--font-head); letter-spacing: .09em; text-transform: uppercase;
  border-bottom: 2px solid var(--vio);
}
table tr:not(.yellow):nth-child(even) > td { background: rgba(255, 255, 255, .028); }
table tr:not(.yellow):hover > td { background: rgba(148, 64, 232, .10); }
table td a { font-weight: 600; }
tr.special { cursor: pointer; }
tr.special:hover td { background: rgba(52, 211, 238, .12); }
.table-bordered td, .table-bordered th { border-right: 1px solid var(--line); }
.table-bordered td:last-child, .table-bordered th:last-child { border-right: 0; }
table.hide { display: none; }
.content table td, .content table th { overflow-wrap: anywhere; }

/* noticias: cada noticia e uma tabela #news (cabecalho .yellow + corpo) */
table#news { margin: 0 0 22px; background: var(--panel-2); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); table-layout: fixed; }
table#news td { overflow-wrap: anywhere; }
table#news tr.yellow > td {
  background: linear-gradient(180deg, #3a3348, #2a2734); font: 600 14px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--text-dim);
  padding: 13px 18px; border-bottom: 2px solid var(--vio);
}
table#news tr.yellow > td b { color: #fff; font-family: var(--font-head); letter-spacing: .06em; }
table#news tr.yellow > td a { color: var(--gold); }
table#news tr:not(.yellow):hover > td, table#news tr:not(.yellow):nth-child(even) > td { background: transparent; }
table#news td { padding: 18px 20px; font-size: 15.5px; line-height: 1.7; }
table#news td p { margin: 0; padding: 0; }
table#news img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0 0; }
table#news font[size] { font-size: inherit; }

/* ----------------------------------------------------------------------------------------------------------
   formularios e botoes
   ---------------------------------------------------------------------------------------------------------- */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="url"],
input[type="tel"], input[type="date"], input:not([type]), textarea, select {
  font: inherit; color: var(--text); background: var(--field);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 9px 12px; max-width: 100%; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35);
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="tel"], input:not([type]) { width: min(100%, 380px); }
textarea { width: 100%; min-height: 150px; resize: vertical; line-height: 1.5; }
select { padding-right: 32px; cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:hover, textarea:hover, select:hover { border-color: #565b74; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(52, 211, 238, .22), inset 0 2px 4px rgba(0, 0, 0, .35); outline: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--vio); width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
option { background: #191b24; color: var(--text); }
label { cursor: pointer; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; }
legend { padding: 0 8px; color: var(--gold); font: 700 13px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }

input[type="submit"], input[type="button"], input[type="reset"], button, .btn, a.btn {
  display: inline-block; cursor: pointer; text-align: center; text-decoration: none; vertical-align: middle;
  color: #fff; background: linear-gradient(180deg, #b678ff, #9440e8 52%, #6d28d9);
  border: 1px solid #4c1d95; border-radius: var(--radius-sm); padding: 10px 20px;
  font: 700 13px/1.2 var(--font-head); letter-spacing: .09em; text-transform: uppercase;
  box-shadow: 0 2px 0 #3b1470, 0 8px 18px rgba(148, 64, 232, .28); transition: filter .15s, transform .08s, box-shadow .15s;
}
input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover, button:hover, .btn:hover, a.btn:hover { filter: brightness(1.14); color: #fff; }
input[type="submit"]:active, button:active, .btn:active { transform: translateY(2px); box-shadow: 0 0 0 #3b1470, 0 3px 8px rgba(148, 64, 232, .22); }
.btn-info { background: linear-gradient(180deg, #3fb6dd, #1a7a99 52%, #125e77); border-color: #0d4a5f; box-shadow: 0 2px 0 #093343, 0 8px 16px rgba(52, 211, 238, .18); }
.btn-success { background: linear-gradient(180deg, #26a878, #14825a 52%, #0f6a49); border-color: #14573f; box-shadow: 0 2px 0 #0f4130, 0 8px 16px rgba(70, 209, 154, .2); }
.btn-warning { background: linear-gradient(180deg, #f6d27a, var(--gold) 52%, #a9801c); border-color: #7a5b12; color: #1a1305; box-shadow: 0 2px 0 #5f470e, 0 8px 16px rgba(222, 178, 60, .2); }
.btn-warning:hover { color: #1a1305; }
.btn-danger { background: linear-gradient(180deg, #8c2130, #691622); border-color: #a82230; box-shadow: 0 2px 0 #460d15; }
.btn-default, .btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); box-shadow: none; }
.btn-default:hover, .btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
button:disabled, input:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }

/* botoes do painel de admin e afins, reconhecidos pelo texto: editar = ciano, apagar/banir = vermelho escuro */
input[type="submit"][value="Edit" i], input[type="submit"][value^="Edit " i], button[value="Edit" i] { background: linear-gradient(180deg, #3fb6dd, #1a7a99 52%, #125e77); border-color: #0d4a5f; box-shadow: 0 2px 0 #093343, 0 8px 16px rgba(52, 211, 238, .18); }
input[type="submit"][value^="Delete" i], input[type="submit"][value^="Remove" i], input[type="submit"][value^="Ban" i], button[value^="Delete" i] { background: linear-gradient(180deg, #8c2130, #691622); border-color: #a82230; box-shadow: 0 2px 0 #460d15; }

form ul { margin: 0 0 12px; padding: 0; list-style: none; }
form ul li { margin: 0 0 14px; padding: 0; color: var(--text-dim); font-weight: 600; font-size: 14px; line-height: 1.5; }
form ul li input, form ul li select { margin-top: 5px; }
.content form { margin: 8px 0 22px; }
.content form[style] { width: auto !important; max-width: 100%; }
.form-control { width: min(100%, 380px); display: block; }

.form_settings span { display: inline-block; min-width: 200px; color: var(--text-dim); }
.form_settings p { padding: 0 0 8px; }

/* ----------------------------------------------------------------------------------------------------------
   mensagens (as paginas usam <font color=...> para erro/sucesso) e utilidades
   ---------------------------------------------------------------------------------------------------------- */
.content font[color="red"], .content font[color="#ff0000"], .content font[color="#FF0000"], .content font.status_offline, .content font[color="darkred"] { color: var(--err); }
.content font[color="green"], .content font[color="#00ff00"], .content font[color="lime"], .content font.status_online { color: var(--ok); }
.content font[color="orange"], .content font[color="yellow"], .content font[color="#ff9900"] { color: var(--warn); }
.content font[color="blue"], .content font[color="#0000ff"] { color: var(--cyan-hi); }
.content font[size] { font-size: inherit; }
.status_online { color: var(--ok); font-weight: 700; }
.status_offline { color: var(--err); font-weight: 700; }
.profile_font { font-size: inherit; }

.content > font > b > ul, .content > font > ul { margin-top: 4px; }

.separator { border-top: 1px solid var(--line); margin: 0 0 20px; }

.galleryImage { max-width: 100%; border-radius: var(--radius-sm); }
.avatar img { border-radius: 8px; }

/* perfil de personagem */
.content ul.unstyled > li { border-bottom: 1px solid var(--line); padding: 8px 2px; }
.content ul.unstyled > li:last-child { border-bottom: 0; }
.content ul.unstyled li li { border: 0; padding: 4px 0; }
.content ul.unstyled li table { margin-top: 10px; }
.header-ok { color: var(--ok); }

/* paginas que fixam cores claras em linha (ex.: admin.php usa tabela azul-clara): mantem o tema escuro */
.content table[style*="background"] { background: var(--panel-2) !important; }
.content div[style*="background-color: white"], .content div[style*="background-color:white"] { background: var(--panel-2) !important; }
.content [style*="color: black"], .content [style*="color:black"] { color: var(--text) !important; }

/* download do cliente: o link do zip vira botao */
.content a[href$=".zip"] {
  display: inline-block; margin: 2px 0; padding: 10px 20px; text-decoration: none; color: #fff; border: 1px solid #4c1d95; border-radius: var(--radius-sm);
  font: 700 13px/1.2 var(--font-head); letter-spacing: .09em; text-transform: uppercase;
  background: linear-gradient(180deg, #b678ff, #9440e8 52%, #6d28d9); box-shadow: 0 2px 0 #3b1470, 0 8px 18px rgba(148, 64, 232, .28);
}
.content a[href$=".zip"]:hover { filter: brightness(1.14); color: #fff; }

.download-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 6px 0 22px; padding: 16px 20px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--vio); border-radius: var(--radius-sm);
}
.download-card span { font: 700 16px/1.3 var(--font-head); color: #fff; }
.download-card a[href$=".zip"] { margin: 0; }

/* forum (botoes que antes eram empurrados com 'top' negativo) */
.adminTable, .postButton, .editThread { position: static; display: inline-block; float: none; margin: 0; padding: 0; }
.adminTable tr td { width: auto; }
.adminTable tr td form input { width: auto; height: auto; }
.editThread tr, .editThread tr td, .editThread tr td form, .editThread tr td form input { height: auto; padding: 4px; }
.updateTable tr td input { width: 100%; }
.ThreadTable td { word-break: break-word; }
.ThreadTable td.avatar { min-width: 100px; vertical-align: top; text-align: center; }
#ThreadTitle { word-wrap: break-word; }
#news, #changelogTable { width: 100%; }

div.youtube { width: 100%; max-width: 560px; }
div.aspectratio { width: 100%; padding-bottom: 56.25%; position: relative; }
div.aspectratio > iframe { position: absolute; top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }

#progress { width: min(100%, 400px); position: relative; padding: 3px; }
#percent { position: absolute; margin-left: 175px; }
#bar { height: 20px; background-color: var(--ok); border: 1px solid #000; border-radius: 4px; }

/* estrelas e cadeado das conquistas */
.ach-star { color: var(--gold); font-size: 17px; line-height: 1; margin: 0 1px; }
.ach-secret { font-size: 15px; }

/* loja */
#categoryNavigator { display: flex; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); max-width: none; margin-top: 20px; overflow: hidden; }
#categoryNavigator a { color: var(--text); font-weight: 700; padding: 11px 16px; display: inline-block; text-decoration: none; border-right: 1px solid var(--line); }
#categoryNavigator a:hover { background: var(--vio-bg); color: #fff; }
.outfitColumn { position: relative; width: 60px; background: none; border-top: none; }
.outfitColumn img { position: absolute; top: -38px; right: 4px; }

/* ----------------------------------------------------------------------------------------------------------
   coluna lateral
   ---------------------------------------------------------------------------------------------------------- */
.sidebar {
  background: linear-gradient(180deg, var(--panel), #14161d);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.sidebar > h2, .sidebar > h3 {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px;
  font: 700 12.5px/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #3a3348, #2a2734); border-bottom: 2px solid var(--vio);
}
.sidebar > h2::before, .sidebar > h3::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--vio-hi); box-shadow: 0 0 0 2px #0b0c10, 0 0 12px rgba(201, 160, 255, .85); }
.sidebar .inner { padding: 14px 16px 16px; }
.sidebar > p, .sidebar > ol, .sidebar > ul { margin: 0; padding: 14px 16px; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar ul li { margin: 0; padding: 7px 0; line-height: 1.45; background: none; border-bottom: 1px solid var(--line); }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar a { text-decoration: none; font-weight: 600; }
.sidebar a:hover { text-decoration: underline; }
.sidebar input[type="text"], .sidebar input[type="password"], .sidebar input[type="search"] { width: 100%; }
.sidebar form ul li { border: 0; padding: 4px 0 8px; color: var(--text-dim); font-size: 13px; }
.sidebar input[type="submit"] { width: 100%; margin-top: 4px; }

/* login */
#login { list-style: none; }
#login li { border: 0; padding: 4px 0 8px; }
.login-links { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.login-links a { color: var(--cyan-hi); }
.login-links a.btn { color: var(--text); width: 100%; }

/* busca de personagem */
.sidebar input.search {
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888ea3' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") no-repeat 12px center / 16px;
  padding-left: 38px;
}

/* top players */
.sidebar .rank { list-style: none; counter-reset: rank; margin: 0; padding: 8px 16px 12px; }
.sidebar .rank li { counter-increment: rank; display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.sidebar .rank li::before {
  content: counter(rank); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 800 12px/1 var(--font-head); color: #fff; background: var(--shell); border: 1px solid var(--line-2);
}
.sidebar .rank li:nth-child(1)::before { background: linear-gradient(180deg, #f6d27a, #a9801c); color: #1a1305; border-color: #7a5b12; }
.sidebar .rank li:nth-child(2)::before { background: linear-gradient(180deg, #e3e7ee, #8f98a8); color: #14161a; border-color: #5d6573; }
.sidebar .rank li:nth-child(3)::before { background: linear-gradient(180deg, #e0a074, #9a5a32); color: #1a0e06; border-color: #6a3b1c; }
.sidebar .rank .lvl { margin-left: auto; font: 700 12px/1 var(--font-head); color: var(--text-dim); letter-spacing: .04em; white-space: nowrap; }
.sidebar .rank-vazio { margin: 0; padding: 14px 16px; color: var(--text-faint); }

/* estado do servidor */
.sidebar ul li.srv-status { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin: 0 0 10px; border-radius: var(--radius-sm); font: 700 13px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); background: var(--field); }
.sidebar ul li.srv-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sidebar ul li.srv-on { color: var(--ok); border-color: rgba(70, 209, 154, .45); }
.sidebar ul li.srv-on::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.sidebar ul li.srv-off { color: var(--err); border-color: rgba(255, 122, 133, .45); }
.sidebar ul li.srv-off::before { background: var(--err); box-shadow: 0 0 10px var(--err); }

/* ----------------------------------------------------------------------------------------------------------
   rodape e "voltar ao topo"
   ---------------------------------------------------------------------------------------------------------- */
footer {
  max-width: none; margin: 0; padding: 26px 20px 34px; text-align: center; color: var(--text-faint); font-size: 13px;
  background: linear-gradient(180deg, #0d0e13, #08090d); border-top: 1px solid var(--line);
}
footer p { margin: 0; padding: 0; line-height: 1.8; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

#scroll { position: fixed; right: 20px; bottom: 20px; z-index: 90; margin: 0; padding: 0; width: auto; background: none; }
#scroll a.top {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; text-decoration: none;
  background: linear-gradient(180deg, #b678ff, #9440e8 55%, #6d28d9); border: 1px solid #4c1d95; color: #fff;
  box-shadow: 0 2px 0 #3b1470, 0 10px 22px rgba(0, 0, 0, .5); font: 800 20px/1 var(--font-head); transition: transform .15s, filter .15s;
}
#scroll a.top:hover { transform: translateY(-3px); filter: brightness(1.12); }

/* ----------------------------------------------------------------------------------------------------------
   telas menores
   ---------------------------------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  #site_content { grid-template-columns: minmax(0, 1fr); grid-template-areas: "conteudo" "lateral"; padding: 22px 16px 44px; gap: 22px; }
  #sidebar_container { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  #logo { width: 46%; opacity: .9; }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .header-top, .header-inner { min-height: 122px; }
  .header-inner { padding: 16px 16px; }
  .brand { gap: 12px; }
  .brand-lens { width: 58px; height: 58px; }
  .brand-name { font-size: 28px; }
  #logo { width: 52%; opacity: .42; }
  .brand-name b { filter: drop-shadow(0 0 8px #000) drop-shadow(0 2px 2px #000); }

  .nav-inner { padding: 0 12px; flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .js #menu_container { display: none; width: 100%; padding-bottom: 8px; }
  .js .main-nav.is-open #menu_container { display: block; }
  ul.sf-menu { flex-direction: column; flex-wrap: nowrap; }
  ul.sf-menu a { padding: 13px 10px; border-bottom: 0; border-left: 3px solid transparent; }
  ul.sf-menu > li:hover > a, ul.sf-menu > li:focus-within > a, ul.sf-menu > li.active > a { border-bottom: 0; border-left-color: var(--vio); }
  ul.sf-menu > li:has(> ul) > a::after { display: none; }
  ul.sf-menu ul { position: static; display: block; min-width: 0; background: transparent; border: 0; border-left: 1px solid var(--line-2); border-radius: 0; box-shadow: none; margin: 0 0 6px 14px; padding: 0 0 0 6px; }
  ul.sf-menu ul a { padding: 10px 10px; }

  .content { padding: 20px 16px 8px; }
  .content h1 { font-size: 23px; }
  table th, table td { padding: 9px 10px; }
  .content { overflow-x: auto; }
  .sidebar > h2, .sidebar > h3 { padding: 11px 14px; }
  #scroll { right: 14px; bottom: 14px; }
}

@media (max-width: 480px) {
  #site_content { padding: 16px 10px 40px; }
  .brand-tag { display: none; }
  input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], input:not([type]) { width: 100%; }
  .form_settings span { display: block; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .main-nav, #sidebar_container, #scroll, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .content { background: #fff; border: 0; box-shadow: none; color: #000; }
}
