.b2btn,.b2-moves button,.b2-go,#b2-status input[type=submit]{display:inline-block;border:1px solid var(--colour-btn-glass-border, rgba(159,170,179,.78));border-radius:9px;background:linear-gradient(145deg,var(--colour-btn-glass-top, rgba(248,248,249,.90)),var(--colour-btn-glass-bottom, rgba(232,232,232,.94)));color:var(--colour-btn-glass-text, #46515b);font-weight:800;padding:7px 16px;box-shadow:0 2px 5px rgba(30,42,54,.13),inset 0 1px 0 var(--colour-shine, rgba(255,255,255,.96)),inset 0 -1px 0 rgba(119,132,143,.11);cursor:pointer;white-space:nowrap;transition:border-color .15s,box-shadow .15s,transform .1s}
.b2btn:hover,.b2-moves button:hover,.b2-go:hover,#b2-status input[type=submit]:hover{border-color:var(--colour-btn-glass-border-hover, #91a2b1);background:linear-gradient(145deg,rgba(252,252,253,.96),rgba(240,240,241,.97))}
.b2btn:active,.b2-moves button:active,.b2-go:active,#b2-status input[type=submit]:active{transform:translateY(1px) scale(.98)}
.b2-moves button.b2-sel{border-color:var(--colour-btn-glass-border-hover, #91a2b1);background:linear-gradient(145deg,rgba(226,229,232,.95),rgba(214,218,222,.95));color:#27313a;box-shadow:inset 0 2px 5px rgba(36,49,61,.2)}
.b2-wrap{width:100%;margin:0 auto}
.b2-note{margin:10px 0;text-align:center}
.b2-arena{box-sizing:border-box;padding:16px 12px 24px;border:1px solid var(--colour-line, #E8E8E8);border-radius:12px;background:var(--colour-surface, #fff) url("https://images.marapets.com/island/BattleArena.png") no-repeat top center;background-size:contain}
.b2-fighters{display:flex;align-items:center;justify-content:space-evenly;gap:8px}
.b2-fighter{flex:1 1 0;min-width:0;text-align:center}
.b2-name{margin-bottom:6px}
.b2-pie{display:flex;align-items:center;justify-content:center;width:120px;height:120px;margin:0 auto;border:1px solid #000;border-radius:50%;background:conic-gradient(#4CAF50 calc(var(--hp,100) * 1%),#d94c3a 0)}
.b2-inner{display:flex;align-items:center;justify-content:center;width:98px;height:98px;overflow:hidden;border-radius:50%;background:var(--colour-surface, #fff)}
.b2-inner img{max-width:82px;max-height:82px}
.b2-hp{margin-top:6px;color:#B23421}
.b2-bar{width:80%;max-width:120px;height:7px;margin:5px auto 0;overflow:hidden;border:1px solid #000;border-radius:4px;background:var(--colour-surface, #fff)}
.b2-bar span{display:block;height:100%;background:#8C4BE8}
.b2-magic{margin-top:2px;color:#8C4BE8}
.b2-vs{flex:0 0 auto;padding:0 4px;color:#999}
.b2-moves{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:18px 0 8px}
.b2-panel{display:none;max-width:640px;margin:0 auto;padding:14px;border:1px solid var(--colour-line, #E8E8E8);border-radius:10px;background:var(--colour-surface, #fff)}
.b2-panel.b2-on{display:block}
.b2-intensity{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-bottom:10px}
.b2-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.b2-gobox{margin-top:12px;text-align:center}
.b2-logs{display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:16px;margin-top:16px}
.b2-logcol{flex:1 1 260px;min-width:0;padding:6px 8px;border-radius:10px;background:rgba(255,255,255,.94)}
.b2-logcol:empty{display:none}
.b2-status{margin-top:14px;padding:18px;border:1px solid var(--colour-line, #E8E8E8);border-radius:10px;background:var(--colour-surface, #fff);text-align:center}
.b2-status:empty{display:none}
.b2-msg{min-height:18px;margin:8px 0;color:#B22;text-align:center}
.b2-codebox{max-width:420px;margin:0 auto;padding:18px;border:1px solid var(--colour-line, #E8E8E8);border-radius:12px;background:var(--colour-surface, #fff);text-align:center}
@media (max-width:560px){
.b2-arena{background:var(--colour-surface, #fff)}
.b2-pie{width:96px;height:96px}
.b2-inner{width:78px;height:78px}
.b2-inner img{max-width:64px;max-height:64px}
.b2-fighters{gap:2px}
}
