@import url("grade-2-lesson-1.css");


/* ==================================================
   ЦВЕТА УРОКА
================================================== */

.school-day-body {

    --gold-900: #66420f;
    --gold-800: #855817;
    --gold-700: #a86e20;
    --gold-600: #ca8c30;
    --gold-500: #e5a847;
    --gold-400: #f2c66d;
    --gold-300: #f8d98f;
    --gold-200: #ffebb7;
    --gold-100: #fff9e9;

}


/* ==================================================
   ЭКРАНЫ
================================================== */

.lesson-screen {
    display: none;
}

.lesson-screen.active-screen {

    display: block !important;

    opacity: 1 !important;

    visibility: visible !important;

}


/* ==================================================
   ПЕРВЫЙ ЭКРАН
================================================== */

.school-day-preview {

    max-width: 760px;

    margin: 28px auto;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

}


.school-day-preview span {

    padding: 15px 18px;

    border:
        2px solid
        rgba(177, 115, 28, 0.12);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #fffdf7,
            #ffe4a1
        );

    color: var(--gold-900);

    font-weight: 800;

    box-shadow:
        0 9px 20px
        rgba(117, 75, 15, 0.08);

    transition: 0.2s ease;

}


.school-day-preview span:hover {
    transform: translateY(-4px);
}


/* ==================================================
   УКРАИНСКИЕ ПОЯСНЕНИЯ
================================================== */

.ukrainian-explanation,
.ukrainian-instruction {

    display: block;

    margin-top: 10px;

    color: #795c2c;

    font-size: 15px;

    line-height: 1.55;

}


.ukrainian-inline {

    color: #795c2c;

    font-size: 14px;

}


/* ==================================================
   SCHOOL ROUTINE
================================================== */

.routine-grid {

    margin-top: 23px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;

}


.routine-grid article {

    min-height: 205px;

    padding: 20px 14px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border:
        1px solid
        rgba(183, 119, 25, 0.15);

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #ffe9b4
        );

    text-align: center;

    box-shadow:
        0 10px 23px
        rgba(117, 74, 13, 0.07);

    transition: 0.2s ease;

}


.routine-grid article:hover {

    transform: translateY(-4px);

    box-shadow:
        0 15px 28px
        rgba(117, 74, 13, 0.12);

}


.routine-grid article > span {

    display: block;

    font-size: 44px;

    line-height: 1;

}


.routine-grid strong {

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 20px;

}


.routine-grid small {

    min-height: 22px;

    color: var(--muted);

    font-size: 13px;

}


/* ==================================================
   CLASSROOM INSTRUCTIONS
================================================== */

.instructions-grid {

    margin-top: 23px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;

}


.instructions-grid article {

    min-height: 205px;

    padding: 20px 14px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border:
        1px solid
        rgba(183, 119, 25, 0.15);

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #ffe9b4
        );

    text-align: center;

    box-shadow:
        0 10px 23px
        rgba(117, 74, 13, 0.07);

    transition: 0.2s ease;

}


.instructions-grid article:hover {

    transform: translateY(-4px);

    box-shadow:
        0 15px 28px
        rgba(117, 74, 13, 0.12);

}


.instructions-grid article > span {

    display: block;

    font-size: 44px;

    line-height: 1;

}


.instructions-grid strong {

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 20px;

}


.instructions-grid small {

    min-height: 22px;

    color: var(--muted);

    font-size: 13px;

}


/* ==================================================
   SPEAK BUTTONS
================================================== */

.routine-grid .speak-button,
.instructions-grid .speak-button {

    margin-top: 4px;

}


/* ==================================================
   SCHOOL DAY RULE
================================================== */

.school-day-rule-card {

    max-width: 760px;

    margin: 23px auto;

    padding: 21px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;

    border-radius: 22px;

    background: #fff7e1;

}


.school-day-rule-card strong {

    padding: 13px 15px;

    border-radius: 14px;

    background: white;

    color: var(--gold-900);

    font-size: 15px;

    line-height: 1.5;

    text-align: center;

    box-shadow:
        0 7px 16px
        rgba(117, 74, 13, 0.06);

}


