body {
  margin: 0;
  background-color: rgb(121, 33, 89);
  font-family: Arial, sans-serif;
}

.container {
  position: relative;
}

img {
  width: 100%;
  height: auto;
  display: block;
  transition: none;
}

/* Name (top-left) */
h1 {
  position: absolute;
  top: 20px;
  left: 20px;
  margin: 0;
  color: #872dc7; /* brighter neon purple */
  text-shadow: 0 0 8px rgba(178, 102, 255, 0.6); /* soft glow */
  opacity: 0;
  animation: fadeIn 1s forwards;
}

/* Links container */
.links {
  position: absolute;
  top: 47%;
  left: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Link styles */
.links a {
  color: #ffb76e; /* bright orange */
  text-decoration: none;
  font-size: 18px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
  text-shadow: 0 0 6px rgba(255, 183, 110, 0.4);
  transition: all 0.2s ease;
}

/* staggered animation */
.links a:nth-child(1) {
  animation-delay: 0.5s;
}
.links a:nth-child(2) {
  animation-delay: 0.8s;
}
.links a:nth-child(3) {
  animation-delay: 1.1s;
}
.links a:nth-child(4) {
  animation-delay: 1.4s;
}

/* hover effect = glow + slight movement */
.links a:hover {
  color: #ff9a2a;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(255, 154, 42, 0.7);
}

/* visited = darker but still styled */
.links a:visited {
  color: #e9821b;
}

.oneshot-text {
  text-decoration: none;
  position: absolute;
  bottom: 1px;
  right: 16px;

  font-size: 10px;
  color: rgba(236, 139, 74, 0.733);

  text-shadow: 0 0 6px rgb(255, 166, 0);

  animation:
    flicker 1.8s backwards 3s,
    idleFlicker 5s infinite 4.8s;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.refuge {
  transform-origin: bottom center;
}

.bottom-wrapper {
  position: relative;
  width: 100%;
}

/* base image (your reflection layer) */
.bottom-img.base {
  filter: brightness(0.8) blur(1.3px) saturate(1.2);
  opacity: 0.9;
  transform-origin: top center;

  /* gradient fade from top */
  -webkit-mask-image: linear-gradient(to bottom, transparent -80%, black 30%);
  mask-image: linear-gradient(to bottom, transparent -80%, black 30%);
}

/* overlay image (sits on top) */
.bottom-img.overlay {
  position: absolute;
  top: 0;
  left: 0;

  transform-origin: top center;
  filter: blur(0.8px);
  opacity: 0.35; /* super transparent */
  pointer-events: none; /* prevents weird interaction issues */
}

/* animations */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flicker {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 0.4;
  }
  10% {
    opacity: 0.1;
  }

  /* ⚡ first surge */
  15% {
    opacity: 1;
    filter: brightness(1.3);
    text-shadow: 0 0 12px rgb(255, 200, 120);
  }

  20% {
    opacity: 0.2;
    filter: none;
    text-shadow: 0 0 6px rgb(255, 166, 0);
  }

  25% {
    opacity: 0.9;
  }
  30% {
    opacity: 0.3;
  }

  /* ⚡ second smaller surge */
  35% {
    opacity: 1;
    filter: brightness(1.4);
    text-shadow: 0 0 10px rgb(255, 190, 100);
  }

  40% {
    opacity: 0.6;
    filter: none;
    text-shadow: 0 0 6px rgb(255, 166, 0);
  }

  45% {
    opacity: 1;
  }

  60% {
    opacity: 0.8;
  }
  75% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
    filter: none;
    text-shadow: 0 0 6px rgb(255, 166, 0);
  }
}

@keyframes idleFlicker {
  0%,
  100% {
    opacity: 0.7;
  }

  92% {
    opacity: 0.7;
  }
  94% {
    opacity: 0.5;
  }
  96% {
    opacity: 0.75;
  }
  98% {
    opacity: 0.6;
  }
}
