/* All emote UI lives in the header or control dock, never over the battlefield. */
.emote-toggle{display:grid;place-items:center;align-content:center;gap:0;min-width:48px;height:44px;border:1px solid #64738a;border-radius:9px;background:#273547;color:#f7d68b;cursor:pointer;flex:none}
.emote-toggle>span{font-size:25px;line-height:25px}.emote-toggle small{font-size:9px;line-height:12px;font-weight:600}.emote-toggle[aria-expanded=true]{background:#3b453d;border-color:#f4c96c}
.emote-rail{display:flex;align-items:center;justify-content:center;gap:4px;height:64px;min-height:64px;flex:none;padding:3px 12px;border-bottom:1px solid #3b4758;overflow:hidden;background:#151e29}
.emote-player{flex:1;min-width:0;max-width:88px;display:flex;flex-direction:column;align-items:center;gap:1px}
.emote-face{display:grid;place-items:center;width:46px;height:46px;max-width:100%;border-radius:8px;border-bottom:2px solid var(--player-color,#71849a);overflow:hidden;font-size:19px;background:#263647}
.emote-face>img{width:100%;height:100%;object-fit:contain}.emote-face.reacting{background:none;border-color:var(--player-color,#f5cf7a)}.emote-face.reacting>img{animation:emote-pop 3s both;animation-delay:var(--emote-delay,0ms)}.emote-face .avatar-art{width:100%;height:100%;object-fit:contain}
.emote-player-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:12px;color:#c5d1dd}
@keyframes emote-pop{0%{transform:scale(.75);opacity:0}8%{transform:scale(1.08);opacity:1}15%,90%{transform:scale(1);opacity:1}100%{transform:scale(.95);opacity:0}}
#emote-picker-host{display:none}.emotes-open #emote-picker-host{display:block;grid-column:1/-1;width:100%;height:100%;min-width:0;min-height:0}
.emotes-open .action-console{height:var(--emote-dock-height,auto);min-height:var(--emote-dock-height,0px);display:block!important;padding:8px 10px;overflow:hidden}
.emotes-open .action-console>:not(#emote-picker-host){display:none!important}
.emote-picker{width:100%;min-width:0;color:#eff3f8}.emote-picker-toolbar{display:flex;align-items:center;gap:6px;min-height:44px}.emote-picker-toolbar button{height:44px;min-width:44px;padding:6px 12px;border:1px solid #62738a;background:#253547;border-radius:8px;font-size:12px;font-weight:600;color:#e5ebf3}.emote-picker-toolbar #emote-close{margin-left:auto}.emote-picker-toolbar [aria-pressed=true]{color:#ffd679;border-color:#d5ad5a}
.emote-choices{display:flex;gap:6px;align-items:center;overflow-x:auto;overscroll-behavior-x:contain;min-height:62px;padding:3px 0;scrollbar-width:thin;touch-action:pan-x}
.emote-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;width:58px;min-width:58px;height:58px;border:1px solid #53657b;border-radius:8px;background:#1c2a3b;color:#d3dfeb;cursor:pointer}.emote-choice img{width:42px;height:42px;object-fit:contain}.emote-choice span{font-size:9px;max-width:52px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emote-choice:disabled{opacity:.5}
#emote-message{font-size:10px;line-height:14px;min-height:14px;margin:2px 0 0;color:#c2cfdd}.emote-empty{display:flex;align-items:center;gap:12px;font-size:12px}.emote-empty .secondary-button{min-height:44px;padding:8px 12px;font-size:12px;white-space:nowrap}
.emote-shop-tabs{display:flex;gap:6px;position:sticky;top:92px;z-index:2;padding:10px 0;background:var(--bg);margin-top:12px}.emote-shop-tabs button{min-height:44px;border:1px solid #52627b;border-radius:9px;padding:9px 18px;font-weight:600;background:#243141;color:#cad5e5}.emote-shop-tabs button[aria-pressed=true]{border-color:#e7bb63;color:#f8d488;background:#3b372b}
@media(min-width:901px){.emote-picker{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px}.emote-picker-toolbar{grid-column:1;grid-row:1}.emote-choices{grid-column:2;grid-row:1}#emote-message{grid-column:1/-1;grid-row:2}}
.emote-deck-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:15px 0 10px}.emote-deck-heading h3{margin:0;font-size:18px}.emote-deck-heading p{font-size:12px;line-height:1.4;margin:6px 0;color:#bac7d8}.emote-deck-heading button{min-height:44px;font-size:12px;flex-shrink:0;padding:8px}
.emote-deck-editor{margin:0 0 16px;border-bottom:1px solid var(--line)}.emote-deck-editor summary{min-height:44px;padding:10px 0;font-size:14px;font-weight:600;cursor:pointer}
.emote-loadout{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;max-width:720px;margin-bottom:22px}.emote-deck-slot{min-height:64px;position:relative;display:grid;place-items:center;border-radius:9px;border:1px solid #4d6077;background:#1e2b3c;cursor:pointer;color:#adc0d5}.emote-deck-slot.selected{border:2px solid #f5cf79;background:#38382f}.emote-deck-slot img{width:48px;height:48px;object-fit:contain}.emote-deck-slot>span{font-size:24px}.emote-deck-slot small{position:absolute;right:4px;bottom:1px;font-size:9px}
.emote-shop-item{text-align:center;min-width:0}.emote-shop-art{display:grid;place-items:center;height:128px}.emote-shop-art img{width:120px;height:120px;object-fit:contain}.premium-emote{border-color:#b6924e;background:linear-gradient(150deg,#30322d,#1c2635)}.premium-emote .emote-shop-art img{border-radius:9px}.emote-shop-item .shop-price{justify-content:center;min-height:29px}.emote-shop-item h4{font-size:16px}.emote-shop-item p{font-size:11px;min-height:0}.emote-shop-item button{min-height:44px;font-size:13px;padding:8px 10px}
#party-emote-toggle{min-height:44px;margin-top:10px}#party-emote-host:has(#emote-picker:not(.hidden)){padding:8px 0}#party-emote-rail{border-radius:9px}
#gold-buy-modal .modal-card{display:flex;flex-direction:column;max-height:calc(var(--viewport-height,100dvh) - 28px);overflow-y:auto}#gold-buy-confirm{flex:none;position:sticky;bottom:0;min-height:48px}
@media(max-width:900px){
 .phone-battle #game-view .game-heading{grid-template-columns:minmax(0,1fr) 48px 64px;gap:2px 7px}
 .phone-battle .emote-toggle{grid-row:1;grid-column:2}.phone-battle .match-clock{grid-column:3}.phone-battle .match-pulse{grid-column:1/-1}
 .phone-battle .timer.timer-label{font-size:17px;min-width:0;width:64px;text-align:right}
 .phone-battle .emote-rail{height:48px;min-height:48px;padding:2px 10px;gap:3px}.phone-battle .emote-face{height:32px;width:32px;font-size:14px;border-bottom-width:1px}.phone-battle .emote-player-name{font-size:9px;line-height:11px}
 .phone-battle .emotes-open .action-console{padding:5px 10px max(5px,env(safe-area-inset-bottom))!important}
 .phone-battle #game-view[data-phase=waiting].emotes-open .action-console{display:block!important;flex:none}
 .phone-battle .emotes-open .emote-picker-toolbar{min-height:44px}.phone-battle .emotes-open .emote-choices{min-height:60px}
 .emote-shop-tabs{top:104px}.emote-loadout{grid-template-columns:repeat(4,minmax(0,1fr))}.emote-deck-heading{gap:6px}.emote-deck-heading h3{font-size:16px}.emote-deck-heading p{font-size:11px}.emote-deck-heading button{font-size:10px;max-width:90px}
 .emote-shop-art{height:104px}.emote-shop-art img{width:96px;height:96px}.emote-shop{gap:10px}.emote-shop-item{padding:12px 9px}.emote-shop-item h4{font-size:14px}.emote-shop-item .shop-price{font-size:16px}
}
@media(max-width:600px){.gold-wallet{gap:10px;padding:14px 16px}.gold-wallet>img{width:48px;height:48px}.gold-wallet>div{min-width:0}.gold-wallet strong{font-size:clamp(20px,6vw,26px);white-space:nowrap}.gold-wallet small{font-size:11px}.gold-standing{display:grid;grid-template-columns:1fr auto;align-items:center;padding:9px 16px;gap:1px 10px}.gold-standing>span{font-size:12px}.gold-standing>strong{font-size:18px;text-align:right}.gold-standing>small{font-size:12px}.gold-standing .text-link{font-size:11px;min-height:44px}}
@media(max-width:350px){.phone-battle .leave-match-button span{display:none}.phone-battle .battle-identity .game-badge{font-size:12px}.phone-battle .game-heading-left{gap:6px}.phone-battle .battle-identity{min-width:0}.phone-battle .battle-identity .game-badge,.phone-battle .battle-identity .muted{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phone-battle #game-view .game-heading{padding-left:8px;padding-right:8px}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
 .phone-battle .emote-rail{height:48px;min-height:48px}.phone-battle .emotes-open .action-console{height:auto;min-height:0;align-self:stretch}
 .phone-battle .emotes-open .emote-picker-toolbar{flex-wrap:wrap;gap:3px}.phone-battle .emotes-open .emote-picker-toolbar button{padding:5px 7px;font-size:10px}
 .phone-battle .emotes-open .emote-picker{display:flex;flex-direction:column;height:100%;min-height:0}
 .phone-battle .emotes-open .emote-picker-toolbar,.phone-battle .emotes-open #emote-message{flex:none}
 .phone-battle .emotes-open .emote-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;touch-action:pan-y}.phone-battle .emote-choice{width:100%;min-width:44px;height:48px}.phone-battle .emote-choice img{width:34px;height:34px}.phone-battle .emote-empty{grid-column:1/-1;display:block}
}
@media(prefers-reduced-motion:reduce){.emote-face.reacting>img{animation:none}}
