@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800;900&display=swap');
:root{--bc-bg:#0f1224;--bc-panel:#191e3d;--bc-line:#343b62;--bc-text:#e8eaf6;--bc-muted:#a3a9cc;--bc-orange:#a48ce8;--bc-mint:#8fb7e9}
.bowling-page{margin:0;background:var(--bc-bg);color:var(--bc-text);font-family:Tajawal,Arial,sans-serif;font-size:16px;min-height:100vh;color-scheme:dark}
.bowling-page *{box-sizing:border-box}.bowling-page button,.bowling-page a{-webkit-tap-highlight-color:transparent}.bowling-page button{font:inherit;cursor:pointer}.bowling-page button:disabled{cursor:wait;opacity:.5}.bowling-page button:focus-visible,.bowling-page a:focus-visible{outline:3px solid var(--bc-mint);outline-offset:4px}.bowling-page a{color:inherit;text-decoration:none}.bowling-page [hidden]{display:none!important}
.club-header{height:94px;border-bottom:1px solid var(--bc-line);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 4vw}.club-brand{font-size:37px;font-weight:900;line-height:1}.club-brand span{display:block;font-size:12px;font-weight:500;color:var(--bc-muted);margin-top:8px}.club-title{display:flex;align-items:center;gap:13px;font-weight:800;font-size:19px}.club-title small{display:block;direction:ltr;font:10px Arial;letter-spacing:2.2px;margin-top:6px;color:var(--bc-muted)}.club-symbol{font:50px Georgia;color:var(--bc-orange)}.club-header nav{display:flex;align-items:center;gap:12px}.icon-button{border:1px solid var(--bc-line);background:transparent;color:var(--bc-text);padding:10px 13px;border-radius:7px;font-size:14px!important}.icon-button:hover{background:#242c51}.local-badge{font-size:13px;color:var(--bc-muted);margin-left:12px}.club-main{max-width:1550px;margin:auto;padding:34px 4vw 0}.club-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1px;color:var(--bc-mint)}.club-heading h1{font-size:36px;line-height:1.25;margin:12px 0 0;font-weight:800}.club-heading em{font-style:normal;color:var(--bc-orange)}.round-counter{display:flex;align-items:center;gap:15px}.round-counter>span{font-size:14px;color:var(--bc-muted)}.round-counter b{font:600 34px Arial;direction:ltr}.round-counter small{font-size:16px;color:var(--bc-muted)}.club-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.club-play{min-width:0}.lane-view{height:clamp(350px,46vh,590px);position:relative;border:1px solid #454d78;border-radius:12px 12px 0 0;overflow:hidden;background:#0f1224}#lane-canvas{position:absolute;inset:0}#lane-canvas canvas{display:block;width:100%;height:100%}.lane-top,.lane-bottom{position:absolute;left:23px;right:23px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.lane-top{top:22px}.lane-number{direction:ltr;font:10px Arial;letter-spacing:2px;color:#b3a7f0}.lane-number b{font:600 30px Arial;display:block;letter-spacing:0;margin-top:5px}.lane-chip{padding:8px 13px;border:1px solid #8b7ad660;background:#141833c9;border-radius:5px;font-size:13px;color:#d1d8fa}.lane-bottom{bottom:18px;font-size:18px;font-weight:800;text-shadow:0 1px 9px #000}.lane-bottom i{font:9px Arial;letter-spacing:1px;margin-right:8px;color:#a3a9cc}.lane-bottom>span:last-child{font:9px Arial;letter-spacing:2px;direction:ltr;color:#a3a9cc}.aim-console{padding:23px 25px 20px;background:var(--bc-panel);border:1px solid var(--bc-line);border-top:0;border-radius:0 0 12px 12px}.aim-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.aim-heading h2{font-size:23px;margin:6px 0 16px}.aim-heading p{font-size:14px;color:var(--bc-muted)}.aim-value{color:var(--bc-muted);font-size:13px}.aim-value b{font:600 26px Arial;color:var(--bc-orange);margin-right:8px}.lane-picker{display:grid;grid-template-columns:repeat(9,1fr);direction:ltr;gap:8px}.lane-picker button{height:48px;border:1px solid #414c7b;border-radius:6px;color:var(--bc-text);background:#1f2650;font:600 20px Arial;transition:background .15s,transform .15s}.lane-picker button:hover{background:#2b345e;transform:translateY(-2px)}.lane-picker button.selected{background:var(--bc-orange);color:#15182a;border-color:var(--bc-orange);box-shadow:0 0 0 3px #a48ce814}.aim-scale{display:flex;justify-content:space-between;direction:ltr;font-size:12px;color:var(--bc-muted);margin:10px 0 21px}.throw-row{border-top:1px solid var(--bc-line);padding-top:16px;display:flex;justify-content:space-between;gap:15px;align-items:center}.throw-row p{font-size:13px;color:var(--bc-muted);margin:0}.throw-row p span{margin:0 7px}.throw-row kbd{font:11px Arial;border:1px solid #535d83;padding:3px 6px;border-radius:3px;color:var(--bc-text)}.throw-button{border:0;border-radius:6px;background:var(--bc-orange);color:#15182a;padding:14px 25px;font-weight:800!important;font-size:17px!important;min-width:190px;box-shadow:0 3px 0 #625392;display:flex;align-items:center;justify-content:space-between;gap:35px}.throw-button:hover{background:#b6a1f0}.throw-button span{font:24px Arial}.club-sidebar{display:grid;gap:17px}.score-panel,.result-panel{border:1px solid var(--bc-line);border-radius:10px;padding:22px;background:var(--bc-panel)}.panel-title{display:flex;justify-content:space-between;align-items:center}.panel-title h2{font-size:20px;margin:0}.panel-title>span,.panel-note{font-size:13px;color:var(--bc-muted)}.panel-note{margin:9px 0 22px}.club-player{display:flex;gap:10px;align-items:center;padding:15px 0;border-top:1px solid var(--bc-line)}.club-avatar{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:#b3a7f0;color:#15182a;font-size:17px;font-weight:800;flex-shrink:0}.club-player:nth-child(2) .club-avatar{background:#9dbde5}.club-player:nth-child(3) .club-avatar{background:#c7a2db}.club-player-name{flex:1;font-weight:700;font-size:16px}.club-player-name small{display:block;font-size:12px;font-weight:400;color:var(--bc-muted);margin-top:4px}.club-player.active .club-player-name small{color:var(--bc-orange)}.club-player-score{font:600 25px Arial}.club-player-score small{font:12px Tajawal,Arial;display:block;text-align:center;color:var(--bc-muted);margin-top:4px}.rounds-title{border-top:1px solid var(--bc-line);margin-top:5px;padding-top:19px;display:flex;justify-content:space-between;font-size:12px;color:var(--bc-muted)}.frame-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.frame-card{padding:10px 4px;text-align:center;border:1px solid var(--bc-line);border-radius:5px}.frame-card small{display:block;font-size:11px;color:var(--bc-muted)}.frame-card b{display:block;margin-top:7px;font:600 23px Arial;color:var(--bc-mint)}.frame-card.current{border-color:#a48ce8}.last-shot{display:flex;align-items:center;gap:12px;margin:13px 0}.last-shot>b{font:600 47px Arial;color:var(--bc-orange)}.last-shot>span{font-size:13px;line-height:1.6;color:var(--bc-muted)}.last-shot>div{margin-right:auto;font-size:17px;font-weight:700;color:var(--bc-mint)}.result-panel>p{font-size:13px;margin:0;color:var(--bc-muted)}.rules-panel{display:flex;gap:13px;padding:6px 9px}.rules-icon{font:30px Arial;color:var(--bc-orange)}.rules-panel h3{font-size:16px;margin:0 0 8px}.rules-panel p{font-size:14px;line-height:1.7;margin:0;color:var(--bc-muted)}.club-footer{display:flex;justify-content:space-between;gap:14px;color:var(--bc-muted);font-size:12px;padding:24px 0}.club-footer i{font-style:normal;margin:0 12px}.shot-toast{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);text-align:center;padding:23px 38px;border-radius:10px;background:#141833ef;border:1px solid #8fb7e980;min-width:220px;box-shadow:0 15px 60px #0006;animation:bowling-pop .25s ease-out}.shot-toast b{display:block;font-size:38px;color:var(--bc-orange);margin-bottom:8px}.shot-toast span{font-size:16px}.render-fallback{position:absolute;inset:90px 30px;display:grid;place-content:center;text-align:center;background:#191e3d}.render-fallback p{font-size:15px;max-width:300px;line-height:1.8}#fallback-pins{color:var(--bc-orange);letter-spacing:5px}.bowling-page dialog{border:1px solid var(--bc-line);border-radius:15px;background:var(--bc-panel);color:var(--bc-text);padding:35px;max-width:440px;width:calc(100% - 32px)}.bowling-page dialog::backdrop{background:#090c1ecf;backdrop-filter:blur(6px)}.bowling-page dialog h2{font-size:32px;margin-bottom:10px}.bowling-page dialog p{color:var(--bc-muted);line-height:1.6}.bowling-page dialog .throw-button{width:100%;margin-top:20px;justify-content:center}.bowling-page dialog .club-player-name{max-width:240px}@keyframes bowling-pop{from{opacity:0;transform:translate(-50%,-40%) scale(.9)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
/* Live game: scoped to the existing bowling board. */
.bw-wrap.bw-club{max-width:1200px;gap:0;--line:#343b62}.bw-club .bw-club-title{display:flex;align-items:center;justify-content:space-between;background:#191e3d;padding:15px 22px;border:1px solid #343b62;border-radius:14px 14px 0 0;color:#e8eaf6}.bw-club-title b{font-size:20px}.bw-club-title span{font:12px Arial;letter-spacing:2px;color:#8fb7e9}.bw-wrap.bw-club .stage3d,.bw-wrap.bw-club .bw-2d{aspect-ratio:16/8;max-height:48vh;border-radius:0;border:1px solid #343b62;min-height:260px}.bw-club .bw-aim{direction:ltr;background:#191e3d;border:1px solid #343b62;border-radius:0 0 14px 14px;gap:9px}.bw-club .bw-l{color:#e8eaf6;border:1px solid #414c7b;background:#1f2650;border-radius:6px;font:700 21px Arial}.bw-club .bw-l.mid{border-color:#8fb7e9;color:#8fb7e9}.bw-club .bw-l.on{background:#a48ce8;color:#15182a;box-shadow:0 4px 15px #a48ce825}.bw-club .bw-hint{direction:rtl;color:#a3a9cc;font-size:14px}.bw-club .bw-board{margin-top:15px}.bw-club .bw-r{background:#191e3d;border-color:#343b62}.bw-club .bw-r.now{border-color:#a48ce8;background:#292b51}.bw-club .bw-sc{color:#a48ce8}
@media(min-width:1600px){.club-main{padding-top:40px}.club-heading{margin-bottom:32px}.lane-view{height:510px}}
@media(max-width:1100px){.club-layout{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.club-main{padding:25px 3vw 0}.score-panel,.result-panel{padding:17px}.aim-heading p{display:none}.aim-console{padding:20px}.throw-row p{max-width:175px;line-height:1.8}.lane-picker{gap:5px}.club-header{padding:0 3vw}}
@media(max-width:760px){.club-header{height:78px;gap:10px}.club-brand{font-size:28px}.club-brand span,.club-title small,.local-badge{display:none}.club-title{font-size:16px;gap:6px}.club-symbol{font-size:32px}.club-header nav{gap:6px}.icon-button{padding:8px;font-size:12px!important}.club-heading h1{font-size:28px}.club-heading{margin-bottom:20px}.club-layout{grid-template-columns:1fr}.club-main{padding:24px 16px 0}.round-counter{gap:8px}.round-counter b{font-size:27px}.round-counter small{font-size:13px}.lane-view{height:390px}.club-sidebar{grid-template-columns:1fr 1fr}.score-panel{grid-row:span 2}.rules-panel{padding:0}.rules-icon{display:none}.club-footer{flex-wrap:wrap;line-height:1.5}.lane-bottom>span:last-child{display:none}.aim-console{padding:18px 15px}.lane-picker button{height:45px}.throw-row p{font-size:12px}.throw-button{min-width:150px;padding:12px 20px}.bw-club .bw-l{width:31px;height:39px;font-size:17px}.bw-club .bw-aim{gap:5px}}
@media(max-width:430px){.club-title{display:none}.club-heading h1{font-size:26px}.club-heading .eyebrow{font-size:11px}.lane-view{height:345px}.club-sidebar{grid-template-columns:1fr}.score-panel{grid-row:auto}.club-footer>span:last-child{font-size:11px}.throw-row{align-items:center}.throw-row p{max-width:150px}.throw-button{min-width:138px;gap:16px}.lane-top{left:17px;right:17px}.lane-picker{gap:4px}.lane-picker button{font-size:18px}.round-counter>span{display:none}}
@media(prefers-reduced-motion:reduce){.bowling-page *{animation:none!important;transition:none!important}}

/* Reuse the main site surfaces, font, rounded controls and purple-blue identity. */
.bowling-page{display:block;height:auto;overflow:auto;line-height:1.5;background:radial-gradient(ellipse at 10% 0,rgba(140,120,220,.13),transparent 55%),var(--bg,#0f1224)}
.bowling-page .club-brand{display:flex;align-items:center;gap:10px;font-size:29px}.club-brand img{width:45px;height:45px;padding:5px;border-radius:13px;background:rgba(139,122,214,.12);border:1px solid var(--line)}.club-brand span{font-size:12px;line-height:1.3}.club-title small{font-family:inherit;letter-spacing:0;direction:rtl;font-size:12px}.club-symbol{font-size:30px}.club-heading h1{font-size:30px}.club-header{height:83px;background:rgba(20,24,51,.7)}.club-main{padding-top:26px}.club-layout{grid-template-columns:minmax(0,1fr) 300px}.club-play{position:sticky;top:15px}.club-heading em{color:var(--p3,#a48ce8)}.lane-view{height:clamp(345px,45vh,560px);border-radius:16px 16px 0 0}.aim-console{border-radius:0 0 16px 16px}.score-panel,.result-panel,.chat-panel{border-radius:16px;background:var(--surf,#191e3d);border:1px solid var(--line);padding:20px}.icon-button,.throw-button,.lane-picker button{border-radius:10px}.throw-button{background:linear-gradient(120deg,#a48ce8,#6fa3dd);box-shadow:none;color:#111529}.lane-condition{border-bottom:1px solid var(--bc-line);padding-bottom:13px;margin-bottom:15px}.lane-condition>span{font-size:13px;color:var(--bc-muted)}.lane-condition b{color:#b9adf2;margin-right:9px}.lane-condition p{font-size:13px;color:var(--bc-muted);margin:4px 0 0}.power-row{display:flex;align-items:center;gap:16px;margin:0 0 18px}.power-row>span{font-size:14px;color:var(--bc-muted)}#power-picker{display:flex;gap:7px;flex:1}#power-picker button{font:700 13px Tajawal,Arial;padding:9px 12px;border-radius:9px;border:1px solid var(--bc-line);color:var(--bc-text);background:var(--surf-2,#1f2650);flex:1}#power-picker button.selected{border-color:#a48ce8;background:#8b7ad629;color:#cec3ff}.rules-panel ol{padding:0 18px 0 0;margin:9px 0 13px;color:var(--bc-muted);font-size:14px;line-height:1.8}.rules-panel li{margin-bottom:7px}.rules-panel b{color:var(--bc-text)}.chat-panel label{font-size:13px;color:var(--bc-muted);display:block;margin:12px 0 6px}.chat-panel input,.chat-panel select{width:100%;min-width:0;font:15px Tajawal,Arial;color:var(--bc-text);background:#11162e;border:1px solid var(--bc-line);border-radius:9px;padding:10px}.chat-input-row{display:flex;gap:8px}#chat-status{font-size:13px;color:#b3a7f0;line-height:1.7;margin:12px 0 0}.bw-club .bw-condition{flex-basis:100%;direction:rtl;text-align:center;background:#8b7ad61a;padding:10px;border-radius:10px;color:#b3a7f0;font-size:15px}.bw-club .bw-club-title span{font-family:inherit;letter-spacing:0}.bw-club .bw-hint{line-height:1.8}.bw-club .bw-l.mid{color:#e8eaf6;border-color:#414c7b;background:#1f2650}.bw-club .bw-l.on{background:#a48ce8;color:#15182a}.bw-club .bw-club-title img{width:30px;height:30px;vertical-align:middle;margin-left:8px}
@media(max-width:1100px){.club-layout{grid-template-columns:minmax(0,1fr) 260px}.aim-console{padding:17px}}
@media(max-width:760px){.club-layout{grid-template-columns:1fr}.club-play{position:static}.club-header{height:76px}.club-heading h1{font-size:25px}.club-sidebar{grid-template-columns:1fr 1fr}.chat-panel{grid-column:1/-1}.lane-view{height:345px}.club-brand img{width:36px;height:36px}.club-title{display:none}#power-picker button{padding:9px 6px}.power-row{gap:9px}}
@media(max-width:430px){.club-sidebar{grid-template-columns:1fr}.club-brand span{display:none}.club-header{gap:8px}.club-heading h1{font-size:23px}.club-heading .eyebrow{font-size:12px}}

/* Single-number bowling: shared site banners and a tracked avatar over the ball. */
.bowling-page .lane-picker{grid-template-columns:repeat(10,minmax(0,1fr))}.bowling-volume{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--bc-muted);width:82px}.bowling-volume input{width:100%;accent-color:#a48ce8}
#lane-canvas,.bw-club #gboard{position:relative}#lane-canvas{position:absolute}.bowling-thrower{position:absolute;left:18px;bottom:44px;width:min(280px,45%);z-index:3;text-align:right;direction:rtl}.bowling-thrower .pb{margin:0;min-height:72px;max-width:100%;border-radius:13px;padding:10px;gap:10px}.bowling-thrower .pb-main{min-width:0}.bowling-thrower .pb-name{font-size:16px}.bowling-thrower .pb-at,.bowling-thrower .pb-meta{font-size:12px}.bowling-thrower .av{width:42px;height:42px;flex:0 0 42px}.bowling-thrower .pb-tag{font-size:16px}.bowling-ball-avatar{position:absolute;transform:translate(-50%,-100%);pointer-events:none;z-index:2;filter:drop-shadow(0 3px 8px #0008)}.bowling-ball-avatar .av{width:36px;height:36px;display:block}.bowling-ball-avatar .av-emo{font-size:24px}.bowling-ball-avatar .av-ring{border-color:#d8d1ff}.bowling-ball-avatar img,.bowling-av img{width:100%;height:100%;object-fit:cover}.bowling-ball-avatar img[hidden],.bowling-av img[hidden]{display:none!important}
.bowling-page .bowling-player-card{min-height:78px;padding:12px;gap:10px;border-radius:12px;margin:9px 0;cursor:default}.bowling-page #scoreboard .bowling-player-card{cursor:pointer}.bowling-page .bowling-player-card .pb-bg{background:linear-gradient(115deg,color-mix(in srgb,var(--pb-acc) 20%,#191e3d),#141833)}.bowling-page .bowling-player-card .pb-main{min-width:0}.bowling-page .bowling-player-card .pb-name{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bowling-page .bowling-player-card .pb-at,.bowling-page .bowling-player-card .pb-meta{font-size:12px}.bowling-page .bowling-player-card .pb-tag{font-size:17px}.bowling-page .bowling-player-card .av{width:42px;height:42px;flex:0 0 42px}.bowling-page .bowling-player-card .av-emo{font-size:27px}.avatar-edit-hint{font-size:12px;color:var(--bc-muted);line-height:1.7;margin:9px 0}.bowling-page .shot-toast{min-width:290px;max-width:90%;padding:18px}.bowling-page .shot-toast .pb{text-align:right;margin-bottom:0}.bowling-page .shot-toast .pb span{font-size:inherit}.bw-club .bw-board .pb{margin:0;min-width:0}.bw-club .bw-board{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.bw-club .bw-board .pb-name{font-size:16px}.bw-club .bw-board .av{width:44px;height:44px;flex:0 0 44px}
@media(max-width:760px){.bowling-volume{width:58px}.club-header nav{gap:7px}.bowling-thrower{left:12px;bottom:42px;width:46%}.bowling-thrower .pb{padding:8px;gap:6px;min-height:64px}.bowling-thrower .pb-at,.bowling-thrower .pb-tag{display:none}.bowling-thrower .pb-name{font-size:14px}.bowling-thrower .av{width:32px;height:32px;flex-basis:32px}.bowling-page .lane-picker{gap:5px}.bw-club .bw-l{width:27px;height:36px}}
@media(max-width:540px){.bowling-page .lane-picker{grid-template-columns:repeat(5,1fr)}.bowling-page .lane-picker button{height:43px}.bowling-volume{width:48px}.club-brand img{width:30px;height:30px}.bowling-page .club-brand{font-size:25px;gap:4px}.bowling-thrower{width:48%;bottom:39px}.bowling-thrower .pb-meta{font-size:11px}.bowling-thrower .pb-name{font-size:13px}.bw-club .bw-aim{gap:4px}}

/* ══════════════════ الصالة هي الصفحة ══════════════════
   الشكل السابق كان مضغوطاً لسببٍ بنيويّ لا تجميليّ: الصالة مقيّدةٌ
   بنسبة 16/8 وسقفِ 48vh، ويعلوها شريطُ الدور وعنوانُ الصالة ويليها
   شريطُ الأرقام ولوحةُ النتائج. فيفيض المجموعُ عن المسرح، فيتدخّل
   نظامُ الملاءمة في base.js: يُطلق الارتفاع ثمّ يُصغّر الكلَّ —
   فتُرى الصالةُ شريطاً ومقياسُ الصفحة ٠٫٦٦.

   والعلاج ألّا يبقى في مجرى التخطيط إلا الصالةُ نفسها: تملأ المسرح،
   ويطفو فوقها شريطُ الدور والعنوانُ وشريطُ الأرقام ولوحةُ النتائج.
   وحين لا يفيض شيءٌ لا يُصغَّر شيء، فيبقى المقياس واحداً. */

body.playing #stage[data-game="bowl"]{
  border-radius:0 !important;border-color:transparent !important;
  padding:0 !important;
}
#stage[data-game="bowl"] .g-wrap{
  max-width:none;min-height:0;
  height:100% !important;max-height:100% !important;
  flex:1 1 auto !important;transform:none !important;
}
#stage[data-game="bowl"] .g-body{
  position:relative;
  max-width:none;width:100%;padding:0;min-height:0;
  display:flex;flex-direction:column;align-items:stretch;
}
#stage[data-game="bowl"] .bw-wrap.bw-club{
  position:relative;
  max-width:none;width:100%;flex:1 1 auto;min-height:0;
  display:flex;flex-direction:column;gap:0;margin:0;
  border:0;background:#0d1226;
}

/* الصالة وحدها في المجرى — تأخذ كلَّ ما في المسرح */
#stage[data-game="bowl"] .bw-wrap.bw-club .stage3d,
#stage[data-game="bowl"] .bw-wrap.bw-club .bw-2d{
  flex:1 1 auto;aspect-ratio:auto;max-height:none;min-height:0;
  border:0;border-radius:0;
}
#stage[data-game="bowl"] .bw-club #gboard canvas{display:block;width:100%;height:100%}

/* ── الطبقات العائمة ──
   كلُّها داخل صندوق الصالة فلا تُحسب فيضاً، وكلُّها شفّافةٌ قليلاً
   حتى يبقى الممرُّ هو المنظر لا الصناديقُ فوقه. */
#stage[data-game="bowl"] .bw-club > .bw-club-title,
#stage[data-game="bowl"] .bw-club > .bw-aim,
#stage[data-game="bowl"] .bw-club > .bw-board{
  position:absolute;z-index:4;
  /* خلفيةٌ صلبة لا backdrop-filter: الترشيحُ فوق لوح WebGL يخرج
     أبيضَ مصمتاً على بعض كروت الشاشة وفي التقاط OBS — وهذا بثٌّ
     مباشر لا يُقبل فيه رهانٌ على بطاقة الجهاز. */
  background:#111637f0;
  border:1px solid rgba(80,92,150,.5);
  box-shadow:0 10px 30px rgba(0,0,0,.45);
}

/* العنوان: شارةٌ صغيرة أعلى اليمين لا شريطٌ يقطع الشاشة */
#stage[data-game="bowl"] .bw-club > .bw-club-title{display:none}
#stage[data-game="bowl"] .bw-club-title b{font-size:15px}
#stage[data-game="bowl"] .bw-club-title span{display:none}
#stage[data-game="bowl"] .bw-club-title img{width:22px;height:22px}

/* شريط الأرقام: بارٌ عائم في أسفل الوسط، صفٌّ واحد */
#stage[data-game="bowl"] .bw-club > .bw-aim{
  bottom:14px;left:0;right:0;
  width:max-content;max-width:calc(100% - 28px);
  margin-inline:auto;
  border-radius:14px;padding:9px 14px;
  display:flex;flex-wrap:nowrap;align-items:center;gap:7px;
}
#stage[data-game="bowl"] .bw-club .bw-condition{
  flex:0 0 auto;flex-basis:auto;margin:0;padding:6px 12px;white-space:nowrap;font-size:13px;
}
#stage[data-game="bowl"] .bw-club .bw-hint{
  flex:0 1 auto;text-align:start;font-size:12.5px;line-height:1.45;max-width:290px;
}
#stage[data-game="bowl"] .bw-club .bw-hint br{display:none}

