/* ==================== 圣诞树界面样式 ==================== */

/* 圣诞树界面容器 */
#christmas-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    background-color: #020202;
    font-family: 'Helvetica Neue', sans-serif;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    overflow: hidden;
}

#christmas-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#christmas-ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    box-sizing: border-box;
}

/* 顶部栏 */
.christmas-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: auto;
}

.christmas-mode-switch {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 3px;
    display: flex;
    gap: 3px;
}

.christmas-mode-btn {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.christmas-mode-btn.active {
    background: #FF1493;
    color: white;
}

/* 左下角微型提示框 */
#christmas-guide {
    position: absolute;
    bottom: 85px;
    left: 10px;
    width: 110px;
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    line-height: 1.4;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 8px;
    border-left: 2px solid #FFD700;
    pointer-events: none;
}

.christmas-key {
    color: #FFD700;
    font-weight: bold;
}

.christmas-guide-row {
    margin-bottom: 2px;
}

/* 底部控制栏 */
.christmas-controls {
    pointer-events: auto;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.christmas-btn-sub {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ccc;
    padding: 10px 12px;
    font-size: 11px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.2s;
}

.christmas-btn-sub:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

#christmas-status {
    position: absolute;
    bottom: 5px;
    left: 10px;
    color: rgba(255,255,255,0.2);
    font-size: 9px;
}

/* 加载动画 */
#christmas-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020202;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    color: #FFD700;
    flex-direction: column;
    transition: opacity 1.2s;
}

/* LOVE LOADING 样式（参考示例图） */
.christmas-love-title {
    font-family: 'Comic Neue', 'Ma Shan Zheng', cursive;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #ff5a7a;
    text-transform: uppercase;
    transform: rotate(-2deg);
    text-shadow:
        1px 1px 0 rgba(255,255,255,0.08),
        0 0 18px rgba(255, 90, 122, 0.35);
    position: relative;
    margin-bottom: 18px;
}

.christmas-love-title::after {
    /* 手绘线条的 느낌 */
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    bottom: 6px;
    height: 12px;
    background: repeating-linear-gradient(
        135deg,
        rgba(255, 90, 122, 0.55) 0px,
        rgba(255, 90, 122, 0.55) 2px,
        rgba(255, 255, 255, 0.0) 2px,
        rgba(255, 255, 255, 0.0) 6px
    );
    opacity: 0.35;
    transform: rotate(-2deg);
    border-radius: 6px;
}

.christmas-loading-bar {
    width: 260px;
    height: 26px;
    border: 3px solid rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.35) inset;
    overflow: hidden;
    position: relative;
}

.christmas-loading-bar::before {
    /* 斜纹底纹 */
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,0.85) 0px,
        rgba(255,255,255,0.85) 10px,
        rgba(0,0,0,0.0) 10px,
        rgba(0,0,0,0.0) 20px
    );
    opacity: 0.18;
    pointer-events: none;
}

.christmas-loading-fill {
    height: 100%;
    width: 0%;
    background: rgba(255,255,255,0.85);
    background-image: repeating-linear-gradient(
        135deg,
        rgba(0,0,0,0.75) 0px,
        rgba(0,0,0,0.75) 10px,
        rgba(255,255,255,0.0) 10px,
        rgba(255,255,255,0.0) 20px
    );
    animation: christmasLoadingFill 1.6s ease-in-out infinite;
}

@keyframes christmasLoadingFill {
    0% { width: 0%; }
    60% { width: 92%; }
    100% { width: 100%; }
}

.christmas-loading-text {
    margin-top: 12px;
    font-family: 'Comic Neue', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.75);
}

/* 返回按钮 - 复用 L2D 界面风格 */
.christmas-back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 12px 24px;
    background: rgba(255, 107, 138, 0.15);
    border: 2px solid rgba(255, 107, 138, 0.3);
    border-radius: 25px;
    color: #d4546a;
    font-family: 'Ma Shan Zheng', 'Comic Neue', cursive;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(255, 107, 138, 0.1);
    pointer-events: auto;
}

.christmas-back-btn:hover {
    background: rgba(255, 107, 138, 0.25);
    color: #c4445a;
    transform: translateX(-5px);
    box-shadow: 0 4px 20px rgba(255, 107, 138, 0.25);
    border-color: rgba(255, 107, 138, 0.5);
}

.christmas-back-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
}

/* 隐藏视频元素 */
#christmas-input-video {
    display: none;
}

