/* ==========================================================
   BIG REVIEW I — VOCABULARY CHAMPIONSHIP
   SAME BASE SYSTEM AS LESSON 5 AND LESSON 17
========================================================== */

@import url("lesson-5.css");


/* ==========================================================
   THEME
========================================================== */

:root {
    --review-purple: #7d72de;
    --review-purple-dark: #6258c3;
    --review-purple-soft: #eeebff;

    --review-blue: #74b8ec;
    --review-blue-soft: #e9f6ff;

    --review-gold: #f2bd4f;
    --review-gold-dark: #d99b27;
    --review-gold-soft: #fff6d8;

    --review-pink: #ef94b8;
    --review-pink-soft: #fff0f6;

    --review-green: #77caa0;
    --review-green-dark: #4fac79;
    --review-green-soft: #eaf9f1;

    --review-red: #e77d88;
    --review-red-soft: #fff0f1;

    --review-ink: #45415f;
    --review-muted: #77728e;
    --review-line: #ddd8ee;
    --review-card: #fffefd;

    --review-shadow:
        rgba(74, 65, 123, 0.09);
}


.review-lesson-body {
    font-family:
        "Fredoka",
        sans-serif;

    color:
        var(--review-ink);
}


.review-lesson-body::before {
    content: "";

    position: fixed;

    inset: 0;

    z-index: -5;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(255, 239, 181, 0.48),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 30%,
            rgba(218, 231, 255, 0.56),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #fbfaff 0%,
            #f8fbff 48%,
            #fffaf2 100%
        );
}


/* ==========================================================
   HEADER AND MAIN PROGRESS
========================================================== */

.review-lesson-body
.lesson-logo {
    background:
        linear-gradient(
            145deg,
            var(--review-purple),
            #9187e8
        );

    box-shadow:
        0 7px 0 #5d54b8,
        0 12px 20px
        rgba(93, 84, 184, 0.18);
}


.review-lesson-body
.chapter-number {
    color:
        var(--review-purple-dark);
}


.review-lesson-body
.lesson-progress-fill {
    background:
        linear-gradient(
            90deg,
            var(--review-purple),
            var(--review-blue),
            var(--review-gold)
        );

    box-shadow:
        0 0 16px
        rgba(125, 114, 222, 0.28);
}


.review-lesson-body
.lesson-progress-number strong {
    color:
        var(--review-purple-dark);
}


.review-lesson-body
.main-action-button {
    background:
        linear-gradient(
            145deg,
            #887ce5,
            #7165d0
        );

    border-bottom-color:
        #564cad;

    box-shadow:
        0 11px 21px
        rgba(92, 81, 182, 0.17);
}


.review-lesson-body
.main-action-button:hover {
    box-shadow:
        0 14px 25px
        rgba(92, 81, 182, 0.22);
}


.review-lesson-body
.screen-label {
    color:
        var(--review-purple-dark);
}


/* ==========================================================
   FLOATING SYMBOLS
========================================================== */

.floating-review-one {
    top: 17%;
    left: 5%;

    transform:
        rotate(-8deg);

    animation:
        reviewFloatOne
        5.4s
        ease-in-out
        infinite;
}


.floating-review-two {
    top: 45%;
    right: 5%;

    transform:
        rotate(7deg);

    animation:
        reviewFloatTwo
        6.2s
        ease-in-out
        infinite;
}


.floating-review-three {
    bottom: 12%;
    left: 8%;

    transform:
        rotate(-6deg);

    animation:
        reviewFloatOne
        5.8s
        ease-in-out
        infinite
        reverse;
}


/* ==========================================================
   INTRO
========================================================== */

.review-intro-page {
    position: relative;
}


.review-intro-page
.story-book-icon {
    width: 116px;
    height: 116px;

    margin:
        0 auto 22px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            #fff6d7,
            #f4e4ad
        );

    border:
        2px solid
        rgba(206, 158, 58, 0.17);

    box-shadow:
        0 15px 30px
        rgba(133, 99, 33, 0.10);

    font-size: 61px;

    animation:
        reviewCupEntrance
        0.72s
        ease
        both;
}


.review-intro-page
.story-main-text {
    max-width: 690px;
}


.review-intro-page
.story-main-text strong {
    color:
        var(--review-purple-dark);
}


.review-intro-page
.mission-icon {
    background:
        linear-gradient(
            145deg,
            #eeeaff,
            #ded8ff
        );
}


.review-mission-card {
    border-color:
        #ddd5f8;

    background:
        linear-gradient(
            145deg,
            #fffefd,
            #f7f4ff
        );
}


.review-mission-card strong {
    color:
        var(--review-purple-dark);
}


/* ==========================================================
   COURSE POWERS
========================================================== */

.course-power-row {
    width:
        min(650px, 100%);

    margin:
        25px auto 27px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 13px;
}


