/* =========================================================
   GRADE 4 — LESSON 7
   PAST SIMPLE
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Nunito", Arial, sans-serif;
    color: #302944;
    background:
        radial-gradient(circle at 12% 18%, rgba(174, 145, 255, 0.16), transparent 28%),
        radial-gradient(circle at 88% 78%, rgba(135, 104, 230, 0.12), transparent 30%),
        linear-gradient(135deg, #faf8ff 0%, #f6f2ff 52%, #fbfaff 100%);
    overflow-x: hidden;
}

button,
a {
    font: inherit;
}

button {
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   BACKGROUND
========================================================= */

.background-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    z-index: -2;
}

.shape-one {
    width: 360px;
    height: 360px;
    top: -150px;
    left: -120px;
    background: rgba(160, 125, 242, 0.09);
}

.shape-two {
    width: 420px;
    height: 420px;
    right: -190px;
    bottom: -190px;
    background: rgba(119, 87, 209, 0.08);
}

.shape-three {
    width: 230px;
    height: 230px;
    top: 44%;
    left: 72%;
    background: rgba(198, 179, 255, 0.09);
}

.floating-symbol {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    opacity: 0.17;
    user-select: none;
}

.symbol-one {
    top: 18%;
    left: 5%;
    font-size: 34px;
    transform: rotate(-12deg);
}

.symbol-two {
    top: 30%;
    right: 8%;
    font-size: 27px;
}

.symbol-three {
    bottom: 15%;
    left: 7%;
    font-size: 31px;
    transform: rotate(8deg);
}

.symbol-four {
    bottom: 25%;
    right: 6%;
    font-size: 25px;
}


/* =========================================================
   HEADER
========================================================= */

.lesson-navigation {
    width: 100%;
    min-height: 76px;
    padding: 12px 4.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e9e2f8;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lesson-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lesson-logo {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #7655c7, #9b7ae6);
    box-shadow: 0 7px 18px rgba(111, 77, 193, 0.2);
}

.lesson-chapter {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chapter-number {
    color: #978aaa;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.chapter-name {
    color: #342d43;
    font-size: 16px;
    font-weight: 900;
}

.close-lesson-button {
    width: 42px;
    height: 42px;
    border: 1px solid #e7e0f4;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #756985;
    font-size: 17px;
    font-weight: 800;
    transition: 0.2s ease;
}

.close-lesson-button:hover {
    background: #f5f0ff;
    color: #6948b5;
    border-color: #d8caf2;
    transform: translateY(-1px);
}


/* =========================================================
   PROGRESS
========================================================= */

.lesson-progress-wrapper {
    width: min(1180px, 91%);
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.lesson-progress-track {
    flex: 1;
    height: 7px;
    overflow: hidden;
    border-radius: 100px;
    background: #eae4f4;
}

.lesson-progress-fill {
    width: 2%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7351c4, #a487ec);
    transition: width 0.45s ease;
}

.lesson-progress-number {
    min-width: 34px;
    color: #7b6e8c;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.lesson-content {
    width: 100%;
    padding: 26px 0 70px;
}

.lesson-screen {
    display: none;
    width: 100%;
    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);
    }
}

.lesson-panel {
    width: min(980px, 91%);
    min-height: 540px;
    margin: 0 auto;
    padding: 48px 58px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e8e0f5;
    border-radius: 30px;
    box-shadow: 0 18px 55px rgba(71, 52, 110, 0.09);
}

.intro-panel {
    width: min(1080px, 92%);
    padding: 54px 68px 58px;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(164, 135, 235, 0.12), transparent 32%),
        #fff;
}

.activity-panel {
    text-align: center;
}

.map-panel {
    width: min(920px, 91%);
}

