#room394-panel{width:min(24rem,92vw);max-height:78vh;overflow:auto;color:#f4f1df;background:#152e26;border:1px solid #668b6d;border-radius:16px;padding:1rem;box-shadow:0 12px 48px #061a16aa;font:inherit;z-index:120}
#room394-panel::backdrop{background:#051b1769}
#room394-panel header,#room394-panel li,.room394-actions{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
#room394-panel h2{font-size:1.2rem;margin:0}
#room394-panel header{padding-bottom:.65rem;border-bottom:1px solid #436052}
#room394-panel button,#room394-hud button{border:1px solid #557562;background:#294a3c;color:#f6f5e8;border-radius:.6rem;padding:.46rem .72rem;font:inherit;font-weight:700}
#room394-content>button,#room394-panel form button{background:#aff080;color:#163526}
#room394-content{margin-top:.75rem}#room394-content form{display:grid;gap:.55rem;margin:.5rem 0}
#room394-panel input,#room394-panel select{width:100%;box-sizing:border-box;color:#fcf9e9;background:#0e241d;border:1px solid #72927b;border-radius:.55rem;padding:.55rem;font:inherit;font-size:16px}
#room394-panel label{display:grid;gap:.2rem}#room394-panel ul{list-style:none;margin:.3rem 0;padding:0}
#room394-panel li{border-bottom:1px solid #415d50;padding:.5rem 0}#room394-panel small{color:#c6ddc9}
#room394-note:empty,#room394-sleep:empty{display:none}.room394-actions{flex-wrap:wrap}
#room394-log{max-height:24vh;overflow:auto;overflow-wrap:anywhere}#room394-log p{margin:.3rem 0}
#room394-hud{position:absolute;z-index:6;top:48%;right:max(.5rem,env(safe-area-inset-right));display:flex;align-items:center;gap:.25rem;color:#eff9e8}
#room394-hud[hidden]{display:none}#room394-hud button,#room394-sleep{font-size:.72rem;padding:.35rem .48rem;background:#163429ee}
#room394-labels{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden}
#room394-hud #room394-chat.has-unread{background:#f9e789;color:#243824;border-color:#fff7b0;box-shadow:0 0 0 2px #fff2a080,0 0 18px #ffe279b8}
.room394-label{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center;gap:.25rem;color:#f4ffda;font-weight:700;font-size:.77rem;white-space:nowrap}
.room394-player-name,.room394-lot-name{border-radius:.45rem;background:#15372dec;padding:.12rem .38rem}
.room394-lot-name{color:#fff2bc;border:1px solid #91ad8d66}
.room394-bubble{max-width:min(13rem,54vw);white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.28;border-radius:.65rem;padding:.36rem .55rem;color:#20362b;background:#fffbe5;box-shadow:0 3px 10px #06181266}
#room-portal-transition{position:absolute;inset:0;z-index:130;display:grid;place-items:center;padding:1rem;text-align:center;color:#f9ffe9;background:#132f2fee;font-size:clamp(1rem,3.5vw,1.55rem);font-weight:700}
#room-portal-transition[hidden]{display:none}

body #hud .room394-online-shortcut{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:44px;min-height:40px;flex:none;padding:3px;color:#d5ffb3;background:#203f31;border:1px solid #71946b;border-radius:9px;line-height:1.1;font-size:9px;font-weight:800;pointer-events:auto}
body #hud .room394-online-shortcut[hidden]{display:none}
.room394-online-shortcut svg,.room394-menu-create svg{width:14px;height:14px;fill:none;stroke:currentColor}
.room394-online-shortcut:focus-visible,.room394-menu-create:focus-visible{outline:2px solid #f9ffd2;outline-offset:2px}
body #main-menu .room394-menu-create{background:#c5fc87;color:#173022;border-color:#c5fc87;font-weight:850}
#room394-panel h3{font-size:1rem;margin:.9rem 0 .4rem}
#room394-panel section.room394-current{padding:.65rem;margin-bottom:.8rem;border:1px solid #5b785d;border-radius:.7rem;display:grid;gap:.25rem}
#room394-panel .room394-primary{background:#c5fc87;color:#1a3826;font-weight:800}
#room394-panel .room394-checkbox{display:flex;align-items:center;gap:.5rem}
#room394-panel input[type=checkbox]{width:auto;accent-color:#a6e783}
#room394-panel form.room394-code{grid-template-columns:1fr auto;align-items:end}
#room394-list li>div{display:grid;gap:.2rem;min-width:0;overflow-wrap:anywhere}
#room394-list-status:empty,#room394-more[hidden]{display:none}
#room394-panel button:disabled{opacity:.60}
#room394-panel #room394-list button{flex:none}
#room394-hud #room394-status[data-latency=low]{color:#b6f6a0}
#room394-hud #room394-status[data-latency=medium]{color:#fff0a1}
#room394-hud #room394-status[data-latency=high]{color:#ffc08b}
@media(max-width:380px){#room394-panel form.room394-code{grid-template-columns:1fr auto}body #hud .room394-online-shortcut{min-height:38px}}

#bed-rest{position:absolute;inset:0;z-index:125;display:grid;place-items:center;isolation:isolate;padding:18px;color:#f0f8e9}
#bed-rest[hidden]{display:none}
#bed-rest::before{content:'';position:absolute;inset:0;background:#081615b0;z-index:-1;animation:bed-shadow394 .75s ease-out both}
#bed-rest[data-mode=group]::before{background:#050e14dd;animation-duration:1.65s}
@keyframes bed-shadow394{from{opacity:0}to{opacity:1}}
.bed-rest-card{box-sizing:border-box;width:min(100%,23rem);background:#152d26ed;border:1px solid #688b72;border-radius:17px;padding:1.1rem;display:grid;gap:.65rem;box-shadow:0 16px 48px #0005}
#bed-rest-title{font-size:clamp(1rem,3.7vw,1.17rem)}
#bed-rest-percent{margin:0;color:#bbdabd}
#bed-rest-meter{width:100%;height:.6rem;accent-color:#bde987}
#bed-rest-leave{min-height:44px;font:inherit;font-weight:750;margin-top:.28rem}
@media(prefers-reduced-motion:reduce){#bed-rest::before{animation:none}}
