/* One deliberate capture connects the restaurant's photograph to its Studio entry. */
.capture-photo { isolation: isolate; }
.capture-target {
  position: absolute;
  z-index: 2;
  top: 68%;
  left: 67%;
  width: clamp(150px, 31%, 250px);
  aspect-ratio: 1.55;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, .96);
  background:
    linear-gradient(currentColor, currentColor) left top / 23px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 23px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 23px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 23px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 23px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 2px 23px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 23px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 2px 23px no-repeat;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45));
  pointer-events: none;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}
.capture-showcase.is-capturing .capture-target { transform: translate(-50%, -50%) scale(.78); }
.capture-showcase.is-captured .capture-target { opacity: .55; }
.capture-flash {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.capture-showcase.is-capturing .capture-flash { animation: wellfood-capture-flash .38s ease-out .11s 1; }
@keyframes wellfood-capture-flash {
  0%, 100% { opacity: 0; }
  22% { opacity: .66; }
}
.capture-trigger {
  position: absolute;
  z-index: 5;
  right: 5%;
  bottom: 6%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 48px;
  padding: .72rem 1rem;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 100px;
  background: #f9f5ed;
  color: var(--ink);
  box-shadow: 0 9px 24px rgba(25, 19, 14, .2);
  font-size: .81rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.capture-trigger:hover { background: #fff; transform: translateY(-2px); }
.capture-trigger:disabled { cursor: wait; }
.capture-trigger-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.capture-trigger-icon::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.capture-trigger-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 2px;
  width: 7px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}
.capture-stamp {
  position: absolute;
  z-index: 3;
  top: calc(68% + 85px);
  left: 67%;
  transform: translate(-50%, 6px) rotate(-4deg);
  padding: .35rem .55rem;
  background: var(--orange);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s, transform .28s;
}
.capture-showcase.is-captured .capture-stamp { opacity: 1; transform: translate(-50%, 0) rotate(-4deg); }
.capture-live-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.capture-receipt {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: .55rem;
  background: #ece8df;
  border: 1px solid rgba(44, 56, 39, .18);
  min-height: 86px;
}
.capture-receipt-media {
  display: block;
  width: 86px;
  height: 68px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(44, 56, 39, .2) 49%, rgba(44, 56, 39, .2) 51%, transparent 52%) center / 100% 100%,
    #ddd7ca;
}
.capture-receipt.has-photo .capture-receipt-media,
.capture-flying-print {
  background: url('assets/capture-studio.jpg') 70% 74% / 270% auto no-repeat;
}
.capture-receipt-copy { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.capture-receipt-label { color: #9d4d2f; font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.capture-receipt-copy strong { font-size: .82rem; font-weight: 600; line-height: 1.25; }
.capture-flying-print {
  position: fixed;
  z-index: 50;
  display: block;
  border: 5px solid #f8f5ec;
  box-shadow: 0 14px 32px rgba(28, 21, 14, .27);
  pointer-events: none;
  transform-origin: top left;
}
@media (max-width: 900px) {
  .capture-target { left: 66%; }
  .capture-stamp { left: 66%; top: calc(68% - 115px); }
}
@media (max-width: 560px) {
  .capture-target { left: 63%; width: 160px; }
  .capture-stamp { left: 63%; top: calc(68% - 75px); }
  .capture-label { top: 8%; bottom: auto; }
  .capture-trigger { right: 5%; bottom: 5%; }
  .capture-receipt { grid-template-columns: 72px minmax(0, 1fr); min-height: 78px; }
  .capture-receipt-media { width: 72px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .capture-target, .capture-trigger, .capture-stamp { transition: none; }
  .capture-showcase.is-capturing .capture-flash { animation: none; }
}
