/* An ingredient stays in its original place; a clipped copy lifts on exploration. */
.plate-interactive-stage .plate-photo {
  position: relative;
  isolation: isolate;
}

.plate-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: scale(1.08);
  opacity: 0;
  pointer-events: none;
}

.plate-interactive-stage.is-ready .plate-map {
  opacity: 1;
}

.plate-food-pop {
  opacity: 0;
  pointer-events: none;
  transform-box: view-box;
  transition: opacity 160ms ease, transform 200ms ease, filter 200ms ease;
}

.plate-food-pop.is-active {
  opacity: 1;
  transform: translateY(-1.2px) scale(1.025);
  filter: drop-shadow(0 1.2px .8px rgb(26 41 19 / 42%));
}

.plate-food-outline {
  fill: none;
  stroke: none;
  stroke-width: .5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.plate-food-hit {
  fill: transparent;
  stroke: none;
  pointer-events: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.plate-interactive-stage.is-ready .plate-food-hit {
  pointer-events: all;
}

.plate-food-hit:focus-visible {
  fill: rgb(235 251 206 / 12%);
  stroke: #fffef5;
  stroke-width: .65;
  stroke-dasharray: 1.2 .8;
  stroke-linejoin: round;
}

.plate-interactive-stage .floating-label {
  z-index: 2;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.plate-interactive-stage.is-exploring .floating-label {
  opacity: .14;
}

.plate-tooltip {
  position: absolute;
  z-index: 5;
  box-sizing: border-box;
  width: max-content;
  max-width: min(240px, calc(100% - 24px));
  padding: 14px 16px;
  border: 1px solid #cdd8bf;
  border-radius: 15px;
  background: #fffef6;
  box-shadow: 0 12px 30px -14px rgb(31 49 22 / 45%);
  color: #25391c;
  text-align: left;
  line-height: 1.45;
  pointer-events: auto;
}

.plate-tooltip[hidden] {
  display: none;
}
.plate-tooltip-note[hidden] {
  display: none;
}
.plate-interactive-stage:not(.is-ready) .plate-hint {
  display: none;
}

.plate-tooltip-name {
  display: block;
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.plate-tooltip-macro {
  display: block;
  margin: 0;
  color: #577343;
  font-size: 12px;
  font-weight: 600;
}

.plate-tooltip-kcal {
  display: block;
  margin-top: 7px;
  font-size: 14px;
  font-weight: 650;
  color: #2d4223;
}

.plate-tooltip-note {
  display: block;
  margin-top: 3px;
  color: #75806b;
  font-size: 10px;
  line-height: 1.5;
}

.plate-interactive-stage .stage-caption.plate-hint {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 100%;
  margin: 0;
  color: #65735a;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0;
  pointer-events: none;
}

.plate-hint small {
  display: block;
  color: #78836e;
  font-size: 10px;
}

@media (max-width: 600px) {
  .plate-tooltip {
    padding: 11px 13px;
    border-radius: 13px;
    max-width: min(220px, calc(100% - 20px));
  }

  .plate-tooltip-name {
    font-size: 14px;
  }

  .plate-interactive-stage .stage-caption.plate-hint {
    font-size: 10px;
  }

  .plate-hint small {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plate-food-pop,
  .plate-interactive-stage .floating-label {
    transition: none;
  }

  .plate-food-pop.is-active {
    transform: none;
  }
}
