:root{--game-accent:#ebc879;--background:#081216;--panel:#102126}[hidden]{display:none!important}.game-header{background:#071015}.game-main{max-width:1320px}.game-heading h1{font-size:clamp(42px,5vw,64px)}.game-score strong{font-size:clamp(20px,2vw,30px);color:#e9c883}.game-frame{height:auto;aspect-ratio:1.77;min-height:0;background:radial-gradient(ellipse at 50% 10%,#43514e,#101d21 60%,#081114);border:1px solid #dfc79255;box-shadow:0 25px 80px #000a,0 0 100px #bd8b3a17}.game-overlay{z-index:4}.overlay-card{background:linear-gradient(140deg,#17342e,#0c191d);border:1px solid #d3ad6c66}.overlay-card h2{letter-spacing:.01em}.game-heading p,.game-score small{color:#e9c883}.game-bottom{padding:12px 0}.game-bottom p{font-size:13px}.pool-room{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0 15px}.pool-room[hidden]{display:none}.pool-room strong{font:800 20px 'Barlow Condensed';letter-spacing:4px;color:#e9c883}.pool-room button,.pool-menu button,.pool-controls button,.pool-fight button{min-height:46px;background:#1c3034;border:1px solid #ddb67666;border-radius:5px;padding:10px 17px;color:#f7edd8;font-weight:800;font-size:12px;letter-spacing:.05em}.pool-room button:hover,.pool-controls button:hover,.pool-fight button:hover{border-color:#f4d58d}.pool-room small{color:#a5b6b2}.pool-menu{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}.pool-menu button:first-child{background:#e9c883;color:#102126}.pool-join{display:flex;gap:8px;margin-top:10px}.pool-join input{min-width:0;flex:1;background:#091619;border:1px solid #d0b06c7a;border-radius:4px;padding:11px 12px;color:#fff;font:700 17px 'DM Sans';letter-spacing:3px;text-transform:uppercase}.pool-join button{min-height:46px;border:0;border-radius:4px;background:#244841;color:#fff;padding:0 16px;font-weight:800}.pool-menu-message{min-height:18px;color:#ffb0a9;font-size:12px;margin:10px 0 0}.pool-controls{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,1fr) minmax(190px,1.4fr);gap:13px;align-items:stretch;margin:0 0 10px}.pool-control-card{background:#122328;border:1px solid #d6b36c3c;border-radius:8px;padding:13px;min-width:0}.pool-control-card>label,.pool-control-card>span{display:block;color:#e9c883;font-size:10px;font-weight:800;letter-spacing:1.8px;margin-bottom:10px}.pool-control-card input[type=range]{width:100%;accent-color:#e9c883}.pool-control-card output{font:800 25px 'Barlow Condensed';margin-left:6px}.pool-spin{display:flex;align-items:center;gap:14px}.pool-spin-pad{position:relative;flex:none;width:88px;height:88px;border-radius:50%;background:radial-gradient(circle at 34% 25%,#fff,#cbd4d1 65%,#647978);border:2px solid #eff5ed;touch-action:none;box-shadow:inset -8px -9px 12px #243d4e99,0 6px 14px #0007}.pool-spin-pad:before,.pool-spin-pad:after{content:'';position:absolute;background:#344d4d55}.pool-spin-pad:before{height:1px;left:8px;right:8px;top:50%}.pool-spin-pad:after{width:1px;top:8px;bottom:8px;left:50%}.pool-spin-dot{position:absolute;z-index:1;width:15px;height:15px;border-radius:50%;background:#c33b33;border:2px solid #fff;box-shadow:0 2px 7px #0008;left:calc(50% - 7.5px);top:calc(50% - 7.5px);pointer-events:none}.pool-spin p{font-size:11px;color:#a5b6b2;line-height:1.4;margin:0}.pool-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pool-actions button{min-height:54px}.pool-actions #pool-shoot{background:#e9c883;color:#102126;grid-column:span 2;font-size:15px}.pool-actions button:disabled,.pool-fight button:disabled{opacity:.45;cursor:not-allowed}.pool-fight{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}.pool-fight[hidden]{display:none}.pool-fight button{flex:1}.pool-fight p{width:100%;color:#e9c883;margin:0;font-size:12px}.pool-menu-tip{font-size:11px;color:#afc4bb;margin:8px 0 0}.game-bottom #game-restart{display:none}@media(max-width:700px){.game-main{padding:12px 8px 20px}.game-heading{align-items:center}.game-heading h1{font-size:43px}.game-score strong{font-size:24px}.game-frame{aspect-ratio:.58}.pool-controls{grid-template-columns:1fr 1fr;gap:7px}.pool-control-card{padding:10px}.pool-controls .pool-control-card:last-child{grid-column:span 2}.pool-spin-pad{width:70px;height:70px}.pool-actions{grid-template-columns:1fr 1fr 1fr}.pool-actions #pool-shoot{grid-column:auto}.pool-actions button{padding:8px}.pool-room{gap:8px}.game-bottom p{font-size:11px}}@media(max-width:410px){.pool-controls{grid-template-columns:1fr}.pool-controls .pool-control-card:last-child{grid-column:auto}.pool-spin{justify-content:space-around}.pool-actions{grid-template-columns:1fr 1fr}.pool-actions #pool-shoot{grid-column:span 2}}
@media(max-width:700px){.pool-controls{position:sticky;bottom:0;z-index:5;grid-template-columns:minmax(80px,1fr) 72px minmax(142px,1.4fr);gap:4px;margin:0 -8px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:#07171bed;box-shadow:0 -12px 30px #000b}.pool-control-card{padding:6px;min-width:0}.pool-control-card>label,.pool-control-card>span{font-size:8px;letter-spacing:.6px;white-space:nowrap}.pool-controls .pool-control-card:last-child{grid-column:auto}.pool-control-card output{font-size:16px;margin:0}.pool-spin{justify-content:center}.pool-spin-pad{width:50px;height:50px}.pool-spin p{display:none}.pool-actions{display:grid;grid-template-columns:1fr 1fr;gap:3px}.pool-actions button{min-height:36px;padding:2px;font-size:9px}.pool-actions #pool-shoot{grid-column:span 2;font-size:13px;min-height:40px}.game-bottom{padding-bottom:12px}}@media(max-width:410px){.pool-controls{grid-template-columns:minmax(75px,1fr) 68px minmax(139px,1.4fr)}}
@media(max-width:700px){body.pool-active{height:100svh;overflow:hidden}.pool-active .game-header{height:54px}.pool-active .game-main{height:calc(100svh - 54px);padding:4px 8px calc(5px + env(safe-area-inset-bottom));display:flex;flex-direction:column;min-height:0}.pool-active .game-heading{flex:none;align-items:center;margin:0 0 4px;padding:0 3px;min-height:35px}.pool-active .game-heading p,.pool-active .game-score small{display:none}.pool-active .game-heading h1{font-size:27px}.pool-active .game-score strong{font-size:17px}.pool-active .pool-room{flex:none;flex-wrap:nowrap;min-height:42px;padding:0 0 4px;gap:8px}.pool-active .pool-room small:first-child,.pool-active #pool-room-note{display:none}.pool-active .pool-room strong{font-size:16px;letter-spacing:2px}.pool-active .pool-room button{min-height:38px;padding:4px 9px;font-size:10px}.pool-active .game-frame{flex:1 1 auto;height:auto;min-height:0;aspect-ratio:auto}.pool-active .pool-controls{position:static;flex:none;margin:4px 0 0;padding:0;box-shadow:none;background:transparent}.pool-active .pool-actions button{min-height:42px}.pool-active .pool-actions #pool-shoot{min-height:43px}.pool-active .game-bottom{flex:none;min-height:26px;padding:4px 2px 0;overflow:hidden}.pool-active .game-bottom p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.25}.pool-active .pool-fight{flex:none;max-height:140px;overflow:auto;margin:4px 0}}
@media(max-width:700px){.pool-active .game-heading{justify-content:flex-start;min-height:22px}.pool-active .game-heading h1{display:none}.pool-active .game-score{text-align:left}.pool-active .game-score strong{font-size:16px}}
@media(max-width:700px){.pool-fight{position:sticky;bottom:0;z-index:5;background:#09191eee;padding:8px;margin:0 -8px calc(env(safe-area-inset-bottom) * -1);box-shadow:0 -12px 30px #000b}.pool-fight p{font-size:10px;line-height:1.35}.pool-fight button{flex:1 1 28%;min-height:44px;padding:7px 4px;font-size:10px}.pool-fight [data-fight="rematch"]{flex-basis:100%}}
.pool-type-picker{display:block;text-align:left;font-size:11px;color:#e9c883;font-weight:800;letter-spacing:1px;margin-top:15px}.pool-type-picker select{display:block;width:100%;min-height:48px;margin-top:8px;padding:10px;border:1px solid #e9c88377;background:#0e2827;color:#fff6df;border-radius:6px;font:700 15px 'DM Sans',sans-serif}.pool-zoom,.pool-labels{flex:none;min-height:44px;padding:0 12px;border:1px solid #e9c88377;border-radius:5px;background:#16332f;color:#f4da99;font-size:11px;font-weight:800;cursor:pointer}.pool-zoom:disabled{opacity:.45}.pool-labels[aria-pressed="false"]{background:#102126;color:#9eb0ac}.pool-active .game-heading{gap:8px}.pool-active .game-score{margin-right:auto}.game-overlay{overflow:auto}.overlay-card{max-width:100%}@media(max-width:700px){.pool-active .game-heading{min-height:44px}.pool-active .game-score strong{font-size:15px}.pool-active .game-heading>div:first-child{display:none}.pool-zoom,.pool-labels{padding:0 8px;font-size:9px}.overlay-card>p:not(:first-child){font-size:12px;line-height:1.4}}
.game-overlay{grid-template-columns:minmax(0,1fr);align-items:safe center}.overlay-card{min-width:0}.pool-type-picker select{min-width:0;max-width:100%}.pool-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.pool-menu button{min-width:0;padding:10px 8px;letter-spacing:0}.pool-join button{margin-top:0}@media(max-width:700px){.game-overlay{padding:12px}.overlay-card{padding:20px 14px}}
