* {
  box-sizing: border-box;
}

:root {
  --neon-pink: #ff3fa4;
  --neon-turquoise: #2de2e6;
  --neon-purple: #b967ff;
  --sun-core: #ffd166;
  --ink: #05010f;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fdf6ff;
  font-family: Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Vaporwave backdrop: sunset gradient + retro sun + horizon grid + palms.
   Fixed and decorative — layered behind all content via z-index. */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #0a0221 0%,
    #1c0b3c 28%,
    #5a1a82 48%,
    #c22e9e 68%,
    #ff6f61 84%,
    #ffb454 100%
  );
}

.sun {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(60vw, 19rem);
  height: min(60vw, 19rem);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--sun-core) 0%, var(--neon-pink) 60%, var(--neon-purple) 100%);
  box-shadow: 0 0 6rem 1rem rgba(255, 111, 97, 0.45);
  overflow: hidden;
}

.sun::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 0.35rem,
    var(--ink) 0.35rem,
    var(--ink) calc(0.35rem + var(--gap, 0.4rem))
  );
  mask-image: linear-gradient(to bottom, transparent 40%, black 55%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 40%, black 55%, black 100%);
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 68%;
  height: 32%;
  background: repeating-linear-gradient(
      to bottom,
      rgba(45, 226, 230, 0.55) 0,
      rgba(45, 226, 230, 0.55) 1px,
      transparent 1px,
      transparent 12%
    ),
    repeating-linear-gradient(
      to right,
      rgba(45, 226, 230, 0.4) 0,
      rgba(45, 226, 230, 0.4) 1px,
      transparent 1px,
      transparent 8%
    );
  transform: perspective(220px) rotateX(35deg);
  transform-origin: top;
  opacity: 0.8;
}

.palm {
  position: fixed;
  bottom: 0;
  width: clamp(8rem, 30vw, 20rem);
  aspect-ratio: 220 / 300;
  color: #1a0630;
}

.palm-left {
  left: 0;
}

.palm-right {
  right: 0;
  transform: scaleX(-1);
}

main {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.25rem;
  width: 100%;
  max-width: 26rem;
  background: rgba(5, 1, 15, 0.55);
  border-radius: 1.25rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.35);
}

h1 {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 2rem;
  color: var(--neon-turquoise);
  text-shadow: 0 0 0.4rem rgba(45, 226, 230, 0.9), 0 0 1.2rem rgba(45, 226, 230, 0.5);
}

.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.75rem;
  padding: 0.75rem 0.25rem;
  border-radius: 0.75rem;
  background: rgba(10, 2, 33, 0.45);
  border: 1px solid rgba(185, 103, 255, 0.5);
  backdrop-filter: blur(2px);
}

.value {
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-variant-numeric: tabular-nums;
  color: var(--neon-pink);
  text-shadow: 0 0 0.35rem rgba(255, 63, 164, 0.9), 0 0 1rem rgba(255, 63, 164, 0.5);
}

.label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-turquoise);
  opacity: 0.85;
  margin-top: 0.25rem;
}

#reveal-view p {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 2rem;
  color: #fdf6ff;
  text-shadow: 0 0 0.5rem rgba(255, 63, 164, 0.6);
}

#reveal-view button {
  font: inherit;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 2.25rem;
  border: 2px solid var(--neon-turquoise);
  border-radius: 999px;
  background: transparent;
  color: var(--neon-turquoise);
  cursor: pointer;
  box-shadow: 0 0 0.75rem rgba(45, 226, 230, 0.6);
  transition: background-color 0.2s, color 0.2s;
}

#reveal-view button:hover,
#reveal-view button:focus-visible {
  background: var(--neon-turquoise);
  color: var(--ink);
}
