:root {
  color-scheme: light;
  --sky: #bfe9ff;
  --sea: #8dded2;
  --deep: #142336;
  --glow: rgba(120, 210, 255, 0.6);
  --ink: #eaf7ff;
  --font-title: "filmotype-lacrosse", "Outfit", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background: #edf1f6;
  color: var(--ink);
  overflow: hidden;
  text-transform: lowercase;
  cursor: none;
}

.space {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.nebula {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(64, 124, 206, 0.65), transparent 55%),
    radial-gradient(circle at 75% 25%, rgba(45, 112, 198, 0.58), transparent 50%),
    radial-gradient(circle at 35% 75%, rgba(54, 142, 188, 0.52), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(40, 98, 176, 0.48), transparent 60%),
    radial-gradient(circle at 60% 55%, rgba(58, 118, 198, 0.4), transparent 55%),
    radial-gradient(circle at 10% 70%, rgba(46, 130, 170, 0.42), transparent 60%);
  filter: blur(8px);
  animation: drift 16s ease-in-out infinite alternate;
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: white;
  opacity: 0.8;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  animation: twinkle var(--twinkle) ease-in-out infinite;
  animation-delay: var(--delay);
}

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

.cursor-dot,
.cursor-trail {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 12px rgba(255, 194, 236, 0.8),
    0 0 18px rgba(255, 216, 107, 0.7);
  transform: translate(-100px, -100px);
  transition: transform 0.02s linear;
}

.cursor-trail {
  width: 6px;
  height: 6px;
  opacity: 0.7;
  filter: blur(0.2px);
}

.scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  text-align: center;
  transform: translateY(25px);
}

.neon-broadcast {
  position: fixed;
  left: 0;
  right: 0;
  top: 65px;
  z-index: 2;
  width: min(72vw, 460px);
  margin-inline: auto;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 14px 30px rgba(20, 40, 60, 0.22),
    0 0 26px rgba(255, 255, 255, 0.55),
    inset 0 0 18px rgba(255, 255, 255, 0.45);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.neon-broadcast--visible {
  opacity: 1;
  transform: translateY(0);
}

.neon-track {
  position: relative;
  overflow: hidden;
}

.neon-message {
  display: inline-block;
  white-space: nowrap;
  min-width: 100%;
  padding-right: 40px;
  transform: translateX(100%);
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 10px rgba(120, 255, 170, 0.9),
    0 0 18px rgba(120, 255, 170, 0.7);
  animation: marquee 15.6s linear 1;
  animation-delay: -1s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.neon-broadcast--visible .neon-message {
  animation-play-state: running;
}

.neon-broadcast::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  border: none;
  opacity: 0;
  pointer-events: none;
}

.neon-broadcast::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 24px rgba(24, 52, 120, 0.4);
  opacity: 0.7;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}

.neon-broadcast--glitch {
  animation: glitch-close 0.45s ease-out forwards;
  pointer-events: none;
}

.neon-broadcast--glitch::before,
.neon-broadcast--glitch::after {
  animation: glitch-scan 0.6s ease-out forwards;
}

.globe-wrap {
  display: grid;
  place-items: center;
  margin-top: -20px;
}

.globe {
  width: min(66.5vw, 360px);
  aspect-ratio: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.globe-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #cffffb 0%, #8ad4ff 45%, #3f7dc5 100%);
  box-shadow: 0 0 35px rgba(120, 210, 255, 0.6), inset 0 0 30px rgba(18, 40, 74, 0.6);
  animation: spin 14s linear infinite;
}

.globe-grid {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.2);
  animation: spin-reverse 10s linear infinite;
}

.globe-grid::before,
.globe-grid::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.globe-grid::after {
  inset: 30% 5%;
}

.globe-orbit {
  position: absolute;
  inset: 0;
  animation: spin 18s linear infinite;
}

.globe-ring {
  position: absolute;
  inset: 1%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  filter: blur(0.4px);
  box-shadow: 0 0 18px rgba(120, 210, 255, 0.45);
}

.globe-heart {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: "Outfit", sans-serif;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(255, 124, 208, 0.85);
}

.globe-heart::before,
.globe-artist::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.globe-heart::after {
  content: "happy valentine's day!";
  position: absolute;
  top: -42px;
  left: 50%;
  --tooltip-y: 0px;
  transform: translateX(-50%) translateY(var(--tooltip-y)) rotate(0deg);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(10px);
  animation: counterspin 18s linear infinite;
}

