html.gx-fullscreen,body.gx-fs{height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body.gx-fs{padding:0!important;background:#080c18;color:#f2f5ff}
.gx-fs #gx-player{height:100vh;height:100dvh;max-width:none;margin:0;padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px,env(safe-area-inset-left));display:flex;flex-direction:column;box-sizing:border-box}
.gx-fs .gx-torna{position:relative!important;top:0!important;display:grid!important;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;flex:none;min-height:50px;margin:0!important;padding:0!important;background:#080c18!important;z-index:100}
.gx-fs .gx-torna a{min-height:44px;padding:0 4px;font-size:13px;color:#b2c3e8;white-space:nowrap}
.gx-fs .gx-torna h2{margin:0;font-size:17px;font-weight:700;text-align:center;line-height:1.15}
.gx-options{position:relative}.gx-options>summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;border:1px solid #303951;border-radius:12px;background:#151d30;color:#edf5ff;font:bold 26px Arial;cursor:pointer}.gx-options>summary::-webkit-details-marker{display:none}
.gx-options>summary:focus-visible{outline:3px solid #ffe08a;outline-offset:2px}
.gx-panel{position:absolute;inset-inline-end:0;top:50px;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 76px);overflow:auto;box-sizing:border-box;padding:20px;border:1px solid #36415e;border-radius:16px;background:#0f1729;box-shadow:0 12px 45px #0009}
.gx-panel .tr-barra{gap:10px}.gx-panel .tr-rec{margin-top:14px}.gx-panel .tr-regole{margin-top:16px}.gx-panel .tr-nota{font-size:12px}
.gx-fs #tr.mk-sez{max-width:none;margin:0;padding:0;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.gx-fs .tr-testa:empty{display:none}.gx-fs .tr-corpo{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:0;gap:8px;margin:0;position:relative}
.gx-fs .tr-lato{display:contents}.gx-fs .tr-hud{order:0;width:min(100%,480px);margin:0;flex:none;flex-direction:row}
.gx-fs .tr-foglio{order:1;width:min(calc(100vw - 28px),calc(100dvh - 210px),600px);aspect-ratio:1;margin:0;transform:none;flex:none}
.gx-fs .tr-stato{order:2;min-height:24px;margin:0;max-width:100%;text-align:center;font-size:14px}
.gx-fs .tr-fine:not([hidden]){order:3;max-width:100%;margin:2px 0;padding:10px 12px;font-size:13px}.gx-fs .tr-fine-t,.gx-fs .tr-sorpresa{font-size:13px;margin:0 0 6px}
.gx-fs [hidden]{display:none!important}
.gx-fs .osw-bar,.gx-fs .oa-b,.gx-fs .oa-o,.gx-fs .on-bar,.gx-fs .ox-sh,.gx-fs .oi-dk.oa-d{display:none!important}
@media(max-height:520px) and (orientation:landscape){.gx-fs .gx-torna{min-height:44px}.gx-fs .tr-corpo{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto 1fr;align-items:center;justify-items:center;gap:4px 18px}.gx-fs .tr-foglio{grid-column:2;grid-row:1/3;width:calc(100dvh - 62px)}.gx-fs .tr-hud{grid-column:1;grid-row:1;flex-direction:column}.gx-fs .tr-stato{grid-column:1;grid-row:2}.gx-fs .tr-fine{grid-column:3;grid-row:1/3}}
@media(prefers-reduced-motion:reduce){.gx-fs *{scroll-behavior:auto!important}}

.gx-panel .tr-b,.gx-panel .tr-regole summary{min-height:44px}.gx-panel nav{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid #303951;margin-top:16px;padding-top:12px}.gx-panel nav a{font-size:12px;min-height:44px}

.gx-fs #bil.mk-sez{max-width:none;margin:0;padding:0;flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.gx-fs .bl-testa:empty{display:none}.gx-fs .bl-testa{margin:0;min-height:0}
.gx-fs .bl-hud{margin:0;flex:none}.gx-fs .bl-gioc{padding:6px 10px}.gx-fs .bl-stato,.gx-fs .bl-tempo,.gx-fs .bl-toast{flex:none;margin:0;text-align:center;font-size:13px}
.gx-fs .bl-stato:empty,.gx-fs .bl-toast:empty{display:none}
.gx-fs .bl-area{flex:1;min-height:0;width:100%;align-items:center}
.gx-fs .bl-tavolo{max-width:100%;max-height:100%;border-radius:12px}
.gx-fs .bl-fine{flex:none;max-height:30dvh;overflow:auto;margin:0;padding:10px}
.gx-fs .bl-k{display:none!important}
.gx-panel .bl-com{margin:0;padding:0;gap:12px}.gx-panel .bl-forza{flex-basis:100%}.gx-panel .bl-extra{margin:12px 0 0}.gx-panel .bl-suoni{position:static;min-height:44px;margin-top:12px}
.gx-panel .bl-modi{grid-template-columns:1fr;margin:0}.gx-panel .bl-modo small{display:none}.gx-panel .bl-modo{padding:12px}.gx-panel .bl-liv{gap:6px}
.gx-panel .bl-nota{font-size:12px}.gx-panel .bl-regole{margin-top:12px}.gx-panel .bl-class{margin-top:16px}
@media(max-height:520px) and (orientation:landscape){.gx-fs[data-game="biliardo"] .bl-hud{position:absolute;top:56px;left:12px;flex-direction:column;max-width:140px;width:18vw;z-index:2}.gx-fs[data-game="biliardo"] .bl-area{width:calc(100% - 320px);margin:0 auto}.gx-fs[data-game="biliardo"] .bl-stato,.gx-fs[data-game="biliardo"] .bl-toast{position:absolute;right:12px;top:56px;max-width:140px;width:18vw}}

.gx-panel .bl-e{min-height:44px}.gx-panel .bl-forza input{min-height:44px}

@media(max-height:520px) and (orientation:landscape){.gx-fs[data-game="biliardo"] .bl-gioc b{white-space:normal;overflow:visible;text-overflow:clip;font-size:12px;line-height:1.25}}

/* CORREZIONE1058: table and essential controls use distinct layout tracks. */
.gx-pool-1058 #gx-player{display:grid;grid-template-rows:44px minmax(0,1fr);gap:4px;position:relative;padding:env(safe-area-inset-top) 8px max(6px,env(safe-area-inset-bottom))}
.gx-pool-1058 .gx-torna{min-height:44px}.gx-pool-1058 .gx-torna>a{width:44px;min-height:44px;font-size:30px;justify-content:center}
.gx-pool-1058 #bil.mk-sez{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:30px minmax(0,1fr) 58px;gap:4px;overflow:hidden;min-height:0;height:100%;position:relative}
.gx-pool-1058 .bl-hud{grid-row:1;position:static!important;flex-direction:row!important;width:auto!important;max-width:none!important;gap:6px;min-height:0;justify-content:center;overflow:hidden}
.gx-pool-1058 .bl-gioc{padding:2px 6px;display:flex;gap:5px;align-items:center}.gx-pool-1058 .bl-gioc b{font-size:12px;white-space:nowrap}
.gx-pool-1058 .bl-gr{display:none}.gx-pool-1058 .bl-vs{font-size:11px}.gx-pool-1058 .bl-testa,.gx-pool-1058 .bl-stato,.gx-pool-1058 .bl-toast,.gx-pool-1058 .bl-tempo{display:none!important}
.gx-pool-1058 .bl-area{grid-row:2;width:100%!important;max-width:100%;height:100%;min-height:0;margin:0!important;display:flex;align-items:center;justify-content:center;overflow:hidden}
.gx-pool-1058 .bl-tavolo{max-width:100%;max-height:100%;flex:none;object-fit:contain}
.gx-pool-1058 .bl-com{grid-row:3;display:grid!important;grid-template-columns:minmax(60px,1fr) 44px minmax(86px,110px);gap:8px;align-items:center;position:static!important;padding:4px!important;margin:0!important;max-height:58px;min-width:0}
.gx-pool-1058 .bl-forza{display:flex;flex-direction:column;gap:0;min-width:0;font-size:11px;line-height:12px}
.gx-pool-1058 .bl-forza input{min-width:0;width:100%;min-height:32px;margin:0;touch-action:pan-x}
.gx-pool-1058 .bl-tira{min-height:48px;padding:8px 12px;font-size:18px;font-weight:800;width:100%}
.gx-pool-1058 .bl-eff{display:flex;justify-content:center}.bl-spin{position:relative;width:36px;height:36px;padding:0;border:1px solid #c9c9cf;border-radius:50%;background:radial-gradient(circle at 35% 30%,white,#d6d6de);box-shadow:0 2px 5px #0008;touch-action:manipulation}
.bl-spin:after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#dd3b36;left:calc(50% - 3px);top:calc(50% - 3px)}.bl-spin[data-spin="60"]:after{top:6px}.bl-spin[data-spin="-60"]:after{top:24px}
.gx-pool-1058 .gx-panel{position:fixed;top:calc(52px + env(safe-area-inset-top));right:8px;width:248px;max-height:calc(100dvh - 64px);overflow:auto;box-sizing:border-box;padding:10px;font-size:12px}
.gx-pool-1058 .gx-settings-open #bil{width:calc(100% - 264px)}
.gx-pool-1058 .bl-fine:not([hidden]){position:absolute;inset:32px 0 60px;background:#0f1729;z-index:5;overflow:auto}
@media(max-width:600px) and (orientation:portrait){.gx-pool-1058 .gx-panel{width:calc(100vw - 16px);max-height:210px;height:210px;top:calc(50px + env(safe-area-inset-top))}.gx-pool-1058 .gx-settings-open{grid-template-rows:44px 214px minmax(0,1fr)!important}.gx-pool-1058 .gx-settings-open #bil{grid-row:3;width:100%}.gx-pool-1058 .gx-settings-open #bil .bl-hud{display:none}.gx-pool-1058 .gx-settings-open #bil{grid-template-rows:0 minmax(0,1fr) 58px}}
@media(max-height:520px) and (orientation:landscape){.gx-pool-1058 #bil.mk-sez{grid-template-columns:minmax(0,1fr) 140px;grid-template-rows:26px minmax(0,1fr);column-gap:8px}.gx-pool-1058 .bl-hud{grid-column:1;grid-row:1}.gx-pool-1058 .bl-area{grid-column:1;grid-row:2}.gx-pool-1058 .bl-com{grid-column:2;grid-row:1/3;grid-template-columns:1fr;grid-template-rows:1fr 44px 52px;max-height:none;height:100%;align-items:center}.gx-pool-1058 .bl-forza{align-self:end}.gx-pool-1058 .bl-forza input{min-height:44px}.gx-pool-1058 .bl-eff{align-self:center}.gx-pool-1058 .bl-tira{align-self:start}.gx-pool-1058 .gx-settings-open #bil{width:calc(100% - 210px)}.gx-pool-1058 .gx-panel{width:194px}}
@media(pointer:coarse){.bl-keyboard{display:none!important}}

/* Review corrections: full touch target and no end-of-game overlay. */
.gx-pool-1058 .bl-spin{width:44px;height:44px;background:radial-gradient(circle at 35% 30%,white,#d6d6de);border:5px solid #0f1729;box-sizing:border-box}
.gx-pool-1058 .bl-spin[data-spin="60"]:after{top:3px}.gx-pool-1058 .bl-spin[data-spin="-60"]:after{top:22px}
.gx-pool-1058 .bl-fine:not([hidden]){position:static;inset:auto;grid-row:4;grid-column:1/-1;max-height:90px;margin:0;padding:4px 8px;overflow:auto}
.gx-pool-1058 #bil:has(.bl-fine:not([hidden])){grid-template-rows:26px minmax(0,1fr) 58px 90px}
@media(max-height:520px) and (orientation:landscape){.gx-pool-1058 #bil:has(.bl-fine:not([hidden])){grid-template-rows:26px minmax(0,1fr) 70px}.gx-pool-1058 .bl-fine:not([hidden]){grid-row:3;max-height:70px}.gx-pool-1058 .bl-com{grid-row:1/3}}
@media(hover:none),(max-width:899px){.bl-keyboard{display:none!important}}

.gx-pool-1058 .bl-spin-state{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.gx-pool-1058.gx-desktop .bl-keyboard{display:block!important}.gx-pool-1058:not(.gx-desktop) .bl-keyboard{display:none!important}
