/**
 * Gashapon (扭蛋机) 抽奖动画
 * 设计理念：日式复古 + 真实物理 + 童趣可爱
 * 灵感来源：街机游戏厅的经典扭蛋机
 */

/* ========== CSS变量定义 ========== */
:root {
  /* 扭蛋机颜色 */
  --gashapon-red: #ff4757;
  --gashapon-blue: #3742fa;
  --gashapon-yellow: #ffa502;
  --gashapon-green: #2ed573;
  --gashapon-pink: #ff6b81;
  --gashapon-metal: #dfe4ea;

  /* 机身材质 */
  --machine-frame: #2f3542;
  --machine-glass: rgba(255, 255, 255, 0.15);
  --machine-shadow: rgba(0, 0, 0, 0.3);

  /* 动画时长 */
  --turn-duration: 1.5s;
  --capsule-fall-duration: 1.2s;
  --reveal-duration: 1s;
}

/* ========== 容器布局 ========== */
.gashapon-container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  perspective: 1200px;
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.gashapon-container.shaking {
  animation: gashaponShake 0.35s ease-in-out infinite;
}

.gashapon-machine.shake-strong {
  animation: gashaponRock 0.28s ease-in-out infinite;
  transform-origin: 50% 75%;
}

.capsules-pool.mixing .capsule-static {
  transition: top 0.35s ease, left 0.35s ease;
}

.capsules-pool.mixing {
  animation: poolShake 0.3s ease-in-out infinite;
}

.capsules-pool.mixing .capsule-static.shaking {
  animation-duration: 0.12s !important;
}

.capsules-pool.mixing .capsule-static::before {
  opacity: 0.85;
}

.capsules-pool.mixing .capsule-static {
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.capsules-pool.mixing .capsule-static {
  filter: saturate(1.05);
}

@keyframes gashaponShake {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translateY(-2px) rotate(-1deg);
  }
  50% {
    transform: translateY(1px) rotate(1.2deg);
  }
  80% {
    transform: translateY(-1px) rotate(-0.8deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes gashaponRock {
  0% {
    transform: translateY(-16px) scale(1.1) rotate(0deg);
  }
  25% {
    transform: translateY(-14px) scale(1.1) rotate(1.6deg);
  }
  50% {
    transform: translateY(-18px) scale(1.1) rotate(-1.8deg);
  }
  75% {
    transform: translateY(-15px) scale(1.1) rotate(1.2deg);
  }
  100% {
    transform: translateY(-16px) scale(1.1) rotate(0deg);
  }
}

@keyframes gashaponRockMd {
  0% {
    transform: translateY(-12px) scale(1.02) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) scale(1.02) rotate(1.4deg);
  }
  50% {
    transform: translateY(-13px) scale(1.02) rotate(-1.6deg);
  }
  75% {
    transform: translateY(-11px) scale(1.02) rotate(1deg);
  }
  100% {
    transform: translateY(-12px) scale(1.02) rotate(0deg);
  }
}

@keyframes gashaponRockSm {
  0% {
    transform: translateY(-10px) scale(0.94) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) scale(0.94) rotate(1.2deg);
  }
  50% {
    transform: translateY(-12px) scale(0.94) rotate(-1.4deg);
  }
  75% {
    transform: translateY(-9px) scale(0.94) rotate(0.9deg);
  }
  100% {
    transform: translateY(-10px) scale(0.94) rotate(0deg);
  }
}

@keyframes gashaponRockXs {
  0% {
    transform: translateY(-8px) scale(0.88) rotate(0deg);
  }
  25% {
    transform: translateY(-6px) scale(0.88) rotate(1deg);
  }
  50% {
    transform: translateY(-10px) scale(0.88) rotate(-1.2deg);
  }
  75% {
    transform: translateY(-7px) scale(0.88) rotate(0.8deg);
  }
  100% {
    transform: translateY(-8px) scale(0.88) rotate(0deg);
  }
}

@keyframes poolShake {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(1px) rotate(-1.2deg);
  }
  60% {
    transform: translateY(-1px) rotate(1.1deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}
/* ========== 扭蛋机主体 ========== */
.gashapon-machine {
  position: relative;
  width: 300px;
  height: 420px;
  transform-style: preserve-3d;
  transform: translateY(-16px) scale(1.1);
}

/* 机身底座 */
.machine-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 140px;
  background: linear-gradient(135deg, #2f3542 0%, #57606f 100%);
  border-radius: 20px 20px 40px 40px;
  box-shadow:
    0 20px 40px var(--machine-shadow),
    inset 0 4px 0 rgba(255, 255, 255, 0.2),
    inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

/* 底座装饰线 */
.machine-base::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.3) 80%,
    transparent
  );
}

