/* The navigation wheel: dial artwork, rotating drum labels, glass lens,
   pointer arms, lens arrow, orange up/down zones and the position dot. */

/* drum: skin sampled from HumanInterface3, live labels and a glass lens on top */
.drumcol {
  position: sticky;
  top: 12px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dial3d {
  position: relative;
  width: 100%;
  max-width: 470px;
  perspective: 1100px;
  transform-style: preserve-3d;
}
.dial3d > .dialstage {
  transform-style: preserve-3d;
}
.dial3d {
  --ry: 0deg;
  touch-action: none;
}
.dial3d .dial,
.dial3d .dialrim {
  transform: rotateY(var(--ry));
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.dial3d.dragging .dial,
.dial3d.dragging .dialrim {
  transition: none;
}
.dialrim {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 2.5%;
  bottom: 2.5%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    #02070b 88%,
    #0a2a38 94%,
    rgba(54, 214, 239, 0.55) 97%,
    transparent 100%
  );
  transform-origin: 50% 50%;
  translate: 0 0 -26px;
  box-shadow: 0 0 30px rgba(54, 214, 239, 0.18);
  opacity: var(--rimo, 0);
}
.dshade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, var(--sl, 0)), transparent 55%),
    linear-gradient(270deg, rgba(0, 0, 0, var(--sr, 0)), transparent 55%),
    linear-gradient(
      90deg,
      transparent 30%,
      rgba(140, 240, 255, var(--sh, 0)) 50%,
      transparent 70%
    );
}
.dial {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 640/660;
  container-type: inline-size;
  touch-action: none;
  user-select: none;
  cursor: ns-resize;
  background: url(../img/wheel-skin.jpg) center/100% 100% no-repeat;
  -webkit-mask: radial-gradient(closest-side, #000 82%, transparent 100%);
  mask: radial-gradient(closest-side, #000 82%, transparent 100%);
}
.drum {
  position: absolute;
  left: 35%;
  width: 27.5%;
  top: 20%;
  height: 58%;
  perspective: 1000px;
  outline: none;
}
.drum::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.75),
      transparent 22%,
      transparent 78%,
      rgba(0, 0, 0, 0.75)
    ),
    linear-gradient(
      90deg,
      rgba(54, 214, 239, 0.1),
      transparent 18%,
      transparent 82%,
      rgba(54, 214, 239, 0.1)
    );
}
.drum:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 6px;
  border-radius: 8px;
}
.items {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.it {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  height: 2.6em;
  margin-top: -1.3em;
  display: grid;
  place-items: center;
  font:
    600 clamp(12px, 3.2cqi, 16px) "Exo 2",
    sans-serif;
  color: #bfe9f5;
  backface-visibility: hidden;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 0 6px rgba(54, 214, 239, 0.5);
}
.lens {
  position: absolute;
  left: 32.5%;
  width: 32.5%;
  top: 49%;
  height: 11%;
  translate: 0 -50%;
  border-radius: 12px;
  pointer-events: none;
  border: 2px solid #5fe6fa;
  box-shadow:
    0 0 14px #36d6ef,
    0 0 34px rgba(54, 214, 239, 0.45),
    inset 0 0 12px rgba(54, 214, 239, 0.55),
    inset 0 -6px 10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.24) 0,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(54, 214, 239, 0.05) 58%,
    rgba(160, 240, 255, 0.16) 100%
  );
  -webkit-backdrop-filter: brightness(1.35) saturate(1.4) contrast(1.1);
  backdrop-filter: brightness(1.35) saturate(1.4) contrast(1.1);
}
.lens::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 5%;
  height: 22%;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0)
  );
}
.arm {
  position: absolute;
  left: 50%;
  top: 48.64%;
  width: 0;
  height: 0;
  pointer-events: none;
  --tilt: 0deg;
}
.arm.l {
  transform: rotate(var(--tilt));
}
.arm.r {
  transform: rotate(calc(-1 * var(--tilt))) scaleX(-1);
}
.arm i {
  position: absolute;
  display: block;
  background: #7ff0ff;
  box-shadow:
    0 0 3px #36d6ef,
    0 0 8px rgba(54, 214, 239, 0.8);
}
.arm .node {
  width: 1.7cqi;
  height: 1.7cqi;
  border-radius: 50%;
  left: -43.85cqi;
  top: -0.85cqi;
}
.arm .lbar {
  width: 4.4cqi;
  height: 0.4cqi;
  border-radius: 0.2cqi;
  left: -42.4cqi;
  top: -0.2cqi;
}
.arm .dot {
  width: 1.9cqi;
  height: 1.9cqi;
  border-radius: 0.5cqi;
  left: -33.6cqi;
  top: -0.95cqi;
  background: #9ff5ff;
}
.larrow {
  position: absolute;
  left: calc(65% + 2px);
  top: 49%;
  translate: 0 -50%;
  width: 40px;
  height: 48px;
  z-index: 6;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.larrow::before {
  content: "";
  border: 11px solid transparent;
  border-right: 18px solid #dffaff;
  margin-left: -14px;
  filter: drop-shadow(0 0 6px #36d6ef) drop-shadow(0 0 2px #36d6ef);
  transition: transform 0.15s;
}
.larrow:hover::before {
  transform: scale(1.15);
}
.larrow:active::before {
  transform: scale(0.9);
}
.larrow:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}
.dial.pending .larrow::before {
  animation: apulse 0.9s ease-in-out infinite;
}
.dial.pending .lens {
  animation: lpulse 1.2s ease-in-out infinite;
}
@keyframes apulse {
  50% {
    border-right-color: #ffb347;
    filter: drop-shadow(0 0 8px #ff8a1a);
  }
}
@keyframes lpulse {
  50% {
    box-shadow:
      0 0 22px #36d6ef,
      0 0 44px rgba(54, 214, 239, 0.6),
      inset 0 0 16px rgba(54, 214, 239, 0.7);
  }
}
.pvtip {
  position: absolute;
  left: 50%;
  top: 84%;
  translate: -50% 0;
  z-index: 6;
  font-size: 12px;
  color: #ffd9a8;
  background: rgba(6, 20, 30, 0.9);
  border: 1px solid rgba(243, 154, 58, 0.6);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  pointer-events: none;
}
.pvtip[hidden] {
  display: none;
}
.hint {
  font-size: 13px;
  color: var(--dim);
  margin-top: 4px;
  text-align: center;
}
.steps {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.steps[hidden] {
  display: none;
}
.orz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.oz {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}
.oz .hit {
  fill: none;
  stroke: transparent;
  stroke-width: 46;
  pointer-events: stroke;
}
.oz .glow {
  fill: none;
  stroke: #ffa640;
  stroke-width: 14;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 6px #ff8a1a)
    drop-shadow(0 0 14px rgba(255, 140, 30, 0.7));
  transition: opacity 0.2s;
  pointer-events: none;
}
.oz:hover .glow,
.oz:focus-visible .glow {
  opacity: 0.8;
}
.oz.on .glow {
  opacity: 1;
  transition: none;
}
.oz:focus-visible .hit {
  stroke: rgba(243, 154, 58, 0.18);
}
/* orange position dot: drag it back and forth along the bottom edge to cycle pages */
#posDot .dh {
  fill: transparent;
  pointer-events: all;
  cursor: ew-resize;
  touch-action: none;
}
#posDot:hover > circle:nth-child(2),
#posDot.grab > circle:nth-child(2) {
  opacity: 1;
  r: 12;
}
#posDot.grab .dh {
  cursor: grabbing;
}
