/* 返回按钮固定在右上角，只有文字、没有方框（2026-10-12，src/js/back-history.js）：页面滚到哪里都能直接返回，不用先滑回顶部。
   每一页（首页除外）都有这一个返回；原来写在页头、场景里的返回按钮（← 返回 / × / ← 首页 / ‹ 商业街 / ← 返回城市）统一收起。
   2026-10-13：文字下垫一层与页面同色的底（无边框、无阴影），滚动时不和下面的内容叠字，压在深色卡片上也看得清。 */
.pw-back{position:fixed;z-index:120;top:var(--pw-space-3);right:var(--pw-space-3);display:inline-flex;align-items:center;gap:var(--pw-space-1);min-height:32px;padding:0 var(--pw-space-3);border:0;border-radius:var(--pw-radius-round);background:var(--pw-color-canvas);color:var(--pw-color-ink);font-size:var(--pw-text-sm);font-weight:var(--pw-weight-semibold);box-shadow:none;cursor:pointer}
.pw-back[hidden]{display:none}
.pw-back:focus-visible{outline:2px solid var(--pw-color-action);outline-offset:2px}

/* 收起原来的返回按钮，返回统一由右上角这一个负责 */
#modal .modal-head .close,#modal .modal-head button.close,#modal .miniapp-close,#modal [data-street="back-from-service"],#modal .close[data-swap],
.scene-back,.street-back,#game-return,.hall-header [data-hall="home"]{display:none!important}

/* 给右上角的返回让出位置：页头右侧的内容、吸顶的栏目条向左让开 */
#modal .modal-head,#modal .harbor-top,#modal .miniapp-bar,
.district-scene .scene-top,.commerce-directory .street-top,.commerce-directory .street-sub,.hall-header,#district-scene .hall-page .hall-tabs,.game-directory-head{padding-right:calc(var(--pw-space-3) + 72px)}
