
/* ==============================
   生日蛋糕区块样式 v4
   ============================== */

#birthday-section {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 36px 16px 8px;
  overflow: hidden;
}

#cake-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.cake-svg-wrap {
  position: relative;
  width: 340px;
  filter: drop-shadow(0 12px 32px rgba(230, 80, 160, 0.35));
  animation: cakeFloat 3s ease-in-out infinite;
}

.cake-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

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

/* 弹幕层：宽度与蛋糕图一致，两边 mask 渐隐 */
.cake-danmaku-layer {
  position: relative;
  width: 1000px;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
  background: none;
  margin-top: 12px;
  z-index: 10;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

#danmaku-track {
  position: absolute;
  inset: 0;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: #fff;
  text-shadow:
    -1px -1px 0 rgba(150, 20, 80, 0.8),
     1px -1px 0 rgba(150, 20, 80, 0.8),
    -1px  1px 0 rgba(150, 20, 80, 0.8),
     1px  1px 0 rgba(150, 20, 80, 0.8),
     0 3px 8px rgba(100, 0, 60, 0.6);
  /* 动画由JS动态设置 */
  will-change: transform;
}

/* 三语祝福 */
.cake-wishes {
  margin-top: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cake-wish {
  font-family: 'Pacifico', 'Nunito', cursive;
  font-weight: 900;
  background: linear-gradient(135deg, #e0408a 0%, #b030c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
}

.cake-wish.zh { font-size: clamp(1.2rem, 4vw, 1.8rem); }
.cake-wish.en { font-size: clamp(1rem, 3vw, 1.4rem); opacity: 0.9; }
.cake-wish.th { font-size: clamp(0.85rem, 2.5vw, 1.1rem); opacity: 0.8; }

@media (max-width: 600px) {
  .cake-svg-wrap { width: 240px; }
  .cake-danmaku-layer { width: 400px; height: 200px; }
}
