:root {
  color-scheme: dark;

  --bg: #282a36;
  --bg-dark: #191a21;
  --fg: #f8f8f2;
  --muted: #6272a4;
  --purple: #bd93f9;
  --pink: #ff79c6;
  --cyan: #8be9fd;
  --green: #50fa7b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  display: grid;
  place-items: center;
  overflow: hidden;

  background:
    radial-gradient(
      circle at center,
      rgba(189, 147, 249, 0.18),
      transparent 34rem
    ),
    var(--bg-dark);

  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Subtle central aura */
body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 0;

  width: min(72vw, 760px);
  height: min(72vw, 760px);

  transform: translate(-50%, -50%);

  background:
    radial-gradient(circle, rgba(189, 147, 249, 0.16), transparent 62%),
    radial-gradient(circle, rgba(139, 233, 253, 0.08), transparent 72%);

  filter: blur(24px);
  pointer-events: none;
}

/* Top-left online indicator */
.status-indicator {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 0.55rem;

  padding: 0.55rem 0.8rem;

  border: 1px solid rgba(80, 250, 123, 0.28);
  border-radius: 999px;

  background: rgba(30, 31, 41, 0.72);
  color: var(--fg);

  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(80, 250, 123, 0.08);

  backdrop-filter: blur(14px);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;

  border-radius: 999px;

  background: var(--green);
  box-shadow: 0 0 16px rgba(80, 250, 123, 0.95);
}

/* Background 404 text */
.ghost-word {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 0;

  transform: translate(-50%, -50%);

  width: min(86vw, 900px);

  color: rgba(248, 248, 242, 0.028);

  font-size: 18rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.78;
  text-align: left;
  text-transform: uppercase;

  white-space: normal;
  overflow-wrap: normal;

  pointer-events: none;
  user-select: none;
}

.wrap {
  position: relative;
  z-index: 1;

  text-align: center;
}

.symbol {
  position: relative;

  width: clamp(180px, 38vw, 340px);
  aspect-ratio: 1;
  margin: auto;
  padding: 0;

  display: grid;
  place-items: center;

  border-radius: 44px;
  border: 1px solid rgba(248, 248, 242, 0.16);

  background:
    linear-gradient(
      145deg,
      rgba(248, 248, 242, 0.045),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(40, 42, 54, 0.88),
      rgba(25, 26, 33, 0.9)
    );

  color: inherit;
  cursor: pointer;

  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),

    /* outer neon glow */
    -18px 18px 70px rgba(255, 121, 198, 0.22),
    18px -18px 70px rgba(139, 233, 253, 0.18),
    0 0 95px rgba(189, 147, 249, 0.20),

    /* softer large aura */
    0 0 180px rgba(189, 147, 249, 0.11),
    0 0 240px rgba(139, 233, 253, 0.06),

    /* glass depth */
    inset 0 1px 0 rgba(248, 248, 242, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    inset 0 0 42px rgba(189, 147, 249, 0.055);

  transform: rotate(45deg);

  backdrop-filter: blur(18px);

  transition:
    transform 500ms ease,
    box-shadow 500ms ease,
    border-color 500ms ease;
}

.symbol:hover,
.symbol:focus-visible {
  transform: rotate(45deg) scale(1.025);

  border-color: rgba(189, 147, 249, 0.34);
  outline: none;

  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),

    -22px 22px 90px rgba(255, 121, 198, 0.28),
    22px -22px 90px rgba(139, 233, 253, 0.22),
    0 0 130px rgba(189, 147, 249, 0.28),

    0 0 220px rgba(189, 147, 249, 0.14),
    0 0 280px rgba(139, 233, 253, 0.08),

    inset 0 1px 0 rgba(248, 248, 242, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    inset 0 0 52px rgba(189, 147, 249, 0.08);
}

.symbol::before {
  content: "";

  width: 46%;
  height: 46%;

  border: 2px solid rgba(189, 147, 249, 0.92);
  border-radius: 999px;

  background:
    radial-gradient(
      circle,
      rgba(189, 147, 249, 0.055),
      transparent 62%
    );

  box-shadow:
    0 0 26px rgba(189, 147, 249, 0.50),
    0 0 70px rgba(255, 121, 198, 0.18),
    0 0 90px rgba(139, 233, 253, 0.10),
    inset 0 0 24px rgba(189, 147, 249, 0.07);
}

