/* ==================== 全局样式 ==================== */
:root {
    --color-primary: #00d4ff;
    --color-secondary: #764ba2;
    --color-danger: #ff006e;
    --color-success: #00ff88;
    --color-bg: #0a0e27;
    --color-bg-dark: #050810;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.6);
    --shadow-glow-strong: 0 0 40px rgba(0, 212, 255, 0.8);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Courier New', 'Monaco', monospace;
    background: var(--color-bg);
    color: var(--color-text);
}

#gameContainer {
    width: 100%;
    height: 100%;
    position: relative;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==================== HUD 基础 ==================== */
.hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
    font-size: 14px;
}

/* ==================== 顶部信息栏 ==================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.7) 100%);
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .icon {
    font-size: 24px;
    -webkit-text-fill-color: unset;
    background: none;
}

.stats {
    display: flex;
    gap: 50px;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
}

.stat-value {
    font-size: 24px;
    color: var(--color-primary);
    font-weight: bold;
    text-shadow: var(--shadow-glow);
    font-family: 'Courier New', monospace;
}

/* ==================== 中心信息 ==================== */
.center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 200;
}

/* ==================== 底部提示 ==================== */
.instructions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    letter-spacing: 1px;
    pointer-events: none;
}

.hint {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    background: rgba(0, 212, 255, 0.05);
}

/* ==================== 调试信息 ==================== */
.debug-info {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--color-primary);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-primary);
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .header {
        padding: 0 20px;
        height: 70px;
    }

    .logo {
        font-size: 16px;
    }

    .stats {
        gap: 30px;
    }

    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
    }

    .logo {
        font-size: 14px;
    }

    .stats {
        gap: 20px;
        width: 100%;
        justify-content: space-around;
    }

    .stat {
        align-items: center;
    }

    .stat-value {
        font-size: 18px;
    }

    .instructions {
        bottom: 20px;
        font-size: 12px;
    }

    .debug-info {
        bottom: 20px;
        right: 20px;
        font-size: 11px;
    }
}