/* Visible UI is drawn by Phaser. DOM provides accessibility semantics only. */
#ui > #profile { position:fixed;left:var(--profile-left,0px)!important;top:var(--profile-top,0px)!important;right:auto!important;bottom:auto!important;width:var(--profile-width,0px)!important;height:var(--profile-height,0px)!important;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none;transition:none;display:none;overflow:visible;pointer-events:none;z-index:20; }
#ui > #profile.on { display:block; }
#profile .pc-semantic-button { position:absolute;margin:0;padding:0;border:0;opacity:0;pointer-events:none; }
#profile .pc-screenreader { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:pre-line;border:0; }

/* 人物卡占据底部时收起旧快捷入口，关闭卡片后自动恢复。 */
#ui:has(> #profile.on) > :is(#home-btn, #book-btn, #mail-btn) { visibility:hidden; pointer-events:none; }

/* 动态弹窗独立阅读，居民头像让开右上关闭按钮。 */
#ui:has(> #profile.on[data-view="journal"]) > #roster { visibility:hidden; pointer-events:none; }
