:root{color-scheme:light;font-family:Inter,ui-rounded,Arial Rounded MT Bold,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--ink: #24155f;--muted: #73678d;--cream: #fff8e3;--pink: #f8d7e9;--pink-deep: #efbfdc;--violet: #44327b;--violet-2: #2b1d5d;--cyan: #55daf4;--mint: #82e4bd;--coral: #ff7f92;--gold: #ffc857;--felt: #087dae;--felt-light: #12b8d7;--line: rgba(74, 49, 116, .2);--shadow: 0 10px 0 rgba(74, 48, 111, .2), 0 24px 48px rgba(78, 42, 104, .16)}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{min-width:300px;color:var(--ink);background:radial-gradient(circle at 8% 17%,rgba(255,255,255,.8) 0 5%,transparent 5.2%),radial-gradient(circle at 93% 82%,rgba(129,229,190,.35) 0 5%,transparent 5.2%),linear-gradient(135deg,#cbeffc,#fae4f0 45%,#f7cee6)}button,input{font:inherit}button,label{-webkit-tap-highlight-color:transparent}button{color:inherit}[hidden]{display:none!important}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.skip-link:focus{position:fixed;z-index:100;inset:8px auto auto 8px;padding:12px 16px;border-radius:12px;background:#fff;color:var(--ink)}.pool-app{height:100dvh;min-height:420px;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);display:grid;grid-template-rows:76px minmax(0,1fr);overflow:hidden;isolation:isolate}.pool-app:before,.pool-app:after{content:"";position:fixed;border-radius:50%;pointer-events:none;z-index:-1}.pool-app:before{width:20vw;aspect-ratio:1;left:-8vw;bottom:-7vw;background:#5ad8f32e;filter:blur(2px)}.pool-app:after{width:14vw;aspect-ratio:1;right:-3vw;top:22%;background:#ffffff52}.pool-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin:0 24px;border-bottom:1px solid rgba(68,50,123,.14)}.hub-brand,.game-wordmark{color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;gap:11px}.hub-brand{justify-self:start}.hub-brand>span:last-child{display:grid}.hub-brand strong{letter-spacing:.16em;font-size:15px}.hub-brand small{margin-top:1px;font-size:8px;letter-spacing:.24em}.hub-mark{display:flex;gap:3px;height:32px;align-items:end}.hub-mark i{width:6px;border-radius:5px;transform:skew(-10deg);box-shadow:0 4px 8px #4d468e2e}.hub-mark i:nth-child(1){height:16px;background:#58d6ee}.hub-mark i:nth-child(2){height:24px;background:#81deb8}.hub-mark i:nth-child(3){height:30px;background:#ff829b}.game-wordmark{justify-self:center;font-size:15px;letter-spacing:.09em}.game-wordmark>span{width:46px;height:46px;display:grid;place-items:center;border:1px solid rgba(68,50,123,.18);border-radius:15px;color:#fff;background:linear-gradient(145deg,var(--violet),#7352ad);box-shadow:0 7px #49327529}.header-actions{justify-self:end;display:flex;align-items:center;gap:9px}.header-status{min-height:44px;display:flex;align-items:center;gap:9px;padding:0 17px;border:1px solid rgba(68,50,123,.15);border-radius:24px;color:#fff;background:var(--violet);box-shadow:0 6px #452d6a29;font-size:10px;font-weight:900;letter-spacing:.1em}.header-status i,.stage-signal i,.connection-pill i,.table-badge i{width:8px;height:8px;border-radius:50%;background:#8ef495;box-shadow:0 0 13px #65f2b2}.icon-button{width:46px;height:46px;border:1px solid rgba(255,255,255,.35);border-radius:15px;color:#fff;background:var(--violet);box-shadow:0 6px #452d6a29;font-weight:900;cursor:pointer}.icon-button:hover{transform:translateY(-1px)}.pool-main{position:relative;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,25vw,410px);gap:14px;padding:12px 22px 18px}.pool-stage,.pool-desk{min-width:0;min-height:0;border:2px solid rgba(255,255,255,.8);box-shadow:var(--shadow)}.pool-stage{display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:12px;border-radius:28px;background:#fff7fd8c;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.stage-scorebar{grid-row:1;width:min(680px,62%);min-height:65px;margin:0 auto 10px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(255,255,255,.32);border-radius:20px;color:#fff;background:linear-gradient(135deg,#3e2c73,#594390);box-shadow:0 8px #452d6a33}.stage-scorebar>div:first-child{min-width:0;display:grid;gap:4px}.stage-scorebar small{color:var(--cyan);font-size:9px;font-weight:900;letter-spacing:.13em}.stage-scorebar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(16px,1.7vw,23px)}.turn-card{min-width:90px;padding-left:20px;border-left:1px solid rgba(255,255,255,.19);display:grid;justify-items:end;gap:4px}.turn-card strong{font-size:16px}.table-space{grid-row:2;position:relative;min-height:0;overflow:hidden;border:2px solid rgba(255,255,255,.9);border-radius:26px;background:linear-gradient(145deg,#fde2f3eb,#ecc2e4cc)}.pool-preview,.pool-loader,.pool-game-layer{position:absolute;inset:0}.pool-preview{overflow:hidden;background:#180e32}.pool-preview img{width:100%;height:100%;display:block;object-fit:cover}.preview-wash{position:absolute;inset:0;background:linear-gradient(90deg,#0f0828bf,#160b2f40 54%,#1b0c380f)}.preview-copy{position:absolute;left:clamp(24px,5vw,64px);bottom:clamp(22px,6vh,70px);width:min(600px,62%);color:#fff;text-shadow:0 3px 18px rgba(20,9,45,.35)}.preview-copy small{color:#67e7f5;font-size:9px;font-weight:950;letter-spacing:.15em}.preview-copy h1{margin:8px 0 0;font-size:clamp(38px,5.2vw,78px);line-height:.92;letter-spacing:-.05em}.preview-copy strong{display:block;margin-top:14px;font-size:clamp(17px,2vw,27px)}.preview-copy p{margin:10px 0 0;max-width:550px;color:#ffffffc7;line-height:1.55;font-size:13px}.pool-loader{z-index:3;display:grid;place-content:center;justify-items:center;gap:14px;color:#fff;background:linear-gradient(135deg,#241452e8,#077099e0);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.pool-loader strong{font-size:clamp(20px,2vw,28px)}.pool-loader small{color:#ffffffb8}.loader-rack{width:92px;height:76px;position:relative;animation:loader-float 1.2s ease-in-out infinite alternate}.loader-rack i{position:absolute;width:28px;height:28px;border:3px solid rgba(255,255,255,.8);border-radius:50%;box-shadow:inset -5px -7px 8px #1f0c4938,0 5px 12px #0a052338}.loader-rack i:nth-child(1){left:2px;top:24px;background:#ffd15c}.loader-rack i:nth-child(2){left:26px;top:11px;background:#59d9f2}.loader-rack i:nth-child(3){left:26px;top:39px;background:#ff7e97}.loader-rack i:nth-child(4){left:50px;top:0;background:#80dfb9}.loader-rack i:nth-child(5){left:50px;top:28px;background:#291a4e}.loader-rack i:nth-child(6){left:50px;top:56px;background:#8b69d1}@keyframes loader-float{to{transform:translateY(-8px) rotate(1deg)}}.pool-game-layer{display:grid;grid-template-rows:44px minmax(0,1fr) 44px auto;gap:6px;padding:8px;background:linear-gradient(145deg,#f9daedf2,#daf1f9e0)}.player-strip{min-width:0;display:grid;grid-template-columns:auto minmax(90px,auto) 1fr auto;align-items:center;gap:9px;padding:4px 9px;border:1px solid rgba(255,255,255,.55);border-radius:14px;color:#fff;background:#3c2a71f0;box-shadow:0 4px #452d6a26}.player-strip[data-active=true]{border-color:#7ef6bef2;box-shadow:0 4px #452d6a26,0 0 18px #63eebe4d,inset 0 0 0 1px #7ef6be2e}.player-strip[data-active=true] .player-state{color:#24155f;background:linear-gradient(110deg,#66e5f6,#96f2b8);animation:table-status-pulse 1.35s ease-in-out infinite}@keyframes table-status-pulse{50%{box-shadow:0 0 0 4px #82e4bd1f,0 0 15px #55daf459}}.player-strip>span:nth-child(2){display:grid;line-height:1.1}.player-strip small{color:var(--cyan);font-size:7px;font-weight:900;letter-spacing:.13em}.player-strip strong{font-size:11px}.player-avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;font-weight:950}.player-avatar--violet{color:#fff;background:#7654bc}.player-avatar--cream{color:var(--violet-2);background:var(--cream)}.player-state{padding:6px 9px;border-radius:11px;background:#ffffff1f;font-size:8px;font-weight:900;letter-spacing:.08em}.ball-dock{min-width:0;display:flex;justify-content:center;gap:3px}.dock-ball{width:18px;aspect-ratio:1;display:grid;place-items:center;border:1px solid rgba(255,255,255,.8);border-radius:50%;color:#281454;background:var(--ball-color, white);box-shadow:inset -3px -4px 4px #220e4b33;font-size:7px;font-weight:950}.dock-ball.stripe{background:linear-gradient(180deg,white 0 28%,var(--ball-color) 29% 70%,white 71%)}.table-shell{position:relative;min-height:0;width:100%;height:100%;overflow:hidden;border-radius:22px;background:radial-gradient(circle at 50% 40%,rgba(75,231,244,.15),transparent 40%),#25154e;box-shadow:inset 0 0 0 1px #fff3}[data-pool-canvas]{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair;outline:none}[data-pool-canvas]:focus-visible{box-shadow:inset 0 0 0 4px var(--cyan)}.referee-ribbon{position:absolute;z-index:6;top:10px;left:12px;max-width:min(420px,calc(100% - 104px));min-height:42px;padding:5px 11px 5px 6px;display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.6);border-radius:16px;color:#fff;background:#2b1d5de6;box-shadow:0 5px 15px #180c3c33;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:none;transition:border-color .2s,background .2s}.referee-ribbon>span{width:31px;height:31px;flex:0 0 auto;display:grid;place-items:center;border-radius:10px;color:var(--violet-2);background:var(--gold);box-shadow:inset 0 -3px #582f4c1f;font-size:11px;font-weight:950}.referee-ribbon p{min-width:0;margin:0;display:grid;line-height:1.1}.referee-ribbon small{color:var(--cyan);font-size:7px;font-weight:950;letter-spacing:.13em}.referee-ribbon strong{margin-top:3px;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.referee-ribbon[data-ruling-kind=motion]>span{background:var(--cyan);animation:table-status-pulse 1s ease-in-out infinite}.referee-ribbon[data-ruling-kind=pot]{border-color:#82e4bde6;background:#205b59eb}.referee-ribbon[data-ruling-kind=pot]>span,.referee-ribbon[data-ruling-kind=win]>span{background:#92f0b7}.referee-ribbon[data-ruling-kind=foul],.referee-ribbon[data-ruling-kind=scratch],.referee-ribbon[data-ruling-kind=loss]{border-color:#ff7f92e6;background:#672451f0}.referee-ribbon[data-ruling-kind=foul]>span,.referee-ribbon[data-ruling-kind=scratch]>span,.referee-ribbon[data-ruling-kind=loss]>span{background:var(--coral)}.table-badge{position:absolute;left:12px;bottom:10px;min-height:32px;padding:0 11px;display:flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.6);border-radius:18px;color:#fff;background:#301f64e0;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);font-size:9px;font-weight:900}.pocket-call{position:absolute;top:10px;left:50%;transform:translate(-50%);padding:8px 10px;border:1px solid rgba(255,255,255,.55);border-radius:15px;color:#fff;background:#311f63e8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.pocket-call small{display:block;margin-bottom:5px;text-align:center;color:var(--cyan);font-size:7px;font-weight:900;letter-spacing:.12em}.pocket-call>div{display:flex;gap:4px}.pocket-call button{min-width:36px;min-height:32px;border:1px solid rgba(255,255,255,.25);border-radius:9px;color:#fff;background:#ffffff14;cursor:pointer}.pocket-call button[aria-pressed=true]{color:var(--violet-2);background:var(--gold)}.inline-banner{position:absolute;left:50%;bottom:12px;transform:translate(-50%);width:min(520px,calc(100% - 28px));min-height:64px;padding:9px 11px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.55);border-radius:20px;color:#fff;background:#352369f0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 8px 22px #1b0c3a47}.inline-banner>span{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;color:var(--violet);background:var(--gold)}.inline-banner p{min-width:0;margin:0;display:grid}.inline-banner small{color:var(--cyan);font-size:7px;font-weight:900;letter-spacing:.13em}.inline-banner strong{font-size:13px}.inline-banner em{overflow:hidden;color:#ffffffb3;font-size:10px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.inline-banner button,.pause-strip button{min-height:40px;border:0;border-radius:12px;padding:0 13px;color:var(--violet-2);background:var(--mint);font-weight:900;cursor:pointer}.pause-strip{position:absolute;z-index:12;inset:auto 12px 12px;min-height:62px;padding:9px 11px;display:flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.55);border-radius:18px;color:#fff;background:#2f1d5ff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.pause-strip span{margin-right:auto;display:grid}.pause-strip small{color:var(--cyan);font-size:8px;font-weight:900}.pause-strip strong{font-size:12px}.shot-controls{min-height:46px;display:grid;grid-template-columns:46px minmax(170px,1fr) 46px minmax(100px,160px);gap:7px}.aim-nudge,.shoot-button,.power-control{border:1px solid rgba(255,255,255,.55);border-radius:14px;color:#fff;background:var(--violet);box-shadow:0 4px #452d6a2e}.aim-nudge{font-size:22px;font-weight:900;cursor:pointer}.power-control{padding:5px 12px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px}.power-control>span{display:grid;min-width:74px}.power-control small{color:var(--cyan);font-size:7px;font-weight:900;letter-spacing:.1em}.power-control strong{font-size:12px}.power-control input{width:100%;accent-color:var(--gold);cursor:pointer}.shoot-button{border-color:#4c317940;color:var(--violet-2);background:linear-gradient(110deg,#5eddf2,#9ce8b9 58%,#ffe073);cursor:pointer;font-weight:950}.shoot-button span{display:block;font-size:12px;letter-spacing:.06em}.shoot-button small{display:block;font-size:7px;opacity:.7}.shoot-button:disabled,.shot-controls[aria-disabled=true] button{opacity:.45;cursor:not-allowed}.stage-footer{grid-row:3;min-height:38px;padding:7px 4px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px}.stage-signal{flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:16px;color:#fff;background:var(--violet);box-shadow:0 4px #452d6a29}.stage-footer p{margin:0;color:var(--muted);text-align:right}.pool-desk{overflow:auto;scrollbar-width:thin;border-radius:28px;color:#fff;background:linear-gradient(160deg,#4a367e,#291b5b)}.setup-view,.live-view{min-height:100%;padding:clamp(18px,2.1vw,30px);display:flex;flex-direction:column}.desk-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.15)}.desk-heading small{color:var(--cyan);font-size:9px;font-weight:950;letter-spacing:.14em}.desk-heading h2{margin:7px 0 0;font-size:clamp(25px,2.3vw,38px);line-height:.96;letter-spacing:-.045em}.ready-gem{flex:0 0 auto;width:46px;height:46px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:14px;color:var(--violet-2);background:var(--gold);font-weight:950;box-shadow:0 5px #1d0f4338}.setup-group{min-width:0;margin:14px 0 0;padding:0;border:0}.setup-group legend{width:100%;padding:0 0 9px;color:#ffffffc7;font-size:10px;font-weight:900}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.difficulty-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.choice-card{position:relative;min-width:0;min-height:66px;padding:10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.16);border-radius:15px;background:#ffffff12;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}.choice-card:hover{transform:translateY(-1px)}.choice-card:has(input:checked){border-color:var(--cyan);background:#40c5e733;box-shadow:inset 0 0 0 1px #53dcf41f}.choice-card input{position:absolute;opacity:0;pointer-events:none}.choice-card>i{width:19px;height:19px;border:1px solid rgba(255,255,255,.42);border-radius:50%}.choice-card:has(input:checked)>i{border:5px solid var(--cyan);background:var(--violet-2)}.choice-card>span{min-width:0;display:grid}.choice-card strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.choice-card small{overflow:hidden;margin-top:3px;color:#fff9;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.choice-card>b{color:var(--gold);font-size:13px}.choice-card--small{min-height:62px;grid-template-columns:auto minmax(0,1fr);padding:8px}.choice-card--small>b{display:none}.online-options{margin-top:12px;display:grid;gap:9px}.text-field{display:grid;gap:6px;font-size:9px;font-weight:900}.text-field input{min-height:44px;border:1px solid rgba(255,255,255,.2);border-radius:13px;padding:0 12px;color:#fff;background:#ffffff14;outline:none}.text-field input:focus{border-color:var(--cyan);box-shadow:0 0 0 3px #55daf421}.invite-switch{padding:4px;display:grid;grid-template-columns:1fr 1fr;gap:4px;border-radius:14px;background:#140a3540}.invite-switch label{cursor:pointer}.invite-switch input{position:absolute;opacity:0}.invite-switch span{min-height:38px;display:grid;place-items:center;border-radius:10px;font-size:9px;font-weight:900}.invite-switch label:has(input:checked) span{color:var(--violet-2);background:var(--mint)}.trust-note,.format-card,.live-tip{padding:10px;display:flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.15);border-radius:14px;background:#ffffff12}.trust-note i{color:#7af5a6}.trust-note span,.format-card span{display:grid}.trust-note strong,.format-card strong{font-size:10px}.trust-note small{color:#ffffff94;font-size:8px}.format-card{margin-top:13px;justify-content:space-between}.format-card small{color:var(--gold);font-size:7px;font-weight:900;letter-spacing:.1em}.format-card b{color:var(--mint);font-size:8px}.start-button{width:100%;min-height:72px;margin-top:auto;padding:9px 12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;border:0;border-radius:18px;color:var(--violet-2);background:linear-gradient(110deg,#5ddcf3,#8de4c4 58%,#ffe07b);box-shadow:0 8px #130a3440,0 14px 25px #0f08262e;cursor:pointer;text-align:left}.start-button:hover{filter:brightness(1.04);transform:translateY(-1px)}.start-icon{width:45px;height:45px;display:grid;place-items:center;border:1px solid rgba(43,29,93,.2);border-radius:14px;background:#ffffff52}.start-button>span:nth-child(2){display:grid}.start-button small{font-size:7px;font-weight:900;letter-spacing:.12em}.start-button strong{margin-top:3px;font-size:12px;letter-spacing:.05em}.setup-note{margin:11px 0 0;color:#ffffff7a;font-size:8px;text-align:center}.live-heading h2{font-size:30px}.connection-pill{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid rgba(255,255,255,.15);border-radius:18px;font-size:8px;font-weight:900}.room-ticket{margin-top:13px;padding:9px;display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(85,218,244,.4);border-radius:14px;background:#55daf41c}.room-ticket span{display:grid}.room-ticket small{color:var(--cyan);font-size:7px;font-weight:900}.room-ticket strong{letter-spacing:.13em}.room-ticket button{min-height:38px;border:0;border-radius:11px;color:var(--violet-2);background:var(--mint);font-size:9px;font-weight:900;cursor:pointer}.score-panel{margin-top:14px;display:grid;grid-template-columns:1fr .8fr 1fr;border:1px solid rgba(255,255,255,.16);border-radius:15px;overflow:hidden}.score-panel span{min-height:65px;display:grid;place-content:center;justify-items:center;border-right:1px solid rgba(255,255,255,.14)}.score-panel span:last-child{border-right:0}.score-panel small{color:#ffffff8f;font-size:7px;font-weight:900}.score-panel strong{margin-top:4px;color:var(--cyan);font-size:12px}.score-panel em{margin-top:3px;color:#ffffff8a;font-size:6px;font-style:normal;font-weight:850;letter-spacing:.03em;white-space:nowrap}.score-panel em b{color:var(--gold);font-size:inherit}.shot-story{margin-top:13px;padding:12px;border:1px solid rgba(255,255,255,.13);border-radius:15px;background:#ffffff0e}.shot-story header{display:flex;justify-content:space-between;gap:10px}.shot-story small{color:var(--cyan);font-size:8px;font-weight:900;letter-spacing:.1em}.shot-story strong{font-size:10px}.shot-story p{margin:8px 0 0;color:#ffffffa1;font-size:10px;line-height:1.45}.live-tip{margin-top:12px}.live-tip>span{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;color:var(--violet-2);background:var(--gold)}.live-tip p{margin:0;display:grid}.live-tip small{color:var(--gold);font-size:7px;font-weight:900}.live-tip strong{margin-top:2px;font-size:9px;line-height:1.35}.live-actions{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:7px}.live-actions button{min-height:42px;border:1px solid rgba(255,255,255,.17);border-radius:12px;color:#fff;background:#ffffff14;font-size:9px;font-weight:900;cursor:pointer}.live-actions button:last-child{grid-column:1 / -1;border:0;background:transparent}.rules-dialog{width:min(880px,calc(100% - 30px));max-height:calc(100dvh - 30px);padding:25px;border:2px solid rgba(255,255,255,.7);border-radius:28px;color:#fff;background:linear-gradient(145deg,#4b367f,#281956);box-shadow:0 30px 90px #1a0d3e6b}.rules-dialog::backdrop{background:#26144673;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.dialog-close{position:absolute;top:14px;right:14px;width:44px;height:44px;border:1px solid rgba(255,255,255,.18);border-radius:14px;color:#fff;background:#ffffff14;cursor:pointer}.rules-dialog header small{color:var(--cyan);font-size:9px;font-weight:900;letter-spacing:.14em}.rules-dialog header h2{margin:8px 50px 0 0;font-size:clamp(28px,4vw,50px);line-height:1}.rules-dialog header p{color:#ffffffa6}.rules-grid{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.rules-grid article{padding:14px;border:1px solid rgba(255,255,255,.14);border-radius:17px;background:#ffffff0f}.rules-grid b{float:left;width:38px;height:38px;margin-right:10px;display:grid;place-items:center;border-radius:12px;color:var(--violet-2);background:var(--gold)}.rules-grid strong{display:block;padding-top:2px}.rules-grid p{clear:both;margin:12px 0 0;color:#ffffffa6;font-size:11px;line-height:1.5}.dialog-primary{width:100%;min-height:48px;margin-top:15px;border:0;border-radius:14px;color:var(--violet-2);background:linear-gradient(90deg,var(--cyan),var(--mint));font-weight:950;cursor:pointer}.toast{position:fixed;z-index:50;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translate(-50%);max-width:calc(100% - 30px);padding:11px 15px;border:1px solid rgba(255,255,255,.55);border-radius:16px;color:#fff;background:#2d1c5bf0;box-shadow:0 14px 30px #20124640;font-size:10px;font-weight:800}.pool-app[data-phase=loading] .pool-desk{pointer-events:none}.pool-app:has(.pause-strip:not([hidden])) .pool-desk{visibility:hidden;pointer-events:none}.pool-app[data-phase=playing] .pool-main,.pool-app[data-phase=complete] .pool-main{display:block;padding:8px 14px 14px}.pool-app[data-phase=playing] .pool-stage,.pool-app[data-phase=complete] .pool-stage{width:100%;height:100%;padding:8px}.pool-app[data-phase=playing] .stage-scorebar,.pool-app[data-phase=complete] .stage-scorebar{width:min(640px,45vw);min-height:56px;margin-bottom:7px}.pool-app[data-phase=playing] .pool-desk,.pool-app[data-phase=complete] .pool-desk{position:absolute;z-index:9;right:25px;bottom:25px;width:min(318px,28vw);max-height:calc(100% - 38px);border-radius:22px;background:#311f63e8;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 10px 35px #24134c40}.pool-app[data-phase=playing] .live-view,.pool-app[data-phase=complete] .live-view{min-height:0;padding:13px}.pool-app[data-phase=playing] .desk-heading,.pool-app[data-phase=complete] .desk-heading{padding-bottom:9px}.pool-app[data-phase=playing] .live-heading h2,.pool-app[data-phase=complete] .live-heading h2{margin-top:3px;font-size:18px}.pool-app[data-phase=playing] .score-panel,.pool-app[data-phase=complete] .score-panel{margin-top:8px}.pool-app[data-phase=playing] .score-panel span,.pool-app[data-phase=complete] .score-panel span{min-height:46px}.pool-app[data-phase=playing] .shot-story,.pool-app[data-phase=complete] .shot-story{margin-top:8px;padding:8px 9px}.pool-app[data-phase=playing] .live-tip,.pool-app[data-phase=complete] .live-tip{margin-top:7px;padding:7px}.pool-app[data-phase=playing] .live-actions,.pool-app[data-phase=complete] .live-actions{margin-top:8px}@media(max-width:1050px){.pool-main{grid-template-columns:minmax(0,1fr) 310px;padding-inline:12px}.stage-scorebar{width:78%}.choice-card>b{display:none}.choice-card{grid-template-columns:auto minmax(0,1fr)}.preview-copy{width:68%}}@media(max-width:760px)and (orientation:portrait){.pool-app{min-height:0;grid-template-rows:58px minmax(0,1fr)}.pool-header{margin:0 10px}.hub-brand>span:last-child,.header-status span,.header-actions [data-action=rules]{display:none}.hub-mark{transform:scale(.8);transform-origin:left center}.game-wordmark{font-size:11px;gap:7px}.game-wordmark>span,.icon-button{width:40px;height:40px;border-radius:13px}.header-status{min-height:40px;padding:0 11px}.pool-main{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,54%) minmax(0,46%);gap:8px;padding:7px 8px 9px}.pool-stage,.pool-desk{border-radius:20px}.pool-stage{padding:6px}.stage-scorebar{width:92%;min-height:48px;margin-bottom:5px;padding:7px 12px;border-radius:16px}.stage-scorebar strong{font-size:14px}.turn-card{min-width:66px;padding-left:10px}.table-space{border-radius:17px}.preview-copy{left:16px;bottom:14px;width:78%}.preview-copy h1{font-size:32px}.preview-copy strong{margin-top:7px;font-size:14px}.preview-copy p{display:none}.stage-footer{min-height:28px;padding-top:4px}.stage-footer p{display:none}.stage-signal{padding:5px 8px;font-size:8px}.setup-view{padding:13px}.desk-heading{padding-bottom:8px}.desk-heading h2{margin-top:3px;font-size:22px}.ready-gem{width:38px;height:38px}.setup-group{margin-top:8px}.setup-group legend{padding-bottom:5px}.choice-card{min-height:49px;padding:7px}.choice-card small{display:none}.choice-card--small{min-height:44px}.format-card{display:none}.start-button{min-height:56px;margin-top:8px}.start-icon{width:38px;height:38px}.setup-note{display:none}.pool-game-layer{grid-template-rows:32px minmax(0,1fr) 32px auto;padding:4px;gap:3px}.player-strip{min-height:32px;padding:2px 5px;grid-template-columns:auto auto 1fr auto}.player-avatar{width:25px;height:25px;border-radius:8px}.ball-dock{gap:1px}.dock-ball{width:12px;font-size:5px}.player-state{padding:4px 5px}.shot-controls{min-height:39px;grid-template-columns:39px minmax(105px,1fr) 39px 78px;gap:3px}.power-control{padding:3px 6px;gap:4px}.power-control>span{min-width:43px}.power-control small{display:none}.power-control strong,.shoot-button span{font-size:9px}.pool-app[data-phase=playing] .pool-main,.pool-app[data-phase=complete] .pool-main{display:block;padding:6px 7px 8px}.pool-app[data-phase=playing] .pool-stage,.pool-app[data-phase=complete] .pool-stage{height:calc(100% + -0px)}.pool-app[data-phase=playing] .stage-scorebar,.pool-app[data-phase=complete] .stage-scorebar{width:86%;min-height:44px}.pool-app[data-phase=playing] .pool-desk,.pool-app[data-phase=complete] .pool-desk{right:14px;bottom:14px;width:min(250px,calc(100% - 28px));max-height:178px}.pool-app[data-phase=playing] .shot-story,.pool-app[data-phase=complete] .shot-story,.pool-app[data-phase=playing] .live-tip,.pool-app[data-phase=complete] .live-tip{display:none}.pool-app[data-phase=playing] .live-view,.pool-app[data-phase=complete] .live-view{padding:8px}.pool-app[data-phase=playing] .score-panel,.pool-app[data-phase=complete] .score-panel{margin-top:5px}.pool-app[data-phase=playing] .live-actions,.pool-app[data-phase=complete] .live-actions{margin-top:5px;grid-template-columns:repeat(3,1fr)}.pool-app[data-phase=playing] .live-actions button,.pool-app[data-phase=complete] .live-actions button{min-height:36px}.pool-app[data-phase=playing] .live-actions button:last-child,.pool-app[data-phase=complete] .live-actions button:last-child{grid-column:auto}.rules-grid{grid-template-columns:1fr}}@media(max-height:610px)and (orientation:landscape){.pool-app{min-height:0;grid-template-rows:48px minmax(0,1fr)}.pool-header{margin:0 10px}.hub-brand>span:last-child,.header-status span,.header-actions [data-action=rules]{display:none}.game-wordmark{font-size:11px}.game-wordmark>span,.icon-button{width:37px;height:37px;border-radius:12px}.header-status{min-height:37px;padding-inline:10px}.pool-main{grid-template-columns:minmax(0,1fr) 275px;gap:7px;padding:5px 7px 7px}.pool-stage{padding:5px;border-radius:18px}.pool-desk{border-radius:18px}.stage-scorebar{position:absolute;z-index:5;top:11px;left:50%;transform:translate(-50%);width:min(480px,46vw);min-height:42px;margin:0;padding:5px 11px;border-radius:14px}.stage-scorebar strong{font-size:13px}.turn-card{min-width:65px;padding-left:9px}.table-space{border-radius:15px}.stage-footer{display:none}.setup-view{padding:10px}.desk-heading{padding-bottom:6px}.desk-heading h2{margin-top:2px;font-size:19px}.ready-gem{width:34px;height:34px}.setup-group{margin-top:6px}.setup-group legend{padding-bottom:4px}.choice-card{min-height:43px;padding:5px}.choice-card small,.choice-card>b{display:none}.choice-card--small{min-height:38px}.choice-card>i{width:15px;height:15px}.format-card,.setup-note{display:none}.start-button{min-height:48px;margin-top:6px;padding-block:5px}.start-icon{width:34px;height:34px}.pool-game-layer{grid-template-rows:29px minmax(0,1fr) 29px auto;padding:3px;gap:2px}.player-strip{padding:1px 5px;grid-template-columns:auto auto 1fr auto;border-radius:9px}.player-avatar{width:23px;height:23px;border-radius:7px;font-size:9px}.dock-ball{width:11px;font-size:5px}.shot-controls{min-height:34px;grid-template-columns:34px minmax(120px,1fr) 34px 88px;gap:3px}.power-control{padding:2px 6px}.power-control>span{min-width:44px}.power-control small{display:none}.pool-app[data-phase=playing] .stage-scorebar,.pool-app[data-phase=complete] .stage-scorebar{width:min(460px,46vw);min-height:40px}.pool-app[data-phase=playing] .pool-desk,.pool-app[data-phase=complete] .pool-desk{right:16px;bottom:15px;width:270px;max-height:145px}.pool-app[data-phase=playing] .live-view,.pool-app[data-phase=complete] .live-view{padding:7px}.pool-app[data-phase=playing] .desk-heading,.pool-app[data-phase=complete] .desk-heading,.pool-app[data-phase=playing] .shot-story,.pool-app[data-phase=complete] .shot-story,.pool-app[data-phase=playing] .live-tip,.pool-app[data-phase=complete] .live-tip{display:none}.pool-app[data-phase=playing] .score-panel,.pool-app[data-phase=complete] .score-panel{margin-top:0}.pool-app[data-phase=playing] .score-panel span,.pool-app[data-phase=complete] .score-panel span{min-height:40px}.pool-app[data-phase=playing] .live-actions,.pool-app[data-phase=complete] .live-actions{margin-top:4px;grid-template-columns:repeat(3,1fr)}.pool-app[data-phase=playing] .live-actions button,.pool-app[data-phase=complete] .live-actions button{min-height:34px}.pool-app[data-phase=playing] .live-actions button:last-child,.pool-app[data-phase=complete] .live-actions button:last-child{grid-column:auto}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.pool-main{grid-template-columns:minmax(0,1fr) clamp(270px,20vw,330px);gap:10px;padding:10px 16px 16px}.pool-stage{padding:8px}.stage-scorebar{width:min(680px,62%);min-height:52px;margin-bottom:6px;padding:7px 15px}.stage-footer{min-height:28px;padding-top:4px}.pool-game-layer{grid-template-rows:36px minmax(0,1fr) 36px 44px;gap:4px;padding:5px;background:radial-gradient(circle at 11% 18%,rgba(255,255,255,.5) 0 34px,transparent 35px),radial-gradient(circle at 88% 78%,rgba(130,228,189,.3) 0 42px,transparent 43px),radial-gradient(circle at 81% 21%,rgba(255,200,87,.2) 0 20px,transparent 21px),linear-gradient(145deg,#f9daedf2,#daf1f9e0)}.setup-view{padding:clamp(14px,1.6vw,22px)}.setup-view .choice-card{min-height:56px;padding:8px}.setup-view .choice-card small,.format-card,.setup-note,.trust-note{display:none}.setup-view .start-button{min-height:62px;margin-top:12px}.pool-app[data-phase=playing] .pool-main,.pool-app[data-phase=complete] .pool-main{display:grid;grid-template-columns:minmax(0,1fr) clamp(238px,17vw,282px);grid-template-rows:minmax(0,1fr);gap:10px;padding:8px 14px 14px}.pool-app[data-phase=playing] .pool-stage,.pool-app[data-phase=complete] .pool-stage{width:auto;height:auto;padding:7px;grid-template-rows:minmax(0,1fr)}.pool-app[data-phase=playing] .stage-scorebar,.pool-app[data-phase=complete] .stage-scorebar,.pool-app[data-phase=playing] .stage-footer,.pool-app[data-phase=complete] .stage-footer{display:none}.pool-app[data-phase=playing] .table-space,.pool-app[data-phase=complete] .table-space{grid-row:1}.pool-app[data-phase=playing] .pool-game-layer,.pool-app[data-phase=complete] .pool-game-layer{grid-template-rows:36px minmax(0,1fr) 36px 44px;gap:4px;padding:5px}.pool-app[data-phase=playing] .table-shell,.pool-app[data-phase=complete] .table-shell{min-width:0;max-width:calc((100dvh - 190px)*1.86);justify-self:center;contain:layout paint size}.pool-app[data-phase=playing] .pool-desk,.pool-app[data-phase=complete] .pool-desk{position:relative;z-index:1;inset:auto;width:auto;max-height:none;overflow:hidden;border-radius:24px;background:linear-gradient(160deg,#4a367efa,#291b5bfa);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:var(--shadow)}.pool-app[data-phase=playing] .live-view,.pool-app[data-phase=complete] .live-view{min-height:100%;padding:14px}.pool-app[data-phase=playing] .desk-heading,.pool-app[data-phase=complete] .desk-heading{padding-bottom:11px}.pool-app[data-phase=playing] .live-heading h2,.pool-app[data-phase=complete] .live-heading h2{margin-top:4px;font-size:20px}.pool-app[data-phase=playing] .score-panel,.pool-app[data-phase=complete] .score-panel{margin-top:10px}.pool-app[data-phase=playing] .score-panel span,.pool-app[data-phase=complete] .score-panel span{min-height:52px}.pool-app[data-phase=playing] .shot-story,.pool-app[data-phase=complete] .shot-story,.pool-app[data-phase=playing] .live-tip,.pool-app[data-phase=complete] .live-tip{display:none}.pool-app[data-phase=playing] .live-actions,.pool-app[data-phase=complete] .live-actions{margin-top:auto}.pool-app:has(.pause-strip:not([hidden])) .pool-desk{visibility:visible;pointer-events:none}@media(max-width:1050px){.pool-main{grid-template-columns:minmax(0,1fr) 270px;padding-inline:10px}.pool-app[data-phase=playing] .pool-main,.pool-app[data-phase=complete] .pool-main{grid-template-columns:minmax(0,1fr) 225px}.pool-app[data-phase=playing] .live-view,.pool-app[data-phase=complete] .live-view{padding:10px}}@media(max-width:760px)and (orientation:portrait){.header-status{display:none}.pool-header .header-actions [data-action=rules]{display:grid}.pool-main{grid-template-columns:1fr;grid-template-rows:minmax(0,60%) minmax(0,40%);gap:6px;padding:6px 7px 8px}.pool-app[data-phase=playing] .pool-main,.pool-app[data-phase=complete] .pool-main{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 92px;gap:6px;padding:6px 7px 8px}.pool-app[data-phase=playing] .pool-stage,.pool-app[data-phase=complete] .pool-stage{padding:4px}.pool-app[data-phase=playing] .pool-game-layer,.pool-app[data-phase=complete] .pool-game-layer{grid-template-rows:28px auto 28px 39px;align-content:center;gap:3px;padding:4px}.pool-app[data-phase=playing] .table-shell,.pool-app[data-phase=complete] .table-shell{width:100%;height:auto;max-width:100%;aspect-ratio:1.82;align-self:center}.referee-ribbon{top:6px;left:6px;min-height:34px;max-width:calc(100% - 70px);padding:3px 7px 3px 4px;border-radius:12px}.referee-ribbon>span{width:26px;height:26px;border-radius:8px}.referee-ribbon strong{font-size:7px}.pool-app[data-phase=playing] .pool-desk,.pool-app[data-phase=complete] .pool-desk{width:auto;height:92px;max-height:92px;border-radius:18px}.pool-app[data-phase=playing] .live-view,.pool-app[data-phase=complete] .live-view{padding:7px;display:grid;grid-template-columns:minmax(70px,.75fr) minmax(118px,1.25fr) minmax(88px,1fr);align-items:center;gap:5px}.pool-app[data-phase=playing] .desk-heading,.pool-app[data-phase=complete] .desk-heading{min-width:0;padding:0;border:0}.pool-app[data-phase=playing] .desk-heading small,.pool-app[data-phase=complete] .desk-heading small,.pool-app[data-phase=playing] .connection-pill,.pool-app[data-phase=complete] .connection-pill{display:none}.pool-app[data-phase=playing] .live-heading h2,.pool-app[data-phase=complete] .live-heading h2{margin:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.pool-app[data-phase=playing] .score-panel,.pool-app[data-phase=complete] .score-panel{margin:0}.pool-app[data-phase=playing] .score-panel span,.pool-app[data-phase=complete] .score-panel span{min-height:48px}.pool-app[data-phase=playing] .live-actions,.pool-app[data-phase=complete] .live-actions{margin:0;grid-template-columns:repeat(3,1fr);gap:3px}.pool-app[data-phase=playing] .live-actions button,.pool-app[data-phase=complete] .live-actions button{min-width:0;min-height:38px;padding:2px;font-size:7px}.pool-app[data-phase=playing] .live-actions button:last-child,.pool-app[data-phase=complete] .live-actions button:last-child{grid-column:auto}.pool-app[data-phase=playing] .room-ticket,.pool-app[data-phase=complete] .room-ticket{display:none}.mode-grid{grid-template-columns:repeat(4,1fr);gap:4px}.setup-view .mode-grid .choice-card{min-height:52px;padding:5px 3px;grid-template-columns:1fr;justify-items:center;text-align:center}.setup-view .mode-grid .choice-card>i{width:15px;height:15px}.setup-view .mode-grid .choice-card strong{font-size:8px}}@media(max-height:610px)and (orientation:landscape){.header-status{display:none}.pool-header .header-actions [data-action=rules]{display:grid}.pool-main{grid-template-columns:minmax(0,1fr) 210px}.pool-app[data-phase=playing] .pool-main,.pool-app[data-phase=complete] .pool-main{grid-template-columns:minmax(0,1fr) 188px;grid-template-rows:minmax(0,1fr);gap:5px;padding:4px 6px 6px}.pool-app[data-phase=playing] .pool-stage,.pool-app[data-phase=complete] .pool-stage{padding:3px}.pool-app[data-phase=playing] .pool-game-layer,.pool-app[data-phase=complete] .pool-game-layer{grid-template-rows:minmax(0,1fr) 34px;gap:2px;padding:3px}.pool-app[data-phase=playing] .table-shell,.pool-app[data-phase=complete] .table-shell{width:100%;height:100%;max-width:calc((100dvh - 90px)*1.86);aspect-ratio:auto}.referee-ribbon{top:5px;left:6px;min-height:32px;max-width:min(320px,calc(100% - 78px));padding:3px 7px 3px 4px;border-radius:11px}.referee-ribbon>span{width:25px;height:25px;border-radius:8px}.referee-ribbon strong{font-size:7px}.pool-app[data-phase=playing] .player-strip,.pool-app[data-phase=complete] .player-strip{display:none}.pool-app[data-phase=playing] .pool-desk,.pool-app[data-phase=complete] .pool-desk{right:auto;bottom:auto;width:auto;max-height:none}.pool-app[data-phase=playing] .live-view,.pool-app[data-phase=complete] .live-view{padding:7px}.pool-app[data-phase=playing] .desk-heading,.pool-app[data-phase=complete] .desk-heading{display:flex;padding-bottom:5px}.pool-app[data-phase=playing] .desk-heading small,.pool-app[data-phase=complete] .desk-heading small{display:block}.pool-app[data-phase=playing] .live-heading h2,.pool-app[data-phase=complete] .live-heading h2{font-size:14px}.pool-app[data-phase=playing] .score-panel,.pool-app[data-phase=complete] .score-panel{margin-top:5px}.pool-app[data-phase=playing] .score-panel span,.pool-app[data-phase=complete] .score-panel span{min-height:38px}.pool-app[data-phase=playing] .live-actions,.pool-app[data-phase=complete] .live-actions{margin-top:auto;grid-template-columns:repeat(3,1fr);gap:3px}.pool-app[data-phase=playing] .live-actions button,.pool-app[data-phase=complete] .live-actions button{min-height:32px;padding:2px;font-size:7px}.pool-app[data-phase=playing] .live-actions button:last-child,.pool-app[data-phase=complete] .live-actions button:last-child{grid-column:auto}}
