@font-face {
  font-family: "Londrina Solid";
  src: url("/preregister/assets/display.ttf?v=dffea84ca991") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f5f8ff;
  --muted: #bcc6dc;
  --faint: #8b96b0;
  --night: #0a1020;
  --glass: rgba(13, 19, 36, 0.6);
  --line: rgba(255, 255, 255, 0.1);
  --gold-1: #fff0b0;
  --gold-2: #ffbe55;
  --ember: #ff7f3f;
  --blurple: #5865f2;
  --astral: #5fe3ff;
  --leaf: #7dfc8a;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --digits: "Londrina Solid", var(--body);
  --display: var(--body);
}

html.display {
  --display: "Londrina Solid", var(--body);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

.backdrop {
  position: fixed;
  inset: -6%;
  z-index: -2;
  background: var(--night) url("/preregister/assets/backdrop.webp?v=c68a5e0a5877") center / cover no-repeat;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.2) 0%, rgba(10, 16, 32, 0.62) 46%, rgba(10, 16, 32, 0.92) 100%);
}

.hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: min(60vh, 520px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 36%, rgba(0, 0, 0, 0.55) 64%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 36%, rgba(0, 0, 0, 0.55) 64%, transparent 100%);
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 46%;
  transform-origin: 44% 46%;
  animation: drift 26s ease-in-out infinite alternate;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100% - 32px, 460px);
  margin: 0 auto;
  padding: clamp(58px, 13vh - 26px, 190px) 0 calc(36px + env(safe-area-inset-bottom));
  padding-top: clamp(58px, 13svh - 26px, 190px);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 23%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.55);
  animation: bob 6s ease-in-out infinite;
}

.logo {
  margin: 0;
}

