/* Separate Erase and Clear controls, matching the original button style. */
#battle-draw #erase[aria-pressed=true]{color:#465e7b;border-color:#9eafc5;background:#edf3fa;}

/* Both battle modes share the original Team battle toggle appearance. */
#battle-draw button:is(#teams,#ffa-mode) { align-items:center;background:#fff;border:1px solid var(--line);border-radius:999px;bottom:14px;box-shadow:0 2px 10px rgba(0,0,0,.05);color:var(--muted);cursor:pointer;display:flex;font:inherit;font-size:12px;font-weight:600;gap:7px;padding:5px 11px 5px 7px;position:fixed;right:14px;top:auto;width:auto;height:auto;z-index:32;transform:none; }
#battle-draw button#ffa-mode { bottom:48px; }
#battle-draw button:is(#teams,#ffa-mode):hover,
#battle-draw button:is(#teams,#ffa-mode)[aria-checked=true] { color:var(--ink); }
#battle-draw button:is(#teams,#ffa-mode) .label { display:inline; }
#battle-draw button:is(#teams,#ffa-mode) .team-icon { display:none; }
#battle-draw button:is(#teams,#ffa-mode) .switch { display:block;background:#dcdfe5;border-radius:7px;height:14px;position:relative;transition:background .15s;width:24px;flex-shrink:0; }
#battle-draw button:is(#teams,#ffa-mode) .switch:after { background:#fff;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.2);content:"";height:10px;left:2px;position:absolute;top:2px;transition:transform .15s;width:10px; }
#battle-draw button:is(#teams,#ffa-mode)[aria-checked=true] .switch { background:#7d9bc9; }
#battle-draw button:is(#teams,#ffa-mode)[aria-checked=true] .switch:after { transform:translateX(10px); }
#battle-draw button:is(#teams,#ffa-mode):focus { outline:none; }
#battle-draw button:is(#teams,#ffa-mode):focus-visible { outline:2px solid var(--ink);outline-offset:2px; }
@media(max-width:640px){
 #battle-draw button#teams { top:50px;bottom:auto; }
 #battle-draw button#ffa-mode { top:84px;bottom:auto; }
}
