/* The living shell: what stands around the product's own pages. The pages themselves are styled by app.css,
   which is the product's stylesheet cut down to the rules these pages use - nothing here restyles them. */
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

#stage,
.state {
  position: fixed;
  inset: 0;
}

.state {
  background: var(--l3-page, #fff);
}

/* the rail's tiles, as things to point at */
#hot {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.hot {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.hot:hover,
.hot:focus-visible {
  outline: none;
  background: rgba(37, 99, 235, 0.07);
  box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.3);
}

.hot.hint::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  animation: l3-hint 1.6s ease-out var(--d, 0s) 2 both;
}

@keyframes l3-hint {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  100% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); }
}

/* the pointer of the person in the story */
#cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  width: 26px;
  height: 26px;
  margin: -3px 0 0 -5px;
  pointer-events: none;
  opacity: 0;
  transform: translate(760px, 520px);
  transition: transform 600ms cubic-bezier(0.4, 0.1, 0.2, 1), opacity 220ms ease;
  will-change: transform;
}

#cursor.is-on {
  opacity: 1;
}

#cursor svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.35));
  transition: scale 120ms ease;
  transform-origin: 5px 3px;
}

#cursor.down svg {
  scale: 0.86;
}

.rip {
  position: fixed;
  z-index: 290;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.28);
  pointer-events: none;
  animation: l3-rip 520ms ease-out both;
}

@keyframes l3-rip {
  0% { scale: 0.2; opacity: 1; }
  100% { scale: 1.5; opacity: 0; }
}

/* what a real pointer would do to the thing under it */
.l3-over {
  filter: brightness(0.95);
}

@media (prefers-reduced-motion: reduce) {
  #cursor,
  .rip,
  .hot.hint::after {
    display: none;
  }
}