.symbol::after {
  content: "";

  position: absolute;

  width: 2px;
  height: 72%;

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      var(--cyan),
      rgba(248, 248, 242, 0.78) 44%,
      var(--pink)
    );

  box-shadow:
    0 0 14px rgba(139, 233, 253, 0.50),
    0 0 22px rgba(255, 121, 198, 0.36),
    0 0 48px rgba(189, 147, 249, 0.24);
}

.symbol .shine {
  position: absolute;
  inset: 0;

  border-radius: inherit;

  background:
    linear-gradient(
      135deg,
      rgba(248, 248, 242, 0.10),
      transparent 34%,
      transparent 68%,
      rgba(139, 233, 253, 0.045)
    );

  pointer-events: none;
}

.is-launching .symbol {
  animation: rapid-spin 850ms cubic-bezier(0.55, 0.02, 0.3, 1) forwards;
}

.is-launching [data-home] {
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.is-cool .wrap {
  display: none;
}

.is-cool [data-home] {
  display: none;
}

.cool-stuff {
  position: fixed;
  inset: 0;
  z-index: 4;

  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 4rem);

  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.is-cool .cool-stuff {
  opacity: 1;
  pointer-events: auto;
}

.cool-stuff h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
}

.bubble-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  z-index: 1;

  display: inline-block;
  max-width: min(44vw, 13rem);
  padding: 0.85rem 1.05rem;

  border: 1px solid rgba(248, 248, 242, 0.14);
  border-radius: 999px;

  background: rgba(30, 31, 41, 0.72);
  color: rgba(248, 248, 242, 0.84);

  font-size: 0.92rem;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;

  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(139, 233, 253, 0.08);

  backdrop-filter: blur(14px);
  animation: drift-a 13s ease-in-out infinite alternate;
}

a.bubble {
  cursor: pointer;
}

a.bubble:hover,
a.bubble:focus-visible {
  border-color: rgba(139, 233, 253, 0.38);
  color: var(--fg);
  outline: none;
}

.bubble-one {
  left: 12%;
  top: 24%;
}

.bubble-two {
  right: 10%;
  top: 20%;
  animation-name: drift-b;
  animation-duration: 15s;
}

.bubble-three {
  left: 18%;
  bottom: 18%;
  animation-name: drift-c;
  animation-duration: 14s;
}

.bubble-four {
  right: 18%;
  bottom: 20%;
  animation-name: drift-d;
  animation-duration: 16s;
}

.bubble-five {
  left: 50%;
  top: 70%;
  animation-name: drift-e;
  animation-duration: 12s;
}

h1 {
  margin: 3rem 0 0;

  font-size: 6rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.82;

  background: linear-gradient(
    120deg,
    var(--fg),
    var(--purple),
    var(--pink),
    var(--cyan)
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  margin: 1rem 0 0;

  color: var(--muted);
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

/* Bottom-right metadata */
.corner-meta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 10;

  display: flex;
  gap: 1rem;

  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;

  opacity: 0.72;
}

@media (max-width: 700px) {
  .ghost-word {
    font-size: 8rem;
    line-height: 0.82;
  }

  .corner-meta {
    left: 1.25rem;
    right: auto;
    justify-content: flex-start;
  }

  .symbol {
    width: clamp(170px, 56vw, 260px);
  }

  .bubble {
    max-width: 10rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 3.5rem;
  }

  .bubble-one {
    left: 6%;
    top: 18%;
  }

  .bubble-two {
    right: 5%;
    top: 30%;
  }

  .bubble-three {
    left: 7%;
    bottom: 24%;
  }

  .bubble-four {
    right: 8%;
    bottom: 14%;
  }

  .bubble-five {
    left: 36%;
    top: 76%;
  }
}

@keyframes rapid-spin {
  0% {
    transform: rotate(45deg) scale(1);
  }

  72% {
    opacity: 1;
    transform: rotate(1485deg) scale(1.16);
  }

  100% {
    opacity: 0;
    transform: rotate(1845deg) scale(0.2);
  }
}

@keyframes drift-a {
  to {
    transform: translate(9vw, 7vh);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-10vw, 12vh);
  }
}

@keyframes drift-c {
  to {
    transform: translate(13vw, -10vh);
  }
}

@keyframes drift-d {
  to {
    transform: translate(-8vw, -13vh);
  }
}

@keyframes drift-e {
  to {
    transform: translate(-12vw, -8vh);
  }
}
