/* Scam Bingo (inc/bingo.php, assets/js/bingo.js) */
.bingo { max-width: 1060px; margin: 0 auto; scroll-margin-top: 96px; }
.bingo__app { background: #fff; border-radius: var(--radius, 14px); box-shadow: var(--shadow, 0 6px 24px rgba(14, 30, 66, .08)); padding: 24px; border-top: 5px solid var(--yellow, #d8db3e); }
.bingo__tabs { display: flex; gap: 8px; border-bottom: 2px solid #eef2f7; margin-bottom: 20px; flex-wrap: wrap; }
.bingo__tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 14px; font: 600 1rem Sora, sans-serif; color: #4a5568; cursor: pointer; }
.bingo__tabs button.is-on { color: var(--navy, #0e1e42); border-bottom-color: var(--yellow, #d8db3e); }
.bingo__tabs button:focus-visible { outline: 3px solid var(--blue, #2274b5); outline-offset: 2px; }
.bingo__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bingo__wombat { width: 120px; height: auto; flex: none; }
.bingo__intro { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.bingo__intro h2 { margin: 0 0 6px; }
.bingo__fine { font-size: .86rem; color: #6a7489; }
.bingo__game { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
/* The card */
.bingo__card { display: grid; gap: 6px; background: var(--navy, #0e1e42); padding: 8px; border-radius: 12px; }
.bingo__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bingo__sq { position: relative; aspect-ratio: 1 / 1; background: #fff; border: 0; border-radius: 8px; padding: 4px; font: 600 .84rem/1.15 Inter, sans-serif; color: var(--navy, #0e1e42); cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; transition: background .15s, transform .15s; }
.bingo__sq span { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.bingo__sq:hover:not(.is-on) { background: #fbfbe3; }
.bingo__sq:focus-visible { outline: 3px solid var(--yellow, #d8db3e); outline-offset: 1px; }
.bingo__sq.is-on { background: var(--yellow, #d8db3e); cursor: default; }
.bingo__sq.is-on::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy, #0e1e42) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center/12px no-repeat; pointer-events: none; }
.bingo__sq.is-free { background: var(--green, #9dc24c); color: var(--navy, #0e1e42); font-family: Sora, sans-serif; }
.bingo__sq.is-line { background: #3f7d20; color: #fff; }
.bingo__sq.is-line::after { background-color: #fff; filter: invert(1); }
.bingo__sq.is-hint { box-shadow: inset 0 0 0 3px var(--blue, #2274b5); }
.bingo__sq.is-shake { animation: bingo-shake .4s; background: #fbecea; }
@keyframes bingo-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .bingo__sq.is-shake { animation: none; } }
.bingo__flash { position: absolute; left: 2px; right: 2px; bottom: 2px; background: #b8382a; color: #fff; font-size: .68rem; line-height: 1.2; border-radius: 4px; padding: 2px; pointer-events: none; }
.bingo__key { margin-top: 12px; font-size: .92rem; }
.bingo__key summary { cursor: pointer; color: var(--blue, #2274b5); font-weight: 600; }
.bingo__key dl { margin: 10px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; }
.bingo__key dt { font-weight: 600; } .bingo__key dd { margin: 0; color: #4a5568; }
/* The message */
.bingo__msg { border: 1px solid #d9e0ea; border-radius: 12px; overflow: hidden; background: #fbfcfe; }
.bm__bar { background: #eef2f7; padding: 6px 12px; font-size: .8rem; font-weight: 600; color: #4a5568; text-transform: uppercase; letter-spacing: .04em; }
.bm__from { padding: 10px 14px 0; font-size: .92rem; word-break: break-word; } .bm__from span { color: #6a7489; margin-right: 6px; }
.bm__subj { padding: 4px 14px 0; font-weight: 700; }
.bm__body { padding: 10px 14px; margin: 0; }
.bm--sms .bm__body { margin: 10px 14px 14px; background: #e9e9eb; border-radius: 18px 18px 18px 4px; }
.bm--call .bm__body { font-style: italic; }
.bm__signs { margin: 0 14px 12px; padding: 10px 12px; background: #fff8e1; border-left: 4px solid var(--yellow, #d8db3e); border-radius: 6px; font-size: .92rem; }
.bm__signs ul { margin: 6px 0 0; padding-left: 18px; }
.bingo__ctl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.bingo__ctl .btn:not(.btn--primary) { border: 2px solid #c9d2e3; background: #fff; color: #12385e; }
.bingo__count { font-size: .92rem; color: #4a5568; margin-top: 10px; }
/* Win */
.bingo__done { margin-top: 22px; }
.bingo__win { display: flex; gap: 20px; align-items: flex-start; background: #eef6e4; border-radius: 12px; padding: 20px; }
.bingo__win h2 { margin: 0 0 4px; font-size: 2rem; }
.bingo__big { font-weight: 600; }
.bingo__win details { margin: 0 0 12px; } .bingo__win summary { cursor: pointer; color: var(--blue, #2274b5); font-weight: 600; }
.bingo__used { padding-left: 20px; font-size: .92rem; }
.bingo__win .btn:not(.btn--yellow):not(.btn--primary) { border: 2px solid #c9d2e3; background: #fff; color: #12385e; }
/* Print setup */
.bingo__how { padding-left: 20px; }
.bingo__form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin: 16px 0 6px; }
.bingo__form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
.bingo__form input, .bingo__form select { font: inherit; padding: 8px 10px; border: 2px solid #c9d2e3; border-radius: 8px; min-width: 7em; }
.bingo__mini { max-width: 360px; margin: 14px 0 6px; }
/* Printed card (also used for the on-screen preview) */
.bp__card { border: 2px solid #0e1e42; border-radius: 10px; padding: 8px; background: #fff; color: #0e1e42; font-family: Inter, Arial, sans-serif; }
.bp__head { display: flex; justify-content: space-between; align-items: baseline; font-family: Sora, Arial, sans-serif; padding: 0 2px 6px; }
.bp__head strong { font-size: 1.1rem; } .bp__head span { font-size: .8rem; color: #4a5568; }
.bp__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #0e1e42; border-left: 1px solid #0e1e42; }
.bp__sq { aspect-ratio: 1 / 1; border-right: 1px solid #0e1e42; border-bottom: 1px solid #0e1e42; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3px; font-size: .68rem; line-height: 1.15; overflow-wrap: anywhere; }
.bp__free { background: #e6efd5; font-weight: 700; }
.bp__foot { font-size: .7rem; color: #4a5568; text-align: center; padding-top: 6px; }
.bingo-print { display: none; }
@media (max-width: 760px) {
  .bingo__app { padding: 16px 12px; }
  .bingo__game { grid-template-columns: 1fr; }
  .bingo__right { order: -1; }
  .bingo__intro, .bingo__win { flex-direction: column; align-items: center; }
  .bingo__intro .bingo__wombat { width: 90px; }
  .bingo__card, .bingo__row { gap: 4px; } .bingo__card { padding: 5px; }
  .bingo__sq { font-size: .64rem; padding: 2px; border-radius: 6px; }
  .bingo__key dl { grid-template-columns: 1fr; } .bingo__key dd { margin-bottom: 6px; }
  .bingo__sq.is-on::after { width: 9px; height: 9px; top: 2px; right: 2px; background-size: 9px; }
  .bingo__mini .bp__sq { font-size: .55rem; padding: 2px; overflow-wrap: anywhere; }
}
/* Printing: only the cards and caller sheet, when cards have been made */
@media print {
  html.bingo-print-on body > *:not(.bingo-print) { display: none !important; }
  html.bingo-print-on .bingo-print { display: block !important; }
  html.bingo-print-on body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  @page { size: A4; margin: 12mm; }
  .bp__page { page-break-after: always; break-after: page; }
  .bp__page:last-child { page-break-after: auto; break-after: auto; }
  .bp__page, .bp__card, .bp__sq { box-sizing: border-box; }
  .bp__page--4 { display: grid !important; grid-template-columns: 88mm 88mm; gap: 8mm 8mm; width: 184mm; }
  .bp__page--4 .bp__card { width: 88mm; break-inside: avoid; }
  .bp__page--4 .bp__grid { grid-template-columns: repeat(5, 1fr); }
  .bp__page--4 .bp__sq { font-size: 7.5pt; }
  .bp__page--1 .bp__card { width: 170mm; max-width: 170mm; margin: 10mm auto 0; padding: 12px; }
  .bp__page--1 .bp__head strong { font-size: 22pt; } .bp__page--1 .bp__sq { font-size: 12pt; padding: 6px; }
  .bp__card, .bp__free { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bp__caller h2 { font: 700 18pt Sora, Arial, sans-serif; margin: 0 0 6px; color: #0e1e42; }
  .bp__caller p { font-size: 10pt; margin: 0 0 8px; }
  .bp__caller table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .bp__caller th, .bp__caller td { border: 1px solid #9aa6bb; padding: 4px 6px; text-align: left; vertical-align: top; }
  .bp__tick { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #0e1e42; border-radius: 2px; }
}