.course-power-item {
    min-height: 116px;

    padding:
        17px 12px 15px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border:
        2px solid
        #ded9ee;

    border-bottom:
        6px solid
        #c8c1dd;

    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #faf8ff
        );

    box-shadow:
        0 10px 21px
        rgba(74, 65, 123, 0.06);
}


.course-power-item:nth-child(1) {
    background:
        linear-gradient(
            180deg,
            #f2efff,
            #faf9ff
        );

    border-color:
        #dcd5fc;

    border-bottom-color:
        #c2b9ee;
}


.course-power-item:nth-child(2) {
    background:
        linear-gradient(
            180deg,
            #eaf7ff,
            #f8fcff
        );

    border-color:
        #d2e9f7;

    border-bottom-color:
        #b8d8ea;
}


.course-power-item:nth-child(3) {
    background:
        linear-gradient(
            180deg,
            #fff7dd,
            #fffdf5
        );

    border-color:
        #f0e2b7;

    border-bottom-color:
        #dfcb91;
}


.course-power-item span {
    font-size: 35px;

    line-height: 1;
}


.course-power-item strong {
    color:
        var(--review-ink);

    font-size: 16px;

    font-weight: 700;
}


/* ==========================================================
   START PAGE
========================================================== */

.review-start-page,
.review-round-page {
    position: relative;
}


.review-start-page
.parts-heading-icon,
.review-round-page
.active-part-icon {
    background:
        linear-gradient(
            145deg,
            #eeeaff,
            #ded8ff
        );
}


.review-start-page
.parts-heading h2,
.review-round-page
.active-part-heading h2 {
    color:
        var(--review-ink);
}


/* ==========================================================
   LIVE SCORE
========================================================== */

.review-score-card {
    width:
        min(720px, 100%);

    margin:
        0 auto 28px;

    padding:
        21px 25px;

    display: grid;

    grid-template-columns:
        1fr auto 1fr auto 1fr;

    align-items: center;

    border:
        2px solid
        #dcd7ee;

    border-bottom:
        7px solid
        #c5bedc;

    border-radius: 26px;

    background:
        linear-gradient(
            180deg,
            #fffefd,
            #f7f5ff
        );

    box-shadow:
        0 12px 28px
        var(--review-shadow);
}


.review-score-item {
    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    text-align: center;
}


.review-score-item span {
    margin-bottom: 3px;

    font-size: 28px;

    line-height: 1;
}


.review-score-item strong {
    color:
        var(--review-purple-dark);

    font-size: 25px;

    line-height: 1.1;
}


.review-score-item small {
    color:
        var(--review-muted);

    font-size: 13px;

    font-weight: 600;
}


.review-score-divider {
    width: 2px;
    height: 56px;

    border-radius: 10px;

    background:
        #e2deed;
}


/* ==========================================================
   CHAMPIONSHIP RIBBON
========================================================== */

.championship-ribbon {
    width:
        min(650px, 100%);

    margin:
        0 auto 28px;

    padding:
        13px 18px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.ribbon-dot {
    width: 42px;
    height: 42px;

    flex:
        0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        2px solid
        #d9d5e6;

    border-bottom:
        5px solid
        #c7c2d7;

    border-radius: 50%;

    background:
        #ffffff;

    color:
        #8b8798;

    font-size: 15px;

    font-weight: 700;

    transition:
        0.25s ease;
}


.ribbon-dot.active-ribbon-dot {
    border-color:
        #9287e3;

    border-bottom-color:
        #665bc0;

    background:
        linear-gradient(
            145deg,
            #968be8,
            #7569d2
        );

    color:
        #ffffff;

    box-shadow:
        0 8px 17px
        rgba(104, 91, 192, 0.20);
}


.ribbon-dot.completed-ribbon-dot {
    border-color:
        #e4c067;

    border-bottom-color:
        #c9972b;

    background:
        linear-gradient(
            145deg,
            #ffdc7c,
            #efb744
        );

    color:
        #74510e;
}


.ribbon-line {
    width: 42px;
    height: 5px;

    flex:
        1 1 42px;

    max-width: 56px;

    margin:
        0 4px;

    border-radius: 10px;

    background:
        #ddd9e7;
}


.ribbon-line.completed-ribbon-line {
    background:
        linear-gradient(
            90deg,
            #efbc4f,
            #f6d786
        );
}


/* ==========================================================
   FOX MAX CARD
========================================================== */

.review-ready-card {
    width:
        min(720px, 100%);

    margin:
        0 auto 31px;

    padding:
        22px 25px;

    display: flex;

    align-items: center;

    gap: 20px;

    border:
        2px solid
        #efdca8;

    border-bottom:
        7px solid
        #dcc282;

    border-radius: 27px;

    background:
        linear-gradient(
            145deg,
            #fff9e9,
            #fffef9
        );

    box-shadow:
        0 12px 27px
        rgba(115, 85, 29, 0.07);

    text-align: left;
}


.review-ready-mascot {
    width: 88px;
    height: 88px;

    flex:
        0 0 88px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        2px solid
        #f0d999;

    border-radius: 25px;

    background:
        #fff3cd;

    font-size: 49px;
}


.review-ready-card
> div:last-child {
    min-width: 0;
}


.review-ready-card span {
    display: block;

    margin-bottom: 6px;

    color:
        #ae7d23;

    font-size: 11px;

    font-weight: 700;

    letter-spacing:
        0.11em;
}


.review-ready-card h3 {
    margin:
        0 0 6px;

    color:
        var(--review-ink);

    font-size: 20px;
}


.review-ready-card p {
    margin: 0;

    color:
        var(--review-muted);

    font-size: 15px;

    line-height: 1.55;
}


/* ==========================================================
   ROUND HEADING
========================================================== */

.review-round-page
.active-part-heading {
    margin-bottom: 24px;
}


.review-round-page
.active-part-icon {
    width: 74px;
    height: 74px;

    font-size: 38px;
}


.review-round-page
.active-part-heading
> p:last-child {
    max-width: 620px;

    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   ROUND PROGRESS
========================================================== */

.round-progress-card {
    width:
        min(720px, 100%);

    margin:
        0 auto 20px;

    padding:
        14px 18px;

    display: flex;

    align-items: center;

    gap: 16px;

    border:
        2px solid
        #e0dcec;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.82);

    box-shadow:
        0 8px 18px
        rgba(74, 65, 123, 0.05);
}


.round-progress-card
> span {
    min-width: 50px;

    color:
        var(--review-purple-dark);

    font-size: 14px;

    font-weight: 700;

    text-align: center;
}


.round-progress-track {
    height: 12px;

    flex: 1;

    overflow: hidden;

    border-radius: 999px;

    background:
        #e8e5ef;

    box-shadow:
        inset 0 2px 4px
        rgba(75, 67, 108, 0.07);
}


.round-progress-fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--review-purple),
            var(--review-blue)
        );

    transition:
        width 0.42s ease;
}


