/* Valnor - tema do MyAAC com o mesmo visual do site principal (site/style.css) */
:root {
  --fundo: #0b0a0c;
  --fundo-2: #141116;
  --cartao: #19151a;
  --cartao-2: #211b22;
  --borda: #3a2a1c;
  --ouro: #d4af5a;
  --ouro-claro: #f1d58f;
  --lava: #e2572a;
  --lava-escura: #8e2410;
  --texto: #ece6da;
  --texto-2: #b3aa99;
  --raio: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--texto); font: 15px/1.6 Inter, system-ui, sans-serif;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(226, 87, 42, .18), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(142, 36, 16, .22), transparent 70%),
    var(--fundo);
  background-attachment: fixed;
}
a { color: var(--ouro-claro); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; line-height: 1.2; color: var(--ouro); }
hr { border: 0; border-top: 1px solid var(--borda); }
img { max-width: 100%; }

/* topo (igual ao site) */
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 10, 12, .9); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--borda);
}
.marca { display: flex; align-items: center; gap: .6rem; font-family: Cinzel, serif; font-weight: 800; font-size: 1.3rem; color: var(--ouro); }
.marca img { width: 34px; height: 34px; border-radius: 8px; }
.topo nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; font-size: .95rem; }
.topo nav a { color: var(--texto-2); }
.topo nav a:hover, .topo nav a.ativo { color: var(--ouro-claro); }
.btn-link { border: 1px solid var(--ouro); padding: .3rem .8rem; border-radius: 999px; color: var(--ouro) !important; }
.btn-link.ativo { background: rgba(212, 175, 90, .15); }

/* pagina */
.pagina { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 1.6rem clamp(.75rem, 3vw, 2rem) 3rem; }
.barra { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.barra h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.status { display: flex; align-items: center; gap: .5rem; color: var(--texto-2); font-size: .9rem; }
.ponto { width: 10px; height: 10px; border-radius: 50%; background: #777; }
.status.online .ponto { background: #4ccf5a; box-shadow: 0 0 10px #4ccf5a; }
.status.offline .ponto { background: #d24a3a; }

#ContentHelper {
  background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: clamp(1rem, 3vw, 1.6rem); overflow-x: auto;
}

/* tabelas do MyAAC (vem com bgcolor inline = config.ini) */
table { border-collapse: collapse; color: var(--texto); max-width: 100%; }
td, th { padding: .45rem .6rem; vertical-align: middle; }
tr[bgcolor], tr[style*="background"] { border-bottom: 1px solid rgba(58, 42, 28, .6); }
.white, td.white, .white b { color: var(--ouro-claro) !important; }
.red, span.red, .FormFieldError { color: #ff8a70 !important; }
.green { color: #6fdc7b !important; }
b, strong { color: var(--texto); }

/* caixas com titulo (TableContainer): somem as imagens de moldura do tibia.com */
.TableContainer { margin: 0 0 1.2rem; border: 1px solid var(--borda); border-radius: var(--raio); overflow: hidden; background: var(--cartao-2); }
.TableContainer > table { width: 100%; }
.CaptionContainer { background: linear-gradient(180deg, #2a2019, #1c1612); border-bottom: 1px solid var(--borda); }
.CaptionContainer span { display: none !important; }
.CaptionContainer .Text, .TableContainer .Text {
  padding: .6rem 1rem; font-family: Cinzel, serif; font-weight: 800; color: var(--ouro); font-size: 1.02rem;
}
.InnerTableContainer { padding: .8rem 1rem; }
.InnerTableContainer table { width: 100%; }
.TableShadowContainerRightTop, .TableShadowRightTop, .TableShadowContainer, .TableBottomShadow,
.TableBottomLeftShadow, .TableBottomRightShadow { display: none !important; }
.TableContentContainer, .TableContent, .TableContentAndRightShadow { background: transparent !important; width: 100%; }
.Odd { background: var(--cartao) !important; }
.Even { background: var(--cartao-2) !important; }
.LabelV, .LabelV120, .LabelV150, .LabelV200 { white-space: nowrap; color: var(--texto-2); font-weight: 600; width: 1%; padding-right: 1rem; }
.LabelH, .LabelH td { color: var(--ouro-claro); font-weight: 600; }

/* formularios */
input:not([type]), input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
  background: #0f0c10; color: var(--texto); border: 1px solid var(--borda); border-radius: 8px;
  padding: .55rem .7rem; font: inherit; max-width: 100%;
}
input:not([type]), input[type=text], input[type=password], input[type=email] { width: min(340px, 100%); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(212, 175, 90, .18); }
input[type=checkbox], input[type=radio] { accent-color: var(--lava); width: 1.05rem; height: 1.05rem; vertical-align: middle; }
label { cursor: pointer; }
input[type=submit], input[type=button], button, .BigButton, .button {
  display: inline-block; cursor: pointer; font: 600 .95rem Inter, system-ui, sans-serif;
  padding: .7rem 1.4rem; border-radius: var(--raio); color: #fff;
  background: linear-gradient(180deg, #f07a3d, var(--lava-escura)); border: 1px solid #ffb27a;
  box-shadow: 0 4px 16px rgba(226, 87, 42, .3); transition: transform .12s;
}
input[type=submit]:hover, input[type=button]:hover, button:hover { transform: translateY(-1px); background: linear-gradient(180deg, #ff8c4d, #a52c14); }
/* botoes secundarios (voltar / esqueci a conta / cancelar) */
input[value="Back"], input[value="Voltar"], input[value="Cancel"], input[value="Cancelar"],
input[value="Account lost?"], input[value="Esqueci a conta"], input[value="Esqueci minha conta"] {
  background: transparent; border-color: var(--borda); color: var(--texto-2); box-shadow: none;
}

/* noticias / avisos */
.SmallBox, .BoxContent, #NewsTicker, #FeaturedArticle { background: transparent !important; }
.news, .NewsHeadline { color: var(--texto); }
blockquote { border-left: 3px solid var(--ouro); margin: 1rem 0; padding: .3rem 1rem; color: var(--texto-2); }

/* rodape */
.rodape { padding: 1.6rem clamp(1rem, 6vw, 5rem); border-top: 1px solid var(--borda); color: var(--texto-2); font-size: .88rem; }
.rodape p { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .3rem 0; }
.rodape img { width: 22px; border-radius: 5px; }

/* celular */
@media (max-width: 760px) {
  .topo nav a:not(.btn-link):not([href*="account"]) { display: none; }
  .LabelV, .LabelV120, .LabelV150, .LabelV200 { white-space: normal; }
  .InnerTableContainer td { display: block; width: 100% !important; padding: .25rem 0; }
  input[type=text], input[type=password], input[type=email] { width: 100%; }
}

/* caixas internas dos formularios (vem com borda clara inline) */
table.TableContent[style*="border"] { border: 1px solid var(--borda) !important; border-radius: 8px; }

/* aviso "*Note: Highscores are updated every N minutes" (vem em ingles do PHP) */
.p-highscores #ContentHelper > small:first-child { display: none; }
.p-highscores #ContentHelper > small:first-child + br, .p-highscores #ContentHelper > small:first-child + br + br { display: none; }
