.pool-page{color:#fff2d6;background:radial-gradient(ellipse at 48% 0%,#584432,#262b24 55%,#141b18)}
.pool-page .puzzle-main{width:min(calc(100% - 24px),900px);padding-block:8px 24px}
.pool-page h1{font-size:clamp(2rem,7vw,4rem)}
.pool-game{padding:clamp(8px,1.5vw,16px);border:1px solid #846849;border-radius:17px;background:#202820;box-shadow:0 18px 40px #090e0a90}
.pool-players{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.pool-player{padding:7px 10px;border:1px solid #697364;border-radius:8px;background:#151c17;color:#e9e1c4;font-size:.86rem}
.pool-player strong{display:block;color:#fff2d6}
.pool-player.is-active{border-color:#e5c389;background:#353e2d}
.pool-status{min-height:1.45em;margin:7px 0;color:#f1dbad;font-size:.92rem;text-align:center}
#pool-table{display:block;width:100%;height:auto;border-radius:11px;touch-action:none;background:#121b15}
.pool-controls{display:grid;grid-template-columns:1fr minmax(85px,.22fr);gap:9px;align-items:end;margin-top:10px}
.pool-controls label{display:grid;gap:2px;font-size:.84rem}
.pool-controls input{width:100%;margin:0;min-height:27px;accent-color:#e8c98f}
.pool-actions{display:flex;flex-wrap:wrap;align-items:end;gap:7px;margin-top:8px}
.pool-actions .pool-mode{margin-left:auto;display:grid;gap:2px;font-size:.77rem}
.pool-page .puzzle-button{border-color:#937758;background:#34392d}
.pool-page .puzzle-primary{background:#ebc890;color:#291e13}
@media(max-width:650px),(pointer:coarse) and (orientation:portrait){
 .pool-page .puzzle-main{width:min(calc(100% - 14px),580px)}
 .pool-game{padding:7px}
 #pool-table{max-width:min(100%,calc(68svh * 400 / 690));margin:auto}
 .pool-player strong{display:inline;margin-right:4px}
}
@media(pointer:coarse) and (orientation:portrait) and (min-width:651px){
 .pool-page .puzzle-main{width:min(calc(100% - 22px),800px)}
 #pool-table{max-width:min(100%,calc(68svh * 400 / 690))}
 .pool-actions button,.pool-controls button,.pool-player,.pool-status,.pool-controls label,.pool-mode select{font-size:1.65vw}
}
.pool-tip{margin:8px 0 0;text-align:center;color:#e0d1ac;font-size:.85rem}
.pool-actions #pool-left,.pool-actions #pool-right{min-width:84px}
@media(pointer:coarse) and (orientation:portrait) and (min-width:651px){
 .pool-tip{font-size:1.65vw}
}
