/* =====================================================================
   OTAway - area "Minha conta" e Offline Training (prefixo ca-). Usa os tokens de tibiaaway-v3.css e os
   botoes/campos de tibiaaway-forms.css. Carregado depois de tibiaaway-forms.css.
   ===================================================================== */
.ta-legacy .ca-page{max-width:none;margin:0}
.ta-legacy .ca-page p,.ta-legacy .ca-page dd,.ta-legacy .ca-page small{padding:0;text-indent:0}
.ta-legacy .ca-stack{display:grid;gap:var(--ot-s5)}

/* botoes: variantes de largura automatica e perigo (a base e .tf-btn) */
.ta-legacy .tf-btn.tf-btn--auto{width:auto;display:inline-flex !important;padding:0 18px !important;height:44px}
.ta-legacy .tf-btn--danger{background:transparent !important;color:#f0a0a0 !important;border-color:rgba(235,111,111,.5) !important}
.ta-legacy .tf-btn--danger:hover{background:rgba(235,111,111,.12) !important;border-color:rgba(235,111,111,.8) !important;color:#ffc2c2 !important}
.ta-legacy .tf-btn--sm.tf-btn--auto{height:38px;padding:0 14px !important;font-size:14px !important}
.ta-legacy .ca-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* topo de subpagina */
.ta-legacy .ca-top{margin:0 0 var(--ot-s5)}
.ta-legacy .ca-back{display:inline-flex;align-items:center;gap:6px;margin:0 0 10px;font:500 14px/1 var(--ot-font-body);color:var(--ot-muted)}
.ta-legacy .ca-back:hover{color:var(--ot-text);text-decoration:none}
.ta-legacy .ca-title{margin:0;font:600 26px/1.2 var(--ot-font-body);color:var(--ot-text)}
.ta-legacy .ca-lead{margin:8px 0 0;max-width:68ch;font:400 16px/1.55 var(--ot-font-body);color:var(--ot-muted)}

/* cartao */
.ta-legacy .ca-card{background:var(--ot-card);border:1px solid var(--ot-line);border-radius:var(--ot-r-panel);overflow:hidden}
.ta-legacy .ca-card__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-bottom:1px solid var(--ot-line)}
.ta-legacy .ca-card__title{margin:0;display:flex;align-items:center;gap:10px;font:600 17px/1.3 var(--ot-font-body);color:var(--ot-text)}
.ta-legacy .ca-card__title::before{content:"";width:4px;height:18px;border-radius:4px;background:var(--ot-accent)}
.ta-legacy .ca-card__body{padding:20px 22px}
.ta-legacy .ca-card--flush .ca-card__body{padding:0}
.ta-legacy .ca-note{margin:0 0 14px;font:400 15px/1.55 var(--ot-font-body);color:var(--ot-muted)}
.ta-legacy .ca-note b{color:var(--ot-text);font-weight:600}

/* chips */
.ta-legacy .ca-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid var(--ot-line);border-radius:var(--ot-r-pill);
  font:600 12px/1.2 var(--ot-font-body);letter-spacing:.2px;color:var(--ot-muted);background:rgba(255,255,255,.03);white-space:nowrap}
.ta-legacy .ca-chip--ok{color:var(--ot-ok);border-color:rgba(111,207,151,.4);background:rgba(111,207,151,.1)}
.ta-legacy .ca-chip--warn{color:var(--ot-warn);border-color:rgba(240,179,90,.4);background:rgba(240,179,90,.1)}
.ta-legacy .ca-chip--bad{color:var(--ot-bad);border-color:rgba(235,111,111,.4);background:rgba(235,111,111,.1)}
.ta-legacy .ca-chip--info{color:var(--ot-accent-hover);border-color:rgba(56,189,248,.4);background:var(--ot-accent-soft)}

/* abertura: ola + situacao + saldo */
.ta-legacy .ca-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--ot-s5);align-items:center;padding:24px 26px;
  background:linear-gradient(135deg,rgba(56,189,248,.10),rgba(56,189,248,0) 60%),var(--ot-card);border:1px solid var(--ot-line);border-radius:var(--ot-r-panel)}
