/* The look of the shared movement controls (agents/lib/movepad.js) in the games. Lower left: the switch, its settings button and, above them, the
   joystick. Lower right: the turn buttons, as Lantern Run drew them. --mp-lift (set by the part) stands them above a game's bottom dock. */
#mpMode, #mpSet, #turn { position: fixed; z-index: 5; }
#mpMode, #mpSet, #mpOpts button { min-height: 52px; min-width: 52px; font: 700 14px/1.15 system-ui, sans-serif; border: 0; border-radius: 10px; background: rgba(20,32,43,.88); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); touch-action: none; }
#mpMode { left: max(10px, env(safe-area-inset-left)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--mp-lift, 0px)); width: 100px; height: 52px; padding: 4px 6px; }
#mpSet { left: calc(max(10px, env(safe-area-inset-left)) + 106px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--mp-lift, 0px)); width: 56px; height: 52px; padding: 2px; }
#mpOpts { position: fixed; z-index: 7; left: max(10px, env(safe-area-inset-left)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--mp-lift, 0px) + 60px); display: flex; flex-direction: column; gap: 6px; }
#mpOpts button { width: 136px; padding: 4px 6px; }
#mpOpts button[aria-pressed="true"] { background: #2f6b3a; }
#mpBase { position: fixed; z-index: 5; left: max(10px, env(safe-area-inset-left)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--mp-lift, 0px) + 60px); width: 112px; height: 112px; border-radius: 50%; border: 3px solid rgba(255,255,255,.75); background: rgba(13,18,23,.38); touch-action: none; }
#mpBase.held { opacity: .35; }
#mpKnob { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -25px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.75); pointer-events: none; }
#mpWord { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font: 700 13px/16px system-ui, sans-serif; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; }
#turn { right: max(10px, env(safe-area-inset-right)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--mp-lift, 0px)); display: flex; gap: 8px; pointer-events: none; }
#turn button { pointer-events: auto; min-width: 56px; height: 56px; min-height: 56px; padding: 4px 12px; font: 400 26px/1 system-ui, sans-serif; border: 0; border-radius: 10px; background: rgba(47,107,58,.92); color: #fff; touch-action: none; }
#turn #turnReset { font: 400 15px/1.15 system-ui, sans-serif; white-space: pre-line; }
#turn.compact { gap: 4px; }
#turn.compact button { min-width: 48px; width: 48px; padding: 2px 0; }
#turn.compact #turnReset { font-size: 13px; }
#turn button:active, #mpMode:active, #mpSet:active { filter: brightness(.8); }
#thumb, #mpLook { position: fixed; z-index: 6; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 3px solid rgba(255,255,255,.6); pointer-events: none; box-sizing: border-box; }
#thumb i, #mpLook i { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255,255,255,.7); }
#mpLook { opacity: .4; }
#mpMode[hidden], #mpSet[hidden], #mpOpts[hidden], #mpBase[hidden], #turn[hidden], #thumb[hidden], #mpLook[hidden] { display: none; }
