/* =========================================================
   YEW — GRADE 4 — LESSON 3
   CAN & MAY
   Same visual system as Lessons 1–2
========================================================= */

@import url("../Grade-2/grade-2-lesson-1.css");


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --purple-900: #4f3b78;
    --purple-800: #60478d;
    --purple-700: #7557a6;
    --purple-600: #8968bb;
    --purple-500: #9d7dcc;
    --purple-400: #b49adb;
    --purple-300: #cbb8e8;
    --purple-200: #e0d5f2;
    --purple-100: #f4f0fa;
    --purple-50: #faf7fd;

    --gold-900: #4f3b78;
    --gold-800: #60478d;
    --gold-700: #7557a6;
    --gold-600: #8968bb;
    --gold-500: #9d7dcc;
    --gold-400: #b49adb;
    --gold-300: #cbb8e8;
    --gold-200: #e0d5f2;
    --gold-100: #f4f0fa;

    --lesson-text: #62576e;
    --lesson-muted: #81768c;

    --success: #43a97b;
    --success-dark: #31835f;
    --success-light: #eaf8f1;

    --error: #d96b79;
    --error-dark: #bd5262;
    --error-light: #fff0f2;

    --white: #ffffff;

    --panel-shadow:
        0 20px 55px rgba(79, 59, 120, 0.09);

    --card-shadow:
        0 9px 24px rgba(79, 59, 120, 0.07);
}


/* =========================================================
   PAGE
========================================================= */

html {
    scroll-behavior: smooth;
}

body.can-may-body,
.can-may-body {
    min-height: 100vh;
    margin: 0;

    overflow-x: hidden;

    color: var(--lesson-text);

    background:
        radial-gradient(
            circle at 10% 8%,
            rgba(180, 154, 219, 0.25),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 12%,
            rgba(203, 184, 232, 0.25),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #faf7fd 0%,
            #fefcff 45%,
            #f6f1fb 100%
        );
}


/* =========================================================
   BACKGROUND DECORATIONS
========================================================= */

.can-may-body .background-shape {
    position: fixed;

    z-index: -2;

    pointer-events: none;

    border-radius: 50%;

    filter: blur(1px);
}

.can-may-body .shape-one {
    width: 430px;
    height: 430px;

    top: 115px;
    left: -190px;

    background:
        linear-gradient(
            145deg,
            rgba(157, 125, 204, 0.23),
            rgba(224, 213, 242, 0.10)
        );
}

.can-may-body .shape-two {
    width: 380px;
    height: 380px;

    top: 43%;
    right: -180px;

    background:
        linear-gradient(
            145deg,
            rgba(180, 154, 219, 0.20),
            rgba(244, 240, 250, 0.12)
        );
}

.can-may-body .shape-three {
    width: 320px;
    height: 320px;

    bottom: -120px;
    left: 12%;

    background:
        linear-gradient(
            145deg,
            rgba(203, 184, 232, 0.19),
            rgba(250, 247, 253, 0.10)
        );
}


.can-may-body .floating-symbol {
    position: fixed;

    z-index: -1;

    pointer-events: none;
    user-select: none;

    color: rgba(96, 71, 141, 0.12);

    font-size: 18px;
    font-weight: 900;

    letter-spacing: 0.16em;
}

.can-may-body .float-one {
    top: 25%;
    left: 4%;

    transform: rotate(-9deg);
}

.can-may-body .float-two {
    top: 56%;
    right: 4%;

    transform: rotate(8deg);
}

.can-may-body .float-three {
    bottom: 10%;
    left: 7%;

    transform: rotate(-5deg);
}


/* =========================================================
   HEADER
========================================================= */

.can-may-body .lesson-header {
    width: 100%;

    position: relative;
    z-index: 100;

    background: rgba(255, 255, 255, 0.90);

    border-bottom:
        1px solid rgba(203, 184, 232, 0.55);

    box-shadow:
        0 4px 18px rgba(79, 59, 120, 0.045);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


.can-may-body .lesson-navigation {
    width: min(1180px, 92%);
    min-height: 72px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 100px 1fr 100px;

    align-items: center;
}


.can-may-body .lesson-logo {
    justify-self: start;

    color: var(--purple-800);

    font-size: 22px;
    font-weight: 950;

    letter-spacing: -0.04em;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        color 0.18s ease;
}

.can-may-body .lesson-logo:hover {
    color: var(--purple-600);

    transform: translateY(-1px);
}


.can-may-body .chapter-information {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 2px;

    text-align: center;
}


.can-may-body .chapter-number {
    color: var(--purple-500);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.14em;
}


.can-may-body .chapter-name {
    color: var(--purple-900);

    font-size: 15px;
    font-weight: 900;
}


.can-may-body .close-lesson-button {
    width: 36px;
    height: 36px;

    justify-self: end;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--purple-100);

    border:
        1px solid var(--purple-200);

    border-radius: 12px;

    color: var(--purple-700);

    font-size: 25px;
    font-weight: 500;

    line-height: 1;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.can-may-body .close-lesson-button:hover {
    background: var(--purple-200);

    color: var(--purple-900);

    transform: rotate(4deg);
}


/* =========================================================
   PROGRESS
========================================================= */

.can-may-body .lesson-progress-area {
    width: min(980px, 90%);

    margin: 22px auto 0;

    display: flex;
    align-items: center;

    gap: 15px;
}


.can-may-body .lesson-progress-track {
    height: 8px;

    flex: 1;

    overflow: hidden;

    background: rgba(224, 213, 242, 0.62);

    border-radius: 999px;
}


.can-may-body .lesson-progress-fill {
    width: 5.263%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--purple-700),
            var(--purple-500)
        );

    border-radius: inherit;

    box-shadow:
        0 0 14px rgba(137, 104, 187, 0.25);

    transition: width 0.4s ease;
}


