/*
body {
  background: url('../magic-bg.jpg') no-repeat center/cover;
}
*/

.header-cursive {
  font-family: 'Great Vibes', cursive;
  color: #f8f9fa;
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.form-container {
  width: 100%;
  max-width: 400px;
}

select.form-select {
  text-align-last: center;
  background-color: rgba(0, 0, 0, 0.6) !important;
  color: #f8f9fa !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(6px);
}

select.form-select option {
  background-color: #2c2c2c;
  color: #f8f9fa;
  text-align: center;
}

.form-select:focus {
  border-color: #e3342f !important;
  box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.4);
}

.header-subtitle {
  white-space: nowrap;
  font-size: clamp(1rem, 5vw, 1.5rem);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ✨ 魔法光點動畫 */
@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(0.2);
    filter: blur(4px);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    filter: blur(1px);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
    filter: blur(6px);
  }
}

.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  animation: sparkle 2s ease-out forwards;
}

/* 結果卡片背景樣式 */
.result-card {
  background-color: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  border: none;
  padding: 2.5rem;
  width: fit-content;
  max-width: 90vw;
  min-width: 300px;
}

/* 呼吸光芒動畫 */
@keyframes breathe-glow {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255,255,255,0.6),
      0 0 16px rgba(255,255,255,0.4);
  }
  50% {
    text-shadow:
      0 0 16px rgba(255,255,255,1),
      0 0 32px rgba(255,255,255,0.8);
  }
}

.breathe-glow {
  animation: breathe-glow 3s ease-in-out infinite;
}

/* 確保啟音樂按鈕永遠浮在最上層 */
#unlock-audio {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
}

/* 手寫風格文字 */
.handwriting {
  font-size: 4rem;
  letter-spacing: 0.2em;
  font-family:
    'ZCOOL QingKe HuangYou',
    'Ma Shan Zheng',
    'Dancing Script',
    cursive;
}

/* 全螢幕淡黑遮罩 */
#fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 4s ease;
  z-index: 2000;
}