body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(24px);
  transform: scale(1.08); /* hides blurred edges */
  transition: opacity 1.2s ease-in, filter 1.2s ease-out, transform 1.2s ease-out;
}
.bg.ready { opacity: 1; }
.entered .bg { filter: blur(0); transform: scale(1); }

.gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  cursor: pointer;
  z-index: 5;
  transition: opacity .5s ease-out;
  animation: pulse 2.4s ease-in-out infinite;
}
.entered .gate {
  opacity: 0;
  pointer-events: none;
  animation: none;
}
@keyframes pulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1;   }
}

main {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease-in;
}
.entered main { opacity: 1; pointer-events: auto; }

.btn {
  position: relative;
  min-width: 240px;
  padding: 14px 28px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .92);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, calc(.18 + var(--m, 0) * .5));
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(calc(var(--m, 0) * -3px));
  box-shadow:
    0 4px 24px rgba(0, 0, 0, .12),
    0 0 calc(var(--m, 0) * 28px) rgba(255, 255, 255, calc(var(--m, 0) * .35));
  transition: transform .15s ease-out, border-color .25s;
  z-index: 0;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  background: rgba(255, 255, 255, .08);
  -webkit-mask-image: var(--mask, linear-gradient(transparent, transparent));
  mask-image: var(--mask, linear-gradient(transparent, transparent));
  pointer-events: none;
  z-index: -1;
}
.btn:hover {
  border-color: rgba(255, 255, 255, calc(.32 + var(--m, 0) * .5));
  transform: translateY(calc(-2px + var(--m, 0) * -3px));
}

#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(8, 12, 20, .62);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .22s ease-out;
  pointer-events: none;
}
#loader.show { opacity: 1; }
#loader span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  animation: wave 1.1s ease-in-out infinite;
}
#loader span:nth-child(2) { animation-delay: .16s; }
#loader span:nth-child(3) { animation-delay: .32s; }
@keyframes wave {
  0%, 60%, 100% { transform: translateY(0); }
  30%          { transform: translateY(-14px); }
}
