/* Scoped copies of the existing Memory desktop, touch and landscape styles. */

    #memory-menu-main {
        height: 100vh;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: -40px;
    }

    .memory-menu-stage {
        height: 86vh;
        aspect-ratio: 16 / 9;
        position: relative;
        background-image:
            linear-gradient(90deg, rgba(0, 89, 120, 0.18), rgba(255, 255, 255, 0.08), rgba(0, 89, 120, 0.18)),
            url('../images/memoryGame/memoryMachGame.jpg');
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

    .memory-menu-landscape-logo,
    .memory-menu-landscape-cards,
    .memory-menu-landscape-instruction {
        display: none;
    }

    .memory-menu-landscape-main {
        display: contents;
    }

    .memory-menu-panel {
        position: absolute;
        top: 14%;
        left: 9%;
        height: 78%;
        width: 30%;
        padding: 8px;
        border-radius: 14px;
        background: rgba(0, 138, 201, 0.92);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
        color: #f5f7ff;
        font-family: system-ui, -apple-system, sans-serif;
        display: block;
    }

    .memory-subject-list {
        list-style: none;
        padding: 0;
        margin: 0;
        height: 100%;
        overflow-y: auto;
        scrollbar-color: #006f9f rgba(255, 255, 255, 0.25);
        scrollbar-width: thin;
    }

    .memory-subject-list::-webkit-scrollbar {
        width: 8px;
    }

    .memory-subject-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.22);
        border-radius: 999px;
    }

    .memory-subject-list::-webkit-scrollbar-thumb {
        background: #006f9f;
        border-radius: 999px;
    }

    .memory-subject-list li {
        margin: 4px 0;
    }

    .memory-subject-btn {
        width: 100%;
        min-height: 35px;
        display: block;
        padding: 7px 10px;
        border: 0;
        border-radius: 8px;
        background: #f7f9ff;
        color: #000;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.12;
        text-align: left;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
        transition: transform 120ms ease, box-shadow 140ms ease, filter 140ms ease;
        overflow-wrap: anywhere;
    }

    .memory-subject-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.45);
    }

    .memory-subject-btn.selected {
        outline: 0;
        box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4fd18f, 0 6px 14px rgba(0, 0, 0, 0.55);
    }

    .memory-random-start {
        position: absolute;
        top: 72%;
        left: 47%;
        z-index: 20;
        width: 18%;
        min-width: 120px;
        height: 10%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 12px;
        background-color: rgb(0, 138, 201);
        background-image: linear-gradient(to top left,
                rgba(0, 0, 0, 0.2),
                rgba(0, 0, 0, 0.2) 30%,
                rgba(0, 0, 0, 0));
        color: #fff;
        cursor: pointer;
        font-size: 32px;
        font-weight: 800;
        text-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
        box-shadow:
            inset 2px 2px 3px rgba(255, 255, 255, 0.6),
            inset -2px -2px 3px rgba(0, 0, 0, 0.6),
            0 8px 16px rgba(0, 0, 0, 0.35);
    }

    #memory-game-frame {
        display: none;
        height: 86vh;
        aspect-ratio: 16 / 9;
        width: min(calc(86vh * 16 / 9), 100vw);
        margin-inline: auto;
        border: 0;
        float: none !important;
        margin-top: 0;
    }

    #memory-standby-frame {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 30;
    }

    @media (max-width: 768px) and (orientation: portrait) {
        

        

        body.memory-game-active #memory-menu-main {
            position: relative;
            width: 100vw;
            height: calc(100vh - var(--memory-site-header-height, 0px));
            height: calc(100dvh - var(--memory-site-header-height, 0px));
            min-height: 0;
            margin: 0;
            background: #e8f6ff;
        }

        #memory-menu-main {
            height: calc(100svh - 8px);
            min-height: 620px;
            align-items: flex-start;
            margin-bottom: 0;
            overflow: hidden;
        }

        .memory-menu-stage {
            width: 100vw;
            height: calc(100svh - 8px);
            min-height: 620px;
            aspect-ratio: auto;
            background-image: url('../images/memoryGame/fabric.jpg');
            background-size: cover;
            background-position: center;
        }

        .memory-menu-stage::before {
            content: "Memory Game";
            position: absolute;
            top: 17px;
            left: 50%;
            z-index: 21;
            width: min(67vw, 353px);
            height: 86px;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: translateX(-50%);
            border-radius: 10px;
            background-color: rgb(0, 138, 201);
            background-image: linear-gradient(to top left,
                    rgba(0, 0, 0, 0.2),
                    rgba(0, 0, 0, 0.2) 30%,
                    rgba(0, 0, 0, 0));
            color: #fff;
            font-family: "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: clamp(27px, 7.7vw, 48px);
            font-weight: 800;
            line-height: 1;
            text-align: center;
            text-shadow: 1px 1px 1px #000;
            box-shadow:
                inset 2px 2px 3px rgba(255, 255, 255, 0.6),
                inset -2px -2px 3px rgba(0, 0, 0, 0.6);
        }

        .memory-menu-panel {
            top: 118px;
            left: 50%;
            right: auto;
            width: min(calc(100vw - 58px), 380px);
            height: min(calc(100% - 244px), 560px);
            min-height: 342px;
            transform: translateX(-50%);
            padding: 10px;
            border-radius: 14px;
            background-color: rgb(2, 96, 140);
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
        }

        .memory-subject-list li {
            margin: 0 0 8px;
        }

        .memory-subject-btn {
            min-height: 45px;
            padding: 9px 14px;
            border-radius: 10px;
            font-size: clamp(15px, 4.2vw, 20px);
            line-height: 1.12;
        }

        .memory-random-start {
            top: auto;
            left: 50%;
            bottom: 56px;
            width: min(210px, 54vw);
            height: 62px;
            min-width: 0;
            min-height: 0;
            transform: translateX(-50%);
            font-size: 34px;
        }

        #memory-game-frame {
            width: 100vw;
            height: calc(100svh - 8px);
            min-height: 620px;
            aspect-ratio: auto;
            margin: 0;
        }

        body.memory-game-active #memory-game-frame {
            display: block;
            width: 100vw;
            height: calc(100vh - var(--memory-site-header-height, 0px));
            height: calc(100dvh - var(--memory-site-header-height, 0px));
            min-height: 0;
        }
    }

