/* Snapshot card — a small print beside the character (media uploads);
   with media present the panel splits 60/40 (see [data-media] below),
   plus the drop overlay. */
#character[data-media="on"] {
  padding-right: 40%;
}
@media (prefers-reduced-motion: no-preference) {
  #character {
    transition: opacity var(--dur-3) var(--ease-out), transform 620ms var(--ease-spring),
      padding-right var(--dur-2) var(--ease-out);
    transition-delay: 130ms, 130ms, 0s;
  }
}
.snap {
  position: absolute;
  right: clamp(8px, 2%, 16px);
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: calc(40% - 20px);
  max-width: 190px;
  min-width: 112px;
  padding: 6px;
  background: #fcfbf7;
  border: 1px solid var(--ink);
  box-shadow: 2px 3px 10px rgba(28, 26, 23, 0.25);
  transform: rotate(-2deg);
}
.snap-in { animation: snap-in var(--dur-2) var(--ease-spring); }
@keyframes snap-in {
  from { transform: rotate(3deg) scale(0.9); }
  to { transform: rotate(-2deg) scale(1); }
}
.snap-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  overflow: hidden;
}
.snap-media video, .snap-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.snap-cap, .snap-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  margin-top: 4px;
}
.snap-sub { color: var(--ink-2); margin-top: 1px; }
.snap-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 12px/1 var(--font-display);
  cursor: pointer;
  opacity: 0;
}
.snap-x::before {
  content: "";
  position: absolute;
  inset: -11px;
}
.snap-x:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}
.snap:hover .snap-x, .snap:focus-within .snap-x { opacity: 1; }
@media (pointer: coarse) { .snap-x { opacity: 1; } }

/* Drop overlay: full-stage "drop it here" sheet. */
.dropz {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.dropz-c {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
}
.dropz-c.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.dropz-c.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.dropz-c.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.dropz-c.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.dropz-big {
  font: 600 var(--step-3)/1.1 var(--font-display);
  color: var(--ink);
}
.dropz-sub {
  font-family: var(--font-mono);
  font-size: var(--step-0);
  color: var(--ink-2);
}
