/* 手機虛擬搖桿（js/joystick.js；2026-11-17）。自己畫：半透明深色玻璃底座＋淺色搖桿頭＋細亮線的方向提示，不用原版 UI 美術、不用粗邊框、不發亮黃光。
   #joy 在 #app 裡面、蓋滿整個 #app（#app 已經縮進安全區，所以這裡不再加 env()）；整塊 pointer-events:none，手指一律穿到下面的 canvas。
   底座固定 88×88（半徑 44，844×390 舞台的大小），位置與縮放全部由 JS 用 transform 設定（整體跟著畫面縮放，向量圖在高 DPI 照樣清楚）。
   閒置 35% 不透明，使用中 75%。層級：蓋過 #hud（15），在 #windows（20）、#modal（50）之下。 */
#joy{position:absolute;inset:0;z-index:16;pointer-events:none;overflow:hidden;contain:layout paint style}
#joy[hidden]{display:none}
.joy-base{position:absolute;left:0;top:0;width:88px;height:88px;opacity:.35;transform-origin:50% 50%;will-change:transform,opacity;transition:opacity .18s ease-out}
.joy-base.back{transition:opacity .18s ease-out,transform .2s cubic-bezier(.2,.8,.3,1)}
#joy.on .joy-base{opacity:.75;transition:opacity .08s linear}
/* 玻璃圓盤：深色半透明、上緣一道細亮邊（只有 1px，不是粗框） */
.joy-disc{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 50% 36%,rgba(58,80,110,.72) 0,rgba(22,34,54,.82) 58%,rgba(8,14,26,.92) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.32),inset 0 0 0 1px rgba(205,225,250,.2),0 0 0 1px rgba(6,12,22,.28),0 4px 14px rgba(0,0,0,.4)}
.joy-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.joy-svg .rim{fill:none;stroke:rgba(235,245,255,.6);stroke-width:.9}
.joy-svg .ring{fill:none;stroke:rgba(225,238,255,.22);stroke-width:.8}
.joy-svg .dot{fill:rgba(225,238,255,.45)}
.joy-svg .ch{fill:none;stroke:rgba(230,242,255,.78);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .08s linear}
.joy-base.u .ch.u,.joy-base.d .ch.d,.joy-base.l .ch.l,.joy-base.r .ch.r{stroke:#fff}
/* 方向線：從底座中心指向搖桿頭的一條細亮線（JS 設旋轉與長度） */
.joy-line{position:absolute;left:44px;top:43.2px;width:1px;height:1.6px;border-radius:1px;background:linear-gradient(90deg,rgba(235,245,255,0),rgba(235,245,255,.9));transform-origin:0 50%;opacity:0}
/* 搖桿頭：淺色的圓（半徑 20），上亮下暗，一圈很淡的內環 */
.joy-knob{position:absolute;left:24px;top:24px;width:40px;height:40px;border-radius:50%;background:radial-gradient(circle at 36% 28%,#fbfdff 0,#dce9f7 44%,#a8bdd6 100%);box-shadow:0 2px 6px rgba(0,0,0,.45),inset 0 1px 1px #fff,inset 0 -3px 5px rgba(52,82,122,.38);will-change:transform}
.joy-knob::after{content:"";position:absolute;inset:10px;border-radius:50%;border:1px solid rgba(70,100,140,.3)}
@media (prefers-reduced-motion:reduce){.joy-base,.joy-base.back{transition:opacity .1s linear}}
/* 拓荒選單（js/inner/screens2.js pauseMenu）：手機又有「天賦測試」又加了「搖桿」鈕時按鈕多一顆，844×390 放不下，縮小一點（按鈕仍 ≥ 38px 高） */
.u2-root .ip2.dense{gap:6px;padding:11px 16px 12px}
.u2-root .ip2.dense .go{height:40px;margin-top:2px}
.u2-root .ip2.dense .bt{height:38px;column-gap:9px}
.ip2.dense .bt i{font-size:10px;line-height:1.15}
