:root {
    --black: #070707;
    --ruby: #d3134b;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.52);
    --line: rgba(255, 255, 255, 0.13);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(211, 19, 75, 0.10),
            transparent 35%
        ),
        #070707;

    color: white;

    font-family: "Inter", sans-serif;
}


button {
    font-family: inherit;
}


.quiz-page {
    min-height: 100vh;

    display: flex;

    flex-direction: column;
}



/* =================================
   NAV
================================= */

.quiz-nav {
    height: 86px;

    padding: 0 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}


.logo {
    color: white;

    text-decoration: none;

    font-size: 20px;

    font-weight: 700;

    letter-spacing: 0.07em;
}


.logo span {
    color: var(--ruby);
}


.quiz-nav nav {
    display: flex;

    gap: 34px;
}


.quiz-nav nav a {
    color: rgba(255, 255, 255, 0.48);

    text-decoration: none;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.16em;

    transition: 0.25s ease;
}


.quiz-nav nav a:hover {
    color: white;
}



/* =================================
   MAIN
================================= */

.quiz-main {
    width: min(900px, 90%);

    margin: auto;

    padding: 90px 0 110px;
}


.quiz-heading {
    margin-bottom: 55px;
}


.eyebrow {
    margin-bottom: 20px;

    color: var(--ruby);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.3em;
}


.quiz-heading h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(80px, 11vw, 135px);

    font-weight: 500;

    line-height: 0.72;

    letter-spacing: -0.04em;
}


.quiz-heading h1 span {
    color: transparent;

    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
}


.intro {
    width: 400px;

    max-width: 100%;

    margin-top: 38px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}



/* =================================
   QUIZ CARD
================================= */

.quiz-card,
.result-card {
    padding: 38px;

    border: 1px solid rgba(211, 19, 75, 0.45);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.01)
        );

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25);
}


.quiz-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    color: rgba(255, 255, 255, 0.4);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.18em;
}


#scoreDisplay {
    color: var(--ruby);
}



/* =================================
   PROGRESS
================================= */

.progress {
    width: 100%;

    height: 2px;

    margin-top: 18px;

    background: rgba(255, 255, 255, 0.1);
}


.progress-bar {
    width: 10%;

    height: 100%;

    background: var(--ruby);

    transition: width 0.35s ease;
}



/* =================================
   QUESTION
================================= */

.question-area {
    margin-top: 55px;
}


.question-label {
    margin-bottom: 18px;

    color: var(--ruby);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.22em;
}


.question-area h2 {
    min-height: 105px;

    max-width: 760px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(38px, 5vw, 58px);

    font-weight: 500;

    line-height: 0.95;
}



/* =================================
   ANSWERS
================================= */

.answers {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 35px;
}


.answer-button {
    min-height: 68px;

    padding: 15px 20px;

    border: 1px solid var(--line);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.025);

    color: white;

    text-align: left;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.answer-button:hover:not(:disabled) {
    border-color: var(--ruby);

    background: rgba(211, 19, 75, 0.08);

    transform: translateY(-2px);
}


.answer-button.correct {
    border-color: #32b875;

    background: rgba(50, 184, 117, 0.12);
}


.answer-button.wrong {
    border-color: var(--ruby);

    background: rgba(211, 19, 75, 0.12);
}


.answer-button:disabled {
    cursor: default;
}



/* =================================
   FEEDBACK
================================= */

.feedback {
    min-height: 24px;

    margin-top: 20px;

    color: var(--ruby);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.08em;
}



/* =================================
   NEXT
================================= */

.next-button {
    display: none;

    margin-top: 20px;

    padding: 15px 24px;

    border: 1px solid var(--ruby);

    background: var(--ruby);

    color: white;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.15em;

    cursor: pointer;

    transition: 0.25s ease;
}


.next-button:hover {
    background: #b80f40;

    transform: translateY(-2px);
}



/* =================================
   RESULT
================================= */

.result-card {
    display: none;

    text-align: center;
}


.result-label {
    color: var(--ruby);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.25em;
}


.result-card h2 {
    margin-top: 20px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(70px, 9vw, 110px);

    font-weight: 500;

    line-height: 0.75;
}


.result-card h2 span {
    color: transparent;

    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
}


.final-score {
    margin: 55px auto 25px;

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.final-score span {
    color: rgba(255, 255, 255, 0.35);

    font-size: 9px;

    letter-spacing: 0.2em;
}


.final-score strong {
    color: var(--ruby);

    font-size: 60px;

    letter-spacing: -0.04em;
}


.result-message {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


.result-actions {
    margin-top: 35px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 25px;
}


.result-actions button {
    padding: 14px 25px;

    border: 1px solid var(--ruby);

    background: var(--ruby);

    color: white;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.14em;

    cursor: pointer;
}


.result-actions a {
    color: rgba(255, 255, 255, 0.5);

    text-decoration: none;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.12em;
}


.result-actions a:hover {
    color: white;
}



/* =================================
   FOOTER
================================= */

.quiz-footer {
    margin-top: auto;

    padding: 30px 7%;

    display: flex;

    justify-content: space-between;

    border-top: 1px solid var(--line);
}


.quiz-footer span {
    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.12em;
}


.quiz-footer p {
    color: rgba(255, 255, 255, 0.3);

    font-size: 8px;

    letter-spacing: 0.18em;
}



/* =================================
   MOBILE
================================= */

@media (max-width: 700px) {

    .quiz-nav {
        height: auto;

        padding: 22px 18px;

        flex-direction: column;

        gap: 22px;
    }


    .quiz-nav nav {
        width: 100%;

        justify-content: space-between;

        gap: 7px;
    }


    .quiz-nav nav a {
        font-size: 7px;
    }


    .quiz-main {
        width: calc(100% - 30px);

        padding: 70px 0 80px;
    }


    .quiz-heading h1 {
        font-size: 76px;
    }


    .quiz-card,
    .result-card {
        padding: 25px;

        border-radius: 14px;
    }


    .question-area {
        margin-top: 40px;
    }


    .question-area h2 {
        font-size: 40px;

        min-height: 130px;
    }


    .answers {
        grid-template-columns: 1fr;

        gap: 9px;
    }


    .result-actions {
        flex-direction: column;
    }


    .quiz-footer {
        padding: 25px 20px;
    }

}