.globe-heart:hover::after,
.globe-heart:focus-visible::after {
  opacity: 1;
  --tooltip-y: -4px;
}

.globe-artist {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.43rem;
  color: #fff;
  text-decoration: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(120, 210, 255, 0.8);
}

.globe-artist::after {
  content: "about the creator";
  position: absolute;
  top: 24px;
  left: 50%;
  --tooltip-y: 0px;
  transform: translateX(-50%) translateY(var(--tooltip-y)) rotate(0deg);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(10px);
  animation: counterspin 18s linear infinite;
}

.globe-artist:hover::after,
.globe-artist:focus-visible::after {
  opacity: 1;
  --tooltip-y: 4px;
}

.globe-snow {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(calc(-50% - 60px));
  font-size: 1.32rem;
  color: #fff;
  text-decoration: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(120, 210, 255, 0.8);
}

.globe-snow::after {
  content: "refrigerator";
  position: absolute;
  top: -42px;
  left: 50%;
  --tooltip-y: 0px;
  transform: translateX(-50%) translateY(var(--tooltip-y)) rotate(0deg);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(10px);
  animation: counterspin 18s linear infinite;
}

.globe-snow:hover::after,
.globe-snow:focus-visible::after {
  opacity: 1;
  --tooltip-y: -4px;
}

.globe-shine {
  position: absolute;
  inset: 8% 14% 45% 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  opacity: 0.8;
  filter: blur(6px);
}

.headline {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.04em;
  color: rgba(234, 247, 255, 0.95);
  text-shadow: 0 0 18px rgba(120, 210, 255, 0.65);
  line-height: 1.05;
}

.headline-line {
  display: inline;
}

.headline-block {
  display: grid;
  gap: 2px;
  justify-items: center;
  transform: translateY(20px);
}

.slogan {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: rgba(234, 247, 255, 0.8);
  line-height: 1.1;
}

.footer {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(234, 247, 255, 0.7);
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-2%, 1.5%, 0);
  }
  100% {
    transform: translate3d(2%, -2%, 0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes counterspin {
  from {
    transform: translateX(-50%) translateY(var(--tooltip-y)) rotate(0deg);
  }
  to {
    transform: translateX(-50%) translateY(var(--tooltip-y)) rotate(-360deg);
  }
}

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

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes neon-flicker {
  0%,
  100% {
    opacity: 1;
  }
  35% {
    opacity: 0.72;
  }
  55% {
    opacity: 0.95;
  }
  72% {
    opacity: 0.6;
  }
  86% {
    opacity: 1;
  }
}

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

@keyframes glitch-close {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
  18% {
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
    filter: saturate(1.6) contrast(1.1);
  }
  25% {
    opacity: 0.9;
    transform: translateY(-2px) scale(1.01);
    filter: saturate(1.4);
  }
  40% {
    opacity: 0.95;
    transform: translateY(1px) scale(1.08);
    filter: saturate(1.9) contrast(1.25);
  }
  55% {
    opacity: 0.7;
    transform: translateY(2px) scale(0.99);
    filter: hue-rotate(15deg) saturate(1.6);
  }
  70% {
    opacity: 0.55;
    transform: translateY(-2px) scale(1.03);
    filter: hue-rotate(-18deg) saturate(1.4);
  }
  80% {
    opacity: 0.4;
    transform: translateY(-1px) scale(1.02);
    filter: hue-rotate(-20deg) saturate(1.2);
  }
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
    filter: saturate(0.6);
  }
}

@keyframes glitch-scan {
  0% {
    opacity: 0.7;
    transform: translateX(0);
  }
  35% {
    opacity: 0.95;
    transform: translateX(-6px);
  }
  65% {
    opacity: 0.5;
    transform: translateX(5px);
  }
  100% {
    opacity: 0;
    transform: translateX(-2px);
  }
}

@media (max-width: 640px) {
  .headline-line {
    display: block;
  }

  .headline {
    letter-spacing: 0.1em;
  }

  .slogan {
    font-size: 0.85rem;
    transform: translateY(15px);
  }

  .footer {
    letter-spacing: 0.12em;
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor-layer {
    display: none;
  }
}