/* Logo标识 */
.machine-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 900;
  color: var(--gashapon-yellow);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 165, 2, 0.5);
  letter-spacing: 2px;
}

/* 玻璃球仓 */
.glass-dome {
  position: absolute;
  bottom: 145px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-bottom: none;
  box-shadow:
    inset 0 10px 30px rgba(255, 255, 255, 0.2),
    inset 0 -10px 30px rgba(0, 0, 0, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* 玻璃反光效果 */
.glass-dome::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    transparent 70%
  );
  animation: glassShine 4s ease-in-out infinite;
}

@keyframes glassShine {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 扭蛋仓内的蛋们 */
.capsules-pool {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.capsule-static {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* 扭蛋反光效果 */
.capsule-static::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* 多种晃动模式 */
@keyframes capsuleFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3px, 6px) rotate(-3deg); }
  50% { transform: translate(2px, 2px) rotate(2deg); }
  75% { transform: translate(3px, 5px) rotate(4deg); }
}

@keyframes capsuleFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(4px, 7px) rotate(3deg); }
  50% { transform: translate(-2px, 3px) rotate(-2deg); }
  75% { transform: translate(-3px, 6px) rotate(-3deg); }
}

@keyframes capsuleFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-2px, 5px) rotate(4deg); }
  50% { transform: translate(3px, 1px) rotate(-2deg); }
  75% { transform: translate(-4px, 4px) rotate(2deg); }
}

@keyframes capsuleFloat4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3px, 8px) rotate(-3deg); }
  50% { transform: translate(-4px, 3px) rotate(2deg); }
  75% { transform: translate(2px, 6px) rotate(-2deg); }
}

/* 为每个扭蛋分配不同的动画 */
.capsule-static:nth-child(1) {
  background: var(--gashapon-red);
  animation: capsuleFloat1 3s ease-in-out infinite;
  animation-delay: 0s;
}

.capsule-static:nth-child(2) {
  background: var(--gashapon-blue);
  animation: capsuleFloat2 2.8s ease-in-out infinite;
  animation-delay: 0.2s;
}

.capsule-static:nth-child(3) {
  background: var(--gashapon-yellow);
  animation: capsuleFloat3 3.2s ease-in-out infinite;
  animation-delay: 0.4s;
}

.capsule-static:nth-child(4) {
  background: var(--gashapon-green);
  animation: capsuleFloat4 2.9s ease-in-out infinite;
  animation-delay: 0.6s;
}

.capsule-static:nth-child(5) {
  background: var(--gashapon-pink);
  animation: capsuleFloat1 3.1s ease-in-out infinite;
  animation-delay: 0.8s;
}

.capsule-static:nth-child(6) {
  background: var(--gashapon-blue);
  animation: capsuleFloat2 3.3s ease-in-out infinite;
  animation-delay: 1s;
}

.capsule-static:nth-child(7) {
  background: var(--gashapon-yellow);
  animation: capsuleFloat3 2.7s ease-in-out infinite;
  animation-delay: 0.3s;
}

.capsule-static:nth-child(8) {
  background: var(--gashapon-red);
  animation: capsuleFloat4 3.4s ease-in-out infinite;
  animation-delay: 0.7s;
}

/* 转动把手区域 */
.handle-area {
  position: absolute;
  bottom: 140px;
  right: -30px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 把手基座 */
.handle-base {
  position: absolute;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #57606f 0%, #2f3542 100%);
  border-radius: 50%;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

/* 把手 */
.handle {
  position: absolute;
  width: 80px;
  height: 80px;
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.3s ease;
  z-index: 10;
}

.handle:hover {
  transform: scale(1.1);
}

.handle:active {
  transform: scale(0.95);
}

/* 把手球体 */
.handle-ball {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--gashapon-red),
    #c0392b
  );
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.3),
    inset 3px 3px 6px rgba(255, 255, 255, 0.3),
    inset -3px -3px 6px rgba(0, 0, 0, 0.3);
}