.can-may-body .lesson-progress-number {
    min-width: 55px;

    display: flex;
    align-items: baseline;
    justify-content: flex-end;

    gap: 3px;

    color: var(--lesson-muted);

    font-size: 12px;
    font-weight: 750;
}


.can-may-body .lesson-progress-number strong {
    color: var(--purple-800);

    font-size: 15px;
    font-weight: 950;
}


/* =========================================================
   LESSON MAIN
========================================================= */

.can-may-body .lesson-application {
    width: min(1120px, 92%);

    margin: 0 auto;

    padding: 32px 0 90px;
}


.can-may-body .lesson-screen {
    display: none;

    width: 100%;

    animation:
        lessonScreenEnter 0.35s ease both;
}


.can-may-body .lesson-screen.active-screen {
    display: block;
}


@keyframes lessonScreenEnter {

    from {
        opacity: 0;

        transform: translateY(9px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   MAIN WHITE PANEL
========================================================= */

.can-may-body .lesson-panel {
    width: min(980px, 100%);

    margin: 0 auto;

    padding: 50px 55px;

    position: relative;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.96);

    border:
        1px solid rgba(203, 184, 232, 0.65);

    border-radius: 34px;

    box-shadow: var(--panel-shadow);

    text-align: center;
}


.can-may-body .lesson-panel::before {
    content: "";

    width: 170px;
    height: 170px;

    position: absolute;

    top: -105px;
    right: -80px;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(203, 184, 232, 0.19),
            transparent 70%
        );

    border-radius: 50%;
}


/* =========================================================
   BASIC TYPOGRAPHY
========================================================= */

.can-may-body .screen-label {
    display: inline-flex;

    margin: 0 0 15px;

    padding: 7px 12px;

    align-items: center;
    justify-content: center;

    background: var(--purple-100);

    border:
        1px solid var(--purple-200);

    border-radius: 999px;

    color: var(--purple-600);

    font-size: 9px;
    font-weight: 950;

    letter-spacing: 0.13em;
}


.can-may-body h1,
.can-may-body h2 {
    color: var(--purple-900);

    font-weight: 950;

    letter-spacing: -0.035em;
}


.can-may-body h1 {
    margin: 0;

    font-size: clamp(48px, 7vw, 76px);

    line-height: 0.94;
}


.can-may-body h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 42px);

    line-height: 1.1;
}


.can-may-body .screen-introduction {
    width: min(680px, 100%);

    margin: 17px auto 0;

    color: var(--lesson-muted);

    font-size: 16px;
    font-weight: 620;

    line-height: 1.75;
}


.can-may-body .screen-introduction strong {
    color: var(--purple-800);

    font-weight: 900;
}


/* =========================================================
   INTRO
========================================================= */

.can-may-body .intro-page {
    padding-top: 48px;
}


.can-may-body .intro-sun {
    width: 84px;
    height: 84px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            var(--purple-100),
            #ffffff
        );

    border:
        2px solid var(--purple-200);

    border-radius: 26px;

    font-size: 41px;

    box-shadow:
        0 10px 25px rgba(79, 59, 120, 0.08);
}


/* =========================================================
   INTRO CAN / MAY COMPARISON
========================================================= */

.can-may-body .can-may-comparison {
    width: min(730px, 100%);

    margin: 32px auto 0;

    display: grid;
    grid-template-columns: 1fr 48px 1fr;

    align-items: stretch;

    gap: 13px;
}


.can-may-body .can-may-side {
    min-height: 200px;

    padding: 25px 20px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--purple-50)
        );

    border:
        2px solid var(--purple-200);

    border-radius: 25px;

    box-shadow: var(--card-shadow);
}


.can-may-body .comparison-emoji {
    margin-bottom: 9px;

    font-size: 36px;
}


.can-may-body .can-may-side small {
    margin-bottom: 7px;

    color: var(--purple-500);

    font-size: 9px;
    font-weight: 950;

    letter-spacing: 0.13em;
}


.can-may-body .can-may-side strong {
    color: var(--purple-900);

    font-size: 18px;
    font-weight: 900;
}


.can-may-body .can-may-side p {
    margin: 7px 0 0;

    color: var(--lesson-muted);

    font-size: 12px;
    font-weight: 650;
}


.can-may-body .comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--purple-400);

    font-size: 25px;
    font-weight: 900;
}


/* =========================================================
   MISSION CARD
========================================================= */

