/* Corporate Bingo — memo-print design system
   paper / ink / stamp-red / highlighter-yellow. Hard edges, hard shadows, no gradients. */

:root {
  --paper: #f4f1e9;
  --paper-2: #fffdf8;
  --ink: #14161f;
  --ink-soft: #4a4d59;
  --line: #14161f;
  --yellow: #ffd84d;
  --yellow-soft: #fff3c4;
  --red: #c9312b;
  --blue: #2456d6;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "Space Grotesk", var(--sans);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { vertical-align: middle; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
mark { background: var(--yellow); padding: 0 .12em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 100;
  font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */
.topbar {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: .55rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { display: inline-flex; color: var(--ink); }
.brand-name { font-family: var(--disp); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-name sup { font-size: .55em; color: var(--red); }
.topbar-stamp {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em;
  color: var(--red); border: 2px solid var(--red); padding: 2px 7px;
  transform: rotate(-4deg); white-space: nowrap; opacity: .85;
}
.topnav { margin-left: auto; display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: .38rem .55rem; white-space: nowrap; border: 2px solid transparent;
}
.topnav a:hover { border-color: var(--ink); }
.topnav a.is-cur { background: var(--yellow); border-color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- hero ---------- */
.hero {
  border-bottom: 2px solid var(--ink);
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(20, 22, 31, .045) 31px 32px),
    var(--paper);
}
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 3.2rem 1.25rem 2.6rem; }
.kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red); margin: 0 0 .7rem;
}
.hero h1 {
  font-family: var(--disp); font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; margin: 0 0 1rem; max-width: 22ch;
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.16rem); max-width: 60ch; margin: 0 0 1.4rem; color: var(--ink); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-fineprint { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin: 0; }

/* ---------- buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--paper-2);
  border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  padding: .55rem .85rem; cursor: pointer; text-decoration: none;
  transition: transform 60ms ease, box-shadow 60ms ease, background 60ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); }
.btn-small { padding: .4rem .7rem; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.studio { background: var(--paper-2); border-bottom: 2px solid var(--ink); }
.studio-inner {
  max-width: 1180px; margin: 0 auto; padding: 1.8rem 1.25rem 2.4rem;
  display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start;
}

.controls { display: flex; flex-direction: column; gap: 1.05rem; }
.ctl-label {
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .45rem;
}
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  padding: .32rem .58rem; cursor: pointer;
}
.pill:hover { background: var(--yellow-soft); }
.pill[aria-pressed="true"] { background: var(--yellow); box-shadow: var(--shadow-sm); }

.seg { display: inline-flex; border: 2px solid var(--ink); width: max-content; }
.seg-btn {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  background: transparent; color: var(--ink); border: none; padding: .42rem .8rem; cursor: pointer;
}
.seg-btn + .seg-btn { border-left: 2px solid var(--ink); }
.seg-btn.is-on { background: var(--ink); color: var(--paper); }

input[type="text"], textarea {
  width: 100%; border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink);
  font-family: var(--sans); font-size: 14px; padding: .5rem .65rem;
}
textarea { resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
input:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; }

.check { display: inline-flex; align-items: center; gap: .45rem; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.print-box { border: 2px dashed var(--ink); padding: .8rem; background: var(--paper); }
.print-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .55rem; }
.print-row:last-of-type { margin-bottom: .3rem; }
.bulk { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.bulk select {
  font-family: var(--mono); font-size: 12.5px; border: 2px solid var(--ink);
  background: var(--paper-2); padding: .3rem .4rem;
}
.hint { font-size: 12px; color: var(--ink-soft); margin: .35rem 0 0; line-height: 1.45; }
.hint.warn { color: var(--red); font-weight: 600; }

/* ---------- board ---------- */
.boardwrap { min-width: 0; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.board-title { font-family: var(--disp); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
.board-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin-top: .15rem; }
.board-status { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }

.board {
  display: grid; gap: 2px; background: var(--ink); border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(20, 22, 31, .9);
}
.board.cols-3 { grid-template-columns: repeat(3, 1fr); }
.board.cols-4 { grid-template-columns: repeat(4, 1fr); }
.board.cols-5 { grid-template-columns: repeat(5, 1fr); }

.cell {
  position: relative; aspect-ratio: 1 / 1; border: none; cursor: pointer;
  background: var(--paper-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 4%; overflow: hidden;
  font-family: var(--sans); font-weight: 600; line-height: 1.14;
  -webkit-tap-highlight-color: transparent;
}
.board.cols-3 .cell { font-size: clamp(.72rem, 2vw, 1rem); }
.board.cols-4 .cell { font-size: clamp(.6rem, 1.35vw, .85rem); }
.board.cols-5 .cell { font-size: clamp(.55rem, 1.08vw, .76rem); }
.cell.long { font-weight: 500; }
.board.cols-5 .cell.long { font-size: clamp(.5rem, .95vw, .68rem); }
.cell:hover { background: var(--yellow-soft); }
.cell:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.cell.on { background: var(--yellow-soft); }
.cell.winl { background: var(--yellow); }
.cell.free {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: clamp(.5rem, 1vw, .72rem); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; cursor: default; line-height: 1.3;
}
.cell .joke { display: block; color: var(--yellow); font-size: .9em; margin-top: .2em; }

.cell::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 68%; aspect-ratio: 1; border-radius: 46% 54% 49% 51% / 52% 47% 53% 48%;
  border: 3px solid rgba(201, 49, 43, .9);
  transform: translate(-50%, -50%) rotate(var(--rot, -6deg)) scale(0);
  opacity: 0; pointer-events: none;
}
.cell.on::after { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot, -6deg)) scale(1); }
@keyframes stampIn {
  0% { transform: translate(-50%, -50%) rotate(var(--rot, -6deg)) scale(1.5); opacity: 0; }
  70% { transform: translate(-50%, -50%) rotate(var(--rot, -6deg)) scale(.95); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(var(--rot, -6deg)) scale(1); opacity: 1; }
}
.cell.on::after { animation: stampIn .16s ease-out; }

