* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #102b43;
    --navy2: #1e4763;
    --teal: #218a7f;
    --teal-dark: #186e65;
    --teal-light: #e5f4f1;

    --gold: #bd8134;
    --gold-light: #fff6e6;

    --cream: #f5f3ed;
    --white: #ffffff;

    --text: #263b45;
    --muted: #6b7d84;
    --border: #d6dfe1;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--text);
}


/* HEADER */

.topbar {
    min-height: 110px;
    padding: 22px 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;

    background: var(--navy);
    color: white;
}

.level {
    color: #e8b765;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.7px;
}

.topbar h1 {
    margin: 7px 0 4px;
    font-size: 28px;
}

.topbar p {
    color: #bfd0da;
    font-size: 14px;
}

.timer-box {
    min-width: 160px;
    padding: 13px 20px;

    text-align: center;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
}

.timer-box span {
    display: block;
    color: #bfd0da;
    font-size: 10px;
}

.timer-box strong {
    display: block;
    margin-top: 4px;

    font-size: 26px;
    letter-spacing: 2px;
}


/* LAYOUT */

.container {
    width: 92%;
    max-width: 1000px;

    margin: 35px auto 60px;
}

.panel {
    background: white;

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow:
        0 7px 25px rgba(16,43,67,.06);
}


/* START */

.start-screen {
    padding: 45px;
    text-align: center;
}

.reading-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--teal),
            var(--navy2)
        );

    border-radius: 50%;

    font-size: 31px;
    font-weight: bold;
}

.eyebrow {
    color: var(--teal);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.start-screen h2 {
    margin: 8px 0;

    color: var(--navy);
    font-size: 32px;
}

.description {
    max-width: 700px;

    margin: 10px auto 28px;

    color: var(--muted);

    line-height: 1.7;
}


/* STATS */

.stats {
    max-width: 650px;

    margin: 0 auto 30px;

    display: grid;
    grid-template-columns: repeat(3,1fr);

    border: 1px solid var(--border);
    border-radius: 9px;

    overflow: hidden;
}

.stats div {
    padding: 18px;

    border-right:
        1px solid var(--border);
}

.stats div:last-child {
    border: none;
}

.stats strong {
    display: block;

    color: var(--teal);

    font-size: 26px;
}

.stats span {
    color: var(--muted);

    font-size: 12px;
}


/* TASK LIST */

.task-list {
    max-width: 720px;

    margin: auto;

    text-align: left;
}

.task-list div {
    min-height: 52px;

    display: flex;
    align-items: center;

    border-bottom:
        1px solid var(--border);
}

.task-list span {
    width: 48px;

    color: var(--teal);

    font-weight: bold;
}

.task-list p {
    flex: 1;
}

.task-list strong {
    color: var(--navy);
}


/* CHALLENGE */

.challenge-note {
    max-width: 720px;

    margin: 25px auto;

    padding: 15px 17px;

    color: #765329;
    background: var(--gold-light);

    border-left:
        4px solid var(--gold);

    text-align: left;

    line-height: 1.6;
    font-size: 13px;
}


/* BUTTONS */

button {
    font-family: inherit;
}

.primary-btn,
.secondary-btn,
.submit-btn {
    padding: 13px 24px;

    border-radius: 6px;

    font-weight: bold;
    font-size: 13px;

    cursor: pointer;

    transition: .2s;
}

.primary-btn {
    background: var(--teal);
    color: white;

    border:
        1px solid var(--teal);
}

.primary-btn:hover {
    background: var(--teal-dark);
}

.secondary-btn {
    background: white;
    color: var(--navy);

    border:
        1px solid var(--border);
}

.secondary-btn:hover {
    background: #f3f6f6;
}

.submit-btn {
    background: var(--navy);
    color: white;

    border:
        1px solid var(--navy);
}


/* PROGRESS */

.progress-info {
    margin-bottom: 7px;

    display: flex;
    justify-content: space-between;

    font-size: 12px;
}

#sectionName {
    color: var(--teal);
    font-weight: bold;
}

.progress-track {
    height: 7px;

    margin-bottom: 15px;

    background: #d9e1e2;

    border-radius: 20px;

    overflow: hidden;
}

#progressBar {
    width: 5%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--teal),
            var(--gold)
        );

    transition: .3s;
}


/* QUESTION */

.question-card {
    min-height: 480px;

    padding: 35px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 12px;

    box-shadow:
        0 5px 18px
        rgba(16,43,67,.04);
}

.question-label {
    color: var(--teal);

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1.5px;
}