@media screen and (orientation: landscape) {
    /* Public start screen: /en/games/memory-game */
    body.memory-game-mobile-page {
        --memory-game-mobile-landscape: 1;
        --memory-game-landscape-header-height: clamp(44px, 9.5dvh, 64px);
        --memory-game-landscape-nav-size: calc(var(--memory-game-landscape-header-height) - 10px);
        width: 100vw;
        height: 100dvh;
        margin: 0;
        overflow: hidden;
        background: #54a923;
    }

    body.memory-game-mobile-page #wpadminbar,
    body.memory-game-mobile-page #gameCursel,
    body.memory-game-mobile-page #footer {
        display: none !important;
    }

    body.memory-game-mobile-page #header {
        position: fixed;
        inset: 0 0 auto auto;
        z-index: 3000;
        display: block;
        width: 0;
        height: 0;
        min-height: 0;
        background: transparent;
    }

    body.memory-game-mobile-page #header .headerImage,
    body.memory-game-mobile-page #header .logo,
    body.memory-game-mobile-page #header #learning,
    body.memory-game-mobile-page #header #note {
        display: none !important;
    }

    body.memory-game-mobile-page #mainNav {
        position: fixed;
        top: max(5px, env(safe-area-inset-top));
        right: max(5px, env(safe-area-inset-right));
        z-index: 3100;
        width: auto;
        height: auto;
        margin: 0;
    }

    body.memory-game-mobile-page.memory-game-active #mainNav {
        top: max(11px, env(safe-area-inset-top));
    }

    body.memory-game-mobile-page #mainNav .site-menu {
        padding: 0;
        background: transparent;
    }

    body.memory-game-mobile-page #mobile-menu-btn {
        position: relative;
        top: auto;
        right: auto;
        z-index: 3200;
        display: flex;
        width: var(--memory-game-landscape-nav-size);
        height: var(--memory-game-landscape-nav-size);
        padding: 0;
        align-items: center;
        justify-content: center;
        border: 1.5px solid rgba(255, 255, 255, .95);
        border-radius: 6px;
        background: linear-gradient(180deg, #159ad2 0%, #0479b1 100%);
        color: transparent;
        font-size: 0;
        line-height: 0;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 54, 87, .36);
    }

    body.memory-game-mobile-page #mobile-menu-btn::before {
        content: "";
        display: block;
        width: 54%;
        height: 3px;
        border-radius: 3px;
        background: #fff;
        box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
    }

    body.memory-game-mobile-page #primary-menu {
        position: fixed;
        top: max(calc(var(--memory-game-landscape-header-height) + 6px), calc(env(safe-area-inset-top) + var(--memory-game-landscape-header-height)));
        right: max(5px, env(safe-area-inset-right));
        z-index: 3150;
        display: none;
        width: min(270px, calc(100vw - 12px));
        max-height: calc(100dvh - var(--memory-game-landscape-header-height) - 12px);
        margin: 0;
        padding: 8px;
        overflow-x: hidden;
        overflow-y: auto;
        flex-direction: column;
        border: 2px solid #fff;
        border-radius: 8px;
        background: #1e90ff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
        list-style: none;
    }

    body.memory-game-mobile-page #primary-menu.menu-open {
        display: flex;
    }

    body.memory-game-mobile-page #primary-menu > .menu-item {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .28);
    }

    body.memory-game-mobile-page #primary-menu > .menu-item:last-child {
        border-bottom: 0;
    }

    body.memory-game-mobile-page #primary-menu .menu-item > a {
        display: block;
        padding: 9px 10px;
        color: #fff;
        font-size: 16px;
        text-decoration: none;
    }

    body.memory-game-mobile-page #memory-menu-main {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: block;
        width: 100vw;
        height: 100dvh;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: #54a923;
    }

    body.memory-game-mobile-page .memory-menu-stage {
        position: relative;
        display: grid;
        grid-template-columns: clamp(190px, 28vw, 330px) minmax(0, 1fr);
        grid-template-rows: var(--memory-game-landscape-header-height) minmax(0, 1fr);
        width: 100vw;
        height: 100dvh;
        min-height: 0;
        margin: 0;
        border: 2px solid #09ace1;
        aspect-ratio: auto;
        overflow: hidden;
        background: #54a923 url("../images/memoryGame/memoryBG.png") center / cover no-repeat;
    }

    body.memory-game-mobile-page .memory-menu-landscape-logo {
        position: relative;
        display: block;
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 0;
        background: #078bc4;
        border-bottom: 2px solid #a7d5df;
    }

    body.memory-game-mobile-page .memory-menu-landscape-logo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

    body.memory-game-mobile-page .memory-menu-panel {
        position: relative;
        top: auto;
        left: auto;
        display: block;
        grid-column: 1;
        grid-row: 2;
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        margin: 0;
        padding: 8px 8px 0;
        border: 0;
        border-right: 3px solid #d7e7e4;
        border-radius: 0;
        overflow: hidden;
        background: rgba(78, 160, 35, .82);
        box-shadow: none;
    }

    body.memory-game-mobile-page .memory-subject-list {
        height: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-color: #8d8d8d #f1f1f1;
        scrollbar-width: auto;
    }

    body.memory-game-mobile-page .memory-subject-list li {
        margin: 0;
    }

    body.memory-game-mobile-page .memory-subject-btn {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: clamp(43px, 10.5dvh, 72px);
        margin: 0;
        padding: 8px clamp(12px, 2vw, 28px);
        border: 1px solid #303030;
        border-bottom: 0;
        border-radius: 0;
        background: #fff;
        color: #111;
        font-size: clamp(17px, 2.05vw, 28px);
        font-weight: 400;
        line-height: 1.1;
        text-align: left;
        text-transform: lowercase;
        box-shadow: none;
        transform: none;
    }

    body.memory-game-mobile-page .memory-subject-list li:first-child .memory-subject-btn {
        text-transform: none;
    }

    body.memory-game-mobile-page .memory-subject-list li:last-child .memory-subject-btn {
        border-bottom: 1px solid #303030;
    }

    body.memory-game-mobile-page .memory-subject-btn:hover {
        filter: none;
        transform: none;
        box-shadow: none;
    }

    body.memory-game-mobile-page .memory-subject-btn.selected {
        outline: 0;
        background: #99d8fa;
        box-shadow: none;
    }

    body.memory-game-mobile-page .memory-menu-landscape-main {
        position: relative;
        display: flex;
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        min-height: 0;
        padding: clamp(5px, 1.4dvh, 12px) clamp(10px, 2vw, 28px);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: clamp(4px, 1.2dvh, 10px);
        overflow: hidden;
        background: url("../images/memoryGame/memoryBG.png") center / cover no-repeat;
    }

    body.memory-game-mobile-page .memory-menu-landscape-cards {
        display: block;
        width: min(47vw, calc((100dvh - 140px) * 1.43));
        max-width: 70%;
        height: auto;
        max-height: calc(100dvh - 132px);
        object-fit: contain;
    }

    body.memory-game-mobile-page .memory-random-start {
        position: relative;
        top: auto;
        left: auto;
        z-index: 1;
        flex: 0 0 auto;
        width: clamp(132px, 17vw, 210px);
        min-width: 0;
        height: clamp(38px, 7.4dvh, 51px);
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent url("../images/memoryGame/startBtn.png") center / 100% 100% no-repeat;
        color: transparent;
        font-size: 0;
        line-height: 0;
        text-shadow: none;
        box-shadow: none;
        transform: none;
    }

    body.memory-game-mobile-page .memory-menu-landscape-instruction {
        display: block;
        flex: 0 0 auto;
        margin: 0;
        color: #fff;
        font-size: clamp(19px, 2.5vw, 34px);
        font-weight: 700;
        line-height: 1.05;
        text-align: center;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, .32);
    }

    body.memory-game-mobile-page #memory-game-frame {
        display: none;
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        min-height: 0 !important;
        margin: 0 !important;
        border: 0;
        aspect-ratio: auto;
    }

    body.memory-game-mobile-page.memory-game-active #memory-game-frame {
        display: block;
    }

}

