:root {
    --lx-navy: #12395b;
    --lx-border: rgba(0, 0, 0, .08);
}

body {
    padding-bottom: 78px;
}

.lx-metric {
    height: 100%;
}

.lx-mode-icon {
    width: 44px;
    height: 44px;

    display: inline-grid;
    place-items: center;

    border-radius: 12px;

    background:
        rgba(13, 110, 253, .10);

    font-size: 1.4rem;
    font-weight: 700;
}

.lx-exam-teaser {
    background:
        linear-gradient(
            135deg,
            rgba(18, 57, 91, .09),
            transparent
        );
}

.lx-exam-shell {
    max-width: 980px;
    margin-inline: auto;
}

.lx-exam-stat {
    text-align: center;
}

.lx-exam-stat strong {
    display: block;
    font-size: 2rem;
}

.lx-exam-stat span {
    color: var(--bs-secondary-color);
    font-size: .9rem;
}

.lx-exam-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lx-exam-timer {
    min-width: 120px;

    padding: .65rem .9rem;

    border-radius: .8rem;

    background: var(--lx-navy);
    color: white;

    font-weight: 700;
    text-align: center;

    font-variant-numeric:
        tabular-nums;
}

.lx-exam-timer.warning {
    background: #a15c00;
}

.lx-exam-timer.danger {
    background: #b02a37;
}

.lx-exam-nav {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(38px, 1fr)
        );

    gap: .4rem;
}

.lx-exam-nav-item {
    min-height: 38px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--lx-border);

    border-radius: .55rem;

    text-decoration: none;

    color: inherit;

    background:
        var(--bs-body-bg);

    font-size: .85rem;
}

.lx-exam-nav-item.answered {
    border-color:
        var(--bs-success);
}

.lx-exam-nav-item.marked {
    box-shadow:
        inset 0 0 0 2px
        rgba(255, 193, 7, .8);
}

.lx-exam-nav-item.active {
    border-color:
        var(--bs-primary);

    background:
        var(--bs-primary);

    color: white;
}

.lx-result-symbol {
    width: 72px;
    height: 72px;

    margin: 0 auto 1rem;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: white;

    font-size: 2.4rem;
}

.lx-result-symbol.success {
    background:
        var(--bs-success);
}

.lx-result-symbol.danger {
    background:
        var(--bs-danger);
}

.lx-result-percent {
    margin: 1rem 0;

    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.lx-mobile-nav {
    position: fixed;

    z-index: 1030;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;

    justify-content:
        space-around;

    padding:
        .45rem
        .5rem
        calc(
            .45rem
            + env(safe-area-inset-bottom)
        );

    background:
        var(--bs-body-bg);

    border-top:
        1px solid var(--lx-border);

    box-shadow:
        0 -4px 20px
        rgba(0, 0, 0, .06);
}

.lx-mobile-nav a {
    flex: 1;

    max-width: 120px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: .15rem;

    text-decoration: none;

    color:
        var(--bs-secondary-color);

    font-size: .72rem;
    font-weight: 600;
}

.lx-mobile-nav strong {
    font-size: 1.05rem;
}

@media (min-width: 992px) {

    body {
        padding-bottom: 0;
    }

    .lx-mobile-nav {
        display: none;
    }
}

@media (max-width: 767.98px) {

    .lx-result-percent {
        font-size: 2.8rem;
    }
}