/* ==========================================================
   COMMON CHALLENGE CARD
========================================================== */

.review-challenge-card {
    width:
        min(760px, 100%);

    min-height: 390px;

    margin:
        0 auto 24px;

    padding:
        29px 28px 30px;

    border:
        2px solid
        #dcd7eb;

    border-bottom:
        8px solid
        #c6bfdc;

    border-radius: 31px;

    background:
        linear-gradient(
            180deg,
            #fffefd,
            #f9f7ff
        );

    box-shadow:
        0 15px 34px
        rgba(70, 61, 118, 0.08);

    text-align: center;
}


.review-challenge-card button {
    font-family: inherit;
}


.review-challenge-card
button:disabled {
    cursor: default;
}


.review-lesson-body
.game-feedback {
    min-height: 28px;

    margin:
        18px 0 0;

    color:
        var(--review-muted);

    font-size: 16px;

    font-weight: 600;

    line-height: 1.45;

    text-align: center;
}


.review-lesson-body
.game-feedback.correct-feedback {
    color:
        #429a6b;
}


.review-lesson-body
.game-feedback.wrong-feedback {
    color:
        #d45f6b;
}


/* ==========================================================
   SOUND HUNT
========================================================== */

.sound-hunt-card {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;
}


.giant-listen-button {
    min-width: 240px;

    margin-bottom: 27px;

    padding:
        16px 24px 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    border:
        2px solid
        #d8d1f7;

    border-bottom:
        6px solid
        #bdb4e7;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #f1eeff,
            #e6e1ff
        );

    color:
        var(--review-purple-dark);

    cursor: pointer;

    transition:
        0.18s ease;
}


.giant-listen-button:hover {
    transform:
        translateY(-2px);

    border-bottom-width: 8px;
}


.giant-listen-button:active {
    transform:
        translateY(3px);

    border-bottom-width: 3px;
}


.giant-listen-button span {
    font-size: 29px;
}


.giant-listen-button strong {
    font-size: 17px;
}


.giant-listen-button.is-speaking,
.mini-listen-button.is-speaking,
.mystery-listen-button.is-speaking {
    animation:
        reviewSpeakerPulse
        0.85s
        ease
        infinite;
}


.picture-answer-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.picture-answer-button {
    min-height: 126px;

    padding:
        15px 10px 13px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border:
        2px solid
        #ded9eb;

    border-bottom:
        6px solid
        #c8c2d8;

    border-radius: 22px;

    background:
        #ffffff;

    color:
        var(--review-ink);

    cursor: pointer;

    transition:
        0.18s ease;
}


.picture-answer-button:hover:not(:disabled) {
    transform:
        translateY(-3px);

    border-color:
        #bdb4eb;

    box-shadow:
        0 10px 20px
        rgba(81, 70, 145, 0.09);
}


.picture-answer-button span {
    font-size: 48px;

    line-height: 1;
}


.picture-answer-button strong {
    font-size: 14px;

    text-transform:
        capitalize;
}


/* ==========================================================
   CORRECT AND WRONG STATES
========================================================== */

