/* 导入 Dancing Script 手写字体 (英文) */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

html {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    overflow-x: hidden;
    background-color: #000;
    font-family: 'Dancing Script', 'Times New Roman', 'KaiTi', 'STKaiti', 'BiauKai', serif;
    user-select: none;
    /* 禁止触摸缩放和滚动 */
    touch-action: none;
    -webkit-touch-callout: none;
    /* 确保不超出视口 */
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#canvas-container {
    width: 100%;
    height: 100%;
    display: block;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.header {
    padding: 30px;
    text-align: center;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

h1 {
    margin: 0;
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 10vw, 5.25rem);
    font-weight: 700;
    letter-spacing: 4px;
    /* 圆柱金属管渐变 - 模拟圆弧高光 */
    background: linear-gradient(180deg,
            #8B6914 0%,
            #DAA520 15%,
            #FFF8DC 30%,
            #FFD700 45%,
            #DAA520 60%,
            #8B6914 80%,
            #CD853F 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 强立体阴影 */
    filter: drop-shadow(0 2px 0 #6B4E0A) drop-shadow(0 3px 1px #4A3508) drop-shadow(0 5px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    display: inline-block;
}

.status {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #ccc;
    font-style: italic;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

/* 状态文字闪烁动画 */
@keyframes statusFadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

/* 帮助弹窗 */
.help-modal {
    display: flex;
    /* Always flex, hide via visibility */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    /* 高于 start-screen 的 1000 */
    justify-content: center;
    align-items: center;
    /* Hidden state */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.help-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.help-content {
    background: linear-gradient(135deg, rgba(20, 30, 20, 0.98), rgba(10, 10, 10, 0.98));
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    color: #eee;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    /* Animation */
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.help-modal.show .help-content {
    transform: scale(1);
    opacity: 1;
}

.help-content h3 {
    color: #FFD700;
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

/* 浏览器提示 */
.browser-hint {
    text-align: center;
    color: #FF9800;
    font-size: 0.8rem;
    margin: 0 0 15px 0;
    padding: 8px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* 三列网格布局 */
.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.help-section {
    margin-bottom: 0;
}

.help-section h4 {
    color: #FFD700;
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}

.help-section p {
    margin: 4px 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.help-section b {
    color: #FFD700;
}

.close-help-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #FFD700, #FFAA00);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-help-btn:hover {
    transform: scale(1.02);
}

.close-help-btn:active {
    transform: scale(0.98);
}

.icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

b {
    color: #FFD700;
    margin-right: 5px;
}

#loading {
    position: absolute;
    top: 12%;
    /* Adjusted to align with header spacing */
    left: 50%;
    transform: translateX(-50%);
    color: #FFD700;
    font-size: 1.5rem;
    animation: pulse 1s infinite;
    z-index: 20;
    text-align: center;
    width: 100%;
    /* Ensure it doesn't wrap weirdly */
    pointer-events: none;
    /* Let clicks pass through to tree */
}

#loading .spinner {
    display: none;
    /* Hide spinner as requested */
}

#loading-status {
    margin-top: 0;
    /* Move text up to replace spinner */
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Times New Roman', serif;
}

#progress-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px auto;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transition: width 0.2s ease-out;
}

#progress-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

#loading-status {
    margin-top: 20px;
    font-size: 1.5rem;
    /* Increased from 1.2rem */
    letter-spacing: 2px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Times New Roman', 'KaiTi', 'STKaiti', serif;
}

#progress-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px auto;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transition: width 0.2s ease-out;
}

#progress-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #FFD700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

video {
    /* 原来的写法是 display: none; (这会让苹果手机罢工) */
    /* 请改成下面这样： */

    position: absolute;
    /* 绝对定位 */
    top: 0;
    left: 0;
    opacity: 0;
    /* 这里是关键：设为“透明”，而不是“不显示” */
    pointer-events: none;
    /* 让鼠标可以穿透它点击后面的东西 */
    z-index: -1;
    /* 把它放到最底层 */
}

/* 照片弹窗 */
#photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 100;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#photo-modal.show {
    display: flex;
}

#photo-modal img {
    max-width: 50%;
    max-height: 70%;
    border: 4px solid #FFD700;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    /* Initial state for animation */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#photo-modal .close-hint {
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 15px;
    animation: pulse 1s infinite;
}