.can-may-body .mission-card {
    width: min(650px, 100%);

    margin: 25px auto 0;

    padding: 18px 21px;

    display: flex;
    align-items: center;

    gap: 15px;

    background:
        linear-gradient(
            145deg,
            var(--purple-100),
            #fbf8fd
        );

    border:
        1px solid var(--purple-200);

    border-radius: 20px;

    text-align: left;
}


.can-may-body .mission-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-radius: 15px;

    font-size: 25px;
}


.can-may-body .mission-card strong {
    display: block;

    color: var(--purple-900);

    font-size: 14px;
    font-weight: 900;
}


.can-may-body .mission-card p {
    margin: 4px 0 0;

    color: var(--lesson-muted);

    font-size: 12px;
    font-weight: 600;

    line-height: 1.5;
}


/* =========================================================
   MAIN BUTTONS
========================================================= */

.can-may-body .main-action-button,
.can-may-body .secondary-action-button {
    min-height: 49px;

    margin: 30px auto 0;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border-radius: 15px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 900;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


.can-may-body .main-action-button {
    background:
        linear-gradient(
            135deg,
            var(--purple-700),
            var(--purple-500)
        );

    border: none;

    color: #ffffff;

    box-shadow:
        0 9px 20px rgba(117, 87, 166, 0.23);
}


.can-may-body .main-action-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 25px rgba(117, 87, 166, 0.29);
}


.can-may-body .main-action-button:active {
    transform: translateY(0);
}


.can-may-body .secondary-action-button {
    background: #ffffff;

    border:
        1px solid var(--purple-200);

    color: var(--purple-700);

    box-shadow:
        0 7px 18px rgba(79, 59, 120, 0.06);
}


.can-may-body .secondary-action-button:hover {
    background: var(--purple-100);

    transform: translateY(-2px);
}


/* =========================================================
   GRAMMAR HERO
========================================================= */

.can-may-body .grammar-hero-card {
    width: min(620px, 100%);

    margin: 30px auto 0;

    padding: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 21px;

    background:
        linear-gradient(
            145deg,
            #f4eef9 0%,
            #e8ddf3 100%
        );

    border:
        2px solid rgba(157, 125, 204, 0.25);

    border-radius: 26px;
}


.can-may-body .grammar-hero-icon {
    width: 75px;
    height: 75px;

    flex: 0 0 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border:
        1px solid var(--purple-200);

    border-radius: 22px;

    font-size: 37px;

    box-shadow: var(--card-shadow);
}


.can-may-body .grammar-hero-content {
    text-align: left;
}


.can-may-body .grammar-word {
    display: block;

    margin-bottom: 4px;

    color: var(--purple-600);

    font-size: 10px;
    font-weight: 950;

    letter-spacing: 0.13em;
}


.can-may-body .grammar-hero-content strong {
    display: block;

    color: var(--purple-900);

    font-size: 22px;
    font-weight: 950;
}


.can-may-body .grammar-hero-content p {
    margin: 6px 0 0;

    color: var(--lesson-muted);

    font-size: 12px;
    font-weight: 650;
}


/* =========================================================
   EXAMPLE SENTENCE
========================================================= */

.can-may-body .example-sentence-box {
    width: min(650px, 100%);

    min-height: 78px;

    margin: 16px auto 0;

    padding: 16px 17px 16px 21px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 17px;

    background: #ffffff;

    border:
        1px solid var(--purple-200);

    border-radius: 19px;

    box-shadow:
        0 7px 18px rgba(79, 59, 120, 0.055);

    text-align: left;
}


.can-may-body .example-sentence-box > div {
    flex: 1;
}


.can-may-body .example-sentence-box strong {
    display: block;

    color: var(--purple-900);

    font-size: 16px;
    font-weight: 900;
}


.can-may-body .example-sentence-box span {
    display: block;

    margin-top: 4px;

    color: var(--lesson-muted);

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   SPEAK BUTTON
========================================================= */

.can-may-body .speak-button,
.can-may-body .listen-button {
    border: none;

    font-family: inherit;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.can-may-body .speak-button {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--purple-100);

    border:
        1px solid var(--purple-200);

    border-radius: 13px;

    font-size: 18px;
}


.can-may-body .speak-button:hover {
    background: var(--purple-200);

    transform: translateY(-2px);
}


/* =========================================================
   IMPORTANT NOTE
========================================================= */

.can-may-body .important-note,
.can-may-body .golden-tip {
    width: min(680px, 100%);

    margin: 25px auto 0;

    padding: 17px 20px;

    display: flex;
    align-items: center;

    gap: 13px;

    background: var(--purple-100);

    border:
        1px solid var(--purple-200);

    border-radius: 18px;

    text-align: left;
}


.can-may-body .important-note > span,
.can-may-body .golden-tip > span {
    flex: 0 0 auto;

    font-size: 24px;
}


.can-may-body .important-note p,
.can-may-body .golden-tip p {
    margin: 0;

    color: var(--lesson-text);

    font-size: 12px;
    font-weight: 620;

    line-height: 1.6;
}


.can-may-body .important-note strong,
.can-may-body .golden-tip strong {
    color: var(--purple-800);

    font-weight: 900;
}


/* =========================================================
   FORM BUILDER
========================================================= */

.can-may-body .past-form-builder {
    width: min(720px, 100%);

    margin: 31px auto 0;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 10px;
}


.can-may-body .verb-piece,
.can-may-body .ed-piece,
.can-may-body .past-result {
    min-height: 94px;

    flex: 1;

    padding: 16px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border:
        2px solid var(--purple-200);

    border-radius: 19px;

    box-shadow: var(--card-shadow);
}


.can-may-body .verb-piece span,
.can-may-body .ed-piece,
.can-may-body .past-result strong {
    color: var(--purple-800);

    font-size: 17px;
    font-weight: 950;
}


.can-may-body .verb-piece small,
.can-may-body .past-result small {
    margin-top: 5px;

    color: var(--lesson-muted);

    font-size: 10px;
    font-weight: 650;
}


.can-may-body .ed-piece {
    background:
        linear-gradient(
            145deg,
            var(--purple-700),
            var(--purple-500)
        );

    border-color: transparent;

    color: #ffffff;

    font-size: 17px;
    font-weight: 950;
}


.can-may-body .builder-plus {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--purple-400);

    font-size: 20px;
    font-weight: 950;
}


