#social-town{position:absolute;inset:0;z-index:130;background:#263a37;color:#ece9d7;font-family:"Microsoft YaHei",sans-serif;isolation:isolate;overflow:hidden}
#social-town[hidden],#social-town [hidden]{display:none!important}#social-town button{font:inherit;color:inherit;border:1px solid #c2b58b66;background:#21383fed;border-radius:5px;min-height:40px;padding:8px 12px;cursor:pointer}#social-town button:focus-visible,#social-town input:focus-visible{outline:2px solid #efd299;outline-offset:2px}#social-town button:hover{background:#345259}#social-town button:disabled{opacity:.5}
.social-world{display:block;width:100%;height:100%;touch-action:none}.social-header{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;justify-content:space-between;gap:12px;align-items:flex-start;pointer-events:none}.social-header>div{background:linear-gradient(90deg,#192e38f5,#192e38c0);border-left:2px solid #d4bc80;padding:10px 18px;display:grid;gap:3px}.social-header strong{font:24px Georgia,"Microsoft YaHei",serif;letter-spacing:4px}.social-header small{color:#d7c695;font-size:11px;letter-spacing:2px}.social-header span{font-size:11px;color:#c9ddd7}.social-header nav{display:flex;gap:7px;pointer-events:auto}.social-hint{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);margin:0;padding:6px 14px;background:#1c343ac7;font-size:11px;white-space:nowrap;pointer-events:none}
.social-stick{position:absolute;left:max(22px,env(safe-area-inset-left));bottom:max(22px,env(safe-area-inset-bottom));width:96px;height:96px;border-radius:50%;border:1px solid #e4e4c788;background:#273d4066;touch-action:none;display:grid;place-items:center}.social-stick i{display:block;width:42px;height:42px;background:#b1cbb36e;border-radius:50%;border:1px solid #e2eac499;pointer-events:none}
.social-pane{position:absolute;right:max(12px,env(safe-area-inset-right));top:70px;bottom:max(16px,env(safe-area-inset-bottom));width:min(340px,calc(100% - 24px));display:flex;flex-direction:column;background:#172b35f5;border:1px solid #b8a37399;border-radius:8px;box-shadow:0 10px 30px #0004;overflow:hidden}.social-pane-heading{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #9a956d55}.social-pane-heading button{font-size:22px!important;padding:0!important;width:36px}.social-pane-body{padding:10px 14px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;flex:1;min-height:0}.social-message{margin:0 0 12px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.social-message button{border:0!important;background:none!important;min-height:24px!important;padding:0 5px 0 0!important;color:#d8bd80!important}.social-chat-form{display:flex;padding:8px;gap:6px;border-top:1px solid #9a956d55}.social-chat-form input{min-width:0;flex:1;font:14px "Microsoft YaHei",sans-serif;color:#fff;background:#0d2028;border:1px solid #718282;border-radius:4px;padding:8px}.social-error{margin:0;padding:0 10px 6px;color:#ffd0ac;font-size:12px}.social-roster-row{display:grid;width:100%;text-align:left;margin-bottom:7px;gap:5px}.social-roster-row span{font-size:11px;color:#aec6c8}.social-card{text-align:center}.social-card img{width:68px;height:80px;object-fit:cover;border:1px solid #bca777;border-radius:5px}.social-card h3{margin:8px}.social-card p{font-size:13px;color:#c8d4d2;margin:6px}.social-card button{margin-top:12px}.social-empty{font-size:13px;color:#b3c3c4}.social-connection{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);width:min(350px,80%);padding:20px;text-align:center;background:#1e313aef;border:1px solid #d6bd80;border-radius:8px}.social-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-height:380px){.social-header>div{padding:6px 12px}.social-header strong{font-size:18px}.social-header nav{gap:4px}.social-header button{padding:6px 8px!important;font-size:12px!important}.social-pane{top:62px;bottom:8px}.social-stick{width:80px;height:80px;bottom:12px}.social-hint{bottom:8px;font-size:10px;left:53%}}
@media(orientation:portrait){.social-header{flex-wrap:wrap}.social-header>div{flex:1}.social-header nav{width:100%}.social-header nav button{flex:1;font-size:12px!important}.social-pane{top:156px;bottom:132px}.social-hint{bottom:130px}.social-stick{bottom:22px}.social-header strong{font-size:22px}}
.social-menu-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:10px 16px!important;margin:0 0 12px;border-color:#d9bb79!important}.social-menu-entry small{font-size:12px;color:#c7d6d5}@media(max-width:620px){.social-menu-entry{display:grid;text-align:left}}
.social-invite,.social-party-member{padding:12px 0;border-bottom:1px solid #b8a37344}.social-invite>div,.social-party-member>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.social-party-member>div:first-child{display:grid;gap:5px;margin-bottom:8px}.social-party-member small,.social-party-note{color:#b9ccc9;font-size:12px;line-height:1.6}.social-party-summary{color:#ead295}.social-pane-body p{line-height:1.6}.social-pane-body [data-party-action]{min-height:44px!important}.social-header nav{flex-wrap:wrap;justify-content:flex-end}@media(max-width:600px) and (orientation:landscape){.social-header>div{padding:5px 8px}.social-header strong{font-size:16px}.social-header nav button{font-size:11px!important;padding:6px!important}.social-header{gap:4px}.social-pane{top:66px}}
.social-mastery{border-top:1px solid #b8a37355;padding:8px 0 14px}.social-mastery h4{margin:10px 0;color:#ead49f}.social-mastery>p{font-size:12px;color:#c6d8d7}.social-mastery-options{display:grid;gap:10px}.social-mastery article{border:1px solid #879b9955;background:#243b44;padding:12px;border-radius:6px}.social-mastery article.is-equipped{border-color:#dcc487;background:linear-gradient(125deg,#444733,#263c42)}.social-mastery article header{display:flex;align-items:center;justify-content:space-between;gap:10px}.social-mastery article b{font-size:17px;color:#efd89f}.social-mastery small{font-size:12px;line-height:1.7;color:#b8cfcd}.social-mastery article p{font-size:13px;margin:9px 0}.social-mastery button{min-height:44px!important;width:100%;margin-top:8px}.social-mastery button[aria-pressed=true]{opacity:1!important;color:#ead49f!important}

#social-town .online-passage{position:absolute;right:max(22px,env(safe-area-inset-right));bottom:max(28px,env(safe-area-inset-bottom));min-width:140px;min-height:48px;box-sizing:border-box;border-color:#dec68b;background:#213842ee;font-size:12px;z-index:1;pointer-events:auto;touch-action:manipulation}
#social-town.in-coop>[data-town-gate]{display:none!important}
#social-town .field-passage{left:calc(50% - 70px);right:auto;bottom:18px}
@media(orientation:portrait){#social-town .field-passage{left:12px;right:auto;bottom:160px}}

#social-town .campaign-board{position:absolute;right:max(22px,env(safe-area-inset-right));bottom:86px;min-height:44px;font-size:12px;border-left:3px solid #d8c28e;background:#18303aee}
#social-town.in-coop>.campaign-board{display:none!important}
.field-campaign-story>small{color:#acc4c5;font-size:11px}.field-campaign-story h3{font:23px Georgia,serif;letter-spacing:3px;color:#ead5a2;margin:12px 0}.field-campaign-story p{font-size:12px;color:#c7d6d5}.field-campaign-story ol{list-style:none;margin:18px 0;padding:0;display:grid;gap:12px}.field-campaign-story li{display:flex;gap:10px;align-items:flex-start;border-left:1px solid #8fa4a566;padding:5px 0 8px 10px}.field-campaign-story li>b{border:1px solid #8fa4a5;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;flex-shrink:0;font-size:12px}.field-campaign-story li>div{flex:1;display:grid;gap:5px}.field-campaign-story li small,.field-campaign-story li span{font-size:11px;color:#b6cac9}.field-campaign-story progress{width:100%;height:6px;accent-color:#b8cc9f}.field-campaign-story .is-restored{border-color:#d5be80;color:#e7d39b}.campaign-finale{padding:12px;background:#b99d4120;border:1px solid #d5be8060}.campaign-service{display:grid;gap:7px;padding:18px 0;font-size:12px}.campaign-service small{font-size:11px;line-height:1.6;color:#b6cac9}.field-campaign-story>button{width:100%;min-height:44px!important;margin:6px 0}
/* The invitation pauses the personal scene; town guidance remains part of the live town. */
.online-invitation{position:absolute;inset:0;z-index:45;display:grid;place-items:center;background:#0c1d2470;padding:16px;box-sizing:border-box}
.online-invitation[hidden],.town-guide[hidden]{display:none}
.online-invitation article{width:min(580px,100%);max-height:100%;overflow:auto;box-sizing:border-box;padding:22px;display:grid;grid-template-columns:76px 1fr;gap:12px 18px;background:linear-gradient(135deg,#25434c,#162b35);border:1px solid #b59e6b;border-radius:5px;box-shadow:0 12px 40px #07131c77;color:#eee4cd}
.online-invitation img{width:76px;height:102px;object-fit:cover;border:1px solid #a79269}
.online-invitation h2{font-size:21px;color:#ebd5a0;font-weight:500;margin:5px 0 10px}
.online-invitation p{line-height:1.7;font-size:14px;margin:0 0 8px}
.online-invitation small{color:#bdd2d0;font-size:12px;line-height:1.5}
.online-invitation footer{grid-column:1/-1;display:flex;gap:10px}
.online-invitation button,#social-town .town-guide button{min-height:44px;border:1px solid #99a49b;border-radius:3px;background:#2b4853;color:#f0e5c9;padding:8px 13px;cursor:pointer;touch-action:manipulation}
.online-invitation [data-online-accept]{background:#d1bd86;color:#172f37;border-color:#e7d7a7}
.online-invitation button:focus-visible,.town-guide button:focus-visible{outline:2px solid #f2d58c;outline-offset:2px}
.town-guide{position:absolute;z-index:5;left:155px;bottom:16px;width:min(400px,calc(100% - 320px));padding:12px;background:#1a303bec;border:1px solid #a49168;border-radius:4px;box-sizing:border-box;max-height:calc(100% - 84px);overflow:auto;color:#ede2c8}
.town-guide header{display:flex;align-items:center;gap:10px}.town-guide header img{width:37px;height:48px;object-fit:cover}.town-guide header div{flex:1;display:grid;gap:4px}.town-guide header b{font-size:16px;color:#f0d49b;font-weight:500}.town-guide header small{font-size:11px;color:#c4c9b8}.town-guide header button{width:44px;font-size:22px;padding:0}
.town-guide p{font-size:13px;line-height:1.65;margin:10px 0}.town-guide-role{display:block;font-size:11px;line-height:1.5;color:#b9d1d3}.town-guide footer{display:flex;gap:8px;margin-top:10px}.town-guide footer button:first-child{flex:1}
@media(max-width:650px) and (orientation:landscape){.town-guide{left:128px;bottom:10px;width:calc(100% - 266px);max-height:calc(100% - 73px);padding:8px}.town-guide-role{font-size:11px}.online-invitation article{padding:12px;gap:8px 12px}.online-invitation h2{font-size:18px}.online-invitation p{margin-bottom:3px}}
@media(orientation:portrait){.town-guide{left:12px;bottom:112px;width:calc(100% - 24px);max-height:calc(100% - 290px)}.online-invitation article{grid-template-columns:50px 1fr;padding:16px;gap:12px}.online-invitation img{width:50px;height:70px}.online-invitation footer{flex-direction:column}}

#social-town .mist-passage{bottom:140px;max-width:190px;min-height:44px}

#social-town.at-mist-passage>.social-hint{display:none}

/* Screen settings stay above the live town/field, without opening a solo menu. */
#social-town [data-online-screen]{width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:9px!important}#social-town [data-online-screen] svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
.online-screen-picker[hidden]{display:none!important}.online-screen-picker{position:absolute;inset:0;z-index:160;display:grid;place-items:center;padding:16px;background:#0c1d29c9;color:#eee5cd;box-sizing:border-box}.online-screen-picker section{width:min(480px,100%);max-height:100%;overflow:auto;box-sizing:border-box;border:1px solid #cbb88799;background:linear-gradient(140deg,#30434e,#182c38);padding:22px}.online-screen-picker small{color:#ceb786;letter-spacing:3px}.online-screen-picker h2{font:normal 23px "Microsoft YaHei",sans-serif;margin:10px 0}.online-screen-picker p{font:14px/1.7 "Microsoft YaHei",sans-serif;margin:12px 0}.online-screen-picker section>div{display:flex;gap:8px;flex-wrap:wrap}.online-screen-picker button{font:14px "Microsoft YaHei",sans-serif;min-height:44px;padding:9px 13px;border:1px solid #bda877;background:#ead8ab;color:#1b303b;cursor:pointer}.online-screen-picker button+button{background:#243d4a;color:#eee5cd}.online-screen-picker button:focus-visible{outline:2px solid #f5dea6;outline-offset:3px}.online-screen-picker .online-screen-error{color:#f1c7a1}.online-screen-picker .online-screen-error:empty{display:none}
@media(max-height:360px){.online-screen-picker section{padding:14px}.online-screen-picker h2{font-size:20px}.online-screen-picker p{margin:8px 0;font-size:12px}}
@media(orientation:portrait){#social-town .social-header nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 44px;gap:7px}#social-town .social-header nav button{min-height:44px;white-space:nowrap;padding:7px 5px!important}#social-town .social-header nav [data-online-screen]{grid-column:4;grid-row:1 / span 2;align-self:center;justify-self:end}}
/* Keep the mobile quest beside the status area, clear of the central crowd. */
#game[data-mobile=true] #social-town .world-agenda{top:77px;left:max(10px,env(safe-area-inset-left));right:auto;transform:none;width:154px;max-width:28%;height:54px;box-sizing:border-box;padding:0}
#game[data-mobile=true] #social-town .world-agenda strong{position:absolute;top:5px;left:9px;right:8px;line-height:16px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
#game[data-mobile=true] #social-town .world-agenda button{width:100%;height:54px;min-height:54px;margin:0;padding:22px 8px 4px;font-size:11px;border:0;background:transparent;color:#ecd5a3;text-align:left}
#game[data-mobile=true] #social-town .world-agenda p,#game[data-mobile=true] #social-town .social-hint,#social-town:has(.online-forge-entry:not([hidden])) .social-hint{display:none}
#social-town .town-guide{z-index:30;background:#192e38f7}
#social-town.guide-open .world-agenda{visibility:hidden}
#social-town.guide-open>.social-world,#social-town.guide-open>.social-stick{pointer-events:none}