.ta-legacy .ca-hero__eyebrow{display:block;margin:0 0 6px;font:600 12px/1 var(--ot-font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--ot-accent)}
.ta-legacy .ca-hero h2{margin:0;font:600 28px/1.2 var(--ot-font-display);color:var(--ot-text);letter-spacing:.02em;overflow-wrap:anywhere}
.ta-legacy .ca-hero__meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px;color:var(--ot-muted);font:400 14px/1.4 var(--ot-font-body)}
.ta-legacy .ca-hero__cta{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.ta-legacy .ca-coins{display:flex;align-items:baseline;gap:8px;margin-top:2px}
.ta-legacy .ca-coins b{font:600 22px/1 var(--ot-font-body);color:var(--ot-text)}

/* personagens */
.ta-legacy .ca-chars{display:grid;gap:0;margin:0;padding:0;list-style:none}
.ta-legacy .ca-char{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 20px;align-items:center;padding:16px 22px;border-top:1px solid var(--ot-line)}
.ta-legacy .ca-char:first-child{border-top:0}
.ta-legacy .ca-char__id{display:flex;flex-direction:column;gap:3px;min-width:0}
.ta-legacy .ca-char__name{font:600 17px/1.25 var(--ot-font-body);color:var(--ot-text);overflow-wrap:anywhere}
.ta-legacy .ca-char__name:hover{color:var(--ot-accent-hover);text-decoration:none}
.ta-legacy .ca-char__sub{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font:400 14px/1.4 var(--ot-font-body);color:var(--ot-muted)}
.ta-legacy .ca-char__act{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.ta-legacy .ca-char.is-deleted .ca-char__name{color:var(--ot-muted);text-decoration:line-through}
.ta-legacy .ca-empty{padding:28px 22px;text-align:center;color:var(--ot-muted);font:400 15px/1.55 var(--ot-font-body)}
.ta-legacy .ca-empty b{display:block;margin-bottom:4px;color:var(--ot-text);font-size:16px}

/* atalhos */
.ta-legacy .ca-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ot-s5)}
.ta-legacy .ca-group{margin:0}
.ta-legacy .ca-group__t{margin:0 0 10px;font:600 12px/1 var(--ot-font-body);letter-spacing:.14em;text-transform:uppercase;color:var(--ot-accent)}
.ta-legacy .ca-tiles{display:grid;gap:10px}
.ta-legacy .ca-tile{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--ot-line);border-radius:var(--ot-r-ctl);background:var(--ot-card);
  color:var(--ot-text);transition:border-color var(--ot-t),background var(--ot-t)}
.ta-legacy .ca-tile:hover{border-color:rgba(56,189,248,.5);background:var(--ot-card2);text-decoration:none}
.ta-legacy .ca-tile__ic{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:10px;background:var(--ot-accent-soft);color:var(--ot-accent-hover)}
.ta-legacy .ca-tile__tx{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ta-legacy .ca-tile__tx b{font:600 15px/1.3 var(--ot-font-body)}
.ta-legacy .ca-tile__tx small{font:400 13px/1.4 var(--ot-font-body);color:var(--ot-muted)}
.ta-legacy .ca-tile>.tf-ic{color:var(--ot-muted);flex:none}

/* lista rotulo/valor */
.ta-legacy .ca-kv{margin:0;display:grid}
.ta-legacy .ca-kv__row{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);gap:6px 20px;padding:13px 22px;border-top:1px solid var(--ot-line);align-items:center}
.ta-legacy .ca-kv__row:first-child{border-top:0}
.ta-legacy .ca-kv dt{margin:0;font:500 14px/1.4 var(--ot-font-body);color:var(--ot-muted)}
.ta-legacy .ca-kv dd{margin:0;font:400 15px/1.5 var(--ot-font-body);color:var(--ot-text);overflow-wrap:anywhere}
.ta-legacy .ca-kv dd small{display:block;margin-top:2px;font-size:13px;color:var(--ot-muted)}
.ta-legacy .ca-reveal{display:inline-flex;align-items:center;gap:10px}
.ta-legacy .ca-reveal button{display:inline-grid;place-items:center;width:30px;height:30px;padding:0;border:0 !important;border-radius:8px !important;background:transparent !important;color:var(--ot-muted) !important;cursor:pointer}
.ta-legacy .ca-reveal button:hover{color:var(--ot-text) !important;background:rgba(255,255,255,.06) !important}

