@import url("https://fonts.googleapis.com/css2?family=Bangers&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg: #050308;
  --ink: #f8f3ff;
  --muted: rgba(255, 255, 255, 0.7);
  --neon: #ff1b6b;
  font-family: "Trebuchet MS", "Comic Sans MS", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #1a0927 0%, transparent 55%),
    radial-gradient(circle at 80% 0%, #031d3a 0%, transparent 45%),
    linear-gradient(135deg, #050308 0%, #020204 40%, #080408 100%);
  color: var(--ink);
  line-height: 1.6;
  padding: clamp(1.25rem, 3vh, 2.5rem) clamp(1.5rem, 4vw, 3.5rem);
  overflow-x: hidden;
  cursor: none;
}

body.gate-locked {
  overflow: hidden;
}

body.gate-locked .site-header,
body.gate-locked .stage,
body.gate-locked .site-footer {
  filter: blur(6px) saturate(0.7);
  pointer-events: none;
}

body.jumpscare-flash {
  animation: flashScreen 0.5s ease;
}

.gate-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 0, 76, 0.12), transparent 55%),
    rgba(5, 3, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: opacity 0.6s ease;
}

.gate-screen.gate-out {
  opacity: 0;
  pointer-events: none;
}

.gate-inner {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(3, 1, 6, 0.8);
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.55);
  text-align: center;
  width: min(420px, 90vw);
}

.gate-eyebrow {
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.gate-inner h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.gate-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.gate-options button {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #ff004c, #ffa700);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 0, 76, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gate-options button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gate-options button:hover:not(:disabled),
.gate-options button:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.gate-options button[data-gate-choice="yes"] {
  background: linear-gradient(120deg, #00e4ff, #31ff6b);
  box-shadow: 0 12px 28px rgba(0, 228, 255, 0.35);
}

.gate-options button[data-gate-choice="no"] {
  background: linear-gradient(120deg, #ff004c, #ff5f1b);
}

.gate-feedback {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.gate-screen.gate-success .gate-feedback {
  color: #00e4ff;
}

.gate-screen.gate-error {
  animation: gateShake 0.45s ease;
}

.gate-screen.gate-error .gate-feedback {
  color: #ff004c;
}

@keyframes gateShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  50% {
    transform: translateX(10px);
  }
  75% {
    transform: translateX(-6px);
  }
}

.jumpscare {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%)
      rgba(4, 0, 6, 0.95);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.jumpscare img {
  width: min(520px, 90vw);
  transform: scale(0.7);
  filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.85))
    hue-rotate(-30deg) saturate(1.4);
  opacity: 0.8;
}

.jumpscare.active {
  opacity: 1;
}

.jumpscare.active img {
  animation: jumpZoom 0.8s ease forwards;
}

@keyframes jumpZoom {
  0% {
    transform: scale(0.6) translateY(20px);
    opacity: 0.6;
  }
  60% {
    transform: scale(1.1) translateY(-6px);
    opacity: 1;
  }
  100% {
    transform: scale(1.3) translateY(-12px);
    opacity: 0.2;
  }
}

@keyframes flashScreen {
  0% {
    filter: none;
  }
  30% {
    filter: invert(1) saturate(3);
  }
  100% {
    filter: none;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Ctext x='10' y='80' font-size='48' fill='rgba(255,255,255,0.02)' font-family='monospace'%3EHAHA%3C/text%3E%3C/svg%3E") repeat;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: screen;
}

.site-shell {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.65'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: flicker 12s infinite linear;
  pointer-events: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 27px;
  pointer-events: none;
  transform: translate(-20%, -20%);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 60;
  color: #ff004c;
  filter: drop-shadow(0 0 6px currentColor);
  animation: cursorColor 6s steps(1) infinite;
}

.custom-cursor::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 17px solid currentColor;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.custom-cursor::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 10px;
  background: currentColor;
  top: 10px;
  left: 4px;
  transform: rotate(-28deg);
  border-radius: 2px;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.35);
}

@keyframes cursorColor {
  0%,
  19% {
    color: #ff004c;
  }
  20%,
  39% {
    color: #ffa700;
  }
  40%,
  59% {
    color: #00e4ff;
  }
  60%,
  79% {
    color: #ff00b3;
  }
  80%,
  100% {
    color: #31ff6b;
  }
}


.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  gap: 1rem;
}

.footer-copy {
  justify-self: start;
  text-align: left;
}

.site-footer .status {
  justify-self: center;
}

.site-footer .pulse {
  justify-self: end;
  text-align: right;
}

@media (max-width: 640px) {
  .site-footer {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
  }
}

.badge,
.status {
  background: rgba(255, 0, 76, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 76, 0.4);
  text-shadow: 0 0 18px rgba(255, 0, 76, 0.65);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  animation: statusGlow 2s ease-in-out infinite;
}

.status span {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(255, 0, 76, 0.8);
}

