/* _kit/client/join.css — the join screen chrome shared by every kit game:
   screen switching, the fixed "Back to Games" / "Sign In" pills, the
   in-page alert modal, and the optional create-options panel. A game that
   needs extra setup controls (chip counts, a mode toggle) adds them in its
   own public/game.css. */

.screen { display: none; }
.screen.active { display: flex; }

/* ── Back to games home / Sign In pills ── */
.back-home-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-mid);
  animation: textPulse 2s ease-in-out infinite;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.back-home-link:hover {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
.back-home-link.profile-link { left: auto; right: 1rem; }

/* ── Optional create-game options (host-only knobs shown under the form) ── */
.create-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.create-options-eyebrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.create-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.create-option-row .stepper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.create-option-row .stepper .value {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
}
.mode-toggle { display: flex; gap: 0.6rem; margin-top: 0.2rem; }
#screen-join .mode-btn {
  flex: 1;
  padding: 0.65rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
#screen-join .mode-btn:hover { border-color: var(--border-strong); }
#screen-join .mode-btn.active {
  border-color: var(--accent);
  animation: textPulse 2s ease-in-out infinite;
  background: rgba(255, 228, 56, 0.10);
}

/* ── In-page alert modal (replaces the browser's native alert()) ── */
.alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.alert-box {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  width: 88%;
  max-width: 320px;
}
.alert-message { margin: 0 0 16px; color: var(--text); line-height: 1.4; }
.alert-ok-btn {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #111;
}
.alert-ok-btn:hover { background: var(--accent-hover); }

@media (max-width: 480px) {
  .auth-card { padding: 1.75rem 1.25rem; }
}

@keyframes textPulse {
  0%, 100% { color: var(--text-mid); }
  50% { color: var(--text); }
}
[data-theme="dark"] .back-home-link,
[data-theme="dark"] #screen-join .mode-btn.active {
  animation: none;
  color: var(--accent);
}
