.fa-direct-moves{position:fixed;z-index:5900;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(6,minmax(64px,106px));gap:5px;pointer-events:auto;max-width:96vw}
.fa-direct-moves[hidden]{display:none}.fa-direct-moves button{position:relative;min-height:72px;padding:4px;border:0;border-radius:0;background:transparent;color:#fff5da;font:12px system-ui;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;touch-action:none;box-shadow:none;text-shadow:0 1px 3px #000,0 1px 2px #000}.fa-direct-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fa-direct-moves .unavailable{opacity:.5}.fa-direct-moves button:focus-visible{outline:2px solid #ffe59a;outline-offset:2px}.fa-direct-battle .fa-context-button[data-role="primary"],.fa-direct-battle .fa-context-button[data-role="secondary"]{display:none!important}
.fa-direct-icon{display:block;width:48px;height:48px;background-size:800% 800%;image-rendering:pixelated;filter:url(#fa-direct-icon-cutout)}.fa-direct-battle .fa-move-icons{display:none!important}
@media(pointer:coarse),(max-width:600px){.fa-direct-moves{left:auto;right:max(10px,env(safe-area-inset-right));bottom:max(70px,calc(env(safe-area-inset-bottom) + 60px));transform:none;grid-template-columns:repeat(3,72px);gap:5px}.fa-direct-moves button{min-height:72px;font-size:11px}}

.fa-move-frames{grid-column:1/-1;font-size:10px;line-height:1.4;opacity:.8}
@media(pointer:coarse),(max-width:600px){
html body.fa-direct-battle #faunaraActionPrompt[data-device="touch"]{inset:auto auto 220px 12px!important;transform:none;width:112px;height:112px}
html body.fa-direct-battle #faunaraActionPrompt[data-device="touch"] :is(.fa-context-diamond,.fa-context-shoulders){position:static;inset:auto;transform:none;width:112px;height:112px}
html body.fa-direct-battle #faunaraActionPrompt[data-device="touch"] .fa-context-button{inset:auto;width:52px;height:52px;min-width:48px;min-height:48px}
html body.fa-direct-battle #faunaraActionPrompt[data-device="touch"] .fa-context-button[data-role="back"]{left:0;top:0}
html body.fa-direct-battle #faunaraActionPrompt[data-device="touch"] .fa-context-button[data-role="tools"]{left:60px;top:0}
html body.fa-direct-battle #faunaraActionPrompt[data-device="touch"] .fa-context-button[data-role="focus"]{left:0;top:60px}
html body.fa-direct-battle #faunaraActionPrompt[data-device="touch"] .fa-context-button[data-role="capture"]{left:60px;top:60px}
}

/* One selected-fauna energy meter, shared by every direct-move battle HUD. */
.fa-direct-energy{grid-column:1/-1;position:relative;height:24px;margin-top:4px;overflow:hidden;border:1px solid #bde8ff99;border-radius:4px;background:#102b3bf2;box-shadow:0 2px 4px #0005;pointer-events:none}
.fa-direct-energy-fill{display:block;height:100%;width:0;background:linear-gradient(#64d8ff,#249fe8 45%,#1286d4);transition:width .1s linear}
.fa-direct-energy-label{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:700 13px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;text-shadow:0 1px 2px #001a2a,1px 0 1px #001a2a;white-space:nowrap}
@media(pointer:coarse),(max-width:600px){.fa-direct-energy{height:22px}.fa-direct-energy-label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.fa-direct-energy-fill{transition:none}}

.fa-direct-chain{position:relative;display:block;min-height:12px;font:10px/12px system-ui;letter-spacing:1px;color:#cde8ed;text-shadow:0 1px 3px #000;pointer-events:none}.fa-direct-chain[hidden]{display:none}.chain-open .fa-direct-chain{color:#ffed94}.fa-direct-chain:after{content:"";position:absolute;bottom:-2px;left:0;width:calc(100% * var(--chain-window,0));height:2px;background:currentColor;transform-origin:left}

/* Live binding icons share one visual language in battle and team selection. */
.fa-control-glyph{display:inline-grid;place-items:center;flex:none;min-width:25px;height:24px;padding:0 6px;border:1px solid #ffffffb3;border-bottom-width:3px;border-radius:5px;background:#eff9f4;color:#285c70;font:750 12px/1 system-ui,sans-serif;text-shadow:none;white-space:nowrap;box-shadow:0 1px 2px #102b3b40}
.fa-control-glyph[data-shape=face]{width:25px;padding:0;border-radius:50%;border-bottom-width:2px}
.fa-control-glyph[data-family=playstation][data-shape=face]{font-size:17px}
.fa-direct-binding{margin-bottom:2px}.fa-control-glyph[hidden]{display:none}
@media(max-width:600px){.fa-control-glyph{min-width:22px;height:22px;font-size:11px}.fa-control-glyph[data-shape=face]{width:22px}}

/* Keep the countdown readable even when a long move name needs an ellipsis. */
.fa-direct-label{display:flex;align-items:baseline;justify-content:center;gap:4px;max-width:100%;min-width:0}
.fa-direct-label .fa-direct-name{min-width:0;flex:0 1 auto}
.fa-direct-cooldown{flex:none;color:#ffe59a;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.fa-direct-cooldown[hidden]{display:none}

/* Anchor every key to the row top, even when only some moves show a chain. */
.fa-direct-moves button{justify-content:flex-start;padding-bottom:6px}
.fa-direct-moves .fa-direct-binding{box-sizing:border-box;height:28px;min-height:28px}
.fa-direct-moves .fa-direct-icon{flex:none}
@media(max-width:600px){.fa-direct-moves .fa-direct-binding{height:26px;min-height:26px}}