.picture-answer-button.correct,
.category-answer-button.correct,
.mystery-answer-button.correct,
.lightning-answer-button.correct {
    border-color:
        #8ad4aa;

    border-bottom-color:
        #58ae7e;

    background:
        linear-gradient(
            180deg,
            #effcf5,
            #e2f7eb
        );

    color:
        #357d58;

    animation:
        reviewCorrectPop
        0.38s
        ease;
}


.picture-answer-button.wrong,
.category-answer-button.wrong,
.mystery-answer-button.wrong,
.lightning-answer-button.wrong {
    border-color:
        #efadb4;

    border-bottom-color:
        #d8737d;

    background:
        linear-gradient(
            180deg,
            #fff6f7,
            #ffe9eb
        );

    color:
        #bd4d59;

    animation:
        reviewWrongShake
        0.34s
        ease;
}


/* ==========================================================
   SPEED MATCH
========================================================== */

.match-challenge-card {
    min-height: 430px;
}


.match-board {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 22px;
}


.match-word-column,
.match-picture-column {
    display: grid;

    grid-template-columns: 1fr;

    gap: 11px;
}


.match-word-button,
.match-picture-button {
    min-height: 63px;

    padding:
        11px 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        2px solid
        #ddd8ea;

    border-bottom:
        5px solid
        #c8c2d9;

    border-radius: 18px;

    background:
        #ffffff;

    color:
        var(--review-ink);

    cursor: pointer;

    transition:
        0.18s ease;
}


.match-word-button {
    font-size: 17px;

    font-weight: 700;
}


.match-picture-button {
    font-size: 34px;
}


.match-word-button:hover:not(:disabled),
.match-picture-button:hover:not(:disabled) {
    transform:
        translateY(-2px);

    border-color:
        #bbb2e7;
}


.match-word-button.selected,
.match-picture-button.selected {
    border-color:
        #998ee5;

    border-bottom-color:
        #6d62c6;

    background:
        linear-gradient(
            180deg,
            #f2efff,
            #e7e2ff
        );

    color:
        #5d52b7;

    box-shadow:
        0 8px 17px
        rgba(91, 79, 174, 0.11);
}


.match-word-button.matched,
.match-picture-button.matched {
    border-color:
        #8bd3aa;

    border-bottom-color:
        #58ab7d;

    background:
        var(--review-green-soft);

    color:
        #3e8b62;

    opacity: 0.76;

    animation:
        reviewCorrectPop
        0.38s
        ease;
}


.match-word-button.mismatch,
.match-picture-button.mismatch {
    border-color:
        #edabb2;

    background:
        var(--review-red-soft);

    animation:
        reviewWrongShake
        0.34s
        ease;
}


/* ==========================================================
   WORD SORTER
========================================================== */

.sorter-challenge-card {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;
}


.sorter-word-card {
    min-width: 260px;
    min-height: 150px;

    margin-bottom: 28px;

    padding:
        19px 25px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    border:
        2px solid
        #dcd5fa;

    border-bottom:
        7px solid
        #bfb5eb;

    border-radius: 27px;

    background:
        linear-gradient(
            145deg,
            #f5f2ff,
            #ebe7ff
        );

    box-shadow:
        0 12px 25px
        rgba(85, 72, 160, 0.08);
}


.sorter-word-emoji {
    font-size: 50px;

    line-height: 1;
}


.sorter-word-card
> strong {
    color:
        var(--review-purple-dark);

    font-size: 26px;

    text-transform:
        lowercase;
}


.mini-listen-button {
    width: 42px;
    height: 42px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        2px solid
        #d7d1e9;

    border-bottom:
        5px solid
        #bbb4cf;

    border-radius: 14px;

    background:
        #ffffff;

    color:
        var(--review-ink);

    font-size: 18px;

    cursor: pointer;

    transition:
        0.18s ease;
}


.mini-listen-button:hover {
    transform:
        translateY(-2px);

    border-color:
        #aaa1dc;
}


.category-answer-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 13px;
}


.category-answer-button {
    min-height: 103px;

    padding:
        14px 9px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border:
        2px solid
        #ddd8ea;

    border-bottom:
        6px solid
        #c5bfd5;

    border-radius: 21px;

    background:
        #ffffff;

    color:
        var(--review-ink);

    cursor: pointer;

    transition:
        0.18s ease;
}


.category-answer-button:hover:not(:disabled) {
    transform:
        translateY(-3px);

    border-color:
        #bcb3e8;
}


.category-answer-button span {
    font-size: 34px;
}


.category-answer-button strong {
    font-size: 14px;
}


/* ==========================================================
   MEMORY STATUS
========================================================== */

.memory-status-row {
    width:
        min(460px, 100%);

    margin:
        0 auto 20px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 13px;
}


.memory-status-item {
    padding:
        13px 16px;

    display: grid;

    grid-template-columns:
        auto auto;

    grid-template-rows:
        auto auto;

    align-items: center;
    justify-content: center;

    column-gap: 9px;

    border:
        2px solid
        #dfdaed;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.86);
}