.completion-panel {
    text-align: center;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

.screen-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 13px;
    border-radius: 100px;
    color: #7557bd;
    background: #f1ebff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

h1,
h2,
h3 {
    color: #312a40;
}

h1 {
    margin-bottom: 13px;
    font-size: clamp(36px, 5vw, 57px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.6px;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(27px, 3.6vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.8px;
}

h3 {
    font-size: 20px;
    font-weight: 900;
}

.screen-introduction {
    max-width: 720px;
    margin: 0 auto 31px;
    color: #746b80;
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
}

.lesson-panel:not(.intro-panel):not(.activity-panel):not(.completion-panel) > h2,
.lesson-panel:not(.intro-panel):not(.activity-panel):not(.completion-panel) > .screen-label {
    text-align: left;
}

.lesson-panel:not(.intro-panel):not(.activity-panel):not(.completion-panel) > .screen-introduction {
    margin-left: 0;
    text-align: left;
}


/* =========================================================
   INTRO
========================================================= */

.intro-sun {
    width: 104px;
    height: 104px;
    margin: 3px auto 22px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f3eeff, #e7dcff);
    border: 1px solid #ded0fa;
    box-shadow: 0 13px 30px rgba(102, 72, 177, 0.13);
    font-size: 48px;
}

.past-present-comparison {
    max-width: 760px;
    margin: 36px auto 37px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}

.time-comparison-card {
    min-height: 180px;
    padding: 25px 21px;
    border-radius: 23px;
    background: #faf8ff;
    border: 1px solid #e8e0f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-comparison-card > span {
    font-size: 31px;
}

.time-comparison-card small {
    color: #8b7d9f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.time-comparison-card strong {
    color: #41364f;
    font-size: 16px;
    line-height: 1.45;
}

.time-comparison-card p {
    color: #887e92;
    font-size: 13px;
}

.past-card {
    background: #f4efff;
    border-color: #ddcff7;
}

.comparison-arrow {
    color: #8d73cb;
    font-size: 27px;
    font-weight: 900;
}


/* =========================================================
   BUTTONS
========================================================= */

.main-action-button {
    min-width: 190px;
    min-height: 51px;
    margin: 34px auto 0;
    padding: 13px 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, #704ebd, #8f6ed8);
    box-shadow: 0 10px 24px rgba(106, 73, 183, 0.21);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    transition: 0.2s ease;
}

.main-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(106, 73, 183, 0.26);
}

.main-action-button:active {
    transform: translateY(0);
}

.main-action-button span {
    font-size: 18px;
}

.hidden-button {
    display: none;
}

.finish-lesson-link {
    width: fit-content;
}


/* =========================================================
   GENERAL CARDS
========================================================= */

.grammar-hero-card {
    padding: 25px 28px;
    margin: 27px 0;
    display: flex;
    align-items: center;
    gap: 23px;
    border-radius: 22px;
    border: 1px solid #ded2f4;
    background: #f7f3ff;
}

.grammar-hero-icon {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    background: #fff;
    font-size: 31px;
    box-shadow: 0 6px 18px rgba(73, 52, 112, 0.07);
}

.grammar-hero-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grammar-word {
    color: #7858bd;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.grammar-hero-content strong {
    color: #3c334a;
    font-size: 20px;
}

.grammar-hero-content p {
    color: #7e7389;
    line-height: 1.55;
}


/* =========================================================
   EXAMPLE SENTENCES
========================================================= */

.example-list {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.example-sentence-box {
    width: 100%;
    min-height: 76px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e6def2;
    border-radius: 18px;
    background: #fcfbff;
}

.example-sentence-box > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.example-sentence-box strong {
    color: #40374c;
    font-size: 16px;
}

.example-sentence-box span {
    color: #8a7f94;
    font-size: 13px;
}

.speak-button {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: #eee7fb;
    color: #6846b1;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}

.speak-button:hover {
    background: #dfd2f7;
    transform: scale(1.04);
}

.example-number {
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    border-radius: 11px;
    background: #eee7fb;
    color: #6e4db7 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}


/* =========================================================
   NOTES
========================================================= */

.important-note,
.golden-tip {
    margin: 26px 0 0;
    padding: 18px 21px;
    border-radius: 18px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.important-note {
    border: 1px solid #e1d7f3;
    background: #faf7ff;
}

.golden-tip {
    border: 1px solid #d7c8f3;
    background: #f2ecff;
}

.important-note > span,
.golden-tip > span {
    font-size: 21px;
}

.important-note p,
.golden-tip p {
    color: #62596d;
    font-size: 14px;
    line-height: 1.65;
}

.big-golden-tip {
    padding: 23px 25px;
}

.big-golden-tip p {
    font-size: 16px;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline-card {
    margin: 37px 0;
    padding: 35px 38px 39px;
    border-radius: 24px;
    border: 1px solid #e1d6f4;
    background: #faf8ff;
}

.timeline-label {
    margin-bottom: 28px;
    color: #7960b6;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.timeline-line {
    height: 5px;
    position: relative;
    border-radius: 10px;
    background: #d9ccee;
}

.timeline-event {
    position: absolute;
    left: 22%;
    top: 50%;
}

.timeline-dot {
    width: 17px;
    height: 17px;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    background: #7a58c4;
    border: 4px solid #f5f0ff;
    transform: translate(-50%, -50%);
}

.timeline-event-text {
    width: 145px;
    position: absolute;
    top: 17px;
    left: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.timeline-event-text strong {
    color: #493d59;
    font-size: 13px;
}

.timeline-event-text small {
    color: #94889f;
}

.timeline-now {
    position: absolute;
    right: 3%;
    top: 50%;
}

.timeline-now .now-dot {
    background: #a389df;
}

.timeline-now strong {
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    color: #675579;
    font-size: 11px;
}

.three-example-grid {
    margin-top: 65px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
}

.mini-example-card {
    min-height: 125px;
    padding: 20px 17px;
    border-radius: 18px;
    border: 1px solid #e8e1f2;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.mini-example-card span {
    font-size: 27px;
}

.mini-example-card strong {
    color: #4a4055;
    font-size: 13px;
    line-height: 1.45;
}


/* =========================================================
   TIME WORDS
========================================================= */

.time-words-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 27px;
}

.time-word-card {
    min-height: 135px;
    padding: 18px;
    border-radius: 19px;
    border: 1px solid #e6ddf3;
    background: #fbf9ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.time-word-card > span {
    margin-bottom: 4px;
    font-size: 27px;
}

.time-word-card strong {
    color: #5c4780;
    font-size: 16px;
}

.time-word-card small {
    color: #8d8396;
    font-size: 12px;
}


/* =========================================================
   AGO
========================================================= */

.ago-hero {
    max-width: 560px;
    margin: 26px auto;
    padding: 27px;
    border-radius: 22px;
    background: #f4efff;
    border: 1px solid #ddcff5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}

.ago-hero > span {
    font-size: 35px;
}

.ago-hero strong {
    color: #6747ae;
    font-size: 24px;
    font-weight: 900;
}

.ago-hero p {
    color: #776b82;
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   CORRECT / WRONG
========================================================= */

.correct-wrong-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 25px 0;
}

.correct-wrong-card {
    min-height: 105px;
    padding: 18px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.correct-wrong-card > span {
    font-size: 20px;
    font-weight: 900;
}

.correct-wrong-card small {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.correct-wrong-card strong {
    font-size: 15px;
}

.wrong-card {
    background: #fff6f7;
    border: 1px solid #f0dadd;
    color: #a85f6b;
}

.correct-card {
    background: #f4fbf7;
    border: 1px solid #d6eadf;
    color: #477a60;
}


/* =========================================================
   ACTIVITY
========================================================= */

.activity-progress {
    width: fit-content;
    margin: 2px auto 23px;
    padding: 7px 13px;
    border-radius: 100px;
    background: #f1ecfa;
    color: #806b9a;
    font-size: 11px;
    font-weight: 900;
}

.activity-question-icon {
    width: 78px;
    height: 78px;
    margin: 5px auto 18px;
    border-radius: 23px;
    background: #f0e9ff;
    border: 1px solid #dfd1f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.activity-question {
    max-width: 680px;
    margin: 0 auto 25px;
    color: #403649;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 900;
}

.activity-options {
    width: min(650px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.activity-options.large-options {
    grid-template-columns: 1fr;
}

.activity-option,
.option-button {
    min-height: 61px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #e1d8ef;
    background: #fff;
    color: #51465d;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.activity-option:hover,
.option-button:hover {
    border-color: #bfa9e7;
    background: #f8f4ff;
    transform: translateY(-1px);
}

.activity-option.correct,
.option-button.correct {
    background: #f1faf5;
    border-color: #a9d4bb;
    color: #3f7858;
}

.activity-option.wrong,
.option-button.wrong {
    background: #fff3f5;
    border-color: #e8b9c1;
    color: #9a5661;
}

.activity-feedback {
    min-height: 30px;
    margin-top: 19px;
    font-size: 14px;
    font-weight: 900;
}

.activity-feedback.correct-feedback {
    color: #4d8465;
}

.activity-feedback.wrong-feedback {
    color: #a65c69;
}


/* =========================================================
   FORMULA
========================================================= */

.sentence-formula {
    margin: 29px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.formula-piece {
    min-width: 112px;
    padding: 13px 17px;
    border-radius: 13px;
    border: 1px solid #e0d7ed;
    background: #faf8fd;
    color: #62566f;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.special-piece {
    color: #6748ad;
    border-color: #d5c5f0;
    background: #eee7fc;
}

.sentence-formula > span {
    color: #a095aa;
    font-weight: 900;
}

.long-formula .formula-piece {
    min-width: 105px;
}

.question-word-piece {
    background: #f7f4fc;
}


/* =========================================================
   WORD TRANSFORMATIONS
========================================================= */

.word-transformation {
    max-width: 470px;
    margin: 24px auto;
    padding: 22px;
    border-radius: 20px;
    background: #faf8ff;
    border: 1px solid #e4daf4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.word-before,
.word-after {
    font-size: 26px;
    font-weight: 900;
}

.word-before {
    color: #645a6f;
}

.word-after {
    color: #714dbd;
}

.transformation-arrow {
    color: #a28cbf;
    font-size: 23px;
}


/* =========================================================
   PERSON GRID
========================================================= */

.person-past-grid {
    margin: 29px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.person-past-card {
    min-height: 125px;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid #e5dcf1;
    background: #fbfaff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.person-past-card span {
    font-size: 27px;
}

.person-past-card small {
    color: #887d93;
    font-weight: 800;
}

.person-past-card strong {
    color: #694ab0;
    font-size: 16px;
}


/* =========================================================
   PRESENT / PAST
========================================================= */

.present-past-table {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.comparison-column {
    padding: 25px;
    border: 1px solid #e5ddec;
    border-radius: 21px;
    background: #fbfaff;
}

.past-column {
    background: #f3edff;
    border-color: #d9c9f3;
}

.comparison-title {
    display: block;
    margin-bottom: 17px;
    color: #766986;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
}

.comparison-sentence {
    margin: 8px 0;
    padding: 13px;
    border-radius: 12px;
    background: rgba(255,255,255,0.78);
    color: #504557;
}

.past-column strong {
    color: #6946b3;
}


/* =========================================================
   VERB CARDS
========================================================= */

.verb-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin: 29px 0;
}

.verb-card {
    min-height: 135px;
    padding: 17px;
    border: 1px solid #e4daef;
    border-radius: 18px;
    background: #fbfaff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.verb-card > span {
    margin-bottom: 4px;
    font-size: 27px;
}

.verb-card small {
    color: #8a7e94;
    font-size: 13px;
}

.verb-card b {
    color: #a195aa;
    font-size: 12px;
}

.verb-card strong {
    color: #6949af;
    font-size: 16px;
}


/* =========================================================
   ED RULES
========================================================= */

.rule-number-card {
    margin: 27px 0;
    padding: 21px 24px;
    border-radius: 20px;
    border: 1px solid #ded2f2;
    background: #f7f3ff;
    display: flex;
    align-items: center;
    gap: 18px;
}

.rule-number-card > span {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #7857c3;
    font-size: 21px;
    font-weight: 900;
}

.rule-number-card strong {
    color: #44384f;
    font-size: 17px;
}

.rule-number-card p {
    margin-top: 3px;
    color: #887c91;
    font-size: 13px;
}

.verb-transformation-list {
    display: grid;
    gap: 10px;
    margin: 25px 0;
}

.verb-transformation-list > div {
    min-height: 56px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid #e7dff1;
    background: #fdfcff;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.verb-transformation-list span {
    color: #716777;
}

.verb-transformation-list b {
    color: #a092ad;
}

.verb-transformation-list strong {
    color: #6d4ab5;
    text-align: right;
}

.big-rule-formula {
    width: fit-content;
    margin: 28px auto;
    padding: 18px 25px;
    border-radius: 17px;
    background: #f1eaff;
    border: 1px solid #d9caf4;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6749aa;
    font-size: 19px;
    font-weight: 900;
}

.special-rule-piece {
    color: #744ec1;
}

.y-comparison-grid,
.double-letter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 28px 0;
}

.y-rule-card,
.double-letter-card {
    min-height: 145px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid #e2d7f2;
    background: #faf8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.y-rule-card small {
    color: #8c7c9e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.y-rule-card strong {
    color: #6447a5;
    font-size: 18px;
}

.y-rule-card p {
    color: #9a90a2;
}

.double-letter-card > span {
    font-size: 28px;
}

.double-letter-card b {
    color: #9a8ba9;
}

.double-letter-card .past-word {
    color: #704bb8;
}


/* =========================================================
   IRREGULAR
========================================================= */

.irregular-warning {
    margin: 32px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.wrong-transformation,
.right-transformation {
    min-height: 150px;
    padding: 22px;
    border-radius: 21px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wrong-transformation {
    background: #fff5f6;
    border: 1px solid #f0d6da;
    color: #a15b66;
}

.right-transformation {
    background: #f2faf6;
    border: 1px solid #d0e8da;
    color: #47795d;
}

.wrong-transformation small,
.right-transformation small {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.wrong-transformation strong,
.right-transformation strong {
    font-size: 21px;
}

.irregular-arrow {
    color: #9d8aad;
    font-size: 24px;
}

.regular-irregular-grid {
    margin: 29px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.verb-group-card {
    padding: 27px;
    border-radius: 22px;
    border: 1px solid #e1d7ef;
    background: #fbfaff;
}

.verb-group-card > span {
    display: block;
    margin-bottom: 8px;
    font-size: 34px;
}

.verb-group-card small {
    color: #897c99;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.verb-group-card h3 {
    margin: 6px 0 18px;
}

.verb-group-card > div {
    margin: 7px 0;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    color: #706477;
}

.irregular-group {
    background: #f4efff;
    border-color: #d9caf2;
}

.irregular-group strong {
    color: #6948b1;
}

.irregular-verbs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 11px;
    margin: 28px 0;
}

.irregular-verb-card {
    min-height: 140px;
    padding: 14px 10px;
    border-radius: 17px;
    border: 1px solid #e4daef;
    background: #fbfaff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.irregular-verb-card > span {
    margin-bottom: 4px;
    font-size: 24px;
}

.irregular-verb-card small {
    color: #8b7f94;
    font-size: 12px;
}

.irregular-verb-card strong {
    color: #6e4ab7;
    font-size: 17px;
}

.irregular-verb-card p {
    margin-top: 3px;
    color: #9a909f;
    font-size: 10px;
}


/* =========================================================
   EXTERNAL RESOURCE
========================================================= */

.external-resource-card {
    margin: 30px 0;
    padding: 28px;
    border: 1px solid #d9cbef;
    border-radius: 23px;
    background: #f5f0ff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.external-resource-icon {
    width: 67px;
    height: 67px;
    border-radius: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 30px;
}

.external-resource-content small {
    color: #816ca3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.external-resource-content strong {
    display: block;
    margin: 4px 0;
    color: #493b5a;
    font-size: 18px;
}

.external-resource-content p {
    color: #7e7289;
    font-size: 13px;
    line-height: 1.5;
}

.external-resource-button {
    padding: 12px 17px;
    border-radius: 13px;
    background: #7451bd;
    color: white;
    font-size: 12px;
    font-weight: 900;
    transition: 0.2s;
}

.external-resource-button:hover {
    background: #6542ad;
    transform: translateY(-1px);
}


/* =========================================================
   MISTAKES
========================================================= */

.mistakes-list {
    display: grid;
    gap: 11px;
    margin: 29px 0;
}

.mistake-row {
    min-height: 67px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
}

.mistake-wrong,
.mistake-correct {
    padding: 14px 17px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
}

.mistake-wrong {
    background: #fff5f6;
    border: 1px solid #f0d8dc;
    color: #a05a65;
}

.mistake-correct {
    background: #f2faf6;
    border: 1px solid #d1e8da;
    color: #47775c;
}

.mistake-row > span {
    color: #a296aa;
    font-weight: 900;
}


/* =========================================================
   WAS / WERE
========================================================= */

.to-be-change {
    max-width: 700px;
    margin: 35px auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.to-be-now,
.to-be-past {
    min-height: 135px;
    padding: 22px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.to-be-now {
    border: 1px solid #e6dfed;
    background: #faf9fc;
}

.to-be-past {
    border: 1px solid #d7c7f1;
    background: #f1eaff;
}

.to-be-now small,
.to-be-past small {
    color: #8a7d98;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.to-be-now strong,
.to-be-past strong {
    color: #574760;
    font-size: 22px;
}

.to-be-past strong {
    color: #6848ad;
}

.big-change-arrow {
    color: #9b88ae;
    font-size: 26px;
}

.was-were-people {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.was-were-person {
    min-height: 140px;
    padding: 18px;
    border-radius: 19px;
    border: 1px solid #e2d7f0;
    background: #faf8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.was-were-person span {
    font-size: 29px;
}

.was-were-person strong {
    color: #665b70;
}

.was-were-person b {
    color: #6d4bb4;
}

.was-were-table {
    max-width: 650px;
    margin: 32px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.was-column,
.were-column {
    padding: 26px;
    border-radius: 21px;
    background: #f8f5fd;
    border: 1px solid #e2d8ef;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.was-column span,
.were-column span {
    width: 100%;
    padding: 10px;
    margin-bottom: 7px;
    border-radius: 11px;
    background: #e9defa;
    color: #6848ad;
    text-align: center;
    font-weight: 900;
}

.was-column strong,
.were-column strong {
    color: #62576b;
}

.memory-trick {
    max-width: 650px;
    margin: 0 auto;
    padding: 19px;
    border-radius: 17px;
    background: #f3edff;
    border: 1px solid #dacbf1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.memory-trick > span {
    font-size: 26px;
}

.memory-trick > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #60477f;
    font-size: 13px;
}


/* =========================================================
   DID / DIDN'T
========================================================= */

.didnt-hero {
    width: fit-content;
    margin: 30px auto;
    padding: 20px 29px;
    border-radius: 19px;
    border: 1px solid #d7c6f2;
    background: #f1eaff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.didnt-hero small {
    color: #8a759f;
    font-weight: 900;
}

.didnt-hero span {
    color: #9a8aa8;
}

.didnt-hero strong {
    color: #6745af;
    font-size: 23px;
}

.past-change-demo {
    max-width: 650px;
    margin: 31px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.past-positive,
.past-negative {
    width: 100%;
    padding: 21px;
    border-radius: 17px;
    text-align: center;
}

.past-positive {
    background: #faf8fd;
    border: 1px solid #e4dceb;
}

.past-negative {
    background: #f2ecff;
    border: 1px solid #d8c8f2;
}

.past-positive small,
.past-negative small {
    display: block;
    margin-bottom: 5px;
    color: #8b7e96;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.past-positive strong,
.past-negative strong {
    color: #51445b;
    font-size: 18px;
}

.past-positive strong span,
.past-negative strong span {
    color: #714cb8;
}

.change-down-arrow {
    color: #9987a7;
    font-size: 21px;
}

.irregular-return-demo {
    margin: 31px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
}

.return-step {
    min-height: 130px;
    padding: 22px;
    border-radius: 20px;
    background: #f8f5fd;
    border: 1px solid #e2d8ef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
}

.return-step small {
    color: #7757b6;
    font-size: 20px;
    font-weight: 900;
}

.return-step strong {
    color: #4f4459;
}

.positive-negative-list {
    display: grid;
    gap: 13px;
    margin: 30px 0;
}

.positive-negative-row {
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
}

.positive-negative-row > div {
    padding: 15px;
    border: 1px solid #e3d9ee;
    border-radius: 14px;
    background: #fbfaff;
    color: #61556a;
}

.positive-negative-row > span {
    color: #9e8cab;
}


/* =========================================================
   QUESTIONS
========================================================= */

.big-question-example {
    max-width: 590px;
    margin: 31px auto;
    padding: 26px;
    border-radius: 21px;
    border: 1px solid #d8caf0;
    background: #f4efff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.big-question-example > span {
    font-size: 31px;
}

.big-question-example strong {
    color: #59416f;
    font-size: 21px;
}

.big-question-example small {
    color: #897c94;
}

.question-building {
    margin: 30px 0;
    display: grid;
    gap: 12px;
}

.question-build-step {
    padding: 18px 21px;
    border: 1px solid #e3daee;
    border-radius: 17px;
    background: #fbfaff;
    display: flex;
    align-items: center;
    gap: 17px;
}

.question-build-step > span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    background: #7654bc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.question-build-step small {
    display: block;
    margin-bottom: 3px;
    color: #91849d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.9px;
}

.question-build-step strong {
    color: #504458;
}

.did-rule-display {
    width: fit-content;
    margin: 31px auto;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 20px;
}

.did-badge {
    padding: 16px 24px;
    border-radius: 15px;
    background: #7652bd;
    color: #fff;
    font-weight: 900;
}

.did-rule-display > span {
    color: #9e90a8;
}

.did-rule-display > strong {
    color: #624884;
}

.question-answer-card {
    margin: 17px 0;
    padding: 23px;
    border: 1px solid #e2d8ef;
    border-radius: 20px;
    background: #fbfaff;
    text-align: center;
}

.question-answer-card > span {
    display: block;
    margin-bottom: 5px;
    font-size: 28px;
}

.question-answer-card > strong {
    color: #493e52;
    font-size: 17px;
}

.answer-pair {
    margin-top: 17px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.yes-answer,
.no-answer {
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
}

.yes-answer {
    background: #eff9f3;
    color: #4d7c60;
}

.no-answer {
    background: #fff3f5;
    color: #9c5b66;
}


/* =========================================================
   QUESTION WORDS
========================================================= */

.question-word-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin: 28px 0;
}

.question-word-examples > div {
    min-height: 120px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #e3d9ef;
    background: #faf8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
}

.question-word-examples span {
    font-size: 24px;
}

.question-word-examples strong {
    color: #574565;
}

.question-word-examples small {
    color: #91859a;
}

.sentence-breakdown {
    margin: 35px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.breakdown-word {
    min-width: 115px;
    padding: 17px 14px;
    border-radius: 16px;
    border: 1px solid #e3d9ed;
    background: #faf9fc;
    text-align: center;
}

.breakdown-word strong {
    display: block;
    color: #51465a;
    font-size: 17px;
}

.breakdown-word small {
    color: #91869a;
    font-size: 10px;
}

.special-breakdown {
    background: #eee6fc;
    border-color: #d7c5f2;
}

.special-breakdown strong {
    color: #6a49b0;
}


/* =========================================================
   WAS/WERE NEGATIVE + QUESTIONS
========================================================= */

.was-negative-grid {
    margin: 31px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.was-negative-card {
    min-height: 135px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid #ddcff1;
    background: #f6f2fd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.was-negative-card small {
    color: #887997;
    font-weight: 900;
}

.was-negative-card span {
    color: #9c8baa;
}

.was-negative-card strong {
    color: #6948b0;
    font-size: 22px;
}

.to-be-question-demo {
    margin: 15px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
}

.to-be-question-demo > div {
    min-height: 110px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #e1d7ed;
    background: #faf8fd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.to-be-question-demo small {
    margin-bottom: 5px;
    color: #91849d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.to-be-question-demo strong {
    color: #53455e;
}

.to-be-question-demo > span {
    color: #9d8cab;
    font-size: 21px;
}


/* =========================================================
   FULL SYSTEM
========================================================= */

.grammar-system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 30px 0;
}

.grammar-system-card {
    min-height: 145px;
    padding: 21px;
    border-radius: 20px;
    border: 1px solid #e2d8ed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.grammar-system-card > span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.grammar-system-card small {
    color: #897d92;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.grammar-system-card strong {
    color: #4c4154;
    font-size: 15px;
}

.positive-system {
    background: #f5fbf7;
}

.positive-system > span {
    background: #dcefe4;
    color: #4f7d62;
}

.negative-system {
    background: #fff7f8;
}

.negative-system > span {
    background: #f5dfe3;
    color: #a05b66;
}

.question-system {
    background: #f6f2ff;
}

.question-system > span {
    background: #e5dafa;
    color: #6c4db0;
}

.answer-system {
    background: #faf8fd;
}

.answer-system > span {
    background: #ebe5f1;
    color: #6e6377;
}


/* =========================================================
   MASTER TABLE
========================================================= */

.master-table-wrapper {
    width: 100%;
    margin: 30px 0;
    overflow-x: auto;
    border-radius: 19px;
    border: 1px solid #e2d8ee;
}

.master-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: #fff;
}

.master-table th,
.master-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #eee8f4;
    text-align: left;
}

.master-table th {
    background: #f1ebfb;
    color: #624a81;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.master-table td {
    color: #655a6d;
    font-size: 13px;
}

.master-table tbody tr:last-child td {
    border-bottom: none;
}

.master-table tbody tr:hover {
    background: #fbf9ff;
}


/* =========================================================
   READING
========================================================= */

.reading-story-card {
    margin: 30px 0 20px;
    padding: 30px;
    border-radius: 23px;
    border: 1px solid #dfd3f1;
    background: #faf7ff;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: start;
}

.story-character {
    width: 75px;
    height: 75px;
    border-radius: 21px;
    background: #eee5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 37px;
}

.story-text {
    color: #5d5266;
    font-size: 15px;
    line-height: 1.75;
}

.story-text p + p {
    margin-top: 9px;
}

.story-text mark {
    padding: 1px 4px;
    border-radius: 5px;
    background: #e9dcff;
    color: #6042a2;
    font-weight: 800;
}

.listen-button {
    min-height: 47px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid #d9c9f0;
    background: #f1eaff;
    color: #6749a9;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}

.listen-button:hover {
    background: #e7dcfa;
}

.dialogue-listen-button {
    display: flex;
    margin: 0 auto;
}


/* =========================================================
   LISTENING
========================================================= */

.listening-illustration {
    width: 95px;
    height: 95px;
    margin: 12px auto 20px;
    border-radius: 27px;
    background: #eee6fc;
    border: 1px solid #dbcaf5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
}

#listeningPlayButton {
    margin-bottom: 25px;
}


/* =========================================================
   VIDEO
========================================================= */

.video-frame {
    max-width: 720px;
    margin: 30px auto;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #d9cef0;
    background: #ede5fb;
    box-shadow: 0 12px 30px rgba(75, 52, 118, 0.08);
}

.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;
    text-align: center;
    background:
        radial-gradient(circle at center, #f8f4ff 0%, #eee6fb 100%);
}

.video-play-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #7350ba;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    font-size: 25px;
}

.video-placeholder strong {
    color: #50405e;
    font-size: 19px;
}

.video-placeholder p {
    margin-top: 5px;
    color: #8a7d96;
}


/* =========================================================
   EXTRA GAMES
========================================================= */

.external-games-grid {
    margin: 31px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.external-game-card {
    min-height: 230px;
    padding: 23px 19px;
    border-radius: 21px;
    border: 1px solid #e0d5ef;
    background: #faf8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    transition: 0.2s;
}

.external-game-card:hover {
    transform: translateY(-4px);
    border-color: #cdb9ed;
    box-shadow: 0 10px 24px rgba(81, 55, 126, 0.09);
}

.external-game-icon {
    margin-bottom: 5px;
    font-size: 36px;
}

.external-game-card strong {
    color: #59446c;
    font-size: 16px;
}

.external-game-card p {
    min-height: 39px;
    color: #8a7e93;
    font-size: 12px;
    line-height: 1.5;
}

.external-game-card > span {
    margin-top: 7px;
    color: #704cb6;
    font-size: 12px;
    font-weight: 900;
}


/* =========================================================
   REVIEW
========================================================= */

.review-grid {
    display: grid;
    gap: 14px;
    margin: 30px 0;
}

.four-review-grid {
    grid-template-columns: repeat(2, 1fr);
}

.review-card {
    min-height: 170px;
    padding: 23px;
    border-radius: 21px;
    border: 1px solid #e1d6ef;
    background: #faf8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.review-card > span {
    font-size: 31px;
}

.review-card strong {
    color: #654b80;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.review-card p {
    color: #716677;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   GOLDEN RULE
========================================================= */

.mega-rule-card {
    margin: 31px 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid #d4c2f0;
    background: #f8f4ff;
}

.mega-rule-title {
    padding: 21px;
    background: #7654bd;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.mega-rule-title span {
    font-size: 23px;
}

.mega-rule-title strong {
    font-size: 16px;
    letter-spacing: 0.4px;
}

.mega-rule-examples {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
}

.mega-rule-group {
    padding: 20px;
    border-radius: 17px;
    background: #fff;
    border: 1px solid #e3d8f0;
}

.mega-rule-group small {
    display: block;
    margin-bottom: 11px;
    color: #7d6997;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.mega-rule-group p {
    margin: 7px 0;
    color: #665a6e;
}

.mega-rule-group strong {
    color: #6847af;
}


/* =========================================================
   ADVENTURE MAP
========================================================= */

.adventure-map {
    max-width: 690px;
    margin: 33px auto 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    position: relative;
}

.map-level {
    width: 100%;
    min-height: 92px;
    padding: 15px 19px;
    border-radius: 20px;
    border: 1px solid #e3daee;
    background: #f9f7fc;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    text-align: left;
    color: #81768a;
    cursor: default;
}

.map-level.unlocked {
    background: #f3edff;
    border-color: #d4c1f1;
    color: #53435f;
    cursor: pointer;
    transition: 0.2s;
}

.map-level.unlocked:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 51, 123, 0.09);
}

.map-level.completed {
    background: #f3faf6;
    border-color: #cfe5d8;
}

.level-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.level-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.level-text strong {
    font-size: 15px;
}

.level-text small {
    color: #95899d;
    font-size: 11px;
}

.level-status {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.map-message {
    min-height: 24px;
    margin-top: 18px;
    color: #6e5687;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.map-game-level-label {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 7px 14px;
    border-radius: 100px;
    background: #eee7fa;
    color: #775f94;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
}


/* =========================================================
   COMPLETION
========================================================= */

.completion-trophy {
    width: 115px;
    height: 115px;
    margin: 5px auto 21px;
    border-radius: 32px;
    background: linear-gradient(145deg, #f1eaff, #e3d6fa);
    border: 1px solid #d8c7f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    box-shadow: 0 12px 30px rgba(89, 59, 145, 0.12);
}

.completion-text {
    max-width: 600px;
    margin: 0 auto 28px;
    color: #776b80;
    font-size: 16px;
    line-height: 1.65;
}

.achievement-card {
    max-width: 580px;
    margin: 0 auto 25px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #d3c1ef;
    background: #f3edff;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.achievement-icon {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 33px;
}

.achievement-card small {
    color: #826ba1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.achievement-card strong {
    display: block;
    margin: 3px 0;
    color: #62428f;
    font-size: 20px;
}

.achievement-card p {
    color: #85778e;
    font-size: 13px;
}

.completion-skills {
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.completion-skills > div {
    padding: 9px 13px;
    border-radius: 100px;
    background: #faf8fd;
    border: 1px solid #e3daed;
    color: #716578;
    font-size: 11px;
    font-weight: 800;
}

.completion-skills span {
    margin-right: 4px;
    color: #6747ae;
}


/* =========================================================
   SMALL HELPERS
========================================================= */

button:disabled {
    opacity: 0.65;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(116, 80, 189, 0.25);
    outline-offset: 3px;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .lesson-panel,
    .intro-panel {
        width: 92%;
        padding: 42px 36px;
    }

    .irregular-verbs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .person-past-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .external-resource-card {
        grid-template-columns: auto 1fr;
    }

    .external-resource-button {
        grid-column: 1 / -1;
        text-align: center;
    }

    .time-words-grid,
    .verb-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .external-games-grid {
        grid-template-columns: 1fr;
    }

    .external-game-card {
        min-height: 175px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 650px) {

    .lesson-navigation {
        min-height: 67px;
        padding: 10px 4%;
    }

    .lesson-logo {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 14px;
    }

    .chapter-number {
        font-size: 8px;
    }

    .chapter-name {
        font-size: 13px;
    }

    .close-lesson-button {
        width: 39px;
        height: 39px;
    }

    .lesson-progress-wrapper {
        width: 92%;
        margin-top: 13px;
    }

    .lesson-content {
        padding-top: 18px;
    }

    .lesson-panel,
    .intro-panel,
    .map-panel {
        width: 94%;
        min-height: auto;
        padding: 32px 20px 36px;
        border-radius: 23px;
    }

    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 27px;
    }

    .screen-introduction {
        font-size: 15px;
        line-height: 1.6;
    }

    .intro-sun {
        width: 87px;
        height: 87px;
        border-radius: 25px;
        font-size: 40px;
    }

    .past-present-comparison {
        grid-template-columns: 1fr;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }

    .three-example-grid,
    .time-words-grid,
    .verb-cards-grid,
    .present-past-table,
    .regular-irregular-grid,
    .grammar-system-grid,
    .four-review-grid,
    .question-word-examples,
    .was-negative-grid,
    .mega-rule-examples,
    .y-comparison-grid,
    .double-letter-grid {
        grid-template-columns: 1fr;
    }

    .person-past-grid,
    .was-were-people {
        grid-template-columns: repeat(2, 1fr);
    }

    .irregular-verbs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grammar-hero-card {
        flex-direction: column;
        text-align: center;
    }

    .timeline-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .timeline-event {
        left: 25%;
    }

    .correct-wrong-grid {
        grid-template-columns: 1fr;
    }

    .activity-options {
        grid-template-columns: 1fr;
    }

    .irregular-warning,
    .to-be-change,
    .irregular-return-demo,
    .to-be-question-demo {
        grid-template-columns: 1fr;
    }

    .irregular-arrow,
    .big-change-arrow,
    .irregular-return-demo > span,
    .to-be-question-demo > span {
        transform: rotate(90deg);
        text-align: center;
    }

    .mistake-row,
    .positive-negative-row {
        grid-template-columns: 1fr;
    }

    .mistake-row > span,
    .positive-negative-row > span {
        transform: rotate(90deg);
        text-align: center;
    }

    .was-were-table {
        grid-template-columns: 1fr;
    }

    .answer-pair {
        grid-template-columns: 1fr;
    }

    .reading-story-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .story-character {
        margin: 0 auto;
    }

    .external-resource-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .external-resource-icon {
        margin: 0 auto;
    }

    .external-resource-button {
        width: 100%;
    }

    .mega-rule-title {
        flex-direction: column;
    }

    .sentence-breakdown {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .breakdown-word {
        min-width: 0;
    }

    .map-level {
        grid-template-columns: auto 1fr auto;
        padding: 13px;
    }

    .level-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .level-text strong {
        font-size: 13px;
    }

    .level-text small {
        font-size: 9px;
    }

    .achievement-card {
        flex-direction: column;
        text-align: center;
    }

    .main-action-button {
        width: 100%;
        max-width: 380px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .lesson-panel,
    .intro-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .person-past-grid,
    .was-were-people,
    .irregular-verbs-grid {
        grid-template-columns: 1fr;
    }

    .sentence-breakdown {
        grid-template-columns: 1fr;
    }

    .sentence-formula {
        gap: 7px;
    }

    .formula-piece {
        min-width: 95px;
        padding: 11px 12px;
        font-size: 10px;
    }

    .map-level {
        grid-template-columns: auto 1fr;
    }

    .level-status {
        display: none;
    }
}