/* =========================================================
   SAME FORM
========================================================= */

.can-may-body .same-form-card {
    width: min(620px, 100%);

    margin: 23px auto 0;

    padding: 19px;

    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 8px;

    background: var(--purple-50);

    border:
        1px solid var(--purple-200);

    border-radius: 20px;
}


.can-may-body .same-form-card span {
    padding: 8px 11px;

    background: #ffffff;

    border:
        1px solid var(--purple-200);

    border-radius: 10px;

    color: var(--purple-700);

    font-size: 10px;
    font-weight: 900;
}


.can-may-body .same-form-card strong {
    width: 100%;

    margin-top: 6px;

    color: var(--purple-900);

    font-size: 16px;
    font-weight: 950;
}


/* =========================================================
   COMPARISON
========================================================= */

.can-may-body .time-comparison {
    width: min(720px, 100%);

    margin: 30px auto 0;

    display: grid;
    grid-template-columns: 1fr 50px 1fr;

    align-items: center;

    gap: 12px;
}


.can-may-body .time-side {
    min-height: 190px;

    padding: 23px 18px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border:
        2px solid var(--purple-200);

    border-radius: 23px;

    box-shadow: var(--card-shadow);
}


.can-may-body .time-side > span {
    margin-bottom: 8px;

    font-size: 34px;
}


.can-may-body .time-side small {
    margin-bottom: 7px;

    color: var(--purple-500);

    font-size: 9px;
    font-weight: 950;

    letter-spacing: 0.12em;
}


.can-may-body .time-side strong {
    color: var(--purple-900);

    font-size: 17px;
    font-weight: 900;
}


.can-may-body .time-side p {
    margin: 7px 0 0;

    color: var(--lesson-muted);

    font-size: 12px;
    font-weight: 620;
}


.can-may-body .time-arrow {
    color: var(--purple-400);

    font-size: 23px;
    font-weight: 900;
}


/* =========================================================
   VERB CHANGE GRID
========================================================= */

.can-may-body .verb-change-grid {
    width: min(720px, 100%);

    margin: 24px auto 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.can-may-body .verb-change-card {
    min-height: 95px;

    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    background: var(--purple-50);

    border:
        1px solid var(--purple-200);

    border-radius: 17px;
}


.can-may-body .verb-change-card > span {
    font-size: 24px;
}


.can-may-body .verb-change-card b {
    color: var(--purple-400);
}


.can-may-body .verb-change-card strong {
    color: var(--purple-900);

    font-size: 13px;
    font-weight: 850;
}


/* =========================================================
   ACTIVITY PANEL
========================================================= */

.can-may-body .activity-panel {
    text-align: center;
}


.can-may-body .purple-activity-machine {
    width: min(750px, 100%);

    margin: 29px auto 0;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #f4eef9 0%,
            #e5d8f1 100%
        );

    border:
        2px solid rgba(157, 125, 204, 0.25);

    border-radius: 31px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 13px 30px rgba(79, 59, 120, 0.07);
}


/* =========================================================
   ACTIVITY PROGRESS
========================================================= */

.can-may-body .activity-progress {
    width: 100%;

    margin-bottom: 14px;

    display: flex;
    justify-content: flex-end;
}