.memory-status-item
> span {
    grid-row:
        1 / 3;

    font-size: 27px;
}


.memory-status-item strong {
    color:
        var(--review-purple-dark);

    font-size: 20px;

    line-height: 1.1;
}


.memory-status-item small {
    color:
        var(--review-muted);

    font-size: 11px;

    font-weight: 600;
}


/* ==========================================================
   MEMORY GAME
========================================================== */

.memory-challenge-card {
    min-height: 450px;
}


.memory-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 13px;

    perspective: 1000px;
}


.memory-card {
    min-height: 115px;

    padding: 0;

    position: relative;

    border: 0;

    border-radius: 20px;

    background: transparent;

    cursor: pointer;

    perspective: 850px;
}


.memory-card-inner {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 115px;

    position: relative;

    transform-style:
        preserve-3d;

    transition:
        transform 0.45s ease;
}


.memory-card.flipped
.memory-card-inner,
.memory-card.matched
.memory-card-inner {
    transform:
        rotateY(180deg);
}


.memory-card-front,
.memory-card-back {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    backface-visibility: hidden;

    border-radius: 20px;
}


.memory-card-front {
    border:
        2px solid
        #d7d0f2;

    border-bottom:
        7px solid
        #b6addf;

    background:
        linear-gradient(
            145deg,
            #9185e7,
            #7064cc
        );

    color:
        #ffffff;

    font-size: 30px;

    font-weight: 700;

    box-shadow:
        0 9px 18px
        rgba(82, 69, 163, 0.12);
}


.memory-card-front::before {
    content: "?";
}


.memory-card-back {
    padding: 12px;

    transform:
        rotateY(180deg);

    border:
        2px solid
        #ded9eb;

    border-bottom:
        7px solid
        #c6bfd8;

    background:
        #ffffff;

    color:
        var(--review-ink);

    font-size: 18px;

    font-weight: 700;

    overflow-wrap:
        anywhere;
}


.memory-card[data-kind="picture"]
.memory-card-back {
    font-size: 44px;
}


.memory-card.matched
.memory-card-back {
    border-color:
        #87d0a7;

    border-bottom-color:
        #52aa79;

    background:
        linear-gradient(
            180deg,
            #effbf4,
            #e3f7eb
        );

    color:
        #368059;
}


/* ==========================================================
   MYSTERY BOX
========================================================== */

.mystery-challenge-card {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;
}


.mystery-box-visual {
    width: 108px;
    height: 108px;

    margin-bottom: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        2px solid
        #efd893;

    border-bottom:
        7px solid
        #d9b959;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #fff5cd,
            #ffe6a2
        );

    font-size: 59px;

    box-shadow:
        0 13px 26px
        rgba(131, 94, 26, 0.09);

    animation:
        mysteryBoxFloat
        2.7s
        ease-in-out
        infinite;
}


.mystery-topic,
.lightning-question-topic {
    display: inline-flex;

    margin-bottom: 9px;

    padding:
        6px 11px;

    border-radius: 999px;

    background:
        var(--review-purple-soft);

    color:
        var(--review-purple-dark);

    font-size: 10px;

    font-weight: 700;

    letter-spacing:
        0.11em;
}


.mystery-challenge-card h3 {
    max-width: 600px;

    margin:
        0 auto 14px;

    color:
        var(--review-ink);

    font-size:
        clamp(
            21px,
            3vw,
            28px
        );

    line-height: 1.35;
}


.mystery-listen-button {
    margin:
        0 auto 22px;
}


.mystery-answer-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 13px;
}


.mystery-answer-button {
    min-height: 75px;

    padding:
        13px 11px;

    border:
        2px solid
        #ded9e9;

    border-bottom:
        6px solid
        #c6c0d5;

    border-radius: 19px;

    background:
        #ffffff;

    color:
        var(--review-ink);

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        0.18s ease;
}


.mystery-answer-button:hover:not(:disabled) {
    transform:
        translateY(-3px);

    border-color:
        #bbb2e6;
}


/* ==========================================================
   LIGHTNING DASHBOARD
========================================================== */

.lightning-icon {
    background:
        linear-gradient(
            145deg,
            #fff2bb,
            #f7d96f
        )
        !important;
}


.lightning-dashboard {
    width:
        min(620px, 100%);

    margin:
        0 auto 20px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 13px;
}


.lightning-counter,
.lightning-streak {
    padding:
        13px 17px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border:
        2px solid
        #dfdaeb;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.88);
}


.lightning-counter span,
.lightning-streak span {
    color:
        var(--review-muted);

    font-size: 11px;

    font-weight: 700;

    letter-spacing:
        0.08em;
}


.lightning-counter strong,
.lightning-streak strong {
    color:
        var(--review-purple-dark);

    font-size: 21px;
}


/* ==========================================================
   LIGHTNING CHALLENGE
========================================================== */