/* لوحة النتائج: عمودٌ يسار الشاشة — يمينُها يحجبه شريطُ المذيع،
   وأسفلُ اليسار عليه بطاقةُ صاحب الرمية. */
#stage[data-game="bowl"] .bw-club > .bw-board{
  top:96px;left:14px;right:auto;
  width:min(250px,24%);max-height:calc(100% - 260px);
  margin:0;padding:9px;overflow:auto;
  display:grid;grid-template-columns:1fr;gap:7px;
  border-radius:14px;scrollbar-width:thin;
}
#stage[data-game="bowl"] .bw-club > .bw-board.d2{grid-template-columns:1fr}
#stage[data-game="bowl"] .bw-club .bw-board .pb{min-height:54px;padding:7px;gap:8px;margin:0}
#stage[data-game="bowl"] .bw-club .bw-board .pb-name{font-size:13.5px}
#stage[data-game="bowl"] .bw-club .bw-board .av{width:32px;height:32px;flex:0 0 32px}

/* شريط الدور يطفو أعلى الوسط بدل أن يدفع الصالة إلى أسفل */
#stage[data-game="bowl"] .g-body > #turnBar{
  position:absolute;z-index:5;
  top:96px;left:0;right:0;
  width:max-content;min-width:0;max-width:calc(100% - 28px);
  margin-inline:auto;
}

@media (max-width:900px){
  #stage[data-game="bowl"] .bw-club > .bw-board{
    width:min(190px,40%);max-height:calc(100% - 170px);
  }
  #stage[data-game="bowl"] .bw-club .bw-hint{display:none}
  #stage[data-game="bowl"] .bw-club > .bw-aim{padding:7px 10px;gap:5px}
  #stage[data-game="bowl"] .g-body > #turnBar{max-width:calc(100% - 20px)}
}
