* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #18344e;
    --navy2: #234d68;
    --teal: #248b80;
    --teal-dark: #1b7169;
    --teal-light: #e6f4f2;
    --cream: #f5f3ed;
    --white: #ffffff;
    --text: #273b45;
    --muted: #6c7d84;
    --border: #d7e0e1;
    --red: #c54c4c;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
}

.topbar {
    background: var(--navy);
    color: white;
    min-height: 110px;
    padding: 22px 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.level {
    color: #78d7ca;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.6px;
}

.topbar h1 {
    margin: 7px 0 4px;
    font-size: 27px;
}

.topbar p {
    color: #bfd0d9;
    font-size: 14px;
}

.timer-card {
    min-width: 155px;
    text-align: center;
    padding: 12px 20px;

    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
}

.timer-card small {
    display: block;
    color: #bfd0d9;
    font-size: 10px;
    margin-bottom: 4px;
}

.timer-card strong {
    font-size: 26px;
    letter-spacing: 2px;
}

.container {
    width: 92%;
    max-width: 1000px;
    margin: 35px auto 60px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(20,50,70,.05);
}

.start-screen {
    padding: 45px;
    text-align: center;
}

.reading-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--teal);
    color: white;

    font-size: 30px;
    font-weight: bold;
}

.eyebrow {
    color: var(--teal);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.start-screen h2 {
    margin: 8px 0;
    font-size: 31px;
    color: var(--navy);
}

.intro {
    max-width: 680px;
    margin: 10px auto 28px;
    color: var(--muted);
    line-height: 1.7;
}

.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 {
    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;
}

.tip {
    max-width: 720px;
    margin: 25px auto;
    padding: 14px 16px;

    background: var(--teal-light);
    color: #526d72;

    border-left: 4px solid var(--teal);

    line-height: 1.6;
    font-size: 13px;
    text-align: left;
}

button {
    font-family: inherit;
}

.primary,
.secondary,
.submit {
    padding: 13px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.primary {
    border: 1px solid var(--teal);
    background: var(--teal);
    color: white;
}

.primary:hover {
    background: var(--teal-dark);
}

.secondary {
    background: white;
    color: var(--navy);
    border: 1px solid var(--border);
}

.submit {
    border: 1px solid var(--navy);
    background: var(--navy);
    color: white;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 12px;
}

#sectionTitle {
    color: var(--teal);
    font-weight: bold;
}

.progress-track {
    height: 7px;
    margin-bottom: 15px;
    background: #dae2e3;
    border-radius: 20px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    width: 5%;
    background: var(--teal);
    transition: .3s;
}

.question-card {
    min-height: 460px;
    background: white;

    border: 1px solid var(--border);
    border-radius: 12px;

    padding: 35px;

    box-shadow: 0 5px 18px rgba(20,50,70,.04);
}

.question-label {
    color: var(--teal);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.question-card h2 {
    color: var(--navy);
    margin: 8px 0;
    font-size: 22px;
}

.instruction {
    color: var(--muted);
    margin-bottom: 22px;
    line-height: 1.5;
    font-size: 14px;
}

.passage {
    padding: 20px;
    margin-bottom: 22px;

    background: #f5f8f8;
    border-left: 4px solid var(--teal);

    line-height: 1.85;
}

.options {
    display: grid;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: 7px;

    cursor: pointer;
}

.option:hover {
    border-color: var(--teal);
    background: var(--teal-light);
}

.option input {
    width: 17px;
    height: 17px;
    accent-color: var(--teal);
}

.order-list {
    display: grid;
    gap: 10px;
}

.order-item {
    display: flex;
    gap: 12px;
    align-items: center;

    padding: 14px;

    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;

    border-radius: 50%;

    background: var(--teal);
    color: white;

    font-weight: bold;
    font-size: 12px;
}

.order-text {
    flex: 1;
    line-height: 1.6;
}

.order-controls {
    display: flex;
    gap: 5px;
}

.order-controls button {
    width: 34px;
    height: 32px;
    border: none;
    border-radius: 4px;

    background: var(--navy);
    color: white;

    cursor: pointer;
}

.blank-passage {
    font-size: 17px;
    line-height: 2.6;
}

.blank-select {
    padding: 7px 10px;
    border: 2px solid var(--teal);
    border-radius: 5px;

    color: var(--navy);
    background: white;

    font-weight: bold;
}

.word-bank {
    padding: 18px;
    margin-bottom: 22px;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    border-radius: 8px;
    background: var(--teal-light);
}

.word {
    padding: 9px 15px;

    background: white;
    color: var(--navy);

    border: 1px solid var(--teal);
    border-radius: 5px;

    font-weight: bold;
    cursor: grab;
}

.word:hover {
    background: var(--teal);
    color: white;
}

.drop-zone {
    min-width: 130px;
    min-height: 36px;

    padding: 3px 12px;

    display: inline-block;
    vertical-align: middle;

    border: 2px dashed #83999e;
    border-radius: 5px;

    background: white;

    text-align: center;
    line-height: 28px;

    cursor: pointer;
}

.drop-zone.filled {
    border-style: solid;
    border-color: var(--teal);
    background: var(--teal-light);
    font-weight: bold;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.result {
    padding: 50px;
    text-align: center;
}

.check {
    width: 60px;
    height: 60px;

    margin: 0 auto 17px;

    background: var(--teal);
    color: white;

    border-radius: 50%;

    line-height: 60px;
    font-size: 30px;
}

.result h2 {
    color: var(--navy);
    margin-top: 8px;
}

.score-circle {
    width: 155px;
    height: 155px;

    margin: 28px auto;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 11px solid var(--teal-light);
    border-top-color: var(--teal);
    border-radius: 50%;
}

.score-circle strong {
    color: var(--navy);
    font-size: 36px;
}

.score-circle span {
    color: var(--muted);
    font-size: 11px;
}

#resultMessage {
    max-width: 600px;
    margin: auto;
    color: var(--muted);
    line-height: 1.6;
}

.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;
}

.hidden {
    display: none !important;
}

footer {
    padding: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

@media(max-width:700px) {

    .topbar {
        flex-direction: column;
        text-align: center;
    }

    .start-screen,
    .question-card,
    .result {
        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;
    }
}