/* Awakening Heroes — visual "luta retrô" */
:root { --fundo: #0b0b12; --card: #171723; --borda: #2a2a3d; --ouro: #f59e0b; --verm: #dc2626; --txt: #f4f4f5; --peq: #a1a1aa; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--fundo); color: var(--txt); font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overscroll-behavior: none; }
body { background: radial-gradient(ellipse at top, #2a0e0e 0%, var(--fundo) 60%) fixed; user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.peq { color: var(--peq); font-size: .85rem; }
.centro { text-align: center; }
.apagada { opacity: .25; }
.titulo { font: italic 900 1.8rem 'Arial Black', Impact, sans-serif; margin: 6px 0 12px; text-align: center; background: linear-gradient(#fff7ae, var(--ouro)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(2px 2px 0 #000); }
.sub { margin: 16px 0 8px; font-size: 1rem; }
#tela { max-width: 980px; margin: 0 auto; padding: 8px 10px 40px; }

/* botões */
.btn { background: linear-gradient(#f59e0b, #b45309); border: 2px solid #000; border-radius: 10px; padding: 10px 16px; font-weight: 900; color: #fff; text-shadow: 1px 1px 0 #000; box-shadow: 0 3px 0 #000; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.btn:disabled { filter: grayscale(1) brightness(.6); }
.btn.sec { background: linear-gradient(#3f3f5a, #23233a); }
.btn.ouro { background: linear-gradient(#fde047, #d97706); color: #1c1917; text-shadow: none; }
.btn.grande { font-size: 1.2rem; padding: 14px 20px; width: 100%; }
.btn.peq { padding: 6px 10px; font-size: .8rem; }
.btn small { display: block; font-size: .8rem; }
.linha-bt { display: flex; gap: 8px; margin-top: 8px; }
.linha-bt.quebra { flex-wrap: wrap; justify-content: center; }
.linha-bt > * { flex: 1; text-align: center; }

/* topo */
#topo { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(#000, rgba(0,0,0,.75)); border-bottom: 2px solid #7c2d12; }
#topo .voltar { background: none; border: 0; font-size: 1.4rem; color: var(--ouro); }
.t-nome { font-weight: 900; line-height: 1.1; }
.t-nome small { display: block; color: var(--ouro); }
.t-rec { margin-left: auto; display: flex; gap: 10px; font-weight: 700; font-size: .9rem; flex-wrap: wrap; justify-content: flex-end; }
.t-rec span { background: #1c1c2b; padding: 3px 8px; border-radius: 12px; border: 1px solid var(--borda); }

/* aviso */
.aviso { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 40px); opacity: 0; transition: .25s; z-index: 100; padding: 12px 18px; border-radius: 10px; background: #7f1d1d; border: 2px solid #000; font-weight: 700; max-width: 90vw; text-align: center; pointer-events: none; }
.aviso.vis { opacity: 1; transform: translate(-50%, 0); }
.aviso.ok { background: #166534; } .aviso.info { background: #1e3a8a; }

/* modal */
.modal-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 10px; animation: aparece .15s; }
.modal { position: relative; background: var(--card); border: 2px solid var(--ouro); border-radius: 14px; padding: 16px; width: min(560px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 0 40px rgba(245,158,11,.25); }
.modal.grande { width: min(760px, 100%); }
.modal h2 { margin: 0 0 8px; padding-right: 30px; }
.modal .fechar { position: absolute; right: 8px; top: 8px; background: #000; border: 1px solid #555; border-radius: 50%; width: 32px; height: 32px; }
@keyframes aparece { from { opacity: 0; } }

/* login */
.login { max-width: 360px; margin: 10vh auto 0; display: flex; flex-direction: column; gap: 12px; }
.login input { padding: 14px; border-radius: 10px; border: 2px solid var(--borda); background: #0f0f18; color: #fff; font-size: 1.05rem; }
.logo-grande, .carga-logo { font-family: 'Arial Black', Impact, sans-serif; font-style: italic; text-align: center; line-height: .9; margin-bottom: 20px; }
.logo-grande b, .carga-logo b { display: block; font-size: 2.6rem; background: linear-gradient(#fff7ae, #f59e0b 55%, #b45309); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(3px 3px 0 #000); letter-spacing: -1px; }
.logo-grande span, .carga-logo span { display: block; font-size: 1.7rem; color: #ef4444; filter: drop-shadow(2px 2px 0 #000); letter-spacing: 6px; }

/* carregamento */
.carga { position: fixed; inset: 0; background: #000; overflow: hidden; }
.carga canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; touch-action: manipulation; }
.carga-logo { position: absolute; left: 3vw; top: 3vh; text-align: left; margin: 0; pointer-events: none; }
.carga-logo b { font-size: clamp(1.4rem, 4vw, 2.6rem); } .carga-logo span { font-size: clamp(.9rem, 2.5vw, 1.6rem); }
.carga-moedas { position: absolute; right: 3vw; top: 3vh; font-weight: 900; font-size: 1.3rem; background: rgba(0,0,0,.5); padding: 6px 12px; border-radius: 20px; border: 1px solid #a16207; pointer-events: none; }
.carga-barras { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); width: min(760px, 88vw); pointer-events: none; }
.carga-txt { display: flex; justify-content: space-between; font-size: .8rem; color: #e5e7eb; text-shadow: 1px 1px 0 #000; margin-top: 4px; }
.carga-barra { height: 10px; background: #111; border: 1px solid #444; border-radius: 6px; overflow: hidden; }
.carga-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1d4ed8, #67e8f9); box-shadow: 0 0 10px #67e8f9; transition: width .3s; }
.carga-barra.b2 i { background: linear-gradient(90deg, #b45309, #fde047); box-shadow: 0 0 10px #fde047; }
.carga-tocar { position: absolute; left: 50%; bottom: 19vh; transform: translateX(-50%); font: italic 900 clamp(1.1rem, 3vw, 1.8rem) 'Arial Black', sans-serif; color: #fff; text-shadow: 0 0 12px #f59e0b, 2px 2px 0 #000; opacity: 0; pointer-events: none; cursor: pointer; white-space: nowrap; }
.carga-tocar.vis { opacity: 1; pointer-events: auto; animation: pisca 1.1s infinite; }
@keyframes pisca { 50% { opacity: .35; } }
.carga-instalar { position: absolute; right: 3vw; bottom: 19vh; background: #166534; border: 2px solid #000; border-radius: 10px; padding: 8px 12px; font-weight: 900; }
.carga-versao { position: absolute; left: 3vw; bottom: 2vh; font-size: .75rem; color: #a1a1aa; pointer-events: none; }

/* início */
.inicio { display: grid; grid-template-columns: 1fr; gap: 10px; }
.vitrine { position: relative; display: flex; justify-content: center; background: radial-gradient(circle at 50% 70%, rgba(245,158,11,.35), transparent 60%); }
.vitrine canvas { width: min(360px, 80vw); height: auto; }
.vitrine-nome { position: absolute; bottom: 6px; font: italic 900 1.1rem 'Arial Black', sans-serif; text-shadow: 2px 2px 0 #000; }
.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.menu button { position: relative; background: linear-gradient(135deg, #24243a, #12121c); border: 2px solid var(--borda); border-radius: 14px; padding: 14px 10px; font: italic 900 1.05rem 'Arial Black', sans-serif; text-align: left; display: flex; flex-direction: column; box-shadow: 0 4px 0 #000; }
.menu button i { font-style: normal; font-size: 1.6rem; }
.menu button small { font: 600 .75rem system-ui, sans-serif; color: var(--peq); margin-top: 2px; }
.menu .m-camp { border-color: #b91c1c; background: linear-gradient(135deg, #5b1010, #1a0808); grid-column: span 2; }
.menu .m-arena { border-color: #1d4ed8; background: linear-gradient(135deg, #172554, #0b0b1a); }
.menu .m-inv { border-color: var(--ouro); background: linear-gradient(135deg, #5a3a06, #1a1206); }
.menu .brilha { border-color: #22c55e; animation: brilho 1.5s infinite; }
.menu .m-sair { opacity: .6; }
.ponto { position: absolute; right: 10px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
@keyframes brilho { 50% { box-shadow: 0 0 18px #22c55e, 0 4px 0 #000; } }
@media (min-width: 760px) { .inicio { grid-template-columns: 1fr 1.3fr; align-items: center; } }

/* campanha */
.caps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.caps button { min-width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--borda); background: #1c1c2b; font-weight: 900; }
.caps .on { border-color: var(--ouro); background: #5a3a06; }
.caps .bloq { opacity: .35; }
.cap-faixa { margin: 8px 0; padding: 18px 14px; border-radius: 12px; border: 2px solid #000; font: italic 900 1.3rem 'Arial Black', sans-serif; text-shadow: 2px 2px 0 #000; display: flex; flex-direction: column; }
.cap-faixa b { font-size: .85rem; color: #fde68a; }
.fases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fase { position: relative; aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--borda); background: #1c1c2b; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 4px 0 #000; }
.fase b { font: italic 900 1.2rem 'Arial Black', sans-serif; }
.fase i { font-style: normal; font-size: .7rem; color: #fca5a5; font-weight: 900; }
.fase .est { color: #fde047; letter-spacing: 1px; }
.fase.chefe { grid-column: span 2; aspect-ratio: auto; border-color: #b91c1c; background: linear-gradient(135deg, #450a0a, #1c1c2b); }
.fase.atual { border-color: var(--ouro); animation: brilhoOuro 1.4s infinite; }
.fase.bloq { opacity: .4; }
@keyframes brilhoOuro { 50% { box-shadow: 0 0 16px var(--ouro), 0 4px 0 #000; } }
.inimigos { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.ini { width: 76px; text-align: center; font-size: .75rem; }
.ini .ret canvas { width: 76px; height: 95px; border-radius: 8px; border: 2px solid #444; }
.ini.chefe .ret canvas { border-color: #ef4444; box-shadow: 0 0 10px #ef4444; }

/* resultado */
.res { text-align: center; }
.res h2 { font: italic 900 2.4rem 'Arial Black', sans-serif; padding: 0; }
.res.v h2 { color: #facc15; text-shadow: 3px 3px 0 #000, 0 0 20px #f59e0b; }
.res.d h2 { color: #9ca3af; text-shadow: 3px 3px 0 #000; }
.res-est { font-size: 3rem; color: #fde047; text-shadow: 2px 2px 0 #000; animation: pulo .5s; }
.res-rec { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.res-rec span { background: #0f0f18; border: 1px solid var(--borda); border-radius: 10px; padding: 8px 12px; font-weight: 900; }
.res-bt { display: flex; flex-direction: column; gap: 8px; }
@keyframes pulo { from { transform: scale(2); opacity: 0; } }

/* time */
.formacao { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
.fil { display: flex; flex-direction: column; gap: 8px; }
.fil h3 { margin: 0; text-align: center; font-size: .95rem; } .fil h3 small { display: block; color: var(--peq); font-weight: 400; font-size: .7rem; }
.slot { background: #1c1c2b; border: 2px dashed var(--borda); border-radius: 12px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; }
.slot .ret canvas { width: 60px; height: 70px; border-radius: 8px; }
.slot small { color: var(--peq); font-size: .7rem; }
.slot .mais { font-size: 2rem; color: var(--peq); }
.seta { writing-mode: vertical-rl; color: var(--peq); font-size: .8rem; }
.lacos { display: flex; flex-direction: column; gap: 6px; }
.laco { background: #141420; border: 1px solid var(--borda); border-radius: 8px; padding: 8px; font-size: .85rem; opacity: .55; }
.laco.on { opacity: 1; border-color: #22c55e; }

/* heróis */
.abas { display: flex; gap: 6px; margin-bottom: 10px; }
.abas button { flex: 1; padding: 10px; background: #1c1c2b; border: 2px solid var(--borda); border-radius: 10px; font-weight: 900; }
.abas .on { border-color: var(--ouro); background: #3a2706; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.carta { position: relative; background: #141420; border: 3px solid var(--rar); border-radius: 12px; padding: 4px 4px 8px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 0 10px color-mix(in srgb, var(--rar) 40%, transparent); }
.carta .ret canvas { width: 100%; height: auto; border-radius: 8px; display: block; }
.carta.nao { filter: grayscale(.9) brightness(.55); }
.carta b { font-size: .9rem; margin-top: 4px; } .carta small { font-size: .72rem; color: var(--peq); }
.rar { display: inline-block; font: italic 900 .75rem 'Arial Black', sans-serif; padding: 2px 6px; border-radius: 6px; background: var(--rar); color: #fff; text-shadow: 1px 1px 0 #000; border: 1px solid #000; }
.carta .rar { position: absolute; left: 6px; top: 6px; }
.est { color: #fde047; }
.det-topo { display: flex; gap: 12px; align-items: flex-start; }
.det-ret canvas { width: 150px; height: auto; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--rar) 50%, transparent), transparent 65%); border-radius: 12px; border: 2px solid var(--rar); }
.det h2 { margin: 6px 0 2px; } .bio { font-size: .85rem; font-style: italic; color: #d4d4d8; }
.stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.stats span { background: #0f0f18; border: 1px solid var(--borda); padding: 6px 10px; border-radius: 8px; font-weight: 800; font-size: .9rem; }
.bloco { background: #10101a; border: 1px solid var(--borda); border-radius: 10px; padding: 10px; margin: 10px 0; }
.bloco h3 { margin: 0 0 6px; font-size: 1rem; }
.bloco.desp { border-color: #fde047; background: linear-gradient(135deg, #2a2205, #10101a); }
.barra-frag { position: relative; height: 22px; background: #000; border-radius: 6px; overflow: hidden; margin: 6px 0; }
.barra-frag i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #c084fc); }
.barra-frag span { position: absolute; inset: 0; text-align: center; font-weight: 900; font-size: .8rem; line-height: 22px; }
.hab { border-left: 3px solid #555; padding: 4px 10px; margin: 8px 0; }
.hab i { font-size: .7rem; color: var(--peq); text-transform: uppercase; }
.hab p { margin: 2px 0; font-size: .85rem; color: #d4d4d8; }
.hab.ult { border-color: #f97316; } .hab.alma { border-color: #a855f7; }
.eq-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eq-slot { text-align: left; background: #181826; border: 2px solid var(--rar, var(--borda)); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; }
.eq-slot.vazio { border-style: dashed; opacity: .7; }
.eq-slot small { color: var(--peq); font-size: .7rem; } .eq-slot span { font-size: .72rem; color: #d4d4d8; }
.eq-atual { border: 2px solid var(--rar); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.lista-esc { display: flex; flex-direction: column; gap: 6px; }
.lista-esc > button { text-align: left; background: #181826; border: 1px solid var(--borda); border-radius: 10px; padding: 10px; }
.lista-esc > button small, .eq-item small { display: block; color: var(--peq); font-size: .75rem; }
.lista-esc .usado { opacity: .6; }
.eq-item, .op { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #181826; border: 1px solid var(--borda); border-radius: 10px; padding: 10px; }
.op small { display: block; color: var(--peq); }
.xadrez { background: repeating-conic-gradient(#2a2a3a 0 25%, #1a1a26 0 50%) 0 0/20px 20px; border-radius: 8px; max-width: 100%; }
.rua { background: linear-gradient(#1e1b4b, #7c2d12 80%); border-radius: 8px; }

/* gacha */
.banner { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #3b0764, #0b0b12); border: 2px solid #a855f7; border-radius: 14px; padding: 12px; flex-wrap: wrap; }
.banner.equip { background: linear-gradient(135deg, #3a2706, #0b0b12); border-color: var(--ouro); }
.banner-arte { display: flex; gap: 4px; flex: 1; min-width: 220px; justify-content: center; }
.banner-arte canvas { width: 31%; max-width: 120px; border-radius: 8px; border: 2px solid #000; }
.banner-arte canvas:first-child { transform: rotate(-4deg); } .banner-arte canvas:last-child { transform: rotate(4deg); }
.baus { font-size: 3rem; }
.banner-info { flex: 1; min-width: 220px; }
.banner-info h2 { margin: 0 0 6px; font: italic 900 1.3rem 'Arial Black', sans-serif; }
.pena { background: #000; border-radius: 8px; padding: 6px 10px; font-size: .85rem; }
.taxas { width: 100%; border-collapse: collapse; } .taxas td { padding: 6px; border-bottom: 1px solid var(--borda); }
.gacha-ov { position: fixed; inset: 0; z-index: 80; background: radial-gradient(circle, #1e1b4b, #000 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.gacha-portal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .4s; }
.gacha-portal.some { opacity: 0; pointer-events: none; }
.gacha-portal .orbe { width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--c) 45%, transparent 70%); animation: orbe 1.8s ease-in forwards; box-shadow: 0 0 80px var(--c); }
.gacha-portal .raio { position: absolute; width: 200vmax; height: 200vmax; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 35%, transparent) 0 6deg, transparent 6deg 18deg); animation: gira 6s linear infinite; opacity: .6; }
@keyframes orbe { 0% { transform: scale(.2); } 70% { transform: scale(1.1); } 85% { transform: scale(.9); } 100% { transform: scale(2.4); opacity: .2; } }
@keyframes gira { to { transform: rotate(360deg); } }
.gacha-ov.ssr { animation: flashOuro .6s; } .gacha-ov.ur { animation: flashArco 1s; }
@keyframes flashOuro { 30% { background: #fde68a; } }
@keyframes flashArco { 20% { background: #fca5a5; } 40% { background: #fde68a; } 60% { background: #a5f3fc; } 80% { background: #e9d5ff; } }
.gacha-ov.treme { animation: treme .4s; }
@keyframes treme { 25% { transform: translate(8px, -6px); } 50% { transform: translate(-8px, 6px); } 75% { transform: translate(6px, 4px); } }
.gacha-cartas { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; padding: 10px; }
.gcarta { width: 128px; height: 200px; perspective: 600px; position: relative; animation: cai .4s backwards; cursor: pointer; }
@keyframes cai { from { transform: translateY(-60vh) rotate(-20deg); opacity: 0; } }
.gcarta > div { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; transition: transform .5s; border: 3px solid #000; }
.gverso { background: linear-gradient(135deg, #7c2d12, #1c1917); display: flex; align-items: center; justify-content: center; font: italic 900 2.4rem 'Arial Black', sans-serif; color: var(--ouro); text-shadow: 2px 2px 0 #000; box-shadow: 0 0 14px var(--rar); }
.gfrente { transform: rotateY(180deg); background: #141420; border-color: var(--rar) !important; display: flex; flex-direction: column; align-items: center; padding: 4px; overflow: hidden; box-shadow: 0 0 22px var(--rar); }
.gfrente canvas { width: 100%; border-radius: 8px; }
.gfrente b { font-size: .85rem; text-align: center; } .gfrente small { font-size: .7rem; color: #fde047; text-align: center; }
.gfrente .rar { position: absolute; left: 6px; top: 6px; background: var(--rar); }
.gfrente .eq-ico { font-size: 3.4rem; margin: 22px 0 10px; }
.gcarta.aberta .gverso { transform: rotateY(180deg); } .gcarta.aberta .gfrente { transform: rotateY(360deg); }
.gcarta.aberta[data-r="SSR"] .gfrente, .gcarta.aberta[data-r="UR"] .gfrente { animation: brilhaCarta 1s infinite; }
@keyframes brilhaCarta { 50% { box-shadow: 0 0 40px var(--rar), 0 0 80px var(--rar); } }
.gacha-dica { position: absolute; bottom: 5vh; color: #fff; font-weight: 900; animation: pisca 1.2s infinite; text-shadow: 2px 2px 0 #000; }

/* arena / ranking */
.arena-topo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.arena-topo div { background: linear-gradient(#172554, #0b0b1a); border: 2px solid #1d4ed8; border-radius: 12px; padding: 10px; }
.arena-topo b { display: block; font: italic 900 1.3rem 'Arial Black', sans-serif; } .arena-topo small { color: var(--peq); }
.rank { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank li { display: flex; align-items: center; gap: 10px; background: #181826; border: 1px solid var(--borda); border-radius: 10px; padding: 10px; cursor: pointer; }
.rank li.eu { border-color: var(--ouro); background: #2a1d05; }
.rank .pos { width: 32px; text-align: center; font-weight: 900; } .rank li span:last-child { margin-left: auto; font-weight: 900; }

/* oficina */
#oH { width: 100%; padding: 10px; border-radius: 10px; background: #181826; color: #fff; border: 2px solid var(--borda); margin: 8px 0; font-size: 1rem; }
.of-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.of-q { background: #141420; border: 2px solid var(--borda); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.of-q.ok { border-color: #22c55e; }
.of-q b { font-size: .8rem; }
.of-mini { height: 110px; display: flex; align-items: center; justify-content: center; }
.of-mini img { max-height: 100%; max-width: 100%; }
.of-prev { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: flex-end; }
.prompt { width: 100%; height: 220px; background: #0f0f18; color: #e5e7eb; border: 1px solid var(--borda); border-radius: 8px; padding: 8px; font-size: .8rem; user-select: text; }
label.btn { display: inline-block; }
.modal label { display: block; margin: 6px 0; } .modal input[type=range] { width: 100%; }

/* batalha */
.luta { position: fixed; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.luta-caixa { position: relative; width: min(100vw, calc(100vh * 16 / 9)); aspect-ratio: 16 / 9; container-type: inline-size; }
.luta-caixa canvas { width: 100%; height: 100%; display: block; }
.luta-hud { position: absolute; inset: 0; pointer-events: none; }
.luta-hud * { pointer-events: auto; }
.luta-topo { position: absolute; top: 1.2cqw; left: 1.5cqw; right: 1.5cqw; display: flex; justify-content: space-between; align-items: center; }
.luta-rodada { font: italic 900 2.2cqw 'Arial Black', sans-serif; text-shadow: 2px 2px 0 #000; background: rgba(0,0,0,.5); padding: .4cqw 1.2cqw; border-radius: 1cqw; pointer-events: none; }
.luta-botoes { display: flex; gap: .8cqw; }
.luta-botoes button { font: italic 900 1.7cqw 'Arial Black', sans-serif; background: rgba(0,0,0,.65); border: .25cqw solid #555; border-radius: 1cqw; padding: .6cqw 1.2cqw; color: #fff; }
.luta-botoes button.on { border-color: #22c55e; color: #86efac; }
.luta-time { position: absolute; bottom: 1cqw; left: 1.5cqw; display: flex; gap: .8cqw; }
.luta-retrato { position: relative; width: 7.2cqw; background: rgba(0,0,0,.6); border: .25cqw solid #444; border-radius: 1cqw; padding: .3cqw; cursor: pointer; }
.luta-retrato canvas.mini { width: 100%; display: block; border-radius: .6cqw; }
.luta-retrato .lb { height: .55cqw; background: #222; margin-top: .25cqw; border-radius: .3cqw; overflow: hidden; }
.luta-retrato .lb i { display: block; height: 100%; transition: width .3s; }
.luta-retrato .hp i { background: #22c55e; } .luta-retrato .fu i { background: #eab308; }
.luta-retrato.cheia { border-color: #f97316; animation: furia .6s infinite alternate; }
.luta-retrato.cheia .fu i { background: #f97316; }
@keyframes furia { to { box-shadow: 0 0 1.5cqw #f97316; } }
.luta-retrato.morto { filter: grayscale(1) brightness(.4); }
.luta-retrato .ult-tag { display: none; position: absolute; top: -1.6cqw; left: 50%; transform: translateX(-50%); font: italic 900 1.3cqw 'Arial Black', sans-serif; color: #fde047; text-shadow: 1px 1px 0 #000; }
.luta-retrato.pedida { border-color: #fde047; transform: translateY(-.6cqw); }
.luta-retrato.pedida .ult-tag { display: block; }
.luta-dica { position: absolute; top: 6cqw; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.8); border: .2cqw solid var(--ouro); border-radius: 1cqw; padding: .7cqw 1.4cqw; font-size: 1.6cqw; font-weight: 700; opacity: 0; transition: .25s; pointer-events: none; max-width: 80%; text-align: center; }
.luta-dica.vis { opacity: 1; }
.luta-girar { display: none; }
@media (orientation: portrait) { .luta-girar { display: block; position: absolute; top: calc(100% + 12px); left: 0; right: 0; text-align: center; color: var(--peq); } }
.res-modal { border-color: #facc15; }
#topo[hidden] { display: none; }
