.djspade-splash[hidden] {
  display: none !important;
}

body.djspade-splash-open {
  overflow: hidden;
}

.djspade-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(18px, 3vw, 42px);
  color: var(--white, #f7f4df);
  background:
    radial-gradient(circle at 72% 24%, rgba(18, 207, 35, .11), transparent 34%),
    linear-gradient(135deg, #020402 0%, #050805 52%, #081008 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.djspade-splash::before,
.djspade-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.djspade-splash::before {
  background-image:
    linear-gradient(rgba(247, 244, 223, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 223, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .5) 68%, transparent 100%);
}

.djspade-splash::after {
  inset: 12px;
  border: 1px solid rgba(18, 207, 35, .28);
  opacity: .8;
}

.djspade-splash.is-active {
  opacity: 1;
  pointer-events: auto;
}

.djspade-splash.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.djspade-splash__controls {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(-12px);
}

.djspade-splash.is-active .djspade-splash__controls {
  animation: djspade-splash-rise 420ms 100ms ease-out forwards;
}

.djspade-splash__button {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgba(247, 244, 223, .32);
  color: var(--white, #f7f4df);
  background: rgba(5, 8, 5, .72);
  font: 700 .69rem/1 var(--font-mono, monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.djspade-splash__button:hover,
.djspade-splash__button:focus-visible {
  border-color: var(--cyan, #12cf23);
  color: #020402;
  background: var(--cyan, #12cf23);
  outline: 2px solid transparent;
  transform: translateY(-2px);
}

.djspade-splash__button--primary {
  border-color: var(--cyan, #12cf23);
  color: #020402;
  background: var(--cyan, #12cf23);
}

.djspade-splash__button--primary:hover,
.djspade-splash__button--primary:focus-visible {
  border-color: var(--lime, #f0e6a7);
  background: var(--lime, #f0e6a7);
}

.djspade-splash__stage {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: clamp(4px, 3vw, 44px);
}

.djspade-splash__index,
.djspade-splash__caption {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: clamp(.66rem, 1vw, .82rem);
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.djspade-splash__index {
  color: var(--cyan, #12cf23);
  opacity: 0;
  transform: translateY(12px);
}

.djspade-splash.is-active .djspade-splash__index {
  animation: djspade-splash-rise 480ms 260ms ease-out forwards;
}

.djspade-splash__wordmark {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .2em;
  max-width: 1100px;
  margin: clamp(12px, 2vw, 24px) 0 clamp(18px, 3vw, 34px);
  color: var(--white, #f7f4df);
  font-family: var(--font-display, sans-serif);
  font-size: clamp(4.6rem, 15vw, 13rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .72;
  text-transform: uppercase;
}

.djspade-splash__wordmark span {
  display: block;
  opacity: 0;
  transform: translateY(34px);
}

.djspade-splash__wordmark span:last-child {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan, #12cf23);
  text-stroke: 1.5px var(--cyan, #12cf23);
}

.djspade-splash.is-active .djspade-splash__wordmark span:first-child {
  animation: djspade-splash-rise 620ms 460ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.djspade-splash.is-active .djspade-splash__wordmark span:last-child {
  animation: djspade-splash-rise 620ms 650ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.djspade-splash__rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan, #12cf23), rgba(18, 207, 35, .16), transparent 88%);
  transform: scaleX(0);
  transform-origin: left center;
}

.djspade-splash.is-active .djspade-splash__rule {
  animation: djspade-splash-rule 720ms 980ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.djspade-splash__caption {
  margin-top: 15px;
  color: var(--muted, #9fa995);
  opacity: 0;
  transform: translateY(12px);
}

.djspade-splash.is-active .djspade-splash__caption {
  animation: djspade-splash-rise 520ms 1220ms ease-out forwards;
}

.djspade-splash__signal {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 244, 223, .18);
  color: var(--muted, #9fa995);
  font: 700 .64rem/1.4 var(--font-mono, monospace);
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
}

.djspade-splash.is-active .djspade-splash__signal {
  animation: djspade-splash-rise 520ms 1480ms ease-out forwards;
}

@keyframes djspade-splash-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes djspade-splash-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 640px) {
  .djspade-splash {
    padding: 16px;
  }

  .djspade-splash::after {
    inset: 8px;
  }

  .djspade-splash__controls {
    justify-content: stretch;
  }

  .djspade-splash__button {
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .djspade-splash__wordmark {
    display: block;
    font-size: clamp(4.4rem, 26vw, 7.4rem);
    line-height: .74;
  }

  .djspade-splash__wordmark span:last-child {
    margin-left: .22em;
  }

  .djspade-splash__signal {
    align-items: flex-end;
    font-size: .58rem;
  }

  .djspade-splash__signal span:last-child {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .djspade-splash,
  .djspade-splash *,
  .djspade-splash *::before,
  .djspade-splash *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .djspade-splash.is-active,
  .djspade-splash.is-active .djspade-splash__controls,
  .djspade-splash.is-active .djspade-splash__index,
  .djspade-splash.is-active .djspade-splash__wordmark span,
  .djspade-splash.is-active .djspade-splash__caption,
  .djspade-splash.is-active .djspade-splash__signal {
    opacity: 1;
    transform: none;
  }

  .djspade-splash.is-active .djspade-splash__rule {
    transform: scaleX(1);
  }
}
