/* 8 Remédios: A Jornada · interface clara e legível (texto em fonte normal); pixel art só nos personagens, cenários e mapas */
@font-face { font-family: "Nunito"; src: url("fonts/nunito-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-800.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Pixelify"; src: url("fonts/pixelify-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --fundo: #e9edf5; --papel1: #fffdf8; --papel2: #f7f1e4; --borda: #2d3a6e; --borda-int: #d8b866; --sombra: #1c2246;
  --texto: #1f1d2b; --suave: #5b5872; --acento: #a24f0c; --ok: #1f8a46; --perigo: #c23a2c; --sel: #a24f0c;
  --win1: var(--papel1); --win2: var(--papel2);
  --azul1: #2f4a9a; --azul2: #1b2a63;
  --fonte: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --prosa: var(--fonte); --pixel: "Pixelify", var(--fonte);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); }
body { font: 17px/1.5 var(--fonte); -webkit-tap-highlight-color: transparent; overflow-x: hidden;
  background-image: linear-gradient(180deg, #dfe6f3 0, #eef0f6 240px); background-attachment: fixed; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
img.px { image-rendering: pixelated; image-rendering: crisp-edges; display: inline-block; vertical-align: middle; }
img.ic { vertical-align: -0.35em; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
h1, h2, h3 { line-height: 1.2; margin: .55em 0 .35em; font-weight: 800; }
h2 { font-size: 1.35rem; color: var(--borda); }
h3 { font-size: 1.1rem; color: var(--borda); margin-top: 1.2em; }
p { margin: .5em 0; }
a { color: var(--azul1); }
.mini { font-size: .9rem; color: var(--suave); }
.prosa { font-size: 1.04rem; line-height: 1.6; }
.center { text-align: center; }
.tela { padding: 10px 14px 100px; }

/* contextos escuros (sobre arte, topo, diálogo): texto claro */
.escuro, .topo, .abas, .toast, .cena-box, .dialogo, .bt-palco, .bt-topo, .titulo-logo, .mapa-box, .explora-palco, .win.azul {
  --texto: #ffffff; --suave: #d4d6ee; --sel: #ffe27a; --acento: #ffe27a; }

/* ===== janela (cartão claro com moldura de RPG) ===== */
.win { position: relative; background: linear-gradient(180deg, var(--win1), var(--win2)); border: 3px solid var(--borda); border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--borda-int), 0 4px 0 #1c224633; padding: 14px 15px; margin: 14px 0; color: var(--texto); text-align: left; }
.win.fina { padding: 10px 12px; }
.win.azul { --win1: var(--azul1); --win2: var(--azul2); --borda: #f2efff; --borda-int: #6d82d0; box-shadow: 0 0 0 2px var(--sombra), inset 0 0 0 2px var(--borda-int), 0 4px 0 #1c224655; }
.win.dourada { --win1: #fff6dc; --win2: #fbe7b4; --borda: #8a5a14; --borda-int: #e8c070; }
.win.vermelha { --win1: #fff0ec; --win2: #fbd9d2; --borda: #8a2a22; --borda-int: #e8a090; }
.win.roxa { --win1: #f6efff; --win2: #e7dafb; --borda: #4a2a7a; --borda-int: #b89ae8; }
.win.verde { --win1: #effbf1; --win2: #d6f1dc; --borda: #1f5a32; --borda-int: #8ccf9c; }
.win-tit { position: absolute; top: -13px; left: 12px; background: var(--borda); color: #fff; padding: 1px 10px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; border-radius: 4px; }
button.win { width: 100%; display: flex; gap: 12px; align-items: center; }
button.win:active:not(:disabled) { transform: translateY(2px); }
.win small { display: block; color: var(--suave); font-size: .9rem; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(180deg, #ffd66a, #f0a630); color: #3a2206;
  border: 2px solid #8a5a14; border-radius: 8px; padding: 10px 18px; font-weight: 800; text-decoration: none; min-height: 48px; box-shadow: 0 3px 0 #8a5a14; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #8a5a14; }
.btn.sec { background: linear-gradient(180deg, #ffffff, #e6e9f4); color: var(--borda); border-color: var(--borda); box-shadow: 0 3px 0 var(--borda); }
.btn.perigo { background: linear-gradient(180deg, #e05a48, #b23224); color: #fff; border-color: #6a1a12; box-shadow: 0 3px 0 #6a1a12; }
.btn.verde { background: linear-gradient(180deg, #4cc874, #23964a); color: #fff; border-color: #145a2a; box-shadow: 0 3px 0 #145a2a; }
.btn.grande { width: 100%; padding: 13px; font-size: 1.1rem; margin: 8px 0; }
.link { background: none; border: 0; color: var(--azul1); text-decoration: underline; padding: 8px 0; display: block; margin: 0 auto; font-weight: 700; }
.escuro .link, .dialogo .link { color: var(--sel); }
.ic-bt { background: #fff; border: 2px solid var(--borda); width: 44px; height: 44px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--borda); font-weight: 800; }
.linha-bt { display: flex; gap: 10px; margin-top: 12px; } .linha-bt > * { flex: 1; }
.cursor { color: var(--acento); font-weight: 800; }

/* lista de menu */
.menu-lista { display: flex; flex-direction: column; gap: 2px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-radius: 6px; padding: 10px 8px; text-align: left; position: relative; color: var(--texto); min-height: 48px; }
.opt:hover, .opt:focus-visible { background: #2d3a6e12; outline: none; }
.opt:active:not(:disabled) { background: #2d3a6e22; }
.opt small { display: block; color: var(--suave); font-size: .9rem; font-weight: 400; }
.opt > div { flex: 1; min-width: 0; }
.opt .dir { margin-left: auto; color: var(--suave); font-size: .92rem; white-space: nowrap; }
.opt.feito > div { color: var(--suave); }

/* barras */
.pbar { position: relative; height: 12px; background: #2a2540; border: 2px solid #1c2246; border-radius: 6px; overflow: hidden; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; transition: width .35s; border-radius: 4px; }
.pbar i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #ffffff55; }
.pbar.pv i { background: linear-gradient(90deg, #d0302e, #ff8a4a); } .pbar.mana i { background: linear-gradient(90deg, #2a5ad0, #5ad0ff); }
.pbar.esp i { background: linear-gradient(90deg, #ffb020, #d04ad0, #3ad0b0); } .pbar.xp i { background: linear-gradient(90deg, #e8a020, #ffe060); }
.pbar span { position: absolute; inset: 0; font-size: .62rem; line-height: 8px; text-align: center; color: #fff; text-shadow: 1px 1px 0 #000; }

/* ===== topo e abas ===== */
.topo { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(180deg, #33498f, #23336e); color: var(--texto); box-shadow: 0 2px 6px #1c224640; }
.topo .ic-bt { background: #ffffff1c; border-color: #ffffffaa; color: #fff; }
.topo-face { width: 46px; height: 46px; border: 2px solid #fff; border-radius: 8px; overflow: hidden; flex: none; background: #5a74c8; }
.topo-face img { width: 42px; height: 42px; }
.topo-info { flex: 1; min-width: 0; } .topo-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; }
.topo-info .lv { color: var(--sel); font-size: .82rem; font-weight: 700; }
.topo-num { display: flex; flex-direction: column; align-items: flex-end; font-size: .9rem; font-weight: 800; gap: 1px; }
.topo-num span { display: flex; align-items: center; gap: 3px; }
.abas { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: flex; background: #ffffff; border-top: 2px solid #c8cde0; z-index: 6; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 8px #1c22461f; --texto: #1f1d2b; --suave: #6a6880; --sel: #a24f0c; }
.abas button { flex: 1; background: none; border: 0; padding: 7px 0 8px; font-size: .8rem; font-weight: 700; color: var(--suave); display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.abas button img { filter: grayscale(.6) opacity(.75); }
.abas button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; } .abas button:active { background: #eef0f8; }
.abas button.on { color: var(--borda); } .abas button.on img { filter: none; }
.abas button.on::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--borda); }

/* ===== título ===== */
.titulo { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 20px 16px 28px; overflow: hidden; }
.titulo-fundo { position: absolute; inset: 0; }
.titulo-fundo img { width: 100%; height: 100%; object-fit: cover; }
.titulo-logo { position: absolute; top: 9%; left: 0; right: 0; text-align: center; }
.titulo-logo h1 { font-family: var(--pixel); font-weight: 700; font-size: clamp(2.4rem, 13vw, 3.6rem); line-height: 1; color: #fff4c8; margin: 0; letter-spacing: .03em;
  text-shadow: 0 -2px 0 #5a2410, 2px 0 0 #5a2410, -2px 0 0 #5a2410, 0 3px 0 #c8602a, 0 6px 0 #5a2410, 4px 8px 0 #05040c; }
.titulo-logo p { font-size: 1.2rem; font-weight: 800; color: #ffe27a; text-shadow: 2px 2px 0 #05040c; margin: 12px 0 0; letter-spacing: .35em; }
.titulo .win { position: relative; width: 100%; max-width: 380px; }
.titulo .mini { position: relative; text-shadow: 1px 1px 2px #000; color: #f4f2fa; font-weight: 600; }

/* ===== criação ===== */
.criar-prev { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.criar-prev .moldura { border: 3px solid var(--borda); border-radius: 8px; background: linear-gradient(180deg, #8fb0e8, #4d6cb8); }
.campo { display: block; margin: 10px 0; color: var(--borda); font-weight: 700; }
.campo input, .campo select, .campo textarea, .campo-sel, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; border-radius: 6px; border: 2px solid #9aa3c8; background: #fff; color: var(--texto); font: 1.02rem var(--fonte); }
.campo input:focus, textarea:focus, select:focus { outline: 3px solid #ffd66a; border-color: var(--borda); }
.op-linha { display: flex; align-items: center; gap: 10px; margin: 9px 0; } .op-linha > span { width: 62px; flex-shrink: 0; font-size: .9rem; color: var(--suave); font-weight: 700; }
.op-linha > div { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.op { min-width: 38px; height: 38px; border-radius: 6px; border: 2px solid #9aa3c8; background: #fff; font-size: .88rem; font-weight: 700; padding: 0 8px; color: var(--borda); }
.op.on { border-color: var(--borda); box-shadow: 0 0 0 3px #ffd66a; }
.chk { display: flex; gap: 8px; align-items: center; }

/* ===== diálogo / história ===== */
.cena-box { position: relative; border: 3px solid var(--borda); border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 4px 0 #1c224633; }
.cena-box > img.px { width: 100%; height: 100%; object-fit: cover; }
.cena-tit { position: absolute; left: 8px; top: 8px; background: #0e1430d0; border: 1px solid #ffffff88; padding: 2px 9px; font-size: .82rem; font-weight: 700; color: var(--sel); border-radius: 5px; }
.cena-pers { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.dialogo { min-height: 168px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; background: linear-gradient(180deg, #2f4a9a, #1b2a63) !important; border-color: #f2efff !important; box-shadow: 0 0 0 2px var(--sombra), inset 0 0 0 2px #6d82d0, 0 4px 0 #1c224655 !important; color: #fff !important; }
.dialogo .face { flex: none; border: 2px solid #fff; border-radius: 6px; background: linear-gradient(180deg, #8fb0e8, #4d6cb8); }
.dialogo .fala { flex: 1; min-width: 0; }
.dialogo .nome { color: var(--sel); font-weight: 800; margin-bottom: 3px; font-size: 1.02rem; }
.dialogo .txt { font-size: 1.08rem; line-height: 1.6; }
.dialogo .txt.narra { font-style: italic; color: #eef0ff; }
.dialogo .seta { position: absolute; right: 12px; bottom: 6px; color: var(--sel); animation: pulaS .8s steps(2) infinite; }
.dial-ctrl { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--suave); font-weight: 700; }
.dial-ctrl .link { margin: 0; }
.cap-prog { height: 6px; background: #c8cde0; border-radius: 3px; overflow: hidden; margin: 6px 0 2px; } .cap-prog i { display: block; height: 100%; background: var(--borda); }

/* ===== hoje ===== */
.status-hoje { display: flex; gap: 12px; align-items: center; }
.status-hoje .face { border: 2px solid var(--borda); border-radius: 8px; background: linear-gradient(180deg, #8fb0e8, #4d6cb8); }
.status-hoje > div { flex: 1; min-width: 0; }
.verso { font-style: italic; text-align: center; color: #3a3850; font-size: 1rem; }
.verso small { display: block; font-style: normal; font-weight: 800; color: var(--acento); margin-top: 3px; }
.explorar-bt { --win1: #6a3ac8 !important; --win2: #3a1a7a !important; --borda: #f0d0ff; --borda-int: #a87ae8; --texto: #fff; --suave: #e8dcff; color: #fff !important; }
.mis-lista .opt { border-bottom: 1px dashed #2d3a6e2a; border-radius: 0; padding-top: 11px; padding-bottom: 11px; }
.mis-lista .opt:last-child { border-bottom: 0; }
.caixa { width: 26px; height: 26px; border: 2px solid var(--borda); background: #fff; border-radius: 5px; flex: none; display: flex; align-items: center; justify-content: center; }
.chama-linha { display: flex; align-items: center; gap: 10px; }

/* ===== janela modal ===== */
.jan-ov { position: fixed; inset: 0; background: rgba(20, 24, 50, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: aparece .15s; padding: 10px; }
.jan { width: 100%; max-width: 540px; max-height: 90vh; overflow: auto; margin: 0 0 env(safe-area-inset-bottom); animation: sobe .2s; }
@media (min-width: 600px) { .jan-ov { align-items: center; } }
.mis-jan { text-align: center; } .mis-jan .grande-ic { margin: 4px auto 6px; display: block; }
.mis-jan p.prosa { font-size: 1.08rem; }
.ok-txt { color: var(--ok); font-weight: 800; }
#toasts { position: fixed; bottom: calc(80px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 520px; z-index: 60; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.toast { background: #1f2a5c; border: 2px solid #fff; box-shadow: 0 3px 10px #0005; color: #fff; padding: 9px 13px; border-radius: 8px; font-size: .95rem; animation: desce .2s; transition: opacity .4s; display: flex; gap: 8px; align-items: center; }
.toast.sai { opacity: 0; }
.nivel-up { text-align: center; } .nivel-up h2 { font-family: var(--pixel); font-size: 2rem; color: var(--acento); }
.destaque { background: #2d3a6e0d; border: 2px dashed #9aa3c8; border-radius: 6px; padding: 10px; }
.face-fala { display: flex; gap: 12px; align-items: flex-start; } .face-fala .face { flex: none; border: 2px solid var(--borda); border-radius: 8px; background: linear-gradient(180deg, #8fb0e8, #4d6cb8); }
.face-fala b { color: var(--acento) !important; }

/* ===== herói ===== */
.heroi-topo { display: flex; gap: 12px; align-items: flex-end; }
.heroi-topo .face { border: 2px solid var(--borda); border-radius: 8px; background: linear-gradient(180deg, #8fb0e8, #4d6cb8); }
.heroi-topo > div { flex: 1; min-width: 0; }
.attr { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #2d3a6e22; }
.attr:last-child { border-bottom: 0; }
.attr b { font-weight: 800; } .attr .val { font-weight: 800; color: var(--acento); }
.attr small { grid-column: 2 / 4; color: var(--suave); font-size: .86rem; }
.attr .pbar { grid-column: 2 / 4; height: 10px; }
.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .96rem; }
.numeros span { display: flex; justify-content: space-between; align-items: center; gap: 6px; } .numeros b { color: var(--acento); }
.frags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.frags span { display: flex; align-items: center; gap: 4px; justify-content: center; background: #fff; border: 1px solid #9aa3c8; border-radius: 6px; padding: 4px; font-weight: 700; }

/* ===== mapa-múndi ===== */
.mapa-box { position: relative; border: 3px solid var(--borda); border-radius: 8px; overflow: hidden; line-height: 0; box-shadow: 0 4px 0 #1c224633; }
.mapa-box > img.px { width: 100%; height: auto; }
.hot { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; width: 15%; aspect-ratio: 1; }
.hot span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; font-size: .74rem; font-weight: 700; line-height: 1.15; background: #0e1430d8; border: 1px solid #fff; padding: 2px 6px; border-radius: 4px; color: #fff; }
.hot.cima span { top: auto; bottom: 92%; }
.hot.atual span { color: var(--sel); border-color: var(--sel); }
.hot.atual::after { content: "▼"; position: absolute; left: 50%; top: -6px; transform: translateX(-50%); color: var(--sel); font-size: .9rem; line-height: 1; animation: pula .8s steps(2) infinite; text-shadow: 1px 1px 0 #000; }

/* ===== exploração (andar pelo mapa) ===== */
.explora { position: fixed; inset: 0; z-index: 20; background: #0b0f22; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.explora-topo { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(180deg, #33498f, #23336e); color: #fff; --sel: #ffe27a; }
.explora-topo b { flex: 1; font-size: 1.02rem; } .explora-topo small { display: block; font-weight: 600; color: #d4d6ee; font-size: .82rem; }
.explora-topo .ic-bt { background: #ffffff1c; border-color: #ffffffaa; color: #fff; }
.explora-palco { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #0b0f22; }
.explora-palco canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.explora-placa { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: #0e1430e0; color: #fff; border: 2px solid #fff; border-radius: 8px; padding: 6px 14px; font-weight: 800; font-size: .95rem; pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.explora-dica { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #ffffffee; color: #1f1d2b; border: 2px solid var(--borda); border-radius: 8px; padding: 8px 12px; font-size: .95rem; font-weight: 700; pointer-events: none; display: none; }
.explora-dica.on { display: block; }
.explora-ctrl { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #23336e, #141d4a); }
.dpad { position: relative; width: 150px; height: 150px; flex: none; }
.dpad button { position: absolute; width: 52px; height: 52px; border-radius: 10px; border: 2px solid #ffffffaa; background: #ffffff22; color: #fff; font-size: 1.3rem; padding: 0; touch-action: none; }
.dpad button.on { background: #ffffff66; }
.dpad .c { left: 49px; top: 49px; width: 52px; height: 52px; border-radius: 50%; background: #ffffff10; pointer-events: none; }
.dpad .u { left: 49px; top: 0; } .dpad .d { left: 49px; bottom: 0; } .dpad .l { left: 0; top: 49px; } .dpad .r { right: 0; top: 49px; }
.bt-a { width: 86px; height: 86px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 35% 30%, #ffd66a, #e89a20); color: #3a2206; font-weight: 900; font-size: 1.05rem; box-shadow: 0 4px 0 #8a5a14; touch-action: none; }
.bt-a:active, .bt-a.on { transform: translateY(3px); box-shadow: 0 1px 0 #8a5a14; }
.bt-a { flex: none; aspect-ratio: 1; }
.explora .jan-ov { position: absolute; }

/* ===== loja, forja, conquistas ===== */
.it-linha { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed #2d3a6e22; }
.it-linha:last-child { border-bottom: 0; } .it-linha > div { flex: 1; min-width: 0; } .it-linha small { display: block; color: var(--suave); font-size: .88rem; }
.it-linha .btn { min-height: 40px; padding: 6px 12px; font-size: .95rem; }
.tag { font-size: .78rem; font-weight: 700; border: 1px solid var(--acento); color: var(--acento); padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.req { color: var(--suave); }
.conq-off { opacity: .45; }

/* ===== ajuda e textos ===== */
.ajuda-lig { background: linear-gradient(180deg, #4cc874, #23964a) !important; color: #fff !important; border-color: #145a2a !important; }
blockquote { margin: 14px 0; padding: 12px 14px; background: #fff; border-left: 4px solid var(--borda); font-style: italic; border-radius: 0 6px 6px 0; }
blockquote small { display: block; font-style: normal; margin-top: 6px; color: var(--acento); font-weight: 800; }
.diario-it p { white-space: pre-wrap; }

/* ===== batalha ===== */
.batalha { padding: 0 0 14px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.bt-topo { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; gap: 8px; background: linear-gradient(180deg, #33498f, #23336e); color: #fff; }
.bt-topo .ic { background: #ffffff1c; border: 2px solid #ffffffaa; border-radius: 8px; width: 40px; height: 40px; color: #fff; }
.bt-topo span { color: var(--suave); font-size: .9rem; font-weight: 700; }
.bt-palco { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.bt-palco > img.px { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bt-inis { position: absolute; left: 0; right: 0; bottom: 10%; display: flex; justify-content: center; align-items: flex-end; gap: 2%; padding: 0 4px; }
.ini { background: none; border: 0; padding: 0; position: relative; display: flex; flex-direction: column; align-items: center; max-width: 34%; color: #fff; }
.ini img.px { height: auto; max-width: 100%; }
.ini.alvo::before { content: "▼"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--sel); text-shadow: 1px 1px 0 #000; animation: pula .8s steps(2) infinite; }
.ini.chefe { max-width: 78%; } .ini.morto { visibility: hidden; width: 0; }
.ini-nome { font-size: .78rem; font-weight: 800; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; line-height: 1.1; margin-top: 2px; white-space: normal; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.ini .pbar { width: 64px; height: 9px; margin-top: 2px; } .ini.chefe .pbar { width: 150px; }
.int { position: absolute; top: -6px; right: -6px; background: #0e1430; border: 2px solid #fff; border-radius: 6px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; z-index: 2; animation: pulaS 1.4s steps(2) infinite; }
.ini-arte { position: relative; }
.batalha > .win { margin: 8px 10px 0; padding: 9px 12px; }
.bt-msg { padding: 8px 12px !important; }
.party { display: flex; gap: 10px; align-items: center; position: relative; }
.face-bt { flex: none; position: relative; display: flex; flex-direction: column; align-items: center; }
.face-bt img.px { border: 2px solid var(--borda); border-radius: 6px; background: linear-gradient(180deg, #8fb0e8, #4d6cb8); }
.face-bt.aliado small { font-size: .75rem; font-weight: 800; color: var(--acento); }
.party .pnome { grid-column: 1 / 4; font-size: 1rem; } .party .pnome small { display: inline; color: var(--acento); margin-left: 6px; font-weight: 800; }
.party .barras { flex: 1; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 8px; align-items: center; font-size: .85rem; }
.party .barras .num { font-size: .85rem; font-weight: 700; color: var(--suave); text-align: right; min-width: 56px; }
.bt-efs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .ef { font-size: .78rem; font-weight: 700; border: 1px solid #9aa3c8; border-radius: 4px; padding: 1px 7px; background: #fff; }
.ef.ruim { border-color: #c8506a; color: #a8203a; background: #fff0f2; }
.bt-log { font-size: .98rem; min-height: 72px; }
.bt-log p { margin: 2px 0; color: #d4d6ee; } .bt-log p:last-of-type:not(.dica-int) { color: #fff; font-weight: 700; } .dica-int { color: var(--sel) !important; font-weight: 700; }
.bt-cmd { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.bt-cmd .opt { padding: 10px 8px; font-weight: 800; }
.bt-cmd .opt.esp:not(:disabled) { color: #a24f0c; animation: brilho 1s steps(2) infinite; }
.bt-cmd .opt.ent { color: #8a3a08; }
.bt-sub { max-height: 50vh; overflow-y: auto; } .bt-sub .win-tit { position: static; display: inline-block; margin: 0 0 6px; }
.bt-sub .opt small, .bt-cmd .opt small { font-weight: 400; }
.num-dano { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-family: var(--pixel); font-weight: 700; font-size: 1.5rem; color: #fff; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; pointer-events: none; animation: numSobe .9s forwards; z-index: 3; }
.num-dano.n-grande { font-size: 2rem; color: #ffe27a; } .num-dano.n-heroi { color: #ff6a5a; top: 0; }
.corte { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, transparent 44%, #ffffffee 48%, #fff 50%, #ffffffee 52%, transparent 56%); animation: corte .25s steps(3) forwards; }
.treme { animation: treme .3s steps(4); }
.flash-dano { animation: flashV .3s steps(2); }
.fim-bat { position: relative; overflow: hidden; text-align: center; padding-top: 24px; }
.fim-fundo { position: absolute; inset: 0 0 auto 0; width: 100%; height: auto; opacity: .8; }
.fim-bat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0, var(--fundo) 58%); z-index: 0; }
.fim-conteudo { position: relative; z-index: 1; padding: 0 14px; }
.fim-arte { margin: 8px auto 0; }
.fim-bat h2 { font-family: var(--pixel); font-size: 2.3rem; letter-spacing: .05em; margin: 6px 0; color: #ffe27a; text-shadow: 0 3px 0 #a8482a, 3px 6px 0 #1c2246; }
.fim-bat.der h2 { color: #fff; text-shadow: 0 3px 0 #3a3a6a, 3px 6px 0 #1c2246; }
.dica-real { text-align: left; margin-top: 14px; }
.premios { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; } .premios span { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--acento); background: #fff; border: 2px solid var(--borda); border-radius: 8px; padding: 4px 10px; }
.respira-bt { width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--borda); background: radial-gradient(circle, #8ae8d8, #1a8a7a); color: #fff; font-weight: 800; font-size: 1.05rem; touch-action: none; user-select: none; -webkit-user-select: none; transform: scale(.7); transition: transform 4s ease-in-out; margin: 8px auto; display: block; }
.respira-bt.segura { transform: scale(1); } .respira-bt.cheio { box-shadow: 0 0 0 10px #2bb3a355; }
.verso-ov { position: fixed; inset: 0; background: rgba(20, 24, 50, .6); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 18px; animation: aparece .3s; }
.verso-ov .win { max-width: 420px; text-align: center; } .verso-ov p { font-size: 1.15rem; font-style: italic; }

@keyframes aparece { from { opacity: 0; } } @keyframes sobe { from { transform: translateY(24px); } } @keyframes desce { from { transform: translateY(10px); opacity: 0; } }
@keyframes pisca { 50% { opacity: 0; } } @keyframes pula { 50% { transform: translate(-50%, -3px); } } @keyframes pulaS { 50% { transform: translateY(-3px); } }
@keyframes brilho { 50% { opacity: .55; } }
@keyframes treme { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes flashV { 50% { filter: brightness(2.2) sepia(1) hue-rotate(-40deg); } }
@keyframes numSobe { to { transform: translate(-50%, -40px); opacity: 0; } }
@keyframes corte { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 0; clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body:has(.explora) #toasts { top: calc(64px + env(safe-area-inset-top)); bottom: auto; }
.fila-bt { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; } .fila-bt .btn { flex: 1; min-width: 90px; }
/* visita de avaliação (secreta) */
.win.visita { background: #fff2d0; border-color: #c8901e; } .win.visita b { color: #7a4a00; }
.fila-bt .btn.sec.on { border-color: var(--borda); box-shadow: 0 0 0 3px #ffd66a; }
/* poderes dos chefes */
.it-linha.bloq { opacity: .6; }
.pbar.poder { margin-top: 4px; height: 8px; } .pbar.poder i { background: linear-gradient(90deg, #8a5ad6, #d6a23a); }
.opt.poder { border-color: #b88a2a; background: #fff6dc; }
.win.poder-novo { border-color: #b88a2a; background: #fff6dc; }
/* forja em níveis */
.nv-eq { font-size: .72rem; padding: 1px 6px; border-radius: 6px; vertical-align: middle; font-weight: 800; }
.nv-eq.nv1 { background: #e4e4ec; color: #4a4a6a; } .nv-eq.nv2 { background: #d6ecff; color: #1a4a8a; } .nv-eq.nv3 { background: #ffe8a8; color: #7a4a00; }
.forja-bts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ini-nome small.tampa { color: #b8860b; font-weight: 800; }

/* v5.3: telas estreitas */
.bt-inis.muitos .ini-nome { white-space: normal; text-align: center; font-size: .7rem; max-width: 100%; }
.bt-inis.muitos .ini .pbar { width: 56px; }
@media (max-width: 380px) {
  .heroi-topo { flex-wrap: wrap; }
  .heroi-topo > div { flex-basis: 100%; }
}

/* v5.4: avisos aparecem no alto, sem cobrir a lista nem a barra de baixo */
#toasts { top: calc(64px + env(safe-area-inset-top)); bottom: auto; }
.ini-nome small.novo { color: #8ae0ff; font-weight: 800; }
a.opt { text-decoration: none; color: var(--texto); }

/* aviso de modo de teste ligado (7.2) */
.aviso-teste { display: block; width: calc(100% - 16px); margin: 6px 8px 0; padding: 8px 12px; border: 2px solid #c8302a; border-radius: 8px; background: #fff3e0; color: #7a1a12; font: 700 16px/1.3 Nunito, sans-serif; text-align: left; cursor: pointer; }

/* recado do céu (7.4) */
.recado-ceu { text-align: center; }
.recado-ceu h2 { margin: 2px 0 8px; }
.recado-ceu small { font-size: 16px; color: var(--acento); font-weight: 700; }
.recado-ceu .prosa { text-align: left; }
.ceu-topo { position: relative; height: 64px; margin: -4px -4px 10px; border-radius: 8px; background: linear-gradient(#7ec4f0, #cfeafb); overflow: hidden; }
.ceu-sol { position: absolute; right: 22px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: #ffd75a; box-shadow: 0 0 0 6px rgba(255, 215, 90, .35); }
.nuvem { position: absolute; height: 18px; border-radius: 12px; background: #fff; }
.nuvem::before { content: ""; position: absolute; left: 10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.nuvem.n1 { left: 18px; top: 26px; width: 62px; }
.nuvem.n2 { left: 110px; top: 14px; width: 48px; opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .nuvem.n1 { animation: nuvem 6s ease-in-out infinite alternate; } }
@keyframes nuvem { to { transform: translateX(14px); } }
/* Fogueira, Sua casa e Salão da Guilda */
.qr-box { display: flex; justify-content: center; margin: 8px 0 4px; }
.qr-box canvas { width: min(240px, 70vw); height: auto; image-rendering: pixelated; border-radius: 6px; border: 3px solid var(--borda); }
.codigo-curto { font-size: 1.5rem; font-weight: 900; letter-spacing: .06em; color: var(--borda); margin: 6px 0 2px; word-break: break-all; }
.casa-cena { display: flex; justify-content: center; margin-bottom: 12px; }
.casa-cena img { width: 100%; max-width: 384px; height: auto; border: 3px solid var(--borda); border-radius: 8px; }
.casa-quadro { position: relative; width: 100%; max-width: 384px; line-height: 0; }
.casa-quadro img { display: block; image-rendering: pixelated; }
.casa-luz { position: absolute; left: 3px; top: 3px; width: calc(100% - 6px); height: calc(100% - 6px); image-rendering: pixelated; pointer-events: none; border-radius: 5px; }
.guilda-topo { border-top: 6px solid var(--gcor); }
.guilda-local { padding: 8px 0; border-bottom: 1px dashed var(--borda-int); }
.guilda-local:last-child { border-bottom: 0; }
.guilda-local small { margin-top: 2px; }
.guilda-links { flex-wrap: wrap; } .guilda-links > * { flex: 1 1 40%; white-space: nowrap; }
/* prêmios de nível */
.titulo-heroi { margin: -4px 0 4px; font-weight: 800; color: var(--acento); }
.escudo-cores { flex-wrap: wrap; } .escudo-cores > * { flex: 1 1 40%; }
.escudo-cores .btn.on { box-shadow: 0 0 0 3px #ffd66a; }
.bolinha { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #1c2246; }
/* 10.2: todo texto da interface com 16px ou mais (regra do projeto) */
.mini, small, .win small, .win-tit, .abas button, .lv, .topo-num span, .toast, .toast b, .verso small, .nv-eq, .hot span, .dir, .cena-tit, .tag, .req,
.explora-placa, .explora-placa small, .bt-topo span, .ini-nome, .ini-nome small, .pnome small, .num, .bt-log p, .numeros span, .numeros b, .btn, .attr small, .mini a,
.topo-info .lv, .opt .dir, .it-linha .btn, .forja-bts .btn, .party .barras .num, .explora-topo small, .it-linha small { font-size: 16px; }
.abas button { letter-spacing: -.01em; }
/* 10.3: título das caixas (ex.: MISSÕES DE HOJE) com 16px ficava por cima da primeira linha: agora fica centrado na borda e a caixa ganha espaço em cima */
.win-tit { line-height: 22px; padding: 2px 10px; }
/* o título fica no fluxo: se quebrar em duas linhas (ex.: "· DIA VIVIDO" em tela estreita), empurra o conteúdo em vez de cobrir */
.win > .win-tit { position: relative; display: table; top: auto; left: auto; max-width: calc(100% + 12px); margin: -36px 0 10px -3px; letter-spacing: .02em; }
.win:has(> .win-tit) { padding-top: 22px; margin-top: 22px; }
.bt-sub .win-tit { line-height: 1.3; } .win.bt-sub > .win-tit { margin: 0 0 6px; }
/* 10.3.1: nome e logo da igreja na tela inicial e no Sobre (versão da igreja) */
.ig-titulo { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px 8px 8px; border-radius: 12px; background: #0d1430cc; border: 2px solid #ffffff40; text-align: left; }
.ig-titulo img, .ig-sobre img { border-radius: 10px; background: #fff; object-fit: contain; flex: 0 0 auto; }
.ig-titulo small { display: block; font-size: 16px; color: #dfe6ff; font-weight: 600; text-shadow: none; }
.ig-titulo b { display: block; font-size: 1.1rem; color: #fff4c8; line-height: 1.2; }
.ig-sobre { display: flex; gap: 14px; align-items: flex-start; }
.ig-sobre small { display: block; color: var(--suave); }
.ig-sobre b { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.ig-sobre .link { margin: 4px 0 0; }
/* 10.3.4: aviso de nova versão no topo de todas as telas */
#avisoVersao { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; background: #1c2246; color: #fff4c8; font-size: 16px; font-weight: 700; box-shadow: 0 3px 0 #0006; text-align: center; }
#avisoVersao button { font: inherit; font-weight: 800; font-size: 16px; min-height: 40px; padding: 6px 16px; border-radius: 8px; border: 2px solid #7a4a00; background: #f2b33d; color: #2a1a00; cursor: pointer; }
body.com-aviso-versao { padding-top: var(--av, 0px); }
body.com-aviso-versao .topo { top: var(--av, 0px); }
body.com-aviso-versao .explora, body.com-aviso-versao .jan-ov, body.com-aviso-versao .verso-ov { top: var(--av, 0px); }

/* Cartas da Bíblia (cartas.js) */
.cartas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.carta { position: relative; border: 3px solid #8a5a14; border-radius: 10px; background: linear-gradient(180deg, #fff6dc, #fbe7b4); box-shadow: inset 0 0 0 2px #e8c070;
  padding: 10px 4px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 120px; font: inherit; color: #1f1d2b; cursor: pointer; }
.carta b { font-size: .92rem; line-height: 1.15; }
.carta small { font-size: .78rem; color: #5b5872; line-height: 1.15; }
.carta-em { font-size: 2rem; line-height: 1.2; }
.carta.trancada { background: #e3e6ef; border-color: #9aa0b8; box-shadow: none; cursor: default; justify-content: center; }
.carta.trancada .carta-em { color: #8a90a8; font-weight: 900; }
.carta-nova { position: absolute; top: -9px; right: -6px; background: #c23a2c; color: #fff; font-style: normal; font-size: .68rem; font-weight: 900; padding: 1px 6px; border-radius: 6px; }
.carta-grande { text-align: center; }
.carta-grande .carta-em { font-size: 3rem; }
.carta-grande h2 { margin: 2px 0 0; }
.carta-aviso { display: flex; align-items: center; gap: 12px; width: 100%; }
.carta-aviso small { display: block; }
.carta-mini { font-size: 2rem; }
/* 10.6: bolsa de achados */
.aj-bolsa { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.aj-item { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.aj-item img { image-rendering: pixelated; flex: none; }
/* ===== 10.6.3: tela de luta sem rolar ===== */
/* a tela inteira cabe no celular: inimigos em cima (ocupam o espaço que sobra), quadro de texto fixo e botões embaixo */
.batalha { height: 100vh; height: calc(100dvh - var(--av, 0px)); min-height: 0; padding: 0; overflow: hidden; }
.batalha .bt-topo { flex: none; padding: 4px 10px; }
.batalha .bt-topo .ic { width: 36px; height: 36px; }
.batalha .bt-palco { flex: 1 1 auto; min-height: 120px; aspect-ratio: auto; }
.batalha .bt-inis { top: 34px; bottom: 6px; align-items: stretch; }
.batalha .ini { justify-content: flex-end; min-height: 0; }
.batalha .ini-arte { flex: 1 1 0; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.batalha .ini-arte img.px { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: center bottom; }
.batalha .ini .int { flex: none; }
.batalha .ini-nome { flex: none; }
.batalha .ini .pbar { flex: none; }
.bt-int { position: absolute; left: 8px; right: 8px; top: 6px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px;
  background: #0b0f22cc; color: var(--sel); font-weight: 800; font-size: 16px; line-height: 1.25; }
.bt-int span { white-space: normal; overflow-wrap: anywhere; } /* 10.7.1: o aviso quebra em mais linhas e aparece inteiro */
.bt-int img, .bt-int svg { flex: none; width: 18px; height: 18px; }
.batalha > .win { flex: none; margin: 6px 8px 0; padding: 6px 10px; }
.batalha > .bt-msg { display: block; width: calc(100% - 16px); text-align: left; position: relative; cursor: pointer; font: inherit; padding: 6px 10px 6px !important;
  min-height: calc(3 * 1.3em + 14px); flex: none; } /* 10.7.1: o quadro cresce para o texto inteiro caber; a arena encolhe */
.batalha .bt-log { min-height: 0; font-size: 16px; line-height: 1.3; max-height: max(calc(3 * 1.3em), min(calc(6 * 1.3em), 17dvh)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.batalha .bt-log::-webkit-scrollbar { display: none; }
.batalha .bt-log.mais { -webkit-mask-image: linear-gradient(#000 calc(100% - 1.3em), #0003); mask-image: linear-gradient(#000 calc(100% - 1.3em), #0003); }
.batalha .bt-log p { margin: 0; color: #fff; font-weight: 700; }
.batalha .bt-log p + p { color: #d4d6ee; font-weight: 600; }
.batalha > .bt-msg { padding-right: 38px !important; }
.bt-mais { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: #ffffff1f; border: 1px solid #ffffff55; }
.batalha .bt-party { padding: 5px 10px; }
.batalha .party { gap: 8px; }
.batalha .face-bt img.px { width: 44px; height: auto; }
.batalha .face-bt.aliado img.px { width: 36px; }
.batalha .party .barras { gap: 2px 6px; }
.batalha .party .pnome { font-size: 16px; line-height: 1.2; }
.batalha .party .barras .pbar { height: 10px; }
.batalha .party .barras .num { min-width: 0; line-height: 1.1; }
.batalha .bt-efs { flex-wrap: nowrap; overflow-x: auto; margin-top: 4px; scrollbar-width: none; }
.batalha .bt-efs .ef { flex: none; }
.batalha > .bt-cmd { margin-bottom: max(8px, env(safe-area-inset-bottom)); gap: 6px; padding: 6px; }
.batalha .bt-cmd .opt { padding: 7px 8px; min-height: 44px; margin: 0; }
.batalha > .bt-sub { max-height: 46vh; max-height: 46dvh; margin-bottom: max(8px, env(safe-area-inset-bottom)); }
.bt-hist { max-height: 60vh; max-height: 60dvh; overflow-y: auto; margin-bottom: 10px; }
.bt-hist-t { padding: 6px 0; border-bottom: 1px solid #0001; } .bt-hist-t b { color: var(--acento); }
.bt-hist-t p { margin: 2px 0; font-size: 16px; line-height: 1.35; }
@media (min-height: 760px) { .batalha .face-bt img.px { width: 56px; } .batalha .bt-cmd .opt { padding: 10px 8px; } }
.batalha .bt-cmd .opt { gap: 8px; white-space: nowrap; align-items: center; }
.batalha .bt-cmd .opt > div { overflow: hidden; text-overflow: ellipsis; }
.batalha > .bt-cmd { grid-auto-rows: auto; align-content: start; }
@media (max-height: 700px) {
  .batalha .face-bt img.px { width: 40px; }
}
/* 10.6.3: o quadro mostra no máximo 3 linhas; o resto fica no histórico (toque no quadro) */
.batalha .bt-log p.bt-res { font-weight: 600; color: #d4d6ee; }
.batalha .bt-log p.bt-res span:first-child { color: #fff; font-weight: 700; }
/* 10.6.3: o ícone do que o inimigo vai fazer fica junto do nome dele */
.batalha .ini-nome .int { position: relative; top: auto; right: auto; display: inline-flex; vertical-align: middle; width: 24px; height: 24px; margin-right: 4px; border-width: 1px; animation: none; }
.batalha .ini-nome .int img, .batalha .ini-nome .int svg { width: 16px; height: 16px; }
.batalha .ini-arte img.px { height: 100%; }
@media (max-width: 360px) { .batalha .bt-cmd .opt { padding: 7px 4px; gap: 5px; } .batalha > .bt-cmd { padding-left: 6px; padding-right: 6px; } }
/* 10.6.3: nos painéis de Habilidade e Mochila, o Voltar fica sempre visível embaixo */
.batalha > .bt-sub { flex: 1 1 auto; min-height: 0; }
.batalha > .bt-sub .opt.voltar { position: sticky; bottom: -6px; background: var(--papel2); box-shadow: 0 -6px 8px -4px #0003; z-index: 1; }
@media (max-height: 620px) { .batalha .bt-log { max-height: calc(3 * 1.3em); } }
/* 10.8: o grupo */
.grupo-linha { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.grupo-linha .gl-p { display: inline-flex; align-items: center; gap: 6px; }
.grupo-linha .gl-p b { font-size: 16px; }
.grupo-linha { position: relative; padding-right: 36px; }
.grupo-linha .cursor { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); margin: 0; }
.grupo-card.on { border-color: var(--acento); }
.grupo-topo { display: flex; gap: 10px; align-items: center; }
.grupo-topo small { display: block; font-size: 16px; color: var(--suave); }
.grupo-faces { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.ex-fala { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 6; display: flex; gap: 8px; align-items: center; text-align: left;
  background: #0b0f22ee; color: #fff; border: 2px solid #ffffff66; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 16px; line-height: 1.3; transition: opacity .5s; cursor: pointer; }
.ex-fala.some { opacity: 0; }
.ex-fala img { flex: none; }
.ex-fala b { color: #ffe27a; }

/* 10.13: estouro de golpe em pixel art */
.estouro { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.4); pointer-events: none; animation: estouro .42s steps(5) forwards; z-index: 3; }
.estouro img { display: block; image-rendering: pixelated; }
@keyframes estouro { 0% { transform: translate(-50%, -50%) scale(.4) rotate(0); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(1.1) rotate(12deg); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.25) rotate(18deg); opacity: 0; } }
.batalha .ini-arte .estouro img.px, .face-bt .estouro img.px { height: auto; width: auto; max-width: none; }
.face-bt .estouro img.px { border: 0; background: none; }
/* 10.20.1: o Excesso ou chefe nunca some de vista: a arena guarda pelo menos um terço da tela, mesmo com Habilidade ou Mochila abertas (o painel rola por dentro) */
.batalha .bt-palco { min-height: max(170px, 33vh); min-height: max(170px, 33dvh); }
.batalha > .bt-sub { overflow-y: auto; }
