/* Only marks explicitly opted into the hold gesture suppress native image callouts. */
[data-iam-hold],
[data-iam-hold] img,
[data-iam-hold-link] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* The gesture belongs to the mark, not to a native image/drag target. */
[data-iam-hold] img {
  pointer-events: none;
}

.iam-phoenix-standalone[data-iam-hold] > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-iam-hold]:focus-visible {
  outline: 2px solid #bc9855;
  outline-offset: 8px;
  border-radius: 50%;
}

.iam-hold-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(255, 252, 247, .92);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.iam-hold-stage {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.iam-hold-art {
  position: relative;
  width: min(72vmin, 640px);
  width: min(78vw, 72dvh, 640px);
  aspect-ratio: 1;
  pointer-events: none;
}

.iam-hold-art > img,
.iam-hold-art > .iam-hold-fire {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.iam-hold-fire > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.iam-hold-cue {
  min-block-size: 1.2em;
  color: var(--ink, #493a32);
  font: 500 clamp(29px, 4vmin, 38px)/1.2 var(--serif, Georgia);
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .iam-hold-cue > span {
    display: inline-block;
    animation: iam-hold-cue-fade var(--iam-hold-cue-duration) ease-in-out both;
  }

  @keyframes iam-hold-cue-fade {
    0% { opacity: 0; transform: translateY(3px); }
    10%, 92% { opacity: 1; transform: none; }
    100% { opacity: 0; }
  }
}
