/* local patch (src/docs/LOCAL-PATCH.md 「배치 UI」): the official direction selector (js/ui/placeArt.js, drawn by
   js/ui/facingWheel.js when the local extract ui/battlecommon is installed). Local units of the selector: its diamond
   half-diagonal is 301; strokes scale with it. */
.fwheel__dia.pwheel-host { left: 0; top: 0; width: 0; height: 0; transform: none; animation: none; overflow: visible; }
.pwheel { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; animation: pwheel-in 160ms ease-out; }
@keyframes pwheel-in { from { opacity: 0; } }
.pwheel * { pointer-events: none; }
.pwheel__edge { fill: none; stroke-width: 4; stroke-linecap: square; stroke-linejoin: miter; } /* the chosen one only changes colour */
.pwheel__cancel, .pwheel__bubble { opacity: 0; transition: opacity .16s; } /* panel_cancel_hint _fadeTime 0.16 */
.pwheel__cancel.is-on, .pwheel__bubble.is-on { opacity: 1; }
.pwheel__label { fill: #fff; font-family: var(--font-cjk); font-weight: 700; font-size: 21px; }
.pwheel__label--tip { font-weight: 500; font-size: 19px; letter-spacing: .01em; }
/* the cancel tag's tap target (the original wheel's .fwheel__cancel button, made invisible over the official tag) */
.fwheel__cancel.pwheel__tap {
  position: absolute; transform: none; padding: 0; background: transparent; box-shadow: none; clip-path: none;
  border: 0; min-height: 0; pointer-events: auto; cursor: pointer;
}
.fwheel__cancel.pwheel__tap:hover { background: rgba(255, 255, 255, .08); }
.fwheel__cancel.pwheel__tap:not(.is-on) { pointer-events: none; }

/* The official selection menu (js/ui/underframeArt.js, drawn by js/ui/underframe.js when the local extracts
   ui/battlecommon + ui/battle are installed): full-screen SVGs on the ground plane, pointer-transparent; only the
   transparent tap boxes (.ufa__hit, over the hotspot / collider) take presses. Button colours as the prefab's Button
   transition: highlighted .96, pressed .78, disabled .78 at half alpha. */
.gm__hud > .uframe.uframe--art { width: 0; height: 0; transform: none; overflow: visible; } /* left / top: the piece */
.ufa { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; animation: ufa-in 160ms ease-out; }
@keyframes ufa-in { from { opacity: 0; } }
.ufa * { pointer-events: none; }
.ufa__shadow { filter: brightness(0); opacity: .35; }
.ufa__icon { filter: brightness(0); }
.ufa__text { fill: rgba(0, 0, 0, .9); font-family: var(--font-cjk); font-weight: 700; }
.ufa__price { fill: #e8e8e8; font-family: var(--font-num, var(--font-cjk)); font-weight: 700; }
.ufa__sp { fill: #fff; font-family: var(--font-num, var(--font-cjk)); font-weight: 700; }
.ufa__skillnone { fill: rgba(30, 30, 30, .8); }
.ufa__key rect { fill: rgba(20, 20, 20, .85); stroke: rgba(255, 255, 255, .3); stroke-width: 2; }
.ufa__key text { fill: #e8e8e8; font-family: var(--font-num, var(--font-cjk)); font-weight: 600; }
.ufa__withdraw, .ufa__util { transition: filter .1s; }
/* the tap boxes come before the art in the DOM (no :has(): Firefox ESR 115, Safari < 15.4), drawn above it by z-index */
.uframe__btn--retreat:hover:not(:disabled) ~ .ufa--btns .ufa__withdraw,
.uframe__btn--sell:hover:not(:disabled) ~ .ufa--btns .ufa__util,
.uframe__btn--destroy:hover:not(:disabled) ~ .ufa--btns .ufa__util { filter: brightness(.96); }
.uframe__btn--retreat:active:not(:disabled) ~ .ufa--btns .ufa__withdraw,
.uframe__btn--sell:active:not(:disabled) ~ .ufa--btns .ufa__util,
.uframe__btn--destroy:active:not(:disabled) ~ .ufa--btns .ufa__util,
.uframe__btn--range:active ~ .ufa--btns .ufa__range { filter: brightness(.78); }
.uframe__btn:disabled ~ .ufa--btns { opacity: .5; filter: brightness(.78); }
.uframe__btn.ufa__hit { position: absolute; z-index: 1; transform: none; padding: 0; margin: 0; background: transparent; border: 0;
  filter: none; animation: none; display: block; }
.uframe__btn.ufa__hit:focus-visible { outline: 2px solid #ffe2b0; outline-offset: 2px; }
.ufa__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
