/*
 * Start screen: the QR join code, shown on a projector.
 *
 * Designed to be legible from the back of a dark room. High contrast, one
 * focal point, and no decoration that competes with the code.
 */

.start {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 900px) {
  .start-grid {
    grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
  }
}

/*
 * The QR sits on a light panel on purpose. A QR code needs a light quiet zone
 * around it to be detected reliably, and inverting it is the single most common
 * reason a projected code fails to scan.
 */
.qr-panel {
  background: #ffffff;
  border-radius: var(--r-lg);
  padding: clamp(16px, 3vw, 32px);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.qr-code svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.start-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.start-eyebrow {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* The URL is the thing people type, so it is the largest element here. */
.start-url {
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  word-break: break-all;
}

.start-code-label {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: var(--space-2);
}

/*
 * The room code is read aloud and typed by hand, so it is large, mono, and
 * widely tracked. The alphabet excludes characters that are ambiguous at this
 * size for exactly this reason.
 */
.start-code {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--accent);
}

.start-hint {
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--text-muted);
  max-width: 46ch;
  margin-top: var(--space-2);
}

.start-foot {
  max-width: 1180px;
  margin: var(--space-12) auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.start-meta {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 0;
}

.start-present {
  margin-left: auto;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--r-md);
}

.start-present:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
