@keyframes smokeRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  50% {
    transform: translateY(-80vh) scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-120vh) scale(2);
    opacity: 0;
  }
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pointPulse {
  50% {
    opacity: 0.8;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes glowFlow {
  0% {
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.12);
  }
  50% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.28);
  }
  100% {
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.12);
  }
}

@keyframes scrollUnroll {
  0% {
    transform: translateY(-100%);
    max-height: 0;
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    max-height: 80vh;
    opacity: 1;
  }
}

@keyframes scrollRollUp {
  0% {
    transform: translateY(0);
    max-height: 80vh;
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    max-height: 0;
    opacity: 0;
  }
}

/* === 儀式感動畫 === */

/* 光暈呼吸 */
@keyframes glowBreath {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(212, 175, 55, 0.1),
      0 0 20px rgba(212, 175, 55, 0.05);
  }
  50% {
    box-shadow:
      0 0 16px rgba(212, 175, 55, 0.25),
      0 0 40px rgba(212, 175, 55, 0.1);
  }
}

/* 選中時的聚焦脈衝 */
@keyframes selectPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
  }
}

/* 環形旋轉入場 */
@keyframes ringReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-10deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
}

/* 選項淡入（帶上浮） */
@keyframes itemFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

/* 連線墨暈擴散 */
@keyframes inkSpread {
  0% {
    stroke-dashoffset: 500;
    opacity: 0;
    filter: url(#inkBlur);
  }
  60% {
    opacity: 0.7;
    filter: url(#inkSpread);
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.5;
    filter: url(#inkBlur);
  }
}

/* 中心聚合光芒 */
@keyframes convergenceGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 10px rgba(212, 175, 55, 0.3),
      0 0 30px rgba(212, 175, 55, 0.1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow:
      0 0 25px rgba(212, 175, 55, 0.6),
      0 0 60px rgba(212, 175, 55, 0.2),
      0 0 100px rgba(212, 175, 55, 0.1);
  }
}

/* 放射光線旋轉 */
@keyframes rayRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 層級解鎖淡入 */
@keyframes layerUnlock {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
