.in-coop>.social-header,.in-coop>.social-stick,.in-coop>.social-hint,.in-coop>.social-pane,.in-coop>.social-connection{display:none!important}.coop-battle{position:absolute;inset:0;pointer-events:none;font-size:12px}.coop-battle button,.coop-stick{pointer-events:auto;touch-action:none}.coop-header{position:absolute;top:max(10px,env(safe-area-inset-top));left:16px;right:16px;display:flex;justify-content:space-between;gap:8px}.coop-header>div{display:grid;background:#1a3038ed;border-left:2px solid #d1ba80;padding:9px 14px;gap:5px}.coop-header small{color:#d5c090;font-size:10px}.coop-header strong{font-size:15px;font-weight:normal}.coop-header button{align-self:start;min-height:44px!important}.coop-team{position:absolute;top:78px;left:16px;width:145px;display:grid;gap:5px}.coop-member{background:#192f38db;padding:6px 9px;border-left:2px solid #89b7b3;display:grid;gap:3px}.coop-member.is-self{border-color:#d9bd7b}.coop-member b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.coop-member small{font-size:10px;color:#c4d7cf}.coop-member meter{height:7px;width:100%;accent-color:#91c4a6}.coop-objective{position:absolute;top:8px;left:50%;transform:translateX(-50%);color:#e6d6b0;font-size:11px;text-shadow:0 1px 4px #081e24;background:#18303788;padding:6px 10px}.coop-stick{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:26px;width:96px;height:96px;border:1px solid #ccd7c877;border-radius:50%;background:#28424755;display:grid;place-items:center}.coop-stick i{width:40px;height:40px;border-radius:50%;border:1px solid #d4e1c7aa;background:#9fbea266}.coop-controls{position:absolute;bottom:max(14px,env(safe-area-inset-bottom));right:18px;display:grid;grid-template-columns:repeat(3,64px);gap:8px;align-items:center}.coop-controls button{height:60px;border-radius:50%!important;padding:4px!important;display:grid;place-content:center;gap:3px}.coop-controls b{font-size:13px;font-weight:normal}.coop-controls small{font-size:9px;color:#cbd6cd}.coop-controls [data-coop-control=attack]{height:74px;grid-column:3;grid-row:1/3;border-color:#e2c78b!important;background:#8b815ac7!important}.coop-controls .pressed{background:#587a77!important;box-shadow:0 0 0 2px #e6d6a0}.coop-tip{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);font-size:10px;color:#d3e0d7;background:#19323baa;padding:4px 8px;white-space:nowrap}.coop-notice{position:absolute;pointer-events:auto;top:50%;left:50%;transform:translate(-50%,-50%);width:min(370px,calc(100% - 70px));box-sizing:border-box;background:#192e38f7;border:1px solid #d7bd86;padding:22px;border-radius:8px;text-align:center;box-shadow:0 12px 60px #10222977}.coop-notice h3{font-size:19px;font-weight:normal;color:#ecd6a2;margin:0 0 12px}.coop-notice p{line-height:1.7;margin:0 0 16px}.coop-notice button{min-height:44px!important;margin:4px}.social-coop-entry{padding-top:10px;margin-top:12px;border-top:1px solid #ccbd8e55}.social-coop-entry button{min-height:44px!important;margin:4px 4px 4px 0}.social-coop-entry h4{font-size:16px;font-weight:normal;color:#ecd499;margin:8px 0}.social-coop-entry small{display:block;color:#bdd1ca;line-height:1.7}
@media(max-height:400px){.coop-team{top:70px;width:126px}.coop-member{padding:4px 6px;gap:1px}.coop-header>div{padding:6px 10px}.coop-objective{top:66px;left:50%;max-width:40%;text-align:center}.coop-controls{grid-template-columns:repeat(3,54px);gap:6px;right:12px;bottom:12px}.coop-controls button{height:50px}.coop-controls [data-coop-control=attack]{height:66px}.coop-stick{width:80px;height:80px;bottom:16px;left:18px}.coop-tip{display:none}}
@media(orientation:portrait){.coop-header{left:12px;right:12px}.coop-team{top:90px;left:12px;right:12px;width:auto;grid-template-columns:1fr 1fr}.coop-objective{top:192px;left:50%;width:80%;text-align:center}.coop-controls{grid-template-columns:repeat(3,58px);right:12px;gap:6px;bottom:28px}.coop-stick{left:16px;bottom:42px;width:90px;height:90px}.coop-tip{bottom:0;font-size:9px}.coop-notice{width:calc(100% - 32px)}}
@media(min-width:1200px) and (min-height:700px){.coop-header{top:22px;left:24px;right:24px}.coop-header strong{font-size:21px}.coop-header small{font-size:12px}.coop-team{top:106px;left:24px;width:195px;gap:8px}.coop-member{padding:9px 12px;gap:6px}.coop-member b{font-size:14px}.coop-member small{font-size:12px}.coop-controls{right:32px;bottom:28px;grid-template-columns:repeat(3,80px);gap:12px}.coop-controls button{height:76px}.coop-controls [data-coop-control=attack]{height:92px}.coop-controls b{font-size:16px}.coop-controls small{font-size:11px}.coop-stick{width:112px;height:112px;bottom:34px;left:32px}.coop-objective{font-size:14px;top:22px}.coop-tip{font-size:12px;bottom:18px}}
.social-disciplines{border-top:1px solid #ccb98555;margin-top:18px;padding-top:12px}.social-disciplines h4{font-size:16px;font-weight:normal;color:#ecd499;margin:0 0 10px}.social-disciplines>div{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.social-disciplines button{min-height:60px!important;margin:0!important;display:grid;gap:4px;justify-items:center;padding:7px!important}.social-disciplines button b{font-size:20px;color:#d9c699;font-weight:normal}.social-disciplines button[aria-pressed=true]{background:#dfc88d!important;color:#263937!important;border-color:#f4dfae!important}.social-disciplines button[aria-pressed=true] b{color:#263937}.social-disciplines p{line-height:1.7;font-size:13px}.social-disciplines small{display:block;font-size:11px;line-height:1.7;color:#bdcfc8}.coop-resource{position:absolute;right:18px;top:78px;width:170px;background:#1a3038df;padding:9px 12px;display:grid;gap:5px;border-right:2px solid #c7b67e}.coop-resource strong{font-size:12px;font-weight:normal}.coop-resource meter{width:100%;height:6px;accent-color:#a4cdd8}.coop-resource small{font-size:10px;color:#c6d7d5}.coop-tip{white-space:normal;max-width:48%;line-height:1.5;text-align:center}.coop-notice p{font-size:13px}
@media(max-height:400px){.coop-team .coop-member small{display:none}.coop-resource{top:64px;right:12px;width:136px;padding:6px 8px}.coop-resource strong{font-size:11px}}
@media(orientation:portrait){.coop-resource{top:228px;right:16px;left:auto;width:160px}.coop-tip{display:none}}
.coop-mechanic{position:absolute;top:14px;left:50%;transform:translateX(-50%);width:min(340px,calc(100% - 350px));box-sizing:border-box;padding:8px 12px;background:#182d38ed;border:1px solid #c1a76d99;border-radius:5px;display:grid;gap:5px}.coop-mechanic strong{font-size:12px;color:#f0d5a0;font-weight:normal}.coop-mechanic meter{width:100%;height:8px;accent-color:#dfa972}.coop-mechanic small{font-size:10px;color:#c4ded9;line-height:1.4}.has-mechanic .coop-objective{top:91px;max-width:38%;text-align:center}.has-mechanic .coop-header strong{font-size:14px}.coop-controls [data-coop-control=revive].pressed{border-color:#ecd59b!important;background:#727751!important}
@media(max-height:360px) and (orientation:landscape){.coop-mechanic{top:9px;padding:6px 8px}.coop-mechanic small{font-size:9px}.has-mechanic .coop-objective{top:87px;font-size:10px;max-width:35%}}
@media(orientation:portrait){.coop-mechanic{top:188px;width:calc(100% - 28px)}.has-mechanic .coop-objective{top:261px;max-width:85%;width:85%}.has-mechanic .coop-header strong{font-size:15px}.has-mechanic .coop-team{top:78px;gap:4px}.has-mechanic .coop-member{padding:4px 6px;gap:2px}.has-mechanic .coop-member small{display:none}.has-mechanic .coop-resource{top:146px;left:12px;right:12px;width:auto;grid-template-columns:1fr 110px;padding:6px 8px;gap:3px 8px;align-items:center}.has-mechanic .coop-resource strong{grid-row:1/3}.has-mechanic .coop-resource meter{grid-column:2;grid-row:1}.has-mechanic .coop-resource small{grid-column:2;grid-row:2}}
.coop-header nav{display:flex;gap:6px;align-items:start}.coop-header [data-online-sound]{min-width:44px!important;padding:6px!important;font-size:11px!important}.coop-feedback-line{position:absolute;top:42%;left:50%;transform:translateX(-50%);max-width:70%;margin:0;padding:7px 12px;color:#f2dfaa;background:#19333ae8;border-left:2px solid #d7bc80;font-size:12px;text-align:center;pointer-events:none}.coop-battle[data-feedback=guard],.coop-battle[data-feedback=parry]{box-shadow:inset 0 0 0 3px #cfe9b280}.coop-battle[data-feedback=hurt]{box-shadow:inset 0 0 24px #bd655750}@media(orientation:portrait){.coop-header>div{padding:7px 9px}.coop-header strong{font-size:13px}.coop-header nav{gap:4px}.coop-header button{padding:6px!important;font-size:11px!important}.coop-feedback-line{top:43%;width:max-content;max-width:85%}}

.social-missions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.social-missions button{margin:0!important;min-height:44px!important}.social-missions button[aria-pressed=true]{background:#dfc88d!important;color:#233b3d!important;border-color:#ecd8a4!important}.social-missions button:disabled{opacity:.8}

.is-escort .coop-objective{display:none}

.social-challenges{margin:12px 0;padding-top:10px;border-top:1px solid #bca37444}.social-challenges>b{font-size:13px;color:#e6d29e;font-weight:normal}.social-challenges>div{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:6px 0}.social-challenges button{margin:0!important;padding:5px!important;font-size:12px!important}.social-challenges button[aria-pressed=true]{background:#dfc88d!important;color:#233b3d!important}.social-challenges button:disabled{opacity:.65}

.coop-focus{position:absolute;right:18px;bottom:156px;width:148px;min-height:44px!important;padding:5px 8px!important;display:grid;gap:2px;text-align:left;background:#1a3038ec!important;border-color:#809fa5!important}.coop-focus b{font-size:11px;font-weight:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.coop-focus small{font-size:9px;color:#b8d1d8}.coop-focus[aria-pressed=true]{border-color:#bfe8ff!important;box-shadow:inset 2px 0 #bfe8ff}.coop-focus:disabled{opacity:.65}
@media(max-height:400px){.coop-focus{right:12px;bottom:130px;width:138px}}
@media(orientation:portrait){.coop-focus{right:12px;bottom:164px}}
@media(min-width:1200px) and (min-height:700px){.coop-focus{right:32px;bottom:212px;width:168px}.coop-focus b{font-size:13px}.coop-focus small{font-size:10px}}

.coop-signals{position:absolute;left:138px;bottom:24px}.coop-signals>button{min-height:44px!important;min-width:70px!important;padding:6px!important;font-size:11px!important;background:#1a3038ed!important}.coop-signal-menu{position:absolute;bottom:54px;left:0;display:grid;grid-template-columns:repeat(2,70px);gap:5px;padding:6px;background:#142c36f5;border:1px solid #c6b585;box-shadow:0 4px 18px #10202877}.coop-signal-menu button{min-height:44px!important;padding:6px!important;font-size:12px!important}.coop-signals p{position:absolute;bottom:48px;left:0;width:max-content;max-width:220px;margin:0;padding:6px 9px;background:#19323be8;border-left:2px solid #e5cc91;color:#f1dfb2;font-size:11px;line-height:1.5;pointer-events:none}
@media(max-height:400px){.coop-signals{left:112px;bottom:16px}.coop-signals p{max-width:190px}}
@media(orientation:portrait){.coop-signals{left:117px;bottom:32px}.coop-signals p{left:-100px;bottom:130px;max-width:220px}}
@media(min-width:1200px) and (min-height:700px){.coop-signals{left:160px;bottom:36px}}

@media(max-height:400px) and (orientation:landscape){.coop-signal-menu{left:36px}}
@media(orientation:portrait){.coop-signal-menu{left:-100px;bottom:112px}}

.is-bastion .coop-mechanic strong{line-height:1.5}.is-bastion .coop-mechanic meter{accent-color:#9cced1}.is-bastion .coop-tip{max-width:calc(100% - 280px);white-space:normal;text-align:center}.is-bastion .coop-mechanic small{font-size:9px}@media(max-height:400px) and (orientation:landscape){.is-bastion .coop-mechanic{top:64px;width:210px;max-width:calc(100% - 300px)}.is-bastion .coop-mechanic strong{font-size:10px}.is-bastion .coop-objective{top:149px;max-width:45%}}@media(orientation:portrait){.is-bastion .coop-mechanic strong{font-size:11px}.is-bastion .coop-tip{display:none}}

/* Keep field instructions above the return passage and between held controls. */
.coop-battle.is-field .coop-tip{bottom:calc(max(18px,env(safe-area-inset-bottom)) + 56px);margin:0;box-sizing:border-box;max-width:min(48%,calc(100% - 480px))}
@media(max-width:700px) and (orientation:landscape){
 .coop-battle.is-field .coop-header>div{padding:6px 10px}
 .coop-battle.is-field .coop-team{top:70px;width:126px}
 .coop-battle.is-field .coop-member{padding:4px 6px;gap:1px}
 .coop-battle.is-field .coop-member small{display:none}
 .coop-battle.is-field .coop-resource{top:64px;right:12px;width:136px;padding:6px 8px}
 .coop-battle.is-field .coop-resource strong{font-size:11px}
 .coop-battle.is-field .coop-mechanic{top:9px;padding:6px 8px}
 .coop-battle.is-field .coop-mechanic small{font-size:9px}
 .coop-battle.is-field .coop-objective{top:87px;font-size:10px;max-width:35%}
 .coop-battle.is-field .coop-controls{grid-template-columns:repeat(3,54px);gap:6px;right:12px;bottom:12px}
 .coop-battle.is-field .coop-controls button{height:50px}
 .coop-battle.is-field .coop-controls [data-coop-control=attack]{height:66px}
 .coop-battle.is-field .coop-stick{width:80px;height:80px;bottom:16px;left:18px}
 .coop-battle.is-field .coop-focus{right:12px;bottom:130px;width:138px}
 .coop-battle.is-field .coop-signals{left:112px;bottom:16px}
 .coop-battle.is-field .coop-tip{display:none}
}

@media(max-width:700px) and (orientation:landscape){.coop-battle.has-mechanic .coop-mechanic{width:160px;max-width:calc(100% - 408px)}}
.coop-controls [data-coop-control=revive]{position:relative;overflow:hidden}
.coop-interaction-progress{position:absolute;left:7px;bottom:3px;width:calc(100% - 14px);height:4px;margin:0;border:0;border-radius:3px;accent-color:#e8d3a0;pointer-events:none}
.coop-interaction-progress::-webkit-progress-bar{background:#203b3e;border-radius:3px}
.coop-interaction-progress::-webkit-progress-value{background:#e8d3a0;border-radius:3px}
.coop-interaction-progress::-moz-progress-bar{background:#e8d3a0;border-radius:3px}
.coop-controls [data-interaction=channeling]{border-color:#ead7a6!important;box-shadow:inset 0 0 0 2px #dfca8d55;background:#516b61ed!important}
.coop-controls [data-interaction=interrupted],.coop-controls [data-interaction=mixed-input]{border-color:#dfab87!important}
.coop-controls [data-interaction=downed]{border-color:#d9ae87!important;background:#735e4ce6!important}
.coop-member.is-downed{border-left:2px solid #d3a17b}
.coop-member.is-downed b,.coop-member.is-downed small{color:#f1bd96}

.coop-focus .coop-target-vital{width:100%;height:4px;min-height:0;padding:0;border:0;background:#102329;accent-color:#e4ac6a;pointer-events:none}.coop-target-vital::-webkit-meter-bar{background:#102329;border:0;border-radius:0}.coop-target-vital::-webkit-meter-optimum-value{background:#e4ac6a}.coop-target-vital::-moz-meter-bar{background:#e4ac6a}.coop-focus small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.coop-member.is-offline{border-color:#84999f}.coop-member.is-offline b,.coop-member.is-offline small{color:#bccbd0}.coop-member.has-withdrawn{border-color:#6e848b;background:#192f38b8}.coop-member.has-withdrawn meter[hidden]{display:none}

/* Reserve a real toolbar lane; full labels remain available on hover. */
.coop-header>div{box-sizing:border-box;max-width:min(27%,230px);min-width:0}.coop-header strong,.coop-header small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.coop-header nav{flex-shrink:0}.coop-mechanic{overflow-wrap:anywhere}.coop-mechanic strong{line-height:1.4}.coop-objective{line-height:1.5;overflow-wrap:anywhere}
@media(orientation:portrait){.coop-header>div{max-width:calc(100% - 218px);min-width:80px}}
.coop-resource>.automation-status{position:static;grid-column:1/-1;max-width:none;margin:0;padding:4px 0 0;border:0;border-top:1px solid #b9c7a344;background:none;font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px) and (orientation:landscape){.coop-header button{font-size:11px!important;padding:6px!important}.coop-battle.is-field .coop-header>div{padding:5px 8px;gap:3px}.coop-battle.is-field .coop-resource{padding:4px 8px;gap:3px}}

.world-atlas{position:absolute;inset:8px;z-index:85;background:#233840f5;border:1px solid #b5a67d;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;overflow:hidden;color:#f1e6c9}.world-atlas[hidden]{display:none}.world-atlas header{display:flex;justify-content:space-between;align-items:center;gap:12px}.world-atlas h2,.world-atlas p{margin:0}.world-atlas header button{min-width:44px;min-height:44px}.world-atlas-grid{overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;min-height:0}.world-atlas-grid button{display:flex;flex-direction:column;gap:6px;min-height:120px;padding:0 0 10px;overflow:hidden;border:1px solid #b1ab87;background:#203138;border-radius:8px;color:#efdfb7;text-align:left}.world-atlas-grid img{width:100%;height:90px;object-fit:cover}.world-atlas-grid strong,.world-atlas-grid small{padding:0 10px}.world-atlas-grid button:disabled{filter:saturate(.3);opacity:.65}.world-atlas-grid button:focus-visible{outline:3px solid #e4d396;outline-offset:-3px}@media(max-width:900px){.world-atlas-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.world-atlas-grid img{height:70px}.world-atlas h2{font-size:20px}}@media(max-width:500px){.world-atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-atlas{inset:6px;padding:10px}}
.coop-header [data-world-atlas]{min-width:44px!important;min-height:44px!important}
#social-town .world-atlas-grid{flex:1;grid-auto-rows:max-content;align-content:start;touch-action:pan-y}
#social-town .world-atlas-grid button{min-height:154px;padding:0 0 12px;flex:none}
#social-town .world-atlas-grid img{flex:none;background:linear-gradient(135deg,#314b4f,#21353c);display:block}
#social-town .world-atlas-grid strong,#social-town .world-atlas-grid small{flex:none;line-height:1.4}
#social-town .world-atlas header{flex:none}
#social-town .world-atlas header button{min-width:44px;min-height:44px}
@media(min-width:901px){#social-town .world-atlas-grid button{min-height:174px}}
.coop-header [data-cave-story]{min-width:44px!important;min-height:44px!important;flex-shrink:0}

#social-town .world-herbs{left:calc(50% - 70px);right:auto;bottom:74px}
@media(orientation:portrait){#social-town .world-herbs{left:12px;right:auto;bottom:216px}}

#social-town .world-person{left:calc(50% - 90px);right:auto;bottom:18px;min-width:180px;min-height:44px}
.world-person-panel{position:absolute;inset:0;z-index:95;display:flex;align-items:center;justify-content:center;padding:12px;background:#10252dde;box-sizing:border-box;color:#f1e6c9;touch-action:pan-y}
.coop-battle .coop-notice{z-index:100;background:#1a3038f7;pointer-events:auto;max-height:calc(100% - 24px);overflow:auto;box-sizing:border-box}
.coop-medicine{position:absolute;left:138px;bottom:76px;display:flex;gap:4px;z-index:7;pointer-events:auto}
#social-town .coop-medicine button{position:relative;width:44px;height:48px;min-width:44px!important;min-height:44px!important;margin:0!important;padding:3px!important;font-size:11px!important;line-height:1.15;background:#192f3bf2!important}
.coop-medicine img{width:30px;height:30px;object-fit:contain}.coop-medicine b{position:absolute;right:3px;top:2px;color:#f7dc98;font-size:11px;text-shadow:0 1px 3px #000}.coop-medicine small{display:block;font-size:9px;line-height:1;white-space:nowrap}
.medicine-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.shared-medicine-tray{position:absolute;z-index:95;left:50%;top:50%;transform:translate(-50%,-50%);width:min(370px,calc(100% - 24px));max-height:calc(100% - 16px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:8px;background:#1a3038fc;border:1px solid #c4b286;border-radius:8px;pointer-events:auto;box-shadow:0 8px 30px #0c1c2bcc}
.shared-medicine-tray header{display:flex;align-items:center;justify-content:space-between;gap:12px}.shared-medicine-tray strong{font-size:15px;font-weight:normal}.shared-medicine-tray header button{width:44px;min-height:44px!important;padding:4px!important;margin:0!important;font-size:22px!important}
.shared-medicine-tray>div{display:grid;gap:4px}.shared-medicine-tray [data-shared-medicine]{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:8px;text-align:left;min-height:48px!important;padding:4px 8px!important;margin:0!important;font-size:12px!important}.shared-medicine-tray img{width:32px;height:32px;object-fit:contain}.shared-medicine-tray b{display:block;font-size:13px;font-weight:normal}.shared-medicine-tray small{display:block;color:#bccdc6;font-size:11px;margin-top:3px}.shared-medicine-tray em{font-size:12px;font-style:normal}.shared-medicine-tray [aria-pressed=true]{border-color:#edd599!important;background:#58694c!important}.shared-medicine-tray footer{font-size:10px;color:#cdbf9b;margin-top:6px;text-align:center}
.coop-medicine[hidden],.shared-medicine-tray[hidden],.has-world-work .coop-medicine{display:none!important}
.coop-battle.is-field .coop-tip{display:none}
@media(max-height:450px),(max-width:900px){.coop-medicine{left:112px;bottom:68px}}
@media(min-width:1200px) and (min-height:700px){.coop-medicine{left:160px;bottom:88px}}
.coop-battle[inert],.coop-battle [inert]{pointer-events:none}
.world-person-panel[hidden]{display:none}
.world-person-panel .person-content{box-sizing:border-box;width:min(100%,540px);max-height:100%;overflow:auto;overscroll-behavior:contain;border:1px solid #b6a779;border-radius:12px;background:#263f44;padding:16px;box-shadow:0 12px 48px #10212890}
.world-person-panel header{display:flex;gap:12px;align-items:center}.world-person-panel header img{width:60px;height:68px;object-fit:cover;border:1px solid #b6a779;border-radius:5px}.world-person-panel header>div{flex:1}.world-person-panel h3{margin:3px 0;font-size:23px}.world-person-panel p{margin:8px 0;line-height:1.55;font-size:14px}.world-person-panel small{color:#c4d8cf;font-size:12px}.world-person-panel button{min-height:44px!important;min-width:44px!important;white-space:normal!important;touch-action:manipulation}.world-person-panel button:focus-visible{outline:3px solid #eddaa4;outline-offset:2px}.world-person-panel button:disabled{opacity:.5}.world-person-panel .person-affinity{color:#eddaa4;border-bottom:1px solid #b9c7a340;padding-bottom:8px}.person-status:empty{display:none}.person-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.person-actions button{display:flex;flex-direction:column;align-items:flex-start;padding:10px!important;gap:5px;text-align:left}.person-actions small{font-weight:normal;line-height:1.3}.person-confirm,.person-outcome{padding:12px;border:1px solid #b6a77977;background:#172f3580;border-radius:8px}.person-confirm button{margin:4px 8px 0 0}.world-person-panel details{margin-top:12px;border-top:1px solid #b9c7a340}.world-person-panel summary{padding:12px 0;cursor:pointer}.person-outcome p{white-space:pre-line}
@media(max-height:420px){.world-person-panel{padding:8px}.world-person-panel .person-content{padding:10px 14px}.world-person-panel header img{width:42px;height:46px}.world-person-panel h3{font-size:19px}.world-person-panel header p{margin:0}.person-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.world-person-panel p{font-size:12px}.person-actions button{padding:6px!important}}
@media(orientation:portrait){#social-town .world-person{left:12px;right:auto;bottom:272px}.world-person-panel{padding:8px}.world-person-panel .person-content{padding:14px}}

@media(orientation:landscape){#social-town .coop-battle.has-world-person .field-passage{bottom:74px}#social-town .coop-battle.has-world-person .world-herbs{bottom:130px}}

/* Shared craft stations keep the same world visible during actual work. */
.world-life{left:50%;right:auto;bottom:18px;transform:translateX(-50%);width:180px;height:44px;min-height:44px}
.world-life-dock{position:absolute;z-index:46;left:50%;bottom:14px;transform:translateX(-50%);width:min(420px,calc(100% - 280px));max-height:calc(100% - 86px);overflow:auto;box-sizing:border-box;padding:12px 16px;color:#efe2be;background:linear-gradient(140deg,#163c3aef,#152d2bf5);border:1px solid #ad9460;border-radius:12px;box-shadow:0 8px 32px #071b2366;pointer-events:auto}
.world-life-dock[hidden]{display:none}.world-life-dock header{display:flex;align-items:center;justify-content:space-between;gap:8px}.world-life-dock header button{width:auto;min-width:56px;min-height:44px;margin:0;padding:4px 8px}.world-life-dock p{margin:6px 0;font-size:13px;line-height:1.5}.world-life-dock progress{display:block;width:100%;height:8px;accent-color:#b6dbaa;margin:8px 0}.world-life-dock small{display:block;font-size:12px;margin-top:5px;min-height:18px;color:#c7d7c8}.life-tools{display:flex;gap:8px}.life-tools button{flex:1;min-width:0;min-height:44px;margin:0;padding:6px;border-color:#b99f66;touch-action:none}.life-tools button:active{background:#47786a}.life-timing{height:16px;background:#081b20;border:1px solid #69827a;position:relative;margin:8px 0;overflow:hidden}.life-timing[hidden]{display:none}.life-timing span{position:absolute;left:35%;width:30%;height:100%;background:#a18849}.life-timing.is-heat span{left:42%;width:28%}.life-timing i{position:absolute;height:100%;width:3px;background:#fff1cb;transform:translateX(-50%)}
.has-world-work .coop-controls,.has-world-work .coop-focus,.has-world-work .coop-resource,.has-world-work .coop-tip,.has-world-work .online-passage,.has-world-work .coop-objective{display:none!important}
.world-life-panel .person-content header img{object-fit:contain}.world-life-panel .person-actions small{white-space:normal}
@media (max-width:600px) and (orientation:portrait){.world-life{left:12px;bottom:272px;transform:none;width:174px}.world-life-dock{bottom:210px;width:calc(100% - 24px);max-height:36%;padding:10px 12px}}
@media (max-height:420px) and (orientation:landscape){.world-life-dock{bottom:8px;padding:6px 10px}.world-life-dock p{margin:3px 0}.world-life-dock small{font-size:11px;margin-top:2px}.world-life-dock progress{margin:5px 0}}
#social-town .world-life-dock button{min-height:44px;height:44px;min-width:44px}
#social-town .coop-battle .world-life{left:calc(50% - 90px);right:auto;bottom:18px;transform:none;min-width:180px;min-height:44px;height:44px}
@media(orientation:portrait){#social-town .coop-battle .world-life{left:12px;bottom:272px;min-width:174px;width:174px}}

#social-town .world-life-dock [data-life-instruction]{min-height:40px}#social-town .world-life-dock [data-life-message]{min-height:32px}
@media(max-height:450px) and (orientation:landscape){
 #social-town .world-life-dock.has-timing{width:min(420px,calc(100% - 230px));max-height:calc(100% - 68px);padding:6px 10px}
 #social-town .world-life-dock.has-timing [data-life-instruction]{min-height:20px;line-height:1.4;margin:3px 0}
 #social-town .world-life-dock.has-timing [data-life-message]{min-height:16px;line-height:1.4;margin-top:2px}
}

/* Shared original recipe patterns: visible touch targets, same ordered work. */
.life-categories{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.life-categories button[aria-pressed=true]{background:#385b50;border-color:#d8bd7b}
.life-pattern{position:relative;height:156px;touch-action:none}.life-pattern svg{position:absolute;inset:22px;width:calc(100% - 44px);height:112px;overflow:visible;pointer-events:none}.life-pattern polyline{fill:none;stroke:#aaa57a;stroke-width:1;vector-effect:non-scaling-stroke}
#social-town .world-life-dock .life-pattern button{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;padding:0;margin:0;touch-action:none;background:#193832;color:#d9ccae;border:1px solid #8d916b}
#social-town .world-life-dock .life-pattern button.current{background:#6c5a30;color:#fff3c3;border:2px solid #e3c984}.life-pattern button.done{background:#426c56!important}
#social-town .world-life-dock.has-pattern{bottom:10px;width:min(500px,calc(100% - 24px));max-height:calc(100% - 20px)}
#social-town .world-life-dock.has-pattern [data-life-instruction]{min-height:20px;margin:3px 0}#social-town .world-life-dock.has-pattern [data-life-message]{min-height:16px;margin-top:2px}.has-pattern progress{margin:4px 0}

/* Original beast bond plays in the shared world, with accessible touch orders. */
.life-beast-seal{display:grid;place-items:center;width:58px;height:58px;border:1px solid #cfb77c;border-radius:50%;font-size:30px;color:#f0d597;background:#1d4c42}.world-life-dock .bond-orders{display:flex;gap:6px;flex:1}.bond-orders button{flex:1;margin:0!important;padding:4px!important}.bond-orders button.done{background:#416856!important}.world-life-dock.has-bond>.life-tools{flex-wrap:wrap}.world-life-dock.has-bond .life-tools>.life-tools{flex-basis:100%}.world-life-dock.has-bond .life-timing span{left:35%;width:45%}
#social-town .world-life-dock.has-bond{width:min(420px,calc(100% - 24px))}.world-life-dock.has-bond [data-life-instruction]{min-height:34px!important}.world-life-dock.has-bond [data-life-message]{min-height:16px!important}
@media(orientation:portrait){#social-town .world-life-dock.has-bond{bottom:12px;max-height:32%}.has-world-work .coop-stick{opacity:.35}}

@media(max-height:450px) and (orientation:landscape){#social-town .world-life-dock.has-bond{left:auto;right:12px;bottom:8px;transform:none;width:min(300px,44vw);max-height:calc(100% - 68px);padding:6px 10px}.has-beast-work .coop-team .coop-member:not(.is-self){display:none}.has-beast-work .coop-stick{display:none}}

.coop-member b{display:flex;align-items:center;min-width:0}
.coop-member-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.coop-injury{flex-shrink:0;margin-left:5px;color:#edbd97;font-size:11px;font-weight:normal;white-space:nowrap}

/* Keep medicine and the fourth teammate clear of the short-landscape joystick. */
@media(max-height:450px),(max-width:900px){.coop-battle:not(.is-field) .coop-medicine{left:calc(max(16px,env(safe-area-inset-left)) + 148px)}}
@media(max-height:340px) and (orientation:landscape){.coop-battle:not(.is-field) .coop-team{gap:2px}.coop-battle:not(.is-field) .coop-member{padding:2px 6px;gap:0;min-height:0}.coop-battle:not(.is-field) .coop-member b{line-height:13px}.coop-battle:not(.is-field) .coop-member meter{height:5px}}

/* Shared breathing: compact landscape workspace, same original three breaths. */
.world-life-dock.has-breath{width:min(370px,calc(100% - 24px))}.practice-breath{display:grid;place-items:center;width:64px;height:64px;position:relative;margin:7px auto;background:conic-gradient(var(--practice-colour) var(--breath-turn),#36514f 0);border-radius:50%}.practice-breath i{position:absolute;inset:4px;background:#18332f;border-radius:50%}.practice-breath span{position:relative;color:var(--practice-colour);font-size:17px}.has-breath [data-life-instruction]{min-height:20px!important}.has-breath [data-life-message]{min-height:16px!important}.practice-links{margin-top:10px}.practice-links button{min-height:44px}.practice-summary{color:#e6d69e}.has-breath .life-tools button{touch-action:none}
@media(max-height:450px) and (orientation:landscape){#social-town .world-life-dock.has-breath{padding:6px 10px;left:auto;right:12px;bottom:8px;transform:none;width:min(300px,44vw);max-height:calc(100% - 68px)}.has-breath .practice-breath{width:48px;height:48px;margin:3px auto}}

.life-practice-seal{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #8bbdad;border-radius:50%;color:#b8e1cf;font-size:23px;background:#213e42}

@media(max-height:450px) and (orientation:landscape){.has-practice-work .coop-team .coop-member:not(.is-self){display:none}#social-town .world-life-dock.has-breath progress{display:none}#social-town .world-life-dock.has-breath p{font-size:12px;line-height:1.4}.world-life-dock.has-breath [data-life-message]{font-size:11px}}

/* The practice station can also be within reach of the return gate. */
#social-town .coop-battle.has-practice-entry .field-passage{bottom:72px!important}

.world-life-panel.is-practice .person-content>header{position:sticky;top:0;z-index:2;background:#243f47;isolation:isolate;padding-top:6px;padding-bottom:6px}.world-life-panel.is-practice .life-categories{display:none}
.breakthrough-content{box-sizing:border-box;width:min(640px,100%);max-height:100%;overflow:auto;padding:12px 16px;background:#233a43;border:1px solid #b5a575;border-radius:8px;color:#f1e6cb;font-size:14px;line-height:1.5}
.breakthrough-content header{position:sticky;top:-12px;z-index:2;display:flex;align-items:center;justify-content:space-between;background:#233a43;padding:6px 0;border-bottom:1px solid #8e997455;gap:10px}
.breakthrough-content h3{font-size:20px;margin:0}.breakthrough-content h4{font-size:17px;margin:8px 0}.breakthrough-content header small{font-size:11px;color:#c9c5ad}.breakthrough-content p{font-size:14px;line-height:1.5;margin:10px 0}
#social-town .breakthrough-content button{font:inherit;font-size:14px;min-height:44px;min-width:44px;padding:8px 12px;touch-action:manipulation}.breakthrough-content button:focus-visible{outline:2px solid #fff1ba;outline-offset:2px}
.breakthrough-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.breakthrough-choices button{display:flex;flex-direction:column;gap:5px;text-align:left;background:#314e55;border:1px solid #9ab4b5;border-radius:6px}.breakthrough-choices b{font-size:17px;color:#f4dda2}.breakthrough-choices span{font-size:13px}.breakthrough-choices small{font-size:12px;color:#d5dec5}.breakthrough-choices button:disabled{opacity:.65}.breakthrough-confirm>div{display:flex;gap:10px;justify-content:flex-end}.breakthrough-message:empty{display:none}.breakthrough-message{color:#edcc9f}.breakthrough-outcome{max-height:110px;overflow:auto;margin-top:10px}.breakthrough-outcome p{margin:4px 0}
#social-town .breakthrough-interact{left:50%;right:auto;bottom:14px;transform:translateX(-50%);min-width:180px;max-width:40%;min-height:44px;padding:7px 12px;font-size:13px;z-index:8;white-space:normal;touch-action:manipulation}
.breakthrough-hud{position:absolute;top:64px;left:50%;transform:translateX(-50%);width:min(390px,43%);box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;background:#1d343eeb;border:1px solid #c5bd88;border-radius:6px;z-index:7;pointer-events:auto}.breakthrough-hud>div{min-width:0}.breakthrough-hud strong{display:block;font-size:14px;line-height:1.3;color:#f5dfac}.breakthrough-hud small{display:block;font-size:11px;line-height:1.3;color:#d0dbe0}.breakthrough-hud button{min-height:44px!important;min-width:44px!important;padding:4px!important;font-size:12px!important;flex-shrink:0}
.has-breakthrough .coop-objective,.has-breakthrough .coop-tip,.has-breakthrough .coop-focus,.has-breakthrough .world-life,.has-breakthrough .world-herbs,.has-breakthrough .world-person{display:none!important}
/* During a personal trial, leave only the movement and dodge actions in view. */
#social-town .coop-battle.has-breakthrough .coop-controls{grid-template-columns:64px}
#social-town .coop-battle.has-breakthrough .coop-controls [data-coop-control]:not([data-coop-control=dash]),
#social-town .coop-battle.has-breakthrough .coop-signals,
#social-town .coop-battle.has-breakthrough .coop-resource strong,
#social-town .coop-battle.has-breakthrough [data-auto-combat],
#social-town .coop-battle.has-breakthrough [data-world-atlas],
#social-town .coop-battle.has-breakthrough [data-world-events],
#social-town .coop-battle.has-breakthrough [data-commission-board],
#social-town .coop-battle.has-breakthrough [data-coop-wave],
#social-town .coop-battle.has-breakthrough [data-region-story]{display:none!important}
@media(max-height:450px) and (orientation:landscape){#social-town .coop-battle.has-breakthrough .coop-controls{grid-template-columns:54px}}
@media(max-height:450px) and (orientation:landscape){.breakthrough-panel{padding:8px}.breakthrough-content{padding:8px 12px}.breakthrough-content header{top:-8px;padding:0 0 4px}.breakthrough-content h3{font-size:18px}.breakthrough-content header small{display:none}.breakthrough-content p{font-size:12px;margin:7px 0}.breakthrough-choices{gap:8px;margin-top:8px}.breakthrough-choices b{font-size:15px}.breakthrough-choices span,.breakthrough-choices small{font-size:12px}.breakthrough-hud{top:58px;padding:3px 6px}.has-breakthrough .coop-team .coop-member:not(.is-self){display:none}.breakthrough-outcome{max-height:85px}#social-town .breakthrough-interact{bottom:8px}}

/* Rest is a brief channel, with both hands free to interrupt and resume play. */
#social-town .world-life-dock.has-rest{width:min(260px,calc(100% - 320px));padding:6px 10px;bottom:12px;max-height:140px}
#social-town .world-life-dock.has-rest header strong{font-size:13px}
#social-town .world-life-dock.has-rest header button{min-width:44px;font-size:12px;padding:3px 6px}
#social-town .world-life-dock.has-rest p{font-size:12px;line-height:1.45;min-height:0;margin:3px 0}
#social-town .world-life-panel.is-rest .person-content{width:min(400px,calc(100% - 24px));max-height:calc(100% - 20px);padding:12px 16px}
#social-town .world-life-panel.is-rest header{position:sticky;top:0;background:#243f47;z-index:2;padding:0 0 8px}
#social-town .world-life-panel.is-rest header h3{font-size:18px;margin:2px 0}
#social-town .world-life-panel.is-rest .life-practice-seal{width:42px;height:42px;font-size:24px}
#social-town .world-life-panel.is-rest p{font-size:13px;line-height:1.5;margin:7px 0}
#social-town .world-life-panel.is-rest small{font-size:12px;line-height:1.5}
#social-town .world-life-panel.is-rest [data-rest-message]:empty{display:none}
.rest-preview{display:flex;gap:16px;flex-wrap:wrap;margin:8px 0;font-size:14px;color:#e8d49f}
#social-town .world-life-panel.is-rest [data-life-start]{min-height:44px;margin:8px 0 0;width:100%}
#social-town .world-life-dock.has-rest.rest-receipt{bottom:70px;pointer-events:none}
.world-life-panel.is-techniques{pointer-events:auto;padding:12px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);justify-content:stretch;place-items:center;background:#10252dbd}
.technique-sheet{box-sizing:border-box;min-width:0;min-height:0;border:1px solid #a59b78;border-radius:10px;box-shadow:0 12px 48px #10212890;align-items:stretch;justify-content:stretch;width:min(780px,calc(100% - 24px));height:min(470px,calc(100% - 24px));max-height:none;display:grid;grid-template-rows:48px 44px minmax(0,1fr) 60px;padding:0;overflow:hidden;background:#20323d;color:#ecdfb7}
.world-life-panel.is-techniques[hidden]{display:none}
.technique-header{display:flex;align-items:center;gap:12px;padding:0 12px;border-bottom:1px solid #63777a}
.technique-header h3{margin:0;font-size:18px}.technique-header small{margin-left:auto;font-size:12px;color:#becdc5}.technique-header button{width:44px;height:44px;padding:0}
.technique-slots{display:flex;gap:4px;padding:3px 10px}.technique-slots button{flex:1;min-height:38px;padding:4px 8px;font-size:14px}
.technique-content{min-height:0;display:grid;grid-template-columns:minmax(145px,.85fr) minmax(0,1.5fr);gap:12px;padding:4px 12px 8px}
.technique-book-list,.technique-detail{touch-action:pan-y;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
.technique-book-list{display:flex;flex-direction:column;gap:6px}.technique-book-list button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;min-height:54px;padding:7px 10px;flex-shrink:0}.technique-book-list b{font-size:14px}.technique-book-list small{font-size:11px;color:#becdc5}
.technique-slots [aria-pressed=true],.technique-book-list [aria-pressed=true]{border-color:#deca8a;background:#4a5b58}
.technique-detail h4{font-size:18px;margin:5px 0 10px}.technique-detail p{font-size:13px;line-height:1.65;margin:7px 0}.technique-detail .technique-effects{color:#ead591}
.technique-footer{display:flex;align-items:center;gap:8px;padding:6px 12px;border-top:1px solid #63777a;background:#1b2b34;min-width:0}.technique-footer span{font-size:12px;line-height:1.4;flex:1;min-width:0;max-height:3em;overflow:auto}.technique-footer button{min-height:42px;flex-shrink:0;font-size:13px;padding:7px 12px}
@media(max-height:430px){.world-life-panel.is-techniques{padding:8px 10px}.technique-sheet{width:100%;height:100%;grid-template-rows:46px 48px minmax(0,1fr) 50px}.technique-header{gap:6px}.technique-header h3{font-size:16px}.technique-header button{height:44px;width:44px}.technique-slots{padding:2px 10px}.technique-slots button{min-height:36px}.technique-content{gap:10px;padding:2px 10px 5px;grid-template-columns:minmax(138px,.8fr) minmax(0,1.5fr)}.technique-book-list button{min-height:48px;padding:5px 8px}.technique-detail h4{font-size:16px;margin:3px 0 6px}.technique-detail p{font-size:12px;line-height:1.5}.technique-footer{padding:3px 10px}.technique-footer button{min-height:40px;padding:4px 8px}.technique-footer span{font-size:11px}}

/* Reuse the location title as the story entry; no extra toolbar row. */
.coop-header > div{position:relative;min-height:44px;box-sizing:border-box}.coop-header [data-region-story]{position:absolute;inset:0;width:100%;height:100%;min-width:44px;min-height:44px;margin:0;padding:0;background:transparent!important;border:1px solid #d4bd7899;border-radius:0;cursor:pointer}.coop-header [data-region-story]:focus-visible{outline:2px solid #f8dfa1;outline-offset:2px}.coop-header > div:has([data-region-story]:not([hidden])) [data-coop-wave]{color:#ead698}
