:root {
    --gris: #6b6b8a;
}

.quiz {
    padding: 100 0 0 0;
    display: none;
}

@media only screen and (max-width : 1199px) {

    .quiz {
        padding: 50px 0 0 0;
    }
}

@media only screen and (max-width : 767px) {

    .quiz {
        padding: 25px 0 0 0;
    }
}

.quiz.active {
    display: block;
}

.quiz .quiz-wrapper {
    width: 100%;
    max-width: 800px;
    perspective: 1200px;
    margin: 0 auto;
}

/* Progress bar */
.quiz .progress-wrap {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.quiz .progress-bar {
    flex: 1;
    height: 4px;
    background-color: var(--vert);
    border-radius: 2px;
    overflow: hidden;
}

.quiz .progress-fill {
    height: 100%;
    background-color: var(--orange);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s cubic-bezier(.4, 0, .2, 1);
}

.quiz .progress-label {
    font-family: 'Roboto', monospace;
    font-size: 12px;
    color: var(--gris);
    white-space: nowrap;
}

/* 3D card stage */
.quiz .card-stage {
    position: relative;
    width: 100%;
    height: 380px;
    transform-style: preserve-3d;
}

.quiz .card-stage.result {
    /* height animated by GSAP */
}

.quiz .card-stage.result .score-panel.active {
    position: relative;
    inset: auto;
    width: 100%;
}

.quiz .question-card {
    position: absolute;
    inset: 0;
    background-color: var(--noir);
    border: 0px solid var(--vert);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    opacity: 0;
    transform: rotateY(90deg) scale(.9);
    pointer-events: none;
    transition: none;
}

@media only screen and (max-width : 767px) {

    .quiz .question-card {
        border-radius: 10px;
        padding: 20px;
    }
}

.quiz .question-card.active {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    pointer-events: all;
}

.quiz .question-number {
    font-family: "Dela Gothic One", Sans-serif;
    font-size: 30px;
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    transition: all .3s ease;
    flex: 0 0 auto;
    background: var(--blanc_casse);
    -webkit-mask: radial-gradient(circle 12px at top left, transparent 98%, black), radial-gradient(circle 12px at top right, transparent 98%, black), radial-gradient(circle 12px at bottom left, transparent 98%, black), radial-gradient(circle 12px at bottom right, transparent 98%, black);
    -webkit-mask-composite: source-in;
    mask: radial-gradient(circle 12px at top left, transparent 98%, black), radial-gradient(circle 12px at top right, transparent 98%, black), radial-gradient(circle 12px at bottom left, transparent 98%, black), radial-gradient(circle 12px at bottom right, transparent 98%, black);
    mask-composite: intersect;
    padding: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--noir);
    transform: rotate(-1deg) translateZ(0);
    will-change: transform;
}

.quiz .question-text {
    font-size: 26px;
    font-family: "Roboto", Sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--blanc_casse);
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
}

@media only screen and (max-width : 1199px) {

    .quiz .question-number {
        font-size: 24px;
    }

    .quiz .question-text {
        font-size: 21px;
    }
}

@media only screen and (max-width : 767px) {

    .quiz .question-number {
        font-size: 18px;
    }

    .quiz .question-text {
        font-size: 16px;
        padding: 0;
    }
}

