/* AutomationDock336: 52x48 entries at (W-60, H-220) and (W-60, H-164) of the scene. */
.automation-dock{position:absolute;inset:0;z-index:6;pointer-events:none}
.automation-dock[hidden]{display:none}
.automation-dock .automation-dock-entry{position:absolute;left:calc(100% - 64px);width:60px;height:56px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:auto;touch-action:none;cursor:pointer}
.automation-dock .automation-dock-entry:hover{background:transparent;border:0}
.automation-dock .automation-dock-entry:focus-visible{outline:1px solid #ebcc7e;outline-offset:-4px}
.automation-dock canvas{display:block;width:60px;height:56px;image-rendering:auto}
/* 強攻 is the Android touch substitute for holding Ctrl; the PC layout keeps Ctrl only. */
.game:not(.mobile-layout) .automation-dock .automation-dock-entry[data-entry="force"]{display:none}

/* Remaining controls retain their existing locations. */
.android-layout .automation-dock.automation-dock-without-force::before{content:none}

/* Keep idle dock artwork subdued; interaction restores its normal highlight. */
.android-layout .automation-dock-without-force .automation-dock-entry:not(.automation-dock-entry-color)[aria-pressed="false"] canvas{filter:brightness(.92) contrast(1.12) drop-shadow(0 1px 1px #000) drop-shadow(0 0 3px #000)}
.android-layout .automation-dock-without-force .automation-dock-entry:not(.automation-dock-entry-color):is(:hover,:focus-visible,:active) canvas{filter:drop-shadow(0 1px 1px #000) drop-shadow(0 0 3px #000)}

/* Colour sprites keep their original shading and palette. */
.android-layout .automation-dock-without-force .automation-dock-entry.automation-dock-entry-color canvas{filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
.android-layout .automation-dock-without-force .automation-dock-entry.automation-dock-entry-color:is(:hover,:focus-visible,:active,[aria-pressed="true"]) canvas{filter:brightness(1.1) drop-shadow(0 1px 1px rgba(0,0,0,.5))}
