* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

#game-container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #64c8ff;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
    background: linear-gradient(90deg, #64c8ff, #ff64c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#instructions {
    background: rgba(20, 30, 50, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    border-left: 4px solid #64c8ff;
}

#instructions p {
    color: #96dcc8;
    margin-bottom: 10px;
    font-size: 1.1em;
}

#instructions ul {
    list-style: none;
    padding-left: 20px;
}

#instructions li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #e0f0ff;
}

#instructions li:before {
    content: "•";
    color: #64c8ff;
    position: absolute;
    left: 0;
}

#instructions strong {
    color: #ffdc64;
}

#game-canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid rgba(100, 200, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

#game-canvas canvas {
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(100, 200, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    #game-container {
        padding: 10px;
    }
    
    #instructions {
        padding: 15px;
    }
    
    #game-canvas {
        min-height: 400px;
    }
}

/* 游戏状态指示器 */
.game-status {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 0.9em;
}

.warning {
    color: #ff6464;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}