/* ============================================================
 * 文件：css/scenes.css
 * 作用：开场动画、新手教程手指、卡组翻页
 * ============================================================ */
  /* === 开场动画 === */
  #openingScene {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0d0d1a;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    pointer-events: auto;
    cursor: pointer;
  }
  .opening-text {
    text-align: center;
    color: #e8d5b5;
    font-size: 18px;
    line-height: 2.2;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(232,213,181,0.3), 0 2px 4px rgba(0,0,0,0.8);
    animation: openingFadeIn 1.2s ease-out forwards;
    opacity: 0;
  }
  .opening-text p {
    margin: 8px 0;
    white-space: nowrap;
  }
  .opening-hint {
    position: absolute;
    bottom: 60px;
    color: #8b6914;
    font-size: 13px;
    letter-spacing: 2px;
    animation: openingBlink 1.5s ease-in-out infinite;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  }
  @keyframes openingFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes openingBlink {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
  }


  /* === 新手教程手指 === */
  .tutorial-finger {
    position: absolute;
    width: 44px;
    height: 44px;
    font-size: 34px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.6));
    transform: translate(-50%, -50%);
    transition: left 2.2s ease-in-out, top 2.2s ease-in-out, opacity 0.3s;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
  }

  /* === 卡组翻页 === */
  .deck-page {
    display: none;
    width: 100%;
    justify-content: center;
  }
  .deck-page.active {
    display: flex;
  }
  .deck-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 4px;
    z-index: 5;
  }
  .deck-nav-btn {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.4);
    border: 1.5px solid rgba(255,215,0,0.4);
    border-radius: 50%;
    color: #ffd700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
  }
  .deck-nav-btn:hover {
    background: rgba(0,0,0,0.6);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
  }
  .deck-nav-btn:active {
    transform: scale(0.92);
  }
  .deck-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255,215,0,0.15);
  }
  .deck-page-dots {
    display: flex;
    gap: 6px;
  }
  .deck-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,215,0,0.25);
    border: 1px solid rgba(255,215,0,0.3);
    transition: all 0.2s;
  }
  .deck-dot.active {
    background: #ffd700;
    box-shadow: 0 0 8px rgba(255,215,0,0.5);
  }



/* === 地图新手引导手指 === */
.map-finger {
  position: absolute;
  font-size: 34px;
  display: none;
  z-index: 60;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.6));
  transform: translate(-50%, -50%);
  text-shadow: 0 0 10px rgba(255,255,255,0.4);
  animation: mapFingerFloat 1.8s ease-in-out infinite;
}
@keyframes mapFingerFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-10px); }
}


/* === 首次进入三段过场动画 === */
#introScene {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0d0d1a;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  pointer-events: auto;
  cursor: pointer;
}
.intro-text {
  text-align: center;
  color: #e8d5b5;
  font-size: 17px;
  line-height: 2.2;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(232,213,181,0.3), 0 2px 4px rgba(0,0,0,0.8);
  animation: openingFadeIn 1s ease-out forwards;
  opacity: 0;
  white-space: pre-line;
  padding: 0 30px;
  max-width: 90%;
}
.intro-hint {
  position: absolute;
  bottom: 80px;
  color: #8b6914;
  font-size: 13px;
  letter-spacing: 2px;
  animation: openingBlink 1.5s ease-in-out infinite;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.intro-dots {
  position: absolute;
  bottom: 50px;
  display: flex;
  gap: 10px;
}
.intro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(232,213,181,0.25);
  border: 1px solid rgba(232,213,181,0.3);
  transition: all 0.3s;
}
.intro-dot.active {
  background: #e8d5b5;
  box-shadow: 0 0 10px rgba(232,213,181,0.5);
}