.lightning-challenge-card {
    min-height: 430px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-color:
        #e7d59c;

    border-bottom-color:
        #ceb86e;

    background:
        linear-gradient(
            180deg,
            #fffef8,
            #fff9e8
        );
}


.lightning-question-icon {
    width: 92px;
    height: 92px;

    margin-bottom: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        2px solid
        #ead998;

    border-radius: 27px;

    background:
        #fff4c9;

    font-size: 50px;
}


.lightning-challenge-card h3 {
    max-width: 610px;

    margin:
        0 auto 10px;

    color:
        var(--review-ink);

    font-size:
        clamp(
            22px,
            3vw,
            29px
        );

    line-height: 1.35;
}


.lightning-listen-button {
    margin:
        0 auto 21px;
}


.lightning-answer-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 13px;
}


.lightning-answer-button {
    min-height: 72px;

    padding:
        13px 15px;

    border:
        2px solid
        #dfd8c2;

    border-bottom:
        6px solid
        #c9bea0;

    border-radius: 19px;

    background:
        #ffffff;

    color:
        var(--review-ink);

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        0.18s ease;
}


.lightning-answer-button:hover:not(:disabled) {
    transform:
        translateY(-3px);

    border-color:
        #c6aa58;

    box-shadow:
        0 10px 19px
        rgba(119, 91, 25, 0.08);
}


/* ==========================================================
   ROUND COMPLETE
========================================================== */

.round-complete-card {
    width:
        min(620px, 100%);

    margin:
        25px auto 0;

    padding:
        28px 24px 27px;

    border:
        2px solid
        #dcd5f2;

    border-bottom:
        8px solid
        #bfb5e2;

    border-radius: 29px;

    background:
        linear-gradient(
            145deg,
            #f7f4ff,
            #fffefd
        );

    box-shadow:
        0 15px 30px
        rgba(77, 63, 153, 0.08);

    text-align: center;

    animation:
        reviewCompleteEntrance
        0.46s
        ease
        both;
}


.round-complete-card[hidden] {
    display:
        none
        !important;
}


.round-complete-icon {
    width: 78px;
    height: 78px;

    margin:
        0 auto 13px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        2px solid
        #ecd58e;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #fff6cf,
            #ffe8a2
        );

    font-size: 42px;
}


.round-complete-card h3 {
    margin:
        5px 0 7px;

    color:
        var(--review-ink);

    font-size: 24px;
}


.round-complete-card
> p:not(.screen-label) {
    margin:
        0 0 20px;

    color:
        var(--review-muted);

    font-size: 15px;

    line-height: 1.5;
}


.round-complete-card
.main-action-button {
    margin-top: 0;
}


.final-round-complete {
    border-color:
        #ecd48a;

    border-bottom-color:
        #d1ae45;

    background:
        linear-gradient(
            145deg,
            #fff9df,
            #fffefd
        );
}


/* ==========================================================
   SECONDARY BUTTON
========================================================== */

.secondary-action-button {
    min-height: 54px;

    padding:
        13px 23px 15px;

    border:
        2px solid
        #d8d2e8;

    border-bottom:
        6px solid
        #bdb6cf;

    border-radius: 18px;

    background:
        #ffffff;

    color:
        var(--review-purple-dark);

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        0.18s ease;
}


.secondary-action-button:hover {
    transform:
        translateY(-2px);

    border-color:
        #aaa0da;

    box-shadow:
        0 10px 19px
        rgba(76, 65, 136, 0.08);
}


.secondary-action-button:active {
    transform:
        translateY(3px);

    border-bottom-width: 3px;
}


/* ==========================================================
   FINISH PAGE
========================================================== */

.review-lesson-body
.finish-main-icon {
    background:
        linear-gradient(
            145deg,
            #fff2bb,
            #f2d16b
        );

    border-color:
        #e4c45e;

    box-shadow:
        0 15px 30px
        rgba(130, 93, 25, 0.10);
}


.review-finish-page
.finish-description {
    max-width: 650px;
}


.result-stars {
    margin:
        21px auto 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;
}


.result-stars span {
    color:
        #d5cfc0;

    font-size: 41px;

    line-height: 1;

    transition:
        0.3s ease;
}


.result-stars
span.earned-star {
    color:
        var(--review-gold);

    filter:
        drop-shadow(
            0 5px 6px
            rgba(175, 126, 26, 0.18)
        );

    animation:
        reviewStarEarned
        0.48s
        ease
        both;
}


.review-lesson-body
.finish-statistic {
    border-color:
        #ddd7eb;

    border-bottom-color:
        #c6bfd8;

    background:
        linear-gradient(
            180deg,
            #fffefd,
            #f9f7ff
        );
}


.review-lesson-body
.finish-statistic strong {
    color:
        var(--review-purple-dark);
}


.review-lesson-body
.finish-badge {
    border-color:
        #e4cf83;

    background:
        linear-gradient(
            145deg,
            #fff6cf,
            #f4e3a7
        );
}


