/* ============================================================
   MAZE CHASE
============================================================ */

.maze-chase-wrapper {
    width: 100%;
    max-width: 640px;

    padding: 20px;

    text-align: center;
}

.maze-chase-topbar {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 8px;

    margin-bottom: 12px;
}

.maze-chase-stat {
    padding: 9px 10px;

    border: 1px solid #35515c;
    border-radius: 4px;

    background: #10242c;
}

.maze-chase-stat span {
    display: block;

    margin-bottom: 3px;

    color: #9fb5be;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.maze-chase-stat strong {
    display: block;

    color: #ffffff;

    font-size: 17px;
}

/* ============================================================
   BOARD
============================================================ */

.maze-chase-board {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
}

#maze-chase-canvas {
    display: block;

    width: 100%;
    max-width: 560px;
    height: auto;

    border: 1px solid #35515c;
    border-radius: 4px;

    background: #07171d;

    image-rendering: pixelated;
}

/* ============================================================
   STATUS
============================================================ */

.maze-chase-status {
    min-height: 20px;

    margin-top: 12px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}

.maze-chase-start {
    margin-top: 10px;
}

/* ============================================================
   CONTROLS
============================================================ */

.maze-chase-controls {
    margin-top: 13px;

    color: #afc3cb;

    font-size: 10px;
    line-height: 1.6;
}

.maze-chase-controls i {
    margin: 0 1px;

    color: #d3e6ec;
}

/* ============================================================
   MOBILE CONTROLS
============================================================ */

.maze-chase-mobile-controls {
    display: none;

    width: 190px;

    margin: 18px auto 0;
}

.maze-chase-mobile-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.maze-chase-mobile-row + .maze-chase-mobile-row {
    margin-top: 6px;
}

.maze-chase-mobile-controls button {
    width: 54px;
    height: 46px;

    border: 1px solid #52717c;
    border-radius: 4px;

    background: #17343f;
    color: #ffffff;

    font-size: 15px;

    cursor: pointer;
}

.maze-chase-mobile-controls button:hover {
    background: #1e4451;
}

.maze-chase-mobile-controls button:active {
    transform: translateY(1px);
}

/* ============================================================
   POWER MODE
============================================================ */

.maze-chase-wrapper.is-powered .maze-chase-status {
    color: #ffd45a;
}

/* ============================================================
   GAME OVER
============================================================ */

.maze-chase-wrapper.is-game-over #maze-chase-canvas {
    opacity: .82;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 800px) {

    .maze-chase-mobile-controls {
        display: block;
    }

}

@media (max-width: 600px) {

    .maze-chase-wrapper {
        padding: 12px;
    }

    .maze-chase-topbar {
        gap: 5px;
    }

    .maze-chase-stat {
        padding: 8px 6px;
    }

    .maze-chase-stat strong {
        font-size: 15px;
    }

    .maze-chase-controls {
        font-size: 9px;
    }

}

@media (max-width: 420px) {

    .maze-chase-wrapper {
        padding: 8px;
    }

    .maze-chase-stat span {
        font-size: 8px;
    }

    .maze-chase-stat strong {
        font-size: 14px;
    }

    .maze-chase-mobile-controls {
        width: 180px;
    }

    .maze-chase-mobile-controls button {
        width: 50px;
        height: 44px;
    }

}