/* Compact alliances: one container per actual combat team. */
.setup-scroll .match-panel{display:flex;flex-direction:column;gap:18px}
.setup-scroll .choice-section{margin:0;padding:0}
.setup-scroll .mode-options{gap:8px;margin:0}
.setup-scroll .mode-options button{min-height:46px;border-radius:10px;font-size:14px;padding:9px 12px}
.setup-scroll .appearance-choice{display:flex;flex-wrap:nowrap;gap:7px;overflow-x:auto;padding-bottom:5px;scrollbar-width:thin}
.setup-scroll .appearance-choice button{flex:1 0 88px;min-height:58px;border-radius:10px;padding:7px;font-size:12px;gap:4px}
.setup-scroll .appearance-choice button b{font-size:18px}
.setup-scroll h3{font-size:15px;margin:0 0 10px}
.setup-scroll .players-section .section-row{margin-bottom:10px;gap:8px}
.setup-scroll #count-note{font-size:12px;line-height:1.5;max-width:340px;margin:4px 0 0}
.setup-scroll .counter-row{gap:10px}
.setup-scroll .round-button{width:36px;height:36px;min-height:36px;border-radius:9px}
.setup-scroll .team-mode-field{margin-bottom:12px;grid-template-columns:70px 1fr;display:grid;align-items:center;gap:10px}
.setup-scroll .team-mode-field[hidden]{display:none}
.setup-scroll .team-mode-field select{min-height:40px;font-size:13px;border-radius:9px}
.setup-scroll .team-board{display:flex!important;flex-direction:column;gap:9px;min-width:0}
.team-panel,.boss-panel{border:1px solid #344357;border-radius:12px;background:#111c2b;padding:12px;min-width:0}
.team-panel{border-inline-start:3px solid var(--team-color)}
.team-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.team-panel h4{font-size:14px;color:#e9f2fb;margin:0;line-height:1.4}
.team-panel>header>span{color:#8fa3ba;font-size:11px;white-space:nowrap}
.team-members{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;align-items:start}
.fighter-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;aspect-ratio:1;min-width:0;padding:5px;border:1px solid #304157;border-radius:8px;background:#1a293c;color:#e1ecf5;transition:background .16s,border-color .16s}
.fighter-tile:hover{background:#22364d;border-color:#88c4cb}
.fighter-tile canvas{width:clamp(40px,8vw,62px);height:clamp(40px,8vw,62px);max-width:90%;aspect-ratio:1;animation:none!important}
.fighter-tile>span{font-size:11px;line-height:1.15;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;min-height:22px}
.fighter-tile>small{position:absolute;inset-block-start:4px;inset-inline-end:5px;font-size:10px;color:#9dafc4}
.fighter-tile:focus-visible,.selected-boss:focus-visible,.monster-grid button:focus-visible{outline:3px solid #ffd57b;outline-offset:3px}
.team-divider{align-self:center;font-size:12px;font-weight:900;letter-spacing:2px;line-height:22px;color:#edce88;animation:teamVs 3s ease-in-out infinite}
@keyframes teamVs{50%{opacity:.55;transform:scale(1.08)}}
.selected-boss{display:flex;align-items:center;width:100%;gap:12px;text-align:start;padding:0;background:none;border:0;color:#f2f5fa}
.selected-boss>img,.selected-boss>canvas{width:76px;height:76px;object-fit:contain;flex:none;animation:bossIdle 4s ease-in-out infinite}
.selected-boss>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.selected-boss strong{font-size:15px}
.selected-boss small{font-size:12px;line-height:1.45;color:#a4b5c7}
.boss-health{font-size:11px;color:#cee5dd;display:flex;align-items:center;gap:7px}
.boss-health i{display:block;width:54px;height:5px;border-radius:3px;background:var(--boss-color)}
.selected-boss>b{color:#9ab0c8}
.change-boss{font-size:12px;border:1px solid #3e5068;background:#1c2c41;color:#dce8f6;border-radius:7px;padding:7px 12px;margin-top:9px;width:100%}
@keyframes bossIdle{50%{transform:translateY(-3px) rotate(2deg)}}
.monster-sheet{max-width:680px!important}
.monster-sheet .monster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.monster-sheet .monster-grid button{display:flex;flex-direction:column;align-items:center;gap:5px;border-radius:10px;padding:9px 6px;min-width:0;background:#172436;border:1px solid #344357;color:#dfe8f3}
.monster-sheet .monster-grid button[aria-pressed=true]{border-color:#ffcf72;background:#283044;box-shadow:inset 0 0 0 1px #ffcf72}
.monster-sheet .monster-grid img,.monster-sheet .monster-grid canvas{width:85px;height:85px;max-width:100%;object-fit:contain}
.monster-sheet .monster-grid strong{font-size:12px;line-height:1.35;text-align:center}
.monster-sheet .monster-grid span{font-size:11px;color:var(--monster-color)}
.monster-sheet .monster-grid small{font-size:10px;line-height:1.4;color:#a4b6c9;text-align:center}
#fighter-options{display:flex;flex-direction:column;gap:14px}
#fighter-options .color-row{display:flex;flex-wrap:wrap;gap:9px}
#fighter-options .color-dot{width:32px;height:32px;min-height:32px}
#fighter-options select{font-size:15px;min-height:46px}
.setup-scroll .shape-options button{border-radius:9px;min-height:43px;font-size:13px}
.setup-screen .setup-footer{padding-top:10px}
.setup-screen .launch-actions button{min-height:50px;border-radius:10px;font-size:14px}
@media(min-width:700px){.team-board.duel-groups:not(.boss-matchup){display:grid!important;grid-template-columns:1fr 24px 1fr;align-items:start}.team-board.duel-groups:not(.boss-matchup) .team-divider{margin-top:42px}.team-board.duel-groups:not(.boss-matchup) .team-panel{height:100%}.fighter-tile canvas{width:60px;height:60px}}
@media(max-width:380px){.team-panel,.boss-panel{padding:9px}.team-members{gap:5px}.fighter-tile{padding:3px}.fighter-tile>span{font-size:10px}.fighter-tile canvas{width:44px;height:44px}.monster-sheet .monster-grid{gap:6px}.monster-sheet .monster-grid img,.monster-sheet .monster-grid canvas{height:65px;width:65px}}
@media(prefers-reduced-motion:reduce){.team-divider,.selected-boss>img,.selected-boss>canvas{animation:none}}

.premium-inline{display:block;font-size:12px;color:#f8cc80;margin-top:10px;text-align:center}.premium-locked{position:relative}.premium-locked::after{content:'✦';font-size:11px;color:#ffd07c;margin-inline-start:8px}.creator-ad-panel{grid-column:1/-1;border:1px solid #35465a;border-radius:14px;padding:16px;margin-top:14px}.creator-ad-panel summary{cursor:pointer;font-size:14px;color:#dfe7f4}.creator-ad-panel fieldset{border:0;padding:16px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}.creator-ad-panel input:not([type=checkbox]){max-width:100%;min-height:42px;background:#0c1725;border:1px solid #3b4c61;border-radius:8px;padding:10px;color:#eee;font:inherit;font-size:13px}.creator-ad-panel input[type=file]{font-size:11px}.creator-ad-panel small,.creator-ad-panel p,.creator-ad-panel fieldset>a{grid-column:1/-1;font-size:12px;color:#a6bdcd;line-height:1.5}.creator-ad-panel fieldset:disabled{display:none}#ad-upgrade{display:block;font-size:13px;color:#ffd078;margin-top:12px}#creator-guide-link{color:#b1dfcf;font-size:12px;margin-inline:auto 12px}@media(max-width:520px){.creator-ad-panel fieldset{grid-template-columns:1fr}}
.studio-account-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:none;margin:0 0 12px}.studio-account-nav #signed-account{flex:1 1 170px;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#aac6c3}.studio-account-nav a,.studio-account-nav button{font-size:12px;font-weight:650;padding:8px 12px;min-height:40px;border:1px solid #33465b;border-radius:10px;background:#142132;color:#e3edf7;text-decoration:none}.studio-account-nav a:focus-visible{outline:3px solid #ffd487;outline-offset:2px}#paid-account{font-size:12px}#exit-battle.back-to-setup{width:auto;padding-inline:12px;font-size:13px}#result-back{display:block;margin:14px auto;width:100%;min-height:44px}@media(max-width:480px){.studio-account-nav #signed-account{flex-basis:100%}.battle-controls{gap:6px}.game-control.back-to-setup{max-width:165px;font-size:12px}}

/* Fixed Shorts layout: fewer decisions, room for the square arena. */
.shorts-badge{font-size:12px;color:#9edbcc;font-weight:750;letter-spacing:1px;margin-bottom:16px}.battle-screen.active{padding-inline:4px;padding-bottom:76px}.battle-screen canvas{max-width:1100px;margin:auto}.result-card{padding:26px 22px;border-radius:20px;width:min(90%,360px)}.result-card h2{margin:0;font-size:24px}.result-site{display:block;margin:12px 0 24px;text-decoration:none;font-size:15px;letter-spacing:.5px;color:#8ddbe7}#video-result-actions{display:grid;gap:10px}#video-result-actions[hidden]{display:none}#video-result-actions button,#result-back{width:100%;min-height:48px;margin:0}#result-back{margin-top:10px;background:transparent;border-color:#34465b;font-size:13px}.recording-sheet video{aspect-ratio:9/16;max-height:65dvh}.setup-header .edition{display:none}.choice-section.mode-section{margin-top:0}@media(max-width:480px){.battle-screen.active{padding-inline:0;padding-bottom:100px}.setup-screen.active{padding-inline:12px}.account-entry{padding-block:8px}}@media(max-height:500px) and (orientation:landscape){.battle-screen.active{padding-bottom:55px}}
