/* kit preto + dourado (docs/UI_PADRAO.md), versão celular, com a identidade do launcher (logo, emblema, fundo, Nunito Black) */
@font-face { font-family: 'Nunito Black'; src: url(marca/nunito_black.ttf) format('truetype'); font-display: swap; }
:root {
  --fundo: #0b0a08; --painel: rgba(20, 17, 12, .86); --borda: #6b5426; --ouro: #d9b65c; --ouro-claro: #f3dc9a;
  --texto: #ece3cf; --apagado: #9d927c; --erro: #ff8a7a; --ok: #9fd18b;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--texto); font-family: Nunito, "Segoe UI", Roboto, system-ui, sans-serif; font-size: 16px; }
html { background: var(--fundo); }
body { background: transparent; min-height: 100vh; }   /* fundo do body cobria a arte (o ::before fica atras dele) */
body::before { content: ''; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, .35), rgba(0, 0, 0, .8) 85%),   /* sombra preta: arte menos viva */
              linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .65)),
              url(marca/fundo.jpg?v=5) center bottom / cover no-repeat #0b0a08; filter: saturate(.75); }
/* caixas e campos em preto, com contraste sobre a arte */
.painel { background: rgba(0, 0, 0, .86) !important; border-color: #7a5f28 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(243, 220, 154, .18) !important; backdrop-filter: blur(2px); }
input { background: #000 !important; }
.slot { background: #050403 !important; }
.slot.caido { background: linear-gradient(180deg, #3a0703, #120302) !important; }
.abas { background: rgba(0, 0, 0, .86); border: 1px solid #7a5f28; border-radius: 12px; padding: 2px 4px; }
.rodape span { background: rgba(0, 0, 0, .8); padding: 3px 10px; border-radius: 999px; }
.aviso { background: rgba(0, 0, 0, .88) !important; }
h1, .abas button, .botao, .secao, .quem b, .acoes .titulo, .estado b, .slot .nv, .slot .qtd, .caido-txt {
  font-family: 'Nunito Black', Nunito, "Segoe UI", sans-serif; font-weight: 900; }
.marca-login { position: relative; display: grid; place-items: center; margin: 18px 0 8px; }
.marca-login .portal { position: relative; width: 150px; height: 150px; filter: drop-shadow(0 0 22px rgba(220, 40, 30, .55)); }
.marca-login .portal img { position: absolute; inset: 0; width: 100%; height: 100%; }
.marca-login .portal .centro { animation: gira 6s linear infinite; }   /* so o portal vermelho gira; o anel fica parado */
.marca-login .logo { position: relative; width: min(94%, 440px); margin-top: -34px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .85)); }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .marca-login .portal .centro { animation: none; } }
.marca-topo { text-align: center; margin: 2px 0 8px; }
.marca-topo img { width: min(62%, 260px); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .8)); }
#tela-login .painel { margin-top: 4px; }
form label.check { display: flex; align-items: center; gap: 10px; color: var(--texto); font-size: 14px; }
form label.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ouro); }
.lembrado { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 10px 12px;
  border-radius: 10px; background: #000; border: 1px solid #7a5f28; }
.lembrado b { color: var(--ouro-claro); }
.link { background: none; border: 0; color: var(--ouro); font: inherit; font-size: 14px; text-decoration: underline; padding: 4px; }
.lembrado[hidden], #campos-conta[hidden] { display: none; }
#app { max-width: 520px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 12px 24px; }
.painel { background: linear-gradient(180deg, rgba(40, 32, 20, .9), var(--painel)); border: 1px solid var(--borda); border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(243, 220, 154, .15); padding: 16px; }
h1 { font-weight: 900; color: var(--ouro-claro); text-align: center; margin: 8px 0 4px; letter-spacing: .5px; }
.emblema { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 900;
  color: #1a1308; background: radial-gradient(circle at 35% 30%, var(--ouro-claro), var(--ouro) 55%, #8a6a24);
  box-shadow: 0 0 0 2px #3a2c12, 0 4px 12px rgba(0, 0, 0, .6); }
.emblema.peq { width: 40px; height: 40px; margin: 0; font-size: 13px; }
.dica { text-align: center; color: var(--apagado); }
.dica b { color: var(--ouro-claro); }
form label { display: block; margin: 12px 0; color: var(--apagado); font-size: 14px; }
input { display: block; width: 100%; margin-top: 4px; padding: 12px; font-size: 17px; color: var(--texto); background: rgba(0, 0, 0, .45);
  border: 1px solid var(--borda); border-radius: 10px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
input:focus { outline: 2px solid var(--ouro); }
.botao { display: block; width: 100%; padding: 13px; margin-top: 16px; font: inherit; font-weight: 900; color: #1a1308; border: 0;
  border-radius: 999px; background: linear-gradient(180deg, var(--ouro-claro), var(--ouro) 60%, #a07f30);
  box-shadow: 0 3px 0 #5c4718, 0 6px 12px rgba(0, 0, 0, .5); }
.botao:active { transform: translateY(2px); box-shadow: 0 1px 0 #5c4718; }
.botao.fino { width: auto; margin: 0; padding: 8px 14px; font-size: 14px; }
.erro { color: var(--erro); min-height: 1.2em; text-align: center; }
.topo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.quem { flex: 1; display: flex; flex-direction: column; }
.quem b { color: var(--ouro-claro); font-size: 18px; }
.quem span { color: var(--apagado); font-size: 13px; }
.abas { display: flex; gap: 4px; margin: 12px 0 8px; }
.abas button { flex: 1; padding: 10px 4px; font: inherit; font-weight: 900; color: var(--apagado); background: none; border: 0;
  border-bottom: 2px solid transparent; }
.abas button.ativa { color: var(--ouro-claro); border-bottom-color: var(--ouro); }
.aviso { background: rgba(120, 90, 30, .35); border: 1px solid var(--borda); border-radius: 10px; padding: 10px; text-align: center; }
.secao { margin: 4px 0 8px; font-weight: 900; color: var(--ouro); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.lista { list-style: none; margin: 0 0 14px; padding: 0; }
.lista li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; margin: 6px 0; border-radius: 10px;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(107, 84, 38, .6); }
.lista li .n { color: var(--texto); }
.lista li .v { color: var(--ouro-claro); white-space: nowrap; font-weight: 700; }
.vazio { color: var(--apagado); text-align: center; padding: 12px; }
.pilula { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #1a1308; background: var(--ouro); }
.rodape { text-align: center; color: var(--apagado); font-size: 12px; }

/* ---- grade no estilo do banco/SendBox do jogo ---- */
.rosto { width: 44px; height: 44px; flex: none; border-radius: 50%; background-repeat: no-repeat; background-color: #000;
  box-shadow: 0 0 0 2px var(--ouro), 0 3px 8px rgba(0, 0, 0, .6); }
.botao.redondo { flex: none; width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important; font-size: 18px !important; }
.grade { display: grid; gap: 6px; margin-bottom: 14px; }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g8 { grid-template-columns: repeat(8, 1fr); gap: 4px; }
.g3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { position: relative; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(25,20,12,.75));
  border: 1px solid rgba(107, 84, 38, .7); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .7); display: grid; place-items: center;
  padding: 0; font: inherit; color: inherit; overflow: hidden; }
.slot.vazio { opacity: .45; }
.slot.sel { border-color: var(--ouro-claro); box-shadow: 0 0 0 2px var(--ouro), 0 0 12px rgba(217, 182, 92, .6); }
.slot.alvo { border-color: #9fd18b; box-shadow: 0 0 0 2px #6fae5a; }
.slot .img { width: 36px; height: 36px; background-repeat: no-repeat; image-rendering: pixelated; }
.slot.grande .img { width: 40px; height: 40px; transform: scale(1.4); }
.slot .qtd { position: absolute; right: 2px; bottom: 1px; font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.slot .nv { position: absolute; left: 0; right: 0; bottom: 1px; font-size: 10px; font-weight: 900; color: var(--ouro-claro); text-align: center;
  text-shadow: 0 0 2px #000, 0 0 3px #000; }
.slot .tier { position: absolute; top: 1px; right: 3px; font-size: 10px; color: var(--ouro-claro); text-shadow: 0 0 2px #000; }
.slot.grande { aspect-ratio: auto; height: 92px; }
.slot.grande .nome { position: absolute; top: 3px; left: 0; right: 0; font-size: 11px; text-align: center; color: var(--texto);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
.acoes { position: sticky; bottom: 8px; margin-top: 10px; padding: 12px; }
.acoes .titulo { font-weight: 900; color: var(--ouro-claro); margin-bottom: 2px; }
.acoes .det { color: var(--apagado); font-size: 13px; margin-bottom: 8px; }
.acoes .linha, .modal .linha { display: flex; gap: 8px; flex-wrap: wrap; }
.acoes .botao, .modal .botao { flex: 1; margin: 0; }
.botao.escuro { background: linear-gradient(180deg, #4a3d24, #2b2315); color: var(--ouro-claro); box-shadow: 0 3px 0 #1a140a; }
.botao:disabled { opacity: .5; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 20px; z-index: 9; }
.modal[hidden] { display: none; }
.modal .caixa { max-width: 400px; width: 100%; }
.modal p { margin-top: 0; }
.ok { color: var(--ok); }

/* barras de EXP e HP */
.barra { position: relative; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .6); overflow: hidden; margin-top: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8); }
.barra i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; }
.barra.exp i { background: linear-gradient(180deg, #ffe9a8, var(--ouro) 60%, #9a7426); }
.barra.hp i { background: linear-gradient(180deg, #ff9b8a, #d0452f 60%, #8d2414); }
.quem .barra.exp { height: 12px; margin-top: 5px; }
.quem .barra span { position: absolute; inset: 0; font-size: 9px; line-height: 12px; text-align: center; color: #fff; font-weight: 900;
  text-shadow: 0 0 2px #000, 0 0 2px #000; }
.slot .barras { position: absolute; left: 4px; right: 4px; bottom: 15px; }
.slot .barras .barra { height: 4px; margin-top: 2px; }
.slot.grande .barras { bottom: 17px; }
.slot.caido { border-color: #8d2414; background: linear-gradient(180deg, rgba(70, 10, 6, .75), rgba(25, 8, 5, .85)); }
.slot.caido .img { filter: grayscale(1) brightness(.6); }
.slot .caido-txt { position: absolute; top: 34%; left: 2px; right: 2px; text-align: center; font-size: 10px; font-weight: 900; color: #fff;
  background: rgba(160, 30, 20, .9); border-radius: 4px; padding: 1px 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
/* equipamentos */
.equip .slot { aspect-ratio: auto; height: 62px; }
.equip .slot .parte { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--apagado); }
.equip .slot .img { margin-top: 10px; }
/* autoplay */
.estado { display: flex; gap: 8px; margin-bottom: 12px; }
.estado > div { flex: 1; text-align: center; padding: 10px 4px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(107, 84, 38, .6); }
.estado b { display: block; color: var(--ouro-claro); font-size: 18px; }
.estado span { color: var(--apagado); font-size: 12px; }
.lista li.abate { align-items: center; justify-content: flex-start; padding: 6px 10px; }
.lista li.abate .img { width: 40px; height: 40px; flex: none; background-repeat: no-repeat; transform: scale(.8); }
.lista li.abate .n { flex: 1; }
.lista li.abate small { display: block; color: var(--apagado); font-size: 11px; }
.ligado { color: var(--ok) !important; }
.desligado { color: var(--apagado) !important; }

/* ===== versão fluida (12/11/2026): abas embaixo, folha de ações, avisos rápidos, painel de farm ===== */
#tela-conta { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.topo { position: sticky; top: max(6px, env(safe-area-inset-top)); z-index: 5; margin-bottom: 10px; }
.linha-nome { display: flex; align-items: center; gap: 8px; min-width: 0; }
.linha-nome b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pilula-ap { flex: none; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px; color: var(--apagado);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(157, 146, 124, .4); }
.pilula-ap.on { color: #0d1a08; background: var(--ok); border-color: var(--ok); animation: pulsa 2s ease-in-out infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 4px rgba(159, 209, 139, .25); } }
.abas-baixo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center;
  padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .94); border-top: 1px solid #7a5f28; box-shadow: 0 -6px 18px rgba(0, 0, 0, .6); }
.abas-baixo[hidden] { display: none; }
.abas-baixo button { flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px;
  font: inherit; font-family: 'Nunito Black', Nunito, sans-serif; font-size: 12px; color: var(--apagado); background: none; border: 0;
  border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.abas-baixo button.ativa { color: var(--ouro-claro); background: rgba(217, 182, 92, .12); }
.ic::before { display: block; font-size: 20px; line-height: 1; font-style: normal; }
.ic-farm::before { content: '⚔'; } .ic-cores::before { content: '◆'; } .ic-bag::before { content: '▦'; } .ic-banco::before { content: '⌂'; }
.cartao { margin-bottom: 10px; padding: 12px; }
.cartao-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cartao-topo .secao { margin: 0; }
.cartao-topo .botao.fino { padding: 6px 12px; font-size: 13px; }
.dica-peq { color: var(--apagado); font-size: 12px; }
.dica-peq b.hp { color: #ff8f7d; } .dica-peq b.mp { color: #8fb8ff; }
.dica-rodape { color: var(--apagado); font-size: 12px; text-align: center; margin: 4px 8px 12px; }
.carregando { text-align: center; color: var(--apagado); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(107, 84, 38, .6); min-width: 0; }
.stat .rot { display: block; font-size: 11px; color: var(--apagado); text-transform: uppercase; letter-spacing: .5px; }
.stat b { display: block; font-family: 'Nunito Black', Nunito, sans-serif; font-size: 22px; color: var(--ouro-claro); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat small { display: block; font-size: 11px; color: var(--apagado); }
.stat.ligado b { color: var(--ok); }
.linha-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 4px 0; border-radius: 10px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(107, 84, 38, .45); }
.linha-item .img { width: 36px; height: 36px; flex: none; background-repeat: no-repeat; image-rendering: pixelated; }
.linha-item .n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.linha-item .n span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-item .n small { color: var(--apagado); font-size: 11px; }
.linha-item .n .barra { height: 5px; margin-top: 4px; }
.linha-item .v { flex: none; color: var(--ouro-claro); font-weight: 900; white-space: nowrap; }
.linha-item .v.apagado { color: var(--apagado); font-weight: 400; font-size: 12px; }
.linha-item .v.raro { color: #ffb36b; }
.linha-item.fina { padding: 4px 8px; }
.linha-item.fina .img { width: 32px; height: 32px; transform: scale(.8); }
.linha-item.novo { animation: chegou 2.4s ease-out; }
@keyframes chegou { 0% { background: rgba(217, 182, 92, .45); border-color: var(--ouro-claro); } 100% { background: rgba(255, 255, 255, .03); } }
.linha-item.aviso-core { border-color: rgba(255, 179, 107, .6); background: rgba(255, 140, 40, .08); }
.linha-item.aviso-core.chao { border-color: rgba(255, 138, 122, .6); background: rgba(160, 30, 20, .15); }
.barra.mp i { background: linear-gradient(180deg, #a9c8ff, #4f86e6 60%, #234e9e); }
.ponto { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--apagado); }
.ponto.vermelho { background: #e0533f; } .ponto.amarelo { background: #f0b846; }
.gp-grande { font-family: 'Nunito Black', Nunito, sans-serif; font-size: 26px; color: var(--ouro-claro); text-align: center; padding: 6px 0; }
.slot { -webkit-tap-highlight-color: transparent; transition: transform .08s; }
.slot:active { transform: scale(.95); }
.slot.grande .mais { font-size: 26px; color: var(--apagado); }
.slot.alvo { animation: alvo 1.2s ease-in-out infinite; }
@keyframes alvo { 50% { box-shadow: 0 0 0 3px #6fae5a, 0 0 14px rgba(111, 174, 90, .6); } }
.faixa-troca { position: sticky; top: 92px; z-index: 4; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px 12px;
  border-radius: 12px; background: #13230e; border: 1px solid #6fae5a; color: #dff3d5; font-size: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .6); }
.faixa-troca span { flex: 1; }
body.ocupado .slot, body.ocupado .folha .botao { pointer-events: none; opacity: .7; }
/* folha de ações (sobe de baixo) */
.folha-fundo { position: fixed; inset: 0; z-index: 7; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; }
.folha-fundo.aberta { opacity: 1; }
.folha-fundo[hidden], .folha[hidden] { display: none; }
.folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; max-width: 520px; margin: 0 auto; max-height: 82vh; overflow: auto;
  border-radius: 18px 18px 0 0 !important; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)) !important;
  transform: translateY(100%); transition: transform .2s ease-out; }
.folha.aberta { transform: none; }
.folha-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.folha-topo .img.grande { width: 48px; height: 48px; flex: none; background-repeat: no-repeat; image-rendering: pixelated; }
.folha-topo .sino { display: grid; place-items: center; font-size: 30px; }
.folha-topo .n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.folha-topo .n b { color: var(--ouro-claro); font-family: 'Nunito Black', Nunito, sans-serif; font-size: 18px; }
.folha-topo .n small { color: var(--apagado); font-size: 13px; }
.folha-topo .fechar { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #7a5f28; background: #000; color: var(--ouro-claro);
  font-size: 22px; line-height: 1; }
.folha-botoes { display: flex; flex-direction: column; gap: 8px; }
.folha-botoes .botao { margin: 0; text-align: left; padding: 13px 16px; }
.folha-botoes .texto { margin: 0 0 4px; color: var(--texto); font-size: 14px; line-height: 1.45; }
/* avisos rápidos */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 10; display: flex; flex-direction: column;
  align-items: center; gap: 6px; pointer-events: none; padding: 0 12px; }
.toast { max-width: 480px; padding: 10px 16px; border-radius: 12px; background: rgba(0, 0, 0, .95); border: 1px solid #7a5f28; color: var(--texto);
  font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.mostra { opacity: 1; transform: none; }
.toast.ok { border-color: #6fae5a; color: #dff3d5; }
.toast.erro { border-color: #b4422f; color: #ffd2c9; }
.toast.core { border-color: #ffb36b; color: #ffe2c2; font-weight: 700; background: #2a1606; }
.modal { z-index: 11; }