.board-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin: .8rem 0 0; }

.win-banner {
  margin-top: 1.1rem; border: 3px solid var(--ink); background: var(--yellow);
  box-shadow: var(--shadow); padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.win-big {
  font-family: var(--disp); font-weight: 700; font-size: 2rem; letter-spacing: -.02em;
  transform: rotate(-2deg); color: var(--red);
  border: 3px solid var(--red); padding: .1rem .6rem; display: inline-block;
}
.win-sub { font-family: var(--mono); font-size: 12.5px; font-weight: 600; flex: 1; min-width: 220px; }

/* ---------- shared sections ---------- */
.section-inner { max-width: 1180px; margin: 0 auto; padding: 2.6rem 1.25rem; }
.section-inner-narrow { max-width: 860px; }
.howto { border-bottom: 2px solid var(--ink); }
.howto h2, .packs h2, .faq h2, .extra h2 {
  font-family: var(--disp); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1.6rem;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { border: 2px solid var(--ink); background: var(--paper-2); box-shadow: var(--shadow); padding: 1.1rem 1.15rem; }
.step-num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--red); margin-bottom: .5rem; }
.step h3 { font-family: var(--disp); font-size: 1.08rem; margin: 0 0 .45rem; letter-spacing: -.01em; }
.step p { margin: 0; font-size: .93rem; color: var(--ink); }

.runbox { margin-top: 1.6rem; border: 2px solid var(--ink); background: var(--yellow-soft); padding: 1.1rem 1.25rem; }
.runbox h3 { font-family: var(--disp); margin: 0 0 .6rem; font-size: 1.1rem; }
.runbox ul { margin: 0; padding-left: 1.2rem; }
.runbox li { font-size: .93rem; margin-bottom: .4rem; }

