body {
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    animation: space-move 60s linear infinite;
}

@keyframes space-move {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 550px 550px, 350px 350px, 250px 250px; }
}

.game-container {
    text-align: center;
    padding: 20px;
}

#maze {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.5);
}

.row {
    display: flex;
}

.cell {
    width: 40px;
    height: 40px;
    border: 1px solid #0066cc;
    transition: all 0.3s ease;
}

.wall {
    background-color: #004080;
    box-shadow: inset 0 0 10px #0066cc;
    border-color: #0088ff;
}

.player {
    background-color: #ff3300;
    border-radius: 50%;
    box-shadow: 0 0 15px #ff3300;
    animation: ship-pulse 2s infinite;
}

@keyframes ship-pulse {
    0% { box-shadow: 0 0 15px #ff3300; }
    50% { box-shadow: 0 0 25px #ff3300; }
    100% { box-shadow: 0 0 15px #ff3300; }
}

.enemy {
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff00;
    animation: alien-pulse 1s infinite;
}

@keyframes alien-pulse {
    0% { transform: scale(0.8); box-shadow: 0 0 15px #00ff00; }
    50% { transform: scale(1); box-shadow: 0 0 25px #00ff00; }
    100% { transform: scale(0.8); box-shadow: 0 0 15px #00ff00; }
}

.goal {
    background-color: #ffff00;
    box-shadow: 0 0 15px #ffff00;
    position: relative;
}

.goal::after {
    content: '⭐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

.start {
    background-color: #00ffff;
    box-shadow: 0 0 15px #00ffff;
    position: relative;
}

.start::after {
    content: '🚀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.instructions {
    margin: 20px 0;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

#message {
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    font-size: 1.2em;
    min-height: 30px;
}

h1 {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.star {
    background-color: #fff;
    position: relative;
    animation: star-twinkle 1.5s infinite;
}

.star::after {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffff00;
    font-size: 24px;
    text-shadow: 0 0 10px #ffff00;
}

@keyframes star-twinkle {
    0% { box-shadow: 0 0 15px #ffff00; }
    50% { box-shadow: 0 0 25px #ffff00; }
    100% { box-shadow: 0 0 15px #ffff00; }
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.game-info span {
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    border: 1px solid #0066cc;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.horizontal-controls {
    display: flex;
    gap: 30px;
    margin: 10px 0;
}

.control-buttons button {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 204, 0.3);
    border: 2px solid #0066cc;
    border-radius: 50%;
    color: #00ffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-buttons button:active {
    background: rgba(0, 102, 204, 0.6);
    transform: scale(0.95);
}

/* 移动端样式调整 */
@media (max-width: 768px) {
    .cell {
        width: 30px;
        height: 30px;
    }

    .game-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .star::after {
        font-size: 18px;
    }

    h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .cell {
        width: 25px;
        height: 25px;
    }
} 