[hidden]{display:none !important}
/* ============================================================
   Bingo Card Online — main stylesheet
   Palette: red, teal, sunny yellow on cream/white
   ============================================================ */

:root {
  --red: #e23232;
  --red-dark: #c81f1f;
  --teal: #1aa6a6;
  --teal-dark: #0f8585;
  --yellow: #ffd23f;
  --yellow-dark: #f5b800;
  --navy: #1b2a4a;          /* harmonizes with logo "Card" */
  --ink: #25313f;
  --muted: #5d6b7a;
  --cream: #fff9ef;
  --paper: #ffffff;
  --line: #e7ddca;
  --shadow: 0 6px 24px rgba(27, 42, 74, 0.10);
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.08);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 6px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 120px; width: auto; display: block; }
@media (max-width: 520px) { .brand img { height: 84px; } }
.site-nav a {
  color: var(--navy);
  font-weight: 700;
  margin-left: 22px;
  font-size: .98rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, #fff5e3 100%);
  text-align: center;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .25em; }
.hero p.lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: .95rem;
  color: var(--muted);
}
.hero .dots { display: none; }

/* ---------- Tool layout ---------- */
.tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 14px 0 12px;
  align-items: start;
}
@media (max-width: 860px) {
  .tool { grid-template-columns: 1fr; }
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.panel h2 { margin-top: 0; font-size: 1.35rem; }

/* form controls */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: .98rem;
}
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }

textarea, input[type="text"], input[type="number"], select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 190px; resize: vertical; line-height: 1.5; }
textarea:focus, input:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 166, 166, .18);
}

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row .field { flex: 1 1 140px; margin-bottom: 18px; }

/* segmented grid-size buttons */
.segmented { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.segmented button {
  border: 0;
  background: #fffdf8;
  font-family: inherit;
  font-weight: 800;
  font-size: .95rem;
  color: var(--navy);
  padding: 10px 16px;
  cursor: pointer;
  border-right: 2px solid var(--line);
}
.segmented button:last-child { border-right: 0; }
.segmented button[aria-pressed="true"] { background: var(--teal); color: #fff; }

/* checkbox row */
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.check.disabled { opacity: .45; cursor: not-allowed; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  cursor: pointer;
  transition: transform .05s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-secondary:hover { background: var(--teal-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); text-decoration: none; }
.btn-block { width: 100%; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.note {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--muted);
  min-height: 1.2em;
}
.note.warn { color: var(--red-dark); font-weight: 700; }

/* ---------- Preview ---------- */
.preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.preview-head h2 { margin: 0; }
.preview-meta { font-size: .85rem; color: var(--muted); }
.preview-tools { display: inline-flex; align-items: center; gap: 10px; }

/* small icon button (reshuffle preview, caller close) */
.icon-btn {
  border: 2px solid var(--line);
  background: #fffdf8;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--teal); background: #fff; }

/* advanced options disclosure */
.adv {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  background: #fffdf8;
}
.adv > summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  padding: 12px 14px;
  list-style: none;
  font-size: .98rem;
}
.adv > summary::-webkit-details-marker { display: none; }
.adv > summary::after { content: "+"; float: right; color: var(--teal-dark); font-size: 1.2rem; line-height: 1; }
.adv[open] > summary::after { content: "\2013"; }
.adv-body { padding: 4px 14px 8px; }
.adv-body .field:last-child { margin-bottom: 8px; }

/* ---------- Bingo card ---------- */
/* Card color themes: each palette overrides these vars on the preview card
   (class on .bingo-card) and printed cards (class on #print-area). "Classic"
   is the default — no extra class. Keep in sync with CARD_THEMES in app.js. */
.bingo-card, #print-area {
  --ct-border: var(--navy);
  --ct-banner: var(--teal);
  --ct-banner-ink: #fff;
  --ct-title: var(--red);
  --ct-free: var(--yellow);
}
.bingo-card.cardtheme-party, #print-area.cardtheme-party {
  --ct-border: #7b2d8b; --ct-banner: #e91e8c; --ct-banner-ink: #fff;
  --ct-title: #7b2d8b; --ct-free: #ffd23f;
}
.bingo-card.cardtheme-pastel, #print-area.cardtheme-pastel {
  --ct-border: #8aa8c8; --ct-banner: #a5c8e4; --ct-banner-ink: #1b2a4a;
  --ct-title: #5a7a9a; --ct-free: #fde2ea;
}
.bingo-card.cardtheme-holiday, #print-area.cardtheme-holiday {
  --ct-border: #1a6b3c; --ct-banner: #c81f1f; --ct-banner-ink: #fff;
  --ct-title: #1a6b3c; --ct-free: #ffd23f;
}
.bingo-card.cardtheme-ocean, #print-area.cardtheme-ocean {
  --ct-border: #0b4f6c; --ct-banner: #01a7c2; --ct-banner-ink: #fff;
  --ct-title: #0b4f6c; --ct-free: #eaf6ff;
}
.bingo-card.cardtheme-spooky, #print-area.cardtheme-spooky {
  --ct-border: #6a1b9a; --ct-banner: #ff7518; --ct-banner-ink: #fff;
  --ct-title: #6a1b9a; --ct-free: #ffcc00;
}
.bingo-card.cardtheme-autumn, #print-area.cardtheme-autumn {
  --ct-border: #8b4513; --ct-banner: #d2691e; --ct-banner-ink: #fff;
  --ct-title: #8b4513; --ct-free: #f4a460;
}

