:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f7f3e9;
  --muted: #bbb1a0;
  --gold: #ffc619;
  --gold-deep: #a66b00;
  --ember: #ef7d12;
  --cool: #315d48;
  --line: rgba(255, 214, 87, 0.18);
}

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

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 198, 25, 0.13), transparent 23rem),
    radial-gradient(circle at 20% 18%, rgba(49, 93, 72, 0.32), transparent 24rem),
    radial-gradient(circle at 82% 76%, rgba(239, 125, 18, 0.16), transparent 22rem),
    linear-gradient(145deg, #030303 0%, #0b0a08 42%, #030302 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}

body::after {
  z-index: 1;
  background:
    radial-gradient(circle at center, transparent 0 42%, rgba(0, 0, 0, 0.62) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      transparent 1px 3px
    );
  mix-blend-mode: soft-light;
  opacity: 0.6;
}

#particle-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  border: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  place-items: center;
  color: rgba(238, 238, 230, 0.82);
  font: inherit;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 49%, rgba(222, 222, 208, 0.095), transparent 8.5rem),
    radial-gradient(circle at 50% 52%, rgba(180, 184, 170, 0.055), transparent 18rem),
    radial-gradient(circle at center, transparent 0 31%, rgba(0, 0, 0, 0.5) 71%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, #070807 0%, #030403 100%);
  opacity: 1;
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
  overflow: hidden;
}

.entry-overlay::before,
.entry-overlay::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.entry-overlay::before {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 4px
    );
  background-size: 3px 3px, 3px 3px, auto;
  opacity: 0.42;
  mix-blend-mode: soft-light;
}

.entry-overlay::after {
  width: min(15rem, 68vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 245, 230, 0.12), transparent 62%);
  filter: blur(24px);
  opacity: 0.8;
}

.entry-overlay span {
  position: relative;
  z-index: 1;
  max-width: min(100%, 16rem);
  color: rgba(246, 245, 236, 0.82);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(0.68rem, 2.7vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: 0 0 9px rgba(255, 255, 244, 0.16);
}

.entry-overlay:hover span,
.entry-overlay:focus-visible span {
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(255, 255, 248, 0.26),
    0 0 26px rgba(255, 255, 248, 0.11);
}

.entry-overlay:focus-visible {
  outline: 1px solid rgba(245, 245, 232, 0.38);
  outline-offset: -0.8rem;
}

.entry-overlay.is-leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.coming-soon {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 5vw, 4rem);
  place-items: center;
  transition:
    opacity 420ms ease,
    filter 420ms ease,
    transform 420ms ease;
}

body.is-entry-locked .coming-soon {
  opacity: 0.22;
  filter: blur(2px);
  pointer-events: none;
  transform: scale(0.99);
}

.stage {
  position: relative;
  display: grid;
  width: min(100%, 72rem);
  justify-items: center;
  text-align: center;
  isolation: isolate;
}

.stage::before {
  position: absolute;
  inset: 9% 14% auto;
  z-index: -1;
  height: min(45vw, 27rem);
  border: 1px solid var(--line);
  content: "";
  filter: blur(0.2px);
  opacity: 0.46;
  transform: skewX(-13deg) rotate(-5deg);
}

.stage::after {
  position: absolute;
  top: 13%;
  left: 50%;
  z-index: -2;
  width: min(68vw, 32rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 198, 25, 0.2), transparent 62%),
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 48%);
  content: "";
  filter: blur(22px);
  opacity: 0.85;
  transform: translateX(-50%);
}

.logo-shell {
  position: relative;
  width: clamp(10.5rem, 30vw, 19rem);
  margin-bottom: clamp(1.15rem, 3.6vw, 2.35rem);
  animation: logo-enter 900ms cubic-bezier(0.18, 0.9, 0.18, 1) both;
}