.status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle, #31ff6b 0%, #00b33f 60%, transparent 100%);
  box-shadow: 0 0 10px rgba(49, 255, 107, 0.9);
  animation: statusPulse 1.4s ease-in-out infinite;
}

@keyframes statusGlow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 0, 76, 0.5);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 0, 76, 0.9);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin: clamp(2rem, 4vw, 4rem) auto;
  align-items: center;
  width: 100%;
}

.title-stack {
  max-width: 32rem;
  text-align: center;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-align: center;
}

.logo-type {
  margin: 0 0 0.05rem;
  line-height: 1;
  display: flex;
  justify-content: center;
}

.logo-type img {
  width: clamp(260px, 38vw, 420px);
  height: auto;
  display: block;
  margin: 0 auto;
  padding: 0;
  filter: drop-shadow(0 0 18px rgba(255, 0, 82, 0.5));
  animation: float 6s ease-in-out infinite, neonPulse 2.8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes neonPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(255, 0, 82, 0.6))
      drop-shadow(0 0 6px rgba(0, 255, 195, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(255, 0, 82, 0.85))
      drop-shadow(0 0 16px rgba(0, 255, 195, 0.55));
  }
}

.fact-feed {
  position: relative;
  margin: 0.15rem auto 1.85rem;
  width: 100%;
  max-width: 32rem;
  display: flex;
  justify-content: center;
  padding: 0 3rem;
}

.fact-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 0.95rem 1.15rem 0.75rem;
  background: rgba(6, 4, 12, 0.65);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
  min-height: 11.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fact-card.visible {
  opacity: 1;
  transform: translateY(0);
}


.fact-card h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  background: linear-gradient(120deg, #ff004c, #ffa700, #00e4ff, #ff00b3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(255, 0, 76, 0.35);
}

.fact-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.fact-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 3, 8, 0.7);
  color: var(--ink);
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  cursor: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fact-arrow.left {
  left: 0.25rem;
}

.fact-arrow.right {
  right: 0.25rem;
}

.fact-feed:hover .fact-arrow,
.fact-arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.fact-arrow:hover,
.fact-arrow:focus-visible {
  border-color: rgba(255, 0, 76, 0.8);
  transform: translateY(-50%) scale(1.05);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.icon-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  background: rgba(5, 3, 8, 0.65);
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: inherit;
}

.icon-link svg {
  width: 22px;
  height: 22px;
  fill: var(--ink);
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: rgba(255, 0, 76, 0.7);
  transform: translateY(-2px);
  outline: none;
}

.mask-stack {
  position: relative;
  padding: 2rem;
  overflow: visible;
}

@media (min-width: 900px) {
  .stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .title-stack,
  .mask-stack {
    margin: 0;
    max-width: none;
  }
}

.ha-pop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.ha-pop .ha {
  position: absolute;
  font-family: "Creepster", "Bangers", "Comic Sans MS", sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.15em;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.5));
  animation: popFlash 4.5s ease-in-out infinite;
}

.ha-pop .ha:nth-child(2) {
  animation-delay: 0.3s;
}

.ha-pop .ha:nth-child(3) {
  animation-delay: 0.6s;
}

.ha-pop .ha:nth-child(4) {
  animation-delay: 0.9s;
}

.ha-pop .ha:nth-child(5) {
  animation-delay: 1.2s;
}

.ha-pop .ha:nth-child(1) {
  top: -6%;
  left: 5%;
}

.ha-pop .ha:nth-child(2) {
  top: 5%;
  right: 0;
}

.ha-pop .ha:nth-child(3) {
  bottom: 45%;
  left: -4%;
}

.ha-pop .ha:nth-child(4) {
  bottom: 5%;
  right: 2%;
}

.ha-pop .ha:nth-child(5) {
  top: 32%;
  left: 90%;
}

@keyframes popFlash {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  40% {
    opacity: 0.7;
    transform: scale(1.1) translateY(0);
  }
  70% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.6) translateY(-10px);
  }
}

.mask-glow {
  position: relative;
  width: min(420px, 80vw);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 48% 52% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  box-shadow: 0 0 120px rgba(255, 0, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mask {
  width: 80%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 45px rgba(0, 0, 0, 0.7));
  position: relative;
  z-index: 1;
}

.ha-pop .blue {
  color: #1f7dff;
}

.ha-pop .green {
  color: #05f26c;
}

.ha-pop .yellow {
  color: #ffd400;
}

.ha-pop .red {
  color: #ff004c;
}

.ha-pop .cyan {
  color: #00e4ff;
}

.tagline {
  margin-top: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

.pulse {
  color: #ff004c;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

@media (max-width: 720px) {
  body {
    padding: 1.25rem;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .cta-row {
    flex-direction: column;
  }

  .fact-feed {
    padding: 0 2rem;
  }

  .fact-arrow.left {
    left: 0.75rem;
  }

  .fact-arrow.right {
    right: 0.75rem;
  }

  .tagline {
    letter-spacing: 0.2em;
  }
}