.can-may-body .activity-progress span {
    padding: 7px 11px;

    background: rgba(255, 255, 255, 0.73);

    border:
        1px solid rgba(203, 184, 232, 0.8);

    border-radius: 999px;

    color: var(--purple-600);

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   QUESTION CARD
========================================================= */

.can-may-body .purple-question-card {
    width: 100%;
    min-height: 230px;

    padding: 28px 32px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border:
        4px solid rgba(255, 255, 255, 0.96);

    border-radius: 26px;

    box-shadow:
        0 11px 25px rgba(79, 59, 120, 0.09);
}


.can-may-body .activity-question-icon {
    margin-bottom: 14px;

    font-size: 45px;

    line-height: 1;
}


.can-may-body .activity-question {
    color: var(--purple-900);

    font-size: clamp(19px, 2.5vw, 25px);
    font-weight: 900;

    line-height: 1.45;
}


/* =========================================================
   ACTIVITY OPTIONS
========================================================= */

.can-may-body .activity-options {
    width: 100%;

    margin-top: 17px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 11px;
}


.can-may-body .activity-options.large-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


.can-may-body .activity-option {
    min-height: 61px;

    padding: 12px 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border:
        2px solid rgba(203, 184, 232, 0.72);

    border-radius: 17px;

    color: var(--purple-800);

    font-family: inherit;
    font-size: 13px;
    font-weight: 850;

    line-height: 1.35;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(79, 59, 120, 0.045);

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}


.can-may-body .activity-option:hover:not(:disabled) {
    transform: translateY(-2px);

    border-color: var(--purple-400);

    box-shadow:
        0 9px 20px rgba(79, 59, 120, 0.08);
}


.can-may-body .activity-option.correct,
.can-may-body .activity-option.correct-answer {
    background: var(--success-light);

    border-color: var(--success);

    color: var(--success-dark);
}


.can-may-body .activity-option.wrong,
.can-may-body .activity-option.wrong-answer {
    background: var(--error-light);

    border-color: var(--error);

    color: var(--error-dark);
}


.can-may-body .activity-option:disabled {
    cursor: default;
}


/* =========================================================
   FEEDBACK
========================================================= */

.can-may-body .activity-feedback {
    min-height: 27px;

    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 850;
}


.can-may-body .activity-feedback.correct-feedback,
.can-may-body .activity-feedback.success {
    color: var(--success-dark);
}


.can-may-body .activity-feedback.wrong-feedback,
.can-may-body .activity-feedback.error {
    color: var(--error-dark);
}


/* =========================================================
   HIDDEN BUTTON
========================================================= */

.can-may-body .hidden-button {
    display: none !important;
}


.can-may-body .hidden-button.visible-button,
.can-may-body .hidden-button.show-button,
.can-may-body .hidden-button.is-visible {
    display: inline-flex !important;
}


/* =========================================================
   LISTENING
========================================================= */

.can-may-body .listening-card {
    gap: 10px;
}


.can-may-body .listen-button {
    min-height: 48px;

    padding: 0 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    background:
        linear-gradient(
            135deg,
            var(--purple-700),
            var(--purple-500)
        );

    border-radius: 14px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 900;

    box-shadow:
        0 8px 18px rgba(117, 87, 166, 0.20);
}


.can-may-body .listen-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 11px 22px rgba(117, 87, 166, 0.27);
}


.can-may-body .listening-question {
    margin-top: 8px;

    font-size: 15px;
}


/* =========================================================
   VIDEO
========================================================= */

.can-may-body .video-frame {
    width: min(760px, 100%);

    margin: 30px auto 0;

    overflow: hidden;

    background: #eee7f6;

    border:
        2px solid var(--purple-200);

    border-radius: 25px;

    box-shadow:
        0 12px 30px rgba(79, 59, 120, 0.10);
}


.can-may-body .lesson-video {
    width: 100%;

    aspect-ratio: 16 / 9;

    display: block;

    border: 0;
}


/* =========================================================
   SPEAKING PRACTICE
========================================================= */

.can-may-body .speaking-practice-grid {
    width: min(760px, 100%);

    margin: 29px auto 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 13px;
}


.can-may-body .speaking-practice-grid
.example-sentence-box {
    width: 100%;
    height: 100%;

    margin: 0;
}


/* =========================================================
   EXTRA GAMES
========================================================= */

.can-may-body .external-games-grid {
    width: min(780px, 100%);

    margin: 32px auto 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
}


.can-may-body .external-game-card {
    min-height: 250px;

    padding: 22px 19px;

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            var(--purple-50) 100%
        );

    border:
        2px solid var(--purple-200);

    border-radius: 23px;

    color: var(--lesson-text);

    text-align: center;
    text-decoration: none;

    box-shadow:
        0 8px 22px rgba(79, 59, 120, 0.065);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.can-may-body .external-game-card:hover {
    transform: translateY(-5px);

    border-color: var(--purple-400);

    box-shadow:
        0 15px 30px rgba(79, 59, 120, 0.12);
}


.can-may-body .game-number {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 5px 8px;

    background: var(--purple-100);

    border-radius: 999px;

    color: var(--purple-500);

    font-size: 8px;
    font-weight: 950;

    letter-spacing: 0.11em;
}


.can-may-body .external-game-icon {
    width: 64px;
    height: 64px;

    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--purple-100);

    border:
        1px solid var(--purple-200);

    border-radius: 19px;

    font-size: 31px;

    transition: transform 0.2s ease;
}


.can-may-body .external-game-card:hover
.external-game-icon {
    transform: translateY(-2px) rotate(-3deg);
}


.can-may-body .external-game-card strong {
    color: var(--purple-900);

    font-size: 16px;
    font-weight: 900;
}


.can-may-body .external-game-card p {
    margin: 8px 0 14px;

    color: var(--lesson-muted);

    font-size: 11px;
    font-weight: 620;

    line-height: 1.55;
}


