/* The shared-Rally and download pages. Builds on styles.css tokens. */

.share {
  position: relative;
  z-index: 1;
  width: min(520px, 100% - 2.5rem);
  margin: 0 auto;
  padding: 7.5rem 0 4rem;
  display: grid;
  gap: 1.5rem;
}

.share h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.rally {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}

.rally__sport {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rally__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--lime);
}

.rally__pill {
  margin-left: auto;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.rally__when {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.rally__line {
  margin: 0;
  color: var(--text-secondary);
}

.rally__code {
  justify-self: start;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px dashed var(--border);
  font-weight: 800;
  letter-spacing: 0.2em;
}

.share__actions {
  display: grid;
  gap: 0.75rem;
}

.share__actions .btn {
  justify-content: center;
  text-align: center;
}

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.share__hint {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--lime);
  background: var(--surface);
}

.share__hint p {
  margin: 0;
  line-height: 1.5;
}

.share__hint-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.share__hint-actions .btn {
  justify-content: center;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  padding-inline: 0.75rem;
  cursor: pointer;
}

.share__note {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.is-hidden {
  display: none !important;
}