body.ec-memory-page #memory-menu-main{display:block;position:relative;inset:auto;width:100%;height:auto;min-height:0;margin:0 0 30px;padding:0;overflow:visible;z-index:auto;}
#ec-memory-frame{container:ec-memory / size;position:relative;isolation:isolate;width:min(calc(86vh * 16 / 9),100%);height:86vh;margin:auto;direction:ltr;}
#ec-memory{position:relative;width:100%;height:100%;direction:ltr;text-align:initial;color:#000;font:16px/normal Arial,sans-serif;overflow:clip;}
#ec-memory [hidden],#ec-memory-frame [hidden]{display:none!important;}
#ec-memory img{display:inline;max-width:none;height:auto;vertical-align:baseline;border:0;border-radius:0;box-shadow:none;}
#ec-memory button,#ec-memory input,#ec-memory label{margin:0;letter-spacing:normal;text-transform:none;}
#ec-memory form,#ec-memory table{margin:0;}
#ec-memory.ec-memory-desktop *,#ec-memory.ec-memory-desktop *::before,#ec-memory.ec-memory-desktop *::after{box-sizing:content-box;}
#ec-memory.ec-memory-desktop,#ec-memory.ec-memory-desktop,#ec-memory.ec-memory-desktop{
    margin: 0;
    padding: 0;
    height: 100cqh;
}
#ec-memory.ec-memory-desktop .container{
    position: relative;
    width: 100%;
    height: 100%;
}
#ec-memory.ec-memory-desktop #mainCont{
    position: relative;
    width: 75%;
    
    max-width: 1800px;
    
    height: 100%;
    margin: 0 auto;
    
}
#ec-memory.ec-memory-desktop #canvas{
    position: absolute;
    left: 0;
    
    top: 0;
    
}
#ec-memory.ec-memory-desktop .invisibleBut{
    opacity: 0;
    pointer-events: auto;
    position: absolute;
    background: transparent;
    border: 1px solid black;
    font-size: 0;
}
#ec-memory.ec-memory-desktop .radio-toolbar input[type="radio"]{
    display: none;
}
#ec-memory.ec-memory-desktop .radio-toolbar label{
    display: inline-block;
    width: 220px;
    background-color: #fff;
    padding: 5px 10px;
    font-family: Arial;
    font-size: 14px;
    border: 1px solid #444;

}
#ec-memory.ec-memory-desktop .radio-toolbar input[type="radio"]:checked+label{
    background-color: #9AD8FF;
    border-color: #4c4;
}
#ec-memory.ec-memory-desktop #selectRap{
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 5px;
    border: 4px solid #E4E4E6;
    width: 270px;
    overflow: auto;
    height: 600px;
}
#ec-memory.ec-memory-desktop .radio-toolbar label:hover{
    background-color: #E4F4FF;
}
#ec-memory.ec-memory-desktop #startButton{
    position: absolute;
    top: 80%;
    left: 48%;
}
#ec-memory.ec-memory-desktop #seledctTopic{
    position: absolute;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}
