* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Prevents horizontal swiping on mobile */
  background-color: yellow;
}

/* Enter Gate Screen */
.enter-gate {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background-color: #000000;
  overflow-y: auto;
}

.enter-gate.is-hidden {
  display: none;
}

.fbi-logo {
  width: min(220px, 50vw);
  max-height: 28dvh;
  object-fit: contain;
  display: block;
}

.enter-btn {
  width: 100%;
  max-width: 600px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
  background-color: #ffffff;
  color: #000000;
  border: 3px solid red;
  cursor: pointer;
}

/* Full-screen background video fitted to screen without overflowing */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  object-fit: contain; /* Keeps all 6 skeletons & tree visible on narrow screens */
  z-index: 0;
  pointer-events: none;
}

.page-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px;
}

.page-content.is-locked {
  visibility: hidden;
}

.flashing-red-bold {
  color: red;
  font-weight: bold;
  animation: flash 0.5s infinite;
  text-align: center;
  font-size: 3em;
  margin: 12px 0;
}

@keyframes flash {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.gif-item {
  width: 160px;
  max-width: 45vw;
  height: auto;
  display: block;
  margin-left: auto;
}

#spinning-wow {
  position: fixed;
  top: 0;
  left: 0;
  color: red;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 32px;
  font-weight: bold;
  user-select: none;
  z-index: 9999;
  transform-origin: center center;
  animation: spin 10s linear infinite, pulse 2.5s ease-in-out infinite alternate;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  from {
    scale: 0.5;
  }
  to {
    scale: 2;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 600px) {
  .enter-btn {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .flashing-red-bold {
    font-size: 1.8em;
    padding-right: 50px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
  }

  #spinning-wow {
    top: 16px;
    right: 24px;
    font-size: 20px;
  }

  @keyframes pulse {
    from {
      scale: 0.5;
    }
    to {
      scale: 1.4;
    }
  }
}
.enter-gate {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background-color: #000000;
}

.fbi-logo {
  width: min(220px, 50vw);
  max-height: 28dvh;
  object-fit: contain;
  display: block;
}
.logo {
  font-family: "Papyrus", "Cinzel", fantasy;
  font-weight: bold;
  font-size: 1.5rem;
}