/* ────────────────────────────────────────────────────────────────
   TOOL — Arabic Bingo Card Generator

   Cards are .ac-sheet, so printing already gives one per page with
   the shared margins. On screen they are laid out in a responsive
   grid instead, because scrolling twenty full-page cards to check
   them is nobody's idea of a preview.

   Version log
   1.0.0  2026-08-11  Initial.
   ──────────────────────────────────────────────────────────────── */

.at-bingo__layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 26px;
    align-items: start;
}

@media ( max-width: 900px ) {
    .at-bingo__layout { grid-template-columns: 1fr; }
}

.at-bingo__in {
    width: 100%;
    font-family: 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
}

.at-bingo__stage {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
    gap: 18px;
}

.at-bingo__card { padding: 16px; }

.at-bingo__title {
    margin: 0 0 12px;
    text-align: center;
    font-family: 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.25rem;
}

.at-bingo__grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
}

.at-bingo__grid td {
    height: 3.4em;
    padding: 4px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid rgba( 0, 0, 0, .35 );
    font-size: .95rem;
    line-height: 1.3;
    word-break: break-word;
}

.at-bingo__grid td.is-free {
    background: rgba( 79, 70, 229, .1 ) !important;
    font-size: 1.4rem;
}

.at-bingo__num {
    margin: 10px 0 0;
    text-align: center;
    font-size: .75rem;
    opacity: .55;
}

.at-bingo__callerlist {
    columns: 2;
    font-family: 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 2;
}

@media print {
    .at-bingo__layout { display: block; }
    .at-bingo__side, .ac-btn-row { display: none !important; }
    .at-bingo__stage { display: block; }
    .at-bingo__grid td { height: 4.2em; font-size: 1.1rem; }
    .at-bingo__grid td.is-free { background: rgba( 0, 0, 0, .08 ) !important; }
}
