.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* extra top padding clears the fixed header overlay */
  padding: 120px 20px 80px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ---- Falling coins (decorative background) ---- */
.rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.drop {
  position: absolute;
  top: -80px;
  opacity: 0.55;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

@keyframes fall {
  0% {
    transform: translateY(-80px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.55;
  }
  90% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(85vh) rotate(360deg);
    opacity: 0;
  }
}

/* ---- Foreground content ---- */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
}

.code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.digit {
  font-family: var(--font-mono);
  font-size: 160px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  text-shadow: 0 8px 40px rgba(74, 109, 255, 0.4);
}

/* The middle "0" is a coin that flips like it's spinning in the air. */
.coin {
  display: inline-flex;
  animation: flip 2.6s ease-in-out infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 12px 30px rgba(247, 147, 26, 0.45));
}

@keyframes flip {
  0%,
  100% {
    transform: rotateY(0deg) translateY(0);
  }
  50% {
    transform: rotateY(180deg) translateY(-16px);
  }
}

.title {
  margin: 36px 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 12px;
  background: var(--interactive);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  background: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 212, 255, 0.35);
}

@media (max-width: 600px) {
  .digit {
    font-size: 96px;
  }

  .coin > :global(div) {
    width: 88px !important;
    height: 88px !important;
    font-size: 40px !important;
  }

  .title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drop,
  .coin {
    animation: none;
  }
}
