/* Модалка «войдите, чтобы участвовать» — только на этой странице */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.modal-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 22px;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-btn-primary,
.modal-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.modal-btn-primary {
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.modal-btn-primary:hover {
  background: var(--brand-strong);
}
.modal-btn-secondary {
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.modal-btn-secondary:hover {
  background: var(--surface-2);
}
.modal-btn-cancel {
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}
.modal-btn-cancel:hover {
  color: var(--text);
}
