/* =========================================================
   YEW — GRADE 4
   LESSON 10 — DIRECTIONS & GETTING AROUND
   ========================================================= */


/* =========================================================
   1. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #302b3e;

    background:
        linear-gradient(
            180deg,
            #fcfbff 0%,
            #f8f6ff 48%,
            #fcfbff 100%
        );

    overflow-x: hidden;
}

button,
a {
    font: inherit;
}

button {
    border: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   2. BACKGROUND DECORATION
   ========================================================= */

.background-shape {
    position: fixed;
    z-index: -3;

    border-radius: 50%;

    pointer-events: none;
}

.shape-one {
    width: 430px;
    height: 430px;

    top: 90px;
    left: -245px;

    background:
        rgba(216, 205, 255, 0.34);
}

.shape-two {
    width: 520px;
    height: 520px;

    top: 36%;
    right: -310px;

    background:
        rgba(229, 220, 255, 0.35);
}

.shape-three {
    width: 350px;
    height: 350px;

    left: 20%;
    bottom: -190px;

    background:
        rgba(218, 210, 250, 0.25);
}


/* =========================================================
   3. FLOATING SYMBOLS
   ========================================================= */

.floating-symbol {
    position: fixed;
    z-index: -2;

    color: rgba(113, 86, 187, 0.1);

    font-size: 40px;
    font-weight: 900;

    pointer-events: none;
    user-select: none;
}

.symbol-one {
    top: 25%;
    left: 5%;

    transform: rotate(-13deg);
}

.symbol-two {
    top: 20%;
    right: 6%;

    transform: rotate(12deg);
}

.symbol-three {
    bottom: 14%;
    left: 7%;

    transform: rotate(8deg);
}

.symbol-four {
    right: 7%;
    bottom: 15%;

    transform: rotate(-9deg);
}


/* =========================================================
   4. HEADER
   ========================================================= */

.lesson-navigation {
    width: 100%;
    height: 70px;

    padding: 0 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 100;

    background:
        rgba(255, 255, 255, 0.93);

    border-bottom:
        1px solid rgba(111, 88, 177, 0.1);

    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.2);
}

.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.1);

    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,
.map-game-level-label {
    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;
}


/* =========================================================
   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;
}

.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
   ========================================================= */

.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-feature-grid {
    max-width: 650px;

    margin:
        29px auto
        10px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 13px;
}

.intro-feature-card {
    min-height: 145px;

    padding: 21px 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: 20px;

    border:
        1px solid #eee9f7;

    background: #faf9fd;
}

.intro-feature-card span {
    font-size: 32px;
}

.intro-feature-card strong {
    color: #4e406d;

    font-size: 16px;
}

.intro-feature-card small {
    color: #91899e;

    font-size: 12px;
}


/* =========================================================
   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.2);

    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;
}


/* =========================================================
   12. BASIC DIRECTIONS
   ========================================================= */

.directions-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.direction-card {
    min-height: 190px;

    padding: 22px 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    border:
        1px solid #ece7f4;

    background: #faf9fc;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.direction-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 9px 22px
        rgba(69, 50, 110, 0.07);
}

.direction-icon {
    margin-bottom: 10px;

    font-size: 35px;
}

.direction-card strong {
    margin-bottom: 4px;

    color: #493b64;

    font-size: 16px;
}

.direction-card small {
    margin-bottom: 13px;

    color: #938a9f;

    font-size: 12px;
}


/* =========================================================
   13. AUDIO BUTTON
   ========================================================= */

.speak-button {
    width: 35px;
    height: 35px;

    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #6952a5;

    background: #eee9f8;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.speak-button:hover {
    background: #e4dcf5;

    transform: scale(1.07);
}

.speak-button.audio-playing {
    transform: scale(1.08);

    background: #dfd6f5;
}


/* =========================================================
   14. LEFT / RIGHT
   ========================================================= */

.left-right-grid {
    max-width: 690px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 17px;
}

.left-right-card {
    min-height: 265px;

    padding: 27px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    border-radius: 22px;

    border:
        1px solid #eae5f3;

    background: #faf9fc;
}

