.map-gift-reveal {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 10000;
  pointer-events: none;
  font-family: "Microsoft YaHei", sans-serif;
  --map-gift-product-width: 112px;
  --map-gift-product-height: 138px;
}
.map-gift-reveal [hidden] { display: none !important; }
.map-gift-art {
  position: absolute;
  width: 140px;
  height: 140px;
  left: -70px;
  top: -106px;
  transform-origin: 50% 50%;
  transform: scale(.333);
  transition: transform 260ms cubic-bezier(.2,.75,.3,1);
  pointer-events: none;
}
.map-gift-static, .map-gift-view, .map-gift-view canvas { width: 100%; height: 100%; display: block; }
.map-gift-static { object-fit: contain; pointer-events: none; }
.map-gift-view { position: absolute; inset: 0; }
.map-gift-reveal[data-state="loading-products"] .map-gift-art { opacity: .72; }
.map-gift-reveal[data-state="loading-products"] .map-gift-art::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px;
  border: 4px solid rgba(255,255,255,.32);
  border-top-color: #82c5ff;
  border-radius: 50%;
  box-sizing: border-box;
  animation: map-gift-loading-spin .7s linear infinite;
}
.map-gift-reveal[data-state="opening"] .map-gift-art { transform: scale(1.7); }
.map-gift-trigger {
  position: absolute;
  left: -12px;
  top: -49px;
  width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff4cc;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.map-gift-trigger:focus-visible, .map-gift-product:focus-visible { outline: 2px solid #ffdc85; outline-offset: 5px; }
.map-gift-product {
  position: absolute;
  left: calc(var(--map-gift-product-width) / -2);
  top: calc(var(--map-gift-product-height) / -2 - 36px);
  width: var(--map-gift-product-width);
  height: var(--map-gift-product-height);
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.map-gift-product:disabled { cursor: default; pointer-events: none; }
.map-gift-product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--map-gift-product-scale, 1));
  transform-origin: 50% 50%;
  filter: drop-shadow(0 8px 7px #0008) drop-shadow(0 0 2px #fff4);
  transition: filter 140ms ease;
  user-select: none;
  -webkit-user-drag: none;
}
.map-gift-product:hover:not(:disabled) img { filter: drop-shadow(0 8px 9px #0008) drop-shadow(0 0 7px #fff7); }
.map-gift-product[data-name] { overflow: visible; }
.map-gift-product[data-name]:hover::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(18, 20, 28, .92);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 8px 13px;
  border-radius: 9px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10002;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}
.map-gift-product[data-name]:hover::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(18, 20, 28, .92);
  pointer-events: none;
  z-index: 10002;
}
.map-gift-product--matryoshka {
  left: calc(var(--map-gift-product-height) * -.560888671875);
  top: calc(var(--map-gift-product-height) * -1.05 - 36px);
  width: calc(var(--map-gift-product-height) * 1.12177734375);
  height: calc(var(--map-gift-product-height) * 2.1);
}
.map-gift-matryoshka-stage { position: absolute; inset: 0; }
.map-gift-product--matryoshka .map-gift-matryoshka-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--matryoshka-layer-scale, 1));
  transform-origin: 50% 96%;
  transition: none;
}
.map-gift-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.map-gift-click-hint {
  display: none;
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 1;
}
.map-gift-reveal[data-state="opening"] .map-gift-product--guided .map-gift-click-hint,
.map-gift-product--guided:not(:disabled) .map-gift-click-hint { display: block; }
.map-gift-click-hint > * { position: absolute; pointer-events: none; opacity: 0; }
.map-gift-guide-cursor {
  z-index: 2;
  transform-origin: 0 0;
  animation: map-gift-guide-tap 4.833333s cubic-bezier(.22,.72,.24,1) infinite both;
}
.map-gift-guide-cursor::before {
  content: '';
  position: absolute;
  left: calc(var(--map-gift-product-width) * -.113);
  top: calc(var(--map-gift-product-width) * -.113);
  width: calc(var(--map-gift-product-width) * .5);
  height: calc(var(--map-gift-product-width) * .517);
  background: url('./cream-arrow.png') center / contain no-repeat;
  filter: drop-shadow(1px 3px 2px #001f2355);
}
.map-gift-guide-ring {
  width: calc(var(--map-gift-product-width) * .153);
  height: calc(var(--map-gift-product-width) * .153);
  margin: calc(var(--map-gift-product-width) * -.0765);
  border: 1.5px solid #b7f0f0;
  border-radius: 50%;
  background: #b2e8ef0a;
  box-shadow: 0 0 5px #b9f2f233;
  animation: map-gift-guide-wave 4.833333s cubic-bezier(.22,.72,.24,1) infinite both;
}
.map-gift-guide-ring--late { animation-delay: .333333s; }
.map-gift-guide-drop {
  width: 3px;
  height: 4px;
  margin: -2px -1.5px;
  background: #d3ffff;
  border-radius: 60% 60% 55% 55%;
  animation: map-gift-guide-drop 4.833333s cubic-bezier(.22,.72,.24,1) infinite both;
  animation-delay: var(--drop-delay);
}
.map-gift-reveal[data-state="opening"] .map-gift-product--guided > img,
.map-gift-product--guided:not(:disabled) > img {
  animation: map-gift-guide-press 4.833333s cubic-bezier(.22,.72,.24,1) infinite both;
}
.map-gift-product--matryoshka .map-gift-click-hint { top: 80%; }
@keyframes map-gift-guide-tap {
  0% { transform: translate(16px,21px) rotate(4deg); opacity: 0; }
  22.7586%, 23.4483% { transform: none; opacity: 1; }
  28.6897% { transform: translate(-1px,-1px) scale(.96); opacity: 1; }
  36.5517%, 75.8621% { transform: none; opacity: 1; }
  90.3448%, 100% { transform: translate(7px,10px); opacity: 0; }
}
@keyframes map-gift-guide-wave {
  0%, 23.4483% { transform: scale(.25); opacity: 0; }
  28.7448% { transform: scale(.7); opacity: .8; }
  67.5862%, 100% { transform: scale(3.4); opacity: 0; }
}
@keyframes map-gift-guide-drop {
  0%, 23.4483% { transform: translate(0,0) scale(.5); opacity: 0; }
  36.6897% { transform: translate(calc(var(--map-gift-product-width) * var(--drop-x) * .6),calc(var(--map-gift-product-width) * var(--drop-y))) scale(1); opacity: .85; }
  56.5517%, 100% { transform: translate(calc(var(--map-gift-product-width) * var(--drop-x)),calc(var(--map-gift-product-width) * var(--drop-y) + 14px)) scale(.3); opacity: 0; }
}
@keyframes map-gift-guide-press {
  0%, 23.4483%, 51.7241%, 100% { transform: scale(var(--map-gift-product-scale,1)); }
  27.9724% { transform: translateY(2px) scale(calc(var(--map-gift-product-scale,1) * .975)); }
  37.5862% { transform: translateY(-1px) scale(calc(var(--map-gift-product-scale,1) * 1.008)); }
}
.map-gift-reveal[data-surface-visible="false"] .map-gift-click-hint > *,
.map-gift-reveal[data-surface-visible="false"] .map-gift-product--guided > img { animation-play-state: paused; }
@keyframes map-gift-loading-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .map-gift-reveal { --map-gift-product-width: 84px; --map-gift-product-height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-gift-click-hint > *, .map-gift-product--guided > img { animation: none !important; }
  .map-gift-guide-cursor { opacity: 1; }
  .map-gift-art { transition: none; }
  .map-gift-reveal[data-state="loading-products"] .map-gift-art::after { animation-duration: 1.4s; }
}