.question-card h2 {
    margin: 8px 0;

    color: var(--navy);

    font-size: 22px;
}

.instruction {
    margin-bottom: 22px;

    color: var(--muted);

    line-height: 1.6;

    font-size: 14px;
}


/* PASSAGE */

.passage {
    margin-bottom: 22px;

    padding: 21px;

    background: #f5f8f8;

    border-left:
        4px solid var(--teal);

    line-height: 1.9;
}


/* OPTIONS */

.options {
    display: grid;

    gap: 10px;
}

.option {
    padding: 14px 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 7px;

    cursor: pointer;
}

.option:hover {
    background: var(--teal-light);

    border-color: var(--teal);
}

.option input {
    width: 18px;
    height: 18px;

    accent-color: var(--teal);
}


/* REORDER */

.order-list {
    display: grid;

    gap: 10px;
}

.order-item {
    padding: 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: #f6f8f8;

    border:
        1px solid var(--border);

    border-radius: 7px;
}

.order-position {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    background: var(--teal);

    border-radius: 50%;

    font-size: 12px;
    font-weight: bold;
}

.order-text {
    flex: 1;

    line-height: 1.65;
}

.order-controls {
    display: flex;

    gap: 5px;
}

.order-controls button {
    width: 34px;
    height: 32px;

    color: white;
    background: var(--navy);

    border: none;
    border-radius: 4px;

    cursor: pointer;
}


/* SELECT */

.blank-passage {
    font-size: 17px;

    line-height: 2.7;
}

.blank-select {
    padding: 7px 10px;

    color: var(--navy);
    background: white;

    border:
        2px solid var(--teal);

    border-radius: 5px;

    font-weight: bold;
}


/* WORD BANK */

.word-bank {
    margin-bottom: 22px;

    padding: 18px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    background: var(--teal-light);

    border-radius: 8px;
}

.word {
    padding: 9px 15px;

    color: var(--navy);
    background: white;

    border:
        1px solid var(--teal);

    border-radius: 5px;

    font-weight: bold;

    cursor: grab;
}

.word:hover {
    color: white;
    background: var(--teal);
}

.drop-zone {
    min-width: 145px;
    min-height: 36px;

    padding: 3px 12px;

    display: inline-block;

    vertical-align: middle;

    background: white;

    border:
        2px dashed #829ba0;

    border-radius: 5px;

    text-align: center;
    line-height: 28px;

    cursor: pointer;
}

.drop-zone.filled {
    background: var(--teal-light);

    border-color: var(--teal);
    border-style: solid;

    font-weight: bold;
}


/* NAVIGATION */

.navigation {
    margin-top: 20px;

    display: flex;
    justify-content: space-between;

    gap: 10px;
}


/* RESULT */

.result-screen {
    padding: 50px;

    text-align: center;
}

.result-medal {
    width: 65px;
    height: 65px;

    margin: 0 auto 17px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--gold),
            #e0ac51
        );

    border-radius: 50%;

    line-height: 65px;

    font-size: 29px;
}

.result-screen h2 {
    margin-top: 8px;

    color: var(--navy);
}

.score-circle {
    width: 160px;
    height: 160px;

    margin: 28px auto;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border:
        11px solid var(--teal-light);

    border-top-color: var(--gold);

    border-radius: 50%;
}

.score-circle strong {
    color: var(--navy);

    font-size: 36px;
}

.score-circle span {
    color: var(--muted);

    font-size: 11px;
}

#resultMessage {
    max-width: 640px;

    margin: auto;

    color: var(--muted);

    line-height: 1.7;
}

.result-stats {
    max-width: 650px;

    margin: 30px auto;

    display: grid;
    grid-template-columns:
        repeat(4,1fr);
}

.result-stats div {
    border-right:
        1px solid var(--border);
}

.result-stats div:last-child {
    border: none;
}

.result-stats strong {
    display: block;

    color: var(--navy);

    font-size: 25px;
}

.result-stats span {
    color: var(--muted);

    font-size: 11px;
}


/* UTILITY */

.hidden {
    display: none !important;
}

footer {
    padding: 25px;

    color: var(--muted);

    font-size: 12px;

    text-align: center;
}


/* MOBILE */

@media(max-width:700px) {

    .topbar {
        flex-direction: column;

        text-align: center;
    }

    .start-screen,
    .question-card,
    .result-screen {
        padding: 24px 18px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stats div {
        border-right: none;

        border-bottom:
            1px solid var(--border);
    }

    .result-stats {
        grid-template-columns:
            repeat(2,1fr);

        gap: 20px;
    }

    .result-stats div {
        border: none;
    }
}