@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');

.welcome-modal[hidden] {
  display: none !important;
}

html.welcome-modal-open,
body.welcome-modal-open {
  overflow: hidden;
  height: 100%;
}

.welcome-modal {
  --wm-display: 'Syne', system-ui, sans-serif;
  --wm-body: 'Inter', system-ui, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 340;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--wm-body);
  overflow: hidden;
}

.welcome-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 3, 3, 0.48);
  backdrop-filter: blur(14px) saturate(1.05);
  cursor: pointer;
  animation: wmBackdropIn 0.45s ease both;
}

.welcome-modal__panel {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(92vh, 40rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(16, 185, 129, 0.07), transparent 55%),
    rgba(10, 10, 12, 0.88);
  box-shadow: 0 32px 80px -32px rgba(0, 0, 0, 0.85);
  animation: wmPanelIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.welcome-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  background: none;
  color: #52525b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.welcome-modal__close:hover {
  color: #d4d4d8;
  transform: rotate(90deg);
}

.welcome-modal__copy {
  padding: 1.35rem 1.35rem 0.5rem;
  text-align: center;
  animation: wmCopyIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.welcome-modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--wm-display);
  font-size: clamp(1.65rem, 4.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: #fafafa;
}

.welcome-modal__title span {
  color: #52525b;
}

.welcome-modal__lead {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
  line-height: 1.62;
  color: #a1a1aa;
}

.welcome-modal__lead strong {
  color: #e4e4e7;
  font-weight: 600;
}

.welcome-modal__sub {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  line-height: 1.58;
  color: #71717a;
}

.welcome-modal__sub strong {
  color: #d4d4d8;
  font-weight: 600;
}

.welcome-modal__twitch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0.1rem;
  color: #9146ff;
  font-weight: 600;
  white-space: nowrap;
}

.welcome-modal__twitch svg {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}

.welcome-modal__signup {
  display: inline-flex;
  align-items: center;
  min-height: 1.35em;
  font-family: var(--wm-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #34d399;
  text-decoration: none;
  outline: none;
}

.welcome-modal__signup:focus {
  outline: none;
}

.welcome-modal__signup:focus-visible {
  outline: 2px solid rgba(52, 211, 153, 0.45);
  outline-offset: 3px;
}

.welcome-modal__signup .slot-text {
  font-weight: inherit;
}

.welcome-modal__skip {
  display: inline-block;
  margin-top: 0.75rem;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  color: #52525b;
  cursor: pointer;
  transition: color 0.2s ease;
}

.welcome-modal__skip:hover {
  color: #a1a1aa;
}

.welcome-modal__mock {
  padding: 0.35rem 0.85rem 0.85rem;
  animation: wmMockIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.welcome-modal__mock .mockup-wrap {
  perspective: none;
}

.welcome-modal__mock .mockup-frame {
  transform: none !important;
  border-radius: 0 !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.85);
}

.welcome-modal__mock .mockup-wrap:hover .mockup-frame {
  transform: none !important;
}

.welcome-modal__mock .mock-screen {
  aspect-ratio: 16 / 10;
  min-height: 10.5rem;
  max-height: none;
}

.welcome-modal__mock .mock-chrome {
  padding: 8px 10px;
}

.welcome-modal .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .welcome-modal__panel {
    width: min(100%, 100%);
    max-height: min(92vh, 38rem);
  }

  .welcome-modal__copy {
    padding: 1.1rem 0.9rem 0.3rem;
  }

  .welcome-modal__mock .mock-screen {
    min-height: 8.5rem;
  }
}

@keyframes wmBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wmPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes wmCopyIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes wmMockIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}