/* =========================================
   1. 基础样式与变量 (Core & Reset)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=Share+Tech+Mono&display=swap');

:root {
    --sand-gold: #D4AF37;
    --deep-space: #050505;
    --ribbon-white: rgba(220, 230, 255, 0.08);
    /* 极淡的透明度 */
}

body {
    background-color: var(--deep-space);
    background: radial-gradient(circle at center, #110500 0%, #000000 100%) !important;
    /* Force lock background found */
    color: var(--sand-gold);
    font-family: 'Share Tech Mono', 'Noto Serif SC', sans-serif;
    overflow: hidden;
    margin: 0;
    height: 100vh;
    width: 100vw;
    position: relative;
    /* Transition only color for text, NOT background */
    transition: color 1.5s ease;
}

/* 游戏标题 */
.game-title {
    position: absolute;
    top: 5%;
    width: 100%;
    /* Use flexbox for image + text alignment */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Adjust spacing between logo and text */

    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    z-index: 50;
    pointer-events: none;
    letter-spacing: 8px;
    opacity: 0.8;
}

/* Title Logo styling */
.title-logo {
    height: 2.5em;
    width: auto;
    object-fit: contain;
    letter-spacing: normal;
    /* Move logo up and slightly right as requested */
    transform: translate(30px, -8px);
}

/* 粒子层画布 */
#canvas-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 氛围层 (Shared) */
.atmosphere-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease, background-color 2s ease;
    pointer-events: none;
}

/* 隐藏与透明工具类 */
.hidden {
    display: none !important;
}

.opacity-0 {
    opacity: 0;
}

/* 通用控制按钮 */
.controls {
    pointer-events: auto;
    cursor: pointer;
    border: 1px solid var(--sand-gold);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--sand-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
    z-index: 100;
}

.controls:hover {
    background: var(--sand-gold);
    color: black;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* =========================================
   Mobile Responsiveness (Base)
   ========================================= */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.1rem;
        top: 1%;
        flex-direction: column;
        gap: 3px;
        letter-spacing: 1px;
    }

    .title-logo {
        height: 1.6em;
        transform: none;
    }
}