.big-arrow {
    margin-bottom: 7px;

    color: #795fc1;

    font-size: 69px;
    font-weight: 900;

    line-height: 1;
}

.left-right-card > strong {
    color: #493866;

    font-size: 25px;
}

.left-right-card > small {
    margin-top: 2px;

    color: #968ba5;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}

.left-right-card p {
    margin:
        15px 0
        14px;

    padding:
        9px 15px;

    border-radius: 11px;

    color: #62586e;

    background: #ffffff;

    font-size: 14px;
}


/* =========================================================
   15. NOTES
   ========================================================= */

.important-note,
.golden-tip {
    max-width: 760px;

    margin:
        24px auto
        5px;

    padding:
        17px 20px;

    display: flex;
    align-items: flex-start;

    gap: 13px;

    text-align: left;

    border-radius: 17px;
}

.important-note {
    border:
        1px solid #e5def8;

    background: #f5f1fd;
}

.golden-tip {
    border:
        1px solid #f0e2b8;

    background: #fffaf0;
}

.important-note > span,
.golden-tip > span {
    flex: 0 0 auto;

    font-size: 22px;
}

.important-note p,
.golden-tip p {
    color: #665e70;

    font-size: 14px;
    line-height: 1.65;
}

.important-note strong {
    color: #58427f;
}

.golden-tip strong {
    color: #735f2d;
}


/* =========================================================
   16. 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;
}

.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;

    cursor: pointer;

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.activity-option:hover {
    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;
}

.hidden-button {
    display: none !important;
}


/* =========================================================
   17. PLACES IN TOWN
   ========================================================= */

.places-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 12px;
}

.place-card {
    min-height: 165px;

    padding:
        18px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #ece8f3;

    border-radius: 18px;

    background: #faf9fc;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.place-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px
        rgba(68, 49, 108, 0.07);
}

.place-card > span {
    margin-bottom: 7px;

    font-size: 30px;
}

.place-card > strong {
    color: #4a3d60;

    font-size: 14px;
}

.place-card > small {
    margin:
        3px 0
        11px;

    color: #958c9f;

    font-size: 11px;
}


/* =========================================================
   18. LOCATION
   ========================================================= */

.location-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.location-card {
    min-height: 205px;

    padding:
        22px 17px;

    display: flex;
    flex-direction: column;
    align-items: center;

    border:
        1px solid #ece7f4;

    border-radius: 19px;

    background: #faf9fc;
}

.location-card > span {
    min-height: 45px;

    margin-bottom: 7px;

    display: flex;
    align-items: center;

    font-size: 28px;
}

.location-card > strong {
    color: #513f70;

    font-size: 17px;
}

.location-card > small {
    margin-top: 3px;

    color: #93899e;

    font-size: 11px;
}