.review-finish-badge
.finish-badge-icon {
    background:
        rgba(255, 255, 255, 0.62);
}


.finish-button-row {
    margin-top: 27px;

    display: flex;

    align-items: stretch;
    justify-content: center;

    gap: 13px;

    flex-wrap: wrap;
}


.finish-button-row
.main-action-button,
.finish-button-row
.secondary-action-button {
    min-width: 190px;

    margin-top: 0;
}


/* ==========================================================
   ACHIEVEMENT
========================================================== */

.review-lesson-body
.achievement-toast {
    border-color:
        #d8d1ef;

    border-bottom-color:
        #b9afe0;

    background:
        linear-gradient(
            145deg,
            #fffefd,
            #f3efff
        );
}


.review-lesson-body
.achievement-toast-icon {
    background:
        linear-gradient(
            145deg,
            #fff3c6,
            #f0d26f
        );
}


.review-lesson-body
.achievement-toast-content span {
    color:
        var(--review-purple-dark);
}


/* ==========================================================
   EFFECTS
========================================================== */

.review-sparkle {
    position: fixed;

    z-index: 120;

    pointer-events: none;

    color:
        var(--review-gold);

    font-size: 20px;

    animation:
        reviewSparkleBurst
        0.9s
        ease-out
        forwards;
}


.review-confetti-piece {
    width: 10px;
    height: 16px;

    position: fixed;

    top: -25px;

    z-index: 125;

    pointer-events: none;

    border-radius: 3px;

    animation:
        reviewConfettiFall
        var(--fall-time, 2.8s)
        linear
        forwards;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.review-lesson-body
button:focus-visible,
.review-lesson-body
a:focus-visible {
    outline:
        4px solid
        rgba(125, 114, 222, 0.28);

    outline-offset: 3px;
}


/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes reviewFloatOne {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-8deg);
    }

    50% {
        transform:
            translateY(-13px)
            rotate(-3deg);
    }
}


@keyframes reviewFloatTwo {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(7deg);
    }

    50% {
        transform:
            translateY(12px)
            rotate(2deg);
    }
}


@keyframes reviewCupEntrance {

    0% {
        opacity: 0;

        transform:
            translateY(14px)
            scale(0.76)
            rotate(-8deg);
    }

    68% {
        opacity: 1;

        transform:
            translateY(-3px)
            scale(1.07)
            rotate(3deg);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1)
            rotate(0);
    }
}


@keyframes reviewSpeakerPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 0
            rgba(125, 114, 222, 0.24);
    }

    50% {
        box-shadow:
            0 0 0 10px
            rgba(125, 114, 222, 0);
    }
}


@keyframes reviewCorrectPop {

    0% {
        transform:
            scale(0.92);
    }

    65% {
        transform:
            scale(1.06);
    }

    100% {
        transform:
            scale(1);
    }
}


@keyframes reviewWrongShake {

    0%,
    100% {
        transform:
            translateX(0);
    }

    25% {
        transform:
            translateX(-6px);
    }

    50% {
        transform:
            translateX(6px);
    }

    75% {
        transform:
            translateX(-3px);
    }
}


@keyframes mysteryBoxFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-2deg);
    }

    50% {
        transform:
            translateY(-8px)
            rotate(2deg);
    }
}


