.community-heading,.community-lobby-tools,.community-watch-header,.community-watch-header nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.community-heading{justify-content:space-between}.community-tables{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:8px}.community-lobby-tools{margin-top:12px}.community-chat-messages{height:min(42vh,320px);min-height:90px;overflow:auto;overscroll-behavior:contain;border:1px solid #496364;border-radius:10px;padding:10px}.community-message{padding:8px 10px;margin:0 0 6px;background:#1b343b;border-radius:9px;overflow-wrap:anywhere}.community-message.mine{background:#32433b}.community-message time{float:right;font-size:11px;color:#c4d8d5}.community-message strong{font-size:13px}.community-message p{margin:4px 0;font-size:15px;white-space:pre-wrap}.community-presets{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.community-presets button{font-size:12px;padding:6px 9px;min-height:32px}#community-chat-form{display:flex;gap:8px}#community-chat-form input{flex:1;min-width:0;margin:0}.community-roster>div{display:flex;gap:10px;align-items:center;margin:8px 0}.community-roster strong{flex:1}.community-check{display:flex;align-items:center;gap:8px}.community-check input{width:auto}.community-watching #app{height:100dvh;overflow:hidden}.community-watch{height:100%;padding:12px;display:flex;flex-direction:column;box-sizing:border-box;gap:10px}.community-watch h1{font-size:22px;margin:0 0 6px}.community-watch-header{justify-content:space-between;flex-shrink:0}.community-watch-content{flex:1;min-height:0;display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px}.community-watch-content aside{overflow:auto;min-width:0}.community-seat{display:flex;align-items:center;gap:9px;padding:9px;background:#183039;border-radius:12px;margin-bottom:8px}.community-seat.active{border:2px solid #e8c565}.community-seat .avatar{width:44px;height:44px;flex:0 0 44px;overflow:hidden}.community-seat span:not(.avatar){min-width:0}.community-seat strong,.community-seat small{display:block;overflow-wrap:anywhere}.community-seat small{font-size:12px;color:#cee0d9}.community-stage{min-width:0;min-height:0;display:flex;flex-direction:column}.community-stage>p{margin:0 0 6px;flex-shrink:0}.community-board{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:12px;background:#173039;touch-action:none}.community-board canvas{position:absolute;inset:0;width:100%;height:100%}.community-board .game-view{z-index:8;bottom:0;top:auto}.community-feed{display:flex;gap:12px;font-size:12px;color:#c8d9d2;flex-shrink:0;overflow:hidden;min-height:20px}.community-feed span{white-space:nowrap}.community-wait{display:grid;place-items:center;height:100%;text-align:center;padding:18px}.community-public-cards{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:25px;overflow:auto;background:radial-gradient(ellipse,#355342,#183328)}.community-card{width:80px;min-height:112px;border-radius:10px;border:2px solid #ebdfb9;box-shadow:0 5px 12px #0007;background:#faf6e9;color:#152627;padding:8px;font-weight:bold;font-size:24px;display:flex;flex-direction:column;align-items:center;justify-content:center}.community-card.red{color:#b52736}.community-card small{font-size:13px}.community-card.back{background:repeating-linear-gradient(45deg,#17384f 0 5px,#28526c 5px 10px);color:white}.community-card.text-card{width:190px;min-height:130px;font-size:15px;align-items:flex-start}.community-card.black{background:#17191a;color:white}.community-card img{width:100%;height:auto}.community-public-grid{display:grid;gap:2px;max-height:100%;aspect-ratio:1;margin:auto}.community-public-grid>div{display:grid;place-items:center;background:#e5d2a5;color:#183039;font-weight:bold;font-size:clamp(9px,2vw,24px)}.community-public-grid>div:nth-child(even){background:#466e55}.community-battleship{display:flex;justify-content:space-around;align-items:center;height:100%;gap:12px;padding:12px}.community-battleship section{min-width:0;width:48%;max-width:480px}.community-battleship h3{font-size:14px;margin:0 0 5px}.community-battleship .community-public-grid{grid-template-columns:repeat(10,1fr);background:#123552;gap:3px}.community-battleship .community-public-grid>div{border-radius:50%;background:#1d5074;aspect-ratio:1;box-shadow:inset 0 2px 4px #0008;font-size:15px}.community-battleship .community-public-grid .hit{background:#ed5644}.community-battleship .community-public-grid .miss{background:#f0ece0}.community-board .cb-ground,.community-board .sm-paper{position:absolute;transform-origin:0 0}.community-board .cb-ground img{width:100%;height:100%}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:850px),(max-height:500px){.community-watch{padding:6px;gap:5px}.community-watch h1{font-size:16px;margin:0}.community-watch-header .pill{font-size:10px;padding:3px 5px}.community-watch-header nav{gap:5px}.community-watch-header button{font-size:12px;padding:5px 8px;min-height:32px}.community-watch-content{grid-template-columns:130px minmax(0,1fr);gap:6px}.community-seat{gap:5px;padding:5px;margin-bottom:5px}.community-seat .avatar{width:32px;height:32px;flex-basis:32px}.community-seat strong{font-size:12px}.community-seat small{font-size:10px}.community-feed{font-size:10px}.community-stage>p{font-size:12px}.community-chat-messages{height:30vh}.community-presets{margin:5px 0}.community-card{width:55px;min-height:77px;font-size:18px}.community-public-cards{padding:12px;gap:6px}.community-battleship{padding:5px;gap:6px}.community-battleship section{max-width:min(40vh,48%)}.community-message{padding:5px 8px}.community-presets button{min-height:28px;padding:4px 6px}}
.community-stage>.mp-view-dock{position:static!important;inset:auto!important;transform:none!important;display:flex;justify-content:center;width:auto;flex:0 0 auto;padding:3px}.community-stage .mp-view-controls{position:static!important;display:flex;gap:4px;align-items:center;flex-wrap:wrap;padding:0}.community-stage .mp-view-controls button{min-height:28px;padding:3px 7px;font-size:11px}.community-stage .mp-view-controls label{display:flex;align-items:center;font-size:11px;gap:5px;margin:0}.community-stage .mp-view-controls input{width:90px;margin:0}.community-stage .mp-view-controls small{display:none}.community-guess-sheet{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:10px;padding:10px;box-sizing:border-box}.community-guess-faces{overflow:auto;display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.community-guess-face{background:#e9e6d5;border-radius:5px;color:#13282e;text-align:center;font-size:11px}.community-guess-face img{display:block;width:100%;height:auto}.community-guess-sheet aside{overflow:auto;font-size:13px}.community-guess-sheet aside p{padding:7px;background:#243e46;border-radius:5px}.community-board .cb-ground>img{position:absolute;inset:0}.community-unread{font-size:11px;margin-left:5px;border-radius:10px;background:#e5c45f;color:#173039;padding:2px 5px}

@media(max-height:500px){dialog:has(#community-chat-form){padding:12px;max-height:96dvh}dialog:has(#community-chat-form) h2{font-size:19px;margin:2px 40px 8px 0}dialog:has(#community-chat-form) .close{position:absolute;right:14px;top:14px;min-height:28px;padding:3px 8px;margin:0}dialog:has(#community-chat-form) .community-chat-messages{height:25vh;min-height:65px}dialog:has(#community-chat-form) .community-presets{gap:4px;margin:6px 0}dialog:has(#community-chat-form) .small{font-size:10px;margin:6px 0 0}#community-chat-form input,#community-chat-form button{min-height:34px;padding:5px 8px}}
