:root {
  color-scheme: dark;
  background: #020817;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #020817;
}

body {
  min-height: 100svh;
}

.gd {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: #020817;
}

.gd-a,
.gd-b {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  background-image: url("gd.webp");
  background-repeat: no-repeat;
}

.gd-a {
  inset: -3rem;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: blur(2.25rem) brightness(.34) saturate(1.18);
  transform: scale(1.08);
}

.gd-a::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 35%, transparent 18%, rgba(0, 4, 18, .28) 72%),
    linear-gradient(180deg, rgba(1, 7, 29, .08), rgba(1, 6, 24, .4));
}

.gd-b {
  z-index: -1;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 1.25rem 3rem rgba(0, 7, 34, .5));
}

.gd-c {
  position: absolute;
  left: 50%;
  bottom: max(13.5svh, calc(env(safe-area-inset-bottom) + 4.25rem));
  width: clamp(14.5rem, 68vw, 20rem);
  z-index: 2;
  display: block;
  border-radius: 999px;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  animation: gd 1.65s ease-in-out infinite;
}

.gd-c img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 .75rem 1.25rem rgba(0, 111, 255, .32));
}

.gd-c:hover {
  filter: brightness(1.08);
}

.gd-c:active {
  animation: none;
  transform: translateX(-50%) scale(.95);
}

.gd-c:focus-visible {
  outline: .2rem solid #fff;
  outline-offset: .35rem;
}

@keyframes gd {
  0%,
  100% {
    transform: translateX(-50%) scale(.965);
  }
  50% {
    transform: translateX(-50%) scale(1.045);
  }
}

@media (min-aspect-ratio: 1 / 1) {
  .gd-b {
    background-position: 50% 50%;
  }

  .gd-c {
    bottom: clamp(5rem, 12svh, 8rem);
    width: clamp(15rem, 19vw, 21rem);
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .gd-c {
    left: auto;
    right: clamp(1.5rem, 6vw, 5rem);
    bottom: max(14svh, calc(env(safe-area-inset-bottom) + 1rem));
    width: clamp(12rem, 22vw, 16rem);
    transform: none;
    animation-name: gd-landscape;
  }

  .gd-c:active {
    transform: scale(.95);
  }
}

@keyframes gd-landscape {
  0%,
  100% {
    transform: scale(.965);
  }
  50% {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-c {
    animation: none;
  }
}