#ec-memory.ec-memory-desktop #cards{
    position: absolute;

}
#ec-memory.ec-memory-desktop #img1{
    position: absolute;
    top: 50px;
    left: 400px;
}
#ec-memory.ec-memory-desktop #column1{
    float: left;
    width: 60%;
    text-align: right;


}
#ec-memory.ec-memory-desktop #column2{
    float: left;
    width: 40%;
    font-weight: bold;

}
#ec-memory.ec-memory-desktop #column3{
    width: 100%;
}
#ec-memory.ec-memory-desktop .rows{
    border: solid 0.2px black;
    margin: 0;
    padding: 3px;
}
#ec-memory.ec-memory-desktop .highHedder{
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: #007BB9;
}
#ec-memory.ec-memory-desktop #highScore{
    position: absolute;
    left: 250px;
    top: 350px;
    width: 300px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}
#ec-memory.ec-memory-desktop #form1{
    position: absolute;
}
#ec-memory.ec-memory-desktop #enterYour{
    font-family: Arial;
    color: #007BB9;
    font-weight: bold;
}
#ec-memory.ec-memory-desktop #playerName{
    width: 211px;
    height: 50px;
    font-size: 22px;
    background-color: transparent;
    font-family: Arial;
}
#ec-memory.ec-memory-desktop .rows{
    border: solid 0.2px black;
    margin: 0;
    padding: 3px;
}
#ec-memory.ec-memory-desktop table{
    border-collapse: collapse;
    min-width: 200px;
}
#ec-memory.ec-memory-desktop th,#ec-memory.ec-memory-desktop td{
    border: 1px solid #ccc;
    padding: .1rem .1rem;
    text-align: left;
}
#ec-memory.ec-memory-desktop #resetHigh{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}
#ec-memory.ec-memory-desktop #gameOver{
    position: absolute;
    left: 0px;
    top: 0px;
    font-family: Arial, Helvetica, sans-serif;
    color: #007BB9;
    font-size: 11px;
    font-weight: bold;
}
#ec-memory.ec-memory-desktop #points{
    color: #FF0202;
}
#ec-memory.ec-memory-desktop #restartBut{
    position: absolute;
    left: 0px;
    top: 0px;
}
#ec-memory.ec-memory-desktop #picWord{
    position: absolute;
    left: 0px;
    top: 0px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000066;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
}

