@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=M+PLUS+Rounded+1c:wght@700&display=swap');

.block-breaker-game-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.block-breaker-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    text-align: center;
    color: white;
}

.block-breaker-header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.block-breaker-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    gap: 20px;
    flex-wrap: wrap;
}

.block-breaker-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.block-breaker-stat-label {
    font-size: 12px;
    opacity: 0.9;
}

.block-breaker-stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
}

.block-breaker-canvas-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: #1a1a2e;
}

.block-breaker-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.block-breaker-controls {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.block-breaker-btn {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.block-breaker-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.block-breaker-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.block-breaker-btn-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.block-breaker-btn-push {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.block-breaker-btn-multiball {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.block-breaker-btn-download {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    display: none;
}

.block-breaker-cooldown-indicator {
    display: inline-block;
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-left: 10px;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
}

.block-breaker-cooldown-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: white;
    transition: width 0.1s linear;
    width: 0;
}

.block-breaker-instructions {
    padding: 20px;
    background: white;
    text-align: center;
    border-top: 2px solid #f0f0f0;
}

.block-breaker-instructions h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 18px;
}

.block-breaker-instructions p {
    color: #666;
    line-height: 1.6;
    margin: 5px 0;
}

.block-breaker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: blockBreakerFadeIn 0.3s ease;
}

@keyframes blockBreakerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.block-breaker-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    animation: blockBreakerSlideUp 0.3s ease;
}

@keyframes blockBreakerSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.block-breaker-modal-content h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    color: #667eea;
    margin-bottom: 20px;
}

.block-breaker-modal-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    white-space: pre-line;
}

/* Responsive */
@media (max-width: 768px) {
    .block-breaker-game-container {
        margin: 20px;
    }
    
    .block-breaker-header h1 {
        font-size: 18px;
    }
    
    .block-breaker-stat {
        min-width: 80px;
        padding: 8px 15px;
    }
    
    .block-breaker-stat-value {
        font-size: 20px;
    }
    
    .block-breaker-canvas-container {
        height: 400px;
    }
    
    .block-breaker-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .block-breaker-cooldown-indicator {
        width: 60px;
    }
}