.bingo-card {
  background: var(--paper);
  border: 3px solid var(--ct-border);
  border-radius: 12px;
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.bingo-title {
  text-align: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ct-title);
  margin: 0 0 4px;
  word-break: break-word;
}
.bingo-banner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 6px 0 12px;
}
.bingo-banner span {
  background: var(--ct-banner);
  color: var(--ct-banner-ink);
  font-weight: 900;
  text-align: center;
  border-radius: 7px;
  padding: 6px 0;
  font-size: 1.25rem;
  letter-spacing: 1px;
}
.bingo-grid {
  display: grid;
  gap: 6px;
}
.bingo-cell {
  background: #fffdf8;
  border: 2px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}
/* emoji / picture cells render bigger */
.bingo-grid.emoji-card .bingo-cell { font-size: 3rem; padding: 2px; line-height: 1; }
@media (max-width: 480px) {
  .bingo-grid.emoji-card .bingo-cell { font-size: 2.2rem; }
}

.bingo-cell.free {
  background: var(--ct-free);
  color: var(--navy);
  font-weight: 900;
}

/* photo bingo cells (preview + print share these) */
.bingo-cell.photo-cell, .print-cell.photo-cell { padding: 0; }
.bingo-cell.photo-cell img, .print-cell.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* photo upload thumbnails */
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.photo-remove:hover { background: var(--red); }
input[type="file"]#photoInput {
  width: 100%;
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: #fffdf8;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  cursor: pointer;
}
.bingo-cell .free-star { display: block; }
.bingo-cell .free-star .star { font-size: 1.5rem; line-height: 1; }
.bingo-cell .free-star .lbl { font-size: .72rem; letter-spacing: 1px; }

.preview-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- Supporting content ---------- */
.content { background: var(--paper); border-top: 1px solid var(--line); padding: 8px 0 12px; }
.content .wrap { max-width: 820px; }
.content ul, .content ol { margin: 0 0 1em; padding-left: 1.4em; }
.content li { margin-bottom: .4em; }

.theme-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.theme-links a {
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-weight: 700;
  color: var(--navy);
}
.theme-links a:hover { border-color: var(--teal); text-decoration: none; }

