/* Room Game Night: what the hub, the Bingo pages and the printables add to Room Trivia's site.css (copied in by
   tools/build_gamenight.py, so both sites share one look). Printing: two cards per US Letter page, or the caller
   sheet on one page; ink-friendly black on white. */

.gn .landing-top { flex-wrap: wrap; }
.gn main { min-width: 0; }
.gn .lede { font-size: 1.15rem; color: var(--paper-dim); max-width: 42em; }
.gn .crumbs { margin: 0; color: var(--muted); font-size: 0.95rem; }
.gn .crumbs a { color: var(--paper-dim); }
.gn ol.steps, .gn .bingo-page ul:not([class]), .gn ol.how { padding-left: 1.3em; }
.gn ol.steps li, .gn .bingo-page ul:not([class]) li, .gn ol.how li { margin: 6px 0; }

/* ---------- Hub ---------- */
.gn-hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); margin: 8px 0 14px; }
.games { list-style: none; padding: 0; margin: 30px 0 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.game { background: var(--night); border: 2px solid rgba(255, 246, 229, 0.14); border-radius: 18px; padding: 18px 20px 6px; display: flex; flex-direction: column; }
.game h3 { font-size: 1.8rem; margin: 2px 0 8px; }
.game p { color: var(--paper-dim); }
/* The button row sits at the bottom of the card, so buttons line up across cards; the text stays under its heading. */
.game .game-cta { margin-top: auto; padding-top: 6px; }
.game-status { display: inline-block; align-self: flex-start; margin: 0 0 4px; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.gn .game-status.live { background: var(--accent); color: var(--ink); }
.gn .game-status.soon { background: transparent; color: var(--paper); border: 2px solid var(--paper-dim); }
.soon-games { margin-top: 14px; }

/* ---------- Coming-soon game pages (/charades, /mystery, /words) ---------- */
.coming-page .game-status { margin-top: 18px; font-size: 1rem; padding: 4px 14px; }
.coming-page h1 { margin-top: 6px; }
.soon-note { font-size: 1.1rem; }
@media (max-width: 560px) {
  .coming-page .cta-row .btn { width: 100%; text-align: center; }
}

/* ---------- Bingo pages ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 6px; }
.btn.soon { background: transparent; color: var(--paper-dim); border-color: var(--paper-dim); border-style: dashed; box-shadow: none; cursor: default; }
.draft-note { display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: 10px; background: var(--lemon); color: var(--ink); font-weight: 750; }
.item-grid { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.item-grid li { display: grid; grid-template-columns: 2.2em 1fr; column-gap: 10px; align-items: start; background: var(--night); border: 2px solid rgba(255, 246, 229, 0.14); border-radius: 14px; padding: 12px 14px; }
.item-grid .emoji { grid-row: span 2; font-size: 1.7rem; line-height: 1.1; text-align: center; }
.item-grid strong { font-size: 1.08rem; }
.item-grid .fact { color: var(--paper-dim); font-size: 0.95rem; line-height: 1.35; }
.print-form { display: grid; gap: 8px; max-width: 26em; margin: 14px 0; }
.print-form.inline { grid-template-columns: auto 6em auto; align-items: center; max-width: none; justify-content: start; gap: 10px 14px; }
.print-form input[type="number"] { width: 6em; }
.print-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
@media (max-width: 560px) {
  .print-form.inline { grid-template-columns: 1fr; }
}

/* ---------- Print page: the on-screen preview ---------- */
.print-page main { max-width: none; }
.print-sheet { display: grid; gap: 22px; margin-top: 26px; }
.print-sheet:empty { display: none; }
.bcard, .callsheet {
  background: #fff; color: #111; border-radius: 12px; padding: 14px; max-width: 680px; width: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
.bcard header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.bcard-title { font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em; }
.bcard-set { font-weight: 650; font-size: 0.95rem; color: #333; }
.bcard-letters, .bcard-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.bcard-letters span { text-align: center; font-weight: 900; font-size: 1.5rem; padding: 2px 0 4px; }
.bcard-grid { list-style: none; margin: 0; padding: 0; border: 2px solid #111; }
.bcard-grid li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  min-height: 4.6em; padding: 4px 3px; border: 1px solid #111; font-size: 0.85rem; font-weight: 650; line-height: 1.15;
  overflow-wrap: anywhere;
}
.bcard-grid .e { font-size: 1.45rem; line-height: 1; }
.bcard-grid li.free { background: #ececec; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.bcard-grid li.free .e { font-size: 1.7rem; }
.bcard footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-size: 0.72rem; color: #444; }
.bcard-no { font-weight: 750; color: #111; letter-spacing: 0.04em; }
.callsheet h2 { color: #111; font-size: 1.5rem; margin: 0 0 4px; }
.callsheet p { margin: 0 0 8px; font-size: 0.85rem; color: #333; }
.callsheet ol { list-style: none; margin: 8px 0 0; padding: 0; columns: 3; column-gap: 18px; font-size: 0.85rem; }
.callsheet li { break-inside: avoid; display: flex; gap: 6px; align-items: baseline; padding: 3px 0; border-bottom: 1px solid #ddd; }
.callsheet .box { flex: none; width: 0.95em; height: 0.95em; border: 1.5px solid #111; border-radius: 2px; transform: translateY(0.12em); }
.callsheet .n { flex: none; min-width: 1.7em; color: #555; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .bcard { padding: 8px; }
  .bcard-grid li { min-height: 4em; font-size: 0.7rem; }
  .bcard-grid .e { font-size: 1.15rem; }
  .callsheet ol { columns: 2; }
}

/* ---------- Printing ---------- */
@page { size: letter portrait; margin: 0.4in; }
@media print {
  html, body { background: #fff !important; color: #111 !important; }
  body { min-height: 0; font-size: 12pt; }
  .page { max-width: none; padding: 0; margin: 0; }
  .landing-top, .site-foot, .print-controls { display: none !important; }
  .print-sheet { display: block; margin: 0; }
  body[data-print="caller"] #cards, body:not([data-print="caller"]) #caller { display: none !important; }
  body[data-print="caller"] #caller { display: block; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .bcard {
    width: 7in; height: 4.85in; max-width: none; margin: 0 auto 0.3in; padding: 0.12in 0.15in; border-radius: 0;
    display: flex; flex-direction: column; break-inside: avoid; page-break-inside: avoid; font-size: 10pt;
  }
  .bcard:nth-child(2n) { margin-bottom: 0; break-after: page; page-break-after: always; }
  .bcard:last-child { break-after: auto; page-break-after: auto; }
  .bcard header { margin-bottom: 0.03in; }
  .bcard-title { font-size: 15pt; }
  .bcard-set { font-size: 10pt; }
  .bcard-letters span { font-size: 18pt; padding: 0 0 0.03in; }
  .bcard-grid { flex: 1; grid-template-rows: repeat(5, 1fr); }
  .bcard-grid li { min-height: 0; font-size: 10pt; padding: 0.03in; }
  .bcard-grid .e { font-size: 17pt; }
  .bcard-grid li.free .e { font-size: 19pt; }
  .bcard footer { font-size: 7.5pt; margin-top: 0.04in; }

  .callsheet { width: 7.7in; max-width: none; padding: 0; border-radius: 0; font-size: 12pt; }
  .callsheet h2 { font-size: 20pt; margin-bottom: 0.08in; }
  .callsheet p { font-size: 11pt; }
  .callsheet ol { columns: 3; column-gap: 0.25in; font-size: 13pt; margin-top: 0.15in; }
  .callsheet li { padding: 0.12in 0; }
}
