/* =========================================================
   QUIZ BOX
========================================================= */

.lmq-box {
    position: relative;

    width: 100%;
    max-width: 100%;

    margin: 0 0 42px;
    padding: 34px 34px 30px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(20,13,28,.92),
            rgba(7,7,10,.96)
        );

    border: 1px solid rgba(154,92,255,.28);

    box-shadow:
        0 24px 70px rgba(0,0,0,.45);

    color: #f3edf8;
}

.lmq-box::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(154,92,255,.22),
            transparent 34%
        );

    pointer-events: none;
}

/* =========================================================
   STATES
========================================================= */

.lmq-start,
.lmq-game,
.lmq-result {
    position: relative;
    z-index: 2;

    display: none;
}

.lmq-start.is-active,
.lmq-game.is-active,
.lmq-result.is-active {
    display: block;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.lmq-kicker {
    margin: 0 0 12px;

    color: #b88cff;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;

    text-transform: uppercase;
}

.lmq-box h3,
.lmq-box h4 {
    margin: 0 0 16px;

    font-family: var(--lm-head, serif);
    font-weight: 500;
    letter-spacing: .06em;

    text-transform: uppercase;
}

.lmq-box h3 {
    font-size: clamp(25px, 3vw, 42px);
}

.lmq-box h4 {
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.35;
}

.lmq-intro {
    max-width: 680px;

    margin: 0 0 24px;

    color: #d2cad8;

    font-size: 16px;
    line-height: 1.7;
}

.lmq-count {
    margin: 0 0 10px;

    color: #a99db5;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;

    text-transform: uppercase;
}

/* =========================================================
   BUTTONS
========================================================= */

.lmq-button,
.lmq-answer,
.lmq-reset {
    border: 1px solid rgba(184,140,255,.42);

    background: rgba(154,92,255,.12);

    color: #fff;

    cursor: pointer;
    text-decoration: none;

    transition: .2s ease;
}

.lmq-button:hover,
.lmq-answer:hover,
.lmq-reset:hover {
    background: rgba(154,92,255,.25);

    border-color: rgba(184,140,255,.75);
}

.lmq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 22px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;

    text-transform: uppercase;
}

.lmq-button-secondary {
    background: rgba(255,255,255,.05);
}

.lmq-reset {
    margin-top: 8px;
    padding: 0;

    border: 0;
    background: transparent;

    color: #b88cff;

    font-size: 13px;

    text-decoration: underline;
}

.lmq-reset:hover {
    background: transparent;
    border: 0;

    color: #fff;
}

/* =========================================================
   PROGRESS
========================================================= */

.lmq-progress {
    height: 3px;

    margin-bottom: 20px;

    background: rgba(255,255,255,.08);
}

.lmq-progress span {
    display: block;

    height: 100%;

    background: #9a5cff;

    box-shadow:
        0 0 20px rgba(154,92,255,.7);
}

/* =========================================================
   ANSWERS
========================================================= */

.lmq-answers {
    display: grid;
    gap: 12px;

    margin-top: 22px;
}

.lmq-answer {
    width: 100%;

    padding: 16px 18px;

    text-align: left;

    color: #e9e0f0;

    font-size: 15px;
    line-height: 1.5;
}

/* =========================================================
   RESULT
========================================================= */

.lmq-result-image {
    float: right;

    width: 160px;
    max-width: 36%;

    margin: 0 0 18px 24px;

    border: 1px solid rgba(154,92,255,.3);

    box-shadow:
        0 18px 45px rgba(0,0,0,.35);
}

.lmq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin: 20px 0;
}

/* =========================================================
   QUIZ HUB
========================================================= */

.lmq-hub {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 0;

    width: 100%;
    max-width: 100%;

    margin: 0 0 42px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(10,10,14,.94),
            rgba(7,7,10,.98)
        );

    border: 1px solid rgba(154,92,255,.25);

    box-shadow:
        0 24px 70px rgba(0,0,0,.45);

    color: #f3edf8;
}

.lmq-hub-nav {
    padding: 24px 18px;

    border-right: 1px solid rgba(154,92,255,.22);

    background: rgba(255,255,255,.025);
}

.lmq-hub-list {
    display: grid;
    gap: 10px;

    max-height: 430px;

    overflow: auto;

    padding-right: 6px;
}

.lmq-hub-list::-webkit-scrollbar {
    width: 6px;
}

.lmq-hub-list::-webkit-scrollbar-thumb {
    background: rgba(154,92,255,.45);
}

.lmq-hub-item {
    width: 100%;

    padding: 15px 14px;

    border: 1px solid rgba(154,92,255,.20);

    background: rgba(255,255,255,.025);

    color: #eee;

    text-align: left;

    cursor: pointer;

    transition: .2s ease;
}

.lmq-hub-item span {
    display: block;

    font-family: var(--lm-head, serif);

    font-size: 15px;
    letter-spacing: .08em;
    line-height: 1.25;

    text-transform: uppercase;
}

.lmq-hub-item small {
    display: block;

    margin-top: 7px;

    color: #9d92aa;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;

    text-transform: uppercase;
}

.lmq-hub-item:hover,
.lmq-hub-item.is-active {
    background: rgba(154,92,255,.14);

    border-color: rgba(184,140,255,.62);

    box-shadow:
        inset 3px 0 0 #9a5cff;
}

/* =========================================================
   STAGE
========================================================= */

.lmq-hub-stage {
    min-width: 0;
}

.lmq-box.lmq-box-embedded {
    width: 100%;
    max-width: none;

    min-height: 430px;

    margin: 0;

    border: 0;

    box-shadow: none;

    background:
        linear-gradient(
            180deg,
            rgba(20,13,28,.55),
            rgba(7,7,10,.30)
        );
}

.lmq-empty {
    padding: 28px;

    color: #d2cad8;
}

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

@media (max-width: 860px) {

    .lmq-hub {
        grid-template-columns: 1fr;
    }

    .lmq-hub-nav {
        border-right: 0;
        border-bottom: 1px solid rgba(154,92,255,.22);
    }

    .lmq-hub-list {
        display: flex;

        overflow-x: auto;
        overflow-y: hidden;

        max-height: none;

        padding: 0 0 8px;
    }

    .lmq-hub-item {
        min-width: 220px;
    }

    .lmq-box.lmq-box-embedded {
        min-height: auto;
    }

}

@media (max-width: 760px) {

    .lmq-box {
        padding: 26px 22px;
    }

    .lmq-result-image {
        float: none;

        width: 100%;
        max-width: 240px;

        margin: 0 0 20px;
    }

    .lmq-actions {
        display: grid;
    }

    .lmq-button {
        width: 100%;
    }

}