/* Start Screen Overlay */
#empty-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #FFD700;
    z-index: 2000;
    animation: pulse 1s infinite;
    pointer-events: none;
    font-family: 'Times New Roman', serif;
    letter-spacing: 1px;
}

#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#start-btn {
    /* 金属质感背景 */
    background: linear-gradient(135deg,
            #FFF8DC 0%,
            #FFD700 15%,
            #DAA520 35%,
            #B8860B 50%,
            #DAA520 65%,
            #FFD700 85%,
            #FFF8DC 100%);
    border: 2px solid #B8860B;
    padding: 15px 40px;
    font-size: 1.5rem;
    color: #3d2800;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 50px;
    /* 金属光泽阴影（减薄厚度）*/
    box-shadow:
        0 1px 0 #8B6914,
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.2s ease;
    font-family: 'Times New Roman', serif;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

#start-hint {
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 25px;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
    font-family: 'Times New Roman', serif;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

#start-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 2px 0 #8B6914,
        0 4px 10px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.6);
}

#start-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 0 0 #8B6914,
        0 1px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 215, 0, 0.5);
}

/* 第一界面的提示按钮 */
.help-btn-start {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #FFD700;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.help-btn-start:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

#retry-cam {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 0, 0, 0.3);
    border: 1px solid #ff4444;
    color: #fff;
    padding: 8px 15px;
    cursor: pointer;
    z-index: 200;
    display: none;
    border-radius: 4px;
}

/* Loading Screen Improvements */
#progress-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 15px auto 10px;
    overflow: hidden;
    position: relative;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: width 0.2s ease-out;
    border-radius: 3px;
}

#progress-text {
    font-family: 'Courier New', Courier, monospace;
    color: #FFD700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 215, 0, 0.1);
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 控制按钮 - 左右对称布局 */
.control-btn {
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    color: #FFD700;
    font-size: 16px;
    /* Increased from 14px */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Times New Roman', 'KaiTi', 'STKaiti', serif;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
}

.control-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* 左侧按钮 - 提示 */
.control-btn-left {
    left: max(30px, env(safe-area-inset-left));
    transform: translateX(-100px);
}

.control-btn-left.visible {
    transform: translateX(0);
}

/* 右侧按钮 - 插入 */
.control-btn-right {
    right: max(30px, env(safe-area-inset-right));
    transform: translateX(100px);
}

.control-btn-right.visible {
    transform: translateX(0);
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.95), rgba(30, 30, 30, 0.98));
    border-color: #FFD700;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.control-btn-left.visible:hover {
    transform: translateX(0) scale(1.05);
}

.control-btn-right.visible:hover {
    transform: translateX(0) scale(1.05);
}

