* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 游戏标题 */
.game-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.score, .level {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.score:hover, .level:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.game-area {
    position: relative;
    margin-bottom: 20px;
}

#gameCanvas {
    border: 3px solid #667eea;
    border-radius: 10px;
    background-color: #87ceeb;
    cursor: crosshair;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s;
}

#gameCanvas:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.gamerise-section {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

#restartBtn {
    padding: 12px 28px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#restartBtn:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 87, 108, 0.4);
}

#restartBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(245, 87, 108, 0.5);
    transform: scale(0.97);
}

/* 游戏人升链接样式 */
.gamerise-link {
    padding: 12px 28px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gamerise-link:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.4);
}

.gamerise-link:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.5);
}

/* 添加响应式设计 */
@media (max-width: 650px) {
    .game-container {
        padding: 15px;
    }
    
    .game-title {
        font-size: 24px;
    }
    
    .score, .level {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
        max-width: 400px;
    }
    
    #restartBtn {
        padding: 10px 24px;
        font-size: 16px;
    }
    
    .gamerise-link {
        padding: 10px 24px;
        font-size: 16px;
    }
}