/* Shared battle HUD; only presentation inside the arena overlay. */
body .battle-top,body.in-battle .battle-top{position:absolute;top:12px;left:14px;right:14px;display:grid;grid-template-columns:minmax(0,1fr) 80px minmax(0,1fr);gap:14px;align-items:start;pointer-events:none;z-index:5}
body .battle-top>.battle-fighter,body.in-battle .battle-top>.battle-fighter{display:flex;gap:10px;width:100%;max-width:410px;min-width:0;padding:9px;background:linear-gradient(115deg,#152d38f5,#101e2ce8);border:1px solid #6b85908c;border-top:3px solid var(--fighter-color);border-radius:5px;box-shadow:0 3px 0 #080f19a6,0 8px 20px #08121c33;color:#fff9e8}
body .battle-top>.enemy{justify-self:end;flex-direction:row-reverse;background:linear-gradient(245deg,#152d38f5,#101e2ce8)}
.battle-portrait{flex:0 0 78px;height:80px;align-self:start;display:grid;place-items:center;border:2px solid var(--fighter-color);border-radius:3px;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#74858766,#142936 75%);box-shadow:inset 0 0 0 2px #0b1625}
.battle-portrait canvas{display:block;width:100%;height:100%;image-rendering:pixelated}
.battle-info{min-width:0;flex:1}.battle-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.battle-top .battle-name{font:italic 950 clamp(15px,2vw,26px)/1.05 'Arial Black','Segoe UI',sans-serif;letter-spacing:-.5px;text-transform:uppercase;text-shadow:2px 2px #071019,-1px -1px #071019;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.battle-level{font:8px monospace;color:#b6c8d1;white-space:nowrap}
.battle-types{display:flex;gap:4px;margin:5px 0}.battle-types span{font:900 8px/1 monospace;color:#11202b;background:var(--badge);padding:3px 5px;border-radius:2px;box-shadow:0 1px #0008}
.battle-health{height:22px;background:#07131e;border:2px solid #08131e;border-radius:3px;overflow:hidden;position:relative;box-shadow:0 0 0 1px #6e87935c}.battle-health i{display:block;height:100%;transition:width .12s linear;box-shadow:inset 0 3px #ffffff32,inset 0 -3px #0002}.battle-health>span{position:absolute;inset:0;display:flex;align-items:center;padding:0 6px;font:900 12px/1 monospace;color:#fffbe5;text-shadow:1px 1px #10202a,-1px -1px #10202a,1px -1px #10202a,-1px 1px #10202a}
.battle-roster{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:5px}.battle-trainer{display:flex;align-items:center;gap:5px}.battle-trainer svg{width:24px;height:24px;background:#5266785c;border:1px solid #7c93995e;border-radius:2px}.battle-trainer b{font:italic 900 10px 'Segoe UI',sans-serif;color:#e9d98e;white-space:nowrap}.battle-balls{display:flex;align-items:center;gap:5px}.battle-ball{position:relative;display:block;width:14px;height:14px;border:2px solid #081421;border-radius:50%;background:linear-gradient(#df766b 0 40%,#182735 40% 59%,#e3e7de 59%);box-shadow:0 0 0 1px #8b9ba155}.battle-ball:after{content:'';position:absolute;left:3px;top:3px;width:4px;height:4px;border:1px solid #112332;border-radius:50%;background:#fff9dc}.battle-ball.active{outline:2px solid #e5d58a;outline-offset:2px}.battle-ball.fainted{filter:grayscale(1);opacity:.28}.battle-status{display:block;font:8px monospace;color:#b0c5ce;margin-top:3px;line-height:1.2}
.enemy .battle-heading,.enemy .battle-roster,.enemy .battle-trainer{flex-direction:row-reverse}.enemy .battle-types,.enemy .battle-balls{flex-direction:row-reverse}.enemy .battle-info{text-align:right}.enemy .battle-health>span{justify-content:flex-end}.enemy .battle-health i{margin-left:auto}
body .battle-top>.match-clock,body.in-battle .battle-top>.match-clock{grid-column:2;grid-row:1;min-width:0;max-width:none;width:80px;height:auto;padding:7px 4px;background:#0a1828eb;border:1px solid #80989785;border-radius:4px;text-align:center;box-shadow:0 3px #07121d80}body .battle-top>.match-clock>span,body.in-battle .battle-top>.match-clock>span{font:900 20px/1 monospace;color:#fff9de;letter-spacing:-1px;text-shadow:2px 2px #000}
.battle-top>#enemy-hud{grid-column:3;grid-row:1}.battle-top>#player-hud{grid-column:1;grid-row:1}
#preview-badge{position:absolute;top:135px;left:50%;transform:translateX(-50%);pointer-events:none;font:9px monospace;color:#b4ef84;background:#10232de8;padding:4px 7px;border-radius:2px}
@media(max-width:900px){body .battle-top,body.in-battle .battle-top{left:8px;right:8px;top:8px;gap:8px;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)}body .battle-top>.match-clock,body.in-battle .battle-top>.match-clock{width:64px}.battle-portrait{flex-basis:58px;height:62px}body .battle-top>.battle-fighter,body.in-battle .battle-top>.battle-fighter{padding:6px;gap:7px}.battle-level{display:none}.battle-top .battle-name{font-size:19px}.battle-health{height:20px}.battle-trainer svg{width:20px;height:20px}.battle-balls{gap:4px}.battle-ball{width:12px;height:12px}.battle-ball:after{left:2px;top:2px}.battle-trainer b{font-size:8px}}
@media(max-width:520px){body .battle-top,body.in-battle .battle-top{left:4px;right:4px;top:4px;gap:5px;grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr)}body .battle-top>.match-clock,body.in-battle .battle-top>.match-clock{width:46px;padding:6px 1px}body .battle-top>.match-clock>span,body.in-battle .battle-top>.match-clock>span{font-size:14px}.battle-portrait{flex-basis:36px;height:43px}body .battle-top>.battle-fighter,body.in-battle .battle-top>.battle-fighter{padding:4px;gap:4px}.battle-top .battle-name{font-size:12px;letter-spacing:-.3px}.battle-types{gap:2px;margin:3px 0}.battle-types span{font-size:6px;padding:2px}.battle-health{height:17px}.battle-health>span{font-size:9px;padding:0 2px}.battle-roster{flex-wrap:wrap;gap:5px}.battle-trainer svg{width:16px;height:16px}.battle-trainer b{font-size:7px}.battle-balls{gap:3px}.battle-ball{width:10px;height:10px}.battle-ball:after{left:1px;top:1px}.battle-status{font-size:6px}}

/* Informações flutuantes: sem card externo, conforme ajuste aprovado. */
body .battle-top>.battle-fighter,body.in-battle .battle-top>.battle-fighter,body .battle-top>.battle-fighter.enemy{background:transparent;border:0;box-shadow:none;border-radius:0;}
