/* =========================================================
   YEW — GRADE 4
   LESSON 2 — QUESTION WORDS
   ========================================================= */


/* =========================================================
   1. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #302b3e;

    background:
        linear-gradient(
            180deg,
            #fcfbff 0%,
            #f8f6ff 48%,
            #fcfbff 100%
        );
}

button,
a {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   2. BACKGROUND
   ========================================================= */

.background-shape {
    position: fixed;
    z-index: -3;

    border-radius: 50%;

    pointer-events: none;
}

.shape-one {
    width: 430px;
    height: 430px;

    top: 100px;
    left: -250px;

    background: rgba(216, 205, 255, 0.34);
}

.shape-two {
    width: 520px;
    height: 520px;

    top: 37%;
    right: -310px;

    background: rgba(229, 220, 255, 0.35);
}

.shape-three {
    width: 350px;
    height: 350px;

    bottom: -190px;
    left: 20%;

    background: rgba(218, 210, 250, 0.25);
}


/* =========================================================
   3. FLOATING SYMBOLS
   ========================================================= */

.floating-symbol {
    position: fixed;
    z-index: -2;

    color: rgba(113, 86, 187, 0.09);

    font-size: 38px;
    font-weight: 900;

    pointer-events: none;
    user-select: none;
}

.symbol-one {
    top: 24%;
    left: 5%;

    font-size: 65px;

    transform: rotate(-12deg);
}

.symbol-two {
    top: 19%;
    right: 5%;

    font-size: 29px;

    transform: rotate(11deg);
}

.symbol-three {
    bottom: 15%;
    left: 6%;

    font-size: 28px;

    transform: rotate(8deg);
}

.symbol-four {
    right: 7%;
    bottom: 14%;

    font-size: 48px;

    transform: rotate(-9deg);
}


/* =========================================================
   4. HEADER
   ========================================================= */

.lesson-navigation {
    width: 100%;
    height: 70px;

    padding: 0 34px;

    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.93);

    border-bottom:
        1px solid rgba(111, 88, 177, 0.10);

    backdrop-filter: blur(12px);
}

.lesson-brand {
    display: flex;
    align-items: center;

    gap: 14px;
}

.lesson-logo {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8c75d8,
            #7258c1
        );

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.7px;

    box-shadow:
        0 7px 17px rgba(104, 77, 177, 0.20);
}

.lesson-chapter {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.chapter-number {
    color: #8c80a6;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.25px;
}

.chapter-name {
    color: #332d45;

    font-size: 14px;
    font-weight: 750;
}

.close-lesson-button {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #7461ae;

    background: #f5f2fc;

    font-size: 17px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.close-lesson-button:hover {
    background: #ebe5fa;

    transform: rotate(5deg);
}


/* =========================================================
   5. PROGRESS
   ========================================================= */

.lesson-progress-wrapper {
    width: min(920px, calc(100% - 40px));

    margin: 17px auto 0;

    display: flex;
    align-items: center;

    gap: 13px;
}

.lesson-progress-track {
    flex: 1;

    height: 7px;

    overflow: hidden;

    border-radius: 999px;

    background: #ebe7f3;
}

.lesson-progress-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #9b86de,
            #745ac4
        );

    transition: width 0.4s ease;
}

