/* 手機版面與觸控（js/viewport.js 把穩定尺寸與安全區寫進 --vw／--vh／--sal／--sat／--sar／--sab）。放在所有樣式之後載入。 */
html{height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation;background:#0b0710}
body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;-webkit-touch-callout:none;background:#0b0710}
/* 遊戲畫面縮進安全區（瀏海、圓角、底部小白條）並用「穩定的可見尺寸」定位：不用 100vh／inset:0（會被網址列蓋住或隨網址列收放忽大忽小）；安全區以外是純色底 */
#app,.u2-root,#rotate,#loading{inset:auto;left:var(--sal,0px);top:var(--sat,0px);width:var(--vw,100%);height:var(--vh,100%)}
/* 圖片、畫布：不能長按存圖、拖曳、選取 */
img,canvas,svg{-webkit-touch-callout:none;-webkit-user-drag:none;user-select:none;-webkit-user-select:none}
input,textarea{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
/* 全螢幕鈕（右上角，音效鍵旁） */
#fsbtn{display:grid;place-items:center;width:32px;height:32px;min-height:0;padding:0;flex:none}
#fsbtn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#fsbtn.on{opacity:.75}
/* 加入主畫面的提示（iPhone） */
#a2hs{position:absolute;left:50%;bottom:calc(14px + 0px);transform:translateX(-50%);z-index:95;width:min(86%,420px);padding:11px 14px 12px;border-radius:12px;background:rgba(12,24,42,.94);border:1.5px solid rgba(255,255,255,.3);box-shadow:0 6px 18px rgba(0,0,0,.5);color:#fff;font:500 12px/1.5 "Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;text-align:left}
#a2hs b{display:block;font:900 14px "Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;color:#ffe9a8;margin-bottom:2px}
#a2hs p{margin:0 0 8px;color:#dbe5ee}
#a2hs button{height:30px;padding:0 18px;border-radius:15px;font:900 12.5px "Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;color:#fff;background:linear-gradient(180deg,#d4f03a 0,#a6d511 45%,#7fb000 100%);border:1.5px solid #4a7400;text-shadow:0 1px 0 #3d6200}
