/*liquid*/
#app {
    width: 100%;
    height: 80vh;       /* не выше */

    position: relative;
    overflow: hidden;
}


/* Мобильная корректировка высоты */
@media (max-width: 768px) {
    #app {
        height: 50vh;
        width: 100%;/* уменьшенная высота для телефонов */
    }

}

#canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0;
    touch-action: pan-y;
    object-fit: cover;
}

/* ============================================ */
/*text in liquid block*/
#magicText {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 6vw, 60px);
    color: white;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    text-shadow: 0 0 0 rgba(0,0,0,0);
    user-select: none;
    transition:
            opacity 0.7s ease,
            transform 0.7s ease,
            text-shadow 0.7s ease;

    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

@keyframes floatText {
    0%   { transform: translate(-50%, -50%) scale(1); }
    50%  { transform: translate(-50%, -48%) scale(1.02); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
#magicText.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    text-shadow:
            0 0 10px rgba(255,255,255,0.6),
            0 0 25px rgba(255,255,255,0.3),
            0 0 50px rgba(0, 150, 255, 0.5);
    animation: floatText 3s ease-in-out infinite;
}

/* ============================================ */
/* svg  как волна под liquid */


.liquid-divider {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    line-height: 0;
}

.liquid-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}
.liquid-divider path {
    animation: waveMove 8s ease-in-out infinite;
}

@keyframes waveMove {
    0% {
        d: path("M0,40 C240,100 480,0 720,30 960,60 1200,100 1440,40 L1440,0 L0,0 Z");
    }
    50% {
        d: path("M0,60 C300,20 600,100 900,40 1200,-10 1400,60 1440,50 L1440,0 L0,0 Z");
    }
    100% {
        d: path("M0,40 C240,100 480,0 720,30 960,60 1200,100 1440,40 L1440,0 L0,0 Z");
    }
}
/*======================================================*/