.logo-shell::before {
  position: absolute;
  inset: 10% 6%;
  z-index: -1;
  border-radius: 45%;
  background:
    radial-gradient(circle, rgba(255, 198, 25, 0.46), transparent 58%),
    radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 44%);
  content: "";
  filter: blur(28px);
  opacity: 0.8;
  animation: breathe 4.8s ease-in-out infinite;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 18px rgba(255, 198, 25, 0.24))
    drop-shadow(0 22px 42px rgba(0, 0, 0, 0.45));
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 198, 25, 0.45);
  animation: rise-in 700ms ease-out both;
}

h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 8vw, 6.4rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 0.92;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 0 rgba(255, 198, 25, 0.3),
    0 0 42px rgba(255, 198, 25, 0.2),
    0 16px 58px rgba(0, 0, 0, 0.62);
  animation: rise-in 780ms cubic-bezier(0.18, 0.9, 0.18, 1) both;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(4.8rem, 1fr));
  gap: clamp(0.5rem, 1.5vw, 0.9rem);
  width: min(100%, 35rem);
  margin-top: clamp(1.35rem, 4vw, 2.25rem);
  animation: rise-in 880ms cubic-bezier(0.18, 0.9, 0.18, 1) 120ms both;
}

.time-block {
  position: relative;
  display: grid;
  min-height: clamp(5.1rem, 11vw, 6.4rem);
  padding: clamp(0.7rem, 2.1vw, 1rem) 0.55rem 0.72rem;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 87, 0.2);
  border-radius: 8px;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 50% 0%, rgba(255, 198, 25, 0.16), transparent 76%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.time-block::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  content: "";
  opacity: 0.56;
  pointer-events: none;
}

.time-value {
  position: relative;
  color: var(--ink);
  font-size: clamp(1.65rem, 5.8vw, 3rem);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: 1;
  text-shadow:
    0 0 22px rgba(255, 198, 25, 0.22),
    0 8px 26px rgba(0, 0, 0, 0.42);
  will-change: transform, opacity;
}

.time-value.is-ticking-down {
  animation: cooldown-drop 360ms cubic-bezier(0.2, 0.82, 0.25, 1);
}

.time-label {
  position: relative;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: clamp(0.62rem, 1.9vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.countdown.is-complete .time-block {
  border-color: rgba(255, 198, 25, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 198, 25, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.26);
}

.discord-cta {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  max-width: calc(100vw - 1.7rem);
  min-height: 2.7rem;
  border: 1px solid rgba(255, 214, 87, 0.34);
  border-radius: 999px;
  padding: 0.7rem 1rem 0.72rem 0.82rem;
  color: #fff9e8;
  font-size: clamp(0.78rem, 2.5vw, 0.92rem);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.76), rgba(255, 198, 25, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.025)),
    rgba(8, 8, 8, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 40px rgba(0, 0, 0, 0.34),
    0 0 32px rgba(88, 101, 242, 0.22);
  opacity: 1;
  transition:
    opacity 260ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  animation: rise-in 920ms cubic-bezier(0.18, 0.9, 0.18, 1) 180ms both;
}

body.is-entry-locked .discord-cta {
  opacity: 0;
  pointer-events: none;
}

.discord-cta::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent),
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.26), transparent 42%);
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.discord-cta:hover,
.discord-cta:focus-visible {
  border-color: rgba(255, 198, 25, 0.74);
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 20px 48px rgba(0, 0, 0, 0.38),
    0 0 0 3px rgba(88, 101, 242, 0.2),
    0 0 36px rgba(255, 198, 25, 0.22);
}

.discord-cta__icon,
.discord-cta span:last-child {
  position: relative;
}

.discord-cta__icon {
  width: 1.32rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  fill: currentColor;
  filter: drop-shadow(0 0 12px rgba(255, 198, 25, 0.28));
}

