/* =========================================================
   YEW — GRADE 4
   LESSON 8 — FUTURE SIMPLE
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #332d46;

    background:
        radial-gradient(circle at 15% 15%, rgba(183, 156, 255, 0.18), transparent 32%),
        radial-gradient(circle at 88% 82%, rgba(218, 198, 255, 0.26), transparent 34%),
        linear-gradient(
            135deg,
            #faf8ff 0%,
            #f5f0ff 48%,
            #fcfaff 100%
        );
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --purple-dark: #5f46a8;
    --purple: #7659c5;
    --purple-medium: #8d70d8;
    --purple-light: #bba9eb;
    --purple-soft: #eee8ff;
    --purple-pale: #f8f5ff;

    --text: #332d46;
    --text-soft: #716b82;

    --white: #ffffff;

    --green: #3fa36c;
    --green-soft: #eaf8ef;

    --red: #d96666;
    --red-soft: #fff0f0;

    --yellow-soft: #fff8dd;

    --border: #e8e1f5;

    --shadow:
        0 18px 50px rgba(91, 65, 150, 0.10);

    --shadow-small:
        0 8px 24px rgba(91, 65, 150, 0.08);

    --radius-big: 32px;
    --radius-medium: 22px;
    --radius-small: 16px;
}


/* =========================================================
   DECORATIVE BACKGROUND
   ========================================================= */

.background-shape {
    position: fixed;
    z-index: -2;

    border-radius: 50%;

    filter: blur(2px);

    pointer-events: none;
}

.shape-one {
    width: 330px;
    height: 330px;

    top: 80px;
    left: -160px;

    background: rgba(167, 137, 235, 0.13);
}

.shape-two {
    width: 420px;
    height: 420px;

    right: -210px;
    top: 37%;

    background: rgba(203, 184, 247, 0.18);
}

.shape-three {
    width: 260px;
    height: 260px;

    left: 12%;
    bottom: -130px;

    background: rgba(148, 113, 225, 0.10);
}

.floating-symbol {
    position: fixed;
    z-index: -1;

    color: rgba(113, 81, 183, 0.14);

    user-select: none;
    pointer-events: none;
}

.symbol-one {
    top: 18%;
    left: 5%;

    font-size: 38px;

    transform: rotate(-15deg);
}

.symbol-two {
    top: 24%;
    right: 5%;

    font-size: 45px;

    opacity: 0.3;
}

.symbol-three {
    bottom: 16%;
    left: 8%;

    font-size: 32px;
}

.symbol-four {
    bottom: 11%;
    right: 7%;

    font-size: 35px;

    opacity: 0.25;
}


/* =========================================================
   HEADER
   ========================================================= */

.lesson-navigation {
    width: 100%;
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 34px;

    background: rgba(255, 255, 255, 0.88);

    border-bottom: 1px solid rgba(116, 88, 190, 0.10);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    position: relative;
    z-index: 20;
}

.lesson-brand {
    display: flex;
    align-items: center;

    gap: 14px;
}

.lesson-logo {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-dark)
        );

    color: white;

    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;

    box-shadow:
        0 7px 18px rgba(99, 69, 170, 0.22);
}

.lesson-chapter {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.chapter-number {
    color: var(--purple);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.chapter-name {
    color: var(--text);

    font-size: 15px;
    font-weight: 800;
}

.close-lesson-button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    border-radius: 50%;

    color: #827a92;

    background: #f5f2fa;

    font-size: 18px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.close-lesson-button:hover {
    color: var(--purple-dark);

    background: var(--purple-soft);

    transform: rotate(5deg);
}


/* =========================================================
   PROGRESS
   ========================================================= */

.lesson-progress-wrapper {
    width: min(1180px, calc(100% - 48px));

    margin: 18px auto 0;

    display: flex;
    align-items: center;

    gap: 12px;
}

.lesson-progress-track {
    height: 7px;

    flex: 1;

    overflow: hidden;

    border-radius: 100px;

    background: #e9e4f1;
}

.lesson-progress-fill {
    width: 2%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--purple),
            #9a7be0
        );

    transition: width 0.45s ease;
}

