/* 總結回顧滿版載入遮罩 */
.loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(circle at center, rgba(30, 16, 8, 0.98) 0%, rgba(10, 5, 3, 0.99) 100%) !important;
    backdrop-filter: blur(16px);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 !important;
    padding: 0 !important;
}

.loading-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.loading-content-wrapper {
    width: 900px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    text-align: center;
    position: relative;
}

.typewriter-container {
    min-height: 200px;
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 0;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden;
}

.scroll-line-box {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    line-height: 2.2 !important;
    letter-spacing: 2px !important;
    color: #fff8e7 !important;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.5), 0 3px 20px rgba(0, 0, 0, 0.95) !important;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInIn 0.8s ease-out forwards;
    text-align: center !important;
}

@keyframes fadeInIn {
    0% { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
}

.scroll-line-box.roll-up-out {
    animation: rollUpAndFade 0.8s ease-in forwards !important;
}

@keyframes rollUpAndFade {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-35px); }
}

.loading-progress-bar-bg {
    position: relative;
    width: 100%;
    max-width: 760px;
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: visible;
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), inset 0 0 10px rgba(0,0,0,0.9);
}

.loading-progress-bar-fill {
    position: relative;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #b89355 0%, #ffd700 60%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 0 18px #ffd700, 0 0 30px rgba(255, 215, 0, 0.9);
    transition: width 0.1s linear;
}

.loading-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffffff 0%, #ffd700 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px #ffffff, 0 0 22px #ffd700;
    animation: starPulse 1.2s infinite alternate ease-in-out;
}

@keyframes starPulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 8px #ffffff); }
}

/* 【需求 1 修正】：Skip 按鈕樣式 */
.btn-skip-loading {
    background: linear-gradient(180deg, rgba(58, 34, 17, 0.85) 0%, rgba(31, 17, 7, 0.95) 100%);
    border: 1.5px solid #d4af37;
    color: #fbe6be;
    font-family: 'Noto Serif TC', serif;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.btn-skip-loading:hover {
    background: linear-gradient(180deg, #57361d 0%, #2c1a0c 100%);
    border-color: #ffd700;
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}