.control-btn:active {
    transform: scale(0.92);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.control-btn.active {
    background: linear-gradient(135deg, #FFD700, #FFAA00);
    color: #000;
    border-color: #FFD700;
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-weight: bold;
    letter-spacing: 1px;
}

/* Toast通知 */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.toast-success {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.toast-warning {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.toast-error {
    background: linear-gradient(135deg, #f44336, #D32F2F);
}

/* 背景模糊效果 (照片打开时触发) */
.blur-bg {
    filter: blur(5px) brightness(80%);
    transition: filter 0.5s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {

    /* 帮助弹窗移动端适配 */
    .help-content {
        max-width: 90%;
        padding: 20px;
        margin: 10px;
    }

    .help-content h3 {
        font-size: 1.2rem;
    }

    .help-section h4 {
        font-size: 1rem;
    }

    .help-section p {
        font-size: 0.85rem;
    }

    /* 移动端按钮样式 */
    .control-btn {
        bottom: 15px;
        padding: 10px 14px;
        font-size: 12px;
    }

    .control-btn-left {
        left: 15px;
    }

    .control-btn-right {
        right: 15px;
    }

    /* 按钮文字保留显示 */
    .btn-text {
        display: inline;
    }

    #photo-modal img {
        max-width: 85%;
        max-height: 60%;
    }
}

/* ===== Photo Source Modal ===== */
.source-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Hidden state */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.source-modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.7);
}

.source-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #FFD700;
    border-radius: 16px;
    padding: 25px 35px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    min-width: 250px;
    /* Animation */
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.source-modal.show .source-modal-content {
    transform: scale(1);
    opacity: 1;
}

.source-modal-content h3 {
    color: #FFD700;
    font-size: 20px;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.source-btn {
    display: block;
    width: 100%;
    padding: 12px 25px;
    margin: 8px 0;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #FFD700;
    border-radius: 8px;
    background: transparent;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.source-btn:hover {
    background: #FFD700;
    color: #1a1a2e;
    transform: scale(1.02);
}

.source-btn:active {
    transform: scale(0.98);
}

.source-btn.cancel-btn {
    border-color: #666;
    color: #888;
    font-size: 14px;
    padding: 8px;
    margin-top: 15px;
}

.source-btn.cancel-btn:hover {
    background: #666;
    color: #fff;
}

/* ===== Featured Photos Toast ===== */
.featured-toast {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #4a3c00 0%, #6b5a10 100%);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 15px 30px;
    color: #FFD700;
    font-size: 18px;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.featured-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== 静音按钮 ===== */
.mute-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: rgba(30, 30, 30, 0.8);
    color: #FFD700;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: auto;
    /* Override ui-layer's pointer-events: none */
}

.mute-btn:hover {
    border-color: #FFD700;
    background: rgba(50, 50, 50, 0.9);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.mute-btn:active {
    transform: scale(0.95);
}

/* ===== 控制按钮 (底部左右角) ===== */
.control-btn {
    position: fixed;
    bottom: 30px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: rgba(30, 30, 30, 0.85);
    color: #FFD700;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: auto;
}

.control-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.control-btn-left {
    left: 20px;
}

.control-btn-right {
    right: 20px;
}

.control-btn:hover {
    border-color: #FFD700;
    background: rgba(50, 50, 50, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.control-btn:active {
    transform: translateY(0) scale(0.98);
}

.control-btn .btn-icon {
    font-size: 18px;
}

.control-btn .btn-text {
    font-weight: 500;
}

/* 按钮滑出隐藏动画 - 露出一点头 */
.control-btn-left.hidden {
    transform: translateX(-80%);
    opacity: 0.4;
}

.control-btn-right.hidden {
    transform: translateX(80%);
    opacity: 0.4;
}

/* 静音按钮滑出 - 露出一点头 */
.mute-btn.hidden {
    transform: translateY(-85%);
    opacity: 0.4;
}

/* 边缘触发区域 */
.edge-trigger {
    position: fixed;
    z-index: 999;
    pointer-events: auto;
    background: transparent;
}

.edge-trigger-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100px;
}

.edge-trigger-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100px;
}

.edge-trigger-top {
    top: 0;
    right: 20px;
    width: 60px;
    height: 30px;
}

/* === START 按钮浮动动画 === */
#start-btn {
    animation: floatButton 2s ease-in-out infinite;
}

@keyframes floatButton {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#start-btn:hover {
    animation-play-state: paused;
}

/* === 手指引导动画 === */
.finger-hint {
    position: fixed;
    bottom: 30px;
    right: 80px;
    font-size: 48px;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transform: rotate(-30deg);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.finger-hint.show {
    animation: fingerTap 2.5s ease-in-out infinite;
}

@keyframes fingerTap {
    0% {
        opacity: 0;
        bottom: 60px;
        right: 60px;
    }

    20% {
        opacity: 1;
        bottom: 80px;
        right: 80px;
    }

    40% {
        /* 移动到按钮上方 */
        opacity: 1;
        bottom: calc(50% - 80px);
        right: calc(50% - 80px);
    }

    50% {
        /* 点击动作 - 按下 */
        opacity: 1;
        bottom: calc(50% - 90px);
        right: calc(50% - 80px);
        transform: rotate(-30deg) scale(0.9);
    }

    60% {
        /* 点击动作 - 弹起 */
        opacity: 1;
        bottom: calc(50% - 80px);
        right: calc(50% - 80px);
        transform: rotate(-30deg) scale(1);
    }

    80% {
        opacity: 0.5;
        bottom: calc(50% - 80px);
        right: calc(50% - 80px);
    }

    100% {
        opacity: 0;
        bottom: calc(50% - 80px);
        right: calc(50% - 80px);
    }
}