/* Share the attack column, without taking a slot from the combat controls. */
#game-shell .action-dock #bag-shortcut{position:absolute;bottom:calc(100% + 8px);width:80px;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px;border:1px solid #c4c9ac70;border-radius:12px;background:#17271fc2;color:#e1ddc7;box-shadow:0 3px 12px #0003;touch-action:manipulation;backdrop-filter:blur(4px)}
#bag-shortcut svg{width:25px;height:25px}
#bag-shortcut span{font-size:12px;line-height:1.4}
#game-shell .action-dock #bag-shortcut:hover,#game-shell .action-dock #bag-shortcut:focus-visible{background:#304332ed;border-color:#ddd2ac}
#game-shell .combat-controls:has(#bag-shortcut){gap:72px}
#game-shell .combat-controls:has(#bag-shortcut) .toasts:empty{display:none}
@media(pointer:coarse), (any-pointer:coarse){#game-shell.touch-playing .combat-controls:has(#bag-shortcut){gap:72px}}

@media(pointer:coarse), (any-pointer:coarse){
 #game-shell.touch-playing .action-dock{width:168px;grid-template-columns:66px 90px;gap:6px;padding:0}
 #game-shell.touch-playing #nearby-button{grid-column:1;grid-row:1}
 #game-shell.touch-playing #attack-button{grid-column:2;grid-row:1}
 #game-shell.touch-playing #emote-button{grid-column:1;grid-row:2;min-height:44px;height:44px;border-radius:18px}
 #game-shell.touch-playing #emote-button :is(.slot-icon,small){display:none}
 #game-shell.touch-playing #auto-attack-button{grid-column:2;grid-row:2}
 #game-shell.touch-playing #bag-shortcut{z-index:20}
}


#game-shell .action-dock{position:relative}
@media(min-width:761px) and (pointer:fine){
 #game-shell:not(.touch-playing) .combat-controls:has(#bag-shortcut){gap:8px}
 #game-shell:not(.touch-playing) .action-dock{width:min(100%,570px);grid-template-columns:minmax(0,1fr) 88px minmax(0,1.1fr) 64px}
 #game-shell:not(.touch-playing) .action-dock:has(#emote-button){width:min(100%,650px);grid-template-columns:minmax(0,1fr) 80px 88px minmax(0,1.1fr) 64px}
 #game-shell:not(.touch-playing) #nearby-button{order:1}
 #game-shell:not(.touch-playing) #emote-button{order:2}
 #game-shell:not(.touch-playing) .action-dock #bag-shortcut{order:3;position:relative;left:auto;bottom:auto;width:100%;height:100%;min-height:0;border:1px solid #657456;border-radius:7px;background:linear-gradient(180deg,#29372b,#1b291f);color:#e1ddc7;box-shadow:none;backdrop-filter:none}
 #game-shell:not(.touch-playing) #attack-button{order:4}
 #game-shell:not(.touch-playing) #auto-attack-button{order:5}
}