/* ==================================================
   MAIN INTERACTIVE
================================================== */

.routine-scanner {

    max-width: 720px;

    margin: 0 auto;

    padding: 25px;

    border:
        2px solid
        rgba(192, 128, 33, 0.17);

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #fff9ea,
            #ffe4a0
        );

    box-shadow:
        0 18px 38px
        rgba(115, 72, 11, 0.1);

}


.machine-progress {

    margin-bottom: 14px;

    color: var(--gold-800);

    font-size: 13px;

    font-weight: 900;

    text-align: center;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.scanner-display {

    min-height: 250px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 16px;

    border: 4px solid white;

    border-radius: 25px;

    background: white;

    box-shadow:
        0 14px 30px
        rgba(122, 79, 17, 0.11);

    text-align: center;

}


.scanner-icon {

    display: block;

    font-size: 68px;

    line-height: 1;

}


.scanner-display strong {

    font-family:
        "Fredoka",
        sans-serif;

    font-size:
        clamp(
            24px,
            5vw,
            35px
        );

    line-height: 1.25;

}


.scanner-options {

    margin-top: 18px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;

}


.scanner-option,
.scanner-options button {

    padding: 15px;

    cursor: pointer;

    border: 2px solid transparent;

    border-radius: 16px;

    background: white;

    color: var(--ink);

    font:
        800
        16px
        "Manrope",
        sans-serif;

    box-shadow:
        0 8px 18px
        rgba(123, 79, 16, 0.08);

    transition: 0.22s ease;

}


.scanner-option:hover,
.scanner-options button:hover {

    transform: translateY(-2px);

    border-color: var(--gold-400);

}


.scanner-option.correct-option,
.scanner-options button.correct-option,
.game-choice-grid button.correct-option {

    border-color: #55b86b;

    background: #e9f9ec;

    color: #226832;

}


.scanner-option.wrong-option,
.scanner-options button.wrong-option,
.game-choice-grid button.wrong-option {

    border-color: #dc786e;

    background: #fff0ee;

    color: #963e36;

}


/* ==================================================
   ЗАДАНИЯ КАРТЫ
================================================== */

.game-prompt {

    margin: 18px auto;

    padding: 22px;

    border-radius: 20px;

    background: white;

    font:
        700
        clamp(
            20px,
            4vw,
            28px
        )
        "Fredoka",
        sans-serif;

    text-align: center;

}


.game-object-picture {

    display: block;

    margin-bottom: 10px;

    font-size: 52px;

}


.game-choice-grid {

    display: grid;

    gap: 11px;

}


.game-choice-grid button {

    padding: 14px 16px;

    cursor: pointer;

    border: 2px solid transparent;

    border-radius: 14px;

    background: white;

    color: var(--ink);

    font:
        800
        15px
        "Manrope",
        sans-serif;

    box-shadow:
        0 6px 15px
        rgba(110, 72, 15, 0.09);

    transition: 0.2s ease;

}


.game-choice-grid button:hover {

    transform: translateY(-2px);

    border-color: var(--gold-400);

}


/* ==================================================
   WORD BUILDER
================================================== */

.word-answer-zone,
.word-bank {

    min-height: 82px;

    margin: 14px 0;

    padding: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 9px;

    border-radius: 20px;

}


.word-answer-zone {

    border:
        2px dashed
        var(--gold-500);

    background: #fff9e9;

}


.word-answer-zone:empty::before {

    content:
        "Натискай на слова, щоб скласти речення";

    color: #a98b59;

    font-size: 13px;

    font-weight: 700;

    text-align: center;

}


.word-bank {
    background: #ffedbd;
}


.word-answer-zone button,
.word-bank button {

    padding: 12px 15px;

    cursor: pointer;

    border: 2px solid transparent;

    border-radius: 14px;

    background: white;

    color: var(--ink);

    font:
        800
        15px
        "Manrope",
        sans-serif;

    box-shadow:
        0 6px 15px
        rgba(110, 72, 15, 0.09);

    transition: 0.2s ease;

}


.word-answer-zone button:hover,
.word-bank button:hover {

    transform: translateY(-2px);

    border-color: var(--gold-400);

}


/* ==================================================
   DIALOGUE / SELECT BUILDER
================================================== */

.dialogue-builder {

    margin: 18px auto;

    padding: 22px;

    border-radius: 22px;

    background: #fff9e8;

}


.dialogue-builder p {

    margin: 13px 0;

    padding: 12px;

    border-radius: 12px;

    background:
        rgba(
            255,
            255,
            255,
            0.75
        );

    font-weight: 800;

}


.dialogue-builder select {

    margin: 0 5px;

    padding: 8px 12px;

    border:
        2px solid
        var(--gold-400);

    border-radius: 10px;

    background: white;

    color: var(--gold-900);

    font-weight: 800;

}


.game-check-button,
.game-next-button {
    margin-top: 18px;
}


/* ==================================================
   TIMETABLE
================================================== */

.timetable-card {

    margin: 18px auto;

    padding: 22px;

    border-radius: 22px;

    background: #fff9e8;

}


.timetable-row {

    padding: 14px 16px;

    display: grid;

    grid-template-columns:
        90px
        1fr;

    align-items: center;

    gap: 14px;

    border-bottom:
        1px solid
        rgba(185, 122, 28, 0.13);

}


.timetable-row:last-child {
    border-bottom: 0;
}


.timetable-time {

    color: var(--gold-800);

    font-weight: 900;

}


.timetable-activity {

    color: var(--ink);

    font-weight: 800;

}


/* ==================================================
   SCHOOL STORY
================================================== */

.school-story {

    margin: 18px auto;

    padding: 22px;

    border-radius: 22px;

    background: #fff9e8;

}


.school-story p {

    margin: 12px 0;

    line-height: 1.65;

    font-weight: 700;

}


/* ==================================================
   CORRECT / WRONG
================================================== */

.correct-option,
.correct-choice {

    border-color: #55b86b !important;

    background: #e9f9ec !important;

    color: #226832 !important;

}


.wrong-option,
.wrong-choice {

    border-color: #dc786e !important;

    background: #fff0ee !important;

    color: #963e36 !important;

}


/* ==================================================
   ФИНАЛЬНЫЙ ОБЗОР
================================================== */

.school-day-review-grid {

    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

}


.school-day-review-grid article {

    padding: 20px;

    display: flex;

    flex-direction: column;

    gap: 7px;

    border:
        1px solid
        rgba(192, 127, 31, 0.15);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #ffebb8
        );

}