.quiz .options {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

@media only screen and (max-width : 767px) {

    .quiz .options {
        flex-direction: column;
    }
}

.quiz .option {
    flex: 1;
    background-color: var(--vert);
    border: 0px solid #000;
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    font-family: 'Pipetton Sans', sans-serif;
    font-size: 24px;
    line-height: 1;
    color: var(--blanc_casse);
    text-align: center;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

@media only screen and (max-width : 1199px) {

    .quiz .option {
        border-radius: 10px;
        padding: 12px 16px;
        font-size: 20px;
    }
}

@media only screen and (max-width : 767px) {

    .quiz .option {
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 18px;
    }
}

.quiz .option:hover {
    background-color: var(--orange);
}

.quiz .option.correct {
    background-color: var(--orange);
    color: var(--blanc_casse);
}

.quiz .option.wrong {
    border-color: var(--orange);
    background-color: rgba(255, 107, 107, .08);
    color: var(--orange);
}

.quiz .option.disabled {
    pointer-events: none;
}

/* Score panel */
.quiz .score-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    position: absolute;
    inset: 0;
    background-color: var(--noir);
    border: 1px solid var(--vert);
    border-radius: 20px;
    padding: 40px;
    opacity: 0;
    transform: rotateY(90deg) scale(.9);
    pointer-events: none;
}

.quiz .score-panel.active {
    display: flex;
    pointer-events: all;
}

@media only screen and (max-width : 767px) {

    .quiz .score-panel {
        border-radius: 10px;
        padding: 20px;
    }
}

.quiz .score-big {
    display: none;
}

.quiz .score-result-title {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--violet);
    font-family: "Dela Gothic One", Sans-serif;
    margin: 0 0 1em 0;
    transition: all .3s ease;
    flex: 0 0 auto;
    background: var(--blanc_casse);
    -webkit-mask: radial-gradient(circle 12px at top left, transparent 98%, black), radial-gradient(circle 12px at top right, transparent 98%, black), radial-gradient(circle 12px at bottom left, transparent 98%, black), radial-gradient(circle 12px at bottom right, transparent 98%, black);
    -webkit-mask-composite: source-in;
    mask: radial-gradient(circle 12px at top left, transparent 98%, black), radial-gradient(circle 12px at top right, transparent 98%, black), radial-gradient(circle 12px at bottom left, transparent 98%, black), radial-gradient(circle 12px at bottom right, transparent 98%, black);
    mask-composite: intersect;
    padding: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--noir);
    transform: rotate(-1deg) translateZ(0);
    will-change: transform;
}

.quiz .score-result-body {
    font-size: 16px;
    color: var(--gris);
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.quiz .score-result-body p {
    color: var(--blanc_casse);
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 1em 0;
    font-family: "Roboto", Sans-serif;
    font-weight: 500;
}

.quiz .score-result-body p:last-child {
    margin: 0;
}



.quiz .score-result-body li {
    color: var(--blanc_casse);
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 .5em 0;
    font-family: "Roboto", Sans-serif;
    font-weight: 500;
}

.quiz .score-result-body li:last-child {
    margin: 0;
}

@media only screen and (max-width : 1199px) {

    .quiz .score-result-title {
        font-size: 24px;
    }

    .quiz .score-result-body p,
    .quiz .score-result-body li {
        font-size: 21px;
    }
}

@media only screen and (max-width : 767px) {

    .quiz .score-result-title br {
        display: none;
    }

    .quiz .score-result-title {
        font-size: 18px;
    }

    .quiz .score-result-body p,
    .quiz .score-result-body li {
        font-size: 16px;
    }
}

.quiz .score-result-body a {
    color: var(--vert);
    transition: all .3s ease;
}

.quiz .score-result-body a:hover {
    color: var(--orange);
}

.quiz .restart-btn {
    background-color: var(--vert);
    border: 0px solid #000;
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    font-family: 'Pipetton Sans', sans-serif;
    font-size: 24px;
    line-height: 1;
    color: var(--blanc_casse);
    text-align: center;
    transition: all .3s ease;
    margin-top: 25px;
}

.quiz .restart-btn:hover {
    background-color: var(--orange);
}

@media only screen and (max-width : 1199px) {

    .quiz .restart-btn {
        border-radius: 10px;
        padding: 12px 16px;
        font-size: 20px;
    }
}

@media only screen and (max-width : 767px) {

    .quiz .restart-btn {
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 18px;
    }
}

.quiz .score-counter {
    height: 0;
    overflow: hidden;
    position: fixed;
    /* top: 24px;
    right: 24px;
    font-family: 'Roboto', monospace;
    font-weight: 400;
    font-size: 13px;
    color: var(--gris); */
}

.quiz .score-counter span {
    color: var(--orange);
    font-weight: 700;
}

@media only screen and (max-width : 1199px) {


}

@media only screen and (max-width : 767px) {


}