/* The jewel sits in the print itself, so it scrolls away with the card. */
.crystal-perch {
  --ice: #d5fff7;
  position: absolute;
  top: 38%;
  left: 55%;
  translate: -50% -50%;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: max-content;
  min-width: 48px;
  min-height: 48px;
  color: #fff3d8;
  text-decoration: none;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.guests-card .crystal-perch { --ice: #aeeaff; }
.guests-card .crystal-perch { left: 45%; top: 41%; }
.plan-card .crystal-perch { --ice: #ffe5b5; left: 50%; top: 41%; }
.album-card .crystal-perch { --ice: #fecfe0; left: 62%; top: 34%; }
.crystal-setting {
  box-sizing: border-box;
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(48px, 6vw, 62px);
  aspect-ratio: 1;
  clip-path:polygon(50% 0,91% 20%,100% 64%,57% 100%,12% 83%,0 37%);
  background:conic-gradient(from 15deg at 49% 52%,#50878cc9,#143c53dc 25%,#98c8ceca 42%,#1b4e66dc 64%,#2c6d86d6 84%,#9be8eacb);
}
.crystal-setting::before {
  content: ""; position: absolute; inset: 9%;
  border: 1px dashed #d4c59996; border-radius: 50%;
}
.crystal-setting i, #crystal-crossing {
  display: block;
  background: url("/assets/docked-crystal.webp") center/contain no-repeat;
}
.crystal-setting i { position: absolute; inset: 7%; transform: rotate(var(--twist,0deg)); }
.crystal-directed .crystal-setting i { opacity: 0; }
.crystal-directed .crystal-perch[data-landed] .crystal-setting i { opacity: 1; }
.crystal-caption, #sky-catch span {
  padding: .16rem .43rem;
  border-radius: 1rem;
  background: #092027ed;
  color: #fff6d9;
  font: 600 .78rem/1.15 system-ui, sans-serif;
  white-space: nowrap;
}
.crystal-perch::before {
  content: ""; position: absolute; pointer-events: none;
  top: 0; right: 65%; width: clamp(5rem,19vw,11rem); height: 3.25rem;
  background: url("/assets/landing-frost.webp") right center/contain no-repeat;
  transform-origin: right center;
  opacity: calc(.84 * var(--frost, 0));
  transform: scaleX(var(--frost, 0));
}
.crystal-perch[data-landed]::before { opacity: .84; }
.crystal-perch[data-landed] .crystal-setting { border-color: var(--ice); }
.crystal-perch::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 100%; aspect-ratio: 1;
  border: 1px solid var(--ice); border-radius: 50%; opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .crystal-perch:not([data-turning]) .crystal-setting i { transition: transform .28s ease-out; }
  .crystal-perch[data-landed]::after { animation: frost-ring .64s ease-out both; }
  @keyframes frost-ring {
    from { opacity: .85; transform: translateX(-50%) scale(.7); }
    to { opacity: 0; transform: translateX(-50%) scale(1.78); }
  }
}
.crystal-perch:focus-visible, #sky-catch:focus-visible { outline: 2px solid #ffdfa3; outline-offset: 3px; border-radius: 1rem; }
#crystal-crossing, #sky-catch { position: fixed; left: 0; top: 0; z-index: 3; }
#crystal-crossing {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  transform-origin: center;
  pointer-events: none;
}
#sky-catch {
  display: grid; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  place-items: end center; text-decoration: none; touch-action: manipulation;
}
#sky-catch span { position: absolute; top: 100%; }
.island-passage { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.island-passage i {
  --span:min(94vw,77vh);
  position:absolute; left:50%; top:50%; width:var(--span); height:var(--span);
  margin:calc(var(--span) * -.5) 0 0 calc(var(--span) * -.5);
  background:var(--passage-art) center/contain no-repeat;
}
.island-passage i:first-child { clip-path:polygon(0 0,52% 0,44% 33%,54% 57%,46% 73%,51% 100%,0 100%); }
.island-passage i:last-child { clip-path:polygon(52% 0,100% 0,100% 100%,51% 100%,46% 73%,54% 57%,44% 33%); }
@media (prefers-reduced-motion:reduce) {
  .island-passage, .island-art i { display:none !important; }
  .island-art[data-split] img { visibility:visible; }
}
@media (max-width: 360px) {
  .crystal-setting { width: 44px; }
}
