.river-strip{flex:none;display:flex;align-items:center;justify-content:center;gap:clamp(4px,1.25vw,24px);min-width:0;padding:2px 0 5px;color:#314b44}
.river-recent{display:inline-flex;min-width:0;align-items:center;gap:clamp(3px,.5vw,10px);font:600 clamp(13px,.88vw,19px)/1.2 system-ui,sans-serif}
.river-recent small{white-space:nowrap;font:inherit;color:#596b5c}
.river-recent b{min-width:2.3em;text-align:center;padding:2px 4px;border:1px solid #bdbaa1;border-bottom:2px solid #8b9f86;border-radius:4px;color:#244f41;background:#fff9e5;white-space:nowrap}
.river-recent.just-played b{background:#ffedbd;border-color:#ab7a38}
.river-open,.book-head button{border:1px solid #456c5e;border-radius:7px;background:#365e51;color:#fff8dd;font-weight:650;padding:4px 12px;min-height:34px;white-space:nowrap}
#netRoom:not(.at-table) #netRivers{display:none}
#discardBook{width:min(790px,calc(100vw - 12px));padding:0;max-height:90vh;max-height:90dvh;overflow:auto;color:#29473d;overscroll-behavior:contain}
#discardBook .book-head{position:sticky;top:0;z-index:1;display:flex;padding:10px 15px;align-items:center;justify-content:space-between;background:#f6ecd6;border-bottom:1px solid #b9aa89}
.book-head h2,.book-player h3{margin:0;color:#2c5142}
.book-seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}
.book-player{border:1px solid #c6b595;border-radius:8px;background:#fff8e8;padding:9px}
.book-player h3{display:flex;align-items:center;justify-content:space-between;gap:5px;font:650 16px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
.book-player h3 small{font-size:13px;color:#59685b;white-space:nowrap}
.book-empty{margin:6px 0 0;font-size:14px;color:#687469}
.book-list{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:0}
.book-item{width:44px;display:flex;align-items:center;flex-direction:column}
.book-face{display:block;width:38px;height:46px;border-radius:4px;background:linear-gradient(115deg,#fffdf1,#f0e5cd);border:1px solid #a59d7d;border-bottom:3px solid #608b74}
.book-face svg{width:100%;height:100%;display:block}
.book-last .book-face{outline:2px solid #bf8534;outline-offset:1px}
.book-label,.book-note{font:600 13px/1.3 system-ui,sans-serif;color:#315145}
.book-note{font-size:11px;color:#823f2d}
@media(max-width:700px){.book-seats{grid-template-columns:minmax(0,1fr)}}
html[data-ui-mode=mobile] .river-strip{gap:2px;justify-content:space-between;padding:1px 2px 3px}
html[data-ui-mode=mobile] .river-recent{font-size:12px;gap:2px}
html[data-ui-mode=mobile] .river-recent b{padding:2px}
html[data-ui-mode=mobile] .river-open{min-height:38px;padding:4px 7px;font-size:13px}
@media(orientation:portrait){html[data-ui-mode=mobile] .river-open,html[data-ui-mode=mobile] .book-head button{min-height:44px}}
@media(max-width:360px){html[data-ui-mode=mobile] .river-recent{display:grid;justify-items:center;gap:0}}

.river-earlier{font-size:.92em;color:#496653;white-space:nowrap}.river-earlier:empty{display:none}
@media(max-width:1100px){.river-earlier{display:none}}
html[data-ui-mode=mobile] .river-earlier{display:none}
