/* MTWAFIQ Friends Games · The Red Ball «الكرة الحمراء» (v20.50.1, id blackball): the game's own styles (fg.css holds the core) */
.bb{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;max-width:100%;box-sizing:border-box;-webkit-user-select:none;user-select:none}
.bb-head{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.bb-turn{box-sizing:border-box;max-width:100%;min-height:calc(1.2em + 12px);padding:6px 18px;border-radius:999px;font-size:clamp(18px,5.6vw,28px);font-weight:800;line-height:1.2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.bb-turn:empty{visibility:hidden}
.bb-nudge{animation:bb-pulse 1.6s ease-in-out 3}
@keyframes bb-pulse{50%{transform:scale(1.05)}}
.bb-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 16px;max-width:100%}
.bb-score{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:15px;font-weight:600}
.bb-chip{display:inline-flex;align-items:center;gap:3px}
.bb-in{display:inline-flex;align-items:center;gap:3px}
/* room for the core's second-chance card (★) next to each side's reds */
.bb-qz{display:inline-block;min-width:1.1em;text-align:center}
.bb-ser:empty{display:none}
.bb-dot{display:inline-block;width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(127,127,127,.35)}
.bb-dot+.bb-ball,.bb-dot+.bb-dot{margin-inline-start:2px}
/* reds: solid = all red; striped = white with a red band (told apart by pattern); sunk = faint and hollow */
.bb-ball{display:inline-block;flex:none;width:14px;height:14px;border-radius:50%;background:#D42A2A;box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.55)}
.bb-ball.s{background:linear-gradient(#F4F2EA 0 30%,#D42A2A 30% 70%,#F4F2EA 70%)}
.bb-ball.x{opacity:.28;background:transparent}
.bb-turn .bb-ball{width:.8em;height:.8em;margin-inline-end:.35em;vertical-align:-.05em}
.bb-ser{font-variant-numeric:tabular-nums}
.bb-pow{display:flex;align-items:center;gap:6px;font-size:14px}
.bb-pow b{display:block;width:clamp(70px,22vw,160px);height:10px;border-radius:5px;background:rgba(127,127,127,.25);overflow:hidden}
.bb-pow b i{display:block;height:100%;width:0;background:linear-gradient(90deg,#4CAE3F,#1FB5B2 55%,#EC6C25)}
.bb[dir=rtl] .bb-pow b i{background:linear-gradient(270deg,#4CAE3F,#1FB5B2 55%,#EC6C25)}
.bb-sub{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:40px}
.bb-hint{margin:0;font-size:14px;line-height:1.3;text-align:center;max-width:34em}
.bb-mv{font:inherit;font-size:14px;line-height:1.2;padding:6px 14px;min-height:36px;border-radius:999px;border:1px solid currentColor;background:transparent;color:inherit;cursor:pointer}
.bb-mv[hidden]{display:none}
.bb-mv:focus-visible{outline:3px solid #EC6C25;outline-offset:2px}
.bb-clock{width:min(320px,90%);height:4px;border-radius:2px;background:rgba(127,127,127,.25);overflow:hidden}
.bb-clock[hidden]{display:none}
.bb-clock i{display:block;height:100%;width:100%;background:#1FB5B2;transition:width .5s linear}
.bb-wrap{width:100%;display:flex;justify-content:center;direction:ltr;overflow:hidden}
.bb-cv{display:block;touch-action:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;border-radius:16px;outline:none;cursor:crosshair}
.bb-cv:focus-visible{box-shadow:0 0 0 3px #EC6C25}
@media (prefers-reduced-motion:reduce){.bb-nudge{animation:none}.bb-clock i{transition:none}}
