﻿/* =============================================
   Brick Breaker Game - WordPress Plugin CSS
   ============================================= */

.meri-game-wrapper {
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

/* --- Header --- */
.meri-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    flex-wrap: wrap;
    gap: 10px;
}

.meri-game-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #e94560;
}

.meri-game-scores {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meri-game-scores span {
    font-size: 14px;
    color: #a8b2d8;
    background: rgba(255,255,255,0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.meri-game-scores strong {
    color: #e2e8f0;
    font-size: 16px;
}

/* --- Canvas Wrapper --- */
.meri-game-canvas-wrap {
    position: relative;
    background: #0a0a1a;
    line-height: 0;
}

#mg-canvas {
    display: block;
    width: 100%;
    cursor: none;
    outline: none;
    background: linear-gradient(180deg, #0a0a1a 0%, #0d1b2a 100%);
}

/* --- Overlay (Start / Game Over / Win) --- */
.mg-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 26, 0.88);
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.mg-overlay.hidden {
    display: none;
}

.mg-overlay-box {
    text-align: center;
    color: #e2e8f0;
    padding: 40px 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 360px;
}

.mg-overlay-box h2 {
    font-size: 32px;
    margin: 0 0 12px;
    color: #e94560;
    text-shadow: 0 0 20px rgba(233,69,96,0.5);
}

.mg-overlay-box p {
    font-size: 15px;
    color: #a8b2d8;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Button --- */
.mg-btn {
    background: linear-gradient(135deg, #e94560, #c62a47);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(233,69,96,0.4);
}

.mg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(233,69,96,0.6);
}

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

/* --- Controls bar --- */
.meri-game-controls {
    background: #0f0f23;
    color: #555e7a;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.meri-game-controls strong {
    color: #7986cb;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .meri-game-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .meri-game-scores {
        gap: 8px;
    }
    .meri-game-scores span {
        font-size: 12px;
        padding: 3px 8px;
    }
    .mg-overlay-box {
        padding: 24px 20px;
        margin: 16px;
    }
    .mg-overlay-box h2 {
        font-size: 24px;
    }
}
