/* The "let's meet" card. */

/* The "let's meet" card: once after the first sign-in, instead of the app.
   Small and quiet: one question at a time, dots for the steps, pill buttons;
   the picked one is filled in the brand color. */
.welcome {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 400px;
  margin: 10vh auto 40px;
  padding: 22px 22px 14px;
  border: 1.5px solid var(--line);
  border-radius: 19px 14px 20px 15px;
  background: var(--surface);
  text-align: center;
}

.welcome[hidden],
.welcome [hidden] {
  display: none;
}

.welcome-dots {
  display: flex;
  gap: 2px;
}

/* A dot with room around it to tap; only the steps already seen lead back. */
.welcome-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.welcome-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  content: "";
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.welcome-dot[aria-current="step"]::before {
  background: var(--brand);
  transform: scale(1.25);
}

.welcome-dot:disabled {
  cursor: default;
}

.welcome-step {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .welcome-step {
    animation: welcome-step-in 0.28s ease-out;
  }
}

@keyframes welcome-step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.welcome-question {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.welcome-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.welcome-list {
  display: grid;
  gap: 6px;
  width: 100%;
}

.welcome-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

/* A level: a row with its emoji, and its name over a small line. */
.welcome-list .welcome-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 0;
  padding: 7px 14px;
  border-radius: 13px 10px 14px 11px;
  text-align: start;
}

.welcome-list .welcome-emoji {
  grid-row: span 2;
}

.welcome-choice:hover {
  border-color: var(--brand);
}

.welcome-choice[aria-checked="true"] {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
}

.welcome-choice:focus-visible,
.welcome-dot:focus-visible,
.welcome-start:focus-visible,
.welcome-skip:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.welcome-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.welcome-name {
  font-weight: 700;
}

.welcome-line {
  color: var(--muted);
  font-size: 0.85rem;
}

.welcome-start {
  padding: 8px 24px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--brand);
  color: var(--surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.welcome-start:hover {
  background: var(--brand-strong);
}

.welcome-skip {
  padding: 4px 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 620px) {
  .welcome {
    margin-top: 6vh;
    padding: 20px 16px 12px;
  }
}
