@font-face{font-family:PoolSans;src:url('fonts/dm-sans-regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:PoolSans;src:url('fonts/dm-sans-semibold.ttf') format('truetype');font-style:normal;font-weight:500 800;font-display:swap}
@font-face{font-family:PoolDisplay;src:url('fonts/anton.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{color-scheme:dark;--pool-bg:#100d0b;--pool-paper:#f2e5cd;--pool-muted:#b5a590;--pool-brass:#b99760;--pool-gold:#edc785;--pool-red:#872319;--pool-line:#6a4b2d66;--pool-teal:#214c48;--pool-safe-top:env(safe-area-inset-top,0px);--pool-safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;min-width:280px;min-height:100%;background:var(--pool-bg)}.pool-app{font-family:PoolSans,system-ui,sans-serif;color:var(--pool-paper);background:radial-gradient(ellipse at 10% 15%,#6c321424,transparent 48%),radial-gradient(ellipse at 95% 5%,#ba771a17,transparent 50%),#100d0b;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}button,input,select{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;border:0}button:disabled{opacity:.4;cursor:not-allowed}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #ffd493;outline-offset:3px}button:not(:disabled):active{transform:translateY(1px)}button,select{-webkit-appearance:none}a{color:var(--pool-gold);text-underline-offset:3px}svg{display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}button svg{width:22px;height:22px;flex:none}[hidden]{display:none!important}.table-host{position:absolute;inset:0;min-width:0;min-height:0;isolation:isolate;overflow:hidden}.table-host canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.table-loading{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;font-size:11px;color:#aa977e;letter-spacing:.4px}.loading-ball{width:38px;height:38px;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#fff,#d4cdbd 65%,#878276);border:8px solid #22201d;box-shadow:0 6px 14px #0007;color:#191716;font-size:13px;font-weight:700;border-radius:50%}
/* The home canvas is an actual lounge scene, with the menu in front of its lower edge. */
.home-screen{position:relative;min-height:100svh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;padding:calc(var(--pool-safe-top) + 8px) 22px calc(var(--pool-safe-bottom) + 12px);isolation:isolate;overflow:hidden}.home-screen:before{content:'';position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 0 22%,#ba79351f,transparent 34%),radial-gradient(ellipse at 100% 25%,#8f3b201c,transparent 40%),repeating-linear-gradient(93deg,transparent 0 30px,#0000000c 35px 37px),#130d0b}.home-screen:after{content:'';position:absolute;inset:45% 0 0;z-index:0;background:linear-gradient(transparent 0,#0e0904a6 55%,#0d0906e8 100%);pointer-events:none}.home-brand{position:relative;z-index:2;width:min(420px,100%);text-align:center;pointer-events:none}.home-brand img{display:block;width:100%;height:auto;max-height:175px;object-fit:contain;filter:drop-shadow(0 5px 12px #0009)}.home-brand p{font-size:8px;letter-spacing:3.2px;color:#d2b781;margin:-4px 0 0;font-weight:600}.home-scene{position:absolute;inset:115px -22px 115px;z-index:-1;pointer-events:none}.home-menu{position:relative;z-index:2;display:grid;gap:9px;width:min(340px,100%);margin-top:auto;padding-top:clamp(130px,24dvh,240px)}.menu-button{display:flex;align-items:center;gap:13px;width:100%;min-height:57px;padding:11px 15px;text-align:left;border:1px solid #aa855a80;border-radius:7px;background:linear-gradient(175deg,#30261fe8,#191412f5);box-shadow:inset 0 1px #f3d6b01a,inset 0 -2px #0006,0 5px 12px #0005}.menu-button.primary-menu{background:linear-gradient(175deg,#963629,#4b110ef0);border-color:#c49b69ba;box-shadow:inset 0 1px #ffd6a22b,inset 0 -2px #21030299,0 5px 12px #0005}.menu-button.resume-button{background:linear-gradient(175deg,#36534be8,#182d28f5);border-color:#8f9b72}.menu-button>span:nth-child(2){display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:600;letter-spacing:.1px}.menu-button small{font-size:9px;line-height:1.3;font-weight:400;color:#bbaa95}.primary-menu small{color:#d1af94}.menu-icon{display:grid;place-items:center;width:28px;height:28px;color:#dfc698;font-size:24px}.menu-icon svg{width:25px;height:25px}.menu-chevron{margin-left:auto;color:#c1a67b;font-size:25px;line-height:1}.home-footer{position:relative;z-index:2;width:min(340px,100%);display:flex;align-items:center;justify-content:center;gap:0;margin-top:13px}.home-footer button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;flex:1;font-size:10px;background:none;color:#c2ad8f;padding:6px}.home-footer button+button{border-left:1px solid #7d60393d}.home-footer svg{height:17px;width:17px;color:#b68e5b}.music-home{position:relative;z-index:2;display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;color:#85715c;text-decoration:none;font-size:9px;letter-spacing:.3px;margin:0 auto}
/* Live game: the table always owns a separate grid region from every control. */
.game-screen{width:100%;height:100vh;height:100dvh;min-height:420px;display:grid;grid-template-areas:'players' 'status' 'table' 'controls';grid-template-rows:auto auto minmax(0,1fr) auto;padding-top:var(--pool-safe-top);padding-bottom:var(--pool-safe-bottom);overflow:hidden;background:radial-gradient(ellipse at 50% 25%,#31201660,transparent 63%),#110e0b}.match-header{grid-area:players;display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);align-items:center;gap:4px;padding:7px 10px 6px;border-bottom:1px solid #5b402c75;background:linear-gradient(#251a13,#19120ef5);min-height:62px}.player{display:flex;align-items:center;gap:7px;min-width:0;padding:5px 7px;border-radius:6px;border:1px solid transparent;transition:background .15s,border-color .15s}.player.is-active,.player.active,.player[data-active=true]{background:linear-gradient(110deg,#ab6e272a,#3a2a191a);border-color:#bc8b4a5c;box-shadow:inset 2px 0 #e3b369}.player-monogram{display:grid;place-items:center;width:24px;height:24px;border:1px solid #8f785343;border-radius:50%;color:#aa9274;font-size:10px;background:linear-gradient(135deg,#493425,#211911);flex:none}.player.is-active .player-monogram,.player.active .player-monogram,.player[data-active=true] .player-monogram{border-color:#c99d60;color:#f4d6a7;background:linear-gradient(135deg,#754422,#352010)}.player-copy{min-width:0;flex:1}.player-name-line{display:flex;flex-direction:column;gap:2px;min-width:0}.player-name-line strong{font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-group{font-size:7px;letter-spacing:.3px;color:#a3917b;white-space:nowrap}.player-balls{display:flex;align-items:center;gap:2px;min-height:15px;margin-top:4px;flex-wrap:nowrap}.player-right{flex-direction:row-reverse;text-align:right}.player-right .player-balls{justify-content:flex-end}.player-right.is-active,.player-right.active,.player-right[data-active=true]{box-shadow:inset -2px 0 #e3b369}.pool-ball,.player-balls .ball{--ball-color:#e9b532;width:13px;height:13px;display:inline-grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 28% 20%,#ffffffb0,transparent 42%),var(--ball-color);color:#15110c;font:600 7px/1 PoolSans,sans-serif;box-shadow:inset -1px -2px 3px #0007,0 1px 2px #0007;flex:none;position:relative;isolation:isolate}.pool-ball:before,.player-balls .ball:before{content:'';position:absolute;inset:3px;border-radius:50%;background:#f5f0db;z-index:-1}.pool-ball.striped,.player-balls .ball.striped{background:linear-gradient(#efe8d6 0 24%,var(--ball-color) 24% 76%,#efe8d6 76%)}.icon-button{display:grid;place-items:center;min-width:44px;min-height:44px;background:none;color:#c5b08e;border-radius:5px}.pause-button{justify-self:center;border:1px solid #6b50354f;min-width:36px;width:36px;min-height:40px;background:#30231755}.pause-button svg{width:20px;height:20px;stroke-width:2.3}.match-status{grid-area:status;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:41px;padding:5px 12px 4px;z-index:1;text-align:center}.match-status strong{font-size:11px;font-weight:600;letter-spacing:.3px;color:#e5c99d}.match-status>span{font-size:9px;line-height:1.3;color:#9e8b76;max-width:100%}.game-scene{grid-area:table;position:relative;min-width:0;min-height:0;overflow:hidden}.shot-controls{grid-area:controls;display:grid;gap:6px;padding:8px 15px 7px;background:linear-gradient(#241a13e8,#18110dfc);border-top:1px solid #8e653b4f;box-shadow:0 -4px 25px #0002;position:relative;z-index:2}.shot-options{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:7px}.shot-option{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 8px;background:linear-gradient(#3b2d21,#241b15);border:1px solid #8a68463d;border-radius:5px;font-size:10px;color:#d8c5a9;white-space:nowrap}.shot-option svg{width:19px;height:19px;color:#b89a72}.shot-option[aria-pressed=true],.shot-option.active{border-color:#d2a262;background:linear-gradient(#6b4525,#402817);color:#ffe2b6;box-shadow:inset 0 0 0 1px #dfb16d26}.shot-option[aria-pressed=true] svg{color:#ffd59b}.fine-aim-row{display:flex;align-items:center;gap:10px;min-height:27px}.fine-aim-row label{font-size:8px;letter-spacing:.5px;text-transform:uppercase;color:#9b866c;min-width:46px}.fine-aim-row>span{font-size:11px;color:#9d805d;min-width:8px;text-align:center}.fine-aim-row input{flex:1;min-width:0}.pool-app input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:24px;margin:0;background:transparent;cursor:pointer;accent-color:#d9b379;border-radius:9px;touch-action:none}.pool-app input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:6px;background:linear-gradient(90deg,#72512d,#bb925a);box-shadow:inset 0 1px 3px #0006}.pool-app input[type=range]::-moz-range-track{height:5px;border-radius:6px;background:#79603c;box-shadow:inset 0 1px 3px #0006}.pool-app input[type=range]::-webkit-slider-thumb{appearance:none;width:17px;height:17px;margin-top:-6px;border:1px solid #f3deb6;border-radius:50%;background:linear-gradient(#fbebcc,#aa8555);box-shadow:0 2px 5px #0008}.pool-app input[type=range]::-moz-range-thumb{width:16px;height:16px;border:1px solid #f3deb6;border-radius:50%;background:linear-gradient(#fbebcc,#aa8555);box-shadow:0 2px 5px #0008}.fine-aim-row input[type=range]::-webkit-slider-runnable-track{height:3px;background:linear-gradient(90deg,#4f3d2b 49.5%,#d3ba90 49.5% 50.5%,#4f3d2b 50.5%)}.fine-aim-row input[type=range]::-webkit-slider-thumb{width:12px;height:12px;margin-top:-4.5px}.power-row{display:flex;align-items:center;gap:15px;min-height:47px}.power-control{flex:1;min-width:0}.power-control label{display:flex;justify-content:space-between;align-items:center;font-size:8px;text-transform:uppercase;letter-spacing:.7px;color:#a78e6e;margin-bottom:2px}.power-control output{font-size:10px;letter-spacing:.2px;color:#eed1a1;font-weight:600}.shoot-button{display:flex;align-items:center;justify-content:center;gap:15px;min-height:46px;min-width:104px;padding:10px 15px;color:#fff0d1;border:1px solid #c3985e;border-radius:5px;background:linear-gradient(#9c3b27,#581b12);box-shadow:inset 0 1px #edbe8a36,0 2px 0 #04030280;font-size:13px;font-weight:600;letter-spacing:.3px}.shoot-button svg{width:20px;height:20px}.aim-help{font-size:8px;color:#8b755c;text-align:center;line-height:1.4;margin:0;padding:1px 0 0;min-height:12px}.placement-confirm{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;border:1px solid #96b7a1;background:linear-gradient(#3c6551,#1e3d30);border-radius:5px;color:#e4f1db;font-size:12px;font-weight:600}.practice-controls{display:flex;gap:7px}.practice-controls button{flex:1;min-height:35px;border:1px solid #75543880;border-radius:4px;background:#34261c;color:#d0b58e;font-size:10px}
/* Dialogs share one restrained, readable menu surface. */
.pool-panel{color:var(--pool-paper);width:min(440px,calc(100% - 28px));max-height:calc(100dvh - var(--pool-safe-top) - var(--pool-safe-bottom) - 30px);padding:0;background:linear-gradient(145deg,#35251b,#1c1510 55%);border:1px solid #9b795253;border-radius:12px;box-shadow:0 25px 100px #000b;overflow:auto;scrollbar-width:thin;scrollbar-color:#725538 #22170f}.pool-panel::backdrop{background:#080504bf;backdrop-filter:blur(7px)}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:15px;position:sticky;top:0;padding:14px 16px 12px 22px;background:#2b2019f5;backdrop-filter:blur(15px);border-bottom:1px solid #7253324d;z-index:2}.panel-header h2{margin:0;font:400 26px/1.2 PoolDisplay,sans-serif;letter-spacing:.4px;color:#f0d9b3}.panel-header .icon-button{min-height:40px;min-width:40px}.panel-body{padding:20px 22px 24px;font-size:12px;color:#c2ae93;line-height:1.65}.panel-body h3{font-size:13px;color:#ebd1a9;margin:22px 0 8px}.panel-body h3:first-child{margin-top:0}.panel-body p{margin:0 0 14px}.panel-body strong{color:#e8cfaa;font-weight:600}.panel-body ol,.panel-body ul{padding-left:20px;margin:10px 0 18px}.panel-body li+li{margin-top:9px}.panel-body label{font-size:12px;color:#d1b997}.panel-body select{padding:10px 13px;border:1px solid #7f60444d;background:#211810;color:#ecd2ad;border-radius:5px;max-width:100%;min-height:44px}.panel-body input[type=checkbox]{accent-color:#d2b078;width:18px;height:18px}.panel-body button{min-height:44px;border-radius:5px;padding:10px 14px;background:linear-gradient(#493321,#2b1d13);border:1px solid #86634066;color:#e4c69b;font-size:12px;line-height:1.3}.panel-body button.primary,.panel-body .primary-button{background:linear-gradient(#963923,#581c13);border-color:#bf955b;color:#ffe5bc}.panel-body button.danger{color:#ecb19d;border-color:#995a3c}.panel-body button[aria-pressed=true],.panel-body button.selected{background:#6f4b29;border-color:#e5ba7c;color:#ffe8c5}.panel-body .menu-actions,.panel-actions{display:grid;gap:9px;margin-top:16px}.panel-body .setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid #75502b35}.panel-body .button-row,.panel-body .choice-row{display:flex;gap:8px;margin:10px 0}.panel-body .button-row>*,.panel-body .choice-row>*{flex:1}.install-note{border-top:1px solid #76543145;padding-top:14px;margin-top:20px!important;font-size:10px;line-height:1.6;color:#a68d6f}.panel-body .ball-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:15px 0}.panel-body .ball-grid button{min-width:0;padding:6px}.panel-body .pool-ball,.panel-body .ball{width:28px;height:28px;font-size:12px;margin:auto}.panel-body .pool-ball:before,.panel-body .ball:before{inset:7px}.panel-body .pocket-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.panel-body .spin-target{touch-action:none}.pool-toast{position:fixed;left:50%;bottom:calc(20px + var(--pool-safe-bottom));z-index:20;transform:translate(-50%,15px);max-width:calc(100vw - 32px);width:max-content;padding:11px 17px;border:1px solid #a57c43;background:#3e2c1bf5;color:#f2d5a6;border-radius:7px;box-shadow:0 5px 25px #0008;font-size:11px;line-height:1.5;text-align:center;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}.pool-toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:600px) and (orientation:portrait){.home-brand{width:480px}.home-brand img{max-height:210px}.home-scene{inset:130px -50px 125px}.home-menu{width:380px;padding-top:35dvh}.menu-button{min-height:65px}.menu-button>span:nth-child(2){font-size:16px}.menu-button small{font-size:10px}.home-footer{width:380px;margin-top:19px}.home-footer button{font-size:12px}.home-screen{padding-top:calc(var(--pool-safe-top) + 20px)}.match-header{padding:12px 30px;min-height:78px;gap:20px}.player-name-line{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.player-name-line strong{font-size:14px}.player-group{font-size:10px}.player-monogram{width:32px;height:32px;font-size:12px}.player-balls{gap:5px;margin-top:7px}.pool-ball,.player-balls .ball{height:18px;width:18px;font-size:9px}.pool-ball:before,.player-balls .ball:before{inset:4px}.match-status{min-height:49px}.match-status strong{font-size:13px}.match-status>span{font-size:11px}.shot-controls{padding:12px max(30px,calc((100vw - 630px)/2)) 10px;gap:8px}.shot-option{font-size:12px;min-height:47px}.fine-aim-row{min-height:32px}.fine-aim-row label,.power-control label{font-size:10px}.power-control output{font-size:12px}.shoot-button{min-width:135px;min-height:50px;font-size:15px}.aim-help{font-size:10px}.game-scene{margin:0 20px}}
@media(orientation:landscape) and (min-width:650px){.game-screen{min-height:300px;grid-template-areas:'players players' 'table controls' 'status controls';grid-template-columns:minmax(0,1fr) 226px;grid-template-rows:60px minmax(0,1fr) 35px;padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}.match-header{padding:4px 20px;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:20px;min-height:0}.player{max-width:315px;padding:4px 9px}.player-right{justify-self:end;width:100%}.player-name-line{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.player-name-line strong{font-size:12px}.player-group{font-size:9px}.player-balls{min-height:13px;margin-top:4px;gap:4px}.player-right .player-name-line{flex-direction:row-reverse}.player-right .player-balls{justify-content:flex-start}.player-monogram{width:27px;height:27px}.shot-controls{align-content:center;border-top:0;border-left:1px solid #8e653b4f;padding:12px 13px;gap:12px;background:linear-gradient(110deg,#251a14,#19120e)}.shot-options{grid-template-columns:1fr 1fr;gap:7px}.shot-options #call-btn{grid-column:1/-1}.shot-option{min-height:42px;font-size:10px}.shot-option svg{width:17px;height:17px}.fine-aim-row{gap:6px;min-height:24px}.fine-aim-row label{font-size:7px;min-width:38px}.power-row{flex-direction:column;align-items:stretch;gap:11px}.power-control label{font-size:9px}.power-control output{font-size:11px}.shoot-button{width:100%;min-height:46px}.aim-help{font-size:8px;max-width:180px;margin:auto}.match-status{flex-direction:row;gap:10px;min-height:0;overflow:hidden;padding:4px 12px}.match-status strong{font-size:10px;white-space:nowrap}.match-status>span{font-size:9px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.placement-confirm{font-size:10px;min-height:40px}.practice-controls{gap:5px}.practice-controls button{font-size:8px;min-height:30px;padding:5px}.home-screen{padding:12px 32px 10px;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,33%);grid-template-rows:1fr auto auto;column-gap:25px;align-items:end}.home-brand{grid-column:1;grid-row:1;position:absolute;top:4%;left:2%;width:52%;max-width:520px}.home-brand img{max-height:180px}.home-brand p{font-size:7px}.home-scene{inset:70px 25% 10px -8%;z-index:-1}.home-screen:after{inset:0;background:linear-gradient(90deg,transparent 38%,#100b078c 68%,#0d0906d9 100%)}.home-menu{grid-column:2;grid-row:1;padding:0;gap:8px;width:100%;margin-top:20px;align-self:center}.menu-button{min-height:52px;padding:8px 12px;gap:9px}.menu-button>span:nth-child(2){font-size:12px}.menu-button small{font-size:8px}.menu-icon{width:23px}.menu-icon svg{width:22px;height:22px}.home-footer{grid-column:2;grid-row:2;margin-top:5px;width:100%}.home-footer button{font-size:9px;gap:5px;min-height:40px}.home-footer svg{width:14px;height:14px}.music-home{grid-column:2;grid-row:3;margin-top:0;font-size:8px;min-height:22px}.pool-panel{max-height:calc(100dvh - 24px);width:min(500px,calc(100% - 32px))}.panel-header{padding-top:8px;padding-bottom:8px}.panel-header h2{font-size:24px}.panel-body{padding-top:16px}}
@media(min-width:1100px) and (orientation:landscape){.game-screen{grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:80px minmax(0,1fr) 48px;padding-left:max(env(safe-area-inset-left,0px),18px);padding-right:max(env(safe-area-inset-right,0px),18px)}.match-header{padding:10px 25px}.player{max-width:400px;padding:7px 12px;gap:12px}.player-name-line strong{font-size:15px}.player-group{font-size:10px}.player-monogram{width:33px;height:33px;font-size:12px}.player-balls{gap:5px;margin-top:5px}.pool-ball,.player-balls .ball{width:18px;height:18px;font-size:9px}.pool-ball:before,.player-balls .ball:before{inset:4px}.shot-controls{padding:25px;gap:23px}.shot-option{min-height:47px;font-size:12px}.shot-option svg{width:20px;height:20px}.fine-aim-row label,.power-control label{font-size:9px}.fine-aim-row{gap:9px}.shoot-button{min-height:53px;font-size:15px}.power-row{gap:20px}.power-control output{font-size:12px}.aim-help{font-size:10px;max-width:200px;line-height:1.6}.match-status strong{font-size:13px}.match-status>span{font-size:11px}.home-screen{padding:25px 7% 25px;grid-template-columns:minmax(0,1fr) 360px;column-gap:60px}.home-brand{top:4%;left:6%;width:52%;max-width:650px}.home-brand img{max-height:260px}.home-brand p{font-size:10px;letter-spacing:4px}.home-scene{inset:100px 20% 30px -7%}.home-menu{gap:13px;margin-top:25px}.menu-button{min-height:74px;padding:14px 19px;gap:16px;border-radius:9px}.menu-button>span:nth-child(2){font-size:17px;gap:6px}.menu-button small{font-size:11px}.menu-icon{width:30px}.menu-icon svg{width:28px;height:28px}.home-footer button{font-size:11px;min-height:48px}.home-footer svg{width:18px;height:18px}.music-home{font-size:10px;min-height:35px}.home-footer{margin-top:20px}.home-menu{align-self:end;margin-bottom:30px}.home-screen{grid-template-rows:1fr auto auto}}
@media(max-width:359px) and (orientation:portrait){.home-screen{padding-left:16px;padding-right:16px;padding-top:calc(var(--pool-safe-top) + 2px)}.home-brand img{max-height:137px}.home-brand p{font-size:6px;letter-spacing:2.5px}.home-menu{gap:7px;padding-top:105px}.menu-button{min-height:50px;padding:8px 12px;gap:9px}.menu-button>span:nth-child(2){font-size:12px}.menu-button small{font-size:8px}.home-footer{margin-top:8px}.home-footer button{font-size:9px}.music-home{font-size:8px;min-height:23px}.match-header{padding:4px 6px;gap:2px;min-height:57px;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr)}.player{padding:4px;gap:4px}.player-monogram{display:none}.player-name-line strong{font-size:10px}.player-group{font-size:7px}.player-balls{gap:2px}.pause-button{min-width:32px;width:32px}.shot-controls{padding:6px 10px 5px;gap:4px}.shot-option{font-size:9px;gap:4px;min-height:42px}.shot-option svg{width:17px;height:17px}.power-row{gap:11px;min-height:44px}.shoot-button{min-width:88px;min-height:44px;font-size:12px;gap:8px}.fine-aim-row{min-height:25px}.aim-help{font-size:7px}.match-status{min-height:38px;padding:4px 8px}.match-status strong{font-size:10px}.match-status>span{font-size:8px}.panel-body{padding:17px;font-size:11px}.panel-header{padding-left:17px}}
@media(max-height:600px) and (orientation:portrait){.home-brand img{max-height:125px}.home-brand p{margin-top:-7px;font-size:6px}.home-menu{padding-top:98px;gap:7px}.menu-button{min-height:49px;padding:8px 12px}.menu-button small{font-size:8px}.home-footer{margin-top:6px}.home-footer button{min-height:40px}.music-home{min-height:22px}.home-scene{inset:75px -25px 90px}.home-screen:after{inset:40% 0 0}.home-screen{padding-bottom:calc(var(--pool-safe-bottom) + 6px)}}
@media(max-height:380px) and (orientation:landscape){.game-screen{grid-template-rows:53px minmax(0,1fr) 31px;grid-template-columns:minmax(0,1fr) 205px}.match-header{padding-top:2px;padding-bottom:2px;gap:12px}.player-name-line strong{font-size:10px}.player-group{font-size:8px}.player-balls{margin-top:2px}.shot-controls{gap:7px;padding:8px 10px}.shot-option{min-height:36px;font-size:9px}.shot-options{gap:5px}.fine-aim-row{min-height:21px}.power-row{gap:5px}.shoot-button{min-height:40px;font-size:12px}.aim-help{font-size:7px}.home-brand img{max-height:145px}.menu-button{min-height:45px;padding:6px 10px}.menu-button>span:nth-child(2){font-size:11px}.menu-button small{font-size:7px}.home-menu{gap:6px;margin-top:9px}.home-footer button{min-height:33px;font-size:8px}.home-footer{margin-top:0}.music-home{min-height:20px;font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(hover:hover){button:not(:disabled):hover{filter:brightness(1.12)}.music-home:hover{color:#d1ad77}}
/* App-generated panel content. */
.panel-body .panel-actions{display:grid;gap:9px;margin-top:16px}.panel-body .panel-actions button{width:100%;min-height:44px;text-align:center}.panel-body .secondary{background:linear-gradient(#3e3025,#281e16);border-color:#9c7a4d66}.panel-note{font-size:10px;line-height:1.6;color:#a89072;margin:12px 0!important}.panel-body .call-balls{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0 20px}.panel-body .ball-choice{display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;width:44px;height:44px;border-radius:50%;padding:0;border:2px solid #877556;background:radial-gradient(circle at 30% 20%,#ffffff65,transparent 45%),var(--ball-color,#e1bf7f);color:#17120b;font-size:14px;font-weight:600;box-shadow:inset -2px -3px 4px #0005}.panel-body .ball-choice.active,.panel-body .ball-choice.selected,.panel-body .ball-choice[aria-pressed=true]{outline:3px solid #e1a953;outline-offset:3px;border-color:#fff0c9}.panel-body .pocket-grid button{min-height:44px;font-size:12px;font-weight:600}.panel-body .pocket-grid button.active{border-color:#e5b779;background:linear-gradient(#71502a,#4a2e16);color:#ffe7bc;box-shadow:inset 0 0 0 1px #e5b77933}.panel-body .spin-pad{width:160px;height:160px;margin:22px auto;position:relative;touch-action:none;cursor:crosshair;border-radius:50%;border:1px solid #e2c99f;background:radial-gradient(circle at 35% 25%,#fffdf1 0,#f1e4c9 38%,#ccbb97 72%,#8b7755 100%);box-shadow:inset -8px -10px 20px #5c41282b,0 7px 22px #0006}.spin-pad:before,.spin-pad:after{content:'';position:absolute;pointer-events:none;background:#7c6d5540}.spin-pad:before{left:50%;top:10%;height:80%;width:1px}.spin-pad:after{top:50%;left:10%;width:80%;height:1px}#spin-dot{position:absolute;left:50%;top:50%;width:12px;height:12px;background:#ad2e20;border:1px solid #ffbc93;border-radius:50%;box-shadow:0 1px 4px #47181077;transform:translate(-50%,-50%);z-index:1;pointer-events:none}.panel-body .rule-list{padding-left:18px;line-height:1.75}.panel-body .rule-list li+li{margin-top:12px}.panel-body .choice-options{display:grid;gap:9px;margin:15px 0}.choice-options button{min-height:50px;text-align:left}.choice-options button small{display:block;font-size:10px;line-height:1.5;font-weight:400;color:#b99c77;margin-top:5px}.tutorial-step{border:1px solid #ab7a424d;border-radius:7px;background:#61402222;padding:15px 16px;margin:14px 0;line-height:1.7}.tutorial-step strong{display:block;color:#e6c58f;margin-bottom:6px}.result-badge{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;margin:4px auto 17px;border:1px solid #c79c62;background:radial-gradient(circle at 30% 20%,#8c6136,#332114);color:#f2d7a3;font-size:26px;box-shadow:0 4px 20px #0005,inset 0 0 0 5px #291a0c88}.panel-body .result-title{text-align:center;font:400 28px PoolDisplay,sans-serif;color:#f2d7a3;margin:12px 0}.panel-body .result-message{text-align:center}
/* Keep every action easy to tap, including compact landscape layouts. */
.home-footer button,.shot-option,.shoot-button,.placement-confirm,.practice-controls button,.pause-button{min-height:44px}.pause-button{min-width:44px;width:44px}.shot-controls{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#755331 #22180f}
@media(max-width:359px) and (orientation:portrait){.match-header{grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr)}}
@media(max-height:380px) and (orientation:landscape){.shot-options{grid-template-columns:1.15fr 1fr 1fr}.shot-options #call-btn{grid-column:auto}.shot-option{flex-direction:column;gap:3px;font-size:8px;padding:5px 3px}.shot-option svg{height:16px;width:16px}.home-footer button{min-height:44px}.practice-controls button{min-height:44px}.shot-controls{gap:7px}}
/* Readable app labels, including narrow phones. Decorative marks alone stay small. */
.home-menu .menu-button>span:nth-child(2){font-size:16px;line-height:1.25;gap:3px}
.home-menu .menu-button small{font-size:11px;line-height:1.3}
.home-footer button{font-size:12px;min-height:44px}
.home-footer svg{width:18px;height:18px}
.music-home{font-size:11px}
.player-name-line strong{font-size:13px;line-height:1.2}
.player-group{font-size:11px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.player-balls .open-label{font-size:11px;line-height:1.2;color:#b8a185;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.match-status strong{font-size:13px;line-height:1.25}
.match-status>span{font-size:12px;line-height:1.35;color:#b7a18a}
.shot-option{font-size:12px;line-height:1.25;min-height:44px}
.fine-aim-row label,.power-control label{font-size:12px;line-height:1.25;letter-spacing:0;text-transform:none}
.fine-aim-row label{min-width:47px}
.fine-aim-row>span{font-size:14px}
.power-control output{font-size:13px}
.shoot-button{font-size:14px;min-height:46px}
.aim-help{font-size:11px;line-height:1.35;color:#b09a7d;min-height:15px}
.placement-confirm{font-size:13px;min-height:44px}
.practice-controls button{font-size:12px;min-height:44px}
.panel-body{font-size:14px;line-height:1.65}
.panel-body h3{font-size:15px}
.panel-body label,.panel-body select,.panel-body button{font-size:14px}
.panel-note,.install-note{font-size:12px;line-height:1.55;color:#b9a080}
.choice-options button small{font-size:12px;line-height:1.5}
.panel-body .ball-choice{background:linear-gradient(#3f3022,#211810);border-color:#866b48;padding:4px}
.panel-body .ball-choice .pool-ball,.panel-body .ball-choice .ball{width:32px;height:32px;font-size:12px;display:grid;place-items:center;position:relative;isolation:isolate;flex:none;margin:auto;border-radius:50%}
.panel-body .ball-choice .pool-ball:before,.panel-body .ball-choice .ball:before{inset:7px}
.panel-body .ball-choice .pool-ball>span,.panel-body .ball-choice .ball>span{font-size:12px;line-height:1;position:relative;z-index:1}
.panel-body .pocket-grid button{font-size:13px;min-height:44px}
@media(max-width:359px) and (orientation:portrait){
 .home-footer button{font-size:11px}
 .player-name-line strong{font-size:13px}.player-group{font-size:11px}
 .match-header{min-height:66px}
 .match-status{min-height:45px}.match-status strong{font-size:13px}.match-status>span{font-size:12px}
 .shot-option{font-size:12px;gap:4px;padding-left:5px;padding-right:5px}
 .shot-option svg{width:16px;height:16px}
 .fine-aim-row{gap:7px}.fine-aim-row label,.power-control label{font-size:12px}
 .aim-help{font-size:11px}.shoot-button{font-size:14px}
 .panel-body{font-size:14px}
}
@media(max-height:650px) and (orientation:portrait){
 .home-brand img{max-height:98px}.home-brand p{display:none}
 .home-menu{padding-top:44px;gap:7px}
 .home-menu .menu-button{min-height:57px;padding:9px 12px}
 .home-footer{margin-top:7px}.home-footer button{min-height:44px}
 .home-screen .music-home{display:none}
 .home-screen{padding-top:calc(var(--pool-safe-top) + 3px);padding-bottom:calc(var(--pool-safe-bottom) + 7px)}
}
@media(orientation:landscape) and (min-width:650px){
 .player-name-line strong{font-size:13px}.player-group{font-size:11px}
 .match-status strong{font-size:13px}.match-status>span{font-size:12px}
 .shot-option{font-size:12px;min-height:44px}
 .fine-aim-row label,.power-control label{font-size:12px}
 .fine-aim-row label{min-width:47px}.fine-aim-row{gap:5px}
 .power-control output{font-size:13px}.shoot-button{font-size:14px}
 .aim-help{font-size:11px;line-height:1.35}
 .placement-confirm{font-size:12px}.practice-controls button{font-size:12px}
 .home-menu{gap:7px;margin-top:4px}.home-menu .menu-button{min-height:57px;padding:8px 12px}
 .home-footer button{font-size:11px;min-height:44px}.home-footer{margin-top:3px}
 .music-home{font-size:11px}
}
@media(max-height:450px) and (orientation:landscape){
 .home-screen .music-home{display:none}.home-screen{grid-template-rows:1fr auto;padding-top:8px;padding-bottom:8px}
 .home-menu{margin:0;gap:6px}.home-menu .menu-button{min-height:56px;padding:7px 11px}
 .home-footer{margin-top:3px}.home-footer button{font-size:11px;min-height:44px}
 .shot-options{grid-template-columns:1fr 1fr}.shot-options #call-btn{grid-column:1/-1}
 .shot-option{flex-direction:row;gap:5px;font-size:12px;min-height:44px}
 .fine-aim-row label,.power-control label{font-size:12px}
 .shot-controls{overflow-y:auto;align-content:start;gap:7px;padding-top:9px;padding-bottom:9px}
 .shot-controls .power-row{gap:7px}.shoot-button{min-height:44px}
 .practice-controls button{font-size:12px;min-height:44px}
}

/* Lounge edition: a live dimensional table, lacquer, chrome and warm stage light. */
.home-screen:before{background:linear-gradient(#10070312,#10070340),url('lounge.webp') center 42%/cover no-repeat}
.home-screen:after{inset:38% 0 0;background:linear-gradient(transparent,#10080533 30%,#0a0504e8 100%)}
.home-screen{padding-left:24px;padding-right:24px}
.home-brand{width:min(530px,110%)}
.home-brand img{max-height:195px;filter:drop-shadow(0 6px 5px #000a)}
.home-scene{inset:125px -8% 220px;z-index:-1}
.home-menu{width:min(390px,100%);gap:11px;padding-top:clamp(110px,21dvh,195px)}
.ready-title{font:italic 400 clamp(28px,7vw,42px)/1.15 PoolDisplay,sans-serif;letter-spacing:.7px;text-transform:uppercase;text-align:center;margin:0 0 5px;color:#fff0cd;text-shadow:2px 3px #1d0a02,0 0 24px #cb692b55;transform:rotate(-3deg)}
.ready-title:after{content:'';display:block;height:3px;margin:7px 9% 0;background:linear-gradient(90deg,transparent,#e23c25 20%,#ff6240 80%,transparent);transform:skew(-20deg)}
.home-menu .menu-button{position:relative;min-height:68px;padding:12px 18px;gap:17px;border:2px solid #b5a18b;border-radius:18px;background:linear-gradient(175deg,#4a3326 0,#191310 23%,#080706 58%,#24160f 100%);box-shadow:0 2px 0 #2c150b,0 0 0 2px #180c08,0 0 0 3px #8e7052,inset 0 2px 2px #fff0cf80,inset 0 -2px 2px #000d,0 6px 12px #0008}
.home-menu .primary-menu{background:radial-gradient(ellipse at 35% 0,#ff795a60,transparent 70%),linear-gradient(175deg,#d8432c,#860d0d 35%,#4d0305 66%,#9f1811);border-color:#e0c7a9;box-shadow:0 0 0 2px #340c08,0 0 0 3px #9b7b5b,inset 0 2px 3px #ffe4bdc0,inset 0 -3px 3px #240100,0 6px 16px #0008}
.home-menu .resume-button{background:linear-gradient(170deg,#2a6a60,#0b2b26 55%,#123b32)}
.home-menu .menu-button>span:nth-child(2){font:400 23px/1.15 PoolDisplay,sans-serif;letter-spacing:1px;text-transform:uppercase}
.home-menu .menu-button small{font:400 12px/1.25 PoolSans,sans-serif;letter-spacing:0;text-transform:none;color:#dbc8b2}
.home-menu .primary-menu small,.home-menu #play-practice small{display:none}
.menu-icon{width:33px;height:33px;color:#f1dfb9}.menu-icon svg{width:30px;height:30px}.menu-chevron{font-size:33px;color:#ecd6b0}
.home-footer{width:min(390px,100%);margin-top:18px}.home-footer button{color:#f0ddbc;gap:9px;font-size:12px;text-shadow:0 2px 3px #000}.home-footer svg{width:28px;height:28px;color:#e4bf8b}
.music-home{color:#b6a08a}.home-footer button+button{border-left-color:#b3935c80}
.match-wordmark,.aim-adjust{display:none}
.aim-dial-label{display:flex;justify-content:space-between;align-items:center;margin-top:20px}#aim-dial{width:100%;min-height:44px;accent-color:#d59654}
@media(orientation:portrait){
 .home-screen{min-height:100dvh}.home-menu{margin-top:auto}.home-screen:has(#resume-game:not([hidden])) .home-scene{bottom:270px}
}
@media(max-height:700px) and (orientation:portrait){
 .home-brand img{max-height:140px}.home-scene{inset:84px -9% 235px}
 .home-menu{padding-top:90px;gap:9px}.ready-title{font-size:29px;margin-bottom:3px}
 .home-menu .menu-button{min-height:55px;padding:8px 14px;border-radius:15px}.home-menu .menu-button>span:nth-child(2){font-size:20px}
 .home-menu .menu-button small{font-size:11px}.home-footer{margin-top:12px}.home-screen .music-home{display:none}
 .home-screen:has(#resume-game:not([hidden])) .ready-title{display:none}
}
@media(orientation:landscape){
 /* The canvas is edge to edge; only narrow controls sit outside all six pockets. */
 .game-screen{position:relative;display:block;min-height:280px;height:100dvh;padding:0;isolation:isolate;background:repeating-linear-gradient(2deg,#140b08 0,#25140d 3px,#1a0d09 7px,#20100a 22px)}
 .game-screen:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,#a85e2329,transparent 70%);pointer-events:none}
 .game-scene{position:absolute;inset:0;margin:0;padding:0;width:100%;height:100%;min-height:0;overflow:hidden}
 .match-header{position:absolute;z-index:3;top:0;left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);height:44px;min-height:0;padding:2px 60px;display:grid;grid-template-columns:1fr 190px 1fr;gap:10px;background:linear-gradient(#0c0806ee,#1d100ab0 80%,transparent);border:0;pointer-events:none}
 .player{height:40px;padding:3px 9px;gap:8px;border-radius:10px;max-width:300px;background:linear-gradient(#100d0b,#060505e6);border:1px solid #76654d70;pointer-events:auto}
 .player-right{grid-column:3;justify-self:end;width:100%}.player-monogram{height:29px;width:29px;border-color:#ccaf7f;background:radial-gradient(circle at 35% 20%,#842d1f,#1f0e0a);color:#e8d3a9;font-family:PoolDisplay;font-size:13px}
 .player-name-line{display:flex;align-items:center;gap:7px}.player-name-line strong{font-family:PoolDisplay;font-size:14px;font-weight:400;letter-spacing:.5px;text-transform:uppercase}.player-group{font-size:10px;margin-left:auto}.player-balls{margin-top:2px;gap:4px;min-height:14px}.player-balls .pool-ball,.player-balls .ball{width:15px;height:15px;font-size:9px}.player-balls .open-label{font-size:10px}.player.is-active{background:linear-gradient(110deg,#4c2712,#160e09);border-color:#c69756;box-shadow:inset 2px 0 #ffd698,0 0 12px #bc732b18}
 .match-wordmark{display:flex;position:relative;grid-column:2;grid-row:1;flex-direction:column;align-items:center;justify-content:center;align-self:start;margin-top:-3px;padding:2px 10px 3px;border:1px solid #c5ac89;border-radius:3px 3px 18px 18px;background:linear-gradient(165deg,#cd3e29,#590609 55%,#8d2117);box-shadow:0 1px 0 #322619,0 2px 0 #ae9272,inset 0 1px 1px #fff6da85;color:#fff0cc;text-shadow:1px 2px #280b06;min-height:40px}
 .match-wordmark b{font:400 22px/.95 PoolDisplay,sans-serif;letter-spacing:.5px}.match-wordmark small{font-size:8px;letter-spacing:2px;line-height:1.6}.match-wordmark>span{position:absolute;top:100%;margin-top:2px;font:400 11px/1.2 PoolDisplay,sans-serif;letter-spacing:.5px;white-space:nowrap;text-transform:uppercase;color:#f9dfad;background:#100c09;border:1px solid #a17a48;border-radius:10px;padding:2px 14px;max-width:230px;overflow:hidden;text-overflow:ellipsis}
 .pause-button{position:fixed;right:calc(env(safe-area-inset-right,0px) + 8px);top:calc(env(safe-area-inset-top,0px) + 51px);width:44px;height:44px;min-height:44px;border:1px solid #d0b383;border-radius:50%;background:linear-gradient(145deg,#4b2c18,#130b07);box-shadow:inset 0 1px #ffedb768,0 3px 7px #0008;pointer-events:auto}
 .match-status{position:absolute!important;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0}
 .shot-controls{position:absolute;z-index:4;top:calc(env(safe-area-inset-top,0px) + 103px);right:calc(env(safe-area-inset-right,0px) + 7px);bottom:calc(env(safe-area-inset-bottom,0px) + 7px);width:46px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:6px;padding:0;margin:0;overflow:visible;border:0;background:none;box-shadow:none}
 .shot-options,.shot-controls .power-row{display:contents}
 .shot-controls .shot-option{flex:none;width:46px;min-width:0;height:46px;min-height:46px;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:4px 1px;font-size:10px;line-height:1.1;border:1px solid #aa8b61;border-radius:10px;background:linear-gradient(160deg,#422b1c,#120b07);box-shadow:inset 0 1px #e7c59550,0 2px 5px #0005}
 .shot-option svg{width:21px;height:21px}.shot-controls #call-btn{order:1}.shot-controls #call-btn span{display:none}.shot-controls #call-btn:after{content:attr(data-call);font-size:11px;line-height:1.1}.shot-controls #safety-btn{order:2}.shot-controls #aim-adjust{order:3}.shot-controls #spin-btn{order:4;border-radius:50%;color:#332218;background:radial-gradient(circle at 30% 22%,#fffcef,#cdbfa5 72%,#7b6a50);border:2px solid #9d825c;box-shadow:0 2px 5px #0008}
 .shot-controls #spin-btn svg{stroke:#6c3921}.shot-controls .shot-option[aria-pressed=true]{border-color:#ffdd9d;background:linear-gradient(#785331,#3e2817)}
 .shot-controls .shoot-button{order:5;margin-top:auto;flex:none;width:46px;min-width:0;min-height:50px;height:50px;display:flex;flex-direction:column;gap:3px;justify-content:center;align-items:center;padding:4px 1px;border-radius:12px;border:1px solid #dfba8b;background:linear-gradient(150deg,#c13721,#62070a 65%,#8c1c13);font:400 13px/1 PoolDisplay,sans-serif;text-transform:uppercase;box-shadow:inset 0 1px #ffe0b77a,0 2px 6px #0007}
 .shoot-button svg{width:23px;height:18px}.shot-controls .placement-confirm{order:6;margin-top:auto;min-width:0;width:46px;height:50px;flex:none;font-size:0;padding:4px;border-radius:12px;background:linear-gradient(#35675b,#183a30);border:1px solid #d0bd8b}.placement-confirm:before{content:'Place';font:400 13px PoolDisplay,sans-serif}.placement-confirm span{display:block;font-size:18px}
 body[data-placing=true] .shot-controls .shoot-button{display:none}
 .shot-controls .power-control{position:fixed;z-index:4;left:calc(env(safe-area-inset-left,0px) + 7px);top:calc(env(safe-area-inset-top,0px) + 61px);bottom:calc(env(safe-area-inset-bottom,0px) + 12px);width:42px;display:flex;flex-direction:column;align-items:center;border:1px solid #b6a38a;border-radius:10px;background:linear-gradient(90deg,#736254,#160f0b 12%,#080604 82%,#8f7b5e);box-shadow:0 0 0 2px #080605,inset 0 0 0 3px #34251a,0 5px 10px #0009;padding:8px 0 6px}
 .power-control label{display:flex;flex-direction:column;align-items:center;gap:4px;color:#f5ddb6;font-size:10px;line-height:1.15}.power-control label>span{font-size:0}.power-control label>span:after{content:'POWER';font:400 10px PoolDisplay,sans-serif;letter-spacing:.5px}.power-control output{font-size:11px}
 #power{writing-mode:vertical-lr;direction:rtl;appearance:auto;-webkit-appearance:auto;accent-color:#dc842f;flex:1;width:42px;min-height:44px;height:0;margin:5px 0 0;padding:0;background:none;touch-action:none}
 #power::-webkit-slider-runnable-track{height:100%;width:7px;background:linear-gradient(#f4d195,#cf7426 45%,#7c210e);border:1px solid #e4c08a;border-radius:4px}#power::-webkit-slider-thumb{appearance:auto;-webkit-appearance:auto}
 .shot-controls .fine-aim-row,.shot-controls .practice-controls,.shot-controls .aim-help{display:none}
 .home-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,35%);grid-template-rows:1fr auto auto;padding:18px 5%;column-gap:4%;height:100dvh;min-height:350px}.home-screen:before{background-position:center 38%}.home-screen:after{inset:0;background:linear-gradient(90deg,transparent 35%,#0b05065e 65%,#0b0506a8)}
 .home-brand{position:absolute;top:1%;left:1%;width:55%;max-width:650px}.home-brand img{max-height:210px}.home-scene{inset:110px 35% 0 -3%}.home-menu{grid-column:2;align-self:end;padding-top:0;margin:0;width:100%;gap:10px}.home-footer{grid-column:2;width:100%;margin-top:14px}.music-home{grid-column:2}.ready-title{font-size:32px}.home-menu .menu-button{min-height:65px}.home-menu .menu-button>span:nth-child(2){font-size:22px}
}
@media(orientation:landscape) and (min-height:600px){
 .match-header{height:54px;padding:4px 65px;grid-template-columns:1fr 230px 1fr;gap:20px}.player{height:46px;max-width:360px}.player-monogram{height:34px;width:34px}.player-balls .pool-ball,.player-balls .ball{width:18px;height:18px}.match-wordmark{min-height:44px}.match-wordmark b{font-size:27px}.match-wordmark small{font-size:9px}.match-wordmark>span{font-size:12px}.pause-button{top:68px}.shot-controls{top:128px;gap:11px;bottom:20px}.shot-controls .power-control{top:84px;bottom:25px}.home-menu{gap:16px}.home-menu .menu-button{min-height:78px}.ready-title{font-size:42px}.home-brand{top:5%}.home-brand img{max-height:280px}.home-scene{inset:150px 32% 0 -4%}
}
@media(orientation:landscape) and (max-height:450px){
 .home-screen{padding:8px 4%;grid-template-rows:1fr auto;min-height:280px;grid-template-columns:minmax(0,1fr) minmax(260px,36%)}.home-brand{top:-3%;width:55%}.home-brand img{max-height:145px}.home-scene{inset:70px 34% -15px -2%}.home-menu{gap:8px}.home-menu .menu-button{min-height:54px;padding:7px 12px}.home-menu .menu-button>span:nth-child(2){font-size:20px}.home-menu .menu-button small{font-size:11px}.home-footer{margin-top:9px}.home-footer button{min-height:44px;font-size:11px}.home-footer svg{width:22px;height:22px}.ready-title{font-size:26px;margin-bottom:2px}.home-screen:has(#resume-game:not([hidden])) .ready-title{display:none}
}
@media(orientation:landscape) and (max-height:380px){.shot-controls #safety-btn{display:none}.shot-controls{gap:5px}.match-header{grid-template-columns:1fr 160px 1fr;gap:6px;padding-left:54px;padding-right:58px}.match-wordmark b{font-size:19px}.match-wordmark small{font-size:7px}.player-monogram{display:none}.player{padding:3px 6px}.player-name-line strong{font-size:12px}.player-group{font-size:10px}.home-menu .menu-button{min-height:50px}}
@media(prefers-reduced-motion:no-preference){.menu-button,.shot-option,.shoot-button{transition:filter .15s,transform .12s,box-shadow .15s}.pool-panel[open]{animation:pool-panel-in .18s ease-out}@keyframes pool-panel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}
@media(orientation:landscape){.game-screen{height:var(--app-height,100dvh)}.match-header{top:env(safe-area-inset-top,0px)}}
