/* Shared game room, score entry and server archives. */
.room-panel{margin-top:0;padding:12px}.room-panel [hidden],.room-end[hidden]{display:none!important}
.room-head,.room-active-head,.room-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.room-head strong{font-size:15px}.room-head small{font-size:11px;color:#98622c}
.room-head .room-online{color:#24734a}
.room-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:8px}
.room-panel button,.room-actions button,.room-dialog button{border:1px solid #b6cbd4;color:#214d62;background:#f3f7f8;border-radius:8px;font-weight:750;padding:8px 12px;min-height:39px;font-size:12px;cursor:pointer}
.room-panel button:hover,.room-dialog button:hover{background:#e2edf0}
.room-active-head{margin-top:9px;flex-wrap:wrap}.room-active-head>div{min-width:100px;flex:1}
.room-active-head strong,.room-active-head small{display:block}.room-active-head small{font-size:11px;color:#687f8c}
.room-active-head #room-copy b{font-size:13px;letter-spacing:.04em}
.room-people{display:flex;gap:5px;flex-wrap:wrap;margin:9px 0}
.room-people span{display:inline-block;background:#eaf2f5;border:1px solid #cadde5;border-radius:99px;padding:3px 8px;font-size:11px}
#room-status,#room-message{font-size:11px;line-height:1.45;font-weight:700;color:#486879;margin:5px 0}
#room-message{color:#946037}#room-message:empty{display:none}
.room-outbox-row{display:flex;align-items:center;gap:6px;padding:5px 0;border-top:1px solid #dce7eb}
.room-outbox-row>div{flex:1;min-width:0}.room-outbox-row b,.room-outbox-row small{display:block;font-size:11px;overflow-wrap:anywhere}
.room-outbox-row small{color:#955b3d}.room-outbox-row button{padding:4px 8px;min-height:30px}
.room-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.room-actions button{min-height:46px;font-size:13px}
.room-actions .eu-primary,.room-dialog .eu-primary{background:#28596e;color:#fff;border-color:#28596e}
.room-actions button:disabled{opacity:.45;cursor:default}.room-end .eu-muted{margin-bottom:0}
.room-dialog{border:1px solid #afc5d0;border-radius:14px;background:white;color:#213e50;max-width:650px;width:calc(100vw - 24px);max-height:85dvh;padding:15px;font:14px/1.5 system-ui,'Malgun Gothic',sans-serif;overflow:auto}
.room-dialog::backdrop{background:#0a2437aa}.room-dialog h2{font-size:19px;margin:0}.room-dialog h3{font-size:17px}.room-dialog h4{font-size:14px;margin:10px 0}
.room-dialog-head{position:sticky;top:-15px;background:white;z-index:1;padding:8px 0;border-bottom:1px solid #d9e4e8}
.room-dialog form>p{font-size:12px;color:#617b88}.room-dialog form>label{display:grid;gap:5px;font-size:12px;margin:9px 0}
.room-score-row{display:grid;grid-template-columns:minmax(0,1fr) 104px;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid #e2e9ec}
.room-score-row span{font-weight:700;font-size:13px}
.room-score-row input,.room-dialog textarea{width:100%;font:inherit;min-height:39px;border:1px solid #bdced6;border-radius:7px;padding:6px;color:#203c50;background:white}
.room-history-item{padding:10px 0;border-bottom:1px solid #dce6e9}.room-history-item b,.room-history-item small{display:block}.room-history-item small{color:#6a8491;font-size:11px;margin:3px 0}.room-history-item>div{display:flex;gap:6px;margin:6px 0}
#room-history-detail{border-top:1px solid #bbd0d9;margin-top:14px}#room-history-detail:empty{display:none}
#room-history-detail details{padding:9px 0;border-top:1px solid #e1e9ed}#room-history-detail summary{font-weight:800;cursor:pointer}
#room-history-detail details p{font-size:12px;padding:4px 0;margin:4px 0}
.room-score-result{display:flex;justify-content:space-between;padding:8px;border:1px solid #cbdde4;background:#f2f8f9;border-radius:7px;margin:5px 0}
.room-log{padding:6px 0;border-bottom:1px solid #e2e9ec}.room-log small{display:block;color:#6c8290;margin:2px 0}
@media(max-width:400px){.room-panel{padding:9px}.room-active-head button{padding:6px}.room-active-head>div{flex-basis:100%}.room-actions button{font-size:12px}}