.school-day-review-grid strong {

    color: var(--gold-900);

    font-family:
        "Fredoka",
        sans-serif;

    font-size: 21px;

}


.school-day-review-grid span {

    color: var(--muted);

}


/* ==================================================
   REVIEW REMINDER
================================================== */

.review-reminder em {

    color: var(--gold-900);

    font-style: normal;

    font-weight: 900;

}


/* ==================================================
   АДАПТАЦИЯ
================================================== */

@media (max-width: 900px) {

    .routine-grid,
    .instructions-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

    }

}


@media (max-width: 760px) {

    .routine-grid,
    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .school-day-rule-card {
        grid-template-columns: 1fr;
    }

    .school-day-review-grid {
        grid-template-columns: 1fr;
    }

    .timetable-row {
        grid-template-columns: 72px 1fr;
    }

}


@media (max-width: 540px) {

    .school-day-preview {

        flex-direction: column;

        align-items: stretch;

    }

    .school-day-preview span {
        text-align: center;
    }

    .routine-scanner {
        padding: 17px;
    }

    .scanner-options {
        grid-template-columns: 1fr;
    }

    .scanner-display {

        min-height: 210px;

        padding: 18px;

    }

    .school-day-rule-card {
        padding: 17px;
    }

    .timetable-row {

        grid-template-columns: 1fr;

        gap: 5px;

        text-align: center;

    }

}