:root {
  --vptv-scale: 1;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #020203;
  color: #e6edf3;
  overflow: hidden;
  font-family: monospace;
}

.vp-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  background: #020203;
  pointer-events: none;
}

.vp-bg-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 11s ease-in-out;
  will-change: opacity;
}

.vp-bg-layer.is-visible {
  opacity: 0.8;
}

.vp-bg-motion {
  position: absolute;
  top: -16vmax;
  right: -16vmax;
  bottom: -16vmax;
  left: -16vmax;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(10px) saturate(1.25) brightness(1.25);
  transform-origin: center center;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  will-change: transform;
}

.vp-bg-layer.is-moving .vp-bg-motion {
  animation: vpSlowDrift 34s linear forwards;
}

.vp-bg-motion:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(circle at 50% 45%, transparent 0%, rgba(0,0,0,0.35) 58%, rgba(0,0,0,0.82) 100%),
    linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.48));
}

@keyframes vpSlowDrift {
  from {
    transform:
      translate3d(var(--vp-pan-x-start, 0vw), var(--vp-pan-y-start, 0vh), 0)
      rotate(var(--vp-rotate-start, 0deg))
      scale(1);
  }

  to {
    transform:
      translate3d(var(--vp-pan-x-end, 0vw), var(--vp-pan-y-end, 0vh), 0)
      rotate(var(--vp-rotate-end, 0deg))
      scale(1.24);
  }
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

.page-section {
  display: none;
}

.page-section.active-page {
  display: block;
}

.home-view {
  min-height: 100vh;
}

.signal {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 8vh;
  text-align: center;
  opacity: 0.92;
}

.vptv-logo-wrap {
  position: relative;
  width: 78%;
  max-width: 900px;
  margin: 0 auto 1.6rem auto;
  transform: scale(var(--vptv-scale));
  transform-origin: center center;
  opacity: 0;
  animation: logoSignalIn 2.7s ease forwards;
}

.vptv-logo {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  user-select: none;
  pointer-events: none;
}

.button-row {
  text-align: center;
  margin-bottom: 1.4rem;
}

.connect-button {
  display: inline-block;
  border: 1px solid rgba(230, 237, 243, 0.72);
  background: rgba(2, 2, 3, 0.38);
  color: #e6edf3;
  padding: 1rem 2.2rem;
  margin: 0.35rem;
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(255,255,255,0.14),
    inset 0 0 22px rgba(255,255,255,0.06);
  opacity: 0;
  animation: buttonFadeIn 2.2s ease forwards;
  animation-delay: 1.4s;
}

.connect-button:hover {
  background: rgba(230, 237, 243, 0.08);
}

.physics-box {
  position: relative;
  width: 72%;
  max-width: 520px;
  height: 140px;
  margin: 0 auto 1.2rem auto;
  border: 1px solid rgba(230, 237, 243, 0.42);
  background: rgba(2, 2, 3, 0.34);
  box-shadow:
    0 0 16px rgba(255,255,255,0.08),
    inset 0 0 22px rgba(255,255,255,0.04);
  overflow: hidden;
  opacity: 0;
  animation: buttonFadeIn 2.2s ease forwards;
  animation-delay: 1.85s;
  cursor: pointer;
}

.physics-box canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.about-button {
  margin-top: 0.2rem;
}

.disclaimer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 5;
  width: 92%;
  max-width: 980px;
  margin: 0 auto;
  color: rgba(230, 237, 243, 0.68);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  opacity: 0;
  animation: simpleFadeIn 2.2s ease forwards;
  animation-delay: 2.2s;
  pointer-events: none;
}

.blank-view {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  min-height: 100vh;
  box-sizing: border-box;
}

.back-button {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 4;
  border: 1px solid rgba(230, 237, 243, 0.6);
  background: rgba(2, 2, 3, 0.38);
  color: #e6edf3;
  width: 3rem;
  height: 3rem;
  font-family: monospace;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(255,255,255,0.12),
    inset 0 0 22px rgba(255,255,255,0.05);
}

.back-button:hover {
  background: rgba(230, 237, 243, 0.08);
}

.wip-text {
  position: absolute;
  top: 42%;
  left: 0;
  right: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(230, 237, 243, 0.9);
  text-shadow:
    0 0 12px rgba(255,255,255,0.24),
    0 0 44px rgba(255,255,255,0.1);
}

.wip-text span {
  display: block;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: rgba(230, 237, 243, 0.68);
}

@keyframes logoSignalIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(0.6rem);
    filter: blur(10px) contrast(1.6);
  }

  35% {
    opacity: 0.45;
    transform: scale(1.02) translateY(0);
    filter: blur(6px) contrast(1.4);
  }

  70% {
    opacity: 0.86;
    transform: scale(0.995) translateY(0);
    filter: blur(2px) contrast(1.15);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) contrast(1);
  }
}

@keyframes buttonFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes simpleFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media screen and (max-width: 700px) {
  main {
    padding: 1rem;
  }

  .signal {
    padding-top: 10vh;
  }

  .vptv-logo-wrap {
    width: 92%;
  }

  .connect-button {
    font-size: 0.9rem;
    padding: 0.85rem 1.2rem;
    letter-spacing: 0.14em;
  }

  .physics-box {
    width: 92%;
    height: 120px;
  }

  .wip-text {
    font-size: 2.4rem;
  }

  .wip-text span {
    font-size: 0.85rem;
  }

  .disclaimer {
    font-size: 0.65rem;
  }
}