:root {
  --ink: #e8eef2;
  --ink-soft: #8a9aa6;
  --frost: #8eb0c2;
  --frost-bright: #c5d8e2;
  --accent: #7eb4d4;
  --paper: #1c1d22;
  --line: rgba(232, 238, 242, 0.14);
  --font-display: "Javanese Text", "Noto Sans Javanese", sans-serif;
  --font-body: "Outfit", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 78% 8%, rgba(53, 71, 83, 0.7) 0%, transparent 58%),
    radial-gradient(ellipse 55% 48% at 8% 55%, rgba(53, 71, 83, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 55% 95%, rgba(42, 58, 68, 0.62) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 92% 62%, rgba(68, 90, 104, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 38% 32% at 32% 22%, rgba(53, 71, 83, 0.28) 0%, transparent 52%),
    #1c1d22;
  transition: background 0.45s ease, opacity 0.45s ease;
}

.atmosphere.is-easter {
  background-color: #1c1d22;
  background-image:
    linear-gradient(rgba(12, 14, 18, 0.55), rgba(12, 14, 18, 0.72)),
    var(--egg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.atmosphere.is-easter .mist,
.atmosphere.is-easter .grain {
  opacity: 0;
}

.egg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.egg-fx.is-active {
  opacity: 1;
  visibility: visible;
}

.egg-rain,
.egg-particles {
  position: absolute;
  inset: 0;
}

.egg-drop {
  position: absolute;
  top: -12vh;
  object-fit: contain;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  animation-name: egg-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.egg-particle {
  position: absolute;
  top: -4vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 216, 226, 0.95) 0%, rgba(126, 180, 212, 0.35) 55%, transparent 70%);
  box-shadow: 0 0 8px rgba(126, 180, 212, 0.45);
  will-change: transform, opacity;
  animation-name: egg-particle-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes egg-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--spin-start)) scale(var(--drop-scale));
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(var(--drift), 115vh, 0) rotate(var(--spin-end))
      scale(var(--drop-scale));
    opacity: 0;
  }
}

@keyframes egg-particle-fall {
  0% {
    transform: translate3d(0, 0, 0) scale(0.4);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--drift), 110vh, 0) scale(1);
    opacity: 0;
  }
}

.mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  will-change: transform;
}

.mist-a {
  width: min(68vw, 500px);
  height: min(68vw, 500px);
  top: -8%;
  right: -12%;
  left: auto;
  background: #354753;
  animation: drift-a 20s ease-in-out infinite alternate;
}

.mist-b {
  width: min(82vw, 620px);
  height: min(82vw, 620px);
  bottom: -16%;
  left: -18%;
  right: auto;
  background: #2a3a44;
  animation: drift-b 24s ease-in-out infinite alternate;
}

.mist-c {
  width: min(52vw, 400px);
  height: min(52vw, 400px);
  top: 48%;
  left: 62%;
  background: #3f5864;
  opacity: 0.3;
  animation: drift-a 28s ease-in-out infinite alternate-reverse;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.domain {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.1s;
}

.brand {
  margin: 0 0 -0.12em;
  padding-top: 0.28em;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.78;
  letter-spacing: 0.28em;
  color: var(--ink);
  opacity: 0;
  animation: rise 1s ease forwards 0.25s;
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 1s ease forwards 0.4s;
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(100%, 24rem);
  margin-top: clamp(2.5rem, 8vw, 4rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
}

.social {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(232, 238, 242, 0.1);
  border-radius: 14px;
  background: rgba(232, 238, 242, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.75s ease forwards;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.social:nth-child(1) {
  animation-delay: 0.55s;
}
.social:nth-child(2) {
  animation-delay: 0.65s;
}
.social:nth-child(3) {
  animation-delay: 0.75s;
}
.social:nth-child(4) {
  animation-delay: 0.85s;
}
.social:nth-child(5) {
  animation-delay: 0.95s;
}

.social:hover,
.social:focus-visible {
  color: var(--ink);
  background: rgba(126, 180, 212, 0.12);
  border-color: rgba(126, 180, 212, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  outline: none;
}

.social:focus-visible {
  border-color: var(--accent);
}

.social-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(142, 176, 194, 0.16);
  color: var(--frost);
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.social:hover .social-icon,
.social:focus-visible .social-icon {
  color: var(--accent);
  background: rgba(126, 180, 212, 0.24);
}

.social-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.social-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.social-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.social-handle {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.social:hover .social-handle,
.social:focus-visible .social-handle,
.social-discord.is-copied .social-handle {
  color: var(--frost-bright);
}

.social::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  flex-shrink: 0;
  border-right: 1.5px solid var(--ink-soft);
  border-top: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  opacity: 0.45;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.social:hover::after,
.social:focus-visible::after {
  opacity: 0.9;
  border-color: var(--accent);
  transform: rotate(45deg) translate(1px, -1px);
}

.social-discord.is-copied .social-name::after {
  content: " · copied";
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.7;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4%, 6%) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-5%, -4%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mist-a,
  .mist-b,
  .mist-c,
  .domain,
  .brand,
  .tagline,
  .social {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .egg-fx {
    display: none;
  }
}

@media (min-width: 720px) {
  .socials {
    width: min(100%, 26rem);
  }
}
