.room-chat .chat-toggle{position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;padding:13px 18px;border:1px solid #bba16b;border-radius:18px;background:#23483a;box-shadow:0 8px 30px #0005;min-height:52px;z-index:10}.room-chat .burger{display:grid;gap:4px;width:18px}.room-chat .burger i{height:2px;background:#ebcd93;border-radius:2px}.room-chat .badge{border-radius:50%;background:#edcb87;color:#19382c;font-size:12px;min-width:23px;height:23px;display:grid;place-items:center}.room-chat .badge[hidden]{display:none}
.room-chat .chat-panel{position:fixed;right:24px;bottom:24px;width:390px;max-width:calc(100vw - 32px);height:min(570px,80dvh);display:flex;flex-direction:column;background:#132e27;border:1px solid #71805d;border-radius:26px;box-shadow:0 16px 70px #0008;z-index:20;overflow:hidden;animation:rise .22s ease-out}.room-chat .chat-panel[hidden]{display:none}.room-chat .chat-head{padding:18px 20px;border-bottom:1px solid #385447;display:flex;align-items:center;gap:12px}.room-chat .chat-head strong{font-size:20px;font-weight:400}.room-chat .chat-head small{display:block;font-size:12px;color:#9db5a7;margin-top:4px}.room-chat .close{margin-left:auto;background:#244338;border:1px solid #4c6956;border-radius:12px;width:44px;height:44px;font-size:25px}.room-chat .messages{flex:1;overflow:auto;padding:20px;overscroll-behavior:contain}.room-chat .date{text-align:center;color:#92aa9b;font-size:11px;margin-bottom:22px}.room-chat .message{display:flex;gap:9px;margin-bottom:18px;align-items:flex-end}.room-chat .message .initial{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#4b5a40;color:#f3d496;font-size:13px}.room-chat .bubble{max-width:85%;background:#244438;border-radius:16px 16px 16px 4px;padding:11px 14px;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.room-chat .bubble strong{display:block;color:#d7bc82;font-size:12px;font-weight:400;margin-bottom:4px}.room-chat .bubble time{font-size:10px;color:#9db4a2;display:block;text-align:right;margin-top:5px}.room-chat .mine{justify-content:flex-end}.room-chat .mine .bubble{background:#375743;border-radius:16px 16px 4px 16px}.room-chat .compose{padding:14px 16px max(16px,env(safe-area-inset-bottom));border-top:1px solid #385447;display:flex;gap:10px}.room-chat .compose input{min-width:0;width:100%;background:#0d251e;border:1px solid #43604e;color:#f6edda;border-radius:14px;padding:13px}.room-chat .compose button{flex:none;background:#edcb87;color:#19382c;border:0;border-radius:14px;width:48px;display:grid;place-items:center}.room-chat .compose button svg{width:23px;height:23px}.room-chat .compose button:disabled{opacity:.4;cursor:default}
@media(max-width:600px){.room-chat .chat-toggle{right:18px;bottom:max(18px,env(safe-area-inset-bottom))}.room-chat .chat-panel{right:0;bottom:0;width:100%;max-width:none;height:min(570px,76dvh);border-radius:26px 26px 0 0}.room-chat .chat-head:before{content:'';position:absolute;top:7px;left:calc(50% - 18px);width:36px;height:3px;background:#687b65;border-radius:2px}}@media(prefers-reduced-motion:reduce){.room-chat .chat-panel{animation:none}}

.room-chat[hidden],.room-chat [hidden]{display:none!important}.room-chat .chat-head{position:relative}.room-chat .close{position:static}.room-chat .chat-note{margin:0;padding:0 16px;color:#c9b988;font-size:13px}.room-chat .messages span{white-space:pre-wrap}.round-continue{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap;padding:20px 0 80px;color:#e9c788}.room-chat .chat-toggle{bottom:max(20px,env(safe-area-inset-bottom))}.room-chat input{box-sizing:border-box}.room-chat .compose{flex-shrink:0}.room-chat .messages{min-height:0}

body:has(.room-chat .chat-panel:not([hidden])) .sound-toggle{visibility:hidden;pointer-events:none}


.round-waiting{margin:24px 0;padding:18px;border:1px solid #d6ba7355;border-radius:18px}.waiting-person{display:flex;justify-content:space-between;gap:12px;padding:12px;margin:8px 0;border-radius:12px;flex-wrap:wrap}.waiting-person.pending{background:#dbab3220;border-left:3px solid #d6ba73}.waiting-person.done{background:#72b68b20;color:#b9e6c6}.waiting-person span{font-size:14px}

.waiting-caption{text-align:center;font-size:14px;opacity:.7;margin:12px 0 24px}
.waiting-person{position:relative;overflow:hidden;transition:background .3s,color .3s}
.waiting-person.pending span::before{content:'';display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#d6ba73;animation:waiting-pulse 1.6s ease-in-out infinite}
.waiting-person.done span{animation:waiting-ready .35s ease-out}
.waiting-person:nth-child(2n) span::before{animation-delay:.4s}
.waiting-dots{display:inline-block;animation:waiting-pulse 1.6s ease-in-out infinite}
@keyframes waiting-pulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}
@keyframes waiting-ready{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.waiting-person span,.waiting-person.pending span::before,.waiting-dots{animation:none}}

.vote-status{margin:18px 0}.vote-status>strong{font-size:14px}.vote-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.vote-chip{display:flex;flex-direction:column;gap:3px;padding:8px 12px;border-radius:12px;background:#dbab321a;border:1px solid #d6ba7366;font-size:14px}.vote-chip small{font-size:11px;opacity:.8}.vote-chip.done{background:#72b68b20;border-color:#72b68b88;color:#b9e6c6}

.vote-chip{box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:anywhere}.waiting-person strong{min-width:0;overflow-wrap:anywhere;flex:1 1 120px}.waiting-person span{flex-shrink:0}

.status-ponies{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.status-pony{position:relative;width:52px;height:62px;padding:5px 2px 12px;border:1px solid #d6ba7366;border-radius:14px;background:#dbab321a}.status-pony .mini-token{display:block;width:44px;height:44px;margin:auto}.status-pony.done{background:#72b68b20;border-color:#72b68b88}.pony-status-mark{position:absolute;right:2px;bottom:0;font-size:18px;color:#d6ba73;line-height:20px}.done .pony-status-mark{color:#b9e6c6}.pending .pony-status-mark{animation:waiting-pulse 1.6s ease-in-out infinite}.vote-status>small,.round-waiting>small{font-size:12px;opacity:.65}@media(prefers-reduced-motion:reduce){.pony-status-mark{animation:none!important}}

.score-details{margin:24px 0 90px;border-top:1px solid #d8ddc526;font-size:14px;color:#a1b6ab}.score-details summary{padding:16px 4px;cursor:pointer}.score-detail-content{padding:0 4px 14px}.score-detail-row{display:flex;justify-content:space-between;gap:20px;padding:7px 0}.score-detail-row strong{color:#e5c38b;white-space:nowrap}.score-detail-row:last-child{border-top:1px solid #d8ddc526;margin-top:6px;padding-top:12px}
