:host {
  --cube-perspective: 99999999px;
  --cube-face-border: 1px solid #fff;
  --cube-face-bg: #060010;
}

.default-animation {
  position: relative;
  width: 103vw;
  margin: 0 -1.5vw;
  height: auto;
}

.default-animation--overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.default-animation--overlay > * {
  pointer-events: none;
}

.default-animation--overlay a {
  pointer-events: auto !important;
}

*[slot="children"] a {
  pointer-events: auto !important;
}

.default-animation--scene {
  display: grid;
  width: 100%;
  height: 100%;
  perspective: var(--cube-perspective);
  grid-auto-rows: 1fr;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: opacity 0.4s ease;
}

.cube--under-overlay {
  opacity: 0;
}

.cube::before {
  content: "";
  position: absolute;
  top: -36px;
  right: -36px;
  bottom: -36px;
  left: -36px;
}

.default-animation .cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(
    in srgb,
    #3ca7dd calc(var(--tilt-pct-c, 0) * 100%),
    color-mix(
      in srgb,
      #b579d2 calc(var(--tilt-pct-b, 0) * 100%),
      color-mix(
        in srgb,
        #7d8fe8 calc(var(--tilt-pct-a, 0) * 100%),
        var(--cube-face-bg)
      )
    )
  );
  border-style: solid;
  border-width: 1px;
  border-color: color-mix(
    in srgb,
    #0d0f26 calc(min(var(--tilt-pct-a, 0) + var(--tilt-pct-b, 0), 1) * 100%),
    #e3e1e1
  );
  opacity: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.default-animation .cube-face--top {
  transform: translateY(-50%) rotateX(90deg);
}

.default-animation .cube-face--bottom {
  transform: translateY(50%) rotateX(-90deg);
}

.default-animation .cube-face--left {
  transform: translateX(-50%) rotateY(-90deg);
}

.default-animation .cube-face--right {
  transform: translateX(50%) rotateY(90deg);
}

.default-animation .cube-face--back,
.default-animation .cube-face--front {
  transform: rotateY(-90deg) translateX(50%) rotateY(90deg);
}