#ec-memory.ec-memory-mobile *{
    box-sizing: border-box;
}
#ec-memory.ec-memory-mobile,#ec-memory.ec-memory-mobile{
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #c7ebf9;
    font-family: Arial, Helvetica, sans-serif;
}
#ec-memory.ec-memory-mobile{
    min-height: 100cqh;
}
#ec-memory.ec-memory-mobile button,#ec-memory.ec-memory-mobile a{
    -webkit-tap-highlight-color: transparent;
}
#ec-memory.ec-memory-mobile .memory-mobile-shell{
    min-height: 100cqh;
    padding: 30px 10px 10px;
    color: #063f5c;
    background:
        radial-gradient(ellipse at 92% 88%, rgba(72, 177, 221, .3) 0%, rgba(72, 177, 221, 0) 46%),
        linear-gradient(180deg, #cceefa 0%, #b5e3f6 52%, #c9edfa 100%);
}
#ec-memory.ec-memory-mobile .memory-mobile-panel,#ec-memory.ec-memory-mobile .memory-mobile-game,#ec-memory.ec-memory-mobile .memory-mobile-finish{
    width: min(100%, 460px);
    margin: 0 auto;
}
#ec-memory.ec-memory-mobile .memory-mobile-game{
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}
#ec-memory.ec-memory-mobile .memory-mobile-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}
#ec-memory.ec-memory-mobile .memory-mobile-header img{
    width: min(58cqw, 250px);
    height: auto;
    display: block;
}
#ec-memory.ec-memory-mobile .memory-mobile-sound{
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 72, 110, .18);
    position: relative;
}
#ec-memory.ec-memory-mobile .memory-mobile-sound::before{
    content: "";
    position: absolute;
    inset: 11px 10px;
    background: #0879ad;
    clip-path: polygon(0 35%, 32% 35%, 70% 5%, 70% 95%, 32% 65%, 0 65%);
}
#ec-memory.ec-memory-mobile .memory-mobile-sound.is-muted::after{
    content: "";
    position: absolute;
    width: 28px;
    height: 3px;
    left: 8px;
    top: 20px;
    border-radius: 3px;
    background: #d43737;
    transform: rotate(-38deg);
}
#ec-memory.ec-memory-mobile .memory-mobile-topic-strip{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 14px;
    scrollbar-width: none;
}
#ec-memory.ec-memory-mobile .memory-mobile-topic-strip::-webkit-scrollbar{
    display: none;
}
#ec-memory.ec-memory-mobile .memory-mobile-topic-strip a{
    flex: 0 0 auto;
    min-width: 108px;
    max-width: 156px;
    padding: 9px 12px;
    border: 1px solid #9ed6ef;
    border-radius: 7px;
    background: rgba(255, 255, 255, .92);
    color: #064461;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: normal;
}
#ec-memory.ec-memory-mobile .memory-mobile-topic-strip a.is-selected{
    background: #93d8ff;
    border-color: #188bc0;
    font-weight: 700;
}
#ec-memory.ec-memory-mobile .memory-mobile-start,#ec-memory.ec-memory-mobile .memory-mobile-status button,#ec-memory.ec-memory-mobile .memory-mobile-finish button{
    min-height: 44px;
    border: 0;
    border-radius: 7px;
    background: #0879ad;
    color: #fff;
    font: 700 18px/1 Arial, Helvetica, sans-serif;
    box-shadow: 0 4px 8px rgba(0, 72, 110, .22);
}
#ec-memory.ec-memory-mobile .memory-mobile-start{
    width: 100%;
    margin-top: 4px;
}
#ec-memory.ec-memory-mobile .memory-mobile-status{
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    width: 100cqw;
    max-width: none;
    margin-left: calc(50% - 50cqw);
    margin-right: calc(50% - 50cqw);
    margin-bottom: 30px;
    padding: 8px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(54, 217, 255, .95), rgba(0, 138, 201, .96) 54%, rgba(0, 111, 159, .98)),
        rgb(0, 138, 201);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, .45),
        inset 0 -2px 4px rgba(0, 0, 0, .28),
        0 3px 8px rgba(0, 72, 110, .2);
}
#ec-memory.ec-memory-mobile .memory-mobile-status div{
    min-width: 0;
    padding: 7px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .18);
    box-shadow:
        inset 1px 1px 2px rgba(255, 255, 255, .35),
        inset -1px -1px 2px rgba(0, 0, 0, .18);
}
#ec-memory.ec-memory-mobile .memory-mobile-status span,#ec-memory.ec-memory-mobile .memory-mobile-status strong{
    display: block;
    text-align: center;
}
#ec-memory.ec-memory-mobile .memory-mobile-status span{
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    text-transform: uppercase;
}
#ec-memory.ec-memory-mobile .memory-mobile-status strong{
    color: #fff;
    font-size: 19px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .45);
}
#ec-memory.ec-memory-mobile .memory-mobile-status strong.is-scoring{
    animation: memory-mobile-score-pulse .42s ease;
}
#ec-memory.ec-memory-mobile .memory-mobile-status button{
    min-width: 78px;
    padding: 0 10px;
    font-size: 14px;
}
#ec-memory.ec-memory-mobile .memory-mobile-board{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    min-height: 0;
    position: relative;
    margin-bottom: 14px;
    
    background: url("../images/memoryGame/fabric.jpg") center / auto calc(100% + 44px) no-repeat;
    box-shadow: 0 6px 16px rgba(0, 74, 111, .22);
}
#ec-memory.ec-memory-mobile .memory-mobile-board::before,#ec-memory.ec-memory-mobile .memory-mobile-board::after{
    content: "";
    position: absolute;
    left: calc(50% - 50cqw);
    right: calc(50% - 50cqw);
    height: 10px;
    background:
        linear-gradient(180deg, rgba(54, 217, 255, .95), rgba(0, 138, 201, .96) 54%, rgba(0, 111, 159, .98)),
        rgb(0, 138, 201);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, .45),
        inset 0 -2px 4px rgba(0, 0, 0, .28);
    pointer-events: none;
}
#ec-memory.ec-memory-mobile .memory-mobile-board::before{
    top: -14px;
    background:
        linear-gradient(180deg, rgba(0, 111, 159, .98), rgba(0, 138, 201, .96) 54%, rgba(54, 217, 255, .95)),
        rgb(0, 138, 201);
    box-shadow:
        inset 0 -2px 3px rgba(255, 255, 255, .45),
        inset 0 2px 4px rgba(0, 0, 0, .28);
}
#ec-memory.ec-memory-mobile .memory-mobile-board::after{
    bottom: -14px;
}
#ec-memory.ec-memory-mobile .memory-mobile-card{
    width: 100%;
    aspect-ratio: 1 / 1.04;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    perspective: 800px;
}
#ec-memory.ec-memory-mobile .memory-mobile-card-inner{
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .24s ease;
}
#ec-memory.ec-memory-mobile .memory-mobile-card.is-open .memory-mobile-card-inner,#ec-memory.ec-memory-mobile .memory-mobile-card.is-matched .memory-mobile-card-inner{
    transform: rotateY(180deg);
}
#ec-memory.ec-memory-mobile .memory-mobile-face{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 2px 7px rgba(0, 72, 110, .18);
}
#ec-memory.ec-memory-mobile .memory-mobile-back{
    background-color: #f6a43a;
    background-image: url("../images/memoryGame/cover0001.png");
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
#ec-memory.ec-memory-mobile .memory-mobile-front{
    padding: 0;
    background: #fff;
    transform: rotateY(180deg);
}
#ec-memory.ec-memory-mobile .memory-mobile-front img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
#ec-memory.ec-memory-mobile .memory-mobile-card-text{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4px;
    color: #064461;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.12;
    overflow-wrap: anywhere;
    text-align: center;
}
#ec-memory.ec-memory-mobile .memory-mobile-card.is-matched{
    visibility: hidden;
}
#ec-memory.ec-memory-mobile .memory-mobile-card.is-resolving{
    visibility: hidden;
}
#ec-memory.ec-memory-mobile .memory-mobile-success-stage{
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    overflow: visible;
}
#ec-memory.ec-memory-mobile .memory-mobile-success-card{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(0, 72, 110, .34);
    overflow: hidden;
    transition: transform .52s ease, opacity .28s ease;
    transform-origin: center;
    will-change: transform, opacity;
}
#ec-memory.ec-memory-mobile .memory-mobile-success-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#ec-memory.ec-memory-mobile .memory-mobile-success-card .memory-mobile-card-text{
    font-size: 15px;
}
#ec-memory.ec-memory-mobile .memory-mobile-success-card.is-fading{
    opacity: 0;
}
#ec-memory.ec-memory-mobile .memory-mobile-success-word{
    position: absolute;
    z-index: 13;
    min-width: min(70cqw, 260px);
    max-width: min(86cqw, 340px);
    padding: 8px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .94);
    color: #000066;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.16;
    text-align: center;
    box-shadow: 0 5px 14px rgba(0, 72, 110, .22);
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
    overflow-wrap: anywhere;
}
#ec-memory.ec-memory-mobile .memory-mobile-success-word.is-visible{
    opacity: 1;
}
#ec-memory.ec-memory-mobile .memory-mobile-score-flight{
    position: absolute;
    z-index: 15;
    min-width: 38px;
    padding: 4px 8px;
    border-radius: 50%;
    background: rgba(255, 249, 143, .98);
    color: #000066;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
    box-shadow: 0 5px 14px rgba(0, 72, 110, .28);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    will-change: transform, opacity;
}
#ec-memory.ec-memory-mobile .memory-mobile-score-flight.is-flying{
    animation: memory-mobile-score-flight .78s ease-in forwards;
}
@keyframes memory-mobile-score-flight{
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    35% {
        opacity: 1;
        transform: translate(-50%, -86%) scale(1.12);
    }

    100% {
        opacity: 0;
        transform: translate(
            calc(-50% + var(--score-flight-x)),
            calc(-50% + var(--score-flight-y))
        ) scale(.72);
    }
}
@keyframes memory-mobile-score-pulse{
    0%,
    100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.22);
    }
}
#ec-memory.ec-memory-mobile .memory-mobile-word{
    display: none;
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .9);
    color: #000066;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
