/*
 * Hardest Maze game V1 styles (loaded only on /games/hardest-maze-game-v1)
 */

.maze-runner-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-height: 640px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #2c375f;
    background: radial-gradient(circle at top, #1a2040 0%, #0f1220 46%);
    color: #edf1ff;
}

.maze-runner-hud {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 10px;
}

.maze-pill {
    border: 1px solid #3a4677;
    border-radius: 12px;
    background: #242b47;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.maze-pill-status {
    grid-column: span 2;
}

.maze-label {
    font-size: 11px;
    line-height: 1;
    color: #b7bfdc;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.maze-value {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    color: #edf1ff;
}

.maze-value.is-good {
    color: #66d97a;
}

.maze-value.is-warn {
    color: #ffd166;
}

.maze-value.is-bad {
    color: #ff7f7f;
}

#maze-time.is-warn {
    color: #ffd166;
}

.maze-runner-guide {
    margin: 0;
    color: #c9d2f2;
    font-size: 14px;
}

.maze-runner-canvas-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

#maze-runner-canvas {
    display: block;
    border: 1px solid #2d3760;
    border-radius: 12px;
    background: #0a0d18;
    max-width: 100%;
    height: auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.maze-runner-actions {
    display: flex;
    justify-content: flex-end;
}

.maze-leaderboard {
    width: min(320px, 100%);
    border: 1px solid #2f3b66;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(23, 30, 57, 0.98), rgba(15, 21, 40, 0.98));
    padding: 14px;
    align-self: flex-start;
}

.maze-leaderboard h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #edf1ff;
}

.maze-leaderboard-status {
    font-size: 13px;
    color: #aeb8df;
    margin-bottom: 10px;
}

.maze-leaderboard-status.is-error {
    color: #ff9b9b;
}

.maze-leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.maze-leaderboard-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.maze-leaderboard-item.is-current {
    border: 1px solid rgba(111, 170, 255, 0.6);
    background: rgba(72, 122, 220, 0.18);
}

.maze-leaderboard-rank {
    color: #92a2d8;
    font-weight: 700;
}

.maze-leaderboard-name {
    color: #e8eeff;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.maze-leaderboard-name:hover {
    color: #ffffff;
    text-decoration: underline;
}

.maze-leaderboard-score {
    color: #7fdb9a;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.maze-leaderboard-empty,
.maze-leaderboard-login {
    margin: 8px 0 0;
    color: #aeb8df;
    font-size: 13px;
}

.maze-runner-stage.is-fullscreen {
    min-height: calc(100vh - 170px);
}

.maze-runner-stage.is-fullscreen .maze-runner-canvas-wrap {
    min-height: calc(100vh - 380px);
}

.games-page--game.is-fullscreen .maze-leaderboard {
    display: none;
}

@media (max-width: 980px) {
    .maze-runner-hud {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .maze-pill-status {
        grid-column: span 2;
    }

    .maze-leaderboard {
        width: 100%;
    }
}
