/**
 * @module   public/assets/css/picker.css
 * @purpose  Styling for the game chooser (/) and the per-game scan pages (/qr/{game}). Both are
 *           PROJECTED — big type, high contrast, readable from the back of a room.
 * @layer    Presentation
 * @contract Two BEM blocks: .picker (the chooser, deliberately QR-free) and .scan (one game, one
 *           enormous code). The scan page gives the QR nearly the whole viewport on purpose —
 *           it is the only thing on it that matters.
 */

/* ══ The chooser (/) ═══════════════════════════════════════════════════════ */
.picker {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.picker__head { text-align: center; margin-bottom: 2rem; }

.picker__kicker {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b7280);
}

.picker__title {
  margin: 0.4rem 0 0;
  font-family: var(--font-headline, sans-serif);
  font-size: 2rem;
  line-height: 1.1;
}

.picker__hint {
  margin: 0.5rem 0 0;
  color: var(--color-muted-foreground, #6b7280);
}

.picker__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* The whole card is the link — a big target for a facilitator on a laptop trackpad. */
.picker__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 2.5rem 1.5rem;
  border: 2px solid var(--color-border, #d4d4d8);
  border-radius: var(--radius, 0.5rem);
  background: var(--color-card, #fff);
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.picker__card:hover,
.picker__card:focus-visible {
  border-color: var(--color-accent, #2563eb);
  transform: translateY(-2px);
}

.picker__name {
  margin: 0;
  font-family: var(--font-headline, sans-serif);
  font-size: 2rem;
  line-height: 1.1;
}

.picker__tagline {
  margin: 0.6rem 0 0;
  max-width: 22rem;
  color: var(--color-muted-foreground, #6b7280);
  line-height: var(--leading-body, 1.5);
}

.picker__cta {
  margin-top: 1.25rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent, #2563eb);
}

/* ══ One game's scan page (/qr/{game}) ═════════════════════════════════════ */
.scan {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scan__back {
  align-self: flex-start;
  font-size: 0.85rem;
  color: var(--color-muted-foreground, #6b7280);
}

.scan__title {
  margin: 1rem 0 0;
  font-family: var(--font-headline, sans-serif);
  font-size: 2.5rem;
  line-height: 1.05;
}

.scan__hint {
  margin: 0.4rem 0 1.5rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b7280);
}

/* The code is the page. Give it everything the viewport allows. */
.scan__qr {
  width: min(30rem, 82vw, 62vh);
  aspect-ratio: 1 / 1;
  padding: 1rem;
  border-radius: var(--radius, 0.5rem);
  background: #fff;                       /* always light: scanners need a white quiet zone */
  border: 1px solid var(--color-border, #d4d4d8);
}

.scan__room { display: block; margin-top: 1.5rem; }

.scan__room-label {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-foreground, #6b7280);
  margin-bottom: 0.35rem;
}

.scan__room-input {
  width: 13rem;
  padding: 0.6rem 0.7rem;
  font-family: var(--font-mono, monospace);
  font-size: 1.1rem;
  text-align: center;
  border: 1px solid var(--color-border-strong, #a1a1aa);
  border-radius: var(--radius, 0.5rem);
  background: var(--color-input, #fff);
  color: inherit;
}

.scan__url {
  margin-top: 1.25rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  word-break: break-all;
  color: var(--color-muted-foreground, #6b7280);
}

.scan__desk { margin-top: 0.75rem; font-size: 0.9rem; }

@media (min-width: 48rem) {
  .picker { padding-top: 3.5rem; }
  .picker__title { font-size: 2.75rem; }
  .picker__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .picker__name { font-size: 2.5rem; }
  .scan__title { font-size: 3.25rem; }
}
