/* Biliardo0025/0028: actual controls, real ball state, distinct portrait/tablet/wide layouts. */
body.gx-fs.gx-pool-1058 #gx-player{padding-inline:max(8px,env(safe-area-inset-left));box-sizing:border-box;min-width:0}
body.gx-fs.gx-pool-1058 #bil.mk-sez{grid-template-rows:auto minmax(0,1fr) 64px;gap:6px;min-width:0}
body.gx-fs.gx-pool-1058 #bil .bl-hud{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(88px,104px) minmax(0,1fr);gap:5px;align-items:center;overflow:visible;min-width:0}
body.gx-fs.gx-pool-1058 #bil .bl-vs{display:none!important}
body.gx-fs.gx-pool-1058 #bil .bl-gioc{display:grid;grid-template-columns:24px minmax(0,1fr);gap:4px;width:100%;max-width:none!important;min-width:0;box-sizing:border-box;padding:6px!important;border:1px solid #537c98;border-radius:12px;background:#102539;overflow:visible}
body.gx-fs.gx-pool-1058 #bil .bl-gioc:before{content:attr(data-avatar);grid-column:1;grid-row:1;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#28506b;color:#fff;font:800 10px/1 system-ui}
body.gx-fs.gx-pool-1058 #bil .bl-gioc b{grid-column:2;grid-row:1;max-width:none;min-width:0;font:700 13px/1.15 system-ui;color:#fff;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;overflow:visible;align-self:center}
body.gx-fs.gx-pool-1058 #bil .bl-gioc.su{border:2px solid #ffe18a;box-shadow:0 0 0 1px #9d6c2d,inset 0 0 16px #ffe18a12;padding:5px!important}
body.gx-fs.gx-pool-1058 #bil .bl-gr{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px 2px;max-width:none;width:100%;min-width:0;margin:1px 0 0;white-space:normal;align-items:center;justify-items:center;box-sizing:border-box}
body.gx-fs.gx-pool-1058 #bil .bl-gr small,body.gx-fs.gx-pool-1058 #bil .bl-cnt{grid-column:1/-1;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;font:600 11px/1.15 system-ui;color:#e2edf5;text-align:center;margin:0}
body.gx-fs.gx-pool-1058 #bil .bl-mini{display:grid;place-items:center;width:100%;max-width:22px;height:auto;aspect-ratio:1;line-height:1!important;font:800 10px/1 system-ui;color:white;box-shadow:inset -2px -2px 3px #0005;border:1px solid #ffffff66;box-sizing:border-box;text-shadow:0 1px 2px #000}
body.gx-fs.gx-pool-1058 #bil .bl-mini.rig{color:#111;text-shadow:none}
body.gx-fs.gx-pool-1058 #bil .bl-mini.off{opacity:.38;text-decoration:line-through;filter:saturate(.5)}
body.gx-fs.gx-pool-1058 #bil .bl-live-slot:has(.games-social-open){display:block!important;max-width:none!important;width:100%;min-width:0;align-self:center}
body.gx-fs.gx-pool-1058 #bil .games-social-context{display:block;box-sizing:border-box;width:100%;min-height:48px;padding:7px 6px;border:1px solid #84dcef;border-radius:10px;background:#164d68;color:#fff;font:700 14px/1.15 system-ui;text-align:center;white-space:normal;overflow-wrap:normal;cursor:pointer}
body.gx-fs.gx-pool-1058 #bil .games-social-context:focus-visible{outline:3px solid #ffe18a;outline-offset:2px}
body.gx-fs.gx-pool-1058 #bil .games-social-context:disabled{opacity:.7;cursor:wait}
body.gx-fs.gx-pool-1058 #bil .bl-com{box-sizing:border-box;min-width:0;grid-template-columns:minmax(0,1fr) 82px minmax(88px,110px)!important;gap:8px;padding:4px!important;max-height:64px;align-items:center}
body.gx-fs.gx-pool-1058 #bil .bl-forza{color:#fff;font-size:13px;line-height:1.2;min-width:0}
body.gx-fs.gx-pool-1058 #bil .bl-forza input{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:36px;accent-color:#62def2}
body.gx-fs.gx-pool-1058 #bil .bl-tira{box-sizing:border-box;min-width:0;width:100%;max-width:100%;min-height:52px;padding:8px!important;font:800 19px/1.1 system-ui;border-radius:14px}
body.gx-fs.gx-pool-1058 #bil .bl-eff2122-open{width:100%;min-height:48px;font-size:13px;box-sizing:border-box}
.gx-pool-1058 .gx-torna h2{display:flex;align-items:center;justify-content:center;gap:7px;color:#fff;font:800 21px/1.1 system-ui;letter-spacing:.015em}
.gx-pool-1058 .gx-torna h2:before{content:'';display:block;width:30px;height:26px;flex:none;border-radius:6px;background:center/cover url('/games/sala/biliardo.webp');box-shadow:0 0 0 1px #62c4bf99}
.games-comunicazione{font:16px/1.4 system-ui}.games-comunicazione button{font:600 16px/1.25 system-ui;min-height:46px;padding:9px 12px}.games-comunicazione input,.games-comunicazione textarea{font:16px/1.4 system-ui;box-sizing:border-box;max-width:100%}
body.gx-fs.gx-pool-1058 #bil .bl-observer-area{min-height:0;height:100%;overflow:hidden}
@media(min-width:600px) and (min-height:521px){body.gx-fs.gx-pool-1058 #bil .bl-hud{grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr);gap:12px}body.gx-fs.gx-pool-1058 #bil .bl-gioc{grid-template-columns:32px minmax(0,1fr);padding:9px!important;gap:7px}body.gx-fs.gx-pool-1058 #bil .bl-gioc.su{padding:8px!important}body.gx-fs.gx-pool-1058 #bil .bl-gioc:before{width:32px;height:32px;font-size:13px}body.gx-fs.gx-pool-1058 #bil .bl-gioc b{font-size:17px}body.gx-fs.gx-pool-1058 #bil .bl-gr{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}body.gx-fs.gx-pool-1058 #bil .bl-gr small,body.gx-fs.gx-pool-1058 #bil .bl-cnt{font-size:13px}body.gx-fs.gx-pool-1058 #bil .bl-mini{max-width:26px;font-size:12px}body.gx-fs.gx-pool-1058 #bil .games-social-context{font-size:17px;min-height:54px}body.gx-fs.gx-pool-1058 #bil .bl-com{grid-template-columns:minmax(0,1fr) 112px 160px!important}body.gx-fs.gx-pool-1058 #bil .bl-tira{font-size:23px}body.gx-fs.gx-pool-1058 #bil .bl-forza{font-size:16px}body.gx-fs.gx-pool-1058 #bil .bl-eff2122-open{font-size:16px}}
/* Wide and short landscape: player panels and shot controls occupy the genuine side space. */
@media(min-width:1200px) and (min-aspect-ratio:17/10),(min-width:760px) and (max-height:520px){body.gx-fs.gx-pool-1058 #bil{--table-h:calc(100dvh - 174px);--table-w:calc(var(--table-h)*1.88028169);--side:calc((100% - var(--table-w))/2);display:grid;grid-template-columns:minmax(0,1fr) var(--table-w) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:0;position:relative}body.gx-fs.gx-pool-1058 #bil .bl-hud{display:contents!important}body.gx-fs.gx-pool-1058 #bil .bl-area{grid-column:2;grid-row:1;height:var(--table-h)!important;width:100%!important;align-self:center;justify-self:center}body.gx-fs.gx-pool-1058 #bil .bl-gioc{position:absolute;top:12px;width:calc(var(--side) - 8px);max-width:360px!important;grid-template-columns:1fr;padding:10px!important;gap:8px}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0']{left:0}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='1']{right:0}body.gx-fs.gx-pool-1058 #bil .bl-gioc:before{grid-column:1;justify-self:center;width:36px;height:36px;font-size:15px}body.gx-fs.gx-pool-1058 #bil .bl-gioc b{grid-column:1;grid-row:2;font-size:clamp(14px,1.2vw,22px);text-align:center}body.gx-fs.gx-pool-1058 #bil .bl-gr{grid-column:1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 3px}body.gx-fs.gx-pool-1058 #bil .bl-gr small,body.gx-fs.gx-pool-1058 #bil .bl-cnt{font-size:clamp(12px,1vw,17px)}body.gx-fs.gx-pool-1058 #bil .bl-mini{max-width:36px;font-size:clamp(10px,1vw,15px)}body.gx-fs.gx-pool-1058 #bil .bl-live-slot{position:absolute;top:0;left:50%;transform:translateX(-50%);width:min(280px,var(--table-w))!important}body.gx-fs.gx-pool-1058 #bil .games-social-context{min-height:46px;font-size:17px}body.gx-fs.gx-pool-1058 #bil .bl-com{position:absolute!important;right:0;bottom:8px;width:calc(var(--side) - 8px);max-width:360px;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto;gap:14px;max-height:none;padding:0!important;grid-row:auto;grid-column:auto}body.gx-fs.gx-pool-1058 #bil .bl-forza{font-size:17px;align-self:auto}body.gx-fs.gx-pool-1058 #bil .bl-forza input{min-height:48px}body.gx-fs.gx-pool-1058 #bil .bl-com>.bl-eff2122{min-width:0;width:100%}body.gx-fs.gx-pool-1058 #bil .bl-eff2122-open{min-width:0;min-height:56px;font-size:16px;flex-wrap:wrap}body.gx-fs.gx-pool-1058 #bil .bl-tira{font-size:23px;min-height:64px}body.gx-fs.gx-pool-1058 #bil .bl-stato:not(:empty){display:block!important;position:absolute;left:0;bottom:14px;width:calc(var(--side) - 8px);max-width:360px;color:#fff;font:500 15px/1.35 system-ui;text-align:start;white-space:normal}body.gx-fs.gx-pool-1058 #bil .bl-tempo:not([hidden]){display:block!important;position:absolute;left:0;bottom:180px;font-size:20px}}
@media(min-width:760px) and (max-height:520px){body.gx-fs.gx-pool-1058 #bil{--table-h:calc(100dvh - 154px)}body.gx-fs.gx-pool-1058 #bil .bl-gioc{top:2px;padding:6px!important;grid-template-columns:24px minmax(0,1fr);gap:4px}body.gx-fs.gx-pool-1058 #bil .bl-gioc:before{width:24px;height:24px;font-size:11px;grid-column:1;grid-row:1}body.gx-fs.gx-pool-1058 #bil .bl-gioc b{font-size:14px;grid-column:2;grid-row:1}body.gx-fs.gx-pool-1058 #bil .bl-gr{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px 2px}body.gx-fs.gx-pool-1058 #bil .bl-gr small{font-size:11px}body.gx-fs.gx-pool-1058 #bil .bl-mini{font-size:10px;max-width:18px}body.gx-fs.gx-pool-1058 #bil .games-social-context{font-size:14px;min-height:44px}body.gx-fs.gx-pool-1058 #bil .bl-com{gap:4px;bottom:0}body.gx-fs.gx-pool-1058 #bil .bl-forza{font-size:13px}body.gx-fs.gx-pool-1058 #bil .bl-forza input{min-height:36px}body.gx-fs.gx-pool-1058 #bil .bl-eff2122-open{min-height:44px;font-size:14px}body.gx-fs.gx-pool-1058 #bil .bl-tira{min-height:48px;font-size:19px}body.gx-fs.gx-pool-1058 #bil .bl-stato:not(:empty){font-size:13px;bottom:10px}body.gx-fs.gx-pool-1058 #bil .bl-tempo:not([hidden]){bottom:120px;font-size:16px}}
@media(min-width:2300px){body.gx-fs.gx-pool-1058 #bil .bl-gioc{padding:18px!important;top:28px}body.gx-fs.gx-pool-1058 #bil .bl-gr{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 8px}body.gx-fs.gx-pool-1058 #bil .bl-mini{max-width:44px;font-size:17px}body.gx-fs.gx-pool-1058 #bil .bl-gioc:before{width:52px;height:52px;font-size:22px}body.gx-fs.gx-pool-1058 #bil .bl-com{bottom:28px;gap:20px}body.gx-fs.gx-pool-1058 #bil .bl-forza{font-size:22px}body.gx-fs.gx-pool-1058 #bil .bl-tira{min-height:76px;font-size:28px}body.gx-fs.gx-pool-1058 #bil .bl-eff2122-open{font-size:21px;min-height:64px}body.gx-fs.gx-pool-1058 #bil .bl-stato:not(:empty){font-size:19px;bottom:28px}}

/* Replace the old fixed54px/58px grid tracks, including their important declarations. */
body.gx-fs.gx-pool-1058 #bil.mk-sez,body.gx-fs.gx-pool-1058 #bil.mk-sez:has(.bl-fine:not([hidden])){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) 64px!important}
body.gx-fs.gx-pool-1058 #bil .bl-hud{grid-column:1!important;grid-row:1!important}
body.gx-fs.gx-pool-1058 #bil .bl-area{grid-column:1!important;grid-row:2!important}
body.gx-fs.gx-pool-1058 #bil .bl-com{grid-column:1!important;grid-row:3!important;grid-template-rows:1fr!important;height:64px!important;max-height:64px!important}
body.gx-fs.gx-pool-1058 #bil .bl-forza{flex-direction:column!important}
@media(min-width:1200px) and (min-aspect-ratio:17/10),(min-width:760px) and (max-height:520px){body.gx-fs.gx-pool-1058 #bil.mk-sez,body.gx-fs.gx-pool-1058 #bil.mk-sez:has(.bl-fine:not([hidden])){grid-template-columns:minmax(0,1fr) var(--table-w) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}body.gx-fs.gx-pool-1058 #bil .bl-area{grid-column:2!important;grid-row:1!important}body.gx-fs.gx-pool-1058 #bil .bl-com{grid-column:auto!important;grid-row:auto!important;grid-template-rows:auto auto auto!important;height:auto!important;max-height:none!important}}

/* Standard desktop keeps the original54px header and58px control tracks. Side panels only when side space is real. */
@media(min-width:900px) and (max-aspect-ratio:21/9) and (min-height:521px){body.gx-fs.gx-pool-1058 #bil.mk-sez,body.gx-fs.gx-pool-1058 #bil.mk-sez:has(.bl-fine:not([hidden])){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:54px minmax(0,1fr) 58px!important;gap:4px}body.gx-fs.gx-pool-1058 #bil .bl-hud{display:grid!important;grid-template-columns:minmax(0,1fr) 200px minmax(0,1fr);gap:12px;grid-column:1!important;grid-row:1!important;align-items:stretch}body.gx-fs.gx-pool-1058 #bil .bl-gioc{position:static;display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:22px 24px;gap:2px 8px;width:100%;max-width:none!important;padding:2px 6px!important;align-items:center;height:54px}body.gx-fs.gx-pool-1058 #bil .bl-gioc:before{grid-column:1;grid-row:1/3;width:32px;height:32px;font-size:13px}body.gx-fs.gx-pool-1058 #bil .bl-gioc b{grid-column:2;grid-row:1;text-align:start;font-size:16px;white-space:normal;overflow-wrap:normal}body.gx-fs.gx-pool-1058 #bil .bl-gr{grid-column:2;grid-row:2;display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start;gap:3px;min-width:0;width:100%;white-space:nowrap}body.gx-fs.gx-pool-1058 #bil .bl-gr small,body.gx-fs.gx-pool-1058 #bil .bl-cnt{font-size:12px;white-space:nowrap;flex:none;max-width:none}body.gx-fs.gx-pool-1058 #bil .bl-mini{width:18px;height:18px;max-width:18px;font-size:11px;flex:none}body.gx-fs.gx-pool-1058 #bil .bl-live-slot{position:static;transform:none;width:100%!important;align-self:center}body.gx-fs.gx-pool-1058 #bil .games-social-context{min-height:48px;font-size:16px}body.gx-fs.gx-pool-1058 #bil .bl-area{grid-column:1!important;grid-row:2!important;width:100%!important;height:100%!important}body.gx-fs.gx-pool-1058 #bil .bl-com{position:static!important;grid-column:1!important;grid-row:3!important;grid-template-columns:minmax(0,1fr) 140px 200px!important;grid-template-rows:1fr!important;width:100%;max-width:none;height:58px!important;max-height:58px!important;padding:2px!important;gap:16px}body.gx-fs.gx-pool-1058 #bil .bl-forza{font-size:15px}body.gx-fs.gx-pool-1058 #bil .bl-forza input{min-height:34px}body.gx-fs.gx-pool-1058 #bil .bl-tira{min-height:52px;font-size:24px}body.gx-fs.gx-pool-1058 #bil .bl-eff2122-open{min-height:48px;font-size:17px;flex-wrap:nowrap}body.gx-fs.gx-pool-1058 #bil .bl-stato{display:none!important}body.gx-fs.gx-pool-1058 #bil .bl-tempo{display:none!important}}
/* Small portrait: shared unassigned rack avoids false personal groups and repeated15-ball cards. */
@media(max-width:899px) and (orientation:portrait){body.gx-fs.gx-pool-1058 #bil.mk-sez{grid-template-rows:auto minmax(0,1fr) 58px!important;gap:4px}body.gx-fs.gx-pool-1058 #bil .bl-hud{grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr);grid-template-rows:minmax(48px,auto) auto;gap:4px 5px}body.gx-fs.gx-pool-1058 #bil .bl-gioc{display:contents!important}body.gx-fs.gx-pool-1058 #bil .bl-gioc:before{display:none}body.gx-fs.gx-pool-1058 #bil .bl-gioc b{grid-row:1;align-self:stretch;display:grid;place-items:center;box-sizing:border-box;min-height:48px;padding:4px;border:1px solid #537c98;border-radius:10px;background:#102539;font-size:14px;text-align:center;overflow-wrap:normal;white-space:normal}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] b{grid-column:1}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='1'] b{grid-column:3}body.gx-fs.gx-pool-1058 #bil .bl-gioc.su b{border:2px solid #ffe18a;background:#1a3044}body.gx-fs.gx-pool-1058 #bil .bl-live-slot{grid-column:2;grid-row:1}body.gx-fs.gx-pool-1058 #bil .bl-gr{grid-row:2;grid-template-columns:repeat(7,minmax(0,1fr));padding:2px 0;gap:3px 2px}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr{grid-column:1}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='1'] .bl-gr{grid-column:3}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr.bl-unassigned{grid-column:1/-1;grid-template-columns:repeat(15,minmax(0,1fr));grid-row:2;gap:3px 2px}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='1'] .bl-gr.bl-unassigned{display:none!important}body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned small{grid-column:1/8;grid-row:1;justify-self:start;font-size:12px}body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned .bl-cnt{grid-column:8/16;grid-row:1;justify-self:end;font-size:12px}body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned .bl-mini{grid-row:2;max-width:22px;font-size:11px}body.gx-fs.gx-pool-1058 #bil .bl-com{height:58px!important;max-height:58px!important;padding:2px!important}body.gx-fs.gx-pool-1058 #bil .bl-tira{min-height:52px}body.gx-fs.gx-pool-1058 #bil .bl-forza{font-size:12px}body.gx-fs.gx-pool-1058 #bil .bl-forza input{min-height:32px}}
body.gx-fs.gx-pool-1058 #bil .bl-forza input{appearance:none;background:transparent;margin:0}
body.gx-fs.gx-pool-1058 #bil .bl-forza input::-webkit-slider-runnable-track{height:10px;border-radius:6px;background:#34546b;border:1px solid #91bdd4}
body.gx-fs.gx-pool-1058 #bil .bl-forza input::-webkit-slider-thumb{appearance:none;width:25px;height:25px;margin-top:-9px;border-radius:50%;background:#63e6ff;border:2px solid #effcff;box-shadow:0 1px 4px #0008}
body.gx-fs.gx-pool-1058 #bil .bl-forza input::-moz-range-track{height:10px;border-radius:6px;background:#34546b;border:1px solid #91bdd4}body.gx-fs.gx-pool-1058 #bil .bl-forza input::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#63e6ff;border:2px solid #effcff}

@media(min-width:900px) and (max-aspect-ratio:21/9) and (min-height:521px){body.gx-fs.gx-pool-1058 #bil .bl-stato:not(:empty){display:none!important}body.gx-fs.gx-pool-1058 #bil .bl-gioc.su{padding:1px 5px!important}body.gx-fs.gx-pool-1058 #bil .bl-gr{height:24px;line-height:1}body.gx-fs.gx-pool-1058 #bil .bl-mini{width:20px;height:20px;max-width:20px;font-size:12px}}
@media(max-width:899px) and (orientation:portrait){body.gx-fs.gx-pool-1058 #bil .bl-hud{position:relative!important}body.gx-fs.gx-pool-1058 #bil .bl-hud:has(.bl-unassigned) .bl-gioc b{padding-bottom:18px}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr.bl-unassigned{padding:0;height:22px;grid-template-rows:22px;gap:2px}body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned .bl-mini{grid-row:1}body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned small{position:absolute;left:6px;top:31px;grid-column:auto;grid-row:auto;font-size:11px}body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned .bl-cnt{position:absolute;right:6px;top:31px;grid-column:auto;grid-row:auto;font-size:11px}}

/* Personal groups keep the same readable ball size as the shared opening rack. */
@media(max-width:899px) and (orientation:portrait){body.gx-fs.gx-pool-1058 #bil .bl-hud{grid-template-columns:repeat(15,minmax(0,1fr));column-gap:2px}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] b{grid-column:1/6}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='1'] b{grid-column:11/16}body.gx-fs.gx-pool-1058 #bil .bl-live-slot{grid-column:6/11}body.gx-fs.gx-pool-1058 #bil .bl-gioc b{padding-bottom:18px}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr{grid-column:1/8}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='1'] .bl-gr{grid-column:9/16}body.gx-fs.gx-pool-1058 #bil .bl-gr{grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:22px;height:22px;padding:0;gap:2px}body.gx-fs.gx-pool-1058 #bil .bl-gr .bl-mini{grid-row:1;max-width:22px;font-size:11px}body.gx-fs.gx-pool-1058 #bil .bl-gr small,body.gx-fs.gx-pool-1058 #bil .bl-gr .bl-cnt{position:absolute;top:31px;grid-column:auto;grid-row:auto;font-size:11px;white-space:nowrap}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr small{left:6px;right:auto}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr .bl-cnt{left:54px;right:auto}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='1'] .bl-gr small{right:34px;left:auto}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='1'] .bl-gr .bl-cnt{right:6px;left:auto}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr.bl-unassigned{grid-column:1/-1}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr.bl-unassigned .bl-cnt{left:auto;right:6px}body.gx-fs.gx-pool-1058 #bil .bl-gr:not(.bl-unassigned) .bl-mini:nth-of-type(8){position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:calc((100% - 28px)/15)}}

/* Recover the previous portrait playing area without covering the field or shrinking shot controls. */
@media(max-width:899px) and (orientation:portrait){body.gx-fs.gx-pool-1058 #gx-player{gap:0;padding-bottom:max(2px,env(safe-area-inset-bottom))}body.gx-fs.gx-pool-1058 #bil.mk-sez,body.gx-fs.gx-pool-1058 #bil.mk-sez:has(.bl-fine:not([hidden])){grid-template-rows:auto minmax(0,1fr) 54px!important;gap:0}body.gx-fs.gx-pool-1058 #bil .bl-hud{grid-template-rows:minmax(44px,auto) auto;row-gap:2px}body.gx-fs.gx-pool-1058 #bil .bl-gioc b{min-height:44px}body.gx-fs.gx-pool-1058 #bil .games-social-context{min-height:44px;padding:4px 3px;line-height:1.1}body.gx-fs.gx-pool-1058 #bil .bl-gr,body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr.bl-unassigned{height:20px;grid-template-rows:20px}body.gx-fs.gx-pool-1058 #bil .bl-gr .bl-mini{max-width:20px}body.gx-fs.gx-pool-1058 #bil .bl-gr small,body.gx-fs.gx-pool-1058 #bil .bl-gr .bl-cnt,body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned small,body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned .bl-cnt{top:28px}body.gx-fs.gx-pool-1058 #bil .bl-com{height:54px!important;max-height:54px!important;padding:1px!important}}

/* Preserve native referee messages and real online shot clock in the existing title band. */
@media(min-width:900px) and (min-height:521px){body.gx-fs.gx-pool-1058 #bil .bl-stato:not(:empty){display:flex!important;position:absolute;top:-44px;bottom:auto;left:56px;right:auto;width:calc(50% - 190px);max-width:none;min-height:40px;margin:0;align-items:center;color:#fff;font:600 clamp(14px,.7vw,20px)/1.15 system-ui;text-align:start;white-space:normal;z-index:101}body.gx-fs.gx-pool-1058 #bil .bl-tempo:not([hidden]){display:flex!important;position:absolute;top:-44px;bottom:auto;left:auto;right:56px;width:160px;max-width:none;min-height:40px;margin:0;align-items:center;justify-content:flex-end;color:#ffe18a;font:700 17px/1.15 system-ui;white-space:normal;z-index:101}}
@media(max-width:899px) and (orientation:portrait){body.gx-fs.gx-pool-1058 #bil .bl-tempo:not([hidden]){display:flex!important;position:absolute;top:-44px;bottom:auto;left:48px;right:auto;width:38px;max-width:38px;min-height:40px;margin:0;align-items:center;justify-content:center;color:#ffe18a;font:700 12px/1.1 system-ui;white-space:normal;z-index:101}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr small[data-rule-hint]{left:6px;right:auto}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='0'] .bl-gr:not(.bl-unassigned) .bl-cnt[data-rule-hint]{left:78px;right:auto}body.gx-fs.gx-pool-1058 #bil .bl-gioc[data-player='1'] .bl-gr small[data-rule-hint]{right:26px;left:auto}}
body.gx-fs.gx-pool-1058 #bil.mk-sez{overflow:visible!important}

@media(max-width:899px) and (orientation:portrait){body.gx-fs.gx-pool-1058 #bil .bl-tempo:not([hidden])[data-clock-short]{font-size:0;display:block!important;text-align:center;padding-top:4px;box-sizing:border-box;height:40px;min-height:40px}body.gx-fs.gx-pool-1058 #bil .bl-tempo:not([hidden])[data-clock-short]:after{content:attr(data-clock-short);display:block;white-space:pre-line;font:700 14px/1.1 system-ui;color:#ffe18a}}

body.gx-fs.gx-pool-1058 #bil .bl-hud{direction:ltr}body.gx-fs.gx-pool-1058 #bil .bl-gioc b,body.gx-fs.gx-pool-1058 #bil .bl-gr small,body.gx-fs.gx-pool-1058 #bil .games-social-context{unicode-bidi:plaintext}
@media(max-width:899px) and (orientation:portrait){body.gx-fs.gx-pool-1058 #bil .bl-gioc b{overflow-wrap:anywhere}body.gx-fs.gx-pool-1058 #bil .bl-gr small,body.gx-fs.gx-pool-1058 #bil .bl-gr .bl-cnt,body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned small,body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned .bl-cnt{top:calc(var(--name-row-height,44px) - 16px)}}

/* Long player names never enlarge the portrait playing header; full names remain accessible. */
@media(max-width:899px) and (orientation:portrait){body.gx-fs.gx-pool-1058 #bil .bl-gioc b{display:block!important;box-sizing:border-box;height:44px;min-height:44px;max-height:44px;line-height:22px;padding-top:4px;padding-bottom:18px;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis;overflow-wrap:normal!important}}
/* Compact laptop inventory; preserve the54px header and the native playing area. */
@media(min-width:900px) and (max-width:1359px) and (min-height:521px){body.gx-fs.gx-pool-1058 #bil .bl-gr{gap:2px}body.gx-fs.gx-pool-1058 #bil .bl-mini{width:17px;height:17px;max-width:17px;font-size:11px}body.gx-fs.gx-pool-1058 #bil .bl-gr small,body.gx-fs.gx-pool-1058 #bil .bl-cnt{font-size:11px}}

/* Narrow laptop: keep the actual count in the name row, leaving the rack readable below. */
@media(min-width:900px) and (max-width:1099px) and (min-height:521px){body.gx-fs.gx-pool-1058 #bil .bl-gioc{position:relative}body.gx-fs.gx-pool-1058 #bil .bl-gioc b{max-width:calc(100% - 78px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.gx-fs.gx-pool-1058 #bil .bl-gr.bl-unassigned .bl-cnt{position:absolute;right:6px;top:6px}body.gx-fs.gx-pool-1058 #bil .bl-mini{width:13px;height:13px;max-width:13px;font-size:10px}body.gx-fs.gx-pool-1058 #bil .bl-gr{gap:2px}}