.can-may-body .game-open {
    margin-top: auto;

    color: var(--purple-600);

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   QUICK REVIEW
========================================================= */

.can-may-body .past-steps-grid {
    width: min(790px, 100%);

    margin: 29px auto 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;
}


.can-may-body .past-step-card {
    min-height: 175px;

    padding: 18px 13px;

    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border:
        1px solid var(--purple-200);

    border-radius: 20px;

    box-shadow: var(--card-shadow);
}


.can-may-body .past-step-card > span {
    position: absolute;

    top: 10px;
    left: 11px;

    width: 23px;
    height: 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--purple-100);

    border-radius: 8px;

    color: var(--purple-600);

    font-size: 9px;
    font-weight: 950;
}


.can-may-body .past-step-card > div {
    margin-bottom: 8px;

    font-size: 29px;
}


.can-may-body .past-step-card strong {
    color: var(--purple-900);

    font-size: 13px;
    font-weight: 950;
}


.can-may-body .past-step-card p {
    margin: 6px 0 0;

    color: var(--lesson-muted);

    font-size: 10px;
    font-weight: 620;
}


/* =========================================================
   ADVENTURE MAP
========================================================= */

.can-may-body .adventure-map {
    width: min(730px, 100%);

    margin: 31px auto 0;

    display: flex;
    flex-direction: column;

    gap: 12px;
}


.can-may-body .map-level {
    width: 100%;
    min-height: 80px;

    padding: 13px 16px;

    display: grid;
    grid-template-columns: 56px 1fr 44px;

    align-items: center;

    gap: 14px;

    background: #ffffff;

    border:
        2px solid var(--purple-200);

    border-radius: 20px;

    color: var(--lesson-text);

    font-family: inherit;

    text-align: left;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(79, 59, 120, 0.05);

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}


.can-may-body .map-level:not(:disabled):hover {
    transform: translateY(-2px);

    border-color: var(--purple-400);

    box-shadow:
        0 10px 22px rgba(79, 59, 120, 0.09);
}


.can-may-body .map-level:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}


.can-may-body .map-level.unlocked {
    border-color: var(--purple-400);
}


.can-may-body .map-level.completed {
    background: var(--success-light);

    border-color: rgba(67, 169, 123, 0.55);
}


.can-may-body .level-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--purple-100);

    border-radius: 16px;

    font-size: 26px;
}


.can-may-body .level-text {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.can-may-body .level-text strong {
    color: var(--purple-900);

    font-size: 14px;
    font-weight: 900;
}


.can-may-body .level-text small {
    color: var(--lesson-muted);

    font-size: 10px;
    font-weight: 620;
}


.can-may-body .level-status {
    justify-self: center;

    color: var(--purple-600);

    font-size: 16px;
}


.can-may-body .map-message {
    width: min(620px, 100%);

    min-height: 45px;

    margin: 18px auto 0;

    padding: 11px 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--purple-100);

    border:
        1px solid var(--purple-200);

    border-radius: 14px;

    color: var(--purple-700);

    font-size: 11px;
    font-weight: 850;
}


/* =========================================================
   MAP GAME
========================================================= */

.can-may-body .map-game-level-label {
    display: inline-flex;

    margin-bottom: 14px;

    padding: 7px 11px;

    background: rgba(255, 255, 255, 0.74);

    border:
        1px solid var(--purple-200);

    border-radius: 999px;

    color: var(--purple-600);

    font-size: 9px;
    font-weight: 950;

    letter-spacing: 0.12em;
}


.can-may-body .purple-question-card h2 {
    margin: 0 0 12px;

    font-size: 25px;
}


/* =========================================================
   FINAL REVIEW
========================================================= */

.can-may-body .past-final-grid {
    width: min(790px, 100%);

    margin: 29px auto 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;
}


.can-may-body .past-final-card {
    min-height: 155px;

    padding: 18px 12px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--purple-50)
        );

    border:
        1px solid var(--purple-200);

    border-radius: 20px;

    box-shadow: var(--card-shadow);
}


.can-may-body .past-final-card > span {
    margin-bottom: 8px;

    font-size: 30px;
}


.can-may-body .past-final-card strong {
    color: var(--purple-900);

    font-size: 13px;
    font-weight: 950;
}


.can-may-body .past-final-card p {
    margin: 6px 0 0;

    color: var(--lesson-muted);

    font-size: 10px;
    font-weight: 620;
}


/* =========================================================
   FINAL EXAMPLE
========================================================= */

.can-may-body .final-example-card {
    width: min(720px, 100%);

    margin: 23px auto 0;

    padding: 19px;

    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 11px;

    background: var(--purple-100);

    border:
        1px solid var(--purple-200);

    border-radius: 20px;
}


.can-may-body .final-example-card span {
    color: var(--purple-500);

    font-size: 8px;
    font-weight: 950;

    letter-spacing: 0.11em;
}


.can-may-body .final-example-card strong {
    padding: 9px 12px;

    background: #ffffff;

    border-radius: 11px;

    color: var(--purple-900);

    font-size: 12px;
    font-weight: 900;
}


.can-may-body .final-example-card b {
    color: var(--purple-500);
}


/* =========================================================
   COMPLETION
========================================================= */

.can-may-body .completion-panel {
    padding-top: 55px;
    padding-bottom: 55px;
}


