/* ==========================================================================
   Eldast — complementos do tema para o MyAAC
   1. Peças do layout que o eldast.css não cobre (painel conectado, widgets com dados reais)
   2. Compatibilidade: veste o HTML padrão do MyAAC (marcação do tema tibiacom)
      nas páginas que ainda não ganharam template próprio.
   ========================================================================== */

/* 1. Layout ---------------------------------------------------------------- */
body { overflow-x: hidden; }
.logo img { width: 300px; max-width: none; flex: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); }

.painel-pedra__rotulo { margin: 0; text-align: center; color: var(--claro-suave); font-size: 15px; }
.painel-pedra__nome { margin: 0 0 6px; text-align: center; color: var(--creme); font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.painel-pedra__link:hover { color: var(--ouro-claro); }

.destaque { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 110px; }
.destaque figcaption { font-size: 14px; line-height: 1.25; color: var(--claro-suave); text-align: center; text-shadow: 0 1px 2px #000; }
.destaque figcaption b { color: var(--creme); font-weight: 700; }
.retrato img { max-width: 64px; max-height: 64px; image-rendering: pixelated; }
.retrato__vazio { color: var(--claro-suave); font: 700 22px/1 var(--fonte-titulo); }

.widget__texto { margin: 0; text-align: center; font-size: 15px; color: var(--cinza-texto); }
.widget__vazio { margin: 0; text-align: center; font-size: 15px; color: var(--cinza-texto); }
.widget__jogador { display: flex; flex-direction: column; align-items: center; text-align: center; }
.widget__jogador a { font-weight: 700; font-size: 18px; color: var(--claro); text-decoration: none; }
.widget__jogador a:hover { color: var(--ouro-claro); text-decoration: underline; }
.widget__jogador span { font-size: 15px; color: var(--cinza-texto); }
.widget__relogio { font-size: 36px; font-weight: 700; letter-spacing: .04em; color: var(--claro); }
.widget__busca { display: flex; flex-direction: column; gap: 12px; }
.widget__busca .btn-pedra { width: 100%; border: 0; cursor: pointer; font: inherit; }
.widget__rashid { display: flex; align-items: center; gap: 14px; }
.widget__rashid .poco { width: 52px; height: 52px; padding: 0; display: flex; align-items: center; justify-content: center; flex: none; }
.widget__rashid > span:last-child { display: flex; flex-direction: column; }
.widget__rashid .widget__texto { text-align: left; }
.widget__rashid b { font-size: 18px; color: var(--claro); }

/* Botões como <input>/<button> */
input.btn, button.btn { font: 700 16px/1 var(--fonte-titulo); width: 100%; }
.btn-aro > input.btn, .btn-aro > button.btn { display: flex; }

/* Mensagens (erro e sucesso) */
.aviso { --k: 8px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px;
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.aviso--erro { background: #F6DCD6; box-shadow: inset 0 0 0 1px #B3261E; color: #5E1510; }
.aviso--ok { background: #DCEFE2; box-shadow: inset 0 0 0 1px var(--online); color: #173F27; }
.aviso b { font-size: 17px; }
.aviso ul { margin: 0; padding-left: 20px; }

/* 2. Compatibilidade com o HTML padrão do MyAAC ----------------------------- */
.corpo { color: var(--tinta); }
.corpo > br { display: none; }
.corpo img[src*="images/global/general/"][src$="ok.gif"] { display: none !important; }

/* Caixa padrão (TableContainer): vira um bloco de seção */
.corpo .TableContainer { width: 100%; margin: 0 0 8px; }
.corpo .CaptionContainer { margin: 0 0 12px; }
.corpo .CaptionInnerContainer { position: static; height: auto; }
.corpo .CaptionInnerContainer > span { display: none !important; }
.corpo .CaptionContainer .Text, .corpo .CaptionInnerContainer .Text {
  position: static; height: auto; padding: 0; display: flex; align-items: center; gap: 14px;
  font: 700 22px/1.2 var(--fonte-titulo); color: var(--tinta-titulo); background: none; text-align: left;
}
.corpo .CaptionContainer .Text::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--ouro-filete), rgba(143,112,58,0)); }
.corpo .Table1, .corpo .Table2, .corpo .Table3, .corpo .Table4, .corpo .Table5 { width: 100%; border: 0; border-collapse: collapse; background: none; }
.corpo .InnerTableContainer { padding: 0; background: none; }
.corpo .TableShadowContainerRightTop, .corpo .TableShadowContainer { display: none; }
.corpo .TableContentAndRightShadow { background: none !important; padding: 0; }
.corpo .TableContentContainer { border: 0; }

/* Tabelas internas */
.corpo .TableContent, .corpo table.Table3 table, .corpo .InnerTableContainer > table {
  width: 100%; border-collapse: collapse; font-size: 16px; border: 0 !important;
}
.corpo .TableContent { box-shadow: 0 0 0 1px var(--ouro-filete); }
.corpo .TableContent td, .corpo .InnerTableContainer td { padding: 9px 12px; vertical-align: middle; }
.corpo .TableContent tr:nth-child(odd), .corpo tr.Odd { background: var(--pergaminho-claro); }
.corpo .TableContent tr:nth-child(even), .corpo tr.Even { background: var(--bege); }
.corpo tr[bgcolor], .corpo td[bgcolor] { background-color: transparent; }
.corpo .LabelH, .corpo tr.LabelH td, .corpo tr.LabelH th, .corpo td.LabelH, .corpo .LabelH td {
  background: linear-gradient(180deg, var(--marrom-2), var(--marrom-1)) !important; color: var(--pergaminho); font-weight: 700; font-size: 15px;
}
.corpo .LabelH a { color: var(--pergaminho); }
.corpo .LabelV, .corpo .LabelV150, .corpo .LabelV175, .corpo .LabelV200 { font-weight: 700; color: var(--tinta-titulo); width: 30%; }
.corpo table[bgcolor], .corpo td.white { background: transparent; color: inherit; }
.corpo .white { color: inherit; }
.corpo .red { color: #9C1F18; }
.corpo .FormFieldError, .corpo .FormFieldError * { color: #9C1F18; font-weight: 700; font-size: 14px; }

/* Campos */
.corpo input[type=text], .corpo input[type=password], .corpo input[type=email], .corpo input[type=number], .corpo select, .corpo textarea {
  min-height: 40px; max-width: 100%; padding: 0 10px; border: 1px solid var(--campo-borda); border-bottom: 2px solid var(--ouro-escuro);
  border-radius: 0; background: var(--campo); color: var(--tinta); font: inherit; font-size: 16px;
}
.corpo textarea { padding: 8px 10px; min-height: 100px; }
.corpo input[type=checkbox], .corpo input[type=radio] { width: 18px; height: 18px; accent-color: var(--aco-escuro); vertical-align: middle; }

/* Botões padrão do MyAAC (imagens do tibiacom) viram botões do tema */
.corpo .BigButton, .corpo .MediumButtonBackground { background: none !important; width: auto !important; height: auto !important; display: inline-block; }
.corpo .BigButtonOver, .corpo .MediumButtonOver, .corpo .ButtonOver { display: none !important; }
.corpo input.BigButtonText, .corpo input.ButtonText, .corpo input.MediumButtonText, .corpo .BigButton input[type=submit] {
  position: static !important; min-height: 44px; padding: 0 24px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--aco-claro), var(--aco) 55%, var(--aco-fundo)); color: #fff;
  font: 700 16px/1 var(--fonte-titulo); letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px var(--ouro), inset 0 1px 0 rgba(255,255,255,.25);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.corpo input.BigButtonText:hover, .corpo input.ButtonText:hover { background: var(--aco-hover); }
.corpo input[type=image].BigButtonText, .corpo input[type=image].MediumButtonText { background: none; box-shadow: none; padding: 0; min-height: 0; }

/* Caixas de mensagem do tibiacom */
.corpo .SmallBox, .corpo .MessageContainer { margin: 0; }
.corpo .BoxFrameHorizontal, .corpo [class^="BoxFrameEdge"], .corpo [class^="BoxFrameVertical"], .corpo .AttentionSign { display: none; }
.corpo .ErrorMessage { padding: 14px 18px; background: #F6DCD6; box-shadow: inset 0 0 0 1px #B3261E; color: #5E1510; }

/* Notícias (tibiacom) */
.corpo .NewsHeadline { margin: 0 0 8px; }
.corpo .NewsHeadlineBackground { background: none !important; height: auto; position: static; }
.corpo .NewsHeadlineBackground img { display: none; }
.corpo .NewsHeadlineDate { font-size: 15px; color: var(--tinta-suave); position: static; }
.corpo .NewsHeadlineText { font: 700 26px/1.2 var(--fonte-titulo); color: var(--tinta-titulo); position: static; }
.corpo .NewsHeadlineIcon { display: none; }
.corpo #NewsTicker, .corpo .Box { background: none; }

/* Links */
.corpo a { color: var(--link); }
.corpo a:hover { color: var(--link-hover); }

/* Rolagem de tabelas largas */
.corpo .InnerTableContainer { overflow-x: auto; }

/* 3. Páginas do tema --------------------------------------------------------- */
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.rates .cartao { text-align: center; }
.texto-curto { margin: 0; max-width: 66ch; font-size: 17px; }
.regras, .passos { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 12px; max-width: 70ch; font-size: 17px; line-height: 1.55; }
.regras li::marker, .passos li::marker { font: 700 17px var(--fonte-titulo); color: var(--marrom-2); }
.corpo code { padding: 1px 6px; background: var(--bege); box-shadow: inset 0 0 0 1px var(--bege-borda); font-size: 15px; }

.cartao-client { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 24px; }
.cartao-client__titulo { margin: 0; font: 700 24px/1.2 var(--fonte-titulo); color: var(--tinta-titulo); }
.cartao-client__meta { margin: 4px 0 0; font-size: 15px; color: var(--tinta-suave); }
.cartao-client .btn--ouro { min-height: 52px; padding: 0 28px; font-size: 19px; }

.faq { display: flex; flex-direction: column; gap: 8px; max-width: 72ch; }
.faq details { --k: 6px; background: var(--pergaminho-claro); box-shadow: inset 0 0 0 1px var(--bege-borda);
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% var(--k), 100% calc(100% - var(--k)), calc(100% - var(--k)) 100%, var(--k) 100%, 0 calc(100% - var(--k)), 0 var(--k)); }
.faq summary { min-height: 44px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 17px; color: var(--tinta-titulo); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--ouro-escuro); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::before { transform: rotate(135deg); }
.faq details p { margin: 0; padding: 0 16px 14px 34px; font-size: 17px; line-height: 1.55; }

/* Minha conta e subpáginas */
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.acoes--legado table { width: auto; margin: 0; }
.acoes--legado td { padding: 0 8px 0 0; }
.linhas-acao { display: flex; flex-direction: column; }
.linha-acao { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 0; border-bottom: 1px solid var(--bege-escuro); }
.linha-acao > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.linha-acao b { font-size: 17px; color: var(--tinta-titulo); }
.linha-acao span { font-size: 15px; color: var(--tinta-suave); overflow-wrap: anywhere; }
.linha-acao span b { font-size: inherit; }
.registro summary { cursor: pointer; font-weight: 700; color: var(--tinta-suave); min-height: 44px; display: flex; align-items: center; }
.registro .tabela-rolagem { margin-top: 8px; }
.form-rodape > .btn-claro { min-height: 44px; }
.entrada--texto { height: auto; padding: 8px 10px; resize: vertical; }
.aviso__texto { font-size: 17px; }
.tabela td a b { font-weight: 700; }

/* Botões dentro do conteúdo: não herdam a cor de link */
.corpo a.btn, .corpo a.btn:hover { color: #fff; text-decoration: none; }
.corpo a.btn--ouro, .corpo a.btn--ouro:hover { color: #2A1D0C; }
.corpo a.btn-claro, .corpo a.btn-claro:hover { color: var(--tinta-titulo); text-decoration: none; }
.corpo a.btn-pedra, .corpo a.btn-pedra:hover { color: var(--claro); text-decoration: none; }
.form--estreito { max-width: 460px; }

/* Busca em linha */
.busca-linha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; max-width: 560px; }
.busca-linha .campo { flex: 1 1 260px; }
.busca-linha .btn { min-height: 44px; }

/* Ficha de personagem */
.ficha-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ficha-topo .meta { margin: 4px 0 0; }
.barras { display: flex; flex-direction: column; gap: 10px; }
.barra { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.barra__rotulo { font-weight: 700; color: var(--tinta-titulo); }
.barra__trilho { height: 14px; background: var(--bege); box-shadow: inset 0 0 0 1px var(--bege-borda); overflow: hidden; }
.barra__fill { display: block; height: 100%; }
.barra__fill--vida { background: linear-gradient(180deg, #C9463D, #8E2A23); }
.barra__fill--mana { background: linear-gradient(180deg, var(--aco-claro), var(--aco-escuro)); }
.barra__fill--xp { background: linear-gradient(180deg, #4FAE6E, var(--online-texto)); }
.barra__valor { font-size: 15px; color: var(--tinta-suave); white-space: nowrap; }
.tabela--compacta { min-width: 0; }
.tabela--compacta th, .tabela--compacta td { text-align: center !important; }
.tabela--estreita { min-width: 0; }
@media (max-width: 760px) { .barra { grid-template-columns: 1fr; gap: 4px; } }

/* Filtros em pílulas (links) */
.filtro { display: flex; flex-direction: column; gap: 8px; }
a.opcao { text-decoration: none; color: var(--tinta); font-size: 16px; }
.corpo a.opcao { color: var(--tinta); text-decoration: none; }
.corpo a.opcao--ativa, .corpo a.opcao--ativa:hover { background: linear-gradient(180deg, var(--aco-ativo-1), var(--aco-escuro)); color: #fff; box-shadow: none; }

/* Agenda */
.lista-cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.lista-cartoes .cartao { display: flex; flex-direction: column; gap: 4px; }
.lista-cartoes .cartao p { margin: 4px 0 0; font-size: 16px; }
.calendario__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendario__nav b { font: 700 20px/1.2 var(--fonte-titulo); color: var(--tinta-titulo); }
.calendario { table-layout: fixed; }
.calendario th { text-align: center; }
.calendario td { height: 74px; vertical-align: top; padding: 6px; }
.calendario tbody tr:nth-child(n) { background: var(--pergaminho-claro); }
.calendario td + td { border-left: 1px solid var(--bege-escuro); }
.calendario tr + tr td { border-top: 1px solid var(--bege-escuro); }
.calendario__fora { background: var(--bege); }
.calendario__hoje { box-shadow: inset 0 0 0 2px var(--aco); }
.calendario__dia { font-weight: 700; color: var(--tinta-titulo); }
.calendario__evento { display: block; margin-top: 4px; padding: 2px 6px; font-size: 13px; line-height: 1.3; background: var(--aco-escuro); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Notícias */
.materia { display: flex; flex-direction: column; gap: 10px; }
.materia .meta { margin: 0; }
.materia + .materia { padding-top: 28px; border-top: 1px solid var(--bege-escuro); }
.lista-cartoes .cartao .selo { margin-bottom: 6px; }

/* Guildas */
.lista-guildas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.corpo a.guilda-cartao { display: flex; align-items: center; gap: 14px; color: var(--tinta); text-decoration: none; }
.corpo a.guilda-cartao:hover { box-shadow: inset 0 0 0 1px var(--ouro-escuro); }
.guilda-cartao > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guilda-cartao b { font-size: 18px; color: var(--tinta-titulo); }
.guilda-cabecalho { display: flex; align-items: center; gap: 16px; }
.guilda-cabecalho .meta { margin: 4px 0 0; }
.apelido { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.apelido .entrada { height: 34px; width: 140px; font-size: 15px; }
.apelido .btn-claro { min-height: 34px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; }
.lista-simples { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Logo levemente sobreposto ao painel de login (por cima da moldura) */
.col-esq .logo { position: relative; z-index: 2; align-items: flex-end; margin-bottom: -26px; pointer-events: none; }
.col-esq .logo img { pointer-events: auto; }
.col-esq .logo + .moldura .painel-pedra { padding-top: 30px; }

/* Coluna direita sem os retratos do topo: os widgets começam alinhados ao conteúdo */
.col-dir { padding-top: 190px; }
@media (max-width: 1100px) { .col-dir { padding-top: 0; } }

/* Widget "Hoje em Eldast" */
.hoje { margin: 0; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.hoje > div { display: flex; flex-direction: column; gap: 1px; }
.hoje > div + div { padding-top: 10px; border-top: 1px solid rgba(143,112,58,.45); }
.hoje dt { font-size: 14px; color: var(--cinza-texto); }
.hoje dd { margin: 0; font-weight: 700; font-size: 18px; color: var(--claro); }

/* Respiro do topo reduzido (200px -> 130px): centro, logo e coluna direita sobem juntos */
@media (min-width: 761px) {
  .col-centro { padding-top: 130px; }
  .col-esq .logo { height: 142px; }
}
@media (min-width: 1101px) { .col-dir { padding-top: 120px; } }
