/* Block Breaker Game - Clean Design */
.block-breaker-container {
    max-width: 800px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    border: 2px solid #4285f4;
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.game-title {
    color: #fff;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-controls-panel {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Game Stats */
.game-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    display: block;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 10px;
    min-width: 60px;
}

#score { color: #4285f4; }
#lives { color: #34a853; }
#level { color: #fbbc05; }

/* Game Buttons */
.game-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.game-btn {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
    letter-spacing: 0.3px;
}

.game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

.game-btn:active {
    transform: translateY(0);
}

.pause-btn {
    background: linear-gradient(135deg, #fbbc05, #ea4335);
}

.sound-btn {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sound-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Game Canvas Wrapper */
.game-wrapper {
    position: relative;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid #4285f4;
    box-shadow: 0 0 25px rgba(66, 133, 244, 0.4);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Game Message */
.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
    padding: 30px 40px;
    border-radius: 16px;
    border: 2px solid #4285f4;
    backdrop-filter: blur(10px);
}

.message-text {
    font-size: 42px;
    font-weight: 800;
    color: #4285f4;
    text-shadow: 0 0 20px rgba(66, 133, 244, 0.7);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sub-message {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Instructions */
.game-instructions {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 18px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-instructions p {
    margin: 8px 0;
}

.key {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 0 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 24px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .block-breaker-container {
        margin: 15px;
        padding: 20px;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .game-controls-panel {
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }
    
    .game-stats {
        justify-content: center;
        width: 100%;
    }
    
    .game-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .message-text {
        font-size: 32px;
    }
    
    .sub-message {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .game-title {
        font-size: 24px;
    }
    
    .game-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 70px;
    }
    
    .stat-value {
        font-size: 20px;
        padding: 6px 10px;
    }
    
    .game-btn {
        padding: 10px 18px;
        min-width: 100px;
        font-size: 14px;
    }
    
    .message-text {
        font-size: 28px;
    }
    
    .sub-message {
        font-size: 14px;
    }
}

/* Animation for score updates */
@keyframes scoreUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.score-update {
    animation: scoreUpdate 0.3s ease;
}