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

body {
  overflow: hidden;
  cursor: none;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.bg {
  position: absolute;
  inset: -24px;
  background-image: url("assets/background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(520px, 42vw, 670px);
  aspect-ratio: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.quest-ring,
.logo-link,
.logo-wrap {
  grid-area: 1 / 1;
}

.quest-ring {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.quest-ring__text {
  font-family: "GT Sectra Regular", "GT Sectra", "Times New Roman", serif;
  font-size: 3.62px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.quest-ring__layer {
  opacity: 0;
  transition: opacity 80ms linear;
}

.quest-ring__layer--reveal {
  fill: #c9a865;
}

.quest-ring__layer--base {
  fill: #f0ec95;
}

.quest-ring__layer--patina {
  fill: #e4cd87;
}

.quest-ring__rotor {
  animation: quest-ring-spin 64.5s linear infinite;
  transform-box: view-box;
  transform-origin: center;
}

.logo-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: none;
}

.logo-link:focus-visible {
  outline: 1px solid rgba(240, 236, 149, 0.7);
  outline-offset: 10px;
}

.logo-wrap {
  position: relative;
  width: clamp(360px, 30vw, 510px);
  --logo-hit-pad: clamp(14px, 1.8vw, 22px);
  padding: var(--logo-hit-pad);
  margin: calc(var(--logo-hit-pad) * -1);
}

.logo-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.logo-layer--reveal,
.logo-layer--patina,
.quest-ring__layer {
  transition: opacity 80ms linear;
}

@keyframes quest-ring-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.sword-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: 16.8px;
  transform: translate(-50%, 0);
  transform-origin: 50% 0%;
  filter: brightness(1);
  transition: filter 180ms ease;
  pointer-events: none;
  z-index: 20;
  opacity: 1;
}

.sword-cursor--bright {
  filter: brightness(2);
}

.cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 18;
}


@media (prefers-reduced-motion: reduce) {
  .bg,
  .hero-emblem {
    transform: none !important;
  }

  .quest-ring {
    animation: none;
  }

  .quest-ring__rotor {
    animation: none;
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .sword-cursor,
  .cursor-trail {
    display: none;
  }
}
