/* ========================================
   基础样式 - CSS变量、全局样式、背景效果
   ======================================== */

:root {
    --bg-dark: #0b0d10;
    --bg-panel: rgba(20, 24, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);

    --primary-color: #00f2ff;
    --primary-dim: rgba(0, 242, 255, 0.1);

    --enemy-color: #ff2e4d;
    --enemy-dim: rgba(255, 46, 77, 0.1);

    --text-main: #ffffff;
    --text-muted: #636e72;

    --hp-color: #e74c3c;
    --shield-color: #95a5a6;
    --bar-bg: #1e2228;

    --stun-color: #3498db;

    --dice-bg: #ecf0f1;
    --dice-text: #2c3e50;
    --dice-locked-bg: #ffeaa7;
    --dice-locked-border: #d35400;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

/* Canvas 背景层 - 绘制移动网格 */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at center, #151a22 0%, #0b0d10 100%);
    pointer-events: none;
}

/* 扫描线效果 */
.bg-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-scanline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 242, 255, 0.06) 50%,
            transparent 100%);
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% {
        top: -300px;
    }

    100% {
        top: 100%;
    }
}