.logo img {
  width: min(64vw, 250px);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.card,
.tile,
.steps li {
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
}

.card {
  padding: 18px 18px 20px;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: rise 0.8s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 13px 5px 11px;
  border: 1px solid rgba(125, 252, 138, 0.3);
  border-radius: 999px;
  color: #dcffe3;
  background: rgba(125, 252, 138, 0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  animation: pulse 2s ease-out infinite;
}

.headline {
  margin: 0 0 6px;
  font: 900 clamp(25px, 6.8vw, 33px) / 1.08 var(--display);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.lede {
  max-width: 40ch;
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: pretty;
}

.welcome .avatar {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  margin: 0 auto 10px;
}

.avatar img {
  width: 68px;
  height: 68px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.avatar svg {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #131a2e;
  fill: var(--leaf);
  animation: pop 0.5s 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

.avatar svg path {
  stroke: #0d2913;
}

.count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 7px;
  margin: -2px 0 6px;
}

.count svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--faint);
}

.count > span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.count strong {
  position: relative;
  font: 900 22px / 1 var(--digits);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Counting up (app.js): the number it ends at holds the width, unseen, under the running one. */
.count strong span:first-child {
  visibility: hidden;
}

.count strong span:last-child {
  position: absolute;
  inset: 0;
  text-align: start;
}

.count strong.pop {
  animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 2px 0 8px;
}

.unit {
  min-width: 0;
  padding: 9px 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.num {
  display: block;
  color: var(--gold-2);
  background: linear-gradient(180deg, var(--gold-1) 8%, var(--gold-2) 58%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font: 900 clamp(28px, 8.4vw, 42px) / 1 var(--digits);
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.num.flip {
  animation: flip 0.22s ease-out;
}

.lbl {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.launch {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.cta,
.ghost,
.store {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 18px;
  color: #fff;
  font-family: var(--body);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

.cta {
  gap: 10px;
  min-height: 58px;
  padding: 8px 18px;
  overflow: hidden;
  border: 0;
  background: linear-gradient(180deg, #7480ff 0%, var(--blurple) 55%, #4651df 100%);
  box-shadow: 0 14px 30px rgba(88, 101, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.3) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: shine 5s 1.2s ease-in-out infinite;
  pointer-events: none;
}

.cta svg {
  flex: none;
  width: 24px;
  height: 24px;
}

.cta:hover,
.store:hover,
.ghost:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.cta:active,
.store:active,
.ghost:active {
  transform: translateY(1px) scale(0.99);
}

.cta.busy {
  pointer-events: none;
  filter: saturate(0.7) brightness(0.95);
}

.cta.busy svg {
  animation: spin 0.9s linear infinite;
}

.fine {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 12.5px;
  text-wrap: pretty;
}

.actions {
  display: grid;
  gap: 10px;
}

.ghost {
  gap: 9px;
  min-height: 50px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  font-size: 15.5px;
  font-weight: 600;
}

.ghost svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.store {
  flex-direction: column;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.store small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store b {
  font-size: 16.5px;
  line-height: 1.25;
}

/* Out: the stores are what the page is for. */
.stores.main .store {
  border-color: transparent;
  color: #0d1326;
  background: linear-gradient(180deg, #ffffff, #e6ecfb);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(13, 19, 38, 0.12);
}

.stores.main .store small {
  color: #56607a;
}

.gift {
  animation: rise 0.8s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.steps {
  animation: rise 0.8s 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.section-title {
  margin: 8px 0 12px;
  font: 900 21px / 1.1 var(--display);
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 14px;
  overflow: hidden;
  border-radius: 24px;
  text-align: center;
}

.tile::before {
  content: "";
  position: absolute;
  top: -34%;
  left: -10%;
  right: -10%;
  height: 100%;
  background: radial-gradient(closest-side, var(--tint), transparent);
  opacity: 0.55;
}

.tile-costume {
  --tint: rgba(95, 227, 255, 0.6);
}

.tile-gems {
  --tint: rgba(125, 252, 138, 0.5);
}

.tile img,
.tile-glyph {
  position: relative;
  width: auto;
  max-width: 100%;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  animation: float 5s ease-in-out infinite;
}

.tile-gems img {
  height: 92px;
  margin: 14px 0 10px;
  animation-delay: -2.2s;
}

.tile-glyph {
  height: 84px;
  margin: 16px 0;
  color: var(--astral);
}

.tile b {
  position: relative;
  margin-top: 10px;
  font: 900 20px / 1.1 var(--display);
  letter-spacing: 0.01em;
}

.tile-gems b {
  font-family: var(--digits);
  font-size: 24px;
}

.tile span {
  position: relative;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.steps ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
}

.n {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #2a1803;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  font: 900 17px / 1 var(--digits);
}

.steps p {
  margin: 0;
  font-size: 14.5px;
  text-align: start;
}

.notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 190, 85, 0.38);
  border-radius: 16px;
  color: #ffe9c6;
  background: rgba(60, 38, 8, 0.72);
  font-size: 14px;
  text-align: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: rise 0.5s ease-out both;
}

.notice.ok {
  border-color: rgba(125, 252, 138, 0.32);
  color: #dcffe3;
  background: rgba(12, 46, 24, 0.72);
}

.foot {
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.foot p {
  margin: 0 0 8px;
  text-wrap: pretty;
}

.foot a,
.link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link {
  margin: 0 0 8px;
  padding: 6px 8px;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.copy {
  opacity: 0.8;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 20;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(13, 19, 36, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

:focus-visible {
  outline: 3px solid rgba(95, 227, 255, 0.85);
  outline-offset: 3px;
}

/* Letters that join are not spaced apart. */
[dir="rtl"] .pill,
[dir="rtl"] .lbl,
[dir="rtl"] .headline,
[dir="rtl"] .section-title,
[dir="rtl"] .count > span,
[dir="rtl"] .store small,
[dir="rtl"] .tile b {
  letter-spacing: 0;
}

@media (min-width: 860px) {
  .hero {
    height: min(68vh, 640px);
  }

  .page {
    width: min(100% - 48px, 480px);
    padding-top: clamp(68px, 14vh - 28px, 240px);
  }

  .app-icon {
    width: 84px;
    height: 84px;
  }

  .logo img {
    width: 300px;
  }

  .card {
    padding: 24px 26px;
  }

  .lede {
    font-size: 15px;
  }

  .count strong {
    font-size: 24px;
  }

  .unit {
    padding: 12px 4px 9px;
  }
}

/* A wide screen has room for the art beside the sign-up. */
@media (min-width: 1100px) {
  .hero {
    position: fixed;
    right: auto;
    bottom: 0;
    width: 72vw;
    height: auto;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 66%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 66%, transparent 100%);
  }

  [dir="rtl"] .hero {
    right: 0;
    left: auto;
    -webkit-mask-image: linear-gradient(to left, #000 0%, #000 66%, transparent 100%);
    mask-image: linear-gradient(to left, #000 0%, #000 66%, transparent 100%);
  }

  .page {
    margin-inline: auto clamp(40px, 7vw, 150px);
    padding-top: clamp(24px, 7vh - 28px, 110px);
  }
}

/* A short screen keeps the sign-up button in sight. */
@media (max-height: 620px) and (max-width: 859px) {
  .page {
    padding-top: 32px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
  }

  .logo img {
    width: min(56vw, 210px);
  }

  .lede {
    display: none;
  }

  .count {
    margin-top: 10px;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes bob {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

@keyframes drift {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.11);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 252, 138, 0.65);
  }

  100% {
    box-shadow: 0 0 0 9px rgba(125, 252, 138, 0);
  }
}

@keyframes shine {
  0%,
  62% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@keyframes flip {
  from {
    opacity: 0.35;
    transform: translateY(-22%);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.6);
  }

  60% {
    transform: scale(1.12);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
