/* DM Sans, the logo's typeface, for the welcome screen only (SIL Open Font License, dist/fonts/OFL.txt). */
@font-face {
  font-family: "Peppy Display";
  src: url("/fonts/dm-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Peppy Display";
  src: url("/fonts/dm-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
/* Signed-out welcome screen on phones: dark ground, the P mark drawn huge and faint, floating money chips. */
.welcome {
  --w-ground: #0e0b1e;
  --w-ink: #ffffff;
  --w-muted: rgba(255, 255, 255, 0.6);
  --w-glass: rgba(255, 255, 255, 0.08);
  --w-edge: rgba(255, 255, 255, 0.14);
  --w-violet: #6a3df5;
  --w-violet-pressed: #4b22c9;
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 36px;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background:
    radial-gradient(120% 55% at 50% 108%, rgba(106, 61, 245, 0.32), transparent 62%),
    var(--w-ground);
  color: var(--w-ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.welcome-art {
  position: absolute;
  top: -4vh;
  left: -14vw;
  width: 120vw;
  max-width: none;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.welcome-scene {
  position: absolute;
  inset: 9vh 0 auto;
  height: 38vh;
  pointer-events: none;
}
.welcome-chip,
.welcome-coin,
.welcome-avatar {
  position: absolute;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: welcome-float 7s ease-in-out infinite;
}
.welcome-chip {
  top: 34%;
  left: 28%;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--w-glass);
  border: 1px solid var(--w-edge);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  font-variant-numeric: tabular-nums;
}
.welcome-coin {
  top: 6%;
  right: 12%;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--w-glass);
  border: 1px solid var(--w-edge);
  animation-delay: -2.4s;
}
.welcome-coin b {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #26a17b;
  font-size: 26px;
  font-weight: 700;
}
.welcome-avatar {
  top: 62%;
  left: 13%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9d63ff, #4b22c9);
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 700;
  animation-delay: -4.6s;
}
/* A small "typing" badge, like a payment request on its way. */
.welcome-avatar i {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d1934 radial-gradient(circle, #fff 1.4px, transparent 1.6px) 0 50% / 6.5px 6px repeat-x;
  background-clip: padding-box;
  border: 2px solid var(--w-ground);
}
.welcome-copy {
  position: relative;
  display: grid;
  gap: 22px;
}
.welcome-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Each currency as a small glass token with its own mark. */
.welcome-eyebrow li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font: 500 11.5px/1 "Peppy Display", "DM Sans", -apple-system, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.welcome-eyebrow svg {
  flex: none;
  display: block;
}
@media (max-width: 380px) {
  .welcome-eyebrow {
    gap: 6px;
  }
  .welcome-eyebrow li {
    gap: 5px;
    padding-right: 9px;
    letter-spacing: 0.08em;
  }
}
.welcome .welcome-copy h1 {
  margin: 0;
  color: var(--w-ink);
  font-family: "Peppy Display", "DM Sans", -apple-system, sans-serif;
  font-size: clamp(46px, 14vw, 60px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.05em;
  font-feature-settings: "kern", "ss01";
}
.welcome .welcome-copy h1 .line {
  display: block;
}
.welcome .welcome-copy h1 em {
  font-style: normal;
  padding-right: 0.04em;
  background: linear-gradient(100deg, #b38cff 0%, #d9ccff 52%, #8ee8cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.welcome-actions {
  position: relative;
  display: grid;
  gap: 6px;
}
.welcome .welcome-primary,
.welcome .welcome-secondary {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.welcome .welcome-primary {
  background: var(--w-violet);
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.welcome .welcome-primary:active {
  background: var(--w-violet-pressed);
  transform: scale(0.985);
}
.welcome .welcome-secondary {
  color: var(--w-ink);
  font-weight: 500;
}
.welcome-primary:focus-visible,
.welcome-secondary:focus-visible {
  outline: 3px solid #9d63ff;
  outline-offset: 3px;
}
@keyframes welcome-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-chip, .welcome-coin, .welcome-avatar { animation: none; }
}