/* packs gallery */
.packs { background: var(--paper); border-bottom: 2px solid var(--ink); }
.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pack-card {
  display: flex; flex-direction: column; gap: .5rem;
  border: 2px solid var(--ink); background: var(--paper-2); box-shadow: var(--shadow);
  padding: 1rem 1.05rem; text-decoration: none; color: var(--ink); position: relative;
  transition: transform 60ms ease, box-shadow 60ms ease;
}
.pack-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.pack-card h3 { font-family: var(--disp); font-size: 1.02rem; margin: 0; letter-spacing: -.01em; }
.pack-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin: 0; }
.pack-card ul { margin: .2rem 0 .4rem; padding: 0; list-style: none; }
.pack-card li { font-size: .85rem; padding: .22rem 0; border-top: 1px dashed rgba(20, 22, 31, .25); }
.pack-card li:first-child { border-top: none; }
.pack-link { margin-top: auto; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--blue); }
body[data-page="meeting-bingo"] .pack-card[href="/meeting-bingo/"],
body[data-page="zoom-bingo"] .pack-card[href="/zoom-bingo/"],
body[data-page="buzzword-bingo"] .pack-card[href="/buzzword-bingo/"],
body[data-page="ai-buzzword-bingo"] .pack-card[href="/ai-buzzword-bingo/"],
body[data-page="all-hands-bingo"] .pack-card[href="/all-hands-bingo/"],
body[data-page="standup-bingo"] .pack-card[href="/standup-bingo/"],
body[data-page="earnings-call-bingo"] .pack-card[href="/earnings-call-bingo/"],
body[data-page="conference-bingo"] .pack-card[href="/conference-bingo/"] {
  background: var(--yellow-soft);
}

/* page extra prose */
.extra { border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.extra .prose h2 { margin-bottom: 1rem; }
.extra .prose p { max-width: 68ch; margin: 0 0 .9rem; font-size: .97rem; }
.extra .prose ul { max-width: 68ch; margin: 0 0 1rem; padding-left: 1.3rem; }
.extra .prose li { margin-bottom: .4rem; font-size: .95rem; }
.extra .prose h3 { font-family: var(--disp); font-size: 1.15rem; margin: 1.4rem 0 .5rem; }

/* FAQ */
.faq-list details { border: 2px solid var(--ink); background: var(--paper-2); margin-bottom: .7rem; }
.faq-list summary {
  cursor: pointer; font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  padding: .75rem .95rem; list-style-position: inside;
}
.faq-list details[open] { background: var(--paper-2); box-shadow: var(--shadow-sm); }
.faq-list .faq-a { padding: 0 .95rem .9rem; font-size: .93rem; max-width: 70ch; }
.faq-list .faq-a p { margin: 0 0 .5rem; }
.faq-list summary::marker { color: var(--red); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 2.2rem 1.25rem 1.4rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 2rem;
}
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p { font-family: var(--mono); font-size: 12px; color: rgba(244, 241, 233, .75); margin: .5rem 0 0; }
.footer-h { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin-bottom: .6rem; }
.footer-col { display: flex; flex-direction: column; gap: .35rem; }
.footer-col a { color: var(--paper); text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--yellow); text-decoration: underline; }
.footer-col p { font-size: .82rem; color: rgba(244, 241, 233, .75); margin: 0 0 .5rem; }
.footer-legal {
  border-top: 1px solid rgba(244, 241, 233, .25);
  max-width: 1180px; margin: 0 auto; padding: .9rem 1.25rem 1.2rem;
  font-family: var(--mono); font-size: 11px; color: rgba(244, 241, 233, .55);
}