/* navegacao interna da pagina (ancoras) */
.ta-legacy .ca-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 var(--ot-s5);padding:0;list-style:none}
.ta-legacy .ca-tabs a{display:inline-flex;align-items:center;height:38px;padding:0 16px;border:1px solid var(--ot-line);border-radius:var(--ot-r-pill);
  font:500 14px/1 var(--ot-font-body);color:var(--ot-muted);background:var(--ot-card)}
.ta-legacy .ca-tabs a:hover{color:var(--ot-text);border-color:rgba(56,189,248,.5);text-decoration:none}

/* lista de itens com acao ao lado */
.ta-legacy .ca-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;align-items:center;padding:16px 22px;border-top:1px solid var(--ot-line)}
.ta-legacy .ca-item:first-child{border-top:0}
.ta-legacy .ca-item b{display:block;font:600 15px/1.35 var(--ot-font-body);color:var(--ot-text)}
.ta-legacy .ca-item p{margin:3px 0 0;font:400 14px/1.5 var(--ot-font-body);color:var(--ot-muted)}

/* tabela simples (chamados, historicos) */
.ta-legacy .ca-table{width:100%;border-collapse:collapse;font:400 14px/1.4 var(--ot-font-body)}
.ta-legacy .ca-table th{padding:10px 22px;text-align:left;font:600 12px/1.2 var(--ot-font-body);letter-spacing:.08em;text-transform:uppercase;color:var(--ot-muted);border-bottom:1px solid var(--ot-line)}
.ta-legacy .ca-table td{padding:12px 22px;border-top:1px solid var(--ot-line);color:var(--ot-text);vertical-align:middle}
.ta-legacy .ca-table tr:first-child td{border-top:0}

/* chave de recuperacao e codigos */
.ta-legacy .ca-code{display:inline-block;padding:10px 14px;border:1px solid rgba(56,189,248,.4);border-radius:var(--ot-r-ctl);background:var(--ot-bg2);font:700 18px/1.2 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.08em;color:var(--ot-text);user-select:all}

@media (max-width:900px){
  .ta-legacy .ca-hero{grid-template-columns:1fr}
  .ta-legacy .ca-hero__cta{justify-content:flex-start}
  .ta-legacy .ca-cols{grid-template-columns:1fr}
}
@media (max-width:640px){
  .ta-legacy .ca-char,.ta-legacy .ca-item{grid-template-columns:1fr}
  .ta-legacy .ca-char__act{justify-content:flex-start}
  .ta-legacy .ca-kv__row{grid-template-columns:1fr;gap:2px;padding:12px 16px}
  .ta-legacy .ca-card__head,.ta-legacy .ca-card__body,.ta-legacy .ca-char,.ta-legacy .ca-item{padding-left:16px;padding-right:16px}
  .ta-legacy .ca-hero{padding:20px 16px}
  .ta-legacy .ca-hero h2{font-size:24px}
  .ta-legacy .ca-table th,.ta-legacy .ca-table td{padding-left:12px;padding-right:12px}
}

.ta-legacy .ca-reveal .tf-eye__off{display:none}
.ta-legacy .ca-reveal button[aria-pressed="true"] .tf-eye__on{display:none}
.ta-legacy .ca-reveal button[aria-pressed="true"] .tf-eye__off{display:block}
.ta-legacy .ca-reveal [hidden]{display:none !important}
.ta-legacy .ca-row select,.ta-legacy .ca-item select{height:38px;min-width:200px;padding:0 12px;border:1px solid var(--ot-line);border-radius:var(--ot-r-ctl);background:var(--ot-bg2);color:var(--ot-text);font:400 15px var(--ot-font-body)}
.ta-legacy .ca-item form{margin:0}

