/* =============================================
   Wee:D Intro Overlay
   ロゴ先出し → 色が塗られる → フェードアウト
   ============================================= */

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#intro-overlay.hidden {
  display: none;
}

/* Canvasが全面を覆う */
#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ロゴエリア */
#intro-logo {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
#intro-logo.visible {
  opacity: 1;
  transform: scale(1);
}

/* ロゴ画像 */
#intro-logo-img {
  display: block;
  width: clamp(200px, 36vw, 320px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.10));
}

/* SKIPボタン */
#intro-skip {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 3;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  padding: 7px 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #44445a;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
#intro-skip:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

/* アウトロ：シンプルにフェードアウト */
#intro-overlay.outro {
  animation: introFadeOut 0.8s ease forwards;
  pointer-events: none;
}
@keyframes introFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
