body.playing{position:fixed;inset:0;width:100%;overflow:hidden;overscroll-behavior:none}
html:has(body.playing){overflow:hidden;overscroll-behavior:none}
body.playing .mast,body.playing>.skip{display:none}
body.playing main.frame,body.playing .stage{position:static;isolation:auto;overflow:visible;border:0;padding:0}
body.playing #play-space{position:fixed;z-index:10;inset:0;width:100%;height:100%;height:100dvh;min-height:0;border-radius:0}
body.playing .world-top{top:max(.9rem,env(safe-area-inset-top));left:max(1rem,env(safe-area-inset-left));right:max(1rem,env(safe-area-inset-right))}
body.playing .party-controls{bottom:max(.85rem,env(safe-area-inset-bottom));left:max(.9rem,env(safe-area-inset-left));right:max(.9rem,env(safe-area-inset-right))}
body.playing .world-control,body.playing .party-dock,body.playing .party-room,body.playing .move-hint{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
body.playing .roster{position:fixed;z-index:12;top:max(.9rem,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;gap:.1rem;align-items:center;
 width:min(35rem,calc(100vw - 35rem));padding:.25rem .32rem;border:1px solid #fff8e5c9;border-radius:1.05rem;color:#304333;
 background:#fff9eced;box-shadow:0 3px 17px #2644382b;backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}
body.playing .roster.folded{width:auto}
body.playing .section-heading{flex:none;margin:0;gap:0}
body.playing .credits{display:none}
body.playing .section-titles{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.playing .roster-toggle{flex-direction:column;justify-content:center;gap:.12rem;min-height:2.75rem;min-width:3.65rem;padding:.1rem .3rem;background:transparent;border:0;border-radius:.7rem;font-size:.75rem}
body.playing .roster-toggle svg{width:1.02rem;height:1.02rem}
body.playing .roster-toggle:hover,body.playing .hud-scroll:hover{background:#e9ecdc}
body.playing .resident-list,body.playing .resident-list.expanded{display:flex;align-items:center;flex:1;min-width:0;gap:.14rem;overflow-x:auto;overflow-y:hidden;
 scrollbar-width:none;scroll-snap-type:x proximity;padding:.06rem .14rem;margin:0;scroll-padding:.15rem}
body.playing .resident-list::-webkit-scrollbar{display:none}
body.playing .roster.folded .resident-list{display:none}
body.playing .resident-list .resident{width:3.55rem;min-width:3.55rem;flex:0 0 3.55rem;display:flex;flex-direction:column;align-items:center;gap:.12rem;
 scroll-snap-align:start;border:0;background:transparent;box-shadow:none;padding:.12rem .1rem;border-radius:.6rem;outline-offset:-1px}
body.playing .resident-list .portrait-tile{position:relative;display:block;flex:none;width:2.25rem;height:2.25rem;aspect-ratio:1;border-radius:50%;box-shadow:0 0 0 1px #e0d7bf}
body.playing .resident-list .portrait-tile img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
body.playing .resident-list .resident-role,body.playing .resident-list .resident-name{display:none}
body.playing .resident-list .resident:after{content:attr(data-short);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.745rem;font-weight:650;line-height:1.12}
body.playing .resident-list .resident:hover{background:#e8eedf}
body.playing .resident-list .resident[data-present="true"]{order:-1}
body.playing .resident-list .resident[data-present="true"] .portrait-tile{box-shadow:0 0 0 2px #568360}
.hud-scroll{display:grid;place-items:center;border:0;color:#45604b;background:transparent;border-radius:.55rem;flex:0 0 1.65rem;height:2.8rem;padding:0}
.hud-scroll:disabled{opacity:.25;cursor:default}
.hud-prev svg{transform:rotate(180deg)}
.hud-next{order:2}
body.playing .jump-control{position:absolute;right:max(1.15rem,env(safe-area-inset-right));bottom:calc(max(1rem,env(safe-area-inset-bottom)) + 3.55rem);z-index:4;display:flex;
 flex-direction:column;align-items:center;justify-content:center;gap:.08rem;width:3.65rem;height:3.65rem;border:1px solid #fff8debf;border-radius:50%;background:#fcf6e7ed;
 box-shadow:0 3px 12px #29463b38;color:#304b38;font:650 .78rem/1 var(--sans);touch-action:manipulation}
.jump-control i svg{width:1.22rem;height:1.22rem}.jump-control:active{transform:scale(.94)}
.thumbstick{display:none}
@media(pointer:coarse){
 body.playing .thumbstick{position:absolute;left:max(.95rem,env(safe-area-inset-left));bottom:calc(max(.8rem,env(safe-area-inset-bottom)) + 3.75rem);z-index:4;
  display:grid;place-items:center;width:5.05rem;height:5.05rem;padding:0;border-radius:50%;border:1px solid #faf4dae0;background:#fbf4df69;
  box-shadow:inset 0 0 0 5px #fcf8e52b,0 2px 12px #173d3435;touch-action:none;user-select:none;-webkit-user-select:none}
 .thumbstick::before,.thumbstick::after{content:'';position:absolute;inset:14% 49%;background:#61756056;border-radius:100%}
 .thumbstick::after{inset:49% 14%}
 .thumbstick span{z-index:1;width:43%;height:43%;border-radius:50%;border:1px solid #71836c9c;background:#fff8e3ed;box-shadow:0 3px 7px #3654444d}
 .thumbstick.pressed{background:#f8efd67d}.thumbstick.pressed span{background:#fff9e7}
 body.playing .move-hint{display:none}
}
@media(max-width:940px) and (min-height:521px){
 body.playing .roster{top:calc(max(.7rem,env(safe-area-inset-top)) + 3.35rem);width:min(29rem,calc(100vw - 1.8rem))}
 body.playing .party-play .world-status{top:calc(max(.7rem,env(safe-area-inset-top)) + 8.1rem)}
}
@media(max-width:640px){
 body.playing .world-top{top:max(.55rem,env(safe-area-inset-top));left:max(.55rem,env(safe-area-inset-left));right:max(.55rem,env(safe-area-inset-right))}
 body.playing .roster{padding:.16rem .2rem;gap:0}
 body.playing .roster-toggle{min-width:3.1rem}
 body.playing .resident-list .resident{width:3.22rem;min-width:3.22rem;flex-basis:3.22rem}
 body.playing .resident-list .portrait-tile{width:2rem;height:2rem}
 body.playing .hud-scroll{flex-basis:1.25rem}
 body.playing .party-controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.38rem;
  right:max(.45rem,env(safe-area-inset-right));left:max(.45rem,env(safe-area-inset-left));bottom:max(.5rem,env(safe-area-inset-bottom))}
 body.playing .party-dock{flex:0 1 auto;min-height:2.65rem}
 body.playing .party-action{min-height:2.65rem;padding-inline:.55rem}
 body.playing .party-identity-label{max-width:5.8rem}
 body.playing .party-controls #seat{font-size:.76rem;padding:.38rem .55rem;min-height:2.65rem}
 body.playing .party-controls #interact{position:absolute;bottom:calc(100% + .35rem);left:50%;transform:translateX(-50%);white-space:nowrap;padding-inline:.65rem;max-width:50vw;overflow:hidden;text-overflow:ellipsis}
 body.playing .party-play[data-party-seated="true"] .party-controls{bottom:calc(max(.5rem,env(safe-area-inset-bottom)) + 4rem)}
 body.playing .party-play[data-party-seated="true"] .focus-panel{bottom:max(.5rem,env(safe-area-inset-bottom))}
 body.playing .jump-control{right:max(.82rem,env(safe-area-inset-right));bottom:calc(max(.65rem,env(safe-area-inset-bottom)) + 3.5rem)}
}
@media(max-width:395px){
 body.playing .party-identity-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 body.playing .party-identity{min-width:2.5rem}
}
@media(max-height:520px) and (orientation:landscape){
 body.playing .world-top{top:max(.42rem,env(safe-area-inset-top))}
 body.playing .roster{top:max(.42rem,env(safe-area-inset-top));width:min(21rem,calc(100vw - 25rem));padding:.11rem .19rem}
 body.playing .roster-toggle{min-width:2.4rem;gap:0}
 body.playing .roster-toggle span,body.playing .resident-list .resident:after{display:none}
 body.playing .resident-list .resident{width:2.4rem;min-width:2.4rem;flex-basis:2.4rem}
 body.playing .resident-list .portrait-tile{width:2.06rem;height:2.06rem}
 body.playing .hud-scroll{flex-basis:1.15rem;height:2.4rem}
 body.playing .party-controls{display:flex;justify-content:center;gap:.5rem}
 body.playing .party-controls #interact{position:static;transform:none}
 body.playing .thumbstick{width:4.45rem;height:4.45rem;bottom:max(.6rem,env(safe-area-inset-bottom))}
 body.playing .jump-control{bottom:max(.7rem,env(safe-area-inset-bottom))}
 body.playing .party-play .world-status{top:3.65rem}
}
@media(max-height:520px) and (orientation:landscape){
 body.playing .roster{left:calc(max(.6rem,env(safe-area-inset-left)) + 6.7rem);right:calc(max(.6rem,env(safe-area-inset-right)) + 15.4rem);
  transform:none;width:auto;max-width:20rem}
 body.playing .roster.folded{right:auto}
 body.playing .party-controls{left:calc(max(.6rem,env(safe-area-inset-left)) + 4.9rem);right:calc(max(.6rem,env(safe-area-inset-right)) + 4.2rem);flex-wrap:nowrap;gap:.35rem}
 body.playing .party-controls #interact{position:absolute;bottom:calc(100% + .35rem);left:50%;transform:translateX(-50%);white-space:nowrap}
 body.playing .party-controls #seat{white-space:nowrap}
}
@media(max-height:520px) and (orientation:landscape) and (max-width:740px){
 body.playing .party-identity-label,body.playing .world-top #leave span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 body.playing .world-top #leave{display:grid;place-items:center;width:2.75rem;padding:0}
 body.playing .roster{left:calc(max(.6rem,env(safe-area-inset-left)) + 3.2rem)}
}

@media(pointer:coarse) and (min-height:521px) and (max-width:640px){
 body.playing .thumbstick,body.playing .jump-control{bottom:calc(max(.55rem,env(safe-area-inset-bottom)) + var(--action-height,2.7rem) + .8rem)}
}
.dog-label{position:absolute;left:0;top:0;transform:translate(-50%,-100%);pointer-events:none;white-space:nowrap;background:#fff6deeb;color:#4e392b;border:1px solid #a7846055;border-radius:1rem;padding:.12rem .48rem;font-size:.73rem;font-weight:650;line-height:1.2;box-shadow:0 1px 4px #452f2424}

.help-dialog{max-height:88dvh;overflow:auto}
.help-dialog .activity-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.sport-caption{position:absolute;z-index:3;left:50%;bottom:calc(max(.85rem,env(safe-area-inset-bottom)) + var(--action-height,2.7rem) + .66rem);transform:translateX(-50%);max-width:calc(100% - 10rem);width:max-content;padding:.34rem .80rem;text-align:center;line-height:1.25;border-radius:.75rem;color:#fff9e9;background:#304b3fee;font-size:.78rem;font-weight:600;pointer-events:none}
@media(max-width:420px){.help-dialog .activity-list button{font-size:.80rem;padding:.50rem}.sport-caption{font-size:.73rem}}

/* Keyboard hint for the nearest thing E will use. Touch screens use the action button instead. */
.world-prompt{position:absolute;z-index:3;left:50%;top:66%;transform:translateX(-50%);display:flex;align-items:center;gap:.38rem;padding:.18rem .62rem .18rem .2rem;
 border-radius:2rem;background:#1d2e2547;border:1px solid #fffdf324;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
 color:#fffdf3e6;font-size:.76rem;font-weight:550;line-height:1.2;white-space:nowrap;pointer-events:none;text-shadow:0 1px 2px #1b2c2440;
 animation:prompt-in .18s ease-out}
.world-prompt kbd{display:grid;place-items:center;min-width:1.25rem;height:1.25rem;padding:0 .22rem;border:1px solid #fffdf399;border-bottom-width:2px;border-radius:.32rem;
 background:#fdf8ebcc;color:#273f31;font:700 .68rem/1 var(--sans);text-shadow:none}
@keyframes prompt-in{from{opacity:0;transform:translate(-50%,.35rem)}}
@media(prefers-reduced-motion:reduce){.world-prompt{animation:none}}
@media(hover:none){.world-prompt{display:none!important}}
