:root {
  --bg0: #06101f;
  --bg1: #0a1b36;
  --cyan: #3ee0ff;
  --blue: #3b82f6;
  --red: #ef4444;
  --green: #22c55e;
  --text: #f8fbff;
  --muted: rgba(210, 224, 242, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% -10%, #12305a 0%, var(--bg0) 55%);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 18%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 22% 72%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 36% 28%, rgba(180, 230, 255, 0.8), transparent),
    radial-gradient(1px 1px at 48% 12%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 61% 64%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 74% 22%, rgba(180, 230, 255, 0.65), transparent),
    radial-gradient(1px 1px at 86% 78%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 93% 36%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 14% 90%, rgba(180, 230, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 70% 90%, rgba(255, 255, 255, 0.4), transparent);
  animation: twinkle 6s ease-in-out infinite;
}

.glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.16;
}

.glow-a {
  left: -80px;
  top: 18%;
  background: #1d4ed8;
}

.glow-b {
  right: -90px;
  bottom: 8%;
  background: #0891b2;
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}

.card {
  width: min(100%, 380px);
  padding: 36px 22px 26px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 48, 86, 0.96), rgba(9, 22, 44, 0.98));
  border: 1px solid rgba(140, 210, 255, 0.28);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: rise 0.4s ease both;
}

.avatar-ring {
  width: 138px;
  height: 138px;
  margin: 4px auto 22px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(180deg, #7af0ff, #1ea7ff);
  box-shadow: 0 0 22px rgba(62, 224, 255, 0.55);
  animation: pulse 2.8s ease-in-out infinite;
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e11d48 0%, #111827 48%, #22c55e 100%);
}

.initials {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 18%;
  opacity: 0;
}

.avatar-photo.is-on {
  opacity: 1;
}

h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #fff;
}

.balls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 10px;
}

.ball {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.ball.red {
  background: radial-gradient(circle at 35% 30%, #fda4af, var(--red));
}

.ball.green {
  background: radial-gradient(circle at 35% 30%, #86efac, var(--green));
}

.bag {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.kicker {
  margin: 4px 0 22px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.cta {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(90deg, #22d3ee 0%, #2563eb 100%);
  box-shadow: 0 10px 28px rgba(37, 150, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cta:active,
.cta-auto {
  transform: translateY(1px) scale(0.995);
}

.cta-icon,
.cta-arrow {
  font-size: 18px;
  line-height: 1;
}

.cta-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.countdown {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.privacy {
  display: inline-block;
  margin-top: 16px;
  color: rgba(210, 224, 242, 0.62);
  font-size: 14px;
  text-decoration: none;
}

.privacy:hover {
  color: #fff;
}

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 20px 48px;
  position: relative;
  z-index: 1;
}

.legal h1 {
  font-size: 28px;
  margin-bottom: 16px;
}

.legal p,
.legal li {
  color: rgba(236, 244, 255, 0.82);
  line-height: 1.55;
  margin-bottom: 12px;
}

.legal a {
  color: var(--cyan);
}

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--cyan);
  text-decoration: none;
}

@keyframes rise {
  from {
    opacity: 0.85;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(56, 220, 255, 0.42);
  }
  50% {
    box-shadow: 0 0 32px rgba(56, 220, 255, 0.88);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 26px;
  }

  .cta-label {
    font-size: 13px;
  }
}
