

/*html *,
html *::before,
html *::after {

    box-sizing: inherit;

}

body{
    
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background-color: #ffb457;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--duration);

}*/

html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden; /* Отключение прокрутки всей страницы */
            overscroll-behavior: none; /* Запрет на "оттягивание" страницы на iOS */
            touch-action: none; /* Запрет на жесты, которые могут привести к закрытию */
			  box-sizing: border-box;
		    --bgColorMenu : #1d1d27;
		    --duration: .7s;  
        }
        
        body {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #f0f0f0;
            font-family: Arial, sans-serif;
        }
        h1{
            display: block;
            font-size: 1.3em; 
            margin-block-start: 2.67em;
            margin-block-end: 0.67em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
            font-weight: bold;
            unicode-bidi: isolate;
        } 
        #content {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        #coin {
            width: 150px; /* Видимый размер */
            height: 150px; /* Видимый размер */
            background-image: url('https://wschudo.ru/moneta.png');
            background-size: cover;
            cursor: pointer;
            transition: transform 0.2s;
            margin: 40px auto;
            user-select: none;
            -webkit-user-drag: none;
            -webkit-touch-callout: none;
            -webkit-tap-highlight-color: transparent;
            padding: 20px; /* Увеличиваем область нажатия */
            box-sizing: content-box; /* Учитываем padding вне размеров элемента */
        }
        
        #coin.animate {
            transform: scale(1.2); /* Пропорциональное увеличение монеты */
        }
        
        #score, #achievements, #bonus {
            font-size: 24px;
            margin-top: 20px;
        }
        #sendResult {
            margin-top: 20px;
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
        }
        #menu {
            display: flex;
            justify-content: space-around;
            width: 100%;
            background-color: #ccc;
            padding: 10px 0;
            position: fixed;
            bottom: 0;
        }
        #menu button {
            background: none;
            border: none;
            font-size: 16px;
            cursor: pointer;
        }
        .section {
            display: none;
        }
        .section.active {
            display: block;
            text-align: center;
        }
        
        

.menu{

    margin: 0;
    display: flex;
    /* Works well with 100% width  */
    width: 28.05em;
	height: 70px;
    font-size: 1.5em;
    padding: 0 2.85em;
    position: relative;
    align-items: center;
    justify-content: center;
    background-color: var(--bgColorMenu);
    
}

.menu__item{
    
    all: unset;
    flex-grow: 1;
    z-index: 100;
    display: flex;
    cursor: pointer;
    position: relative;
    border-radius: 50%;
    align-items: center;
    will-change: transform;
    justify-content: center;
    padding: 0.55em 0 0.85em;
    transition: transform var(--timeOut , var(--duration));
    
}

.menu__item::before{
    
    content: "";
    z-index: -1;
    width: 4.2em;
    height: 4.2em;
    border-radius: 50%;
    position: absolute;
    transform: scale(0);
    transition: background-color var(--duration), transform var(--duration);
    
}


.menu__item.active {

    transform: translate3d(0, -.8em , 0);

}

.menu__item.active::before{
    
    transform: scale(1);
    background-color: var(--bgColorItem);

}

.icon{
    
    width: 2.6em;
    height: 2.6em;
    stroke: white;
    fill: transparent;
    stroke-width: 1pt;
    stroke-miterlimit: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    
}

.menu__item.active .icon {

    animation: strok 1.5s reverse;
    
}

@keyframes strok {

    100% {

        stroke-dashoffset: 400;

    }

}

.menu__border{

    left: 0;
    bottom: 99%;
    width: 10.9em;
    height: 2.4em;
    position: absolute;
    clip-path: url(#menu);
    will-change: transform;
    background-color: var(--bgColorMenu);
    transition: transform var(--timeOut , var(--duration));
    
}

.svg-container {

    width: 0;
    height: 0;
}


@media screen and (max-width: 50em) {
    .menu{
        font-size: .8em;
    }
}

#gameFrame {
    width: 100%;
    height: 76vh; /* Высота окна браузера */
    border: none; /* Убираем любые границы */
}
