html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #05030a;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

.brick-page {
    position: relative;
    width: 100%;
    padding-top: 64px;
    min-height: calc(100vh - 64px);
    margin: 0;
    background: #05030a;
    overflow: hidden;
}

.brick-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brick-game {
    position: relative;
    width: 100%;
    height: calc(100vh - 100px);
    min-height: 500px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #080510;
    user-select: none;
    -webkit-user-select: none;
}

#brickCanvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    touch-action: none;
}

.brick-ui {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 60px;
    pointer-events: none;
    z-index: 5;
}

.brick-score,
.brick-highscore {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 10px rgba(168, 85, 247, 0.4);
}

.brick-score span,
.brick-highscore span {
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.85;
    color: #c084fc;
}

.brick-score strong,
.brick-highscore strong {
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

.brick-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 2, 10, 0.75);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.brick-overlay.hidden {
    display: none;
}

.brick-panel {
    width: min(400px, 85%);
    padding: 35px 25px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid rgba(145, 63, 240, 0.5);
    border-radius: 12px;
    background: rgba(14, 9, 32, 0.95);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(124, 58, 237, 0.3);
}

.brick-panel h3 {
    margin: 0 0 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.brick-panel-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.brick-panel button {
    width: 100%;
    margin-top: 10px;
    border: 1px solid rgba(145, 63, 240, 0.5);
    padding: 14px 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #7c3aed, #913ff0);
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.45);
    transition: all 0.25s ease;
}

.brick-panel button:hover {
    background: linear-gradient(135deg, #8b31ff, #a855f7);
    border-color: #a855f7;
    box-shadow: 0 0 32px rgba(180, 125, 255, 0.65);
    transform: translateY(-2px);
}

.brick-panel button:active {
    transform: translateY(0);
}

.game-over-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-over-score span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #c084fc;
}

.game-over-score strong {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
}

.brick-controls-hint {
    margin: 10px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.brick-controls-hint span {
    color: #a855f7;
    font-weight: 700;
}

/* Responsive Scaling */
@media (max-width: 768px) {
    .brick-ui {
        top: 15px;
        gap: 40px;
    }

    .brick-score strong,
    .brick-highscore strong {
        font-size: 27px;
    }

    .brick-panel {
        padding: 25px 18px;
    }
}