.can-may-body .completion-trophy {
    width: 95px;
    height: 95px;

    margin: 0 auto 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            var(--purple-100),
            #ffffff
        );

    border:
        2px solid var(--purple-200);

    border-radius: 30px;

    font-size: 48px;

    box-shadow:
        0 12px 27px rgba(79, 59, 120, 0.09);

    animation:
        trophyFloat 2.4s ease-in-out infinite;
}


@keyframes trophyFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

}


.can-may-body .completion-text {
    width: min(620px, 100%);

    margin: 17px auto 0;

    color: var(--lesson-muted);

    font-size: 16px;
    font-weight: 620;

    line-height: 1.7;
}


.can-may-body .completion-text strong {
    color: var(--purple-800);

    font-weight: 900;
}


/* =========================================================
   ACHIEVEMENT
========================================================= */

.can-may-body .achievement-card {
    width: min(530px, 100%);

    margin: 27px auto 0;

    padding: 18px 20px;

    display: flex;
    align-items: center;

    gap: 15px;

    background:
        linear-gradient(
            145deg,
            #f2eaf9,
            #fbf8fd
        );

    border:
        2px solid var(--purple-200);

    border-radius: 21px;

    text-align: left;
}


.can-may-body .achievement-icon {
    width: 55px;
    height: 55px;

    flex: 0 0 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-radius: 17px;

    font-size: 28px;
}


.can-may-body .achievement-card small {
    display: block;

    margin-bottom: 3px;

    color: var(--purple-500);

    font-size: 8px;
    font-weight: 950;

    letter-spacing: 0.12em;
}


.can-may-body .achievement-card strong {
    display: block;

    color: var(--purple-900);

    font-size: 17px;
    font-weight: 950;
}


.can-may-body .achievement-card p {
    margin: 4px 0 0;

    color: var(--lesson-muted);

    font-size: 10px;
    font-weight: 620;
}


/* =========================================================
   FINAL SCORE
========================================================= */

.can-may-body .final-score-card {
    width: min(260px, 100%);

    margin: 18px auto 0;

    padding: 15px;

    background: #ffffff;

    border:
        1px solid var(--purple-200);

    border-radius: 17px;

    box-shadow: var(--card-shadow);
}


.can-may-body .final-score-card small {
    display: block;

    margin-bottom: 3px;

    color: var(--purple-500);

    font-size: 8px;
    font-weight: 950;

    letter-spacing: 0.12em;
}


.can-may-body .final-score-card strong {
    color: var(--purple-900);

    font-size: 22px;
    font-weight: 950;
}


.can-may-body .completion-actions {
    margin-top: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 11px;
}


/* =========================================================
   ACHIEVEMENT TOAST
========================================================= */