@keyframes reviewCompleteEntrance {

    0% {
        opacity: 0;

        transform:
            translateY(18px)
            scale(0.94);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@keyframes reviewStarEarned {

    0% {
        opacity: 0;

        transform:
            scale(0.35)
            rotate(-20deg);
    }

    68% {
        opacity: 1;

        transform:
            scale(1.23)
            rotate(7deg);
    }

    100% {
        opacity: 1;

        transform:
            scale(1)
            rotate(0);
    }
}


@keyframes reviewSparkleBurst {

    0% {
        opacity: 0;

        transform:
            translate(0, 0)
            scale(0.35)
            rotate(0);
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 0;

        transform:
            translate(
                var(--sparkle-x, 0),
                var(--sparkle-y, -80px)
            )
            scale(1.15)
            rotate(150deg);
    }
}


@keyframes reviewConfettiFall {

    0% {
        opacity: 1;

        transform:
            translate3d(
                0,
                -20px,
                0
            )
            rotate(0);
    }

    100% {
        opacity: 0.9;

        transform:
            translate3d(
                var(--confetti-x, 0),
                110vh,
                0
            )
            rotate(
                var(
                    --confetti-rotate,
                    720deg
                )
            );
    }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .review-lesson-body *,
    .review-lesson-body *::before,
    .review-lesson-body *::after {
        scroll-behavior:
            auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}


/* ==========================================================
   RESPONSIVE — TABLET
========================================================== */

@media (max-width: 850px) {

    .picture-answer-grid,
    .category-answer-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .memory-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }


    .review-challenge-card {
        min-height: auto;
    }
}


/* ==========================================================
   RESPONSIVE — SMALL TABLET
========================================================== */

@media (max-width: 760px) {

    .review-score-card {
        padding-left: 16px;
        padding-right: 16px;
    }


    .review-score-item strong {
        font-size: 21px;
    }


    .championship-ribbon {
        padding-left: 5px;
        padding-right: 5px;
    }


    .ribbon-dot {
        width: 37px;
        height: 37px;

        flex-basis: 37px;
    }


    .ribbon-line {
        min-width: 10px;

        margin-left: 2px;
        margin-right: 2px;
    }


    .match-board {
        gap: 13px;
    }


    .mystery-answer-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   RESPONSIVE — MOBILE
========================================================== */

@media (max-width: 620px) {

    .course-power-row {
        gap: 8px;
    }


    .course-power-item {
        min-height: 101px;

        padding-left: 6px;
        padding-right: 6px;
    }


    .course-power-item span {
        font-size: 29px;
    }


    .course-power-item strong {
        font-size: 12px;
    }


    .review-score-card {
        padding:
            17px 9px;
    }


    .review-score-item span {
        font-size: 23px;
    }


    .review-score-item strong {
        font-size: 18px;
    }


    .review-score-item small {
        font-size: 10px;
    }


    .review-score-divider {
        height: 46px;
    }


    .review-ready-card {
        padding:
            19px 16px;

        gap: 14px;
    }


    .review-ready-mascot {
        width: 68px;
        height: 68px;

        flex-basis: 68px;

        font-size: 39px;
    }


    .review-ready-card h3 {
        font-size: 16px;
    }


    .review-ready-card p {
        font-size: 13px;
    }


    .review-challenge-card {
        padding:
            22px 14px 25px;

        border-radius: 25px;
    }


    .picture-answer-grid,
    .category-answer-grid {
        gap: 9px;
    }


    .picture-answer-button {
        min-height: 110px;
    }


    .picture-answer-button span {
        font-size: 42px;
    }


    .match-board {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(0, 0.9fr);

        gap: 8px;
    }


    .match-word-column,
    .match-picture-column {
        gap: 8px;
    }


    .match-word-button,
    .match-picture-button {
        min-height: 58px;

        padding-left: 7px;
        padding-right: 7px;
    }


    .match-word-button {
        font-size: 14px;
    }


    .match-picture-button {
        font-size: 29px;
    }


    .sorter-word-card {
        min-width: 220px;
    }


    .category-answer-button {
        min-height: 92px;
    }


    .memory-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap: 8px;
    }


    .memory-card,
    .memory-card-inner {
        min-height: 93px;
    }


    .memory-card-front,
    .memory-card-back {
        border-radius: 16px;
    }


    .memory-card-back {
        padding: 6px;

        font-size: 13px;
    }


    .memory-card[data-kind="picture"]
    .memory-card-back {
        font-size: 34px;
    }


    .lightning-dashboard {
        gap: 8px;
    }


    .lightning-counter,
    .lightning-streak {
        padding:
            12px 10px;
    }


    .lightning-counter span,
    .lightning-streak span {
        font-size: 9px;
    }


    .lightning-counter strong,
    .lightning-streak strong {
        font-size: 17px;
    }


    .lightning-answer-grid {
        grid-template-columns: 1fr;

        gap: 9px;
    }


    .lightning-answer-button {
        min-height: 61px;
    }


    .result-stars span {
        font-size: 33px;
    }


    .finish-button-row {
        flex-direction: column;

        align-items: stretch;
    }


    .finish-button-row
    .main-action-button,
    .finish-button-row
    .secondary-action-button {
        width: 100%;
    }
}


/* ==========================================================
   RESPONSIVE — NARROW MOBILE
========================================================== */

@media (max-width: 430px) {

    .review-intro-page
    .story-book-icon {
        width: 99px;
        height: 99px;

        font-size: 52px;
    }


    .championship-ribbon {
        overflow-x: auto;

        justify-content:
            flex-start;
    }


    .ribbon-dot {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 12px;
    }


    .ribbon-line {
        min-width: 12px;
    }


    .giant-listen-button {
        min-width: 205px;

        padding-left: 17px;
        padding-right: 17px;
    }


    .picture-answer-button {
        min-height: 100px;
    }


    .picture-answer-button span {
        font-size: 37px;
    }


    .category-answer-button strong {
        font-size: 12px;
    }


    .memory-status-item {
        padding-left: 9px;
        padding-right: 9px;

        column-gap: 6px;
    }


    .memory-status-item
    > span {
        font-size: 22px;
    }


    .memory-status-item strong {
        font-size: 17px;
    }


    .memory-card,
    .memory-card-inner {
        min-height: 82px;
    }


    .memory-card[data-kind="picture"]
    .memory-card-back {
        font-size: 29px;
    }


    .mystery-box-visual,
    .lightning-question-icon {
        width: 86px;
        height: 86px;

        font-size: 47px;
    }


    .round-complete-card {
        padding-left: 16px;
        padding-right: 16px;
    }
}