/* 手机全屏（fullscreen-helper.mjs）：进游戏前页面左上角。
   iPhone Safari 显示“添加到主屏幕”提示，支持全屏的触屏浏览器（安卓、iPad）显示“全屏”按钮，两者不会同时出现。
   层级 4：盖过登录场景、选服（2）、账号注册按钮（3），低于提示框（.prompt-layer 10）和地图加载层（100）。 */
.home-screen-tip,.fullscreen-toggle{position:absolute;z-index:4;left:max(10px,env(safe-area-inset-left));top:max(10px,env(safe-area-inset-top))}
.home-screen-tip[hidden],.fullscreen-toggle[hidden]{display:none}
.home-screen-tip{box-sizing:border-box;max-width:min(290px,calc(100% - 20px));padding:7px 36px 7px 10px;border:1px solid #c8962a;border-radius:4px;background:#1b1209eb;box-shadow:0 2px 10px #0009;color:#f1dcaa;font:12px/1.6 "Microsoft YaHei","PingFang SC",sans-serif}
.home-screen-tip p{margin:0}
.home-screen-tip b{color:#ffe08a;font-weight:600}
.home-screen-tip-sub{display:block;margin-top:2px;color:#c9b383;font-size:11px}
.home-screen-tip-icon{display:inline-block;width:14px;height:14px;margin:0 2px;vertical-align:-2px;color:#7fb8ff}
/* 关闭钮触摸区 40×40（手指好点），叉号本身不放大 */
.home-screen-tip-close{position:absolute;right:-4px;top:-4px;width:40px;height:40px;padding:0;border:0;background:transparent;color:#d8c08a;font:18px/40px Arial,sans-serif;cursor:var(--client-cursor);touch-action:manipulation}
.home-screen-tip-close:focus-visible,.fullscreen-toggle:focus-visible{outline:1px dotted #f5d85a;outline-offset:1px}
.fullscreen-toggle{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #c8962a;border-radius:4px;background:linear-gradient(#6a3c12e6,#2e1606e6);color:#ffe8a8;box-shadow:0 2px 8px #0008;cursor:var(--client-cursor);touch-action:manipulation}
.fullscreen-toggle svg{width:18px;height:18px}
.fullscreen-toggle:active{translate:0 1px}
/* 手动全屏失败时的提示，紧挨全屏按钮右边，3 秒后隐藏 */
.fullscreen-note{position:absolute;z-index:4;left:calc(max(10px,env(safe-area-inset-left)) + 42px);top:max(10px,env(safe-area-inset-top));margin:0;padding:0 10px;border:1px solid #c8962a;border-radius:4px;background:#1b1209eb;color:#f1dcaa;font:12px/32px "Microsoft YaHei","PingFang SC",sans-serif;white-space:nowrap;pointer-events:none}
.fullscreen-note[hidden]{display:none}
