* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #eeeeee;
  font-family: "Courier New", monospace;
  padding: 20px;
  overflow: hidden;
  background: #0d0d0d;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: -4;
  transition: opacity 1s ease;
}

.bg-video.active {
  opacity: 1;
}

.dark-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: -3;
  transition: background 1s ease;
}

.dark-overlay.active {
  background: rgba(0, 0, 0, 0.55);
}

.flash-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}

.flash-overlay.active {
  animation: blackoutFlash 0.55s ease;
}

@keyframes blackoutFlash {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.star-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.card {
  position: relative;
  z-index: 10;
  width: min(90%, 420px);
  padding: 32px;
  border: 1px solid #333;
  border-radius: 18px;
  background: rgba(21, 21, 21, 0.88);
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.04);
  transition:
    background 0.5s ease,
    backdrop-filter 0.5s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

body.rain-mode .card {
  background: rgba(10, 10, 10, 0.68);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 50px rgba(255, 255, 255, 0.08),
    0 0 90px rgba(255, 216, 77, 0.08);
}

.card.drop-hit {
  animation: cardHit 0.45s ease;
}

@keyframes cardHit {
  0% {
    transform: scale(1) rotate(0deg);
  }

  20% {
    transform: scale(1.04) rotate(-1deg);
  }

  45% {
    transform: scale(0.98) rotate(1deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.pfp-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 18px;
  cursor: pointer;
  border-radius: 50%;
}

.pfp {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #eeeeee;
  transition:
    transform 0.4s ease,
    filter 0.4s ease,
    border 0.4s ease,
    box-shadow 0.4s ease;
}

.disc-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: #050505;
  border: 2px solid #eeeeee;
  transition: transform 0.35s ease;
  pointer-events: none;
}

.pfp-wrap.turntable .pfp {
  animation: spinDisc 1.05s linear infinite;
  border: 4px solid #eeeeee;
  filter: contrast(1.2) saturate(0.8) brightness(0.75);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.28),
    0 0 50px rgba(255, 216, 77, 0.16);
}

.pfp-wrap.turntable .disc-hole {
  transform: translate(-50%, -50%) scale(1);
}

@keyframes spinDisc {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

h1 {
  margin: 10px 0 6px;
  font-size: 32px;
  letter-spacing: 2px;
}

.bio {
  color: #aaa;
  margin-bottom: 6px;
}

.hint {
  color: #777;
  font-size: 13px;
  margin-bottom: 24px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links a {
  color: #eeeeee;
  text-decoration: none;
  border: 1px solid #444;
  padding: 12px;
  border-radius: 10px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.links a:hover {
  background: #eeeeee;
  color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.12);
}

.star {
  position: fixed;
  left: 0;
  top: 0;
  font-size: var(--size, 24px);
  line-height: 1;
  color: #ffd84d;
  text-shadow:
    0 0 8px rgba(255, 216, 77, 1),
    0 0 20px rgba(255, 216, 77, 0.8),
    0 0 45px rgba(255, 200, 0, 0.55);
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
  will-change: left, top, transform, opacity;
  transform:
    translate(-50%, -50%)
    scale(var(--scale, 1))
    rotate(var(--rot, 0deg));
  opacity: var(--opacity, 1);

  /* This makes them much easier to click */
  padding: 18px;
}

.shooting-star {
  filter: drop-shadow(0 0 10px rgba(255, 216, 77, 0.9));
}

.shooting-star:hover {
  filter:
    brightness(1.8)
    drop-shadow(0 0 18px rgba(255, 216, 77, 1));
}

@media (max-width: 500px) {
  .card {
    padding: 26px;
  }

  .pfp-wrap,
  .pfp {
    width: 115px;
    height: 115px;
  }

  h1 {
    font-size: 28px;
  }

  .star {
    font-size: calc(var(--size, 24px) * 0.85);
    padding: 20px;
  }
}