.lesson-progress-number {
    min-width: 38px;

    color: #766f84;

    font-size: 12px;
    font-weight: 800;

    text-align: right;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.lesson-content {
    width: 100%;

    padding:
        32px 24px
        70px;
}

.lesson-screen {
    display: none;

    width: 100%;

    animation: screenAppear 0.4s ease;
}

.lesson-screen.active-screen {
    display: block;
}

@keyframes screenAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   MAIN PANEL
   ========================================================= */

.lesson-panel {
    width: min(980px, 100%);

    margin: 0 auto;

    padding: 46px 56px;

    border: 1px solid rgba(112, 81, 178, 0.10);
    border-radius: var(--radius-big);

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow: var(--shadow);

    text-align: center;
}

.intro-panel {
    width: min(1080px, 100%);

    min-height: 620px;

    padding: 58px 70px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   GENERAL TYPOGRAPHY
   ========================================================= */

.screen-label {
    display: inline-flex;

    margin-bottom: 16px;

    padding: 7px 13px;

    border-radius: 100px;

    color: var(--purple-dark);

    background: var(--purple-soft);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.35px;
}

.lesson-panel h1 {
    margin-bottom: 16px;

    color: var(--text);

    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.05;
}

.lesson-panel h2 {
    margin-bottom: 14px;

    color: var(--text);

    font-size: clamp(27px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.15;
}

.screen-introduction {
    max-width: 700px;

    margin:
        0 auto
        30px;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.7;
}

.screen-introduction strong {
    color: var(--purple-dark);
}


/* =========================================================
   INTRO
   ========================================================= */

.intro-sun {
    width: 106px;
    height: 106px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            #f3eeff,
            #e7dcff
        );

    font-size: 55px;

    box-shadow:
        0 15px 35px rgba(102, 73, 170, 0.14);

    transform: rotate(-3deg);
}


/* =========================================================
   PRESENT / PAST / FUTURE COMPARISON
   ========================================================= */

.past-present-comparison {
    width: min(700px, 100%);

    margin:
        8px auto
        32px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 18px;
}

.time-comparison-card {
    min-height: 175px;

    padding: 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid var(--border);
    border-radius: 23px;

    background: #fbfaff;
}

.time-comparison-card > span {
    font-size: 32px;
}

.time-comparison-card small {
    color: #8c849a;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.time-comparison-card strong {
    color: var(--purple-dark);

    font-size: 17px;
}

.time-comparison-card p {
    color: var(--text-soft);

    font-size: 13px;
}

.past-card {
    background:
        linear-gradient(
            145deg,
            #f8f4ff,
            #f1ebff
        );

    border-color: #ded3f7;
}

.comparison-arrow {
    color: var(--purple-light);

    font-size: 27px;
    font-weight: 900;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.main-action-button {
    min-height: 52px;

    margin-top: 25px;

    padding: 14px 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 0;
    border-radius: 15px;

    text-decoration: none;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-dark)
        );

    box-shadow:
        0 9px 22px rgba(93, 66, 160, 0.22);

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.main-action-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(93, 66, 160, 0.27);
}

.main-action-button:active {
    transform: translateY(0);
}

.main-action-button span {
    font-size: 18px;
}

.hidden-button {
    display: none !important;
}


/* =========================================================
   GRAMMAR HERO
   ========================================================= */

.grammar-hero-card {
    max-width: 680px;

    margin:
        5px auto
        28px;

    padding: 27px 30px;

    display: flex;
    align-items: center;

    gap: 22px;

    text-align: left;

    border: 1px solid #e4dafb;
    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #faf8ff,
            #f2ecff
        );
}

.grammar-hero-icon {
    width: 75px;
    height: 75px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background: white;

    font-size: 38px;

    box-shadow: var(--shadow-small);
}

