/* ============================================================================
   bingo-caller.css  —  🎱 The Bingo Cage (bingo caller) styling (.bng-*)
   A called ball, a strip of recent calls, and the permanent board of everything
   already called. Self-contained. Deep blue hall, brass ball, gold marks.
   ============================================================================ */

.bng-stage { position: relative; }

/* ---- mode chips ---- */
.bng-modes-wrap { text-align: center; }
.bng-modes-lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--theme-muted, #6b7280); margin: 0 0 8px; }
.bng-modes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 16px; }
.bng-mode { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 650;
    padding: 7px 15px; border-radius: 11px; background: var(--theme-surface, #fff); color: var(--theme-text, #1a1a2e);
    border: 1.5px solid var(--theme-border, #dfe4ee); transition: transform .12s ease, border-color .15s, background .15s, box-shadow .15s; }
.bng-mode-sub { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; opacity: .62; }
.bng-mode.is-on .bng-mode-sub { opacity: .85; }
.bng-mode:hover { transform: translateY(-2px); border-color: var(--bng-accent, #1c6ea4); }
.bng-mode.is-on { background: var(--bng-accent, #1c6ea4); border-color: var(--bng-accent, #1c6ea4); color: #fff;
    box-shadow: 0 7px 18px -6px var(--bng-accent, #1c6ea4); }
.bng-mode:focus-visible { outline: 3px solid color-mix(in srgb, var(--bng-accent, #1c6ea4) 55%, transparent); outline-offset: 2px; }

/* ---- the called ball ---- */
.bng-caller { display: flex; flex-direction: column; align-items: center; gap: 12px;
    background: linear-gradient(170deg, #17395a, #0c2135); border-radius: 18px; padding: 22px 16px 18px;
    overflow: hidden; box-shadow: inset 0 2px 14px rgba(0,0,0,.35); }

.bng-ball { width: 128px; height: 128px; border-radius: 50%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; line-height: 1; will-change: transform;
    background: radial-gradient(circle at 34% 28%, #fffdf6 0%, #f4e7c6 44%, #d9be82 100%);
    box-shadow: 0 12px 26px -10px rgba(0,0,0,.65), inset 0 -6px 14px rgba(140,105,40,.35); }
.bng-ball-letter { font-size: 21px; font-weight: 800; letter-spacing: .14em; color: #9a6b18; min-height: 22px; }
.bng-ball-num { font-size: 54px; font-weight: 800; color: #123047; font-variant-numeric: tabular-nums; }
.bng-ball.is-empty .bng-ball-num { color: rgba(18,48,71,.32); }
.bng-ball.is-rolling { box-shadow: 0 20px 30px -12px rgba(0,0,0,.7), inset 0 -6px 14px rgba(140,105,40,.35); }
/* per-column ball tint, so B/I/N/G/O read apart at a glance */
.bng-ball[data-col="0"] .bng-ball-letter { color: #b3261e; }
.bng-ball[data-col="1"] .bng-ball-letter { color: #1c6ea4; }
.bng-ball[data-col="2"] .bng-ball-letter { color: #1e7a4b; }
.bng-ball[data-col="3"] .bng-ball-letter { color: #8a5a10; }
.bng-ball[data-col="4"] .bng-ball-letter { color: #6b3fa0; }

.bng-recent { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 30px; }
.bng-mini { font-size: 12.5px; font-weight: 700; color: #d7e7f5; background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 4px 11px; font-variant-numeric: tabular-nums; }
.bng-mini-empty { font-weight: 600; color: rgba(215,231,245,.5); background: transparent; border-style: dashed; }

.bng-live { min-height: 20px; font-size: 13px; font-weight: 600; color: #9fc0da; text-align: center; margin: 2px 0 0; }

/* ---- counters ---- */
.bng-counts { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 14px 0 4px; }
.bng-count, .bng-left { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--theme-muted, #6b7280); font-variant-numeric: tabular-nums; }
.bng-count { color: var(--bng-accent, #1c6ea4); }

/* ---- the board ---- */
.bng-board { margin-top: 14px; }
.bng-board-75 { display: flex; flex-direction: column; gap: 6px; }
.bng-row { display: grid; grid-template-columns: 26px repeat(15, 1fr); gap: 4px; align-items: center; }
.bng-rowhead { font-size: 15px; font-weight: 800; color: var(--bng-accent, #1c6ea4); text-align: center; }
.bng-board-90 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }

.bng-cell { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
    font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 6px;
    color: var(--theme-muted, #7a8794); background: var(--theme-surface, #f1f4f8);
    border: 1px solid var(--theme-border, #e3e8ef); transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.bng-cell.is-called { background: var(--bng-accent, #1c6ea4); border-color: var(--bng-accent, #1c6ea4); color: #fff; }
.bng-cell.is-latest { background: var(--bng-gold, #e8a33a); border-color: var(--bng-gold, #e8a33a); color: #14202c;
    transform: scale(1.14); box-shadow: 0 5px 14px -4px var(--bng-gold, #e8a33a); z-index: 2; }
@media (max-width: 575.98px) {
    .bng-cell { font-size: 10px; border-radius: 5px; }
    .bng-row { grid-template-columns: 20px repeat(15, 1fr); gap: 3px; }
    .bng-board-90 { gap: 3px; }
    .bng-ball { width: 108px; height: 108px; }
    .bng-ball-num { font-size: 46px; }
}

/* ---- controls ---- */
.bng-callbtn-wrap { text-align: center; }
.bng-callbtn { display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; font-size: 16px; font-weight: 800;
    color: #fff; padding: 15px 40px; border-radius: 14px; border: 0; cursor: pointer; letter-spacing: .3px;
    background: linear-gradient(135deg, var(--bng-grad-a, #2b8fc9), var(--bng-grad-b, #13496e));
    box-shadow: 0 12px 24px -8px var(--bng-accent, #1c6ea4), inset 0 1px 0 rgba(255,255,255,.22);
    transition: transform .12s ease, filter .15s; }
.bng-callbtn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.bng-callbtn:disabled { opacity: .55; cursor: default; transform: none; filter: grayscale(.25); }
.bng-callbtn:focus-visible { outline: 3px solid color-mix(in srgb, var(--bng-accent, #1c6ea4) 55%, transparent); outline-offset: 3px; }
.bng-kbd { display: block; text-align: center; font-size: 11.5px; color: var(--theme-muted, #6b7280); margin-top: 8px; }
.bng-kbd kbd { background: var(--theme-surface, #eef2f7); border: 1px solid var(--theme-border, #d7dbe0);
    border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; font-size: 11px; font-weight: 700; color: var(--theme-text, #1a1a2e); }

.bng-effects { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px;
    color: var(--theme-text, #1a1a2e); justify-content: center; }
.bng-effects label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* ── SEO content (.bng-content) — type scale from .content-guide; colour only ── */
.bng-content { color: var(--theme-text, #1a1a2e); background: var(--theme-bg, #fff); padding: 3.25rem 0 3.5rem; margin-top: 1rem; border-top: 1px solid var(--theme-border, #e9ecef); }
.bng-inner { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.bng-content h2, .bng-content h3 { color: var(--theme-text, #1a1a2e); }
.bng-content p, .bng-content li { color: var(--theme-muted, #5b6470); }
.bng-content strong { color: var(--theme-text, #1a1a2e); }
.bng-content a { color: #1c6ea4; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.bng-kicker-chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff;
    background: linear-gradient(135deg, #2b8fc9, #13496e); border-radius: 999px; padding: .3rem .85rem; margin-bottom: .95rem; }
.bng-content .bng-lead { font-size: 1.2rem; line-height: 1.7; color: var(--theme-text, #1a1a2e); margin-bottom: 1.25rem; }
.bng-section { margin-top: 2.9rem; }
.bng-content .table { font-size: 1rem; }
.bng-content .table thead th { text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; font-weight: 800; color: #fff; background: #1c6ea4; padding: .7rem 1rem; }
.bng-content .table tbody td { padding: .6rem 1rem; border-bottom: 1px solid var(--theme-border, #e9ecef); vertical-align: top; }
.bng-content .table tbody td:first-child { font-weight: 700; color: var(--theme-text, #1a1a2e); white-space: nowrap; }
.bng-step { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; align-items: start; margin-top: 1.15rem; }
.bng-step-n { font-size: .8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2b8fc9, #13496e); border-radius: 9px; text-align: center; padding: .3rem 0; font-variant-numeric: tabular-nums; }
.bng-step p { margin: 0; }
.bng-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.bng-pair-card { background: var(--theme-surface, #f8f9fa); border: 1px solid var(--theme-border, #e9ecef); border-radius: 12px; padding: 1rem 1.1rem; border-top: 3px solid #2b8fc9; }
.bng-pair-card h3 { margin-top: 0 !important; font-size: 1.02rem !important; } .bng-pair-card p:last-child { margin-bottom: 0; font-size: .92rem; }
.bng-faq { margin-top: 1.4rem; }
.bng-faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--theme-border, #e9ecef); }
.bng-faq .accordion-button { background: transparent; color: var(--theme-text, #1a1a2e); font-weight: 600; padding-left: 0; padding-right: 2.5rem; box-shadow: none; }
.bng-faq .accordion-button:not(.collapsed) { color: #1c6ea4; background: transparent; }
.bng-faq .accordion-button:focus { box-shadow: none; }
.bng-faq .accordion-body { padding-left: 0; color: var(--theme-muted, #5b6470); }
@media (max-width: 767.98px) { .bng-pair { grid-template-columns: 1fr; } }
body[data-theme="high-contrast"] .bng-content p, body[data-theme="high-contrast"] .bng-content li, body[data-theme="high-contrast"] .bng-content .bng-lead { color: rgba(255,255,255,.84); }
body[data-theme="high-contrast"] .bng-content h2, body[data-theme="high-contrast"] .bng-content h3 { color: #fff; }

/* ── WHAT YOU ARE PLAYING FOR ─────────────────────────────────────────────────
   A real caller announces the prize before the game; without it the room does
   not know when to shout. 90-ball steps through three prizes off one set of
   calls, 75-ball declares a single pattern. */
.bng-prize { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--theme-surface, #f1f5f9); border: 1px solid var(--theme-border, #e1e7ef);
    border-left: 4px solid var(--bng-gold, #e8a33a); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.bng-prize-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bng-prize-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--theme-muted, #6b7280); }
.bng-prize-name { font-size: 1.15rem; font-weight: 800; color: var(--bng-accent, #1c6ea4); line-height: 1.2; }
.bng-prize-note { font-size: 12.5px; color: var(--theme-muted, #6b7280); }
.bng-prize-side { display: flex; align-items: center; gap: 12px; }

/* the 5x5 preview — the room can SEE the shape it is aiming for */
.bng-pat-grid { display: grid; grid-template-columns: repeat(5, 12px); grid-auto-rows: 12px; gap: 2px; }
.bng-pat-cell { border-radius: 2px; background: var(--theme-border, #dde4ec); }
.bng-pat-cell.is-on { background: var(--bng-accent, #1c6ea4); }
.bng-pat-cell.is-free { box-shadow: inset 0 0 0 2px var(--bng-gold, #e8a33a); }

.bng-stage-track { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bng-pips { display: flex; gap: 5px; }
.bng-pip { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px;
    background: var(--theme-bg, #fff); border: 1px solid var(--theme-border, #dde4ec); color: var(--theme-muted, #7a8794); }
.bng-pip.is-now { background: var(--bng-accent, #1c6ea4); border-color: var(--bng-accent, #1c6ea4); color: #fff; }
.bng-pip.is-done { background: var(--bng-gold, #e8a33a); border-color: var(--bng-gold, #e8a33a); color: #14202c; text-decoration: line-through; }
.bng-prize-step { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 9px; cursor: pointer;
    border: 1.5px solid var(--bng-accent, #1c6ea4); background: transparent; color: var(--bng-accent, #1c6ea4); }
.bng-prize-step:hover:not(:disabled) { background: var(--bng-accent, #1c6ea4); color: #fff; }
.bng-prize-step:disabled { opacity: .45; cursor: default; }

.bng-patterns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 14px; }
.bng-pat { font-size: 12.5px; font-weight: 650; padding: 6px 12px; border-radius: 10px; cursor: pointer;
    background: var(--theme-surface, #fff); color: var(--theme-text, #1a1a2e);
    border: 1.5px solid var(--theme-border, #dfe4ee); transition: background .15s, border-color .15s, color .15s; }
.bng-pat:hover { border-color: var(--bng-accent, #1c6ea4); }
.bng-pat.is-on { background: var(--bng-accent, #1c6ea4); border-color: var(--bng-accent, #1c6ea4); color: #fff; }
.bng-pat:focus-visible { outline: 3px solid color-mix(in srgb, var(--bng-accent, #1c6ea4) 55%, transparent); outline-offset: 2px; }

/* the traditional 90-ball call, under the ball */
.bng-nick { min-height: 20px; font-size: 14px; font-weight: 700; font-style: italic; color: var(--bng-gold, #e8a33a);
    text-align: center; letter-spacing: .01em; }

/* optional auto-call — off by default */
.bng-auto { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
    margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--theme-border, #e1e7ef); font-size: 13px;
    color: var(--theme-text, #1a1a2e); }
.bng-auto-toggle, .bng-auto-rate { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.bng-auto-rate { color: var(--theme-muted, #6b7280); }
.bng-auto-rate input[type="range"] { width: 116px; accent-color: var(--bng-accent, #1c6ea4); }
.bng-auto-rate input[type="range"]:disabled { opacity: .45; cursor: default; }
.bng-auto-rate output { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 30px; }
.bng-auto.is-on .bng-auto-rate { color: var(--bng-accent, #1c6ea4); }

/* game-setup groups in the SETTINGS column (the choosers moved here 2026-08-04;
   the "Playing for" readout stays on the stage — see the view comment) */
.bng-set { margin-bottom: 14px; }
.bng-set-lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--theme-muted, #6b7280); margin: 0 0 7px; }
.bng-set .bng-modes, .bng-set .bng-patterns { justify-content: flex-start; margin-bottom: 0; }