/* ---------- Offline Training: mesmo visual da area da conta (o motor e os nomes .ot-* continuam) ---------- */
.ta-legacy .ca-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ot-s4);margin:0 0 var(--ot-s5);padding:0;list-style:none}
.ta-legacy .ca-steps li{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border:1px solid var(--ot-line);border-radius:var(--ot-r-panel);background:var(--ot-card)}
.ta-legacy .ca-steps__n,.ta-legacy .ca-stepn{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--ot-accent-soft);color:var(--ot-accent-hover);font:700 15px/1 var(--ot-font-body)}
.ta-legacy .ca-steps b{display:block;font:600 15px/1.35 var(--ot-font-body);color:var(--ot-text)}
.ta-legacy .ca-steps small{display:block;margin-top:3px;font:400 13px/1.45 var(--ot-font-body);color:var(--ot-muted)}
.ta-legacy .ot .ot-sub{display:flex;align-items:center;gap:10px;margin:26px 0 12px;font:600 16px/1.3 var(--ot-font-body) !important;letter-spacing:0 !important;text-transform:none !important;color:var(--ot-text) !important}
.ta-legacy .ot .ot-card>h2,.ta-legacy .ot-rulesbox>summary{display:flex;align-items:center;gap:10px;margin:0 0 16px;font:600 18px/1.3 var(--ot-font-body);color:var(--ot-text) !important}
.ta-legacy .ot .ot-card>h2::before,.ta-legacy .ot-rulesbox>summary::before{content:"";width:4px;height:18px;border-radius:4px;background:var(--ot-accent)}
.ta-legacy .ot .ot-card{border-radius:var(--ot-r-panel);padding:22px}
.ta-legacy .ot-rulesbox{cursor:default}
.ta-legacy .ot-rulesbox>summary{cursor:pointer;list-style:none;margin:0}
.ta-legacy .ot-rulesbox>summary::-webkit-details-marker{display:none}
.ta-legacy .ot-rulesbox>summary::after{content:"Mostrar";margin-left:auto;font:500 13px/1 var(--ot-font-body);color:var(--ot-muted)}
.ta-legacy .ot-rulesbox[open]>summary::after{content:"Ocultar"}
.ta-legacy .ot-rulesbox[open]>summary{margin-bottom:16px}
.ta-legacy .ot .ot-go{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:var(--ot-r-ctl);font:600 16px/1 var(--ot-font-body)}
@media (max-width:900px){.ta-legacy .ca-steps{grid-template-columns:1fr}}
.ta-legacy .ot p,.ta-legacy .ot small,.ta-legacy .ot-rulesbox p{padding-left:0;text-indent:0}
.ta-legacy .ot .ot-link{display:inline-flex;align-items:center;height:38px;padding:0 14px !important;border:1px solid rgba(235,111,111,.5) !important;border-radius:var(--ot-r-ctl) !important;
  background:transparent !important;color:#f0a0a0 !important;font:600 14px/1 var(--ot-font-body) !important;text-decoration:none;cursor:pointer}
.ta-legacy .ot .ot-link:hover{background:rgba(235,111,111,.12) !important;color:#ffc2c2 !important}

.ta-legacy .tf-card p.ca-note{padding:0;text-indent:0;margin:0 0 14px}

/* campos de texto longo e kv dentro de cartao de formulario */
.ta-legacy .tf-input textarea{display:block;width:100%;min-height:96px;padding:12px 14px;border:1px solid var(--ot-line) !important;border-radius:var(--ot-r-ctl) !important;
  background:var(--ot-bg2) !important;color:var(--ot-text) !important;font:400 15px/1.5 var(--ot-font-body);resize:vertical;box-shadow:none}
.ta-legacy .tf-input textarea:focus{outline:none !important;border-color:var(--ot-accent) !important;box-shadow:0 0 0 3px var(--ot-accent-soft)}
.ta-legacy .tf-card__body .ca-kv__row{padding-left:0;padding-right:0}
.ta-legacy .tf-check small{color:var(--ot-muted);font-size:13px}

/* passos em coluna (autenticador) */
.ta-legacy .ca-steps--col{grid-template-columns:1fr;margin:0 0 var(--ot-s5)}
.ta-legacy .ca-steps--col li{flex-wrap:nowrap}
.ta-legacy .ca-steps .ca-code{display:inline-block;margin:8px 0 4px;font-size:16px}
.ta-legacy .ca-steps small a{color:var(--ot-accent-hover)}

/* Minha conta: os 4 botões do topo em 2 colunas x 2 linhas */
.ta-legacy .ca-hero__cta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:center;min-width:min(100%,380px)}
.ta-legacy .ca-hero__cta .tf-btn,.ta-legacy .ca-hero__cta a{justify-content:center;white-space:nowrap}
@media (max-width:560px){.ta-legacy .ca-hero__cta{grid-template-columns:minmax(0,1fr)}}

/* botões do resumo da conta: quebram em várias linhas sem estourar */
.ta-legacy .ca-hero__btns{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:560px){.ta-legacy .ca-hero__btns{width:100%}.ta-legacy .ca-hero__btns .tf-btn{flex:1 1 100%;justify-content:center}}

/* resumo da conta, proposta 2: cartão Carteira + cartão Jogar */
.ta-legacy .ca-hero.ca-hero2{display:block}
.ta-legacy .ca-hero2__grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;margin-top:16px;align-items:stretch}
.ta-legacy .ca-tile2{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border:1px solid var(--ot-line);border-radius:16px;background:rgba(255,255,255,.03)}
.ta-legacy .ca-tile2__top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ta-legacy .ca-tile2__sub{margin-top:-6px;color:var(--ot-muted);font:400 13.5px/1.4 var(--ot-font-body)}
.ta-legacy .ca-wallet .ca-hero__btns{margin-top:auto}
.ta-legacy .ca-play{justify-content:center}
.ta-legacy .ca-play__main{width:100%;height:48px;justify-content:center}
.ta-legacy .tf-btn .ta-tag{font-size:10px;padding:1px 6px;margin-left:6px;line-height:1.5;vertical-align:middle}
@media (max-width:820px){.ta-legacy .ca-hero2__grid{grid-template-columns:1fr}}
.ta-legacy .ca-coin-img{image-rendering:pixelated;width:32px;height:32px;align-self:center;flex:none}
/* tela "Personagem criado": passos numerados + acoes */
.ta-legacy .cc-steps{list-style:none;margin:18px 0 20px;padding:0;display:flex;flex-direction:column;gap:12px}
.ta-legacy .cc-steps li{display:flex;gap:14px;align-items:flex-start}
.ta-legacy .cc-steps li>span{flex:0 0 28px;height:28px;border-radius:50%;display:grid;place-items:center;font:700 13px/1 var(--ot-font-body);color:var(--ot-accent,#59b9f7);border:1px solid var(--ot-line);background:var(--ot-bg2)}
.ta-legacy .cc-steps li b{display:block;font:600 15px/1.35 var(--ot-font-body);color:var(--ot-text)}
.ta-legacy .cc-steps li small{display:block;font:400 13.5px/1.45 var(--ot-font-body);color:var(--ot-muted)}
.ta-legacy .tf-card__body .ca-play{display:flex;flex-direction:column;gap:10px}
@media (max-width:420px){.ta-legacy .ca-play__main{font-size:14px;line-height:1.2}.ta-legacy .ca-play__main span{white-space:nowrap}}
/* acoes secundarias de jogar: cartoes iguais e simetricos (3, 2 ou 1 por linha conforme a quantidade); empilha no celular */
.ta-legacy .ca-play__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ta-legacy .ca-play__row:has(> :nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
.ta-legacy .ca-play__row:has(> :only-child){grid-template-columns:minmax(0,1fr)}
.ta-legacy .ca-play__row .tf-btn{position:relative;display:flex !important;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:auto;min-height:0;padding:12px 10px !important;text-align:center;white-space:normal;line-height:1.25;font-size:14px}
.ta-legacy .ca-play__row .tf-btn svg{width:20px;height:20px;flex:0 0 auto}
.ta-legacy .ca-play__row .tf-btn>span{display:flex;justify-content:center;align-items:center;min-height:0;text-align:center}
.ta-legacy .ca-play__row .tf-btn .ta-tag{position:absolute;top:8px;right:8px;margin:0;display:inline-block;min-height:0}
@media (max-width:560px){.ta-legacy .ca-play__row,.ta-legacy .ca-play__row:has(> :nth-child(3)){grid-template-columns:minmax(0,1fr)}.ta-legacy .ca-play__row .tf-btn{flex-direction:row;justify-content:center;min-height:48px;padding:10px 14px !important}.ta-legacy .ca-play__row .tf-btn .ta-tag{position:static;margin-left:6px}.ta-legacy .ca-play__row .tf-btn>span{display:flex;align-items:center;min-height:0}}
