@charset "UTF-8";


.opening-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: #03070d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  pointer-events: auto;
}

.opening-overlay.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 稲妻用フルスクリーンCanvas */
.opening-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* 画面振動エフェクト（激しい雷鳴時） */
.opening-overlay.shake {
  animation: openingShake 0.15s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes openingShake {
  10%, 90% { transform: translate3d(-2px, -1px, 0); }
  20%, 80% { transform: translate3d(3px, 2px, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, -2px, 0); }
  40%, 60% { transform: translate3d(2px, 1px, 0); }
}

/* 映画的なヴィネット & グローグラデーション */
.opening-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 80, 180, 0.08) 0%, rgba(0, 0, 0, 0.6) 70%, #000000 100%);
  z-index: 2;
  pointer-events: none;
}

/* 中央コンテンツ（ロゴ & ステータス演出） */
.opening-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  max-width: 90%;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}

/* 怪獣8号×MASCODE ロゴ（filterを排除して60fps維持） */
.opening-logo-wrapper {
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.opening-logo-wrapper.is-visible {
  opacity: 1;
  transform: scale(1);
}

.opening-logo-wrapper.is-burst {
  transform: scale(1.05);
  transition: transform 0.15s ease-out;
}

.opening-logo-img {
  width: 520px;
  max-width: 82vw;
  height: auto;
  display: block;
}

/* ステータステキスト */
.opening-hud {
  margin-top: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-transform: uppercase;
}
.opening-hud-img {
  width: 320px;
  max-width: 52vw;
  height: auto;
  display: block;
}


.opening-hud.is-visible {
  opacity: 0.85;
  transform: translateY(0);
}

.opening-hud-value {
  color: #ffffff;
  font-weight: bold;
}

/* スキップボタン（防衛隊UI風・軽量化） */
.opening-skip-btn {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 10;
  padding: 8px 18px;
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid rgba(0, 255, 208, 0.5);
  color: #00eee0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
  outline: none;
  border-radius: 2px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  pointer-events: auto;
}

.opening-skip-btn:hover {
  background: rgba(68, 252, 218, 0.2);
  border-color: #44fcda;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(68, 252, 218, 0.6), inset 0 0 8px rgba(68, 252, 218, 0.3);
  transform: translateY(-1px);
}

.opening-skip-btn:active {
  transform: translateY(1px);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .opening-skip-btn {
    top: 18px;
    right: 18px;
    padding: 6px 14px;
    font-size: 10px;
  }
  
  .opening-hud {
    font-size: 9px;
    letter-spacing: 0.25em;
    margin-top: 18px;
  }
}
