.snow-loader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 60px;
    background-color: #000000bf;
  border: 1px solid rgba(224, 242, 254, 0.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-family: system-ui, -apple-system, sans-serif;
}

/* ==========================================
   1. 背景に降るぼかした雪
   ========================================== */
.bg-snow-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-snowflake {
  position: absolute;
  top: -15px;
  background: rgba(224, 242, 254, 0.75);
  border-radius: 50%;
  animation: fallBlur linear infinite;
}

/* 背景の雪ごとに大きさ、ぼかし、落下速度を設定する */
.bg-flake-1 { left: 12%; width: 7px; height: 7px; filter: blur(2px); animation-duration: 4s; animation-delay: 0s; }
.bg-flake-2 { left: 28%; width: 12px; height: 12px; filter: blur(3.5px); animation-duration: 6.5s; animation-delay: 1.2s; opacity: 0.5; }
.bg-flake-3 { left: 50%; width: 5px; height: 5px; filter: blur(1.5px); animation-duration: 3.8s; animation-delay: 0.5s; }
.bg-flake-4 { left: 68%; width: 10px; height: 10px; filter: blur(3px); animation-duration: 5.2s; animation-delay: 2.1s; opacity: 0.6; }
.bg-flake-5 { left: 85%; width: 6px; height: 6px; filter: blur(2px); animation-duration: 4.2s; animation-delay: 0.8s; }
.bg-flake-6 { left: 93%; width: 11px; height: 11px; filter: blur(4px); animation-duration: 7s; animation-delay: 1.7s; opacity: 0.4; }

@keyframes fallBlur {
  0% {
    transform: translateY(-10px) translateX(0);
    opacity: 0.2;
  }
  30% { opacity: 0.8; }
  100% {
    transform: translateY(var(--afallx, 220px)) translateX(12px);
    opacity: 0.1;
  }
}

/* ==========================================
   2. 雪の結晶とローディング表示
   ========================================== */
.snow-loader {
  position: relative;
  z-index: 1;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 白と淡い氷色の雪の結晶SVG */
.snowflake-icon {
  width: 160px;
  height: 160px;
  color: #f0f9ff; /* 淡い氷白色 */
  animation: rotateSnowflake 3.5s infinite linear, pulseIcyGlow 2.2s infinite ease-in-out alternate;
}

/* 結晶の周囲に浮かぶ小さな雪 */
.satellite-flake {
  position: absolute;
  background-color: #e0f2fe;
  border-radius: 50%;
  box-shadow: 0 0 8px #bae6fd;
  animation: floatFlake 2.2s infinite ease-in-out;
}

.flake-1 { width: 6px; height: 6px; top: 6px; left: 10px; animation-delay: 0s; }
.flake-2 { width: 7px; height: 7px; bottom: 8px; right: 8px; animation-delay: 0.7s; }
.flake-3 { width: 5px; height: 5px; top: 12px; right: 12px; animation-delay: 1.4s; }

/* 淡い氷色のローディング文字 */
.loading-text {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #bae6fd;
  text-shadow: 0 0 10px rgba(186, 230, 253, 0.4);
}

.loading-text span {
  animation: blinkDots 1.4s infinite fill-mode-both;
}

.loading-text span:nth-child(2) { animation-delay: 0.2s; }
.loading-text span:nth-child(3) { animation-delay: 0.4s; }

/* ==========================================
   3. アニメーションのキーフレーム
   ========================================== */
@keyframes rotateSnowflake {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseIcyGlow {
  0% {
    filter: drop-shadow(0 0 4px rgba(224, 242, 254, 0.4)) scale(0.96);
    color: #e0f2fe;
  }
  100% {
    filter: drop-shadow(0 0 16px rgba(186, 230, 253, 0.9)) 
            drop-shadow(0 0 28px rgba(125, 211, 252, 0.4)) scale(1.04);
    color: #ffffff;
  }
}

@keyframes floatFlake {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-12px) scale(1.25); opacity: 0.95; }
}

@keyframes blinkDots {
  0% { opacity: 0.2; }
  20% { opacity: 1; }
  100% { opacity: 0.2; }
}