.lesson-progress-number {
    min-width: 38px;

    color: #877aa2;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   6. SCREENS
   ========================================================= */

.lesson-content {
    width: 100%;
}

.lesson-screen {
    display: none;

    width: 100%;

    padding: 32px 20px 75px;

    animation: screenFade 0.35s ease;
}

.lesson-screen.active-screen {
    display: block;
}

@keyframes screenFade {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   7. MAIN PANEL
   ========================================================= */

.lesson-panel {
    width: min(920px, 100%);

    margin: 0 auto;

    padding: 44px 52px 46px;

    text-align: center;

    border:
        1px solid rgba(116, 91, 183, 0.10);

    border-radius: 27px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
        0 17px 50px rgba(67, 49, 112, 0.08);
}


/* =========================================================
   8. LABELS
   ========================================================= */

.screen-label,
.activity-progress,
.word-badge {
    min-height: 29px;

    margin-bottom: 16px;

    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    color: #755ebd;

    background: #f0ebfc;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.word-badge {
    min-width: 85px;

    color: #654ba9;

    background: #ece6fa;

    font-size: 11px;
}


/* =========================================================
   9. TYPOGRAPHY
   ========================================================= */

.lesson-panel h1 {
    margin-bottom: 14px;

    color: #302941;

    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.lesson-panel h2 {
    margin-bottom: 12px;

    color: #302941;

    font-size: clamp(25px, 4vw, 35px);
    line-height: 1.15;
    letter-spacing: -0.7px;
}

.lesson-panel h3 {
    color: #493b64;

    font-size: 18px;
}

.screen-introduction {
    max-width: 690px;

    margin: 0 auto 30px;

    color: #716a7d;

    font-size: 16px;
    line-height: 1.7;
}

.screen-introduction strong {
    color: #57457c;
}


/* =========================================================
   10. INTRO SCREEN
   ========================================================= */

.intro-panel {
    padding-top: 52px;
}

.intro-icon {
    width: 96px;
    height: 96px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #f3efff,
            #e9e2fb
        );

    font-size: 47px;

    box-shadow:
        0 12px 26px rgba(95, 70, 164, 0.11);
}

.intro-question-row {
    max-width: 690px;

    margin: 27px auto 19px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 9px;
}

.intro-question-row span {
    padding: 9px 14px;

    border:
        1px solid #e5def2;

    border-radius: 999px;

    color: #66518f;

    background: #faf8fe;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
}

.intro-note {
    max-width: 650px;

    margin: 0 auto;

    padding: 15px 18px;

    display: flex;
    align-items: center;

    gap: 12px;

    text-align: left;

    border:
        1px solid #e8e1f5;

    border-radius: 16px;

    background: #f7f4fd;
}

.intro-note > span {
    flex: 0 0 auto;

    font-size: 21px;
}

.intro-note p {
    color: #6b6275;

    font-size: 13px;
    line-height: 1.6;
}

.intro-note strong {
    color: #59457c;
}


/* =========================================================
   11. MAIN BUTTON
   ========================================================= */

.main-action-button {
    min-width: 185px;
    min-height: 49px;

    margin-top: 26px;

    padding: 13px 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    border: none;
    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #8b73d7,
            #7157bf
        );

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 9px 20px rgba(104, 76, 181, 0.20);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.main-action-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(104, 76, 181, 0.25);
}

.main-action-button:active {
    transform: translateY(0);
}

.main-action-button span {
    font-size: 18px;
}

.hidden-button {
    display: none !important;
}


/* =========================================================
   12. COMPARISON BOX
   ========================================================= */

.comparison-box {
    max-width: 790px;

    margin: 4px auto 24px;

    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    align-items: stretch;

    gap: 11px;
}

.comparison-card {
    min-height: 235px;

    padding: 25px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #ebe6f2;

    border-radius: 20px;

    background: #faf9fc;
}

.highlight-card {
    border-color: #dcd1ef;

    background:
        linear-gradient(
            145deg,
            #faf8ff,
            #f4f0fc
        );
}

.comparison-label {
    margin-bottom: 15px;

    color: #92879e;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.1px;
}

.comparison-big-word {
    margin-bottom: 17px;

    color: #634c8b;

    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #9a8cab;

    font-size: 12px;
    font-weight: 900;
}

.english-example {
    color: #4d4358;

    font-size: 17px;
    font-weight: 750;
    line-height: 1.55;
}

.english-example strong {
    color: #624a8d;
}

.translation {
    margin-top: 6px;

    color: #918797;

    font-size: 12px;
    line-height: 1.5;
}

.answer-example {
    margin-top: 15px;

    padding: 8px 12px;

    border-radius: 10px;

    color: #65528a;

    background: #eee9f8;

    font-size: 12px;
    font-weight: 800;
}

.comparison-tip {
    margin-top: 14px;

    color: #827888;

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   13. IMPORTANT NOTE
   ========================================================= */

.important-note,
.final-rule-card {
    max-width: 760px;

    margin: 23px auto 5px;

    padding: 17px 20px;

    display: flex;
    align-items: flex-start;

    gap: 13px;

    text-align: left;

    border:
        1px solid #e5def8;

    border-radius: 17px;

    background: #f5f1fd;
}

.important-note > span,
.final-rule-card > span {
    flex: 0 0 auto;

    font-size: 22px;
}

.important-note p,
.final-rule-card p {
    color: #665e70;

    font-size: 14px;
    line-height: 1.65;
}

.important-note strong,
.final-rule-card strong {
    color: #58427f;
}


/* =========================================================
   14. QUESTION WORD GRID
   ========================================================= */

.question-word-grid {
    max-width: 800px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.question-word-card {
    min-height: 175px;

    padding: 19px 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #ebe6f2;

    border-radius: 19px;

    background: #faf9fc;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.question-word-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(70, 51, 112, 0.07);
}

.question-icon {
    margin-bottom: 9px;

    font-size: 30px;
}

.question-word-card strong {
    color: #5b447f;

    font-size: 16px;
    letter-spacing: 0.5px;
}

.question-word-card small {
    margin-top: 4px;

    color: #8d8299;

    font-size: 11px;
    font-weight: 700;
}

.question-word-card p {
    margin-top: 9px;

    color: #958b9f;

    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   15. BIG WORD ICON
   ========================================================= */

.big-word-icon {
    width: 82px;
    height: 82px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #f2eefc,
            #eae3f8
        );

    font-size: 39px;
}


/* =========================================================
   16. EXAMPLE LIST
   ========================================================= */

.example-list {
    max-width: 690px;

    margin: 0 auto 22px;

    display: grid;

    gap: 10px;
}

.example-row {
    min-height: 79px;

    padding: 14px 18px;

    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;

    gap: 14px;

    text-align: left;

    border:
        1px solid #ebe7f1;

    border-radius: 16px;

    background: #faf9fc;
}

.example-row > span {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #f0ecf7;

    font-size: 23px;
}

.example-row > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.example-row strong {
    color: #50435f;

    font-size: 14px;
}

.example-row small {
    color: #948a9d;

    font-size: 11px;
}

.compact-examples {
    margin-top: 18px;
}


/* =========================================================
   17. LISTEN BUTTON
   ========================================================= */

.listen-button {
    min-height: 44px;

    padding: 10px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #67509e;

    background: #eee9f8;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.listen-button:hover {
    background: #e5ddf5;

    transform: translateY(-1px);
}

.listen-button.audio-playing {
    background: #ded4f3;

    transform: scale(1.02);
}


/* =========================================================
   18. WHY / BECAUSE
   ========================================================= */

.why-because-box {
    max-width: 760px;

    margin: 0 auto 22px;

    display: grid;
    grid-template-columns: 1fr 45px 1fr;
    align-items: center;

    gap: 11px;
}

.why-side,
.because-side {
    min-height: 175px;

    padding: 22px 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #e9e4f1;

    border-radius: 19px;

    background: #faf9fc;
}

.because-side {
    border-color: #ddd3ee;

    background: #f7f3fc;
}

.mini-label {
    margin-bottom: 13px;

    color: #968ba1;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.why-side strong,
.because-side strong {
    color: #51415f;

    font-size: 15px;
    line-height: 1.5;
}

.why-side small,
.because-side small {
    margin-top: 7px;

    color: #918697;

    font-size: 11px;
}

.because-arrow {
    color: #9889aa;

    font-size: 23px;
    font-weight: 900;
}


/* =========================================================
   19. WHICH CHOICE
   ========================================================= */

.choice-example {
    max-width: 610px;

    margin: 0 auto 22px;

    padding: 24px;

    border:
        1px solid #e8e2f1;

    border-radius: 20px;

    background: #faf9fc;
}

.choice-example > p {
    color: #51455e;

    font-size: 17px;
    font-weight: 750;
}

.choice-items {
    margin: 20px 0;

    display: flex;
    justify-content: center;

    gap: 22px;
}

.choice-items div {
    width: 105px;
    height: 105px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border:
        1px solid #e6e0ee;

    border-radius: 18px;

    background: #ffffff;

    font-size: 40px;
}

.choice-items small {
    color: #8e819d;

    font-size: 10px;
    font-weight: 900;
}

.choice-example > strong {
    color: #644f89;

    font-size: 13px;
}


/* =========================================================
   20. WHOSE
   ========================================================= */

.whose-example {
    max-width: 570px;

    margin: 0 auto;

    padding: 22px;

    border:
        1px solid #e8e3ef;

    border-radius: 20px;

    background: #faf9fc;
}

.whose-object {
    width: 72px;
    height: 72px;

    margin: 0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #efebf7;

    font-size: 36px;
}


/* =========================================================
   21. HOW GRID
   ========================================================= */

.how-grid {
    max-width: 790px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.how-card {
    min-height: 185px;

    padding: 19px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #ebe6f2;

    border-radius: 18px;

    background: #faf9fc;
}

.how-card > span {
    margin-bottom: 9px;

    font-size: 29px;
}

.how-card strong {
    color: #5c4780;

    font-size: 13px;
}

.how-card small {
    margin-top: 4px;

    color: #92879c;

    font-size: 10px;
}

.how-card p {
    margin-top: 12px;

    color: #706677;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   22. MINI EXAMPLES
   ========================================================= */

.mini-examples {
    margin: 16px 0;

    padding: 11px 16px;

    border-radius: 12px;

    color: #74697c;

    background: #ffffff;

    font-size: 12px;
    line-height: 1.8;
}


/* =========================================================
   23. QUESTION FORMULA
   ========================================================= */

.formula-box {
    max-width: 790px;

    margin: 10px auto 20px;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 8px;
}

.formula-piece {
    min-width: 120px;
    min-height: 85px;

    padding: 13px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #e7e1ef;

    border-radius: 15px;

    color: #564466;

    background: #faf9fc;

    font-size: 16px;
    font-weight: 900;
}

.formula-piece small {
    margin-top: 5px;

    color: #9a90a2;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.question-piece {
    color: #624b8e;

    border-color: #dcd0ef;

    background: #f2edfb;
}

.helper-piece {
    background: #f8f5fc;
}

.person-piece {
    background: #fbfafc;
}

.verb-piece {
    background: #f7f5fa;
}

.formula-plus {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #a096aa;

    font-size: 16px;
    font-weight: 900;
}

.formula-result {
    width: fit-content;

    margin: 0 auto 5px;

    padding: 13px 22px;

    border-radius: 13px;

    color: #5c4782;

    background: #eee8fa;

    font-size: 18px;
    font-weight: 850;
}


/* =========================================================
   24. STRUCTURES
   ========================================================= */

.structure-grid {
    max-width: 790px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
}

.structure-card {
    min-height: 240px;

    padding: 22px 15px;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #e9e4f1;

    border-radius: 20px;

    background: #faf9fc;
}

.structure-number {
    width: 28px;
    height: 28px;

    position: absolute;
    top: 12px;
    left: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #ffffff;

    background: #8168c8;

    font-size: 10px;
    font-weight: 900;
}

.structure-card > strong {
    color: #5a477d;

    font-size: 12px;
    letter-spacing: 0.5px;
}

.structure-formula {
    margin: 15px 0;

    padding: 9px 10px;

    border-radius: 10px;

    color: #65538a;

    background: #eee9f8;

    font-size: 11px;
    font-weight: 800;
}

.structure-card .english-example {
    font-size: 15px;
}

.structure-card small {
    margin-top: 6px;

    color: #94899e;

    font-size: 10px;
}


/* =========================================================
   25. ACTIVITY
   ========================================================= */

.activity-panel {
    max-width: 820px;

    padding-top: 43px;
}

.activity-question-icon {
    width: 76px;
    height: 76px;

    margin: 2px auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background: #f1edfa;

    font-size: 36px;
}

.activity-question {
    max-width: 650px;

    margin: 18px auto 23px;

    color: #51495d;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
}

.activity-options {
    max-width: 660px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.large-options {
    grid-template-columns: 1fr;
}

.activity-option {
    min-height: 58px;

    padding: 13px 16px;

    border:
        1px solid #e8e3ef;

    border-radius: 14px;

    color: #4e4659;

    background: #faf9fc;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;

    cursor: pointer;

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.activity-option:hover:not(:disabled) {
    transform: translateY(-2px);

    border-color: #cec2e8;

    background: #f7f3fe;
}

.activity-option.correct {
    color: #37704a;

    border-color: #aad8b9;

    background: #edf9f1;
}

.activity-option.wrong {
    color: #994e58;

    border-color: #efb8be;

    background: #fff1f2;

    animation: wrongShake 0.25s ease;
}

@keyframes wrongShake {

    0%,
    100% {
        transform: translateX(0);
    }

    33% {
        transform: translateX(-4px);
    }

    66% {
        transform: translateX(4px);
    }
}

.activity-feedback {
    min-height: 28px;

    margin-top: 17px;

    font-size: 13px;
    font-weight: 800;
}

.correct-feedback {
    color: #4d8960;
}

.wrong-feedback {
    color: #b25b67;
}

.activity-option:disabled {
    cursor: default;

    opacity: 0.68;
}

.activity-option.correct:disabled {
    opacity: 1;
}


/* =========================================================
   26. TRUE / FALSE STYLE
   ========================================================= */

.true-false-options {
    max-width: 500px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}

.true-false-options .activity-option {
    min-height: 77px;

    font-size: 15px;
}


/* =========================================================
   27. DIALOGUE
   ========================================================= */

.dialogue-card {
    max-width: 690px;

    margin: 0 auto 22px;

    padding: 23px;

    display: flex;
    flex-direction: column;

    gap: 11px;

    border:
        1px solid #e8e3ef;

    border-radius: 21px;

    background: #faf9fc;
}

.dialogue-line {
    max-width: 82%;

    padding: 12px 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    text-align: left;

    border:
        1px solid #ebe6f1;

    border-radius: 16px;

    background: #ffffff;
}

.left-line {
    align-self: flex-start;

    border-bottom-left-radius: 5px;
}

.right-line {
    align-self: flex-end;

    border-color: #ded4ef;

    border-bottom-right-radius: 5px;

    background: #f2edfa;
}

.speaker-avatar {
    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f0ecf6;

    font-size: 20px;
}

.dialogue-line > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.dialogue-line strong {
    color: #51455d;

    font-size: 12px;
}

.dialogue-line small {
    color: #998fa1;

    font-size: 9px;
}


/* =========================================================
   28. ANSWER CLUE
   ========================================================= */

.answer-clue {
    max-width: 570px;

    margin: 5px auto 17px;

    padding: 17px 20px;

    display: flex;
    flex-direction: column;

    gap: 6px;

    border:
        1px solid #ded5ef;

    border-radius: 16px;

    background: #f5f1fc;
}

.answer-clue small {
    color: #9687aa;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.answer-clue strong {
    color: #574370;

    font-size: 16px;
    line-height: 1.5;
}

.large-clue {
    min-height: 120px;

    justify-content: center;
}

.large-clue strong {
    font-size: 22px;
}


/* =========================================================
   29. REVIEW
   ========================================================= */

.review-grid {
    max-width: 730px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 11px;
}

.review-card {
    min-height: 135px;

    padding: 15px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #ece7f2;

    border-radius: 17px;

    background: #faf9fc;
}

.review-card span {
    margin-bottom: 6px;

    font-size: 27px;
}

.review-card strong {
    color: #5b487d;

    font-size: 12px;
    letter-spacing: 0.6px;
}

.review-card small {
    margin-top: 4px;

    color: #92879d;

    font-size: 10px;
}


/* =========================================================
   30. GAME INTRO
   ========================================================= */

.game-intro-panel {
    padding-top: 50px;
}

.game-icon,
.video-icon {
    width: 91px;
    height: 91px;

    margin: 0 auto 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            #f2edfc,
            #e8e1f8
        );

    font-size: 43px;

    box-shadow:
        0 10px 24px rgba(80, 58, 139, 0.09);
}

.game-rules {
    max-width: 630px;

    margin: 0 auto;

    display: grid;

    gap: 9px;
}

.game-rules div {
    min-height: 57px;

    padding: 10px 15px;

    display: flex;
    align-items: center;

    gap: 13px;

    text-align: left;

    border:
        1px solid #ebe6f2;

    border-radius: 14px;

    color: #716778;

    background: #faf9fc;

    font-size: 12px;
    font-weight: 650;
}

.game-rules span {
    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color: #ffffff;

    background: #8067c7;

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   31. VIDEO
   ========================================================= */

.video-container {
    width: min(700px, 100%);

    aspect-ratio: 16 / 9;

    margin: 0 auto;

    overflow: hidden;

    border:
        1px solid #e6e0ee;

    border-radius: 20px;

    background: #f1edf6;

    box-shadow:
        0 10px 28px rgba(64, 48, 100, 0.08);
}

.video-container iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* =========================================================
   32. COMPLETION
   ========================================================= */

.completion-panel {
    max-width: 820px;

    padding-top: 52px;
}

.completion-trophy {
    width: 106px;
    height: 106px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #fff8dc,
            #f8e9ad
        );

    font-size: 52px;

    box-shadow:
        0 12px 28px rgba(164, 128, 44, 0.12);
}

.completion-text {
    max-width: 620px;

    margin: 0 auto 26px;

    color: #71687c;

    font-size: 15px;
    line-height: 1.7;
}

.completion-text strong {
    color: #554274;
}

.achievement-card {
    max-width: 530px;

    margin: 0 auto 22px;

    padding: 18px 21px;

    display: flex;
    align-items: center;

    gap: 16px;

    text-align: left;

    border:
        1px solid #e4dcf5;

    border-radius: 19px;

    background:
        linear-gradient(
            135deg,
            #f4f0fd,
            #fbf9ff
        );
}

.achievement-icon {
    width: 63px;
    height: 63px;

    flex: 0 0 63px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #ffffff;

    font-size: 31px;

    box-shadow:
        0 7px 18px rgba(70, 51, 112, 0.07);
}

.achievement-card > div:last-child {
    display: flex;
    flex-direction: column;
}

.achievement-card small {
    margin-bottom: 3px;

    color: #9587ab;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.achievement-card strong {
    color: #554075;

    font-size: 18px;
}

.achievement-card p {
    margin-top: 3px;

    color: #9990a3;

    font-size: 11px;
}

.completion-skills {
    max-width: 660px;

    margin: 0 auto 5px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 8px;
}

.completion-skills div {
    padding: 8px 12px;

    border:
        1px solid #ece7f2;

    border-radius: 999px;

    color: #766d7f;

    background: #f8f6fa;

    font-size: 11px;
    font-weight: 700;
}

.completion-skills span {
    margin-right: 4px;

    color: #66a377;
}

.final-rule-card {
    max-width: 610px;

    margin-top: 23px;
}

.finish-lesson-button {
    margin-top: 25px;
}


/* =========================================================
   33. FOCUS
   ========================================================= */

button:focus-visible,
a:focus-visible {
    outline:
        3px solid rgba(124, 99, 195, 0.25);

    outline-offset: 3px;
}


/* =========================================================
   34. TABLET
   ========================================================= */

@media (max-width: 850px) {

    .lesson-panel {
        padding:
            38px 34px
            40px;
    }

    .question-word-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .review-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .formula-box {
        flex-wrap: wrap;
    }

    .formula-piece {
        min-width: 115px;
    }
}


/* =========================================================
   35. SMALL TABLET
   ========================================================= */

@media (max-width: 680px) {

    .lesson-navigation {
        height: 65px;

        padding: 0 18px;
    }

    .lesson-logo {
        width: 39px;
        height: 39px;
    }

    .chapter-number {
        font-size: 8px;
    }

    .chapter-name {
        font-size: 12px;
    }

    .lesson-progress-wrapper {
        width: calc(100% - 28px);
    }

    .lesson-screen {
        padding:
            25px 13px
            55px;
    }

    .lesson-panel {
        padding:
            32px 20px
            35px;

        border-radius: 22px;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }

    .comparison-arrow {
        min-height: 30px;
    }

    .why-because-box {
        grid-template-columns: 1fr;
    }

    .because-arrow {
        transform: rotate(90deg);
    }

    .how-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .structure-grid {
        grid-template-columns: 1fr;
    }

    .structure-card {
        min-height: 190px;
    }

    .formula-box {
        display: grid;
        grid-template-columns: 1fr;
    }

    .formula-piece {
        width: 100%;
        min-height: 68px;
    }

    .formula-plus {
        min-height: 20px;
    }

    .activity-options {
        grid-template-columns: 1fr;
    }

    .true-false-options {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   36. MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .lesson-navigation {
        padding: 0 13px;
    }

    .lesson-brand {
        gap: 9px;
    }

    .chapter-name {
        max-width: 155px;

        overflow: hidden;

        white-space: nowrap;

        text-overflow: ellipsis;
    }

    .close-lesson-button {
        width: 35px;
        height: 35px;
    }

    .lesson-panel {
        padding:
            29px 15px
            32px;

        border-radius: 19px;
    }

    .screen-introduction {
        font-size: 14px;
    }

    .intro-question-row {
        gap: 7px;
    }

    .intro-question-row span {
        padding: 8px 10px;

        font-size: 9px;
    }

    .question-word-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;
    }

    .question-word-card {
        min-height: 155px;

        padding: 15px 8px;
    }

    .example-row {
        grid-template-columns: 42px 1fr;

        padding: 12px;

        gap: 10px;
    }

    .example-row > span {
        width: 40px;
        height: 40px;

        font-size: 20px;
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .how-card {
        min-height: 145px;
    }

    .choice-items div {
        width: 85px;
        height: 85px;

        font-size: 32px;
    }

    .activity-question {
        font-size: 16px;
    }

    .activity-option {
        font-size: 13px;
    }

    .dialogue-card {
        padding: 15px 10px;
    }

    .dialogue-line {
        max-width: 92%;
    }

    .large-clue strong {
        font-size: 18px;
    }

    .review-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;
    }

    .review-card {
        min-height: 120px;
    }

    .achievement-card {
        padding: 15px;
    }

    .achievement-icon {
        width: 55px;
        height: 55px;

        flex-basis: 55px;
    }

    .main-action-button {
        width: 100%;

        min-width: 0;
    }
}


/* =========================================================
   37. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .question-word-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .question-word-card,
    .review-card {
        min-height: 125px;
    }

    .chapter-name {
        max-width: 120px;
    }

    .choice-items {
        gap: 10px;
    }
}