#ec-memory.ec-memory-mobile .memory-mobile-word.is-visible{
    display: block;
}
#ec-memory.ec-memory-mobile .memory-mobile-finish{
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: url("../images/memoryGame/fabric.jpg") center / cover;
    z-index: 20;
}
#ec-memory.ec-memory-mobile .memory-mobile-finish[hidden],#ec-memory.ec-memory-mobile .memory-mobile-game[hidden]{
    display: none;
}
#ec-memory.ec-memory-mobile .memory-mobile-finish-panel{
    width: min(100%, 360px);
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 72, 110, .2);
}
#ec-memory.ec-memory-mobile .memory-mobile-finish h1{
    margin: 0 0 8px;
    color: #0879ad;
    font-size: 31px;
    letter-spacing: 0;
}
#ec-memory.ec-memory-mobile .memory-mobile-finish p{
    margin: 0 0 12px;
    font-size: 19px;
}
#ec-memory.ec-memory-mobile .memory-mobile-finish button{
    width: 100%;
}
#ec-memory.ec-memory-mobile .memory-mobile-score-form{
    margin: 0 0 12px;
    text-align: left;
}
#ec-memory.ec-memory-mobile .memory-mobile-score-form label{
    display: block;
    margin-bottom: 5px;
    color: #0879ad;
    font-size: 14px;
    font-weight: 700;
}
#ec-memory.ec-memory-mobile .memory-mobile-score-form div{
    display: grid;
    grid-template-columns: 1fr 58px;
    gap: 8px;
}
#ec-memory.ec-memory-mobile .memory-mobile-score-form input{
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border: 2px solid #9ed6ef;
    border-radius: 7px;
    color: #063f5c;
    font-size: 17px;
}
#ec-memory.ec-memory-mobile .memory-mobile-score-form button,#ec-memory.ec-memory-mobile .memory-mobile-high-score button{
    min-height: 42px;
    font-size: 15px;
}
#ec-memory.ec-memory-mobile .memory-mobile-score-form.is-saved{
    display: none;
}
#ec-memory.ec-memory-mobile .memory-mobile-high-score{
    margin: 0 0 12px;
}
#ec-memory.ec-memory-mobile .memory-mobile-high-score h2{
    margin: 0 0 8px;
    color: #0879ad;
    font-size: 21px;
}
#ec-memory.ec-memory-mobile .memory-mobile-high-score table{
    width: 100%;
    margin-bottom: 8px;
    border-collapse: collapse;
    color: #063f5c;
    font-size: 14px;
}
#ec-memory.ec-memory-mobile .memory-mobile-high-score th,#ec-memory.ec-memory-mobile .memory-mobile-high-score td{
    padding: 5px 4px;
    border: 1px solid #c8e6f4;
    text-align: center;
}
#ec-memory.ec-memory-mobile .memory-mobile-high-score th{
    background: #dff4fd;
    color: #0879ad;
}
#ec-memory.ec-memory-mobile .memory-mobile-high-score td:nth-child(2){
    text-align: left;
    overflow-wrap: anywhere;
}
@container ec-memory (max-height: 690px){#ec-memory.ec-memory-mobile .memory-mobile-shell{
        padding: 30px 7px 7px;
    }