.grammar-hero-content {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.grammar-word {
    color: var(--purple);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.grammar-hero-content strong {
    color: var(--text);

    font-size: 23px;
}

.grammar-hero-content p {
    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   EXAMPLE LIST
   ========================================================= */

.example-list {
    width: min(730px, 100%);

    margin: 24px auto;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.example-sentence-box {
    width: 100%;

    padding: 17px 20px;

    display: flex;
    align-items: center;

    gap: 16px;

    text-align: left;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: #fcfbff;
}

.example-sentence-box > div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.example-sentence-box strong {
    color: var(--text);

    font-size: 16px;
}

.example-sentence-box div > span {
    color: var(--text-soft);

    font-size: 13px;
}

.example-number {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: var(--purple-dark);

    background: var(--purple-soft);

    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   SPEAK BUTTON
   ========================================================= */

.speak-button {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 13px;

    background: var(--purple-soft);

    font-size: 18px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.speak-button:hover {
    background: #e3d8ff;

    transform: scale(1.05);
}


/* =========================================================
   NOTES
   ========================================================= */

.important-note,
.golden-tip {
    width: min(730px, 100%);

    margin: 25px auto;

    padding: 19px 22px;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    text-align: left;

    border-radius: 18px;
}

.important-note {
    border: 1px solid #e1d8f8;

    background: #f8f5ff;
}

.golden-tip {
    border: 1px solid #eee1a7;

    background: var(--yellow-soft);
}

.important-note > span,
.golden-tip > span {
    flex-shrink: 0;

    font-size: 22px;
}

.important-note p,
.golden-tip p {
    color: #5e586d;

    font-size: 14px;
    line-height: 1.65;
}

.important-note strong {
    color: var(--purple-dark);
}

.big-golden-tip {
    padding: 23px 26px;

    align-items: center;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline-card {
    width: min(790px, 100%);

    margin: 30px auto;

    padding: 28px 30px;

    border: 1px solid var(--border);
    border-radius: 25px;

    background: #fcfbff;
}

.timeline-label {
    margin-bottom: 36px;

    color: var(--purple);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.timeline-line {
    width: 86%;
    height: 5px;

    margin:
        0 auto
        70px;

    position: relative;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #d8d0e7,
            var(--purple-light)
        );
}

.timeline-dot {
    width: 17px;
    height: 17px;

    display: block;

    position: absolute;
    top: 50%;

    border: 4px solid white;
    border-radius: 50%;

    background: var(--purple);

    box-shadow:
        0 0 0 2px var(--purple-light);

    transform: translate(-50%, -50%);
}

.timeline-now {
    position: absolute;

    left: 35%;
    top: 0;
}

.timeline-now strong {
    position: absolute;

    top: 18px;
    left: 50%;

    color: #7b7288;

    font-size: 10px;

    transform: translateX(-50%);
}

.now-dot {
    background: #aaa2b5;

    box-shadow:
        0 0 0 2px #d7d2df;
}

.timeline-event {
    position: absolute;

    top: 0;
}

.timeline-event-text {
    width: 160px;

    position: absolute;
    top: 20px;
    left: 50%;

    display: flex;
    flex-direction: column;

    gap: 2px;

    transform: translateX(-50%);
}

.timeline-event-text strong {
    color: var(--purple-dark);

    font-size: 13px;
}

.timeline-event-text small {
    color: var(--text-soft);

    font-size: 11px;
}


/* =========================================================
   THREE EXAMPLES
   ========================================================= */

.three-example-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.mini-example-card {
    min-height: 130px;

    padding: 19px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: white;
}

.mini-example-card > span {
    font-size: 28px;
}

.mini-example-card small {
    color: var(--purple);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.mini-example-card strong {
    color: var(--text);

    font-size: 13px;
    line-height: 1.45;
}


/* =========================================================
   TIME WORDS
   ========================================================= */

.time-words-grid {
    width: min(760px, 100%);

    margin: 28px auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.time-word-card {
    min-height: 145px;

    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: #fcfbff;

    transition:
        transform 0.2s ease,
        border 0.2s ease,
        box-shadow 0.2s ease;
}

.time-word-card:hover {
    border-color: #d4c4f4;

    transform: translateY(-3px);

    box-shadow: var(--shadow-small);
}

.time-word-card > span {
    font-size: 31px;
}

.time-word-card strong {
    color: var(--purple-dark);

    font-size: 16px;
}

.time-word-card small {
    color: var(--text-soft);

    font-size: 12px;
}


/* =========================================================
   ACTIVITY PANEL
   ========================================================= */

.activity-panel {
    width: min(850px, 100%);
}

.activity-progress,
.map-game-level-label {
    display: inline-flex;

    margin-bottom: 18px;

    padding: 7px 13px;

    border-radius: 100px;

    color: var(--purple-dark);

    background: var(--purple-soft);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.15px;
}

.activity-question-icon {
    width: 72px;
    height: 72px;

    margin:
        0 auto
        17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background: #f4efff;

    font-size: 35px;
}

.activity-question {
    max-width: 650px;

    margin:
        10px auto
        25px;

    color: #514b5e;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
}

.activity-question small {
    color: var(--text-soft);

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   ACTIVITY OPTIONS
   ========================================================= */

.activity-options {
    width: min(650px, 100%);

    margin: 20px auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.large-options {
    grid-template-columns: 1fr;
}

.activity-option,
.option-button {
    min-height: 58px;

    padding: 15px 18px;

    border: 1px solid #e4ddef;
    border-radius: 16px;

    color: var(--text);

    background: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.activity-option:hover,
.option-button:hover {
    border-color: #bba7e7;

    background: #faf8ff;

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(99, 73, 158, 0.08);
}

.activity-option.correct,
.option-button.correct {
    color: #26744a;

    border-color: #85cda5;

    background: var(--green-soft);
}

.activity-option.wrong,
.option-button.wrong {
    color: #a84949;

    border-color: #efaaaa;

    background: var(--red-soft);

    animation: wrongShake 0.32s ease;
}

@keyframes wrongShake {
    0%,
    100% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(-5px);
    }

    70% {
        transform: translateX(5px);
    }
}


/* =========================================================
   FEEDBACK
   ========================================================= */

.activity-feedback {
    min-height: 26px;

    margin-top: 16px;

    font-size: 14px;
    font-weight: 800;
}

.correct-feedback {
    color: var(--green);
}

.wrong-feedback {
    color: var(--red);
}


/* =========================================================
   WORD TRANSFORMATION
   ========================================================= */

.word-transformation {
    width: min(530px, 100%);

    margin: 27px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 17px;
}

.word-before,
.word-after {
    min-width: 150px;

    padding: 17px 24px;

    border-radius: 18px;

    font-size: 21px;
    font-weight: 900;
}

.word-before {
    color: #635d6e;

    background: #f1eef5;
}

.word-after {
    color: var(--purple-dark);

    background: var(--purple-soft);
}

.transformation-arrow {
    color: var(--purple);

    font-size: 23px;
    font-weight: 900;
}


/* =========================================================
   FORMULAS
   ========================================================= */

.big-rule-formula,
.sentence-formula {
    width: min(730px, 100%);

    margin: 27px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;
}

.big-rule-formula > span,
.formula-piece {
    padding: 13px 18px;

    border-radius: 14px;

    color: #5b5565;

    background: #f2eff6;

    font-size: 13px;
    font-weight: 900;
}

.big-rule-formula b,
.sentence-formula > span:not(.formula-piece) {
    color: #a49cad;

    font-size: 17px;
}

.big-rule-formula .special-rule-piece,
.special-piece {
    color: white;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-dark)
        );
}

.question-word-piece {
    color: var(--purple-dark);

    background: #e9e0ff;
}

.long-formula {
    margin-top: 32px;
}


/* =========================================================
   PERSON GRID
   ========================================================= */

.person-past-grid {
    width: min(780px, 100%);

    margin: 28px auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.person-past-card {
    min-height: 130px;

    padding: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: #fcfbff;
}

.person-past-card > span {
    font-size: 28px;
}

.person-past-card small {
    color: var(--text-soft);

    font-size: 12px;
}

.person-past-card strong {
    color: var(--purple-dark);

    font-size: 17px;
}


/* =========================================================
   CORRECT / WRONG
   ========================================================= */

.correct-wrong-grid {
    width: min(760px, 100%);

    margin: 30px auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 13px;
}

.correct-wrong-card {
    min-height: 125px;

    padding: 19px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 18px;
}

.correct-wrong-card > span {
    font-size: 22px;
}

.correct-wrong-card small {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.correct-wrong-card strong {
    font-size: 15px;
}

.wrong-card {
    color: #a64d4d;

    border: 1px solid #f0caca;

    background: #fff6f6;
}

.correct-card {
    color: #327653;

    border: 1px solid #bfe4ce;

    background: #f3fbf6;
}


/* =========================================================
   VERB TRANSFORMATION LIST
   ========================================================= */

.verb-transformation-list {
    width: min(650px, 100%);

    margin: 28px auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 11px;
}

.verb-transformation-list > div {
    min-height: 58px;

    padding: 13px 17px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 10px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: #fcfbff;
}

.verb-transformation-list span {
    color: var(--text-soft);

    font-size: 13px;
}

.verb-transformation-list b {
    color: #aaa2b4;
}

.verb-transformation-list strong {
    color: var(--purple-dark);

    font-size: 15px;
}


/* =========================================================
   WILL NOT / WON'T
   ========================================================= */

.didnt-hero {
    width: min(560px, 100%);

    margin: 30px auto;

    padding: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;

    border: 1px solid #e2d8f7;
    border-radius: 22px;

    background: #f8f5ff;
}

.didnt-hero small {
    width: 100%;

    color: #8d849c;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.didnt-hero strong {
    color: var(--purple-dark);

    font-size: 23px;
}

.didnt-hero > span {
    color: var(--purple-light);

    font-size: 24px;
}


/* =========================================================
   POSITIVE / NEGATIVE
   ========================================================= */

.positive-negative-list {
    width: min(760px, 100%);

    margin: 28px auto;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.positive-negative-row {
    min-height: 72px;

    padding: 15px 20px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 15px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: #fcfbff;
}

.positive-negative-row > div {
    color: #595361;

    font-size: 14px;
}

.positive-negative-row > div:first-child strong {
    color: var(--green);
}

.positive-negative-row > div:last-child strong {
    color: var(--red);
}

.positive-negative-row > span {
    color: #aaa2b3;
}


/* =========================================================
   QUESTION
   ========================================================= */

.big-question-example {
    width: min(650px, 100%);

    margin: 30px auto;

    padding: 26px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    border: 1px solid #e0d6f5;
    border-radius: 23px;

    background: #f8f5ff;
}

.big-question-example > span {
    font-size: 34px;
}

.big-question-example strong {
    color: var(--purple-dark);

    font-size: 21px;
}

.big-question-example small {
    color: var(--text-soft);

    font-size: 13px;
}


/* =========================================================
   QUESTION BUILDING
   ========================================================= */

.question-building {
    width: min(720px, 100%);

    margin: 28px auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 13px;
}

.question-build-step {
    min-height: 100px;

    padding: 17px;

    display: flex;
    align-items: center;

    gap: 14px;

    text-align: left;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: #fcfbff;
}

.question-build-step > span {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: white;

    background: var(--purple);

    font-size: 13px;
    font-weight: 900;
}

.question-build-step > div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.question-build-step small {
    color: #928a9e;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.question-build-step strong {
    color: var(--text);

    font-size: 16px;
}


/* =========================================================
   QUESTION + ANSWERS
   ========================================================= */

.question-answer-card {
    width: min(670px, 100%);

    margin: 17px auto;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: #fcfbff;
}

.question-answer-card > span {
    display: block;

    margin-bottom: 7px;

    font-size: 25px;
}

.question-answer-card > strong {
    display: block;

    margin-bottom: 17px;

    color: var(--text);

    font-size: 17px;
}

.answer-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.yes-answer,
.no-answer {
    padding: 12px;

    border-radius: 13px;

    font-size: 13px;
    font-weight: 800;
}

.yes-answer {
    color: #347755;

    background: var(--green-soft);
}

.no-answer {
    color: #a64d4d;

    background: var(--red-soft);
}


/* =========================================================
   QUESTION WORDS
   ========================================================= */

.question-word-examples {
    width: min(720px, 100%);

    margin: 27px auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.question-word-examples > div {
    min-height: 130px;

    padding: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: #fcfbff;
}

.question-word-examples span {
    font-size: 28px;
}

.question-word-examples strong {
    color: var(--purple-dark);

    font-size: 17px;
}

.question-word-examples small {
    color: var(--text-soft);

    font-size: 11px;
}


/* =========================================================
   SENTENCE BREAKDOWN
   ========================================================= */

.sentence-breakdown {
    width: min(700px, 100%);

    margin: 28px auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}

.breakdown-word {
    min-height: 90px;

    padding: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: #f8f7fa;
}

.breakdown-word strong {
    color: var(--text);

    font-size: 16px;
}

.breakdown-word small {
    color: var(--text-soft);

    font-size: 10px;
}

.special-breakdown {
    border-color: #d9caf6;

    background: var(--purple-soft);
}

.special-breakdown strong {
    color: var(--purple-dark);
}


/* =========================================================
   GRAMMAR SYSTEM
   ========================================================= */

.grammar-system-grid {
    width: min(760px, 100%);

    margin: 30px auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 13px;
}

.grammar-system-card {
    min-height: 150px;

    padding: 22px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: 20px;
}

.grammar-system-card > span {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-weight: 900;
}

.grammar-system-card small {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.grammar-system-card strong {
    font-size: 16px;
    line-height: 1.5;
}

.positive-system {
    color: #367653;

    border: 1px solid #bce1ca;

    background: #f3fbf6;
}

.negative-system {
    color: #a24e4e;

    border: 1px solid #f0c9c9;

    background: #fff5f5;
}

.question-system {
    color: var(--purple-dark);

    border: 1px solid #d9cdf3;

    background: #f7f3ff;
}

.answer-system {
    color: #806527;

    border: 1px solid #eadba3;

    background: #fff9e8;
}


/* =========================================================
   MASTER TABLE
   ========================================================= */

.master-table-wrapper {
    width: 100%;

    margin: 30px auto;

    overflow-x: auto;

    border: 1px solid var(--border);
    border-radius: 20px;
}

.master-table {
    width: 100%;

    border-collapse: collapse;

    background: white;
}

.master-table th,
.master-table td {
    padding: 17px 18px;

    border-bottom: 1px solid #eeeaf3;

    text-align: left;

    font-size: 13px;
}

.master-table th {
    color: var(--purple-dark);

    background: #f5f1ff;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
}

.master-table td {
    color: #5c5665;
}

.master-table tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   COMMON MISTAKES
   ========================================================= */

.mistakes-list {
    width: min(750px, 100%);

    margin: 30px auto;

    display: flex;
    flex-direction: column;

    gap: 11px;
}

.mistake-row {
    min-height: 66px;

    padding: 13px 18px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 12px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: #fcfbff;
}

.mistake-row > span {
    color: #aaa2b3;
}

.mistake-wrong {
    color: #ad5353;

    font-size: 13px;
    font-weight: 750;
}

.mistake-correct {
    color: #377958;

    font-size: 13px;
    font-weight: 750;
}


/* =========================================================
   READING
   ========================================================= */

.reading-story-card {
    width: min(760px, 100%);

    margin: 28px auto;

    padding: 28px;

    display: flex;
    align-items: flex-start;

    gap: 23px;

    text-align: left;

    border: 1px solid #e1d8f5;
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #fcfbff,
            #f7f3ff
        );
}

.story-character {
    width: 68px;
    height: 68px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 21px;

    background: white;

    font-size: 37px;

    box-shadow: var(--shadow-small);
}

.story-text {
    color: #55505e;

    font-size: 14px;
    line-height: 1.75;
}

.story-text p + p {
    margin-top: 11px;
}

.story-text mark {
    padding: 1px 4px;

    border-radius: 5px;

    color: var(--purple-dark);

    background: #e9e0ff;

    font-weight: 800;
}


/* =========================================================
   LISTEN BUTTON
   ========================================================= */

.listen-button {
    min-height: 48px;

    padding: 12px 21px;

    border: 1px solid #d8caf5;
    border-radius: 14px;

    color: var(--purple-dark);

    background: #f6f2ff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.listen-button:hover {
    background: #eee7ff;

    transform: translateY(-2px);
}

.listening-illustration {
    width: 90px;
    height: 90px;

    margin:
        0 auto
        20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 27px;

    background: var(--purple-soft);

    font-size: 45px;
}


/* =========================================================
   VIDEO
   ========================================================= */

.video-frame {
    width: min(760px, 100%);
    aspect-ratio: 16 / 9;

    margin: 28px auto;

    overflow: hidden;

    border: 1px solid #ded4f4;
    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #eee7ff,
            #f8f5ff
        );

    box-shadow: var(--shadow-small);
}

.video-frame iframe {
    width: 100%;
    height: 100%;

    border: 0;
}

.video-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: var(--purple-dark);
}

.video-play-icon {
    width: 72px;
    height: 72px;

    margin-bottom: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: white;

    background: var(--purple);

    font-size: 26px;

    box-shadow:
        0 10px 25px rgba(92, 63, 161, 0.22);
}

.video-placeholder strong {
    font-size: 20px;
}

.video-placeholder p {
    color: var(--text-soft);

    font-size: 13px;
}


/* =========================================================
   EXTERNAL GAMES
   ========================================================= */

.external-games-grid {
    width: min(780px, 100%);

    margin: 30px auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.external-game-card {
    min-height: 220px;

    padding: 23px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    text-decoration: none;

    border: 1px solid var(--border);
    border-radius: 21px;

    color: var(--text);

    background: #fcfbff;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.external-game-card:hover {
    border-color: #cfbdf1;

    transform: translateY(-4px);

    box-shadow: var(--shadow-small);
}

.external-game-icon {
    margin-bottom: 5px;

    font-size: 38px;
}

.external-game-card strong {
    color: var(--purple-dark);

    font-size: 15px;
}

.external-game-card p {
    color: var(--text-soft);

    font-size: 12px;
    line-height: 1.5;
}

.external-game-card > span {
    margin-top: 6px;

    color: var(--purple);

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   REVIEW
   ========================================================= */

.review-grid {
    width: min(780px, 100%);

    margin: 30px auto;

    display: grid;

    gap: 13px;
}

.four-review-grid {
    grid-template-columns: repeat(2, 1fr);
}

.review-card {
    min-height: 160px;

    padding: 21px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: #fcfbff;
}

.review-card > span {
    font-size: 32px;
}

.review-card > strong {
    color: var(--purple-dark);

    font-size: 10px;
    letter-spacing: 1px;
}

.review-card p {
    color: #5c5665;

    font-size: 14px;
}


/* =========================================================
   MEGA RULE
   ========================================================= */

.mega-rule-card {
    width: min(770px, 100%);

    margin: 30px auto;

    overflow: hidden;

    border: 1px solid #d9ccf4;
    border-radius: 25px;

    background: #fbf9ff;
}

.mega-rule-title {
    padding: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-dark)
        );
}

.mega-rule-title span {
    font-size: 25px;
}

.mega-rule-title strong {
    font-size: 14px;
    letter-spacing: 0.4px;
}

.mega-rule-examples {
    padding: 25px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.mega-rule-group {
    padding: 20px;

    border-radius: 18px;

    background: white;
}

.mega-rule-group small {
    display: block;

    margin-bottom: 12px;

    color: var(--purple);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.mega-rule-group p {
    margin: 7px 0;

    color: #625c6b;

    font-size: 13px;
}


/* =========================================================
   MAP
   ========================================================= */

.map-panel {
    width: min(900px, 100%);
}

.adventure-map {
    width: min(680px, 100%);

    margin: 32px auto;

    display: flex;
    flex-direction: column;

    gap: 12px;

    position: relative;
}

.adventure-map::before {
    content: "";

    width: 3px;

    position: absolute;
    top: 45px;
    bottom: 45px;
    left: 42px;

    border-radius: 10px;

    background: #e4dcf2;

    z-index: 0;
}

.map-level {
    width: 100%;
    min-height: 82px;

    padding: 14px 18px;

    display: grid;
    grid-template-columns: 52px 1fr 38px;
    align-items: center;

    gap: 14px;

    position: relative;
    z-index: 1;

    text-align: left;

    border: 1px solid #e6e0ed;
    border-radius: 20px;

    color: #938c9d;

    background: #f5f3f7;

    font-family: inherit;

    cursor: not-allowed;

    opacity: 0.72;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.map-level.unlocked,
.map-level.completed {
    color: var(--text);

    background: white;

    cursor: pointer;

    opacity: 1;
}

.map-level.unlocked {
    border-color: #d6c7f4;
}

.map-level.unlocked:hover {
    transform: translateX(4px);

    box-shadow: var(--shadow-small);
}

.map-level.completed {
    border-color: #b9dfc7;

    background: #f6fcf8;
}

.level-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #eeeaf2;

    font-size: 26px;
}

.map-level.unlocked .level-icon {
    background: var(--purple-soft);
}

.map-level.completed .level-icon {
    background: var(--green-soft);
}

.level-text {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.level-text strong {
    font-size: 14px;
}

.level-text small {
    color: #8b8495;

    font-size: 11px;
}

.level-status {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    justify-self: end;

    border-radius: 50%;

    background: #eeeaf2;

    font-size: 13px;
}

.map-level.unlocked .level-status {
    color: white;

    background: var(--purple);
}

.map-level.completed .level-status {
    color: white;

    background: var(--green);
}

.map-message {
    min-height: 25px;

    color: var(--purple-dark);

    font-size: 13px;
    font-weight: 800;
}


/* =========================================================
   COMPLETION
   ========================================================= */

.completion-panel {
    width: min(900px, 100%);

    min-height: 630px;

    padding: 55px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at top,
            #f2ebff,
            white 52%
        );
}

.completion-trophy {
    width: 115px;
    height: 115px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            #eee5ff,
            #f8f5ff
        );

    font-size: 59px;

    box-shadow:
        0 15px 38px rgba(93, 65, 161, 0.14);
}

.completion-text {
    max-width: 580px;

    margin:
        0 auto
        27px;

    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.65;
}

.achievement-card {
    width: min(560px, 100%);

    padding: 21px 24px;

    display: flex;
    align-items: center;

    gap: 18px;

    text-align: left;

    border: 1px solid #d8caf5;
    border-radius: 21px;

    background: #f8f5ff;
}

.achievement-icon {
    width: 66px;
    height: 66px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: white;

    font-size: 34px;

    box-shadow: var(--shadow-small);
}

.achievement-card > div:last-child {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.achievement-card small {
    color: var(--purple);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.achievement-card strong {
    color: var(--text);

    font-size: 20px;
}

.achievement-card p {
    color: var(--text-soft);

    font-size: 12px;
}

.completion-skills {
    width: min(650px, 100%);

    margin: 25px auto 5px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
}

.completion-skills > div {
    padding: 9px 13px;

    border: 1px solid #e2daf1;
    border-radius: 100px;

    color: #625a70;

    background: white;

    font-size: 11px;
    font-weight: 700;
}

.completion-skills span {
    margin-right: 4px;

    color: var(--green);
}

.finish-lesson-link {
    margin-top: 24px;
}


/* =========================================================
   FOCUS / ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(117, 88, 197, 0.30);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 820px) {

    .lesson-navigation {
        padding:
            10px 20px;
    }

    .lesson-progress-wrapper {
        width: calc(100% - 36px);
    }

    .lesson-content {
        padding:
            25px 18px
            55px;
    }

    .lesson-panel,
    .intro-panel {
        padding:
            38px 30px;
    }

    .intro-panel {
        min-height: auto;
    }

    .person-past-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .time-words-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .question-word-examples {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .external-games-grid {
        grid-template-columns: 1fr;
    }

    .external-game-card {
        min-height: 170px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .lesson-navigation {
        min-height: 64px;

        padding:
            9px 14px;
    }

    .lesson-logo {
        width: 41px;
        height: 41px;

        border-radius: 13px;

        font-size: 14px;
    }

    .chapter-number {
        font-size: 8px;
    }

    .chapter-name {
        font-size: 13px;
    }

    .close-lesson-button {
        width: 37px;
        height: 37px;
    }

    .lesson-progress-wrapper {
        width: calc(100% - 28px);

        margin-top: 14px;
    }

    .lesson-content {
        padding:
            20px 12px
            45px;
    }

    .lesson-panel,
    .intro-panel,
    .completion-panel {
        padding:
            32px 18px;

        border-radius: 25px;
    }

    .lesson-panel h1 {
        font-size: 39px;
    }

    .lesson-panel h2 {
        font-size: 27px;
    }

    .screen-introduction {
        font-size: 15px;
    }

    .intro-sun {
        width: 90px;
        height: 90px;

        border-radius: 27px;

        font-size: 47px;
    }


    /* INTRO */

    .past-present-comparison {
        grid-template-columns: 1fr;

        gap: 9px;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }


    /* GRAMMAR */

    .grammar-hero-card {
        flex-direction: column;

        text-align: center;
    }

    .three-example-grid,
    .time-words-grid,
    .correct-wrong-grid,
    .question-building,
    .grammar-system-grid,
    .four-review-grid,
    .mega-rule-examples {
        grid-template-columns: 1fr;
    }

    .person-past-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .activity-options {
        grid-template-columns: 1fr;
    }

    .verb-transformation-list {
        grid-template-columns: 1fr;
    }

    .question-word-examples {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .sentence-breakdown {
        grid-template-columns:
            repeat(2, 1fr);
    }


    /* COMPARISONS */

    .positive-negative-row,
    .mistake-row {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .positive-negative-row > span,
    .mistake-row > span {
        transform: rotate(90deg);
    }

    .answer-pair {
        grid-template-columns: 1fr;
    }


    /* READING */

    .reading-story-card {
        padding: 20px;

        flex-direction: column;

        align-items: center;
    }


    /* TIMELINE */

    .timeline-card {
        padding:
            24px 14px;
    }

    .timeline-line {
        width: 92%;
    }

    .timeline-event-text {
        width: 120px;
    }


    /* WORD TRANSFORMATION */

    .word-transformation {
        flex-direction: column;
    }

    .word-before,
    .word-after {
        width: 100%;
    }


    /* DIDN'T / WON'T */

    .didnt-hero {
        gap: 10px;
    }


    /* TABLE */

    .master-table {
        min-width: 600px;
    }


    /* MAP */

    .adventure-map::before {
        left: 35px;
    }

    .map-level {
        min-height: 76px;

        padding:
            12px 13px;

        grid-template-columns:
            45px 1fr 31px;

        gap: 10px;
    }

    .level-icon {
        width: 45px;
        height: 45px;

        border-radius: 14px;

        font-size: 22px;
    }

    .level-status {
        width: 30px;
        height: 30px;
    }


    /* COMPLETION */

    .completion-trophy {
        width: 95px;
        height: 95px;

        font-size: 49px;
    }

    .achievement-card {
        padding: 17px;

        gap: 13px;
    }

    .achievement-icon {
        width: 56px;
        height: 56px;

        font-size: 29px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 390px) {

    .lesson-brand {
        gap: 9px;
    }

    .lesson-logo {
        width: 38px;
        height: 38px;
    }

    .chapter-name {
        font-size: 12px;
    }

    .lesson-panel {
        padding:
            28px 15px;
    }

    .person-past-grid,
    .question-word-examples,
    .sentence-breakdown {
        grid-template-columns: 1fr;
    }

    .big-rule-formula,
    .sentence-formula {
        gap: 7px;
    }

    .big-rule-formula > span,
    .formula-piece {
        padding:
            11px 13px;

        font-size: 11px;
    }

}