/* ---------- toast & confetti ---------- */
#toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12.5px;
  padding: .6rem 1rem; border: 2px solid var(--paper); box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 60;
  max-width: 88vw; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .studio-inner { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .topbar-stamp { display: none; }
}
@media (max-width: 560px) {
  .hero-inner { padding: 2.2rem 1.1rem 2rem; }
  .studio-inner { padding: 1.3rem 1.1rem 1.8rem; }
  .section-inner { padding: 2rem 1.1rem; }
  .pack-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .board-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .board { box-shadow: 4px 4px 0 rgba(20, 22, 31, .9); }
  .win-banner { gap: .7rem; }
  .win-big { font-size: 1.6rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .cell.on::after { transform: translate(-50%, -50%) rotate(var(--rot, -6deg)) scale(1); opacity: 1; animation: none; }
}

/* =========================================================
   PRINT — class-driven (body.print-mode) so it is testable on screen,
   mirrored in @media print for real Ctrl+P.
   ========================================================= */
#printArea { display: none; }
body.print-mode > *:not(#printArea) { display: none !important; }
body.print-mode #printArea { display: block !important; }
@media print {
  @page { size: auto; margin: 11mm; }
  body { background: #fff; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
}

.pcard { border: 1.6pt solid var(--ink); padding: 5mm; break-inside: avoid; background: #fff; }
.pcard-title { font-family: var(--disp); font-weight: 700; font-size: 13pt; letter-spacing: -.01em; margin: 0 0 1mm; }
.pcard-meta { font-family: var(--mono); font-size: 7pt; color: #555; margin: 0 0 3mm; }
.pgrid { display: grid; gap: 0; border-top: .8pt solid var(--ink); border-left: .8pt solid var(--ink); }
.pgrid.g3 { grid-template-columns: repeat(3, 1fr); }
.pgrid.g4 { grid-template-columns: repeat(4, 1fr); }
.pgrid.g5 { grid-template-columns: repeat(5, 1fr); }
.pcell {
  border-right: .8pt solid var(--ink); border-bottom: .8pt solid var(--ink);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.4mm; font-family: var(--sans); font-weight: 600; color: var(--ink);
}
.pgrid.g5 .pcell { font-size: 6.8pt; line-height: 1.15; }
.pgrid.g4 .pcell { font-size: 8pt; line-height: 1.15; }
.pgrid.g3 .pcell { font-size: 9.5pt; line-height: 1.15; }
.pgrid.g5 .pcell.long { font-size: 6pt; font-weight: 500; }
.pcell.pfree { background: var(--ink); color: #fff; font-family: var(--mono); font-size: 6pt; text-transform: uppercase; }
.pcard-foot { font-family: var(--mono); font-size: 6.5pt; color: #777; margin: 2.5mm 0 0; }

.ppage { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; break-after: page; }
.ppage:last-child { break-after: auto; }
.ppage.single { grid-template-columns: 1fr; }
.ppage.single .pcell { padding: 4mm; }
.ppage.single .pcard-title { font-size: 16pt; }
.ppage.single .pgrid.g5 .pcell { font-size: 10.5pt; }
.ppage.single .pgrid.g4 .pcell { font-size: 12pt; }
.ppage.single .pgrid.g3 .pcell { font-size: 14pt; }

.csheet { break-before: page; }
.csheet h2 { font-family: var(--disp); font-size: 14pt; margin: 0 0 1mm; }
.csheet .csheet-sub { font-family: var(--mono); font-size: 7.5pt; color: #555; margin: 0 0 5mm; }
.clist { columns: 3; column-gap: 8mm; margin: 0; padding: 0; list-style: none; }
.clist li {
  font-family: var(--sans); font-size: 9pt; padding: 1.6mm 0; break-inside: avoid;
  border-bottom: .4pt dotted #999; display: flex; gap: 2mm; align-items: baseline;
}
.clist .box { flex: 0 0 auto; width: 3.2mm; height: 3.2mm; border: .8pt solid var(--ink); display: inline-block; }
.print-flex { display: flex; flex-direction: column; gap: 7mm; }
