/* Bingo Card Generator. Made for people who have played bingo for decades and do not want to squint:
   large type, strong contrast, big buttons, and the five familiar colours of a set of bingo balls.
   One bold thing: the bingo ball on the caller. Everything else stays plain and easy to read. */
:root {
  --b: #1D5FD1;      /* B: blue */
  --i: #D62F3A;      /* I: red */
  --n: #2B3350;      /* N: the white ball, shown as slate on paper */
  --g: #11894A;      /* G: green */
  --o: #F0A20B;      /* O: amber */
  --hall: #0F2A66;   /* the deep blue of the caller's table */
  --hall-2: #17398A;
  --ink: #14203A;
  --soft: #44506A;
  --paper: #EEF2FA;
  --panel: #FFFFFF;
  --line: #C3CCE2;
  --pick: #E6EEFF;
  --dab: rgba(214, 47, 130, 0.52);
  --display: "Archivo", "Arial Black", "Segoe UI", sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 19px; line-height: 1.55; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--o); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a { color: var(--b); text-underline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* The blue band across the top */
.band {
  color: #FFFFFF;
  background:
    radial-gradient(circle at 92% -30%, rgba(240, 162, 11, 0.30) 0 170px, transparent 171px),
    radial-gradient(circle at 78% 120%, rgba(214, 47, 58, 0.30) 0 130px, transparent 131px),
    radial-gradient(circle at 101% 70%, rgba(17, 137, 74, 0.34) 0 90px, transparent 91px),
    linear-gradient(160deg, var(--hall), var(--hall-2));
}
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; line-height: 1.1; }
.brand svg { flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.nav a { color: #FFFFFF; text-decoration: none; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.35); }
.nav a:hover { border-color: #FFFFFF; }
.nav a[aria-current="page"] { background: #FFFFFF; color: var(--hall); border-color: #FFFFFF; }
.hero { padding: 22px 0 34px; max-width: 820px; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.hero p { font-size: 21px; margin: 12px 0 0; max-width: 56ch; color: #E4EAFB; }

/* Buttons: big enough to hit without aiming */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 22px;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--panel); color: var(--ink);
  font-weight: 700; font-size: 19px; line-height: 1.2; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--pick); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.go { min-height: 66px; padding: 12px 30px; border-color: #0A6A38; background: var(--g); color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 23px; box-shadow: 0 5px 0 #0A6A38; }
.btn.go:hover { background: #0E7A41; }
.btn.go:active { transform: translateY(3px); box-shadow: 0 2px 0 #0A6A38; }
.btn.small { min-height: 46px; padding: 6px 16px; font-size: 17px; }
.btn.big { min-height: 66px; padding: 12px 26px; font-size: 21px; }
.btn[aria-pressed="true"] { background: var(--hall); color: #FFFFFF; border-color: var(--hall); }

/* The maker: settings beside a real card */
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 28px; align-items: start; padding: 28px 0 10px; }
.steps { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { background: var(--panel); border: 2px solid var(--line); border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1.15; display: flex; align-items: center; gap: 12px; }
.num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--hall); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.help { margin: 0; color: var(--soft); font-size: 17.5px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; height: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; font-weight: 700; line-height: 1.3; background: var(--panel); }
.choice span small { display: block; font-weight: 400; color: var(--soft); font-size: 16px; margin-top: 2px; }
.choice input:checked + span { border: 3px solid var(--b); padding: 11px 15px; background: var(--pick); }
.choice input:focus-visible + span { outline: 4px solid var(--o); outline-offset: 3px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field input[type="text"], .field input[type="number"], .field input[type="email"], .field select, .field textarea, .text-in {
  width: 100%; border: 2px solid var(--soft); border-radius: 12px; background: #FFFFFF; padding: 12px 14px; font-size: 20px; font-weight: 400;
}
.field textarea { min-height: 190px; resize: vertical; line-height: 1.4; }
.field.wide { width: 100%; }
.field.wide > span { font-weight: 700; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.check input { width: 26px; height: 26px; accent-color: var(--b); flex: none; }
.step { display: flex; align-items: stretch; gap: 8px; }
.step input { width: 110px; text-align: center; font-size: 26px; font-weight: 700; border: 2px solid var(--soft); border-radius: 12px; padding: 6px; font-variant-numeric: tabular-nums; }
.step .btn { width: 58px; padding: 0; font-size: 28px; }
.status { margin: 0; font-weight: 700; }
.status.bad { color: #B3202A; }

.sample { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; align-items: center; min-width: 0; }
.sample > .help { text-align: center; }

/* A bingo card: on screen, on a phone, and on paper */
.bcard { --w: 420px; width: min(var(--w), 100%); font-size: calc(min(var(--w), 100%) / 11); container-type: inline-size; background: #FFFFFF; color: #000000; border: 3px solid var(--ink); border-radius: 14px; padding: 2.4cqw 2.4cqw 1.6cqw; }
.bcard-title { font-family: var(--display); font-weight: 800; font-size: 6cqw; line-height: 1.15; text-align: center; margin: 0 0 1.6cqw; overflow-wrap: anywhere; }
.bcard-grid { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); border: 0.5cqw solid var(--ink); background: var(--ink); gap: 0.5cqw; }
.bcard-grid > * { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; text-align: center; min-width: 0; }
.bhead { font-family: var(--display); font-weight: 900; font-size: 11cqw; color: #FFFFFF; aspect-ratio: 5 / 3.4 !important; }
.bhead.c0 { background: var(--b); } .bhead.c1 { background: var(--i); } .bhead.c2 { background: var(--n); } .bhead.c3 { background: var(--g); } .bhead.c4 { background: var(--o); color: var(--ink); }
.cell { position: relative; background: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 9.5cqw; line-height: 1; padding: 0; border: 0; color: #000000; font-variant-numeric: tabular-nums; }
.cell.word { font-family: var(--body); font-weight: 700; font-size: calc(3.5cqw * var(--k, 1)); line-height: 1.12; padding: 0.6cqw; overflow-wrap: anywhere; hyphens: auto; }
.cell.word.long { font-size: calc(2.9cqw * var(--k, 1)); }
/* a long single word is set smaller so it stays in one piece instead of breaking mid-word */
.cell.word.w1 { font-size: calc(2.8cqw * var(--k, 1)); } .cell.word.w2 { font-size: calc(2.35cqw * var(--k, 1)); } .cell.word.w3 { font-size: calc(2cqw * var(--k, 1)); }
/* a square with a picture: the picture on top, the word small underneath */
.cell.word.pic { flex-direction: column-reverse; justify-content: space-evenly; padding: 0.5cqw; font-size: calc(2.5cqw * var(--k, 1)); line-height: 1.05; }
.cell.word.pic.w2 { font-size: calc(2.15cqw * var(--k, 1)); } .cell.word.pic.w3 { font-size: calc(1.85cqw * var(--k, 1)); }
.cell.pic img { display: block; flex: none; width: 64%; aspect-ratio: 1 / 1; object-fit: contain; pointer-events: none; }
.cell.pic span { display: block; max-width: 100%; }
.bcard.bw .cell.pic img { filter: grayscale(1); }
.cell.free { font-size: calc(4.4cqw * var(--k, 1)); font-family: var(--display); font-weight: 900; color: var(--i); letter-spacing: 0.02em; }
.cell.free.long { font-size: calc(3cqw * var(--k, 1)); line-height: 1.1; padding: 0.8cqw; overflow-wrap: anywhere; letter-spacing: 0; }
/* smaller cards have no room for five letters, so BINGO runs across the top in one piece */
.bbanner { grid-column: 1 / -1; aspect-ratio: auto !important; padding: 1.6cqw 0; background: var(--hall); color: #FFFFFF; font-family: var(--display); font-weight: 900; font-size: 9cqw; line-height: 1.15; letter-spacing: 0.3em; text-indent: 0.3em; }
button.cell { cursor: pointer; }
.cell.hit::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: var(--dab); animation: dab 160ms ease-out; }
.cell.called { background: #FFF3C9; }
@keyframes dab { from { transform: scale(1.4); opacity: 0; } }
.bcard-foot { display: flex; justify-content: space-between; gap: 2cqw; margin-top: 1.4cqw; font-size: 2.9cqw; font-weight: 700; color: #1E2940; }
.bcard.bw .bhead, .bcard.bw .bbanner { background: #FFFFFF !important; color: #000000 !important; }
.bcard.blank .bcard-foot { justify-content: center; }
.bcard.bw .cell.free { color: #000000; }

/* The caller's table */
.stage { background: linear-gradient(160deg, var(--hall), var(--hall-2)); color: #FFFFFF; border-radius: 22px; padding: 26px; margin: 26px 0 0; display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr); gap: 26px; align-items: center; }
.now { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.ball {
  --c: #5B6B95; width: min(300px, 72vw); aspect-ratio: 1 / 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.75) 0 6%, transparent 30%), radial-gradient(circle at 50% 50%, var(--c) 0 62%, color-mix(in srgb, var(--c) 62%, #000000) 100%);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.8);
}
.ball .face { width: 62%; aspect-ratio: 1 / 1; border-radius: 50%; background: #FFFFFF; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; line-height: 0.95; box-shadow: inset 0 0 0 5px rgba(20, 32, 58, 0.14); text-align: center; padding: 6%; }
.ball .face b { font-size: clamp(26px, 5vw, 40px); }
.ball .face span { font-size: clamp(56px, 11vw, 96px); font-variant-numeric: tabular-nums; }
.ball.word .face { width: 80%; } .ball.word .face span { font-size: clamp(22px, 4.2vw, 36px); line-height: 1.1; overflow-wrap: anywhere; }
.ball.pic .face { width: 84%; padding: 4%; } .ball .face img { width: 56%; aspect-ratio: 1 / 1; object-fit: contain; } .ball.pic .face span { font-size: clamp(18px, 3.2vw, 28px); }
.ball.empty .face span { font-size: clamp(20px, 3vw, 26px); line-height: 1.2; font-family: var(--body); font-weight: 700; }
.ball.pop { animation: pop 520ms cubic-bezier(.2, 1.3, .3, 1); }
@keyframes pop { 0% { transform: translateY(-46px) scale(0.6) rotate(-40deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ball.c0 { --c: var(--b); } .ball.c1 { --c: var(--i); } .ball.c2 { --c: #D9DEEC; } .ball.c3 { --c: var(--g); } .ball.c4 { --c: var(--o); } .ball.cw { --c: #7A4FD0; }
.count { margin: 0; font-size: 21px; font-weight: 700; }
.last { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 54px; list-style: none; margin: 0; padding: 0; }
.last li { min-width: 54px; height: 54px; padding: 0 10px; border-radius: 27px; background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.4); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 19px; }
.stage .btn.go { background: var(--o); color: var(--ink); border-color: #A66C00; box-shadow: 0 5px 0 #A66C00; min-height: 76px; font-size: 27px; width: min(100%, 340px); }
.stage .btn.go:hover { background: #FFB526; }
.now > .btn:not(.go) { width: min(100%, 340px); }
.countdown { margin: 0; width: min(100%, 340px); display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 19px; }
.cd-track { display: block; width: 100%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.cd-track i { display: block; height: 100%; background: var(--o); transition: width 1s linear; }
.board { display: grid; grid-template-columns: 1.15fr repeat(15, 1fr); gap: 5px; min-width: 0; }
.board > * { min-width: 0; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-family: var(--display); font-weight: 800; font-size: clamp(13px, 1.5vw, 21px); font-variant-numeric: tabular-nums; }
.board .lt { color: #FFFFFF; font-size: clamp(18px, 2.2vw, 30px); font-weight: 900; }
.board .lt.c0 { background: var(--b); } .board .lt.c1 { background: var(--i); } .board .lt.c2 { background: #FFFFFF; color: var(--ink); } .board .lt.c3 { background: var(--g); } .board .lt.c4 { background: var(--o); color: var(--ink); }
.board .sq { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.16); }
.board .sq.on { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.board .sq.newest { background: var(--o); color: var(--ink); border-color: var(--o); }
.board.words { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.board.words > * { aspect-ratio: auto; min-height: 46px; padding: 6px 10px; font-family: var(--body); font-weight: 700; font-size: 17px; text-align: center; line-height: 1.15; }
.tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; padding: 20px 0 0; }
.tools .field { font-size: 17px; }
.tools .field { min-width: 0; max-width: 100%; }
.tools .field select { padding: 10px 12px; font-size: 19px; min-width: 190px; max-width: 100%; }
.pat { display: grid; grid-template-columns: repeat(var(--n, 5), 11px); gap: 2px; padding: 5px; background: #FFFFFF; border: 2px solid var(--soft); border-radius: 8px; }
.pat i { width: 11px; height: 11px; background: var(--line); border-radius: 2px; }
.pat i.on { background: var(--i); }
.sure { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #FFF3C9; border: 2px solid var(--o); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.checker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 24px; align-items: start; margin-top: 22px; }
.verdict { font-family: var(--display); font-weight: 900; font-size: 30px; margin: 0; line-height: 1.1; }
.verdict.yes { color: var(--g); } .verdict.no { color: #B3202A; }
/* a winner: paper falls across the whole screen for a few seconds */
.confetti { position: fixed; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -24px; width: 12px; height: 18px; border-radius: 2px; animation: fall 3s linear forwards; }
@keyframes fall { to { transform: translateY(112vh) rotate(var(--turn, 360deg)); } }
.fs-exit { display: none; position: fixed; top: 14px; left: 14px; z-index: 30; width: 56px; min-height: 56px; padding: 0; border-radius: 50%; }
.stage:fullscreen, body.faux-full .stage { border-radius: 0; margin: 0; padding: 70px 30px 30px; align-content: center; overflow: auto; }
body.faux-full .stage { position: fixed; inset: 0; z-index: 20; }
.stage:fullscreen .fs-exit, body.faux-full .fs-exit { display: inline-flex; }

/* The single card a player opens on a phone or tablet */
.solo { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0; }
.solo .bcard { --w: 560px; }
.banner { margin: 0; padding: 12px 20px; border-radius: 14px; background: var(--g); color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 24px; text-align: center; }

/* Reading matter below the tools */
.guide { max-width: 800px; padding: 14px 0 0; }
.guide h2 { font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1.2; margin: 34px 0 8px; text-wrap: balance; }
.guide h3 { font-size: 20px; margin: 20px 0 4px; }
.guide p, .guide li { max-width: 68ch; }
.guide p { margin: 0 0 12px; }
.guide ol, .guide ul { margin: 0 0 12px; padding-left: 26px; }
.guide li { margin-bottom: 6px; }
.more { margin: 30px 0 0; padding: 18px 22px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; }
.more h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 21px; }
.more p { margin: 0; line-height: 1.9; }
/* The page of themes */
.hub { padding: 4px 0 0; }
.hub h2 { font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1.2; margin: 30px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 16px; background: var(--panel); border: 2px solid var(--line); border-top: 10px solid var(--b); border-radius: 14px; color: var(--ink); text-decoration: none; }
.tile:hover { background: var(--pick); }
.tile b { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.2; }
.tile span { color: var(--soft); font-size: 17px; line-height: 1.4; }
.tile.t1 { border-top-color: var(--i); } .tile.t2 { border-top-color: var(--n); } .tile.t3 { border-top-color: var(--g); } .tile.t4 { border-top-color: var(--o); }
.foot { margin: 36px 0 0; padding: 18px 0 44px; border-top: 2px solid var(--line); color: var(--soft); font-size: 16.5px; }
.foot a { color: inherit; }
.doc { max-width: 70ch; padding: 26px 0 0; }
.doc h1 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 30px 0 6px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 24px; } .doc li { margin-bottom: 6px; }
.note { color: var(--soft); font-size: 17px; margin: 0; }
.contact-form { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 580px; margin: 0 0 14px; }
.contact-form .cf-turnstile { min-height: 65px; max-width: 100%; }
.contact-form .note.bad { color: #B3202A; font-weight: 700; }
.ad { margin: 30px 0 0; text-align: center; min-width: 0; }
.ad-label { display: none; margin: 0 0 6px; font-size: 13px; color: var(--soft); }
.ad:has(ins[data-ad-status="filled"]) .ad-label { display: block; }
.ad ins[data-ad-status="unfilled"] { display: none !important; }
.toast { position: fixed; left: 50%; top: auto; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #FFFFFF; border-radius: 14px; padding: 14px 22px; font-weight: 700; font-size: 19px; z-index: 40; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity 160ms ease; text-align: center; }
.toast.show { opacity: 1; }
#printArea { display: none; }

@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  .work, .stage, .checker { grid-template-columns: minmax(0, 1fr); }
  .sample { position: static; order: 2; }
  .nav { margin-inline-start: 0; width: 100%; }
  .nav a { flex: 1 1 0; text-align: center; padding: 9px 8px; }
  .hero { padding: 14px 0 24px; } .hero p { font-size: 19px; }
  .panel { padding: 18px 16px; }
  .stage { padding: 20px 14px; margin-top: 16px; }
  .tools .field, .tools .field select, .tools .btn { width: 100%; }
  .tools .pat { display: none; }
}
@media (max-width: 700px) {
  /* on a phone the board stands up like a card: five columns, B to O */
  .board:not(.words) { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(16, auto); grid-auto-flow: column; }
  .board:not(.words) > * { aspect-ratio: 5 / 2.6; font-size: 19px; }
  .board .lt { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ball.pop, .cell.hit::after { animation: none; } .toast, .cd-track i { transition: none; } }

/* Paper */
@page { margin: 0.4in; }
@media print {
  body { background: #FFFFFF; font-size: 12pt; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block; }
  .sheet { height: 10in; display: grid; place-items: center; gap: 0.2in; break-after: page; break-inside: avoid; }
  .sheet:last-child { break-after: auto; }
  .sheet.p1 { grid-template-columns: 1fr; } .sheet.p1 .bcard { --w: 7.1in; }
  /* two cards go side by side on a sheet turned sideways; if the printer keeps the sheet upright they stack, one to a page */
  .sheet.p2 { height: auto; min-height: 7in; grid-template-columns: repeat(auto-fit, minmax(4.8in, 1fr)); } .sheet.p2 .bcard { --w: 4.75in; }
  .sheet.p4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; } .sheet.p4 .bcard { --w: 3.55in; }
  .bcard { border-radius: 0; break-inside: avoid; width: var(--w); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  /* the call sheet: everything in the game with a box to tick */
  .sheet.callsheet { display: block; height: auto; break-inside: auto; color: #000000; }
  .callsheet h1 { font-family: var(--display); font-size: 22pt; line-height: 1.15; margin: 0 0 4pt; }
  .callsheet p { margin: 0 0 12pt; font-size: 12pt; }
  .cs-grid { display: grid; grid-template-rows: repeat(15, auto); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5pt 14pt; }
  .cs-grid.words { display: block; columns: 3; column-gap: 18pt; }
  .cs-item { display: flex; align-items: center; gap: 8pt; padding: 3pt 0; font-size: 15pt; font-weight: 700; break-inside: avoid; }
  .cs-box { flex: none; width: 15pt; height: 15pt; border: 1.5pt solid #000000; }
  .callsheet .cs-foot { margin: 14pt 0 0; font-size: 10pt; }
}