/* 把手杆 */
.handle-rod {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 35px;
  background: linear-gradient(90deg, #a4b0be 0%, #747d8c 100%);
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 旋转动画 */
.handle.turning {
  animation: handleTurn var(--turn-duration) cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes handleTurn {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 把手转动时小球剧烈晃动 */
.capsule-static.shaking {
  animation: capsuleShake 0.15s ease-in-out infinite !important;
}

@keyframes capsuleShake {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  10% {
    transform: translate(-4px, -2px) rotate(-8deg);
  }
  20% {
    transform: translate(4px, 2px) rotate(8deg);
  }
  30% {
    transform: translate(-3px, 3px) rotate(-6deg);
  }
  40% {
    transform: translate(3px, -3px) rotate(6deg);
  }
  50% {
    transform: translate(-5px, 1px) rotate(-10deg);
  }
  60% {
    transform: translate(5px, -1px) rotate(10deg);
  }
  70% {
    transform: translate(-2px, -4px) rotate(-5deg);
  }
  80% {
    transform: translate(2px, 4px) rotate(5deg);
  }
  90% {
    transform: translate(-3px, 2px) rotate(-7deg);
  }
}

/* 出口槽 */
.exit-slot {
  position: absolute;
  bottom: 125px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background: #1e272e;
  border-radius: 9px;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
}

.exit-slot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -8px;
  right: -8px;
  height: 4px;
  background: linear-gradient(90deg, #2f3542 0%, #57606f 50%, #2f3542 100%);
  border-radius: 3px 3px 0 0;
}

/* 出货槽（底部） */
.pickup-tray {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 65px;
  background: linear-gradient(135deg, #1e272e 0%, #2f3542 100%);
  border-radius: 14px 14px 20px 20px;
  box-shadow:
    inset 0 6px 12px rgba(0, 0, 0, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.3);
  border: 3px solid #57606f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pickup-tray::before {
  content: '⬇️';
  font-size: 20px;
  opacity: 0.5;
}

/* ========== 动画中的扭蛋 ========== */
.active-capsule {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 20;
}

/* 扭蛋外壳 */
.capsule-shell {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.3),
    inset 0 4px 0 rgba(255, 255, 255, 0.5),
    inset 0 -4px 0 rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  overflow: hidden;
}

/* 扭蛋中缝 */
.capsule-shell::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-50%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 扭蛋反光 */
.capsule-shine {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    transparent 70%
  );
}

/* 下落动画 */
.active-capsule.falling {
  animation: capsuleFall var(--capsule-fall-duration) cubic-bezier(0.55, 0.09, 0.68, 0.53) forwards;
}

@keyframes capsuleFall {
  0% {
    top: 40%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.6);
  }
  50% {
    top: 65%;
    transform: translate(-50%, -50%) rotate(180deg) scale(0.8);
  }
  70% {
    top: 78%;
    transform: translate(-50%, -50%) rotate(270deg) scale(1);
  }
  85% {
    top: 84%;
    transform: translate(-50%, -50%) rotate(330deg) scale(1.05);
  }
  100% {
    top: 82%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

/* 扭蛋着地弹跳 */
.active-capsule.landed {
  animation: capsuleBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes capsuleBounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  25% { transform: translate(-50%, -50%) scale(0.9, 1.1); }
  50% { transform: translate(-50%, -50%) scale(1.1, 0.9); }
  75% { transform: translate(-50%, -50%) scale(0.95, 1.05); }
}

/* 扭蛋打开动画 */
.active-capsule.opening .capsule-shell {
  animation: capsuleOpen 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes capsuleOpen {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2) rotateY(180deg);
  }
  100% {
    transform: scale(0) rotateY(360deg);
    opacity: 0;
  }
}

/* ========== 商品展示 ========== */
.product-reveal-gashapon {
  position: absolute;
  bottom: 76px;
  left: 50%;
  width: min(86vw, 320px);
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) scale(0.85);
  z-index: 30;
  pointer-events: none;
}

.product-reveal-gashapon.show {
  animation: productPopup var(--reveal-duration) cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
}

@keyframes productPopup {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0) translateY(50px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}

/* 商品展示卡片 */
.product-reveal-card {
  position: relative;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: #fff6ee;
  border: 1px solid #f1d9c4;
  box-shadow: 0 18px 40px rgba(80, 47, 24, 0.22);
}

.product-reveal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 24, 39, 0.08);
  color: #4b5563;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.product-reveal-title {
  font-size: 12px;
  font-weight: 600;
  color: #7a3e00;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* 商品图片容器 */
.product-image-gashapon {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 40px rgba(255, 255, 255, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.3);
  animation: imageFloat 3s ease-in-out infinite;
}

@keyframes imageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.product-image-gashapon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 星星装饰 */
.product-stars {
  margin-bottom: 12px;
}

.star-icon {
  display: inline-block;
  font-size: 24px;
  animation: starTwinkle 1.5s ease-in-out infinite;
  margin: 0 4px;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.7; transform: scale(1.2) rotate(180deg); }
}

