*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal; 
}

.app,
.error{
    display: none;
    height: 100dvh;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background: linear-gradient(21deg, #dd03e4, #5611ec);
}

.app{
    display: block;
}

.error{
    justify-content: center;
    align-items: center;
    color: #FFF;
    text-align: center;
    font-size: 36px;
}

.container{
    max-width: 800px;
    margin: 0 auto;
}

.main{
    overflow: hidden;
}

.header{
    width: 100%;
    padding-top: 80px;
    margin: 0 auto;
    text-align: center;
    font-size: 64px;
    font-weight: bold;
    color: #FFF;
}

.header > span{
    color:  #f7e85b;
}


.header > p{
    margin-top: 20px;
    font-size: 20px;
    font-weight: normal;
    font-style: italic;
}

.cat{
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -200px;
    margin-left: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #FFF;
    overflow: hidden;
    transition: all .1s;
}

.cat.active{
    pointer-events: all;
}

.cat:active{
   transform: scale(1.1);
}

.cat > img{
    width: 100%;
    object-fit: contain;
}

.footer{
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0 auto;
    text-align: center;
}

.start{
    opacity: 0;
    color: #000;
    padding: 30px;
    background: #f7e85b;
    border: 0;
    border-radius: 30px;
    font-size: 36px;
    cursor: pointer;
    transition: all .3s;
}

.start:hover{
   transform: scale(1.1);
}


.number{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    font-size:48px;
    font-weight: bold;
    color: #FFF;
}

.number span {
    position: fixed;
    z-index: 10000;
    display: block;
    color: #FFF;
    font-weight: bold;
    -webkit-text-stroke: 1px black; /* Для браузеров на основе WebKit (Chrome, Safari) */
    text-stroke: 1px black; /* Стандартное свойство */
    pointer-events: none;

}

.scores{
    opacity: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 24px;
}

.scores > span{
    font-size: 48px;
    font-weight: bold;
    margin-left: 10px;
}

.modal{
    display: none;
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    z-index: 10000000;
    background: #FFF;
    border-radius: 30px;
    max-width: 600px;
    height: 600px;
    max-height: 600px;
    margin: 0 auto;
    margin-top: -300px;
}

.modal.active{
    display: flex;
    justify-content: center;
}

.modal p{
    margin: 80px 40px 20px 40px;
    font-size: 48px;
    text-align: center;
}

.modal p span{
    font-weight: bold;
    color: #dd03e4;
}

.modal__img{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    height: 400px;
    overflow: hidden;
    border-radius: 30px;
}

.modal__img > img{
    width: 100%;
    object-fit: contain;
}

.fall-cat{
    opacity: 0;
    position: fixed;
    z-index: 10000;
    transform: translateY(-200%);
    background: transparent;
    width: 150px;
    height: 150px;
    animation: rotate 2s linear infinite;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}

.fall-cat > img{
    width: 100%;
    object-fit: contain;
}

.fall-cat.active{
    opacity: 1;
    pointer-events: all;
}

.double-score{
    display: none;
    position: fixed;
    z-index: 100000;
    top: 200px;
    font-size: 128px;
    font-weight: bold;
    color: #FFF;
    -webkit-text-stroke: 1px black; /* Для браузеров на основе WebKit (Chrome, Safari) */
    text-stroke: 1px black; /* Стандартное свойство */
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-height: 900px){
    .header{
        padding-top: 20px;
        font-size: 48px;
    }
}

@media (max-height: 900px){
    .cat{
        margin-top: -100px;
        margin-left: -100px;
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 800px){
    .header{
        padding-top: 20px;
        font-size: 48px;
    }

    .cat{
        margin-top: -150px;
        margin-left: -150px;
        width: 300px;
        height: 300px;
    }

    .footer{
        bottom: 20px;
    }

    .start{
        font-size: 28px;
    }

    .modal{
        height: 400px;
        margin-top: -200px;
    }

    .modal p{
        font-size: 28px;
    }

    .double-score{
        font-size: 78px;
    }
}