.location-card p {
    width: 100%;

    margin-top: auto;

    padding: 10px;

    border-radius: 11px;

    color: #685e72;

    background: #ffffff;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   19. PHRASES
   ========================================================= */

.phrase-list {
    max-width: 730px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 11px;
}

.phrase-card {
    min-height: 80px;

    padding:
        14px 16px;

    display: grid;

    grid-template-columns:
        45px 1fr 37px;

    align-items: center;

    gap: 13px;

    text-align: left;

    border:
        1px solid #ece7f3;

    border-radius: 16px;

    background: #faf9fc;
}

.phrase-card > span {
    font-size: 26px;
}

.phrase-card > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.phrase-card strong {
    color: #473a5d;

    font-size: 14px;
}

.phrase-card small {
    color: #938b9e;

    font-size: 11px;
}


/* =========================================================
   20. ROUTE FORMULA
   ========================================================= */

.route-formula {
    max-width: 760px;

    margin:
        5px auto
        24px;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border:
        1px solid #e8e1f5;

    border-radius: 20px;

    background: #f8f5fd;
}

.route-formula-piece {
    min-height: 105px;

    flex: 1;

    padding: 15px 11px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border:
        1px solid #ebe6f2;

    border-radius: 15px;

    background: #ffffff;
}

.route-formula-piece span {
    font-size: 28px;
}

.route-formula-piece strong {
    color: #4f4163;

    font-size: 12px;
}

.formula-arrow {
    color: #9a8aad;

    font-size: 21px;
    font-weight: 800;
}

.example-route-box {
    max-width: 620px;

    margin: 0 auto;

    padding:
        17px 18px;

    display: grid;

    grid-template-columns:
        40px 1fr 38px;

    align-items: center;

    gap: 12px;

    border:
        1px solid #ece7f3;

    border-radius: 17px;

    background: #faf9fc;

    text-align: left;
}

.example-route-box > span {
    font-size: 27px;
}

.example-route-box p {
    color: #51465f;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   21. GO / TURN / CROSS
   ========================================================= */

.three-action-grid {
    max-width: 760px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.action-meaning-card {
    min-height: 225px;

    padding: 25px 17px;

    display: flex;
    flex-direction: column;
    align-items: center;

    border:
        1px solid #ebe6f3;

    border-radius: 20px;

    background: #faf9fc;
}

.action-meaning-card > span {
    margin-bottom: 10px;

    font-size: 37px;
}

.action-meaning-card > strong {
    color: #523e73;

    font-size: 21px;
}

.action-meaning-card > small {
    margin-top: 4px;

    color: #92889d;

    font-size: 11px;
}

.action-meaning-card p {
    width: 100%;

    margin-top: auto;

    padding: 11px;

    border-radius: 11px;

    color: #655b70;

    background: #ffffff;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   22. CITY MAP
   ========================================================= */

.city-map {
    width: min(690px, 100%);
    height: 440px;

    margin:
        5px auto
        25px;

    position: relative;

    overflow: hidden;

    border:
        1px solid #e6e0f0;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #f7f9f4,
            #f2f5ef
        );

    box-shadow:
        inset 0 0 30px
        rgba(82, 70, 110, 0.03);
}


/* roads */

.map-road {
    position: absolute;

    z-index: 1;

    background: #dedce2;
}

.horizontal-road {
    width: 100%;
    height: 58px;

    left: 0;
}

.road-one {
    top: 120px;
}

.road-two {
    top: 285px;
}

.vertical-road {
    width: 58px;
    height: 100%;

    top: 0;
}

.road-three {
    left: 315px;
}


/* road lines */

.horizontal-road::after {
    content: "";

    position: absolute;

    left: 0;
    top: 28px;

    width: 100%;
    height: 2px;

    background:
        repeating-linear-gradient(
            90deg,
            #ffffff 0,
            #ffffff 25px,
            transparent 25px,
            transparent 45px
        );
}

.vertical-road::after {
    content: "";

    position: absolute;

    top: 0;
    left: 28px;

    width: 2px;
    height: 100%;

    background:
        repeating-linear-gradient(
            180deg,
            #ffffff 0,
            #ffffff 25px,
            transparent 25px,
            transparent 45px
        );
}


/* places */

.city-place {
    min-width: 105px;
    min-height: 75px;

    padding: 9px;

    position: absolute;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #e4dfee;

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 7px 17px
        rgba(60, 48, 88, 0.08);
}

.city-place span {
    margin-bottom: 3px;

    font-size: 27px;
}

.city-place strong {
    color: #51455e;

    font-size: 11px;
}

.school-place {
    top: 24px;
    left: 40px;
}

.cafe-place {
    top: 25px;
    right: 48px;
}

.park-place {
    top: 195px;
    left: 65px;
}

.museum-place {
    top: 193px;
    right: 55px;
}

.hotel-place {
    bottom: 22px;
    left: 75px;
}

.station-place {
    right: 62px;
    bottom: 21px;
}

.you-are-here {
    position: absolute;
    z-index: 5;

    top: 194px;
    left: 292px;

    padding:
        8px 11px;

    border-radius: 999px;

    color: #ffffff;

    background: #765bc1;

    font-size: 10px;
    font-weight: 900;

    box-shadow:
        0 5px 14px
        rgba(83, 59, 150, 0.2);
}


/* =========================================================
   23. ROUTE INSTRUCTIONS
   ========================================================= */

.route-instruction-card {
    max-width: 550px;

    margin:
        4px auto
        23px;

    padding: 17px;

    display: flex;
    flex-direction: column;

    gap: 9px;

    border:
        1px solid #e9e3f2;

    border-radius: 18px;

    background: #f9f7fd;
}

.route-instruction-card > div {
    min-height: 47px;

    padding:
        8px 13px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-radius: 11px;

    color: #554b61;

    background: #ffffff;

    font-size: 13px;
    font-weight: 700;

    text-align: left;
}

.route-instruction-card div > span {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color: #7058b2;

    background: #eee8fa;

    font-size: 11px;
    font-weight: 900;
}


/* =========================================================
   24. DIALOGUE
   ========================================================= */

.dialogue-card {
    max-width: 700px;

    margin:
        4px auto
        22px;

    padding: 22px;

    display: flex;
    flex-direction: column;

    gap: 15px;

    border:
        1px solid #ebe6f2;

    border-radius: 21px;

    background: #faf9fc;
}

.dialogue-row {
    display: flex;
    align-items: flex-end;

    gap: 11px;
}

.dialogue-right {
    flex-direction: row-reverse;
}

.dialogue-person {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eee9f7;

    font-size: 22px;
}

.dialogue-bubble {
    max-width: 73%;

    padding:
        12px 15px;

    display: flex;
    flex-direction: column;

    gap: 4px;

    text-align: left;

    border:
        1px solid #e8e3ee;

    border-radius:
        15px 15px 15px 4px;

    background: #ffffff;
}

.dialogue-right .dialogue-bubble {
    border-radius:
        15px 15px 4px 15px;

    background: #f2edfc;
}

.dialogue-bubble strong {
    color: #493d5b;

    font-size: 13px;
}

.dialogue-bubble small {
    color: #958c9e;

    font-size: 11px;
}


/* =========================================================
   25. LISTEN BUTTON
   ========================================================= */

.listen-button {
    min-height: 45px;

    padding:
        11px 19px;

    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);
}


/* =========================================================
   26. LISTENING
   ========================================================= */

.listening-illustration {
    width: 87px;
    height: 87px;

    margin:
        3px auto
        18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 25px;

    background: #f0ecf9;

    font-size: 40px;
}


/* =========================================================
   27. READING
   ========================================================= */

.reading-story-card {
    max-width: 720px;

    margin:
        3px auto
        22px;

    padding: 24px;

    display: grid;

    grid-template-columns:
        65px 1fr;

    gap: 20px;

    text-align: left;

    border:
        1px solid #ebe6f2;

    border-radius: 21px;

    background: #faf9fc;
}

.story-character {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #eee9f7;

    font-size: 32px;
}

.story-text {
    color: #62596d;

    font-size: 14px;
    line-height: 1.75;
}

.story-text p + p {
    margin-top: 9px;
}

.story-text mark {
    padding:
        1px 4px;

    border-radius: 5px;

    color: #594582;

    background: #eee7fc;
}


/* =========================================================
   28. TOURIST GAME
   ========================================================= */

.tourist-card {
    max-width: 440px;

    margin:
        4px auto
        22px;

    padding:
        20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 17px;

    border:
        1px solid #e9e3f2;

    border-radius: 18px;

    background: #f9f7fd;
}

.tourist-card > span {
    font-size: 39px;
}

.tourist-card p {
    color: #544a60;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.6;

    text-align: left;
}

.large-options {
    grid-template-columns: 1fr;
}


/* =========================================================
   29. ROUTE BUILDER
   ========================================================= */

.route-builder {
    max-width: 610px;

    margin:
        5px auto
        23px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.route-builder-step {
    width: 100%;
    min-height: 83px;

    padding:
        13px 17px;

    display: grid;

    grid-template-columns:
        36px 42px 1fr;

    align-items: center;

    gap: 12px;

    text-align: left;

    border:
        1px solid #eae5f2;

    border-radius: 16px;

    background: #faf9fc;
}

.step-number {
    width: 33px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #6f57ae;

    background: #eee8f9;

    font-size: 11px;
    font-weight: 900;
}

.step-icon {
    font-size: 26px;
}

.route-builder-step > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.route-builder-step small {
    color: #988da4;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;
}

.route-builder-step strong {
    color: #4d425b;

    font-size: 13px;
}

.route-connector {
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #a094ad;

    font-size: 18px;
}


/* =========================================================
   30. VIDEO
   ========================================================= */

.video-frame {
    width: min(680px, 100%);
    aspect-ratio: 16 / 9;

    margin:
        5px auto
        24px;

    overflow: hidden;

    border:
        1px solid #e2dbf1;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #eee9fc,
            #f8f5fd
        );

    box-shadow:
        0 11px 30px
        rgba(72, 52, 120, 0.08);
}

.video-frame iframe {
    width: 100%;
    height: 100%;

    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #63527e;
}

.video-play-icon {
    width: 63px;
    height: 63px;

    margin-bottom: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background: #7c63c3;

    font-size: 20px;

    box-shadow:
        0 8px 20px
        rgba(94, 68, 162, 0.21);
}

.video-placeholder strong {
    font-size: 16px;
}

.video-placeholder p {
    color: #968ca4;

    font-size: 12px;
}


/* =========================================================
   31. REVIEW
   ========================================================= */

.review-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 13px;
}

.review-card {
    min-height: 155px;

    padding: 21px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid #ece7f2;

    border-radius: 19px;

    background: #faf9fc;
}

.review-card span {
    margin-bottom: 8px;

    font-size: 31px;
}

.review-card strong {
    margin-bottom: 6px;

    color: #5b487d;

    font-size: 12px;

    letter-spacing: 0.8px;
}

.review-card p {
    color: #8e8598;

    font-size: 12px;
    line-height: 1.55;
}

.big-golden-tip {
    margin-top: 23px;
}


/* =========================================================
   32. TREASURE MAP
   ========================================================= */

.treasure-map-panel {
    max-width: 820px;
}

.treasure-adventure-map {
    max-width: 650px;

    margin:
        5px auto
        20px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;
}

.map-level {
    width: 100%;
    min-height: 75px;

    padding:
        12px 16px;

    display: grid;

    grid-template-columns:
        44px 1fr 35px;

    align-items: center;

    gap: 12px;

    position: relative;

    text-align: left;

    border:
        1px solid #ece8f1;

    border-radius: 17px;

    color: #9a93a2;

    background: #f8f7fa;

    opacity: 0.68;

    cursor: not-allowed;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.map-level.unlocked {
    color: #4e415e;

    border-color: #d8cdeb;

    background: #ffffff;

    opacity: 1;

    cursor: pointer;
}

.map-level.unlocked:hover {
    transform: translateX(4px);

    box-shadow:
        0 8px 19px
        rgba(70, 51, 112, 0.08);
}

.map-level.completed {
    color: #4d7556;

    border-color: #c7e0ce;

    background: #f1f8f3;

    opacity: 1;

    cursor: pointer;
}

.level-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #efebf4;

    font-size: 23px;
}

.map-level.unlocked .level-icon {
    background: #eee8f9;
}

.map-level.completed .level-icon {
    background: #e1f1e5;
}

.level-text {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.level-text strong {
    font-size: 14px;
}

.level-text small {
    color: #9991a3;

    font-size: 11px;
}

.level-status {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f0edf4;

    font-size: 12px;
}

.map-level.unlocked .level-status {
    color: #ffffff;

    background: #7b62c2;
}

.map-level.completed .level-status {
    color: #427151;

    background: #cce8d3;
}

.map-path {
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #a397ae;

    font-size: 18px;
    font-weight: 800;
}

.treasure-level.unlocked {
    border-color: #e4d29a;

    background: #fffdf7;
}

.treasure-level.unlocked .level-icon {
    background: #fff4ce;
}

.map-message {
    min-height: 25px;

    margin-top: 10px;

    color: #74638e;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   33. TREASURE TASK
   ========================================================= */

.treasure-task-panel {
    max-width: 820px;
}

.treasure-chest {
    width: 88px;
    height: 88px;

    margin:
        2px auto
        18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #fff8dc,
            #f8e9b3
        );

    font-size: 42px;

    box-shadow:
        0 10px 24px
        rgba(151, 119, 39, 0.11);
}


/* =========================================================
   34. 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: 610px;

    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;
}


/* =========================================================
   35. DISABLED
   ========================================================= */

button:disabled {
    cursor: default;
}

.activity-option:disabled {
    opacity: 0.68;
}

.activity-option.correct:disabled {
    opacity: 1;
}


/* =========================================================
   36. TABLET
   ========================================================= */

@media (max-width: 850px) {

    .lesson-panel {
        padding:
            38px 34px
            40px;
    }

    .places-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .directions-grid,
    .location-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .city-map {
        height: 420px;
    }
}


/* =========================================================
   37. 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;
    }

    .intro-feature-grid,
    .left-right-grid,
    .three-action-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .intro-feature-card {
        min-height: 115px;
    }

    .places-grid,
    .directions-grid,
    .location-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .activity-options {
        grid-template-columns: 1fr;
    }

    .route-formula {
        flex-direction: column;
    }

    .route-formula-piece {
        width: 100%;
    }

    .formula-arrow {
        transform: rotate(90deg);
    }

    .reading-story-card {
        grid-template-columns: 1fr;
    }

    .story-character {
        margin: 0 auto;
    }

    .city-map {
        height: 390px;
    }

    .city-place {
        min-width: 85px;
        min-height: 65px;
    }

    .road-three {
        left: calc(50% - 29px);
    }

    .school-place {
        left: 20px;
    }

    .cafe-place {
        right: 20px;
    }

    .park-place {
        left: 20px;
    }

    .museum-place {
        right: 20px;
    }

    .hotel-place {
        left: 20px;
    }

    .station-place {
        right: 20px;
    }

    .you-are-here {
        left: 50%;

        transform: translateX(-50%);
    }
}


/* =========================================================
   38. MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .lesson-navigation {
        padding:
            0 13px;
    }

    .lesson-brand {
        gap: 9px;
    }

    .chapter-name {
        max-width: 150px;

        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;
    }

    .directions-grid,
    .places-grid,
    .location-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;
    }

    .direction-card {
        min-height: 165px;

        padding:
            17px 9px;
    }

    .place-card {
        min-height: 150px;
    }

    .location-card {
        min-height: 195px;

        padding:
            17px 9px;
    }

    .phrase-card {
        grid-template-columns:
            34px 1fr 34px;

        padding:
            11px 9px;
    }

    .example-route-box {
        grid-template-columns:
            34px 1fr 34px;

        padding:
            12px 10px;
    }

    .dialogue-card {
        padding: 14px;
    }

    .dialogue-bubble {
        max-width: 82%;
    }

    .tourist-card {
        flex-direction: column;
    }

    .tourist-card p {
        text-align: center;
    }

    .route-builder-step {
        grid-template-columns:
            32px 35px 1fr;

        padding:
            11px 10px;
    }

    .city-map {
        height: 360px;
    }

    .city-place {
        min-width: 72px;
        min-height: 59px;

        padding: 6px;
    }

    .city-place span {
        font-size: 22px;
    }

    .city-place strong {
        font-size: 9px;
    }

    .horizontal-road {
        height: 48px;
    }

    .road-one {
        top: 105px;
    }

    .road-two {
        top: 245px;
    }

    .horizontal-road::after {
        top: 23px;
    }

    .vertical-road {
        width: 48px;
    }

    .road-three {
        left: calc(50% - 24px);
    }

    .vertical-road::after {
        left: 23px;
    }

    .school-place,
    .cafe-place {
        top: 22px;
    }

    .park-place,
    .museum-place {
        top: 160px;
    }

    .hotel-place,
    .station-place {
        bottom: 20px;
    }

    .you-are-here {
        top: 166px;

        padding:
            6px 8px;

        font-size: 8px;
    }

    .map-level {
        grid-template-columns:
            36px 1fr 30px;

        padding:
            10px;
    }

    .level-icon {
        width: 36px;
        height: 36px;

        font-size: 19px;
    }

    .level-text strong {
        font-size: 12px;
    }

    .level-text small {
        font-size: 9px;
    }

    .level-status {
        width: 28px;
        height: 28px;
    }

    .main-action-button {
        width: 100%;

        min-width: 0;
    }
}


/* =========================================================
   39. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .directions-grid,
    .places-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .direction-card,
    .place-card,
    .location-card {
        min-height: 145px;
    }

    .city-map {
        height: 340px;
    }
}