.can-may-body .achievement-toast {
    min-width: 230px;

    padding: 13px 16px;

    position: fixed;

    z-index: 1000;

    right: 22px;
    bottom: 22px;

    display: flex;
    align-items: center;

    gap: 11px;

    background: rgba(255, 255, 255, 0.97);

    border:
        1px solid var(--purple-200);

    border-radius: 17px;

    box-shadow:
        0 16px 38px rgba(79, 59, 120, 0.16);

    opacity: 0;

    pointer-events: none;

    transform: translateY(20px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.can-may-body .achievement-toast.show,
.can-may-body .achievement-toast.visible {
    opacity: 1;

    transform: translateY(0);
}


.can-may-body .achievement-toast > span {
    font-size: 25px;
}


.can-may-body .achievement-toast strong {
    display: block;

    color: var(--purple-900);

    font-size: 12px;
    font-weight: 900;
}


.can-may-body .achievement-toast small {
    display: block;

    margin-top: 2px;

    color: var(--lesson-muted);

    font-size: 9px;
}


/* =========================================================
   CONFETTI
========================================================= */

.can-may-body .confetti-container {
    position: fixed;

    z-index: 9999;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


.yew-answer-confetti,
.yew-big-confetti {
    position: fixed;

    z-index: 9999;

    pointer-events: none;

    animation:
        yewConfettiFall 1.1s ease-out forwards;
}


@keyframes yewConfettiFall {

    0% {
        opacity: 1;

        transform:
            translateY(-10px)
            rotate(0deg)
            scale(0.8);
    }

    100% {
        opacity: 0;

        transform:
            translateY(120px)
            rotate(220deg)
            scale(1.1);
    }

}


/* =========================================================
   FOCUS
========================================================= */

.can-may-body button:focus-visible,
.can-may-body a:focus-visible {
    outline:
        3px solid rgba(137, 104, 187, 0.32);

    outline-offset: 4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .can-may-body .lesson-panel {
        padding: 43px 36px;

        border-radius: 29px;
    }


    .can-may-body .past-steps-grid,
    .can-may-body .past-final-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .can-may-body .external-games-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .can-may-body .external-game-card:last-child {
        grid-column: 1 / -1;

        width: min(370px, 100%);

        justify-self: center;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .can-may-body .lesson-navigation {
        width: 92%;
        min-height: 65px;

        grid-template-columns: 65px 1fr 65px;
    }


    .can-may-body .lesson-logo {
        font-size: 19px;
    }


    .can-may-body .chapter-number {
        font-size: 7px;
    }


    .can-may-body .chapter-name {
        font-size: 12px;
    }


    .can-may-body .close-lesson-button {
        width: 33px;
        height: 33px;

        border-radius: 11px;

        font-size: 21px;
    }


    .can-may-body .lesson-progress-area {
        width: 90%;

        margin-top: 17px;
    }


    .can-may-body .lesson-application {
        width: 92%;

        padding-top: 24px;
        padding-bottom: 65px;
    }


    .can-may-body .lesson-panel {
        padding: 35px 21px;

        border-radius: 25px;
    }


    .can-may-body h1 {
        font-size: 50px;
    }


    .can-may-body h2 {
        font-size: 29px;
    }


    .can-may-body .screen-introduction,
    .can-may-body .completion-text {
        font-size: 14px;

        line-height: 1.65;
    }


    /* Intro */

    .can-may-body .can-may-comparison {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    .can-may-body .comparison-divider {
        height: 27px;
    }


    .can-may-body .can-may-side {
        min-height: 155px;
    }


    /* Grammar hero */

    .can-may-body .grammar-hero-card {
        flex-direction: column;

        gap: 13px;
    }


    .can-may-body .grammar-hero-content {
        text-align: center;
    }


    /* Builder */

    .can-may-body .past-form-builder {
        flex-direction: column;

        gap: 8px;
    }


    .can-may-body .verb-piece,
    .can-may-body .ed-piece,
    .can-may-body .past-result {
        width: 100%;
        min-height: 72px;
    }


    .can-may-body .builder-plus {
        height: 20px;
    }


    /* Comparison */

    .can-may-body .time-comparison {
        grid-template-columns: 1fr;

        gap: 9px;
    }


    .can-may-body .time-arrow {
        transform: rotate(90deg);
    }


    .can-may-body .time-side {
        min-height: 150px;
    }


    /* Verb cards */

    .can-may-body .verb-change-grid {
        grid-template-columns: 1fr;
    }


    /* Activities */

    .can-may-body .purple-activity-machine {
        padding: 17px;

        border-radius: 24px;
    }


    .can-may-body .purple-question-card {
        min-height: 190px;

        padding: 22px 17px;

        border-radius: 21px;
    }


    .can-may-body .activity-question-icon {
        font-size: 38px;
    }


    .can-may-body .activity-question {
        font-size: 19px;
    }


    .can-may-body .activity-options,
    .can-may-body .activity-options.large-options {
        grid-template-columns: 1fr;
    }


    .can-may-body .activity-option {
        min-height: 55px;

        font-size: 12px;
    }


    /* Speaking */

    .can-may-body .speaking-practice-grid {
        grid-template-columns: 1fr;
    }


    /* Games */

    .can-may-body .external-games-grid {
        grid-template-columns: 1fr;
    }


    .can-may-body .external-game-card,
    .can-may-body .external-game-card:last-child {
        width: 100%;

        min-height: 205px;

        grid-column: auto;
    }


    /* Review */

    .can-may-body .past-steps-grid,
    .can-may-body .past-final-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* Map */

    .can-may-body .map-level {
        grid-template-columns: 47px 1fr 30px;

        gap: 10px;

        padding: 11px;
    }


    .can-may-body .level-icon {
        width: 45px;
        height: 45px;

        border-radius: 14px;

        font-size: 22px;
    }


    /* Final example */

    .can-may-body .final-example-card {
        flex-direction: column;

        gap: 7px;
    }


    .can-may-body .final-example-card b {
        transform: rotate(90deg);
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 470px) {

    .can-may-body .lesson-panel {
        padding:
            31px 16px;

        border-radius: 22px;
    }


    .can-may-body .intro-sun {
        width: 70px;
        height: 70px;

        border-radius: 22px;

        font-size: 34px;
    }


    .can-may-body h1 {
        font-size: 43px;
    }


    .can-may-body h2 {
        font-size: 25px;
    }


    .can-may-body .screen-label {
        font-size: 8px;
    }


    .can-may-body .mission-card,
    .can-may-body .important-note,
    .can-may-body .golden-tip {
        align-items: flex-start;
    }


    .can-may-body .example-sentence-box {
        padding:
            14px 13px 14px 16px;
    }


    .can-may-body .example-sentence-box strong {
        font-size: 14px;
    }


    .can-may-body .past-steps-grid,
    .can-may-body .past-final-grid {
        grid-template-columns: 1fr;
    }


    .can-may-body .past-step-card,
    .can-may-body .past-final-card {
        min-height: 135px;
    }


    .can-may-body .purple-activity-machine {
        padding: 13px;
    }


    .can-may-body .purple-question-card {
        min-height: 175px;

        padding: 19px 13px;
    }


    .can-may-body .completion-actions {
        flex-direction: column;
    }


    .can-may-body .completion-actions
    .main-action-button,
    .can-may-body .completion-actions
    .secondary-action-button {
        width: 100%;

        margin-top: 9px;
    }


    .can-may-body .achievement-toast {
        min-width: 0;

        right: 12px;
        bottom: 12px;
        left: 12px;
    }


    .can-may-body .floating-symbol {
        display: none;
    }

}