.game-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 30px rgba(12, 5, 54, 0.7);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.main-game {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding: 1rem;
}

.game-info {
    flex: 0 0 220px;
    padding: 1rem;
}

#gameCanvas {
    width: 100%;
    max-width: 300px;
    height: auto;
    border: 2px solid #6c63ff;
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
    background: rgba(10, 8, 38, 0.85);
}

#nextPieceCanvas {
    width: 120px;
    height: 120px;
    border: 2px solid #6c63ff;
    border-radius: 0.5rem;
    background: rgba(10, 8, 38, 0.85);
    margin: 0 auto;
    display: block;
}

.game-info > div {
    background: rgba(26, 22, 68, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.game-info h3 {
    font-family: 'Orbitron', sans-serif;
    color: #e2e8f0;
    text-align: center;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 8px rgba(108, 99, 255, 0.8);
    font-size: 1.1rem;
}

.game-info .flex justify-between {
    margin-bottom: 0.8rem;
    font-family: 'Orbitron', sans-serif;
}

.game-info span:first-child {
    color: #a0aec0;
}

#score, #lines, #highScore {
    font-weight: bold;
    text-shadow: 0 0 5px;
}

#score { color: #9f7aea; text-shadow: 0 0 5px #9f7aea; }
#lines { color: #ed64a6; text-shadow: 0 0 5px #ed64a6; }
#highScore { color: #48bb78; text-shadow: 0 0 5px #48bb78; }

@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
    }
    .game-info {
        order: -1;
        margin-bottom: 20px;
        flex: 0 0 100%;
        display: flex;
        justify-content: space-around;
        gap: 1rem;
    }
    .game-info > div {
        margin-bottom: 0;
        flex: 1;
        min-width: 120px;
    }
}

/* 按钮基础样式 */
#startBtn, #pauseBtn, #restartBtn {
    position: relative;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

/* 按钮渐变背景与发光效果 */
#startBtn {
    background: linear-gradient(135deg, #4ade80 0%, #10b981 100%);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5), 0 0 20px rgba(74, 222, 128, 0.3);
}

#pauseBtn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5), 0 0 20px rgba(251, 191, 36, 0.3);
}

#restartBtn {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.5), 0 0 20px rgba(248, 113, 113, 0.3);
}

/* 按钮悬停效果 */
#startBtn:hover,
#pauseBtn:hover,
#restartBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 15px currentColor, 0 0 30px rgba(currentColor, 0.5);
}

/* 按钮点击效果 */
#startBtn:active,
#pauseBtn:active,
#restartBtn:active {
    transform: translateY(1px) scale(0.98);
}

/* 按钮图标样式 */
#startBtn i, #pauseBtn i, #restartBtn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* 按钮霓虹边框效果 */
#startBtn::before, #pauseBtn::before, #restartBtn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: 0.7rem;
    background: linear-gradient(45deg, currentColor, transparent 30%, transparent 70%, currentColor);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#startBtn:hover::before, #pauseBtn:hover::before, #restartBtn:hover::before {
    opacity: 1;
    animation: borderGlow 2s linear infinite;
}

/* 边框动画 */
@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    #startBtn, #pauseBtn, #restartBtn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}