table.tbl { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .96rem; }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.tbl th { background: var(--cream); color: var(--navy); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  padding: 16px 18px;
  list-style: none;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--teal-dark); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 18px 16px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #d6deec;
  margin-top: 40px;
  padding: 32px 0;
  font-size: .95rem;
}
.site-footer a { color: #fff; font-weight: 700; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav a { margin-right: 20px; }
.site-footer .copy { color: #9fb0c9; font-size: .88rem; }

.section-title { text-align: center; }

/* ============================================================
   Bingo caller — full-screen overlay
   ============================================================ */
.caller {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--navy) 0%, #12203c 100%);
  color: #fff;
  overflow-y: auto;
}
body.caller-open { overflow: hidden; }
.caller-inner {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100%;
  padding: 18px 20px 32px;
  display: flex;
  flex-direction: column;
}
.caller-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.caller-progress { font-weight: 800; color: var(--yellow); letter-spacing: .5px; }
.caller-close { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; }
.caller-close:hover { background: rgba(255,255,255,.18); border-color: #fff; }

.caller-stage {
  text-align: center;
  padding: 18px 0 6px;
}
.caller-current {
  font-weight: 900;
  font-size: clamp(3rem, 16vw, 8rem);
  line-height: 1.05;
  color: var(--yellow);
  word-break: break-word;
  min-height: 1.1em;
}
.caller-current.is-emoji { font-size: clamp(4rem, 26vw, 12rem); }
.caller-last {
  margin-top: 8px;
  color: #b9c6df;
  font-weight: 700;
  font-size: 1.1rem;
  min-height: 1.4em;
}

.caller-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}
.caller-controls .btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.caller-controls .btn-ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.caller-controls .btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.caller-next { font-size: 1.25rem; padding: 15px 40px; }
.caller-next:disabled { opacity: .5; cursor: not-allowed; }
.caller-hint { text-align: center; color: #93a3c2; font-size: .9rem; margin: 4px 0 14px; }
.caller-hint kbd {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 5px;
  padding: 1px 7px;
  font-family: inherit;
  font-size: .85rem;
}

.caller-history-wrap {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: auto;
}
.caller-history-head { font-weight: 800; margin-bottom: 10px; color: #d6deec; }
.caller-history { display: flex; flex-wrap: wrap; gap: 8px; }
.hist-chip {
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 700;
  font-size: .95rem;
}
.hist-chip.newest { background: var(--yellow); color: var(--navy); }

/* ---------- Print output (rendered cards live in #print-area) ---------- */
#print-area { display: none; }

/* ============================================================
   PRINT STYLES — hide all UI chrome, paginate cards/page
   ============================================================ */
@media print {
  @page { margin: 12mm; }

  body { background: #fff; color: #000; font-size: 12pt; }
  body.caller-open { overflow: visible; }

  /* hide everything except the generated cards. Robust body-level rule so
     build-injected sections (e.g. .pop-guides) never leak into the printout. */
  body > *:not(#print-area) { display: none !important; }

  /* show the generated print area, and force theme colors to actually print
     (browsers strip background colors unless print-color-adjust is exact) */
  #print-area {
    display: block !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* belt-and-braces: some browsers do not reliably inherit color-adjust into
     descendants, which silently drops banner / free-space background colors */
  #print-area * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-card {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 3px solid var(--ct-border);
    border-radius: 10px;
    padding: 14px;
    margin: 0 auto 14mm;
    max-width: 170mm;
  }

  .print-title {
    text-align: center;
    font-weight: 800;
    font-size: 18pt;
    margin: 0 0 6px;
    color: var(--ct-title);
  }
  .print-banner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 8px;
  }
  .print-banner span {
    border: 2px solid var(--ct-border);
    background: var(--ct-banner);
    color: var(--ct-banner-ink);
    text-align: center;
    font-weight: 900;
    font-size: 18pt;
    padding: 4px 0;
    border-radius: 4px;
  }
  .print-grid { display: grid; gap: 4px; container-type: inline-size; }
  /* One cell is (100cqw - gaps)/n wide, so text can be sized as a share of the
     cell instead of a fixed point size that leaves big cells looking empty.
     --fit is how much of the cell height the text may use; long words get less. */
  .print-grid.g3 { --cell: 32.5cqw; }
  .print-grid.g4 { --cell: 24.4cqw; }
  .print-grid.g5 { --cell: 19.4cqw; }
  .print-cell {
    border: 1.5px solid #333;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
    font-weight: 700;
    font-size: 15pt;
    line-height: 1.15;
    overflow-wrap: break-word;
    overflow: hidden;
  }
  .print-foot {
    text-align: center;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: .04em;
    color: #b3b3b3;
    margin-top: 8px;
  }
  .print-cell.free { font-weight: 900; background: var(--ct-free); color: var(--navy); }
  .print-cell .star { font-size: 26pt; line-height: 1; display: block; }
  .print-cell .lbl { font-size: 8pt; letter-spacing: 1px; }

  /* Cell text scales with grid size so numbers/words aren't tiny
     (emoji picture cells keep their own big sizing, excluded here). */
  .print-grid.g5:not(.emoji-card) .print-cell:not([data-fit]) { font-size: 15pt; }
  .print-grid.g4:not(.emoji-card) .print-cell:not([data-fit]) { font-size: 19pt; }
  .print-grid.g3:not(.emoji-card) .print-cell:not([data-fit]) { font-size: 24pt; }

  /* emoji picture cards print bigger */
  #print-area.emoji-mode .print-cell:not([data-fit]) { font-size: 50pt; }

  /* Fill the cell: --fit is measured per cell in app.js from the real width of
     the longest word, so a "12" prints big while "Gingerbread house" still fits
     and nothing is ever broken mid-word. Anything that cannot do container units
     keeps the point sizes above. */
  .print-cell[data-fit] { font-size: calc(var(--cell, 20cqw) * var(--fit, .34)); }
  #print-area.emoji-mode .print-cell[data-fit] { font-size: calc(var(--cell, 20cqw) * .60); }
  #print-area.emoji-mode .print-cell.free[data-fit] { font-size: calc(var(--cell, 20cqw) * .34); }

  /* ---------- Cards per page ---------- */
  /* 1 per page: each card fills the sheet */
  #print-area.pp-1 .print-card {
    page-break-after: always;
    break-after: page;
    max-width: 175mm;
  }
  #print-area.pp-1 .print-card:last-of-type { page-break-after: auto; break-after: auto; }
  /* one big card per sheet: use the space, scale text way up */
  /* text sizing is cell-relative (see .print-cell[data-fit]); these stay only for
     browsers that cannot do container units */
  #print-area.pp-1 .print-grid.g5:not(.emoji-card) .print-cell:not([data-fit]) { font-size: 24pt; }
  #print-area.pp-1 .print-grid.g4:not(.emoji-card) .print-cell:not([data-fit]) { font-size: 32pt; }
  #print-area.pp-1 .print-grid.g3:not(.emoji-card) .print-cell:not([data-fit]) { font-size: 44pt; }
  #print-area.pp-1 .print-cell .star { font-size: 40pt; }

  /* 2 per page (default): break after every 2nd card */
  #print-area.pp-2 .print-card { max-width: 170mm; }
  #print-area.pp-2 .print-card:nth-of-type(2n) { page-break-after: always; break-after: page; }
  #print-area.pp-2 .print-card:last-of-type { page-break-after: auto; break-after: auto; }

  /* 4 per page: 2x2 grid of smaller cards */
  #print-area.pp-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8mm;
  }
  #print-area.pp-4 .print-card {
    max-width: none;
    margin: 0;
    padding: 8px;
  }
  #print-area.pp-4 .print-card:nth-of-type(4n) { page-break-after: always; break-after: page; }
  #print-area.pp-4 .print-card:last-of-type { page-break-after: auto; break-after: auto; }
  #print-area.pp-4 .print-title { font-size: 12pt; margin-bottom: 3px; }
  #print-area.pp-4 .print-banner span { font-size: 12pt; padding: 2px 0; }
  #print-area.pp-4 .print-cell { padding: 2px; }
  #print-area.pp-4 .print-grid.g5:not(.emoji-card) .print-cell:not([data-fit]) { font-size: 9pt; }
  #print-area.pp-4 .print-grid.g4:not(.emoji-card) .print-cell:not([data-fit]) { font-size: 11pt; }
  #print-area.pp-4 .print-grid.g3:not(.emoji-card) .print-cell:not([data-fit]) { font-size: 14pt; }
  #print-area.pp-4 .print-cell .star { font-size: 14pt; }
  #print-area.pp-4.emoji-mode .print-cell:not([data-fit]) { font-size: 30pt; }

  /* ---------- Ink-saver: strip fills & colors, thin borders ---------- */
  #print-area.ink-saver .print-card { border-width: 1.5px; }
  #print-area.ink-saver .print-title { color: #000; }
  #print-area.ink-saver .print-banner span { border-width: 1px; background: none; color: #000; }
  #print-area.ink-saver .print-cell { border-width: 1px; background: none; color: #000; }

  /* ---------- Master call sheet ---------- */
  .print-callsheet { max-width: 175mm; margin: 0 auto; }
  .callsheet-title {
    text-align: center;
    font-weight: 800;
    font-size: 18pt;
    margin: 0 0 12px;
    color: #000;
  }
  .callsheet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }
  .callsheet-cell {
    border: 1px solid #000;
    border-radius: 4px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11pt;
    font-weight: 700;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .callsheet-cell .cs-box { font-size: 13pt; }
  #print-area.callsheet-mode.emoji-mode .callsheet-cell .cs-item { font-size: 20pt; }

  /* ---------- Printable markers / chips ---------- */
  .print-markers { max-width: 180mm; margin: 0 auto; }
  .markers-title {
    text-align: center; font-weight: 800; font-size: 16pt; margin: 0 0 10px; color: #000;
  }
  .markers-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4mm; justify-items: center;
  }
  .marker-chip {
    width: 20mm; height: 20mm; border: 1.5px solid #000; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13pt; font-weight: 800; color: #000;
    page-break-inside: avoid; break-inside: avoid;
  }

  /* ---------- Printable winning patterns ---------- */
  .print-patterns { max-width: 180mm; margin: 0 auto; }
  .patterns-title {
    text-align: center; font-weight: 800; font-size: 16pt; margin: 0 0 12px; color: #000;
  }
  .patterns-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8mm;
  }
  .pattern-card { text-align: center; page-break-inside: avoid; break-inside: avoid; }
  .pattern-mini {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    width: 40mm; margin: 0 auto 5px; border: 1.5px solid #000;
  }
  .pmini-cell { height: 7.5mm; border: 0.5px solid #999; background: #fff; }
  .pmini-cell.on { background: #000; }
  .pattern-name { font-weight: 800; font-size: 12pt; color: #000; }
  .pattern-note { font-size: 9pt; color: #333; margin-top: 2px; }
}

@media (max-width: 480px) {
  .segmented button { padding: 8px 9px; font-size: .82rem; }
}


/* ---- picture bingo in the caller (2026-09-02) ---- */
.caller-current.is-photo{display:flex;flex-direction:column;align-items:center;gap:10px}
.caller-photo{max-width:min(58vw,340px);max-height:44vh;width:auto;height:auto;
  border-radius:12px;box-shadow:0 6px 22px rgba(0,0,0,.22)}
.caller-photo-label{font-size:clamp(18px,4vw,30px);font-weight:800;line-height:1.15;text-align:center}
.hist-chip.hist-photo{display:inline-flex;flex-direction:column;align-items:center;gap:2px;padding:4px}
.hist-chip.hist-photo img{width:38px;height:38px;object-fit:cover;border-radius:6px;display:block}
.hist-chip.hist-photo i{font-style:normal;font-size:10px;max-width:52px;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.photo-thumb .photo-label{display:block;width:100%;margin-top:4px;font:inherit;font-size:11px;
  padding:3px 6px;border:1px solid #cfd6e4;border-radius:6px;box-sizing:border-box}
.photo-thumb .photo-label:focus{outline:2px solid #1a6fe0;outline-offset:1px}
.cs-item.cs-photo{display:inline-flex;flex-direction:column;align-items:center;gap:2px}
.cs-item.cs-photo img{width:52px;height:52px;object-fit:cover;border-radius:6px}
.cs-item.cs-photo i{font-style:normal;font-size:11px}
@media print{.cs-item.cs-photo img{width:46px;height:46px}}
