/* Poker run registration, guest riders & QR check-in (Lee, 2026-11-02) —
   styles for the bolt-on surfaces added by poker-run.js. Prefixed pqr- so
   nothing collides with the compiled bundle. Buttons and headings reuse
   the site's own classes (primary-button, secondary-button, eyebrow,
   fine-print, panel, section-heading, chip-* colors). */

.pqr-panel {
  margin-top: 28px;
}

.pqr-msg {
  background: #fdf6dd;
  border: 1px solid #e3ddcf;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
}

.pqr-block {
  border-top: 1px solid #e3ddcf;
  padding: 18px 0 6px;
  margin-top: 18px;
}

.pqr-block h3 {
  margin: 0 0 10px;
}

.pqr-form-grid {
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.pqr-field-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 10px;
}

.pqr-select,
.pqr-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfc9b8;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}

.pqr-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  cursor: pointer;
}

.pqr-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.pqr-checkpoints {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.pqr-checkpoint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #e3ddcf;
  border-radius: 12px;
  padding: 10px 12px;
}

.pqr-checkpoint-name {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  flex: 1 1 170px;
}

.pqr-checkpoint-name small {
  color: #6b675c;
}

.pqr-checkpoint-row .pqr-select {
  flex: 1 1 220px;
  width: auto;
}

.pqr-roster {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
  background: #fff;
}

.pqr-roster th,
.pqr-roster td {
  border: 1px solid #e3ddcf;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.95rem;
}

.pqr-roster th {
  background: #f6f1e3;
}

.pqr-add-form {
  display: grid;
  gap: 8px;
  max-width: 640px;
  margin-top: 14px;
}

.pqr-add-form h4 {
  margin: 0;
}

.pqr-guest-flag {
  margin-left: 8px;
  vertical-align: middle;
}

/* --- guest registration on the event card ------------------------------ */

.pqr-guest {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #e3ddcf;
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.pqr-guest h3 {
  margin: 0;
}

.pqr-guest-items {
  display: grid;
  gap: 6px;
  margin: 6px 0;
}

.pqr-item {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #e3ddcf;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}

.pqr-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.pqr-guest-msg {
  margin: 4px 0 0;
  font-weight: 600;
}

/* --- QR check-in view ---------------------------------------------------- */

.pqr-scan {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow-y: auto;
  background: var(--bg, #f7f3e8);
  padding: 22px 16px 40px;
  box-sizing: border-box;
}

.pqr-scan-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e3ddcf;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
  display: grid;
  gap: 10px;
}

.pqr-scan-title {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.15;
}

.pqr-scan-sub {
  margin: 0;
  color: #6b675c;
  font-weight: 600;
}

.pqr-scan-note {
  font-size: 1.05rem;
  line-height: 1.45;
}

.pqr-scan-form {
  display: grid;
  gap: 8px;
}

.pqr-scan-confirm {
  min-height: 52px;
  font-size: 1.05rem;
  margin-top: 8px;
}

.pqr-scan-msg {
  margin: 0;
  font-weight: 600;
  color: var(--accent-strong, #8f0f18);
}

.pqr-scan-done {
  margin-top: 10px;
  justify-self: start;
}

.pqr-result {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 10px 0 4px;
}

.pqr-chip {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  border: 8px dashed rgba(255, 255, 255, 0.75);
  color: #fff;
}

.pqr-chip.chip-red { background: #c0272d; }
.pqr-chip.chip-blue { background: #20509e; }
.pqr-chip.chip-green { background: #1e7a46; }
.pqr-chip.chip-black { background: #1c1c1e; }
.pqr-chip.chip-white { background: #f2f0e9; color: #33302a; border-color: rgba(0, 0, 0, 0.25); }

.pqr-result-color {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

/* --- printable sheets ---------------------------------------------------- */

.pqr-sheets {
  position: fixed;
  inset: 0;
  z-index: 1900;
  overflow-y: auto;
  background: #ece7d8;
  padding: 18px 14px 60px;
  box-sizing: border-box;
}

.pqr-sheets-bar {
  max-width: 760px;
  margin: 0 auto 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pqr-sheets-bar strong {
  flex: 1 1 auto;
}

.pqr-sheet {
  max-width: 760px;
  margin: 0 auto 22px;
  background: #fff;
  border-radius: 10px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.15);
  box-sizing: border-box;
}

.pqr-sheet-run {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b675c;
  margin: 0;
}

.pqr-sheet-stop {
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-strong, #8f0f18);
  margin: 8px 0 0;
}

.pqr-sheet-name {
  font-size: 3.2rem;
  line-height: 1.05;
  margin: 10px 0 4px;
}

.pqr-sheet-loc {
  font-size: 1.25rem;
  color: #454138;
  margin: 0 0 20px;
}

.pqr-sheet-qr {
  width: min(420px, 80vw);
  margin: 0 auto;
}

.pqr-sheet-qr svg {
  width: 100%;
  height: auto;
  display: block;
}

.pqr-sheet-cta {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 20px 0 6px;
}

.pqr-sheet-url {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  color: #6b675c;
  word-break: break-all;
  margin: 0;
}

.pqr-sheet-roster {
  text-align: left;
}

.pqr-sheet-roster .pqr-sheet-name {
  font-size: 2.2rem;
}

@media print {
  body.pqr-print-mode > *:not(.pqr-sheets) {
    display: none !important;
  }
  body.pqr-print-mode .pqr-sheets {
    position: static;
    overflow: visible;
    background: #fff;
    padding: 0;
  }
  body.pqr-print-mode .pqr-sheets-bar {
    display: none !important;
  }
  body.pqr-print-mode .pqr-sheet {
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    margin: 0;
    page-break-after: always;
  }
}

/* Run selector + create-a-run form (Breaks Register item 4, 2026-11-10).
   The bar carries the stable anchor #poker-run-setup. */
.pqr-runbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  border-top: 1px solid #e3ddcf;
  padding-top: 14px;
  margin-top: 18px;
}
.pqr-runbar .pqr-field-label {
  margin-top: 0;
}
.pqr-run-select {
  min-width: 280px;
  max-width: 100%;
}
.pqr-create {
  flex-basis: 100%;
}
.pqr-create h4 {
  margin: 16px 0 8px;
}
.pqr-cp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  max-width: 760px;
}
.pqr-cp-num {
  font-weight: 600;
  min-width: 52px;
}
.pqr-cp-row .pqr-input {
  flex: 1 1 180px;
}
.pqr-create .primary-button {
  margin-top: 14px;
}
