body[data-welcome] {
  background:
    radial-gradient(ellipse at 100% 13%, #251644 0%, transparent 43%),
    linear-gradient(174deg, #171023, #100d1c 65%);
}

body[data-welcome] #shell {
  padding: env(safe-area-inset-top) clamp(14px, 4.6vw, 22px) calc(28px + env(safe-area-inset-bottom));
}

.welcome-page {
  --welcome-accent: #dfbfff;
  --welcome-line: #594674;
  --welcome-bright: #e5fd99;
  padding-block-start: 12px;
}

.welcome-header,
.welcome-brand,
.welcome-language,
.welcome-actions button {
  display: flex;
  align-items: center;
}

.welcome-header {
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 12px;
}

.welcome-brand {
  gap: 8px;
  min-inline-size: 0;
  color: #fbf7ff;
  font-size: 16px;
  font-weight: 780;
}

.welcome-brand span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.welcome-brand-art {
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #a66df967);
}

.welcome-language {
  justify-content: center;
  gap: 7px;
  min-block-size: 44px;
  max-inline-size: 52%;
  padding: 4px 12px;
  border: 1px solid #716086;
  border-radius: 99px;
  background: #291f3cd9;
  color: #f6edff;
  font-size: 12px;
  font-weight: 650;
}

.welcome-language span {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.welcome-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid #9776c4;
  border-radius: 23px;
  background: #241641;
  box-shadow: 0 13px 38px #08061190, 0 0 30px #a566fa30;
}

.welcome-hero::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, #ffffff19, transparent 22%, transparent 82%, #1c073829);
  box-shadow: inset 0 0 0 1px #f0ccff25;
  pointer-events: none;
  content: "";
}

.welcome-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-intro {
  padding: 23px 3px 0;
}

.welcome-intro h1 {
  display: grid;
  gap: 3px;
  color: #fcf8ff;
  line-height: 1.04;
  letter-spacing: -0.044em;
}

.welcome-intro h1 span {
  font-size: clamp(21px, 6vw, 29px);
  font-weight: 760;
}

.welcome-intro h1 strong {
  color: var(--welcome-accent);
  font-size: clamp(34px, 11.8vw, 51px);
  font-weight: 850;
  text-wrap: balance;
}

:lang(ar) .welcome-intro h1,
:lang(hi) .welcome-intro h1,
:lang(th) .welcome-intro h1 {
  line-height: 1.2;
  letter-spacing: normal;
}

.welcome-intro p {
  max-inline-size: 36ch;
  margin-block-start: 11px;
  color: #ded3ee;
  font-size: 14px;
  line-height: 1.55;
}

.welcome-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 10px;
  margin-block-start: 18px;
}

.welcome-actions button {
  gap: 8px;
  min-block-size: 51px;
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 770;
  line-height: 1.2;
}

.welcome-login {
  justify-content: space-between;
  background: linear-gradient(132deg, #eafbaf, #d6f181);
  box-shadow: inset 0 1px #f9ffd9, 0 5px 22px #d6f18126;
  color: #201b2a;
}

.welcome-register {
  justify-content: center;
  border: 1px solid #837095;
  background: #292037;
  color: #f6eeff;
}

.welcome-previews {
  margin-block-start: 24px;
}

.welcome-previews h2 {
  margin: 0 3px 10px;
  color: #f6efff;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0;
}

.welcome-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.welcome-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  min-inline-size: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--welcome-line);
  border-radius: 15px;
  background: #211a31;
  text-align: start;
}

.welcome-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.welcome-preview-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 2px 6px;
  padding: 9px 10px 10px;
}

.welcome-preview-copy strong {
  align-self: center;
  color: #f9f1ff;
  font-size: 14px;
  line-height: 1.23;
}

.welcome-preview-copy small {
  grid-column: 1 / -1;
  color: #cfc1e2;
  font-size: 11px;
  line-height: 1.42;
}

.welcome-preview-arrow {
  display: grid;
  grid-row: 1;
  grid-column: 2;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #84679d;
  border-radius: 50%;
  color: var(--welcome-bright);
}

.welcome-page button {
  transition: border-color 150ms ease, filter 150ms ease;
}

.welcome-page button:active {
  filter: brightness(0.87);
}

@media (prefers-reduced-motion: reduce) {
  .welcome-page button {
    transition: none;
  }
}