#ec-memory.ec-memory-mobile .memory-mobile-status{
        min-height: 50px;
        margin-bottom: 30px;
    }
#ec-memory.ec-memory-mobile .memory-mobile-board{
        gap: 5px;
    }
#ec-memory.ec-memory-mobile .memory-mobile-word{
        min-height: 34px;
        margin-top: 6px;
        padding: 5px;
        font-size: 17px;
    }
}

@container ec-memory (orientation: landscape){#ec-memory.ec-memory-mobile.memory-game-mobile-iframe{
        --memory-game-mobile-landscape: 1;
        --memory-game-landscape-hud-content-width: clamp(96px, 15cqw, 124px);
        --memory-game-landscape-hud-width: calc(
            var(--memory-game-landscape-hud-content-width) + env(safe-area-inset-right)
        );
        --memory-game-landscape-nav-clearance: max(72px, calc(env(safe-area-inset-top) + 64px));
        width: 100cqw;
        height: 100cqh;
        min-height: 0;
        overflow: hidden;
        background: #c7ebf9;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-shell{
        width: 100cqw;
        height: 100cqh;
        min-height: 0;
        padding: 0;
        overflow: hidden;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-game{
        grid-template-columns: minmax(0, 1fr) var(--memory-game-landscape-hud-width);
        grid-template-rows: minmax(0, 1fr);
        width: 100%;
        max-width: none;
        height: 100cqh;
        margin: 0;
        overflow: hidden;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-status{
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        width: 100%;
        min-height: 0;
        height: 100%;
        margin: 0;
        padding: var(--memory-game-landscape-nav-clearance) max(8px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) 8px;
        border-radius: 0;
        border-left: 2px solid rgba(255, 255, 255, .68);
        box-shadow:
            inset 2px 0 3px rgba(255, 255, 255, .22),
            -3px 0 9px rgba(0, 72, 110, .2);
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-status div{
        flex: 0 0 auto;
        width: 100%;
        padding: clamp(6px, 1.8cqh, 10px) 5px;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-status span{
        font-size: clamp(11px, 3.1cqh, 13px);
        font-weight: 700;
        line-height: 1;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-status strong{
        margin-top: 3px;
        font-size: clamp(17px, 5cqh, 22px);
        line-height: 1.15;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-status button{
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        margin-top: auto;
        padding: 0 6px;
        border: 1px solid rgba(255, 255, 255, .76);
        background: rgba(0, 73, 111, .72);
        font-size: clamp(12px, 3.4cqh, 15px);
        box-shadow: 0 2px 5px rgba(0, 50, 78, .28);
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-board{
        grid-column: 1;
        grid-row: 1;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));
        gap: clamp(3px, 1cqh, 6px);
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: max(5px, env(safe-area-inset-top)) 5px max(5px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
        background-size: cover;
        box-shadow: none;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-board::before,#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-board::after{
        display: none;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-card{
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 3px;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-face{
        border-radius: 3px;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-front img{
        object-fit: contain;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-success-card.is-landscape-animation{
        padding: 6px;
        transform: none;
        transition: left .52s ease, top .52s ease, width .52s ease, height .52s ease, opacity .28s ease;
        will-change: left, top, width, height, opacity;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-success-card.is-landscape-animation img{
        object-fit: contain;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-score-flight.is-pending{
        opacity: 0;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-finish{
        position: fixed;
        inset: 0;
        z-index: 20;
        display: grid;
        width: 100cqw;
        max-width: none;
        height: 100cqh;
        min-height: 0;
        margin: 0;
        padding: clamp(18px, 8cqh, 58px) 8px 6px;
        align-items: start;
        justify-items: center;
        overflow: hidden;
        background-color: transparent;
        background-image: url("../images/memoryGame/fabric.jpg");
        background-position: center bottom;
        background-size: cover;
        background-repeat: no-repeat;
        pointer-events: none;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-finish[hidden]{
        display: none;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-finish-panel{
        width: clamp(340px, 36cqw, 650px);
        max-width: calc(100cqw - 24px);
        max-height: calc(100cqh - clamp(18px, 8cqh, 58px) - 6px);
        margin: 0;
        padding: clamp(12px, 1.5cqw, 22px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 8px;
        background: #fff;
        scrollbar-width: thin;
        pointer-events: auto;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-finish h1{
        margin: 0 0 4px;
        font-size: clamp(27px, 4.2cqh, 42px);
        line-height: 1.05;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-finish > .memory-mobile-finish-panel > p{
        margin: 0 0 8px;
        font-size: clamp(17px, 2.8cqh, 25px);
        line-height: 1.15;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-score-form{
        margin: 0 0 8px;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-score-form label{
        margin-bottom: 3px;
        font-size: clamp(13px, 1.8cqh, 17px);
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-score-form div{
        grid-template-columns: minmax(0, 1fr) clamp(54px, 8cqw, 86px);
        gap: 8px;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-score-form input{
        height: clamp(36px, 6.5cqh, 48px);
        border-color: #161616;
        color: #063f5c;
        font-size: clamp(16px, 2.2cqh, 20px);
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-score-form button{
        min-height: clamp(36px, 6.5cqh, 48px);
        font-size: clamp(14px, 2cqh, 18px);
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-high-score{
        margin: 0 0 8px;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-high-score h2{
        margin: 0 0 5px;
        font-size: clamp(20px, 3.2cqh, 30px);
        line-height: 1.1;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-high-score table{
        margin-bottom: 6px;
        font-size: clamp(12px, 1.8cqh, 16px);
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-high-score th,#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-high-score td{
        padding: clamp(2px, .75cqh, 5px) 4px;
        line-height: 1.15;
    }
#ec-memory.ec-memory-mobile.memory-game-mobile-iframe .memory-mobile-high-score button,#ec-memory.ec-memory-mobile.memory-game-mobile-iframe #memoryMobilePlayAgain{
        min-height: clamp(34px, 5.8cqh, 44px);
        font-size: clamp(13px, 1.9cqh, 17px);
    }
}

/* Fixed overlays belonged to the iframe viewport; keep them inside the game. */
#ec-memory.ec-memory-mobile .memory-mobile-finish{position:absolute;width:100%;max-width:none;height:100%;overflow:auto;}
#ec-memory.ec-memory-mobile .memory-mobile-finish-panel{max-height:100%;overflow:auto;}
#ec-memory.ec-memory-mobile img{max-width:100%;}
#ec-memory-frame.is-mobile{width:100%;height:calc(100dvh - 58px);min-height:440px;}
#ec-memory-frame.is-mobile[data-state="menu"]{height:calc(100svh - 8px);min-height:620px;}
#ec-memory-frame.is-mobile .memory-menu-stage{height:100%;width:100%;min-height:0;box-sizing:border-box;}
#ec-memory-message{position:absolute;inset:0;display:flex;gap:12px;align-items:center;justify-content:center;background:#c7ebf9;color:#063f5c;font:18px Arial;z-index:30;}
#ec-memory-message button{padding:10px;}
body.ec-memory-page{overflow-x:clip;overflow-y:auto;height:auto;background:#fff;}
body.ec-memory-page #gameCursel,body.ec-memory-page #footer{display:block!important;}
@media (orientation:landscape){
 body.ec-memory-page.memory-game-mobile-page #memory-menu-main{margin-bottom:0;}
 #ec-memory-frame.is-mobile,#ec-memory-frame.is-mobile[data-state="menu"]{height:100dvh;min-height:0;}
 #ec-memory-frame.is-mobile .memory-menu-stage{height:100%;width:100%;}
}