.project-signature {
  margin: clamp(0.7rem, 1.8vw, 0.95rem) 0 0;
  color: rgba(247, 243, 233, 0.56);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    "Cascadia Code",
    "Liberation Mono",
    monospace;
  font-size: clamp(0.64rem, 1.8vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-shadow: 0 0 18px rgba(255, 198, 25, 0.14);
  animation: rise-in 880ms cubic-bezier(0.18, 0.9, 0.18, 1) 180ms both;
}

.launch-message {
  margin: clamp(0.8rem, 2vw, 1rem) 0 0;
  color: var(--gold);
  font-size: clamp(0.86rem, 2.4vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255, 198, 25, 0.36);
}

.music-widget {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.5rem);
  bottom: clamp(0.9rem, 3vw, 1.5rem);
  z-index: 6;
  display: grid;
  justify-items: end;
  gap: 0.6rem;
  max-width: min(21rem, calc(100vw - 1.8rem));
  opacity: 1;
  transition: opacity 260ms ease;
}

body.is-entry-locked .music-widget {
  opacity: 0;
  pointer-events: none;
}

.music-toggle {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 214, 87, 0.24);
  border-radius: 8px;
  padding: 0.55rem 0.72rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(7, 7, 6, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  border-color: rgba(255, 198, 25, 0.64);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 198, 25, 0.13),
    0 14px 34px rgba(0, 0, 0, 0.35);
}

.music-dot {
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 198, 25, 0.78);
}

.spotify-panel {
  width: min(21rem, calc(100vw - 1.8rem));
  overflow: hidden;
  border: 1px solid rgba(255, 214, 87, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.035);
  animation: panel-in 220ms ease-out both;
}

.spotify-panel iframe {
  display: block;
  border: 0;
}

@keyframes logo-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94) rotate(-2deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.54;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

@keyframes cooldown-drop {
  from {
    opacity: 0.18;
    transform: translateY(-0.58em);
  }

  62% {
    opacity: 1;
    transform: translateY(0.08em);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .coming-soon {
    padding: 1.25rem;
  }

  .stage {
    transform: translateY(-3vh);
  }

  .stage::before {
    inset: 14% 4% auto;
    height: 16rem;
  }

  .logo-shell {
    width: min(54vw, 12rem);
    margin-bottom: 0.95rem;
  }

  .kicker {
    max-width: 16rem;
    letter-spacing: 0.14em;
  }

  h1 {
    max-width: 21rem;
    font-size: clamp(2.15rem, 13vw, 3.25rem);
    line-height: 0.94;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 19rem);
    margin-top: 1.15rem;
  }

  .time-block {
    min-height: 4.7rem;
  }

  .discord-cta {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    min-height: 2.45rem;
    padding: 0.62rem 0.82rem 0.64rem 0.68rem;
  }

  .music-widget {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: min(20rem, calc(100vw - 1.5rem));
    margin: 0 auto 0.95rem;
    justify-items: stretch;
    max-width: calc(100vw - 1.5rem);
  }

  .music-toggle {
    justify-self: center;
    opacity: 0.86;
  }

  .spotify-panel {
    width: 100%;
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.035);
  }

  .spotify-panel iframe {
    height: 72px;
  }
}

@media (max-width: 360px) {
  .countdown {
    gap: 0.42rem;
    width: 100%;
  }

  .time-block {
    min-height: 4.25rem;
    padding-inline: 0.35rem;
  }

  .time-value {
    font-size: clamp(1.35rem, 11vw, 2rem);
  }

  .time-label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .music-widget {
    width: min(18.5rem, calc(100vw - 1.25rem));
    margin-bottom: 0.75rem;
  }

  .spotify-panel iframe {
    height: 64px;
  }
}

@media (max-height: 760px) and (min-width: 521px) {
  .coming-soon {
    padding-block: 1rem 5.25rem;
  }

  .logo-shell {
    width: clamp(8.2rem, 20vh, 11.2rem);
    margin-bottom: clamp(0.7rem, 1.8vh, 1.1rem);
  }

  .kicker {
    margin-bottom: 0.32rem;
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(3rem, 11vh, 4.45rem);
  }

  .countdown {
    width: min(100%, 31rem);
    margin-top: clamp(0.85rem, 2vh, 1.15rem);
  }

  .time-block {
    min-height: 4.35rem;
    padding-block: 0.58rem 0.55rem;
  }

  .time-value {
    font-size: clamp(1.55rem, 6vh, 2.35rem);
  }

  .time-label {
    margin-top: 0.24rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

}
