.stage {
  position: absolute;
  inset: 0;
  overflow: visible;
  touch-action: none;
  z-index: 1;
  pointer-events: auto;
}

#scene {
  position: absolute;
  inset: 0;
}

.product-frame {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z, 1);
  will-change: transform;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.product-frame__inner {
  position: relative;
  display: inline-block;
}

.product-frame__visual {
  display: block;
  transform: rotate(var(--rotate, 0deg));
  transform-origin: center center;
}

.product-frame__visual img {
  width: var(--size, 280px);
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 70px 104px rgba(0, 0, 0, 0.18));
}

.tag {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: var(--tag-offset-x, 0px);
  margin-top: var(--tag-offset-y, 0px);
  width: 224px;
  height: 95.047px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 32.358px 48.075px -14.792px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.tag-pixel {
  position: absolute;
  left: 5.37px;
  top: 5.37px;
  width: 2.148px;
  height: 6.444px;
  background: #343330;
  border-radius: 1px;
  z-index: 2;
}

.tag-screen {
  position: absolute;
  left: 12.89px;
  right: 12.89px;
  top: 5.37px;
  height: 84.307px;
  background: #ececec;
}

.tag-screen .brand {
  position: absolute;
  left: 7.99px;
  top: 11.62px;
  font-family: Roboto, sans-serif;
  font-size: 7.43px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
}

.tag-screen .name {
  position: absolute;
  left: 7.99px;
  right: 7.99px;
  top: 24.36px;
  font-family: Roboto, sans-serif;
  font-size: 13.09px;
  font-weight: 400;
  line-height: 1.1;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-screen .price {
  position: absolute;
  left: 7.99px;
  top: 40.28px;
  font-family: Roboto, sans-serif;
  font-size: 30.08px;
  font-weight: 400;
  line-height: 1;
  color: #000;
  transition: opacity .22s ease;
}

.tag-screen .price.is-fading {
  opacity: 0;
}

.tag-screen .barcode {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-family: 'Libre Barcode 128 Text', cursive;
  font-size: 13.09px;
  line-height: 1;
  color: #000;
}

@media (max-width: 768px) {
  .stage {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tag-screen .price {
    transition: none;
  }
}
