*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: 'Segoe UI', Roboto, sans-serif;
    color:#fff;
    min-height:100vh;
    /* 和网站统一霓虹游戏背景 */
    background:
        radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.9) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(37, 99, 235, 0.9) 0%, transparent 50%),
        linear-gradient(135deg, #050508 0%, #1e1b4b 45%, #312e81 100%);
    background-attachment:fixed;
    background-size:cover;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.game-wrapper{
    width:100%;
    max-width:800px;
}

.game-ui{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 24px;
    margin-bottom:12px;
    background:rgba(10,10,30,0.65);
    backdrop-filter:blur(10px);
    border-radius:16px;
    border:1px solid rgba(139,92,246,0.35);
    box-shadow:0 0 20px rgba(124,58,237,0.4);
}

.game-title{
    font-size:26px;
    font-weight:800;
    color:#fde047;
    text-shadow:0 0 12px rgba(253,224,71,0.8);
}

.score-panel{
    font-size:20px;
    font-weight:700;
    color:#e0e7ff;
}

.game-canvas{
    width:100%;
    height:520px;
    background:linear-gradient(135deg, rgba(30,27,75,0.85), rgba(49,46,129,0.85));
    border-radius:20px;
    border:1px solid rgba(139,92,246,0.45);
    box-shadow:0 0 30px rgba(124,58,237,0.5);
    position:relative;
    overflow:hidden;
}

.control-tip{
    text-align:center;
    margin:10px 0;
    color:#a78bfa;
    font-size:14px;
}

.btn-primary{
    background:linear-gradient(135deg, #fde047, #f59e0b);
    color:#111827;
    font-weight:700;
    padding:12px 28px;
    border-radius:999px;
    border:none;
    font-size:16px;
    cursor:pointer;
    transition:0.2s ease;
    box-shadow:0 0 15px rgba(253,224,71,0.7),0 4px 12px rgba(0,0,0,0.3);
    display:block;
    margin:0 auto;
}

.btn-primary:hover{
    transform:translateY(-2px);
    box-shadow:0 0 25px rgba(253,224,71,0.9),0 6px 20px rgba(0,0,0,0.4);
}

/* 游戏内元素样式 */
.player{
    position:absolute;
    width:44px;
    height:44px;
    background:#7c3aed;
    border-radius:50%;
    box-shadow:0 0 18px #7c3aed;
}

.bullet{
    position:absolute;
    width:6px;
    height:16px;
    background:#fde047;
    border-radius:3px;
    box-shadow:0 0 10px #fde047;
}

.enemy{
    position:absolute;
    width:36px;
    height:36px;
    background:#ec4899;
    border-radius:50%;
    box-shadow:0 0 14px #ec4899;
}

.explode{
    position:absolute;
    width:12px;
    height:12px;
    background:#f59e0b;
    border-radius:50%;
    box-shadow:0 0 12px #f59e0b;
    pointer-events:none;
}

@media(max-width:768px){
    .game-ui{
        flex-direction:column;
        gap:8px;
    }
    .game-canvas{
        height:420px;
    }
}
