/* 赛博朋克风格CSS */
:root {
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --neon-purple: #d300c5;
    --dark-bg: #0f0e17;
    --darker-bg: #080710;
    --medium-bg: #1a1a2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

#game-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: var(--medium-bg);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(5, 217, 232, 0.5);
    position: relative;
    overflow: hidden;
}

#game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 48%, var(--neon-blue) 49%, var(--neon-blue) 51%, transparent 52%);
    background-size: 10px 10px;
    opacity: 0.1;
    pointer-events: none;
}

#game-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    letter-spacing: 3px;
}

#game-screen {
    width: 100%;
    height: 400px;
    background-color: var(--darker-bg);
    border: 2px solid var(--neon-pink);
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

#game-canvas {
    width: 100%;
    height: 100%;
}

#game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

button {
    background-color: transparent;
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

button:hover {
    background-color: var(--neon-purple);
    color: var(--darker-bg);
    box-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
}

/* 响应式设计 */
@media (max-width: 600px) {
    #game-title {
        font-size: 1.8rem;
    }
    #game-screen {
        height: 300px;
    }
    button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* 闪烁效果动画 */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.blink {
    animation: blink 1.5s infinite;
}

/* 扫描线效果 */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    animation: scan 6s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* 数字雨效果容器 */
.digital-rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}