.star-icon:nth-child(1) { animation-delay: 0s; }
.star-icon:nth-child(2) { animation-delay: 0.2s; }
.star-icon:nth-child(3) { animation-delay: 0.4s; }

/* 商品名称 */
.product-name-gashapon {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  text-shadow: none;
}

/* 稀有度徽章 */
.product-rarity-gashapon {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-rarity-gashapon.sp {
  background: linear-gradient(135deg,
    var(--color-rarity-sp, #b967ff) 0%,
    var(--color-rarity-sp, #b967ff) 100%);
  color: #ffffff;
}

.product-rarity-gashapon.sss {
  background: linear-gradient(135deg,
    var(--color-rarity-sss, #ff0844) 0%,
    var(--color-rarity-sss, #ff0844) 100%);
  color: #ffffff;
}

.product-rarity-gashapon.ss {
  background: linear-gradient(135deg,
    var(--color-rarity-ss, #ff8c00) 0%,
    var(--color-rarity-ss, #ff8c00) 100%);
  color: #1a1a2e;
}

.product-rarity-gashapon.s {
  background: linear-gradient(135deg,
    var(--color-rarity-s, #ffea00) 0%,
    var(--color-rarity-s, #ffea00) 100%);
  color: #1a1a2e;
}

.product-rarity-gashapon.sr {
  background: linear-gradient(135deg,
    var(--color-rarity-sr, #00f5ff) 0%,
    var(--color-rarity-sr, #00f5ff) 100%);
  color: #ffffff;
}

.product-rarity-gashapon.r {
  background: linear-gradient(135deg,
    var(--color-rarity-r, #ff69b4) 0%,
    var(--color-rarity-r, #ff69b4) 100%);
  color: #ffffff;
}

/* ========== 音符特效 ========== */
.music-notes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.music-note {
  position: absolute;
  font-size: 24px;
  opacity: 0;
}

.music-note.active {
  animation: noteFly 2s ease-out forwards;
}

@keyframes noteFly {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  20% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-150px) scale(1.5) rotate(360deg);
  }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .gashapon-container {
    min-height: 0;
    padding: 0;
  }

  .gashapon-machine {
    transform: translateY(-12px) scale(1.02);
  }

  .gashapon-machine.shake-strong {
    animation: gashaponRockMd 0.28s ease-in-out infinite;
  }
}

@media (max-width: 480px) {
  .gashapon-container {
    padding: 0;
    min-height: 0;
  }

  .gashapon-machine {
    transform: translateY(-10px) scale(0.94);
  }

  .gashapon-machine.shake-strong {
    animation: gashaponRockSm 0.28s ease-in-out infinite;
  }

  .handle-area {
    right: -25px;
  }
}

@media (max-width: 375px) {
  .gashapon-machine {
    transform: translateY(-8px) scale(0.88);
  }

  .gashapon-machine.shake-strong {
    animation: gashaponRockXs 0.28s ease-in-out infinite;
  }
}
    transform: scale(0.75);
  }

  .product-image-gashapon {
    width: 120px;
    height: 120px;
  }

  .machine-logo {
    font-size: 20px;
  }
}

/* ========== 性能优化 ========== */
.gashapon-machine,
.glass-dome,
.handle,
.active-capsule,
.product-reveal-gashapon {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
