body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#app {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pixi-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Placeholder-лоадер: показывается до появления Pixi-лоадера, убирается из DOM при первом показе сцены */
#app-loading-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: #fff;
    pointer-events: none;
}

#app-loading-placeholder:not([hidden]) {
    animation: app-loading-placeholder-fade-in 0.15s ease-out;
}

@keyframes app-loading-placeholder-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.app-loading-placeholder__frame {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}


/* Предотвращаем стандартный зум браузера при pinch zoom жестах */
#pixi-container canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}
